ece91a9b71bf806776d4a94134343cafd831b3fc
[fw/sdcc] / ChangeLog
1 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
2
3         * src/z80/peeph-z80.def: fixed a bug in peephole 0zf
4         * src/z80/peep.c: improved checks for unused data
5         * src/z80/gen.c,
6           src/z80/main.c: Implemented RFE #1899189
7
8 2008-12-25 Borut Razem <borut.razem AT siol.net>
9
10         * support/regression/Makefile.in:
11           add -I$(INC_DIR) to SDCCFLAGS only if INC_DIR is defined
12
13 2008-12-25 Philipp Klaus Krause <pkk AT spth.de>
14
15         * src/z80/peeph-z80.def: minor peephole improvements
16
17 2008-12-21 Borut Razem <borut.razem AT siol.net>
18
19         * support/librarian/sdcclib.c: fixed build failure on Mac OS X
20           due to redefinition of symbol __assert
21           sdcclib.c:53:1:warning: "__assert" redefined
22           /Xcode2.5/SDKs/MacOSX10.4u.sdk/usr/include/assert.h:80:1:
23           warning: this is the location of the previous definition
24
25 2008-12-20 Raphael Neider <rneider AT web.de>
26
27         * debugger/mcs51/break.c, debugger/mcs51/cmd.c,
28           debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
29           support/cpp/libcpp/macro.c: fix format string errors
30
31         * sim/ucsim/s51.src/timer2.cc: add clarifying parens
32
33         * src/pic/device.c: partial rewrite using strtok,
34           quieten compiler warnings, adopt SDCC coding style
35
36         * as/link/hc08/lkelf.c, as/link/lkaomf51.c, as/link/lklibr.c,
37           as/link/z80/lkgb.c, as/z80/asout.c, debugger/mcs51/cmd.c,
38           sim/ucsim/utils.cc, src/SDCCasm.c, support/Util/dbuf_string.c,
39           support/cpp/c-ppoutput.c, support/cpp/libcpp/lex.c,
40           support/librarian/sdcclib.c, support/makebin/makebin.c:
41           quieten most compiler warnings
42
43         * sim/ucsim/avr.src/arith_inst.cc: quieten compiler warnings,
44           probably fix operator precedence bug
45
46         * doc/clean.mk: quieten rm if no .lyx is present
47
48 2008-12-19 Borut Razem <borut.razem AT siol.net>
49
50         * doc/sdccman.lyx, doc/random-notes.txt, doc/avr/avr_design.txt,
51           doc/TININative.txt, doc/macro-sys-design.txt, doc/libdoc.txt,
52           doc/README.txt, doc/test_suite_spec.lyx:
53           applied patch 2446381: Dcoumentation spelling correcitons
54           thanks to Steven Borley
55
56 2008-12-16 Raphael Neider <rneider AT web.de>
57
58         * device/include/pic/pic12f629.h,
59           device/include/pic/pic12f675.h,
60           device/lib/pic/libdev/pic12f629.c,
61           device/lib/pic/libdev/pic12f675.c: consolidated, added TRISIO bits
62
63 2008-12-14 Borut Razem <borut.razem AT siol.net>
64
65         * doc/sdccman.lyx, cdbfileformat.lyx, test_suite_spec.lyx:
66           converted to LyX 1.5.7 (\lyxformat 276) format
67
68 2008-12-07 Borut Razem <borut.razem AT siol.net>
69
70         * support/regression/tests/bitfields.c:
71           added test case for bug #2366757
72
73 2008-12-07 Raphael Neider <rneider AT web.de>
74
75         * src/pic16/glue.c (pic16_printIvalBitFields): prevent
76           NULL pointer dereference, closes #2366757
77
78 2008-11-25 Raphael Neider <rneider AT web.de>
79
80         * device/include/pic16/pic16devices.txt,
81           sdcc/src/pic16/device.c,
82           sdcc/src/pic16/device.h: implicitly disable XINST
83           whenever CONFIG4L is set via an additional optional
84           argument to the configword directive in pic16devices.txt
85
86 2008-11-24 Raphael Neider <rneider AT web.de>
87
88         * device/lib/pic16/configure.ac,
89           device/lib/pic16/Makefile.common: fixed quoting issues
90
91         * device/lib/pic16/configure,
92           device/lib/pic16/debug/Makefile.in,
93           device/lib/pic16/libc/Makefile.in,
94           device/lib/pic16/libdev/Makefile.in,
95           device/lib/pic16/libio/Makefile.in,
96           device/lib/pic16/libm/Makefile.in,
97           device/lib/pic16/libsdcc/Makefile.in,
98           device/lib/pic16/Makefile.in,
99           device/lib/pic16/startup/Makefile.in: regenerated
100
101         * src/pic16/main.c (_pic16_finaliseOptions): revert to
102           variant of r5216
103
104 2008-11-24 Raphael Neider <rneider AT web.de>
105
106         * src/pic16/main.c (_pic16_finaliseOptions): do not quote the
107           argument of --asm= or --link= to allow for
108           --asm="sh script --options", the user can double quote the
109           argument if needed: --asm="'c:/program files/gpasm' -q",
110           also fix some potential buffer overflows
111
112 2008-11-19 Borut Razem <borut.razem AT siol.net>
113
114         * doc/sdccman.lyx:
115           fixed 2314467: sdccman.lyx: fix "--" in command line parameters
116           thanks Mauro Giachero
117
118 2008-11-16 Borut Razem <borut.razem AT siol.net>
119
120         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.5
121         * doc/sdccman.lyx: documented fixed unnamed bit-field initialization
122
123 2008-11-15 Borut Razem <borut.razem AT siol.net>
124
125         * src/pic16/glue.c, src/SDCC.y, src/SDCCast.c, src/SDCCglue.c,
126           src/SDCCsymt.c, src/SDCCsymt.h:
127           fixed RFE #2291335 : Unnamed bit-field initialization
128         * support/regression/tests/bitfields.c:
129           added test case for RFE #2291335
130         * support/regression/tests/bug-1981238.c:
131           don't initialize unnamed bit-fields
132
133 2008-11-11 Raphael Neider <rneider AT web.de>
134
135         * device/include/pic16/pic18f25j10.h,
136           device/include/pic16/pic18f45j10.h: remove useless boilerplate
137
138         * device/include/pic16/adc.h,
139           device/lib/pic16/libio/adc/adcbusy.c,
140           device/lib/pic16/libio/adc/adcclose.c,
141           device/lib/pic16/libio/adc/adcconv.c,
142           device/lib/pic16/libio/adc/adcopen.c,
143           device/lib/pic16/libio/adc/adcread.c,
144           device/lib/pic16/libio/adc/adcsetch.c: generalized, documented,
145           and fixed ADC routines to work for more target devices,
146           incorporates patch #2036130 by Nick Materer
147
148 2008-11-10 Steven Borley <steven.borley AT partnerelectronics.com>
149
150         * device/include/ctype.h,
151         * device/include/ds400rom.h,
152         * device/include/ds80c390.h,
153         * device/include/float.h,
154         * device/include/math.h,
155         * device/include/serial.h,
156         * device/include/stdbool.h,
157         * device/include/tinibios.h: replaced non-C89 '//' with '/* */',
158           patch 2195343
159         * device/include/mcs51/C8051F336.h,
160         * device/include/mcs51/C8051T600.h,
161         * device/include/mcs51/C8051T610.h,
162         * device/include/mcs51/C8051T630.h: new, added, patch 2183334
163           (svn commit by Maarten Brock <sourceforge.brock AT dse.nl>)
164
165 2008-11-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
166
167         * device/include/mcs51/P89LPC922.h: fixed #2255989, thanks kubi57
168
169 2008-11-10 Raphael Neider <rneider AT web.de>
170
171         * device/lib/pic16/libdev/mkmk.sh: obey pics.all
172         * device/lib/pic16/libio/mkmk.sh: properly match whole lines in
173           .ignore files, fixes IO libs for 18f242, 18f252, 18f442, and 18f452
174           (patch by Nick Materer, #2253980)
175
176         * device/lib/pic16/libio/adc.ignore,
177           device/lib/pic16/libio/i2c.ignore,
178           device/lib/pic16/libio/usart.ignore,
179           device/lib/pic16/pics.all: updated to build more device libs
180
181         * device/lib/pic16/libdev/Makefile.am,
182           device/lib/pic16/libdev/Makefile.in,
183           device/lib/pic16/libio/Makefile.am,
184           device/lib/pic16/libio/Makefile.in: regenerated
185
186         * src/pic16/device.c (pic16_dump_usection): fixed output of multiple
187           names per memory location, applied SDCC style to more functions
188
189 2008-11-09 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
190
191         * device/include/mcs51/p89lpc933_4.h: new NXP header file
192         * device/include/mcs51/p89lpc935_6.h: new NXP header file
193         * device/include/mcs51/p89v66x.h: minor changes
194           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
195
196 2008-11-09 Raphael Neider <rneider AT web.de>
197
198         * device/include/pic/pic14devices.txt: fixed memory description for
199           12f629 and 12f675, closes #2236240
200
201 2008-11-06 Borut Razem <borut.razem AT siol.net>
202
203         * src/SDCCmain.c: #fixed bug 2224960: sdcc -MM no working correctly
204           pass system include paths with -isystem to sdcpp
205         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c: removed unneeded
206           functions (closePipes), (closeTmpFiles) and (rmTmpFiles)
207
208 2008-11-02 Raphael Neider <rneider AT web.de>
209
210         * doc/sdccman.lyx: updated the sections on the library build process
211           and on how to add support for new devices, and documented known
212           problems with the extended instruction set including a workaround
213
214 2008-11-01 Raphael Neider <rneider AT web.de>
215
216         * device/include/pic16/adc.h,
217           device/include/pic16/pic16devices.txt,
218           device/include/pic16/pic18f2410.h,
219           device/include/pic16/pic18f2510.h,
220           device/include/pic16/pic18f2515.h,
221           device/include/pic16/pic18f2610.h,
222           device/include/pic16/pic18f4410.h,
223           device/include/pic16/pic18f4510.h,
224           device/include/pic16/pic18f4515.h,
225           device/include/pic16/pic18f4610.h,
226           device/include/pic16/pic18fregs.h,
227           device/lib/pic16/libdev/Makefile.am,
228           device/lib/pic16/libdev/Makefile.in,
229           device/lib/pic16/libdev/pic18f2410.c,
230           device/lib/pic16/libdev/pic18f2510.c,
231           device/lib/pic16/libdev/pic18f2515.c,
232           device/lib/pic16/libdev/pic18f2610.c,
233           device/lib/pic16/libdev/pic18f4410.c,
234           device/lib/pic16/libdev/pic18f4510.c,
235           device/lib/pic16/libdev/pic18f4515.c,
236           device/lib/pic16/libdev/pic18f4610.c,
237           device/lib/pic16/libio/Makefile.am,
238           device/lib/pic16/libio/Makefile.in,
239           device/lib/pic16/pics.all: added support for 18f[24][456]10
240           and 18f[24]515 devices
241         * doc/sdccman.lyx: updated list of supported PIC16 devices
242
243         * src/pic/glue.c, src/pic/pcode.c, src/pic/pcodeflow.c,
244           src/pic16/glue.c, src/pic16/pcode.c, src/pic16/pcodeflow.c,
245           src/xa51/gen.c: avoid compiler warnings
246         * support/scripts/inc2h-pic16.pl: removed trailing whitespace
247
248 2008-10-22 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
249
250         * device/include/mcs51/p89v66x.h: NXP header file
251         * device/include/mcs51/p89c66x.h: fixed an SBIT definition
252           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
253
254 2008-10-14 Raphael Neider <rneider AT web.de>
255
256         * device/lib/pic16/libdev/Makefile.am,
257           device/lib/pic16/libio/Makefile.am: enable building libraries for
258           18f2321, 18f4321, 18f2523, 18f4620, 18f66j60, 18f66j65, 18f67j60,
259           18f86j60, 18f86j65, 18f87j60, 18f96j60, 18f96j65, and 18f97j60
260         * device/lib/pic16/libdev/Makefile.in,
261           device/lib/pic16/libio/Makefile.in: regenerated
262
263 2008-10-14 Raphael Neider <rneider AT web.de>
264
265         * device/include/pic16/pic18f2450.h,
266           device/include/pic16/pic18f4450.h,
267           device/lib/pic16/libdev/pic18f2450.c,
268           device/lib/pic16/libdev/pic18f4450.c,
269           device/include/pic16/adc.h,
270           device/include/pic16/pic16devices.txt,
271           device/include/pic16/pic18fregs.h,
272           device/lib/pic16/libdev/Makefile.am,
273           device/lib/pic16/libdev/Makefile.in,
274           device/lib/pic16/libio/Makefile.am,
275           device/lib/pic16/libio/Makefile.in,
276           device/lib/pic16/pics.all: added 18f2450 and 18f4450, closes #1844525
277
278         * device/lib/pic16/libsdcc/stack/stack.S: there is no need to pin the
279           stack to a fixed location, relax it to automatically work with all
280           but the smallest devices (256 byte RAM devices need #pragma stack)
281
282 2008-10-09 Maarten Brock <sourceforge.brock AT dse.nl>
283
284         * debugger/mcs51/break.c: bugfix from patch 1989966, thanks Risto Huotari
285         * debugger/mcs51/simi.c: bugfix from patch 1989972, thanks Risto Huotari
286         * device/lib/_strcspn.c: fixed bug 2140931
287
288 2008-10-06 Raphael Neider <rneider AT web.de>
289
290         * device/include/pic16/stdio.h,
291           device/lib/pic16/libc/stdio/putchar.c: putchar should not be
292           declared __naked for convenience, named all arguments
293         * device/lib/pic16/libc/stdio/strmgpsim.c,
294           device/lib/pic16/libc/stdio/strmmssp.c,
295           device/lib/pic16/libc/stdio/strmusart.c: cosmetic changes
296
297         * src/pic16/pcode.c (createReachingDefinitions): avoid segfault on
298           empty __naked functions,
299         * (pCodeLabelDestruct, pic16_unlinkpCode, pic16_pCodeUnlink): fix
300           corner cases (unlink first/last pCode in list), reuse more code
301
302 2008-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
303
304         * src/ds390/main.c (_ds390_genInitStartup): added
305         * src/SDCCpeeph.c (getPatternVar): new, added,
306           (labelInRange): fixed bug 2115959
307         * src/mcs51/peeph.def (rules 193.x to 198.x): check for labelInRange
308         * src/SDCCicode.h: added newiTempOperand
309         * src/SDCCcse.c (algebraicOpts): fixed bug for x*-1,
310           added optimizations for 0/x and x/-1, see also patch 2142900
311         * support/regression/tests/onebyte.c (testMul): added test cases
312
313 2008-09-20 Borut Razem <borut.razem AT siol.net>
314
315         * src/pic16/glue.c:
316           definition of absolute address symbols without initial value,
317           fixed SDCC crash "do not know how to intialize symbol"
318
319 2008-09-16 Maarten Brock <sourceforge.brock AT dse.nl>
320
321         * device/lib/z80/mul.s (__mulsuchar_rrx_s, __muluschar_rrx_s),
322         * device/lib/z80/div.s (__divsuchar_rrx_s, __modsuchar_rrx_s,
323           __divuschar_rrx_s, __moduschar_rrx_s): added mixed signedness versions
324         * device/lib/z80/stubs.s: added stubs for above functions
325         * src/SDCCopt.c (convilong),
326         * src/SDCCsymt.c (initCSupport): fixed bug 1900961
327         * src/SDCCsymt.h (__muldiv): enlarged for mixed signedness
328         * src/z80/main.c (_hasNativeMulFor): fixed bug, I think
329         * support/regression/tests/onebyte.c: enabled all tests for z80
330
331 2008-09-15 Borut Razem <borut.razem AT siol.net>
332
333         * device/include/pic16/stdio.h, device/lib/pic16/libc/stdio/streams.c,
334           device/lib/pic16/libc/stdio/printf.c,
335           device/lib/pic16/libc/stdio/strmusart.c,
336           device/lib/pic16/libc/stdio/printf_tiny.c,
337           device/lib/pic16/libc/stdio/sprintf.c,
338           device/lib/pic16/libc/stdio/strmgpsim.c,
339           device/lib/pic16/libc/stdio/putchar.c,
340           device/lib/pic16/libc/stdio/fprintf.c,
341           device/lib/pic16/libc/stdio/strmmssp.c,
342           device/device/lib/pic16/libc/stdio/vprintf.c,
343           device/lib/pic16/libc/stdio/printf_small.c,
344           device/lib/pic16/libc/stdio/vsprintf.c,
345           device/lib/pic16/libc/stdio/strmputchar.c,
346           device/lib/pic16/libc/Makefile.am,
347           device/lib/pic16/libc/Makefile.in:
348           *printf now returns int, puchar.c moved from stdlib to stdio,
349           *printf format parameter type changed from char * to const char *,
350           added GNU link excetion text to library source files,
351           applyed GNU coding style, removed useless svn ids,
352           added BINARY_SPECIFIER macro re-enables the use of the removed 'b'
353           binary specifier: "%b", "%hb" and "%lb"
354         * device/lib/pic16/libc/stdio/vfprintf.c:
355           applied patch #2044424: PIC16: vfprintf
356           thanks Mauro Giachero
357         * support/regression/tests/bug1057979.c:
358           removed old pic16 sprintf specifics
359         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.4
360         * doc/sdccman.lyx: documented 'b' binary format specifier removal
361
362 2008-09-15 Raphael Neider <rneider AT web.de>
363
364         * src/pic16/device.c (pic16_dump_usection): force udata sections
365           into the addressable range (0..0xFFF), workaround for a gpsim
366           bug preventing simulation of regtest bug1750318
367         * src/pic16/ralloc.c (deassignLRs): cosmetic changes,
368           (serialRegAssign): fixed regtest bug-971834,
369           (pic16_packRegisters): avoid null-pointer dereference
370
371 2008-09-14 Raphael Neider <rneider AT web.de>
372
373         * src/pic16/gen.c, src/pic16/ralloc.c: use
374           SYM_SPIL_LOC/SPIL_LOC macros, no functional changes
375         * src/pic16/ralloc.c (rematStr): reimplemented, fixes #1818857
376
377 2008-09-12 Borut Razem <borut.razem AT siol.net>
378
379         * support/regression/fwk/testfwk.h:
380           define pdata as data for pic16 target
381           thanks Mauro Giachero
382
383 2008-09-11 Borut Razem <borut.razem AT siol.net>
384
385         * support/regression/tests/bug-221100.c, support/regression/shifts.c,
386           support/regression/absolute.c:
387           applied patch #2105615: Some PIC16 testcase fixlets
388           thanks Mauro Giachero
389
390 2008-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
391
392         * src/z80/gen.c (genCmpGt, genCmpLt): fixed bug 2094505
393         * support/regression/tests/bug2094505.c: new, added
394
395 2008-09-07 Borut Razem <borut.razem AT siol.net>
396
397         * src/SDCCglue.c, src/SDCCast.c:
398           fixed throw of "excess elements" warning for char arrays
399         * support/regression/tests/nullstring.c:
400           disable warning about excess elements in array of chars initializer
401
402 2008-09-07 Maarten Brock <sourceforge.brock AT dse.nl>
403
404         * as/z80/aslist.c (lstsym): changed old K&R to ANSI
405         * src/SDCCicode.c (geniCodeCritical): fixed bug for hc08
406         * src/z80/gen.c (genCritical, genEndCritical): fixed bug 2077267
407         * support/regression/tests/bug2077267.c: new, added
408
409 2008-09-05 Raphael Neider <rneider AT web.de>
410
411         * configure.in, Makefile.common.in: add support for ccache,
412           remove spurious $VERSION output, detect doc-tools even without
413           --enable-doc to facilitate later manual doc-builds, minor cleanup
414         * configure: regenerated
415
416         * doc/Makefile.in: quieten pdflatex, makeindex, and latex2html,
417           avoid races in parallel VPATH builds
418         * doc/clean.mk: remove .lyx files in the builddir for VPATH builds
419         * doc/sdccman.lyx: mention --without-ccache configure option
420
421 2008-09-01 Raphael Neider <rneider AT web.de>
422
423         * src/pic16/gen.c (pic16_derefPtr): handle CPOINTERs as well
424         * (genConstPointerGet): fix reading bitfields from __code space
425         * src/pic16/glue.c (pic16_printIvalBitFields): correctly mask
426           bitfield initializers (fix regression test bug1856409.c)
427         * (pic16_printIvalCharPtr,pic16_printIvalPtr): generalized to support
428           arbitrary sizes
429
430 2008-08-31 Raphael Neider <rneider AT web.de>
431
432         * src/pic16/gen.c (genAssign): removed useless compiler output
433         * (genPointerGet,genPointerSet,genCast),
434           src/pic16/glue.c (pic16_printGPointerType):
435           also handle PPOINTERs just to avoid spurious asserts
436         * (pic16_printIvalType,pic16_printIvalBitFields):
437           generalized to arbitrary type/bitfield sizes, allows compilation of
438           regression test bug-1981238.c
439         * (pic16_printIvalChar): fix regression test structflexarray.c
440         * (pic16_printIvalArray): avoid SIGSEGV on uninitialized strings
441           in initialized structs and fix #1843745
442         * (pic16_printIvalStruct): always output initializers for all fields,
443           even those not explicitly given, fixes zeropad.c regression test
444         * (pic16_printIvalUnion): fix union initializers (bug1426356.c,
445           #2073635, #1567098, and #1485812)
446         * src/pic16/main.c (_pic16_keywords): remove unsupported 'pdata'
447
448 2008-08-31 Borut Razem <borut.razem AT siol.net>
449
450         * support/regression/tests/bug-895992.c,
451           support/regression/tests/onebyte.c:
452           enabled pic16 regression testing since the bugs
453           1511794: pic16: regression test bug-895992.c fails
454           1444425: onebyte.c regression tes fails on pic16
455           are fixed, probably by fixing
456           2048464: PIC16: fix genUminus - addresses not.c regression test
457         * src/SDCCsymt.c, src/SDCCglue.c,
458           support/regression/tests/bug-1981238.c:
459           applied patch 2076664: fix #1981238 + SIGSEGV in SDCCGlue.c
460           thanks to RvS
461
462 2008-08-30 Borut Razem <borut.razem AT siol.net>
463
464         * support/cpp/libcpp/files.c: SDCPP synchronized with GCC CPP
465           release version 4.3.2
466
467 2008-08-24 Raphael Neider <rneider AT web.de>
468
469         * device/lib/pic16/configure, device/lib/pic16/configure.ac:
470           always use the sdcc from the current build tree (ignore $CC from
471           the environment, fixes compile farm builds)
472         * device/lib/Makefile.in: rename .a into .lib for compatibility,
473           remove more build products from install directory
474         * sdcc/src/pic16/main.c (_pic16_linkEdit,_pic16_finaliseOptions)
475         * sdcc/support/scripts/sdcc.nsi: revert to .lib extension for libs
476
477 2008-08-24 Borut Razem <borut.razem AT siol.net>
478
479         * src/SDCC.y: applied patch
480           2050245: Fix # 1963382
481           for bug
482           1963382: Listing File - C file comment is incorrect
483           thanks to RvS
484
485 2008-08-23 Borut Razem <borut.razem AT siol.net>
486
487         * src/pic16/gen.c: applied patch
488           2048464: PIC16: fix genUminus - addresses not.c regression test
489           thanks Mauro Giachero
490
491 2008-08-22 Borut Razem <borut.razem AT siol.net>
492
493         * device/lib/pic16/configure, device/lib/pic16/configure.ac,
494           src/pic16/main.c: allow spaces in gpasm and gplink paths
495
496 2008-08-15 Philipp Klaus Krause <pkk AT spth.de>
497
498         * src/z80/peep.c,
499         * src/z80/peeph-z80.def: minor peephole improvement
500
501 2008-08-15 Raphael Neider <rneider AT web.de>
502
503         * src/z80/gen.c (_vemit2): suppress compiler warning
504
505         * src/pic/*.[ch]: make proper use of header files and avoid
506           ad-hoc extern declarations, mark module-local helpers 'static',
507           removed dead/replaced code, no functional changes
508         * src/pic16/pcode.c: disentangled from pic14 backend
509
510 2008-08-14 Philipp Klaus Krause <pkk AT spth.de>
511
512         * src/z80/gen.c: fixed #2051348
513         * support/regression/tests/bug-2051348.c: regression test for #2051348
514
515 2008-08-10 Raphael Neider <rneider AT web.de>
516
517         * configure.in,
518         * Makefile.common.in: export PACKAGE for $docdir,
519           fixes #1957036, avoid some "underquoted definition" warnings
520         * configure: regenerated
521
522 2008-08-10 Raphael Neider <rneider AT web.de>
523
524         * device/lib/pic16/**: build pic16 library using autotools for
525           improved dependency tracking
526
527         * device/lib/Makefile.in,
528         * src/pic16/main.c,
529         * support/scripts/sdcc.nsi: adapt to changes in filenames (s/.lib/.a/)
530
531 2008-08-10 Raphael Neider <rneider AT web.de>
532
533         * src/pic/pcode.c (ReuseReg): do not overlay the registers used for
534           local variables if --nooverlay is given, workaround for #2023121
535
536 2008-08-08 Raphael Neider <rneider AT web.de>
537
538         * src/pic16/genarith.c (genAddLit): fix structure access (#1888004)
539
540 2008-08-08 Raphael Neider <rneider AT web.de>
541
542         * src/pic/pcoderegs.c,
543         * src/pic/pcode.c,
544         * src/pic16/pcode.c: replace own SAFE_snprintf with common SNPRINTF
545
546 2008-08-07 Borut Razem <borut.razem AT siol.net>
547
548         * src/SDCCval.c, src/SDCCmain.c, src/SDCC.lex,
549           device/lib/pic/Makefile.rules, device/lib/ds390/Makefile.in,
550           device/lib/ds400/Makefile.in, device/lib/hc08/Makefile.in,
551           support/cpp/libcpp/lex.c,  doc/sdccman.lyx:
552           applied modified patch 2038174: Add support for binary constants v2
553           thanks Mauro Giachero
554         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.3
555
556 2008-08-04 Raphael Neider <rneider AT web.de>
557
558         * doc/sdccman.lyx,
559         * src/pic16/device.h,
560         * src/pic16/glue.c,
561         * src/pic16/main.c: enable --optimize-goto by default
562
563         * device/lib/pic16/Makefile.common.in: suppress removed option
564
565         * src/pic16/gen.c,
566         * src/pic16/genutils.c: avoid too long relative branches (#2031890)
567
568 2008-07-30 Borut Razem <borut.razem AT siol.net>
569
570         * src/pic16/device.c, src/pic16/glue.c, src/pic16/pcode.c:
571           applied patch 22032433: PIC16: fix constant strings,
572           thanks Mauro Giachero
573
574 2008-07-29 Borut Razem <borut.razem AT siol.net>
575
576         * src/pic16/gen.c: applied patches:
577           2030306: [1/3] PIC16: fix failing rotate.c tests on 16-bit variables,
578           2030307: [2/3] PIC16: fix failing rotate.c tests for 32-bit var (1),
579           2030310: [3/3] PIC16: fix failing rotate.c tests for 32-bit var (2),
580           thanks Mauro Giachero
581
582 2008-07-13 Philipp Klaus Krause <pkk AT spth.de>
583
584         * src/port.h: Fixed typo in comment
585
586 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
587
588         * src/z80/mappings.i: Implemented RFE #1919415
589         * src/z80/peeph-z80.def: Implemented RFE #1919415, #1861376,
590           #1880202, #1914434, prepared for RFE #1703943
591
592 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
593
594         * src/z80/peeph.def,
595         * src/z80/peeph-z80.def,
596         * src/z80/peeph-gbz80.def: separate Z80 from GBZ80 peepholes in
597           preparation for Z80 peephole improvements
598
599 2008-06-21 Raphael Neider <rneider AT web.de>
600
601         * device/include/pic16/pic18f66j60.h,
602         * device/include/pic16/pic18f66j65.h,
603         * device/include/pic16/pic18f67j60.h,
604         * device/include/pic16/pic18f86j60.h,
605         * device/include/pic16/pic18f86j65.h,
606         * device/include/pic16/pic18f87j60.h,
607         * device/include/pic16/pic18f96j60.h,
608         * device/include/pic16/pic18f96j65.h,
609         * device/include/pic16/pic18f97j60.h,
610         * device/lib/pic16/libdev/pic18f66j60.c,
611         * device/lib/pic16/libdev/pic18f66j65.c,
612         * device/lib/pic16/libdev/pic18f67j60.c,
613         * device/lib/pic16/libdev/pic18f86j60.c,
614         * device/lib/pic16/libdev/pic18f86j65.c,
615         * device/lib/pic16/libdev/pic18f87j60.c,
616         * device/lib/pic16/libdev/pic18f96j60.c,
617         * device/lib/pic16/libdev/pic18f96j65.c,
618         * device/lib/pic16/libdev/pic18f97j60.c,
619         * device/include/pic16/pic16devices.txt,
620         * device/include/pic16/pic18fregs.h,
621         * device/lib/pic16/pics.all: added new devices
622
623         * device/include/pic16/adc.h,
624         * device/lib/pic16/libio/adc/adcbusy.c,
625         * device/lib/pic16/libio/adc/adcopen.c,
626         * device/lib/pic16/libio/adc/adcsetch.c,
627         * device/lib/pic16/libio/i2c/i2copen.c,
628         * device/lib/pic16/libio/usart/uopen.c: adapted to new devices,
629           all changes from a patch by Anton Strobl
630
631 2008-06-12 Borut Razem <borut.razem AT siol.net>
632
633         * sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/bp.cc,
634           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
635           sim/ucsim/z80.src/z80cl.h, sim/ucsim/z80.src/z80.cc,
636           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
637           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
638           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/uc390.cc,
639           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/uc390cl.h,
640           sim/ucsim/avr.src/avrcl.h, sim/ucsim/avr.src/avr.cc:
641           fixed bug 1990586: s51 simulator, uc::disass() unimplemented
642           by applying the modified patch from Risto Huotari
643
644 2008-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
645
646         * .version,
647         * doc/sdccman.lyx: bumped sdcc version to 2.8.2
648         * src/ds390/gen.c (aopPutUsesAcc, genAddrOf): fixed bug 1015185
649         * src/mcs51/gen.c (genNearPointerGet, genNearPointerSet): fixed bug 1938300
650         * support/regression/tests/bug1938300.c: new, added
651
652 2008-06-03 Maarten Brock <sourceforge.brock AT dse.nl>
653
654         * device/include/asm/ds390/features.h,
655         * device/include/asm/mcs51/features.h,
656         * device/include/mcs51/regc515c.h: inserted LGPL notice
657
658 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
659
660         * device/lib/gbz80/div.s,
661         * device/lib/z80/div.s: fixed bug 1904314 by applying a modified part of
662           patch 1597883, Thanks Robert Ramey
663
664 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
665
666         * src/SDCCast.c (createIvalType, createIvalStruct, createIvalArray,
667           createIvalCharPtr, createIvalPtr, createIval),
668         * src/SDCCval.h
669         * src/SDCCval.c (convertIListToConstList, list2expr): handle incomplete
670           initializers for local auto variables
671         * support/regression/tests/zeropad.c: added testcase for auto initializers
672
673 2008-05-26 Raphael Neider <rneider AT web.de>
674
675         * device/lib/pic16/startup/crt0.c,
676         * device/lib/pic16/startup/crt0i.c,
677         * device/lib/pic16/startup/crt0iz.c: clean up, make use of access bank
678           explicit, fixed curr_entry loop for >= 256 initializer records,
679           removed debug code (write to 0xf7e)
680
681 2008-05-25 Raphael Neider <rneider AT web.de>
682
683         * device/include/pic/pic16f627a.h,
684         * device/include/pic/pic16f628a.h,
685         * device/include/pic/pic16f648a.h: added missing ports
686
687 2008-05-20 Maarten Brock <sourceforge.brock AT dse.nl>
688
689         * device/include/float.h: added __INFINITY
690         * device/lib/_fsadd.c: handle overflows
691         * device/lib/_fsmul.c,
692         * device/lib/_fsdiv.c: use __INFINITY
693         * device/lib/_fseq.c,
694         * device/lib/_fsneq.c: handle -0.0
695         * sim/ucsim/s51.src/uc89c51r.cc,
696         * sim/ucsim/s51.src/uc89c51rcl.h: fixed bug 1385430
697         * sim/ucsim/sim.src/hwcl.h: */* confuses VC
698         * src/mcs51/gen.c (genSend): fixed bug with --xstack
699         * support/regression/ports/mcs51-xstack-auto/spec.mk: print floats
700         * support/regression/tests/snprintf.c: test bug with --xstack
701
702 2008-05-19  Philipp Klaus Krause <pkk AT spth.de>
703
704         * src/SDCCpeeph.c (callFuncByName):
705           Support nested parenthesis in peephole function arguments (#1967300)
706
707 2008-05-19 Raphael Neider <rneider AT web.de>
708
709         * src/pic16/gen.c (pic16_emitpLabel,pic16_emitpLabelFORCE):
710           fixed duplicate labels (#1911325)
711
712 2008-05-19 Raphael Neider <rneider AT web.de>
713
714         * src/regression/empty.c: suppress warning
715         * src/regression/pointer1.c: enabled index_by_pointer()
716         * src/regression/inline.c: now works for pic16 as well
717
718         * src/pic16/device.c: include dbuf declarations
719         * src/pic16/device.h: removed obsolete prototypes
720
721         * src/pic16/gen.c, src/pic16/gen.h: moved generic pointer tags
722         * src/pic16/glue.c: made purely local functions static,
723           (pic16_printGPointerType, pic16_printIvalCharPtr,
724           pic16_printIvalFuncPtr, pic16_printIvalPtr): fixed initialized
725           generic pointers' tags (#1961866)
726
727         * src/pic16/pcode.c (assignValnums): optimize literal assignments
728
729 2008-05-19 Borut Razem <borut.razem AT siol.net>
730
731         * support/scripts/sdcc.nsi: remove uninstall.exe after uninstallation,
732           fixed typo, uninstall include/pic16/pic16devices.txt
733
734 2008-05-18 Borut Razem <borut.razem AT siol.net>
735
736         * support/Utils/dbuf_string.[ch]: added dbuf_chomp(),
737           the buffer is null terminated
738         * src/device/pic16.c:
739           applied modified patch 1965676: Patch for Win32 16 bit PIC
740         * sdcc_vc_in.h: defined YY_NO_UNISTD_H
741
742 2008-05-16 Maarten Brock <sourceforge.brock AT dse.nl>
743
744         * src/SDCC.lex (check_type),
745         * src/SDCC.y (type_specifier2 TYPE_NAME): fixed bug 1925942
746         * as/hc08/clean.mk,
747         * as/mcs51/clean.mk,
748         * as/z80/clean.mk: also clean *.dep
749         * device/lib/pic16/libsdcc/stack/Makefile,
750         * sim/ucsim/libtool: removed as they are rebuild by configure
751         * src/clean.mk: removed izt, so Makefile is not deleted for distclean
752
753 2008-05-13 Maarten Brock <sourceforge.brock AT dse.nl>
754
755         * src/SDCCast.c (fixupInline, createFunction): save currBlockno in
756           fixupInline instead of createFunction to fix bug 1864577
757           (inlineFindMaxBlockno): removed, use global blockNo
758         * src/SDCCglobl.h: added blockNo
759         * src/z80/peep.c,
760         * src/z80/peep.h: modified properties
761         * support/regression/tests/bug1864577.c: new, added
762
763 2008-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
764
765         * as/mcs51/asdata.c,
766         * as/mcs51/asm.h: added org_cnt
767         * as/mcs51/asmain.c (main, asmbl): fixed bug 1957716, changed old K&R to ANSI
768         * as/mcs51/asout.c: changed old K&R to ANSI
769         * as/mcs51/Makefile.in: use common identifiers
770         * as/hc08/asdata.c,
771         * as/hc08/asexpr.c,
772         * as/hc08/asm.h,
773         * as/hc08/asmain.c,
774         * as/hc08/asout.c,
775         * as/hc08/Makefile.bcc,
776         * as/hc08/Makefile.in: synchronized with as/mcs51/*
777         * sdcc_vc_in.h: added define __func__
778         * src/SDCCast.c (expandInlineFuncs): applied patch 1957148 to fix bug 1717305,
779           Thanks Ruud van Silfhout
780         * support/regression/tests/bug1717305.c: new, added
781
782 2008-05-05 Borut Razem <borut.razem AT siol.net>
783
784         * support/regression/Makefile.in,
785           support/regression/ports/ds390/spec.mk,
786           support/regression/ports/hc08/spec.mk,
787           support/regression/ports/mcs51-common/spec.mk,
788           support/regression/ports/pic14/spec.mk,
789           support/regression/ports/pic16/spec.mk,
790           support/regression/ports/ucz80/spec.mk,
791           support/regression/ports/z80/spec.mk:
792           added INC_DIR and LIBDIR paths
793         * src/ds390/gen.c: removed duplicated selicolon
794
795 2008-05-04 Borut Razem <borut.razem AT siol.net>
796
797         * support/regression/Makefile.in,
798           support/regression/fwk/lib/testfwk.c,
799           support/regression/ports/ds390/spec.mk,
800           support/regression/ports/hc08/spec.mk,
801           support/regression/ports/mcs51-common/spec.mk,
802           support/regression/ports/mcs51-large/spec.mk,
803           support/regression/ports/mcs51-medium/spec.mk,
804           support/regression/ports/mcs51-small/spec.mk,
805           support/regression/ports/mcs51-stack-auto/spec.mk,
806           support/regression/ports/mcs51-xstack-auto/spec.mk,
807           support/regression/ports/pic14/spec.mk,
808           support/regression/ports/pic16/spec.mk,
809           support/regression/ports/ucz80/spec.mk:
810           added possibility to define the sdcc binary directory SDCC_BIN_PATH
811           used to run regeression tests
812
813 2008-05-01 Raphael Neider <rneider AT web.de>
814
815         * doc/sdccman.lyx, support/scripts/inc2h-pic16.pl: updated list of
816           supported devices and instructions to add new ones
817
818 2008-05-01 Raphael Neider <rneider AT web.de>
819
820         * device/include/pic16/adc.h,
821           device/lib/pic16/libio/adc/adcbusy.c,
822           device/lib/pic16/libio/adc/adcopen.c,
823           device/lib/pic16/libio/adc/adcsetch.c: support old 18f242 and new
824           18f2455 style ADC devices, based on patch #1776197
825         * device/lib/pic16/libio/adc/adcclose.c,
826           device/lib/pic16/libio/adc/adcconv.c,
827           device/lib/pic16/libio/adc/adcread.c: cosmetic changes
828         * device/include/pic16/{pic18f2331.h,pic18f2431.h},
829           device/lib/pic16/libdev/{pic18f2331.c,pic18f2431.c}: reuse 18f4331
830         * device/include/pic16/pic18f4431.h,
831           device/lib/pic16/libdev/pic18f4431.c: remove outdated comments
832         * device/lib/pic16/libio/adc.ignore: forbid unhandled devices
833
834 2008-05-01 Raphael Neider <rneider AT web.de>
835
836         * src/pic16/device.h: removed unused field PIC16_device.sfrRange,
837           moved xinst flag into pic16_options_t
838         * src/pic16/device.c (default_device, pic16_list_devices,
839           pic16_find_device): removed references to sfrrange
840         * src/pic16/gen.c (genFunction),
841           src/pic16/glue.c (pic16initialComments),
842           src/pic16/main.c (pic16_optionsTable),
843           src/pic16/ralloc.c (newReg, pic16_writeUsedRegs): updated references
844           to xinst
845         * device/include/pic16/pic16devices.txt: removed sfrrange lines
846
847 2008-04-29 Raphael Neider <rneider AT web.de>
848
849         * src/pic16/devices.inc,
850           device/include/pic16/pic16devices.txt: replaced compiled-in list
851           of devices with a variant parsed at runtime
852         * src/pic16/device.c: added support for parsing pic16devices.txt,
853           clean up
854         * src/pic16/device.h: removed (now) unused fields from PIC_device
855         * src/pic16/main.c: removed #pragma maxram,
856           (_pic16_initPaths): removed bogus generation of search paths,
857           setup the port proper only after the search paths (for
858           pic16devices.txt) are set up,
859           (_pic16_finaliseOptions): moved processor dependant code here
860           from _pic16_initPaths(), clean up
861         * src/pic16/ralloc.c (pic16_init_stack),
862         * src/pic16/ralloc.h,
863         * src/pic16/pcode.c: clean up
864         * device/include/Makefile.in,
865           support/scripts/sdcc.nsi: also install/package pic16devices.txt
866         * support/scripts/inc2h-pic16.pl: updated instructions
867
868 2008-04-29 Raphael Neider <rneider AT web.de>
869
870         * device/include/pic16/{pic18f2480.h, pic18f2580.h, pic18f4423.h,
871           pic18f4480.h, pic18f4523.h, pic18f4580.h, pic18f6585.h, pic18f8585.h},
872           device/lib/pic16/libdev/{pic18f2480.c, pic18f2580.c, pic18f4423.c,
873           pic18f4480.c, pic18f4523.c, pic18f4580.c, pic18f6585.c, pic18f8585.c}:
874           added missing family members and 18f2480/2580/4480/4580 family
875         * device/include/pic16/{pic18f2423.h, pic18f2523.h}: use 18f4523.h
876         * device/include/pic16/pic18f2525.h: use 18f4620.h
877         * device/include/pic16/pic18f6680.h: use 18f8680.h
878         * device/include/pic16/pic18fregs.h,
879           device/lib/pic16/pics.all,
880           src/pic16/devices.inc: add new devices
881         * device/lib/pic16/libdev/{pic18f2423.c, pic18f2523.c}: use 18f4523.c
882         * device/lib/pic16/libdev/pic18f2525.c: use 18f4620.c
883         * device/lib/pic16/libdev/pic18f6680.c: uso 18f8680.c
884         * device/lib/pic16/libio/{adc.ignore, i2c.ignore, usart.ignore}:
885           prevent attempting to build the libio for some new devices
886
887 2008-04-29 Raphael Neider <rneider AT web.de>
888
889         * debugger/mcs51/Makefile.in: fixed paths to sources
890
891 2008-04-25 Borut Razem <borut.razem AT siol.net>
892
893         * as/link/lklibr.c: moved from as/link/z80/lklibr.c
894         * as/link/hc08/lklibr.c, as/link/mcs51/lklibr.c: deleted
895         * as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
896         * as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
897           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
898           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
899           as/link/z80/linkz80.dsp: lklibr.c moved
900         * doc/INSTALL.txt: binary archives in bz2 format
901         * support/cpp/auto-host_vc_in.h: CPP2 replaced with CPP
902
903 2008-04-23 Maarten Brock <sourceforge.brock AT dse.nl>
904
905         * src/SDCCglue.c (printIvalType, printIvalBitFields): fixed bug 1856409
906         * support/regression/tests/bug1856409.c: new, added
907
908 2008-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
909
910         * src/z80/peep.c,
911         * src/mcs51/peep.c: Use werror for error messages.
912         * src/SDCCicode.c (geniCodeConditional),
913         * src/SDCCsymt.c (structElemType): fixed bug 1839321
914         * src/z80/Makefile.bcc,
915         * src/z80/z80.dsp: added src/z80/peep.c/h
916         * support/regression/tests/bug1839321.c: new, added
917
918 2008-04-20 Raphael Neider <rneider AT web.de>
919
920         * device/include/pic16/pic18f2455.h: added bitfields for port C
921
922 2008-04-20 Philipp Klaus Krause <pkk AT spth.de>
923
924         * src/z80/peep.c: Use werror for error messages.
925
926 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
927
928         * src/z80/peep.h (declaration of notUsed()),
929         * src/z80/main.c (enabled notUsed() for z80 port, documented z80_port
930           struct),
931         * src/z80/z80.h (added dependency on peep.h),
932         * src/z80/peep.c (definition of notUsed()): Implemented RFE #1880202
933           for Z80.
934
935 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
936
937         * src/SDCCpeeph.c (added support for notUsed()),
938         * src/mcs51/main.c (added dependency on peep.h, documented mcs51_port
939           struct),
940         * src/port.h (removed dependency on mcs51/peep.h, added declaration
941           for notUsed()): Implemented generic (that is not port-specific) part
942           of RFE #1880202.
943
944 2008-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
945
946         * as/link/mcs51/lkmem.c (summary2): fixed bug 1796077
947         * device/lib/libsdcc.lib,
948         * device/lib/Makefile.in,
949         * support/regression/ports/mcs51-xstack-auto/spec.mk,
950         * device/lib/calloc.c: renamed to _calloc.c
951         * device/lib/free.c: renamed to _free.c
952         * device/lib/malloc.c: renamed to _malloc.c
953         * device/lib/realloc.c: renamed to _realloc.c
954         * src/ds390/gen.c (aopGet, aopPut, genPlusBits, genDataPointerSet,
955           genNearPointerSet, genPagedPointerSet): synchronized with mcs51/gen.c
956         * src/ds390/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq, ifxForOp,
957           genAnd, genOr, genXor, genIfx, gen390Code): fixed bug 1509084
958         * src/mcs51/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq,
959           ifxForOp, genAnd, genOr, genXor, genNearPointerGet,
960           genPagedPointerGet, genFarPointerGet, genCodePointerGet,
961           genGenPointerGet, genIfx, gen51Code): fixed bug 1509084
962         * src/ds390/gen.c,
963         * src/mcs51/gen.c: throughout cosmetic changes for syncing both
964         * src/SDCCsymt.h: updated IS_OP_RUONLY, IS_OP_ACCUSE
965         * support/regression/tests/bug1509084.c: new, added
966
967 2008-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
968
969         * device/include/mcs51/cc2510fx.h: added _XPAGE
970         * device/include/mcs51/compiler.h: cosmetic changes
971
972 2008-03-31 Maarten Brock <sourceforge.brock AT dse.nl>
973
974         * sdcc.dsw: adapted for moved cpp2, added dependency for as_z80 on
975           config
976
977 2008-03-31 Borut Razem <borut.razem AT siol.net>
978
979         * support/cpp2 renamed to support/cpp
980         * support/cpp2/libiberty/filenames.h, support/cpp2/libiberty/hex.c,
981           support/cpp2/libiberty/splay-tree.c,
982           support/cpp2/libiberty/splay-tree.h, support/cpp2/libcpp/macro.c,
983           support/cpp2/libcpp/directives.c,
984           support/cpp2/libcpp/include/cpplib.h,
985           support/cpp2/libcpp/include/symtab.h,
986           support/cpp2/libcpp/include/line-map.h,
987           support/cpp2/libcpp/line-map.c, support/cpp2/libcpp/files.c,
988           support/cpp2/libcpp/init.c, support/cpp2/libcpp/traditional.c,
989           support/cpp2/libcpp/expr.c, support/cpp2/libcpp/internal.h,
990           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/system.h,
991           support/cpp2/libcpp/charset.c: SDCPP synchronized with GCC CPP
992           release version 4.3.0
993         * configure.in, configure, Makefile.in, Makefile.bcc:
994           adapted for moved cpp2
995
996 2008-03-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
997
998         * device/include/hc08/mc68hc908jkjl.h: committed fix for bug #1929739,
999           thanks Alejandro Pustowka <alejo_pustowka AT yahoo.com.mx>
1000
1001 2008-03-30 Maarten Brock <sourceforge.brock AT dse.nl>
1002
1003         * src/SDCCloop.c (loopInvariants): applied fix for bug 1717943, thanks
1004           Robert Larice
1005         * support/regression/tests/bug1717943.c: new, added
1006
1007 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1008
1009         * src/z80/gen.c (assignResultValue): Reverted reversal of order of
1010           bytewise return value assignments introduced in last commit.
1011
1012 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1013
1014         * src/z80/gen.c (emitDebug, assignResultValue, genPlus, genMinus,
1015           genMult, genJumpTab):
1016           Use 16-bit instructions for addition in some additional cases,
1017           implemented RFEs #1914251, #1914245, #1922090, #1921382, #1918323.
1018
1019 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1020
1021         * src/z80/ralloc.c (serialRegAssign, allocReg, tryAllocatingRegPair):
1022           Implemented RFE #1921450, changed some debug messages.
1023
1024 2008-03-30 Borut Razem <borut.razem AT siol.net>
1025
1026         * Small Device C Compiler 2.8.0 released
1027         * .version, doc/sdccman.lyx: changed sdcc version to 2.8.1
1028         * support/scripts/sdcc.nsi: added finish page; this version
1029           was used for 2.8.0 release
1030         * doc/knownbugs.html: removed; magically generated by the build
1031           process using gen_known_bugs.pl from now on
1032
1033 2008-03-23 Borut Razem <borut.razem AT siol.net>
1034
1035         * src/pic/gen.h: Q&D solution for the bug, found by Jim Paris
1036           and reverted it, since it was already fixed by Raphael ;-)
1037         * doc/knownbugs.html: updated for RC2
1038
1039 2008-03-22 Raphael Neider <rneider AT web.de>
1040
1041         * src/SDCCicode.c (getPtrType): avoid unnecessary extra assignments
1042           for PIC16 targets
1043
1044 2008-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
1045
1046         * src/mcs51/gen.c (adjustArithmeticResult): fixed bug 1839299
1047         * support/regression/tests/bug1839277.c: added related testBug1839299
1048
1049 2008-03-21 Maarten Brock <sourceforge.brock AT dse.nl>
1050
1051         * src/ds390/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign),
1052         * src/mcs51/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign):
1053           fixed bug 1839277
1054         * src/mcs51/gen.c: throughout only output hex constants
1055         * src/SDCCicode.c (getPtrType, geniCodeCast): fixed code size regression
1056         * support/regression/tests/bug1839277.c: new, added
1057
1058 2008-03-21 Philipp Klaus Krause <pkk AT spth.de>
1059
1060         * src/z80/ralloc.c (callFuncByName): Used // instead of /**/ to fix
1061           compilation warning about nested comments.
1062
1063 2008-03-20 Maarten Brock <sourceforge.brock AT dse.nl>
1064
1065         * src/SDCCsymt.c (comparePtrType): fixed bug 1921073
1066         * support/regression/tests/bug1921073.c: new, added
1067
1068 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
1069
1070         * src/z80/SDCCpeeph.c.c (callFuncByName):
1071           Commented function parameters.
1072
1073 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
1074
1075         * src/z80/ralloc.c (packRegsForAccUse2):
1076           disabled a broken accumulator packing optimization (fixed #1292721).
1077         * support/regression/tests/bug-1292721: Regression test for #1292721.
1078
1079 2008-03-16 Raphael Neider <rneider AT web.de>
1080
1081         * src/pic/gen.c (SetIrp,genNearPointerGet,genNearPointerSet):
1082           fixed code bloat regression using a variant of patch #1915618
1083
1084 2008-03-16 Borut Razem <borut.razem AT siol.net>
1085
1086         * support/scripts/sdcc.nsi: added section debugging macros, added SDCC
1087           icon, changed startup menu for release distribution, code cleaning,
1088           create url files instead links in startup menu
1089
1090 2008-03-16 Maarten Brock <sourceforge.brock AT dse.nl>
1091
1092         * src/SDCCcse.c (algebraicOpts): fixed bug 1579949
1093         * support/regression/tests/bug1579949.c: new, added
1094
1095 2008-03-14 Paul Stoffregen <paul AT pjrc.com>
1096
1097         * device/lib/printf_fast.c: fixed bug 1255403
1098
1099 2008-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
1100
1101         * doc/sdccman.lyx: enhanced paragraph about bankswitching for mcs51
1102         * src/cdbFile.c (cdbWriteBasicSymbol): fixed bug 1909409 for locals
1103
1104 2008-03-14 Borut Razem <borut.razem AT siol.net>
1105
1106         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated link-xx and aslink
1107           command line options
1108         * as/link/hc08/lkmain.c: converted tabs to spaces so that the usage
1109           is correctly displayed
1110         * as/link/z80/lkmain.c: usage line commented out
1111
1112 2008-03-13 Borut Razem <borut.razem AT siol.net>
1113
1114         * doc/sdccman.lyx: corrected to be able to convert to PDF,
1115           updated the list pf supported pic14 devices
1116
1117 2008-03-12 Maarten Brock <sourceforge.brock AT dse.nl>
1118
1119         * doc/sdccman.lyx: added paragraph about bankswitching for mcs51
1120
1121 2008-03-12 Borut Razem <borut.razem AT siol.net>
1122
1123         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated command line options,
1124           fixed documentation request #1718191
1125         * as/hc80/asmain.c, as/mcs51/asmain.c: added option -c to usage
1126         * doc/sdccman.lyx: added description of --no-std-crt0 gbz80
1127           command line option
1128
1129 2008-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
1130
1131         * src/SDCCast.c (isConformingBody): fixed bug 1505811, thanks Robert Larice
1132         * support/regression/tests/bug1505811.c: new, added
1133
1134 2008-03-09 Raphael Neider <rneider AT web.de>
1135
1136         * device/include/pic16/pic18f2620.h,
1137         * device/include/pic16/pic18f4620.h,
1138         * device/lib/pic16/libdev/pic18f2620.c,
1139         * device/lib/pic16/libdev/pic18f4525.c,
1140         * device/lib/pic16/libdev/pic18f4620.c: merged 18f2525/2620/4525/4620
1141           family to consistently use pic18f4620.[ch], fixes #1832562
1142
1143 2008-03-09 Borut Razem <borut.razem AT siol.net>
1144
1145         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
1146           changed sdcc version to 2.8.0
1147         * knownbugs.html: regenerated
1148         * support/scripts/gen_known_bugs.pl: added number of open bugs
1149
1150 2008-03-09 Raphael Neider <rneider AT web.de>
1151
1152         * src/pic16/gen.c (pic16_mov2w_volatile): NEW, read volatile operands,
1153           (genOr): read volatile operand even if the result is known,
1154           closes #1511838
1155           (genOr,genXor): removed unused legacy code,
1156           (genDummyRead): use pic16_mov2w_volatile()
1157
1158 2008-03-08 Borut Razem <borut.razem AT siol.net>
1159
1160         * src/SDCCglue.c: fixed bug #1864582: multiple definition of char
1161           cons w. --model-large
1162         * support/regression/staticinit.c: added regression test for bug
1163           #1864582
1164
1165 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1166
1167         * src/ds390/gen.c (pushSide, genPcall),
1168         * src/hc08/gen.c (pushSide, genPcall): synchronized with mcs51
1169         * src/mcs51/gen.c: cosmetic changes
1170         * support/regression/fwk/include/testfwk.h: added macro reentrant
1171         * support/regression/tests/bug1908493.c: new, added
1172
1173 2008-03-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1174
1175         * src/SDCCdebug.c:, as/link/lkaomf51.c: Fixed bug 1909409: Pdata in OMF file
1176
1177 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1178
1179         * src/mcs51/gen.c (pushSide, genPcall): fixed bug 1908493
1180         * src/SDCCmain.c (preProcess): removed -DSDCC_PARMS_IN_BANK1 because it is
1181           already set in ds390/main.c and mcs51/main.c
1182
1183 2008-03-07 Raphael Neider <rneider AT web.de>
1184
1185         * src/regression/init0.c: new test for initialized arrays of function
1186           pointers
1187         * src/regression/Makefile: made a bit more flexible, added init0.c
1188         * src/pic/glue.c (emitIvals): hacky fix for initializing from function
1189           pointers, closes #1427663
1190
1191 2008-03-05 Borut Razem <borut.razem AT siol.net>
1192
1193         * dos/sdccman.lyx: docummented predefined macros SDCC_REVISION,
1194           SDCC_PARMS_IN_BANK1, SDCC_FLOAT_REENT and SDCC_INT_LONG_REENT
1195
1196 2008-03-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1197
1198         * support/librarian/sdcclib.c:Added feature request 1908061:
1199           Synchronise sdcclib commands with ar.
1200
1201 2008-03-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1202
1203         * src/SDCCmain.c: added predefined macros SDCC_REVISION (RFE #1907229),
1204           and (depending on corresponding compiler option) SDCC_PARMS_IN_BANK1,
1205           SDCC_FLOAT_REENT, SDCC_INT_LONG_REENT
1206         * device/include/mcs51/compiler.h: removed umlauts, added double
1207           underscore
1208
1209 2008-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
1210
1211         * src/SDCCptropt.c (ptrPseudoSymConvert): fixed bug 1536762
1212         * support/regression/tests/bug1536762.c: new, added
1213         * src/SDCCutil.c,
1214         * src/SDCCutil.h: added getBuildDate()
1215         * src/SDCCmain.c (printVersionInfo),
1216         * src/SDCCglue.c (initialComments): use getBuildDate() instead of
1217           __DATE__
1218         * src/*/ralloc.c: removed IS_OP_RUONLY macro
1219         * src/ds390/ralloc.c (packRegisters),
1220         * src/mcs51/ralloc.c (packRegisters),
1221         * src/z80/ralloc.c (packRegisters): applied fix for bug 1618050, thanks
1222           Robert Larice
1223         * support/regression/tests/bug1618050.c: new, added
1224         * src/SDCCsymt.h: fixed typo in DECLSPEC2TXT
1225         * support/regression/fwk/include/testfwk.h,
1226         * support/regression/tests/bug1838000.c: moved _AUTOMEM and _STATMEM to
1227           testfwk.h
1228
1229 2008-03-04 Raphael Neider <rneider AT web.de>
1230
1231         * src/pic/gen.c: removed unused prototypes, prevent internal errors
1232           on accessing OP_SYM_TYPE(op)
1233         * src/pic/gen.h: removed unused prototype of genMinusDec()
1234         * src/pic/genarith.c (genMinus): cosmetic changes, rewritten to
1235           fix #1876953 (invalid subtraction code), removed unused code
1236
1237 2008-03-03 Raphael Neider <rneider AT web.de>
1238
1239         * src/pic/gen.c,
1240         * src/pic/gen.h,
1241         * src/pic/genarith.c,
1242         * src/pic/ralloc.c,
1243         * src/pic/ralloc.h: removed AOP_R0, AOP_R1, AOP_DPTR, AOP_DPTR2,
1244           AOP_ACC, and *_IDX and adjusted code, removed unused legacy code
1245
1246 2008-03-03 Raphael Neider <rneider AT web.de>
1247
1248         * src/pic/device.c (find_device): search user-specified paths first
1249           for pic14devices.txt, fixes #1900827
1250
1251 2008-03-02 Borut Razem <borut.razem AT siol.net>
1252
1253         * support/scripts/sdcc.nsi: fixed bug in IsNT, LogicLib-isation of
1254           AddToPath and RemoveFromPath
1255
1256 2008-03-01 Borut Razem <borut.razem AT siol.net>
1257
1258         * support/scripts/sdcc.nsi: reverted MULTIUSER page since it didn't
1259           work correctly, added debugging support if -DSDCC.DEBUG command line
1260           option is defined
1261
1262 2008-02-28 Borut Razem <borut.razem AT siol.net>
1263
1264         * doc/sdccman.lyx: cosmetic changes
1265
1266 2008-02-28 Maarten Brock <sourceforge.brock AT dse.nl>
1267
1268         * src/mcs51/ralloc.c (fillGaps): fixed bug 1839671
1269         * doc/sdccman.lyx: fixed unmeant removal of spaces
1270
1271 2008-02-27 Borut Razem <borut.razem AT siol.net>
1272
1273         * support/scripts/sdcc.nsi: corrected installation directory for
1274           current user installation mode
1275         * doc/README.txt: added Philipp Klaus Krause to the developers list
1276
1277 2008-02-27 Maarten Brock <sourceforge.brock AT dse.nl>
1278
1279         * src/mcs51/gen.c (genUnpackBits): don't generate ifxJump, instead
1280           return ifx condition
1281           (genNearPointerGet, genPagedPointerGet, genFarPointerGet,
1282           genCodePointerGet, genGenPointerGet): cleanup aop before generating
1283             ifxJump to fix bug 1838000
1284         * src/SDCCsymt.c (aggregateToPointer): fix problem for xstack
1285         * support/regression/tests/bug1838000.c: new, added
1286         * device/include/mcs51/cc1110.h: new, added, thanks to Pravin Angolkar
1287
1288 2008-02-26 Borut Razem <borut.razem AT siol.net>
1289
1290         * src/SDCCast.c, doc/sdccman.lyx: fixed RFE #1901171: inerger promotion
1291           of casted varargs
1292         * support/scripts/sdcc.nsi: added MULTIUSER page,
1293           NSIS upgraded to version 2.35
1294
1295 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1296
1297         * src/mcs51/ralloc.c (isSpiltOnStack): fixed bug 1565152
1298         * support/regression/tests/bug1565152.c: new, added
1299
1300 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1301
1302         * src/mcs51/gen.c (genPagedPointerSet): fixed bug 1670148
1303         * support/regression/ports/mcs51-xstack-auto/spec.mk: added expf.c
1304         * support/regression/tests/bug1670148.c: new, added
1305
1306 2008-02-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1307
1308         * device/include/mcs51/at89c51ed2.h: fixed bug 1901469.
1309
1310 2008-02-24 Borut Razem <borut.razem AT siol.net>
1311
1312         * src/SDCCast.c, src/SDCCast.h: fixed bug #1874922: explicit typecast
1313           is ineffective for unsigned char parameter
1314
1315 2008-02-24 Maarten Brock <sourceforge.brock AT dse.nl>
1316
1317         * src/SDCCast.c (expandInlineFuncs): fixed bug 1875869
1318         * src/SDCCglue.c (printIvalBitFields): fixed bug 1806631
1319         * support/regression/tests/bitopcse.c: removed hc08 exception, see testfwk.h
1320         * support/Util/MySystem.c (my_system): output errorcode when verbose
1321
1322 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
1323
1324         * src/z80/gen.c (genMult): Rewrote 8-bit multiplication by constant,
1325           implements #1898231
1326
1327 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
1328
1329         * device/lib/z80/mul.s: Rewrote __muluchar_rrx_s, to improve 8-bit mult.,
1330           implements #1896290
1331
1332 2008-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
1333
1334         * src/SDCCast.c (createIvalStruct): fixed bug 1466761
1335
1336 2008-02-21 Borut Razem <borut.razem AT siol.net>
1337
1338         * support/regression/Makefile.in,
1339           support/regression/ports/ds390/spec.mk,
1340           support/regression/ports/hc08/spec.mk,
1341           support/regression/ports/mcs51-common/spec.mk,
1342           support/regression/ports/pic14/spec.mk,
1343           support/regression/ports/pic16/spec.mk,
1344           support/regression/ports/ucz80/spec.mk,
1345           support/regression/ports/xa51/spec.mk:
1346           added CFLAGS when compiling timeout
1347
1348 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1349
1350         * support/regression/tests/bugs-1596270-1736867.c: Regression test for
1351           #1596270, #1736867
1352
1353 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
1354
1355         * src/SDCClrange.c (findPrevUse): fixed bug 1888147
1356         * support/regression/tests/bug1888147.c: new, added
1357
1358 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1359
1360         * src/z80/gen.c: fixed bugs #1596270, #1736867
1361
1362 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1363
1364         * src/z80/gen.c: fixed bug in register pair loading when swapping register
1365           contents, mostly fixes #1596270
1366
1367 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1368
1369         * src/z80/peeph.def,
1370         * src/z80/peeph-z80.def: moved peephole that breaks gbz80 to z80-specific
1371           peepholes, fixes #1806565
1372
1373 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
1374
1375         * src/SDCCpeeph.c (operandBaseName): added check for @Ri
1376         * src/mcs51/peeph.def (rule 177.c): added operandsNotRelated(%1 %3)
1377           fixes bug 1739475, thanks Robert Larice
1378           (rule 271): new, added
1379
1380 2008-02-18 Borut Razem <borut.razem AT siol.net>
1381
1382         * sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
1383
1384 2008-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
1385
1386         * src/SDCCmain.c (linkEdit): emit -z when using --debug for z80
1387
1388 2008-02-17 Raphael Neider <rneider AT web.de>
1389
1390         * src/pic16/genarith.c,
1391         * src/pic16/gen.c,
1392         * src/pic16/gen.h,
1393         * src/pic16/genutils.c: removed unused legacy code,
1394           removed unused fields from struct asmop and struct _G
1395
1396 2008-02-17 Raphael Neider <rneider AT web.de>
1397
1398         * src/pic16/gen.c (AccRsh): cosmetic changes,
1399           (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
1400           genRightShiftLiteral): fixed to work with SFRs as result by
1401           assigning only once to result,
1402           removed a lot of unused/excluded code fragments
1403
1404 2008-02-17 Raphael Neider <rneider AT web.de>
1405
1406         * device/include/pic/pic16f88.h,
1407         * device/include/pic/pic16f886.h,
1408         * device/include/pic/pic16f887.h: added TRISA6 and TRISA7
1409
1410 2008-02-17 Borut Razem <borut.razem AT siol.net>
1411
1412         * src/z80/peeph.def: applied patch
1413           #1893626: Optimize tail calls on Z80, thanks to Philipp Krause
1414         * src/z80/gen.c, src/z80/peeph.def: applied patch
1415           #1893510: Improve logical left shift on Z80, thanks to Philipp Krause
1416         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1417           sim/ucsim/s51.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
1418           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
1419           sim/ucsim/main_in.mk: renamed libutil.a to libucsimutil.a in order to
1420           enable compilation on Mac OS X 10.5 (Leopard) and XCode v3.0
1421
1422 2008-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
1423
1424         * as/link/mcs51/aslink.dsp: removed SDK define
1425         * as/link/z80/clean.mk: brought in sync with other ports
1426         * as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
1427         * as/hc08/Makefile.bcc,
1428         * as/mcs51/Makefile.bcc,
1429         * as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
1430         * src/z80/main.c (_setValues): use the now capitalized -Z,
1431           (z80_port, gbz80_port): generate debug information when asked
1432
1433 2008-02-16 Borut Razem <borut.razem AT siol.net>
1434
1435         * as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
1436           as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
1437           as/z80/Makefile.in. as/z80/Makefile.bcc:
1438           applied patch #1893393: patch for as-z80 and link-z80 to generate
1439           cdb, thanks to Armin Diehl
1440         * as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
1441           as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
1442           asnoice.c moved to as/asxxsrc/asnoice.c
1443         * src/z80/peeph-gbz80.def: applied patch
1444           #1880235: Z80 return peephole, thanks to Philipp Krause
1445
1446 2008-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
1447
1448         * .version,
1449         * doc/sdccman.lyx: bumped version to 2.7.5
1450         * src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583
1451
1452 2008-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
1453
1454         * device/include/pic16/stdlib.h,
1455         * device/lib/pic16/libc/stdlib/ltoa.c,
1456         * device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*
1457
1458 2008-02-13 Borut Razem <borut.razem AT siol.net>
1459
1460         * src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
1461         * src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
1462           src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
1463           src/SDCCopt.c,  src/SDCCval.c:
1464           fixed bug #1890273: SDCC Warning 154 shows wrong filename
1465
1466 2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
1467
1468         * src/SDCCsymt.c (compareType): fixed bug 1309013
1469
1470 2008-02-09 Borut Razem <borut.razem AT siol.net>
1471
1472         * src/SDCCval.c, src/SDCCval.h:
1473           code cleaning, added function constChrVal()
1474         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
1475           call constChrVal() instead constVal()
1476
1477 2008-02-01 Maarten Brock <sourceforge.brock AT dse.nl>
1478
1479         * src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
1480           of function pointer
1481         * src/SDCCerr.h,
1482         * src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
1483         * support/regression/tests/absolute.c: added TestStruct TestVar (see also
1484           bug 1859853)
1485
1486 2008-02-01 Raphael Neider <rneider AT web.de>
1487
1488         * device/include/pic/pic16f886.h,
1489         * device/include/pic/pic16f887.h: added RA6 and RA7
1490
1491 2008-01-24 Raphael Neider <rneider AT web.de>
1492
1493         * device/include/pic/pic16f88.h: added RA6 and RA7
1494         * device/lib/pic/libdev/disabled_pic16f886.c,
1495         * device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled
1496
1497         * src/pic16/devices.inc,
1498         * device/include/pic16/pic18f2423.h,
1499         * device/include/pic16/pic18f2523.h,
1500         * device/include/pic16/pic18fregs.h,
1501         * device/lib/pic16/pics.all
1502         * device/lib/pic16/libdev/pic18f2423.c,
1503         * device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
1504         * device/lib/pic16/libio/i2c.ignore,
1505         * device/lib/pic16/libio/usart.ignore,
1506         * device/lib/pic16/libio/adc.ignore: ignore new devices
1507
1508 2008-01-23 Maarten Brock <sourceforge.brock AT dse.nl>
1509
1510         * src/SDCCast.c (createRMW): fixed bug 1582651
1511
1512 2008-01-20 Borut Razem <borut.razem AT siol.net>
1513
1514         * src/SDCCcse.c: partially fixed enhancement request
1515           #1793872 - multiply by -1 not collapsed
1516         * support/regression/tests/arithcsi.c: added regression test
1517
1518 2008-01-19 Maarten Brock <sourceforge.brock AT dse.nl>
1519
1520         * as/mcs51/asx8051.dsp: removed define SDK
1521         * as/mcs51/i51mch.c (machine): fixed bug 1865114
1522         * device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
1523         * as/link/lklex.c,
1524         * as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
1525           cosmetic changes, brought more in sync, changed old K&R to ANSI
1526
1527 2008-01-13 Borut Razem <borut.razem AT siol.net>
1528
1529         * support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...
1530         * src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
1531
1532 2007-12-30 Borut Razem <borut.razem AT siol.net>
1533
1534         * src/pic16/gen.c: fixed implementation of bitwise operations for
1535           pic16 target
1536         * support/regression/tests/bitwise.c: added test cases
1537
1538 2007-12-29 Borut Razem <borut.razem AT siol.net>
1539
1540         * src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
1541         * src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
1542           src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
1543         * support/Util/dbuf_string.[ch]: added function dbuf_getline()
1544         * src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
1545           src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
1546           src/pic16/pcode.[ch]: added const qualifier
1547         * as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
1548           as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
1549           as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
1550           as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
1551         * as/asxxsrc/aslex.c: use dbuf_getline()
1552         * as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
1553           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
1554           as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
1555           as/z80/asm.h, as/z80/z80adr.c:
1556           changed type of ib and ip to const char *
1557
1558 2007-12-28 Borut Razem <borut.razem AT siol.net>
1559
1560         * as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
1561           introduced (readlin) - long lines are turuncated
1562         * as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
1563           as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
1564           as/z80/Makefile.in: moved aslex.c to asxxsrc
1565         * as/hc08/aslex.c, as/z80/aslex.c: deleted
1566         * as/hc08/asmain.c, as/mcs51/asmain.c:
1567           added missing initialization of a_addr field
1568         * support/regression/tests/long_asm_line.c: added regtest for long
1569           assembler line
1570
1571 2007-12-22 Borut Razem <borut.razem AT siol.net>
1572
1573         * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
1574
1575 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
1576
1577         * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
1578
1579 2007-12-16 Borut Razem <borut.razem AT siol.net>
1580
1581         * device/include/pic16/stdbool.h: removed, since already exists in
1582          device/include/; this also fixes bitopcse.c regression test for pic16
1583          target
1584         * support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
1585         * src/pic16/glue.c: fixed bug #1851855: generic static pointer
1586           dereference doesn't work; covered by regression test bug1399290
1587
1588 2007-12-05 Borut Razem <borut.razem AT siol.net>
1589
1590         * doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
1591           Adding new PIC16
1592
1593 2007-12-01 Borut Razem <borut.razem AT siol.net>
1594
1595         * sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
1596           corrected handling of the highest_valid_address
1597
1598 2007-11-17 Raphael Neider <rneider AT web.de>
1599
1600         * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
1601         * src/pic/glue.c (picglue): emit .file if --debug is given
1602
1603 2007-11-17 Raphael Neider <rneider AT web.de>
1604
1605         * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
1606         care when left or right operand resides in result, fixes #1830220
1607
1608 2007-11-17 Borut Razem <borut.razem AT siol.net>
1609
1610         * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
1611           #983491 - "Merge duplicate strings function is ineffective"
1612         * support/regression/tests/bug-983491.c: regtest disabled
1613         * as/asxxsrc: created
1614           as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
1615           as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
1616           as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
1617           as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
1618           as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
1619           as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
1620           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
1621           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
1622           as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
1623           as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
1624           as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
1625           as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
1626           created as/asxxsrc directory, assym.c and strcpi.c moved into it
1627
1628 2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
1629
1630         * device/include/stdarg.h: added and removed some casts
1631         * src/SDCCsymt.c (compareType): Fully check types between generic and
1632           non-generic pointers, also accept ptr-ptr to void-ptr assignments
1633
1634 2007-11-13 Borut Razem <borut.razem AT siol.net>
1635
1636         * support/regression/tests/bug-1817005.c:
1637           added regtest for bug #1817005 - as-z80 chokes on long labels
1638
1639 2007-11-12 Borut Razem <borut.razem AT siol.net>
1640
1641         * as/z80/asmain.c, as/z80/asm.h, as/z80/assym.c, as/z80/asdata.c,
1642           as/z80/asout.c, as/z80/aslist.c:
1643           fixed bug #1817005 - as-z80 chokes on long labels
1644
1645 2007-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
1646
1647         * as/hc08/asmain.c,
1648         * as/z80/asmain.c: cosmetic changes
1649         * as/hc08/alloc.h,
1650         * as/mcs51/alloc.h,
1651         * as/z80/alloc.h: removed
1652         * as/hc08/assym.c,
1653         * as/mcs51/assym.c: replaced alloc.h with stdlib.h
1654         * as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
1655         * as/link/hc08/Makefile.in,
1656         * as/link/mcs51/Makefile.in,
1657         * as/link/z80/Makefile.in: added -DUNIX to CFLAGS
1658         * as/link/lklex.c,
1659         * as/link/mcs51/lkarea.c,
1660         * as/link/mcs51/lkmain.c: cosmetic changes
1661         * as/link/hc08/lklibr.c,
1662         * as/link/z80/lklibr.c,
1663         * as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
1664           used cygwin_conv_to_full_posix_path,
1665           added warnings, cosmetic changes, brought more in sync
1666           changed old K&R into ANSI function declarations
1667         * as/link/z80/lklibr.c (loadAdb): added
1668         * as/link/z80/lkmain.c: removed -- option from usage text
1669
1670 2007-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
1671
1672         * src/mcs51/gen.c (outBitC): optimized for no result
1673
1674 2007-10-31 Borut Razem <borut.razem AT siol.net>
1675
1676         * src/SDCCsymt.c: fixed (hopeful properly) bug
1677           #1805702 - order of extern matters
1678         * support/regression/tests/bug-1805702.c: enabled regtest for bug
1679           #1805702
1680
1681 2007-10-29 Borut Razem <borut.razem AT siol.net>
1682
1683         * src/SDCCsymt.c: reverted bad fixed of bug #1805702
1684           - order of extern matters
1685         * support/regression/tests/bug-1805702.c: disabled regtest for bug
1686           #1805702
1687
1688 2007-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
1689
1690         * src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
1691           24bitMode, portIsDS390
1692         * src/mcs51/gen.c (genOr): optimized for RFE 1750727
1693         * src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
1694           (notVolatileVariable): also check sloc names,
1695           (callFuncByName): moved ftab[] out of function and sorted it by use
1696
1697 2007-10-28 Maarten Brock <sourceforge.brock AT dse.nl>
1698
1699         * device/include/stdarg.h: fixed bug in va_start macro for --xstack
1700         * src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
1701           aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
1702         * src/SDCCicode.c (geniCodeCast): fixed bug 880197
1703         * support/regression/tests/bug-880197.c: new, added
1704
1705 2007-10-28 Borut Razem <borut.razem AT siol.net>
1706
1707         * support/regression/Makefile.in,
1708           support/regression/ports/mcs51-large/spec.mk,
1709           support/regression/ports/mcs51-xstack-auto/spec.mk,
1710           support/regression/ports/mcs51-stack-auto/spec.mk,
1711           support/regression/ports/mcs51-medium/spec.mk,
1712           support/regression/ports/mcs51-common/spec.mk,
1713           support/regression/ports/mcs51-common/*,
1714           support/regression/ports/mcs51-small/*:
1715           mcs51 renamed to mcs51-common, created mcs51-small
1716         * src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
1717         * support/regression/tests/bug-1805702.c: added regtest for bug
1718           #1805702
1719
1720 2007-10-26 Maarten Brock <sourceforge.brock AT dse.nl>
1721
1722         * src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b,
1723           added new rules 265 - 270
1724         * support/regression/tests/bug1721024.c:new, added
1725         * support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
1726           introduced new test-mcs51 to run all mcs51 tests
1727
1728 2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
1729
1730         * support/regression/tests/bug1816470.c: new, added
1731
1732 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
1733
1734         * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
1735           propagate for *,+,- with float, fixed bug 1816470
1736           (decorateType): cast to resultTypeProp instead of resultType
1737
1738 2007-10-19 Borut Razem <borut.razem AT siol.net>
1739
1740         * src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
1741           function is ineffective" for pic16 tareget
1742         * support/scripts/listerr.c: corrected include path
1743         * device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
1744           adjacent memory
1745
1746 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
1747
1748         * support/regression/tests/using.c: new, added
1749         * support/regression/tests/vaargs.c: fixed and enabled test
1750
1751 2007-10-18 Borut Razem <borut.razem AT siol.net>
1752
1753         * src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
1754           is ineffective
1755         * support/regression/tests/bug-983491.c: added regtest for bug #983491
1756
1757 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
1758
1759         * doc/sdccman.lyx: documented option --Werror
1760         * src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
1761           RegBankUsed[] earlier
1762
1763 2007-10-14 Maarten Brock <sourceforge.brock AT dse.nl>
1764
1765         * device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
1766         * src/pic/glue.c,
1767         * src/SDCCval.c,
1768         * src/SDCCast.c,
1769         * src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
1770           AST_ULONG_VALUE
1771         * src/SDCCast.c (decorateType): improved optimization of tri-op
1772         * src/SDCCerr.c (vwerror, setWError),
1773         * src/SDCCerr.h,
1774         * src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
1775           warnings as errors, thanks Stas Sergeev for PATCH 1813211
1776
1777 2007-10-13 Maarten Brock <sourceforge.brock AT dse.nl>
1778
1779         * src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
1780         * src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
1781         * support/regression/tests/bug-223113.c,
1782         * support/regression/tests/bug-426632.c,
1783         * support/regression/tests/bug-468811.c,
1784         * support/regression/tests/bug-477835.c,
1785         * support/regression/tests/bug-478094.c,
1786         * support/regression/tests/bug-499644.c,
1787         * support/regression/tests/bug-524209.c,
1788         * support/regression/tests/bug-524211.c,
1789         * support/regression/tests/packcast.c,
1790         * support/regression/tests/structidx.c: added empty tests
1791         * support/regression/tests/bug-607243.c: enabled test
1792
1793 2007-10-06 Borut Razem <borut.razem AT siol.net>
1794
1795         * .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
1796            support of universal binaries on Mac OS X
1797
1798 2007-10-02 Borut Razem <borut.razem AT siol.net>
1799
1800         * src/SDCCval.h: unified double2ul macro for all platforms
1801         * src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
1802         * support/regression/tests/bitwise.c: added regtest for bug #1777758
1803
1804 2007-09-30 Borut Razem <borut.razem AT siol.net>
1805
1806         * src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
1807           platforms
1808         * sdcc_vc_in.h: enabled warnings
1809         * src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
1810           unsigned type, result still unsigned
1811         * src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
1812
1813 2007-09-28 Raphael Neider <rneider AT web.de>
1814
1815         * src/pic/device.c (find_device): prevent buffer underflow error
1816         * src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
1817           the just destroyed list entry
1818
1819 2007-09-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1820
1821         * doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks
1822           Alexander Neundorf
1823
1824 2007-09-18 Borut Razem <borut.razem AT siol.net>
1825
1826         * src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
1827          applied to unsigned type, result still unsigned
1828
1829 2007-09-17 Borut Razem <borut.razem AT siol.net>
1830
1831         * src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c,
1832           src/SDCCicode.c, src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c,
1833           src/SDCCval.h, src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c,
1834           src/mcs51/gen.c, src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c,
1835           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/genarith.c,
1836           src/pic16/genutils.c, src/pic16/glue.c, src/pic16/main.c,
1837           src/z80/gen.c, src/z80/ralloc.c:
1838           fixed bug #1739860 - sdcc does not work correctly on some platforms
1839           (not finished)
1840           introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()
1841
1842 2007-09-17 Raphael Neider <rneider AT web.de>
1843
1844         * src/pic16/device.c: reverted to previous version
1845         * device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q
1846
1847 2007-09-16 Raphael Neider <rneider AT web.de>
1848
1849         * src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
1850           as this raises a ton of gpasm warnings, just emit a second label
1851         * src/pic16/devices.inc,
1852         * device/lib/pic16/pics.all,
1853         * device/lib/pic16/libdev/pic18f2585.c,
1854         * device/lib/pic16/libdev/pic18f2680.c,
1855         * device/lib/pic16/libdev/pic18f2682.c,
1856         * device/lib/pic16/libdev/pic18f2685.c,
1857         * device/lib/pic16/libdev/pic18f4585.c,
1858         * device/lib/pic16/libdev/pic18f4680.c,
1859         * device/lib/pic16/libdev/pic18f4682.c,
1860         * device/lib/pic16/libdev/pic18f4685.c,
1861         * device/include/pic16/pic18f2585.h,
1862         * device/include/pic16/pic18f2680.h,
1863         * device/include/pic16/pic18f2682.h,
1864         * device/include/pic16/pic18f2685.h,
1865         * device/include/pic16/pic18f4585.h,
1866         * device/include/pic16/pic18f4680.h,
1867         * device/include/pic16/pic18f4682.h,
1868         * device/include/pic16/pic18f4685.h,
1869         * device/include/pic16/pic18fregs.h: added 18f2585, 18f2680,
1870           18f2682, 18f2685, 18f4585, 18f4680, 18f4682, 18f4685,
1871           patch contributed by Anton Strobl, applied with changes
1872
1873 2007-09-16 Raphael Neider <rneider AT web.de>
1874
1875         * device/include/pic16/pic18f2431.h,
1876         * device/include/pic16/pic18f25j10.h,
1877         * device/include/pic16/pic18f4431.h,
1878         * device/include/pic16/pic18f45j10.h: adopted common include style
1879         * device/include/pic16/pic18f1320.h,
1880         * device/include/pic16/pic18f2320.h,
1881         * device/include/pic16/pic18f2525.h,
1882         * device/include/pic16/pic18f4320.h,
1883         * device/include/pic16/pic18f4525.h: NEW, just include proper .h file
1884         * device/include/pic16/pic18fregs.h: prepared for automatic include
1885           file selection by having DEVICE.h for every DEVICE
1886         * device/lib/pic16/libdev/pic18f2320.c,
1887         * device/lib/pic16/libdev/pic18f4320.c: just include proper .c file
1888
1889         * device/lib/pic16/configure.in,
1890         * device/lib/pic16/configure: use rm -rf instead of rmdir
1891         * device/lib/pic16/Makefile.in: use RMDIR to remove build directories
1892         * device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast
1893
1894 2007-09-09 Borut Razem <borut.razem AT siol.net>
1895
1896         * src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
1897           distingush between i386 and ppc Mac OS X versions
1898
1899 2007-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
1900
1901         * src/mcs51/gen.c (genReceive): fixed bug 1788177
1902         * support/regression/tests/bug1788177.c: new, added
1903
1904 2007-09-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1905
1906         * doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
1907         * device/include/mcs51/lint.h added keyword __naked
1908
1909 2007-09-04 Maarten Brock <sourceforge.brock AT dse.nl>
1910
1911         * src/pic16/glue.c,
1912         * src/pic/glue.c,
1913         * src/SDCCmem.h: removed maxRegBank
1914         * src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
1915           RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
1916         * src/SDCCsymt.c (checkFunction): set RegBankUsed[] here
1917         * src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
1918           name and behaviour to handle banked functions
1919           (scan4op): and use it to fix bug 1786213
1920
1921 2007-09-03 Raphael Neider <rneider AT web.de>
1922
1923         * device/include/pic16/pic18f248.h,
1924         * device/include/pic16/pic18f258.h,
1925         * device/include/pic16/pic18f448.h,
1926         * device/lib/pic16/libdev/pic18f248.c,
1927         * device/lib/pic16/libdev/pic18f258.c,
1928         * device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
1929           added T0CONbits, fixes #1786891
1930
1931 2007-08-29 Maarten Brock <sourceforge.brock AT dse.nl>
1932
1933         * src/ds390/gen.c (genFarPointerSet),
1934         * src/hc08/ralloc.c (packRegisters),
1935         * src/mcs51/ralloc.c (packRegisters),
1936         * src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
1937           bug 1750318
1938         * src/SDCCicode.h: POINTER_SET can be true for literals too
1939         * support/regression/tests/bug1750318.c: new, added
1940
1941 2007-08-23 Borut Razem <borut.razem AT siol.net>
1942
1943         * debugger/mcs51/sdcdb.c: fixed compilation with older readline
1944           library versions without the completition functionality
1945
1946 2007-08-22 Raphael Neider <rneider AT web.de>
1947
1948         * device/include/pic16/pic18f1220.h,
1949         * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
1950
1951 2007-08-12 Borut Razem <borut.razem AT siol.net>
1952
1953         * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
1954
1955 2007-08-11 Borut Razem <borut.razem AT siol.net>
1956
1957         * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
1958           src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
1959           support/Util/SDCCerr.[ch] moved to src
1960         * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
1961           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
1962           device/examples/ds390/tinitalk/tinitalk.dsp,
1963           device/examples/serialcomm/windows/serialcomm.dsp,
1964           support/librarian/librarian.dsp:
1965           removed linking of unused odbc32.lib and odbccp32.lib
1966         * support/scripts/winres.h:
1967           added for compilation with Visual C++ 2005 Express Edition
1968
1969 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1970
1971         * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
1972           and CKCON1.
1973
1974 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1975
1976         * sdccconf_in.h: update the endian test so that SPARC Solaris
1977           does not throw syntax errors
1978
1979 2007-08-06 Borut Razem <borut.razem AT siol.net>
1980
1981         * doc/sdccman.lyx: removed two index entries which prevented the
1982           generation of sdcc doc archive
1983
1984 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1985
1986         * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
1987           instead of lyx 1.5.0.
1988
1989 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1990
1991         * device/include/hc08/mc68hc908apxx.h: new header contributed by
1992           Lucas Loizaga, with minor modifications. Thanks!
1993
1994 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1995
1996         * doc/sdccman.lyx: Documented --acall-ajmp and described new features
1997           in sdcclib.
1998
1999 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2000
2001         * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
2002           src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
2003           with acall/ajmp.
2004
2005 2007-07-22 Borut Razem <borut.razem AT siol.net>
2006
2007         * configure.in, configure: re-introduced .version
2008         * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
2009           the version reverted to 2.7.0
2010
2011 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
2012
2013         * configure.in,
2014         * doc/sdccman.lyx: bumped version to 2.7.3
2015         * device/include/mcs51/compiler.h: fixed elif->else
2016         * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
2017         * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
2018           (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
2019            enable accuse for bit operands
2020         * src/SDCCmain.c (printVersionInfo),
2021         * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
2022           environment descriptor
2023         * src/SDCCutil.h: added getBuildEnvironment
2024         * src/SDCCglue.c (initialComments): use getBuildEnvironment
2025         * support/regression/tests/bug1464657.c: enabled test test_Peephole251
2026         * support/regression/tests/bug-408972.c: enabled test leftShiftLong
2027         * support/regression/tests/bug1348008.c,
2028         * support/regression/tests/bug1496419.c,
2029         * support/regression/tests/bug1503067.c,
2030         * support/regression/tests/preproc.c: added empty tests
2031
2032 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
2033
2034         * support/regression/tests/bug1678803.c: new, added
2035
2036 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
2037
2038         * as/link/aslink.h,
2039         * as/link/hc08/lkihx.c,
2040         * as/link/hc08/lkrloc.c,
2041         * as/link/mcs51/lkihx.c,
2042         * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
2043           ihxExtendedLinearAddress
2044         * as/link/mcs51/lkrloc.c (relr),
2045         * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
2046           acall/ajmp, see bug 830513
2047
2048 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
2049
2050         * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
2051           (cseBBlock): remember aggr2ptr has been used
2052         * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
2053           (geniCodeAssign): fixed bug 868103
2054         * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
2055           added operandSize prototype
2056         * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
2057           (genDataPointerSet): use max of size of right and result,
2058           (gencjne): added parameter useCarry for optimization,
2059           (genCmpEq): use carry if appropriate,
2060           (genXor): check if operand already in carry
2061         * support/regression/tests/bug-868103.c: enabled test
2062
2063 2007-07-12 Raphael Neider <rneider AT web.de>
2064
2065         * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
2066
2067 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
2068
2069         * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
2070           from Robert Larice, thanks
2071         * support/regression/tests/bitopcse.c,
2072         * support/regression/tests/bitvars.c,
2073         * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
2074         * support/regression/tests/bug-927659.c: enabled test for z80
2075         * support/regression/tests/bug1738367.c: added extra tests by Frieder
2076         * support/regression/tests/bug1745717.c: new, added
2077         * support/regression/tests/literalop.c,
2078         * support/regression/tests/nullstring.c: removed storage definitions that
2079           are now in testfwk.h
2080
2081 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
2082
2083         * device/include/stdbool.h: do not define __bool_true_false_are_defined
2084           and bool for targets that do not fully support it.
2085         * support/regression/tests/bug1546986.c,
2086         * support/regression/tests/bug1723128.c,
2087         * support/regression/tests/bug1734654.c,
2088         * support/regression/tests/bug1738367.c,
2089         * support/regression/tests/constantRange.c: only use bool if allowed
2090
2091 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
2092
2093         * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
2094           Larice, also handle function pointers
2095         * support/regression/tests/bug1749275.c: new, added
2096
2097 2007-07-03 Borut Razem <borut.razem AT siol.net>
2098
2099         * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
2100           src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
2101           #1746528: SDCC should ignore ':' in inline assembler comments
2102         * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
2103
2104 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
2105
2106         * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
2107         * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
2108
2109 2007-06-29 Borut Razem <borut.razem AT siol.net>
2110
2111         * src/SDCCmain.c: fixed bug
2112           #1744746: SDCC #4867: broken option --xram-size
2113
2114 2007-06-28 Borut Razem <borut.razem AT siol.net>
2115
2116         * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
2117           find out the endianess of host machine for ucsim
2118
2119 2007-06-27 Borut Razem <borut.razem AT siol.net>
2120
2121         * support/regression/generate-cases.py: corrected the file name
2122           in warning
2123         * configure.in, configure, sdccconf_in.h: find out the endianess of
2124           host machine
2125         * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
2126           negative size
2127
2128 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
2129
2130         * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
2131
2132 2007-06-26 Borut Razem <borut.razem AT siol.net>
2133
2134         * support/regression/generate-cases.py: display warning if function
2135           list is empty; implemented more flexible rule for detection of
2136           testing functions, allowing return type 'void' in the same line as
2137           the function name in the function definition
2138         * support/regression/tests/bug-1654060.c: corrected test
2139         * support/librarian/sdcclib.c: fixed warning:
2140           format '%s' expects type 'char *', but argument 2 has type 'int'
2141
2142 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2143
2144         * support/librarian/sdcclib.c: Added feature Requests [1510635]
2145           Multiple infiles for sdcclib.
2146
2147 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2148
2149         * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
2150           bug 1731741
2151
2152 2007-06-18 Borut Razem <borut.razem AT siol.net>
2153
2154         * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
2155           how to handle comments, so they have to be removed by the
2156           preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
2157         * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
2158           src/pic16/main.c, src/pic/main.c, src/z80/main.c,
2159           support/Util/SDCCerr.c, support/Util/SDCCerr.h:
2160           table driven option hadling
2161
2162 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
2163
2164         * src/SDCCast.c (decorateType),
2165         * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
2166           iCode to ast level to fix bug 1738367
2167         * support/regression/tests/bug1738367.c: new, added
2168
2169 2007-06-15 Raphael Neider <rneider AT web.de>
2170
2171         * src/pic16/devices.inc,
2172         * device/lib/pic16/pics.all,
2173         * device/include/pic16/pic18fregs.h,
2174         * device/include/pic16/pic18f[24][45]20.h,
2175         * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
2176           18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
2177         * device/lib/pic16/Makefile.in: faster cleanup
2178
2179 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2180
2181         * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
2182
2183 2007-06-13 Raphael Neider <rneider AT web.de>
2184
2185         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
2186
2187 2007-06-12 Raphael Neider <rneider AT web.de>
2188
2189         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
2190           suppress bit defines if NO_BIT_DEFINES is #define'd
2191         * device/include/pic/pic*.h: recreated all headers to include
2192           conditional bit defines
2193         * device/include/pic/pic16f886.h,
2194         * device/include/pic/pic16f887.h: fixed based on newer .inc file
2195         * device/include/pic/recreate.sh: script to recreate the complete
2196           device library files based on the currently supported devices
2197
2198 2007-06-12 Borut Razem <borut.razem AT siol.net>
2199
2200         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
2201           support/regression/Makefile.in, support/scripts/build.mak,
2202           support/scripts/Makefile.snapshot:
2203           use new svn URL scheme
2204         * doc/sdccman.lyx: SDCC Wiki moved to
2205           http://sdcc.wiki.sourceforge.net/
2206
2207 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2208
2209         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
2210         * support/regression/tests/bug1734654.c: added
2211
2212 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
2213
2214         * src/SDCCast.c (decorateType): optimized '?' for equal operands
2215         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
2216           with literal operands
2217
2218 2007-06-10 Borut Razem <borut.razem AT siol.net>
2219
2220         * as/link/z80/lklibr.c: fixed mingw build warning
2221           lklibr.c:575: warning: implicit declaration of function 'tolower'
2222         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
2223           src/z80/main.c: move target specific options from src/SDCCmain.c
2224           to src/<target>/main.c
2225
2226 2007-06-09 Borut Razem <borut.razem AT siol.net>
2227
2228         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
2229           removed unused swap_sense; removed outBitCLong, replaced with outBitC
2230         * support/regression/tests/bug-1294691.c: added
2231
2232 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
2233
2234         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
2235           can also be static, fixes bug 1733438
2236         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
2237           have absolute address too
2238           (computeType): added optimization for 'cond ? true : false'
2239         * support/regression/tests/absolute.c: added test for static absolute var
2240
2241 2007-06-08 Raphael Neider <rneider AT web.de>
2242
2243         * src/regression/Makefile: suppress parallel builds, allow easy
2244           switching between pic14/pic16 ports
2245         * src/regression/picregs.h: added pic14/16 header file switch
2246         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
2247           inline.c,nestfor.c,string1.c}: include "picregs.h"
2248
2249 2007-06-07 Borut Razem <borut.razem AT siol.net>
2250
2251         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
2252           permanent solution to suppress GCC 4.2.0 c++ warning:
2253           deprecated conversion from string constant to `char *'
2254           use 'const char *' where ever required
2255         * support/regression/generate-cases.py: implemented more flexible rule
2256           for detection of testing functions, allowing white-spaces surrounding
2257           the function name and the 'void' parameter.
2258         * support/regression/tests/constantRange.c,
2259           support/regression/tests/scott-compare3.c: fixed failing regression
2260           tests, uncovered by implementation of more flexible rule for detection
2261           of testing functions
2262
2263 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
2264
2265         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
2266
2267 2007-06-04 Borut Razem <borut.razem AT siol.net>
2268
2269         * configure.in, configure, config_vc.awk: sdcc version number is now
2270           stored in configure.in; removed .version
2271         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
2272           doc/INSTALL.txt: version bumped to 2.7.2
2273         * sim/ucsim/configure.in, sim/ucsim/configure:
2274           use "read" to read from .version
2275
2276 2007-06-03 Borut Razem <borut.razem AT siol.net>
2277
2278         * */Makefile.in: removed annoying warning:
2279           Makefile:xx: Makefile.dep: No such file or directory
2280
2281 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
2282
2283         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
2284           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
2285         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
2286         * src/SDCCast.c (resultTypePropagate): propagate for '!',
2287           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
2288           bugfix: only use newBoolLink for bit result type
2289         * src/SDCCicode.c (geniCodeLogic): added param tree,
2290           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
2291           (geniCodeLogicAndOr): use IS_BIT,
2292           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
2293           (ast2iCode): added tree param to geniCodeLogic for comparisons
2294         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
2295         * support/regression/tests/bug1723128.c: added test NotZero
2296
2297 2007-06-01 Borut Razem <borut.razem AT siol.net>
2298
2299         * SDCPP synchronized with GCC CPP release version 4.2.0,
2300           currently the latest release:
2301         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2302           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
2303           support/cpp2/cppdefault.h, support/cpp2/except.h,
2304           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
2305           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
2306           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
2307           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
2308           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
2309           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
2310           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
2311           support/cpp2/opts.h, support/cpp2/output.h,
2312           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
2313           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
2314           support/cpp2/system.h, support/cpp2/version.c,
2315           support/cpp2/Makefile.in: modified
2316         * support/cpp2/opts-common.c: added
2317         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
2318         * device/lib/pic16/libdev/pic18f[24]5j10.c:
2319           search for included source file in local directory
2320         * sim/ucsim/configure, sim/ucsim/configure.in:
2321           temporary solution to suppress GCC 4.2.0 c++ warning:
2322           deprecated conversion from string constant to `char *'
2323
2324 2007-06-01 Raphael Neider <rneider AT web.de>
2325
2326         * device/lib/pic/libdev/pic12f683.c,
2327         * device/include/pic/pic12f683.h: added GPIO bits
2328
2329 2007-06-01 Raphael Neider <rneider AT web.de>
2330
2331         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
2332           quotation marks, clarified role of PIC14 vs. PIC16 ports
2333         * src/pic16/devices.inc,
2334         * device/include/pic16/pic18fregs.h,
2335         * device/include/pic16/pic18f[24][45]j10.h,
2336         * device/lib/pic16/pics.all,
2337         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
2338           18f24j10, 18f25j10, 18f44j10, and 18f45j10
2339         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
2340           for new devices as they are not yet supported by gputils
2341
2342 2007-05-31 Borut Razem <borut.razem AT siol.net>
2343
2344         * Small Device C Compiler 2.7.0 released
2345         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
2346           changed sdcc version to 2.7.1
2347         * support/scripts/sdcc.nsi: added How to create WIN32 release
2348           setup.exe package
2349
2350 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
2351
2352         * doc/sdccman.lyx: documented initialization and allocation of absolute
2353           variables, bit parameter passing, the need for function pointers to be
2354           reentrant and alpha quality support of inline and retrict
2355
2356 2007-05-26 Borut Razem <borut.razem AT siol.net>
2357
2358         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
2359           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
2360         * docs/knownbugs.html: updated
2361
2362 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
2363
2364         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
2365           thanks Jan Waclawek
2366         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
2367           AOP_CRY and ruonly
2368           (gencjneshort): optimized when left is AOP_DIR
2369         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
2370           initializing unions in a struct/array
2371         * support/regression/fwk/include/testfwk.h: added defines for data, near
2372           and far for host and z80
2373         * support/regression/tests/bug1723128.c: new, added
2374
2375 2007-05-22 Borut Razem <borut.razem AT siol.net>
2376
2377         * doc/knownbugs.html: updated
2378
2379 2007-05-21 Raphael Neider <rneider AT web.de>
2380
2381         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
2382           error message instead
2383         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
2384
2385 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
2386
2387         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
2388
2389 2007-05-21 Raphael Neider <rneider AT web.de>
2390
2391         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
2392           closes #1722392
2393         * src/regression/gpsim_assert.h,
2394         * src/regression/Makefile,
2395         * src/regression/pcodeopt.c: regression test for the above fix
2396
2397 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
2398
2399         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
2400           jumps to self, fixed bug 1717281
2401
2402 2007-05-10 Borut Razem <borut.razem AT siol.net>
2403
2404         * support/scripts/gen_known_bugs.pl: cosmetic fix
2405         * doc/knownbugs.html: generated by gen_known_bugs.pl
2406
2407 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2408
2409         * src/SDCCast.c (createFunction): also generate non-inlined version of
2410           function for functions declared as "static inline"
2411         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
2412           function can be inlined after non-inlined version generated.
2413
2414 2007-05-10 Borut Razem <borut.razem AT siol.net>
2415
2416         * support/scripts/gen_known_bugs.pl: added script
2417           which generates knownbugs.html
2418
2419 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
2420
2421         * doc/knownbugs.html: updated for release 2.7.0
2422
2423 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2424
2425         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
2426
2427 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
2428
2429         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
2430           (throughout): updated generating comments
2431         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
2432           (throughout): updated generating comments
2433         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
2434           rule instead of at the second, or it might skip lines when removing the
2435           complete match
2436         * support/regression/tests/bug1714204.c: changed test to foo
2437
2438 2007-05-08 Borut Razem <borut.razem AT siol.net>
2439
2440         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
2441           thanks to SDCC Distributed Compile Farm members,
2442           added Z80 and GBZ80 command line options
2443         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
2444
2445 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
2446
2447         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
2448         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
2449         * support/regression/tests/longlit.c: modified to be tested at all and
2450           to pass the actual test
2451
2452 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2453
2454         * device/include/mcs51/uPSD33xx.h: Added.
2455
2456 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
2457
2458         * device/lib/_gptrput.c,
2459         * device/lib/_gptrget.c: removed old code,
2460          (_gptrgetWord),
2461         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
2462         * support/regression/tests/bug1714204.c: new, added
2463
2464 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2465
2466         * support/regression/tests/regtrack.c: test was never executed
2467           because of the regression test being picky about white spaces.
2468         * device/lib/mcs51/crtclear.asm: added comment
2469
2470 2007-05-06 Raphael Neider <rneider AT web.de>
2471
2472         * device/lib/pic/Makefile.rules,
2473         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
2474           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
2475
2476 2007-05-06 Raphael Neider <rneider AT web.de>
2477
2478         * src/pic16/device.h,
2479         * src/pic16/main.h,
2480         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
2481           _pic16_setDefaultOptions): removed/reordered command-line args
2482         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
2483           devices, regrouped command line args, environment variables),
2484           clarified sone points, added sections on how to add devices to the
2485           PIC14/PIC16 ports
2486
2487 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
2488
2489         * src/z80/peeph.def: fixed bug in rule 2
2490
2491 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
2492
2493         * src/port.h: added TARGET_MCS51_LIKE
2494         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
2495           take advantage of it too
2496         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
2497           (shiftR2Left2Result): Optimized: don't check shifting by 0
2498         * src/z80/peeph-z80.def,
2499         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
2500           modifications, see patch 1700823
2501         * src/mcs51/peep.c (): fixed bug 1712928
2502         * support/regression/tests/bug1712928.c: new, added
2503
2504 2007-05-05 Borut Razem <borut.razem AT siol.net>
2505
2506         * device/lib/pic16/Makefile.common.in,
2507           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
2508           removed bash dependencies
2509
2510 2007-05-01 Borut Razem <borut.razem AT siol.net>
2511
2512         * src/SDCCicode.c:
2513           fixed bug #1710507: --i-code-in-asm makes compile fail
2514           all iCode comments are now one liners
2515         * src/mcs51/gen.c: fixed memory leak
2516
2517 2007-05-01 Raphael Neider <rneider AT web.de>
2518
2519         * device/lib/pic/libdev/*.c
2520         * device/include/pic/*.h: regenerated all device libs from updated
2521           .inc files
2522         * support/scripts/inc2h.pl: documented usage, now uses strict to
2523           catch more bugs
2524
2525 2007-04-30 Borut Razem <borut.razem AT siol.net>
2526
2527         * doc/sdccman.lyx:
2528           fixed bug #1669175: Problem with space in output paths
2529           documented how to use paths with spaces for Windows users
2530
2531 2007-04-29 Borut Razem <borut.razem AT siol.net>
2532
2533         * Fixed svn:eol-style and svn:keywords properties
2534         * src/SDCCval.c: fixed bug
2535           #1592871: Segfault with "large" const arrays of characters
2536           replaced recursion with iteration
2537         * Removed svn:executable property from non-executable files
2538
2539 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
2540
2541         * src/mcs51/gen.c (genRet): fixed bug 1707003
2542
2543 2007-04-27 Raphael Neider <rneider AT web.de>
2544
2545         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
2546           createReachingDefinitions,assignValnums,pic16_destructDF,
2547           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
2548           prevent NULL pointer dereferences
2549         * device/lib/pic/libdev/pic16f886.c,
2550         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
2551           prevent building them, gputils do not really support them yet
2552
2553 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2554
2555         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
2556           helps printf_small. 32 bytes more __idata mem.
2557
2558 2007-04-27 Raphael Neider <rneider AT web.de>
2559
2560         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
2561           return early when pb or pb->pcHead is NULL (patch #1708427)
2562         * src/regression/empty.c,
2563         * src/regression/Makefile: added test with empty functions
2564         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
2565
2566 2007-04-27 Borut Razem <borut.razem AT siol.net>
2567
2568         * src/SDCCast.c: fixed feature request
2569           #1547512: Redundant strings linked when using sizeof("abc")
2570
2571 2007-04-23 Borut Razem <borut.razem AT siol.net>
2572
2573         * doc/sdccman.lyx, src/SDCCmain.c:
2574           peep-hole comments are generated only if --fverbose-asm option is
2575           specified and --no-peep-comments is not, as proposed by Frieder.
2576         * support/regression/Makefile.in: compile regression tests with
2577           --fverbose-asm option so one can "grep" whether a new (or an old)
2578           peephole is (still) applied; requested by Frieder.
2579
2580 2007-04-23 Kevin Buettner <kevin AT buettner.to>
2581
2582         * device/include/pic/pic16f886.h,
2583         * device/include/pic/pic16f887.h,
2584         * device/lib/pic/libdev/pic16f886.c,
2585         * device/lib/pic/libdev/pic16f887.c,
2586         * device/include/pic/pic14devices.txt,
2587         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
2588
2589 2007-04-23 Kevin Buettner <kevin AT buettner.to>
2590
2591         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
2592           fixes #1704666
2593
2594 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2595
2596         * device/lib/_memset.c: assembler version for mcs51
2597
2598 2007-04-22 Borut Razem <borut.razem AT siol.net>
2599
2600         * support/scripts/listerr.c: program to create the list of errors and
2601           warnings list from - added
2602         * doc/sdccman.lyx: removed the note
2603           "For list of warnings and corresponding codes, see err_warn.txt"
2604         * src/SDCCsymt.c: fixed bug #1699804:
2605           Bug with some uses of sizeof(static local array) (MCS51)
2606         * support/regression/tests/bug-1699804.c: added
2607
2608 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
2609
2610         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
2611           (main): added option -i,
2612           (asmbl, case S_INCL): use search_path_fopen,
2613           mostly from patch 1579668 by Peter Miller, thanks
2614         * src/z80/main.c: fixed typo --callee-saves-bc
2615         * device/include/mcs51/compiler.h: added sfrword for Tasking
2616
2617 2007-04-20 Borut Razem <borut.razem AT siol.net>
2618
2619         * src/z80/main.c: replaced reserved keyword asm with asmblr
2620
2621 2007-04-19 Borut Razem <borut.razem AT siol.net>
2622
2623         * src/port.h: use const pointers to strings
2624         * src/SDCCargs.h: declared getStringArg() and getIntArg()
2625         * src/pic16/main.c: include SDCCargs.h
2626         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
2627           const char, since the strings are dynamically allocated
2628         * src/SDCCmain.c: options.code_seg and options.const_seg are
2629           dynamically allocated; check port specific command line options
2630           before the general ones
2631         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
2632
2633 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
2634
2635         * device/include/ds400rom.h,
2636         * device/lib/ds390/lcd390.c,
2637         * device/lib/ds390/memcpyx.c,
2638         * device/lib/ds390/rtc390.c,
2639         * device/lib/ds400/ds400rom.c,
2640         * device/lib/ds400/memcpyx.c,
2641         * device/lib/hc08/_ret.c: more replacements of keywords with their
2642           double underscore equivalents
2643         * device/lib/ds390/Makefile.in,
2644         * device/lib/ds400/Makefile.in,
2645         * device/lib/gbz80/Makefile.in,
2646         * device/lib/hc08/Makefile.in,
2647         * device/lib/mcs51/Makefile.in,
2648         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
2649
2650 2007-04-17 Borut Razem <borut.razem AT siol.net>
2651
2652         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
2653           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
2654           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
2655           to --fverbose-asm, to be gcc'ish
2656
2657 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
2658
2659         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
2660
2661 2007-04-17 Borut Razem <borut.razem AT siol.net>
2662
2663         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
2664         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
2665           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
2666           with their double underscore equivalent
2667
2668 2007-04-14 Borut Razem <borut.razem AT siol.net>
2669
2670         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
2671           source"
2672
2673 2007-04-13 Borut Razem <borut.razem AT siol.net>
2674
2675         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
2676           C99 standard
2677         * device/examples/serialcomm/windows/serial.[ch],
2678           device/examples/serialcomm/windows/test_serialcomm.cpp:
2679           updated by Bela Torok
2680         * device/examples/serialcomm/windows/serialcomm.dsw,
2681           device/examples/serialcomm/windows/serialcomm.dsp: added
2682
2683 2007-04-13 Jan Waclawek <wek AT efton.sk>
2684
2685         * doc/sdccman.lyx: additions and changes at various places
2686           (submitted as #1697136).
2687           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
2688
2689 2007-04-10 Borut Razem <borut.razem AT siol.net>
2690
2691         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
2692           LyX file format changed to 245
2693         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
2694           "FreeWare" replaced with "free open source"
2695
2696 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
2697
2698         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
2699
2700 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
2701
2702         * device/include/pic16/pic18fregs.h,
2703         * device/lib/_bp.c,
2704         * device/lib/_decdptr.c,
2705         * device/lib/_divsint.c,
2706         * device/lib/_divslong.c,
2707         * device/lib/_divuint.c,
2708         * device/lib/_divulong.c,
2709         * device/lib/_fs2schar.c,
2710         * device/lib/_fs2sint.c,
2711         * device/lib/_fs2slong.c,
2712         * device/lib/_fs2uchar.c,
2713         * device/lib/_fs2uint.c,
2714         * device/lib/_fs2ulong.c,
2715         * device/lib/_fsadd.c,
2716         * device/lib/_fscmp.c,
2717         * device/lib/_fsdiv.c,
2718         * device/lib/_fseq.c,
2719         * device/lib/_fsget1arg.c,
2720         * device/lib/_fsget2args.c,
2721         * device/lib/_fsgt.c,
2722         * device/lib/_fslt.c,
2723         * device/lib/_fsmul.c,
2724         * device/lib/_fsneq.c,
2725         * device/lib/_fsnormalize.c,
2726         * device/lib/_fsreturnval.c,
2727         * device/lib/_fsrshift.c,
2728         * device/lib/_fssub.c,
2729         * device/lib/_fsswapargs.c,
2730         * device/lib/_gptrget.c,
2731         * device/lib/_gptrgetc.c,
2732         * device/lib/_gptrput.c,
2733         * device/lib/_logexpf.c,
2734         * device/lib/_modsint.c,
2735         * device/lib/_modslong.c,
2736         * device/lib/_moduint.c,
2737         * device/lib/_modulong.c,
2738         * device/lib/_mulint.c,
2739         * device/lib/_mullong.c,
2740         * device/lib/_schar2fs.c,
2741         * device/lib/_ser.c,
2742         * device/lib/_setjmp.c,
2743         * device/lib/_sint2fs.c,
2744         * device/lib/_slong2fs.c,
2745         * device/lib/_spx.c,
2746         * device/lib/_uchar2fs.c,
2747         * device/lib/_uint2fs.c,
2748         * device/lib/_ulong2fs.c,
2749         * device/lib/asincosf.c,
2750         * device/lib/atanf.c,
2751         * device/lib/calloc.c,
2752         * device/lib/ds390/tinibios.c,
2753         * device/lib/ds400/tinibios.c,
2754         * device/lib/expf.c,
2755         * device/lib/free.c,
2756         * device/lib/hc08/_mulint.c,
2757         * device/lib/logf.c,
2758         * device/lib/malloc.c,
2759         * device/lib/printf_fast.c,
2760         * device/lib/printf_tiny.c,
2761         * device/lib/printfl.c,
2762         * device/lib/realloc.c,
2763         * device/lib/ser_ir.c,
2764         * device/lib/serial.c,
2765         * support/regression/tests/libmullong.c: replaced all special keywords
2766           with their double underscore equivalent
2767         * support/regression/ports/mcs51-xstack-auto/spec.mk,
2768         * device/lib/Makefile.in: compile libs with --std-c99 instead of
2769           --std-sdcc99
2770         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
2771           (genRet): if the bit-symbol is ruonly it already is in the carry
2772         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
2773         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
2774         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
2775           type UCHAR if dest is not bit
2776
2777 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
2778
2779         * device/include/math.h,
2780         * device/lib/cotf.c,
2781         * device/lib/expf.c,
2782         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
2783
2784 2007-04-01 Borut Razem <borut.razem AT siol.net>
2785
2786         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
2787           fixed bug #1692042: input buffer overflow...scanner uses REJECT
2788         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
2789           gcc_unreachable() called internal_error()...
2790
2791 2007-03-30 Raphael Neider <rneider AT web.de>
2792
2793         * src/pic/ralloc.c (isData): suppress garbage debug output
2794
2795 2007-03-28 Borut Razem <borut.razem AT siol.net>
2796
2797         * doc/sdccman.lyx:
2798           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
2799           is developed, built and used worldwide, and the word "night" doesn't
2800           make any sense.
2801
2802 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
2803
2804         * device/include/mcs51/C8051F360.h: new, added
2805         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
2806
2807 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2808
2809         * src/SDCC.y (declaration_specifiers, function_specifier),
2810         * support/Util/SDCCerr.c,
2811         * support/Util/SDCCerr.h,
2812         * src/SDCCsymt.h,
2813         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
2814           inline keyword
2815         * src/SDCCmem.c (deallocParms),
2816         * src/SDCCast.c: support for function inlining, not quite complete
2817         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
2818           'restrict' qualifier
2819
2820 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
2821
2822         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
2823           (saveRBank, unsaveRBank): don't save bits,
2824           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
2825         * support/regression/tests/bug1535242.c: new, added
2826         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
2827           thanks Alexey Shamrin <shamrin AT gmail.com>,
2828           made assert.h header ANSI compliant (added a check for NDEBUG macro,
2829           removed header guard)
2830         * .version,
2831         * sdcc.spec: bumped version to 2.6.5
2832         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
2833
2834 2007-03-22 Borut Razem <borut.razem AT siol.net>
2835
2836         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
2837           fixed bug #1653671: sdcdb integration into ddd is broken
2838
2839 2007-03-22 Raphael Neider <rneider AT web.de>
2840
2841         * src/pic/gen.c (popGetExternal): augmented to also create references
2842           to external variables (not only labels),
2843           (genCall): comment on plan to reduce PAGESEL overhead,
2844           (genFunction, genEndFunction): also save/restore FSR around interrupt
2845           handling code, removed lots of unused code
2846           (genDivOneByte): release acquired temp register
2847         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
2848           of popGetExternal
2849         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
2850           for registers that need to be saved during interrupts (FSR, STATUS,
2851           PCLATH; W needs special handling), currently only FSR is used
2852
2853 2007-03-22 Raphael Neider <rneider AT web.de>
2854
2855         * device/include/pic/pic14devices.txt: 16f688 has only one config word
2856
2857 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2858
2859         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
2860
2861 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
2862
2863         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
2864
2865 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
2866
2867         * as/link/aslink.h: added LKOBJEXT
2868         * as/link/hc08/link_hc08.dsp,
2869         * as/link/hc08/Makefile.bcc,
2870         * as/link/hc08/Makefile.in,
2871         * as/link/mcs51/aslink.dsp,
2872         * as/link/mcs51/Makefile.bcc,
2873         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
2874         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
2875         * as/link/lkaomf51.c: merged and moved
2876         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
2877         * as/link/z80/lkdata.c,
2878         * as/link/lkdata.c: merged and moved
2879         * as/link/hc08/lkmain.c,
2880         * as/link/mcs51/lkmain.c: cosmetic changes
2881         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
2882         * as/link/lklex.c: use LKOBJEXT
2883         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
2884           ANSI-fied functions, removed bubble-sorts
2885         * as/link/z80/lksym.c           as/link/lksym.c: merged,
2886           ANSI-fied functions
2887         * as/link/z80/linkgbz80.dsp,
2888         * as/link/z80/linkz80.dsp,
2889         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
2890           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
2891         * as/link/z80/lkhead.c,
2892         * as/link/z80/lklex.c: deleted
2893         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
2894         * as/link/z80/lkmain.c: added copyfile()
2895
2896 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2897
2898         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
2899
2900 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2901
2902         * device/lib/_strlen.c: assembler version for mcs51
2903
2904 2007-03-13 Raphael Neider <rneider AT web.de>
2905
2906         * device/include/pic16/pic18f2221.h,
2907         * device/include/pic16/pic18f2321.h,
2908         * device/include/pic16/pic18f2331.h,
2909         * device/include/pic16/pic18f4221.h,
2910         * device/include/pic16/pic18f4321.h,
2911         * device/include/pic16/pic18f4331.h: fixed config byte location names
2912         * support/scripts/inc2h-pic16.pl: removed debug output, emit
2913           consistently named config byte locations
2914
2915 2007-03-13 Borut Razem <borut.razem AT siol.net>
2916
2917         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
2918           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
2919           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
2920           as/link/z80/Makefile.in, as/z80/Makefile.in:
2921           introduced LDFLAGS
2922
2923 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2924
2925         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
2926         * device/lib/printf_large.c: pointer was converted to generic
2927         pointer for mcs51 models other than model-small (Maarten noticed)
2928
2929 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2930
2931         * device/include/mcs51/ADuC84x.h: Added.
2932
2933 2007-03-10 Borut Razem <borut.razem AT siol.net>
2934
2935         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
2936           fixed RFE #1624219: double backslashes in filenames;
2937           functions hexEscape(), octalEscape() and copyStr() moved from
2938           SDCCval.c to SDCCutil.c and made them glovbally available
2939
2940 2007-03-09 Borut Razem <borut.razem AT siol.net>
2941
2942         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
2943           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
2944           1673361: Missaligned comments in output files
2945
2946 2007-03-09 Raphael Neider <rneider AT web.de>
2947
2948         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
2949
2950 2007-03-09 Raphael Neider <rneider AT web.de>
2951
2952         * src/pic/gen.c,
2953         * src/pic/glue.c,
2954         * src/pic/ralloc.c: suppress undesired debug output
2955         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
2956
2957 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2958
2959         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
2960
2961 2007-03-07 Borut Razem <borut.razem AT siol.net>
2962
2963         * device/lib/pic16/libdev/pic18f[24][34]31.c:
2964           search include files in the current directory
2965
2966 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
2967
2968         * src/SDCCglue.c (emitMaps, glue),
2969         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
2970           absolute xdata
2971         * support/regression/tests/absolute.c: added xdata test
2972
2973 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
2974
2975         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
2976           added condition to macro, fixes bug 1666080
2977
2978 2007-03-02 Raphael Neider <rneider AT web.de>
2979
2980         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
2981
2982 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2983
2984         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
2985         be cleared. Unconditionally set __XPAGE
2986         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
2987
2988 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2989
2990         * src/SDCCglobl.h,
2991         * src/SDCCmain.c,
2992         * src/mcs51/gen.c,
2993         * src/mcs51/rtrack.c,
2994         * src/ds390/gen.c,
2995         * doc/sdccman.lyx: added --no-gen-comments
2996         * src/mcs51/peeph.def: added 192.b, disabled 185
2997
2998 2007-02-25 Raphael Neider <rneider AT web.de>
2999
3000         * src/pic16/gen.c (genCast): fixed typo
3001         * device/lib/pic16/Makefile.subdir: only install existing files
3002         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
3003
3004 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
3005
3006         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
3007         * device/lib/mcs51/crtclear.asm,
3008         * device/lib/mcs51/crtxclear.asm: renumbered labels
3009         * device/lib/mcs51/Makefile.in: added crtcall.asm
3010         * doc/sdccman.lyx: documented mcs51 crt* library startup code
3011         * src/mcs51/gen.c (movc): removed,
3012           (aopGet, genPlusBits): clear a after loading the carry (possibly from
3013             acc.x or psw.x),
3014           (toCarry, genSend, genRet): added function toCarry,
3015           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
3016           (assignBit, genAssign, genCast): added function assignBit
3017         * src/mcs51/Makefile.bcc: added rtrack.c
3018         * src/mcs51/ralloc.h: made valueKnown a bitfield
3019         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
3020           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
3021           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
3022         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
3023         * src/z80/gen.c: added AOP_IS_PAIRPTR,
3024           (_pop): only pop valid pairs, see gencjneshort,
3025           (gencjneshort): return pair that still needs to be popped, restructured,
3026           (gencjne, genCmpEq): call _pop
3027
3028 2007-02-23 Raphael Neider <rneider AT web.de>
3029
3030         * device/include/pic/pic14devices.txt: 16f684 has only one config word
3031
3032 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3033
3034         * device/include/mcs51/P89LPC925.h: Added.
3035
3036 2007-02-18 Raphael Neider <rneider AT web.de>
3037
3038         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
3039
3040 2007-02-17 Borut Razem <borut.razem AT siol.net>
3041
3042         * support/cpp2/directives.c, support/cpp2/version.c:
3043           synchronized with GCC CPP 4.1.2
3044
3045 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3046
3047         * src/mcs51/rtrack.h,
3048         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
3049           by checking the strings passed by emitcode() to the assembler.
3050           Feel free to change. This in part addresses RFE #482179.
3051           Set environment variable SDCC_RTRACK to enable.
3052         * src/mcs51/gen.c: inserted hooks
3053         * src/mcs51/ralloc.h: added two members to struct regs
3054         * support/regression/tests/regtrack.c: added
3055
3056 2007-02-14 Borut Razem <borut.razem AT siol.net>
3057
3058         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
3059         * Makefile.in: applied patch from Makefile related part of
3060           #1469393: Compiler does not initialize static data
3061
3062 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
3063
3064         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
3065           for better fix of bug 1273984, compiles pic16 rand.c
3066
3067 2007-02-12 Borut Razem <borut.razem AT siol.net>
3068
3069         * src/pic16/main.c: fixed pic16 standard library directory bug
3070
3071 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
3072
3073         * src/hc08/gen.c (genSwap): fix swap regression test
3074
3075 2007-02-10 Borut Razem <borut.razem AT siol.net>
3076
3077         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
3078           with same scope
3079         * support/regression/tests/bug-1654060.c: added regression test for
3080           #1654060
3081
3082 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
3083
3084         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
3085         bit moves in return statement
3086
3087 2007-02-09 Borut Razem <borut.razem AT siol.net>
3088
3089         * src/SDCC.y: fixed bug #1654060 typedef within function causes
3090           syntax error
3091
3092 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
3093
3094         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
3095         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
3096
3097 2007-02-07 Raphael Neider <rneider AT web.de>
3098
3099         * src/pic16/devices.inc,
3100         * device/include/pic16/pic18fregs.h,
3101         * device/include/pic16/pic18f[24][34]31.h,
3102         * device/lib/pic16/libdev/pic18f[24][34]31.c,
3103         * device/lib/pic16/pics.all: added 18f[24][34]31 family
3104         * device/lib/pic16/libio/i2c.ignore: do not build i2c
3105
3106 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
3107
3108         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
3109           can this have lived here for so many years?
3110         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
3111           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
3112         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
3113
3114 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
3115
3116         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
3117         appended by loop induction must be at the very end of the eBBlock
3118
3119 2007-02-05 Kevin Vigor
3120
3121         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
3122
3123 2007-02-05 Borut Razem <borut.razem AT siol.net>
3124
3125         * support/regression/fwk/lib/timeout.c: native WIN32 port,
3126           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
3127
3128 2007-02-03 Borut Razem <borut.razem AT siol.net>
3129
3130         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
3131           applied patch #1646602 option to set default signedness of char to
3132           unsigned, added -funsigned-char command line option,
3133           thanks to Gunther Jehle
3134         * device/lib/Makefile.in: added the -f option to rm so it doesn't
3135           prompt for file deletion a few hundred times (especially the
3136           subversion files, which have ro permissions so it asks for
3137           confirmation), thanks to Simon McAuliffe;
3138           added {} + option to find in order to remove multiple files from a
3139           single rm commad
3140
3141 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3142
3143         * device/include/mcs51/SST89x5xRDx.h: Added.
3144
3145 2007-02-02 Raphael Neider <rneider AT web.de>
3146
3147         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
3148         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
3149
3150 2007-02-01 Raphael Neider <rneider AT web.de>
3151
3152         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
3153           config words again
3154
3155 2007-01-31 Borut Razem <borut.razem AT siol.net>
3156
3157         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
3158           if compiled with GCC. Thanks to Raphael Neider
3159
3160 2007-01-31 Raphael Neider <rneider AT web.de>
3161
3162         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
3163             operand names, handles name and (name + n) for all n,
3164           (sameBank): restructured, also check bank allocation policy,
3165         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
3166           (pic14_operandsAllocatedInSameBank): check whether to operands
3167             will be allocated into the same bank (i.e., section) to reduce
3168             BANKSEL overhead, queried from pcode.c:sameBank,
3169           (pic14printLocals): reintroduced clustering registers into a single
3170             section: all compiler generated symbols will now reside in one
3171             bank (per file), reducing BANKSEL overhead and code size,
3172           (showAllMemmaps): use local dbuf where possible
3173
3174 2007-01-29 Raphael Neider <rneider AT web.de>
3175
3176         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
3177           (call_libraryfunc): retrieve/create symbol and mark as used,
3178           (genFunction): mark defined functions as non-extern and add again
3179            to code memmap for later output
3180         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
3181           (pic14printLocals): reworked for new symbol emission,
3182           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
3183           showAllMemmaps): reworked symbol output using dbufs, added handling
3184             of string literals (still incomplete),
3185           (picglue): removed symbol emission, moved into showAllMemmaps,
3186           (emitSymbolSet): new workhorse for symbol output,
3187           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
3188
3189 2007-01-29 Borut Razem <borut.razem AT siol.net>
3190
3191         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
3192           component contains the extension separator.
3193
3194 2007-01-28 Borut Razem <borut.razem AT siol.net>
3195
3196         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
3197           on WIN32
3198         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
3199           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
3200           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
3201           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
3202           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
3203           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
3204           src/z80/gen.c, support/Util/MySystem.c:
3205           accept slash and backslash as directory separator on WIN32 and
3206           Cygwin ports
3207
3208 2007-01-28 Raphael Neider <rneider AT web.de>
3209
3210         * src/pic16/devices.inc,
3211         * device/include/pic16/pic18f[24][23]21.h,
3212         * device/include/pic16/pic18fregs.h,
3213         * device/lib/pic16/libdev/pic18f[24][23]21.c,
3214         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
3215         * device/lib/pic16/libio/adc.ignore,
3216         * device/lib/pic16/libio/i2c.ignore,
3217         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
3218           family, as gputils do not yet support the devices
3219         * device/lib/pic16/Makefile.subdir: ignore errors on install
3220         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
3221           headers and libraries from gputils .inc files
3222
3223 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
3224
3225         * doc/sdccman.lyx: add printf_fast_f precision limitation note
3226
3227 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
3228
3229         * doc/sdccman.lyx: add printf benchmarks
3230
3231 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
3232
3233         * device/lib/printf_fast.c: fix %c, char promoted to int
3234         * device/lib/printf_tiny.c: fix %c, char promoted to int
3235
3236 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
3237
3238         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
3239
3240 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3241
3242         * support/regression/tests/swap.c: 64 bit hosts failed
3243         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
3244
3245 2007-01-25 Raphael Neider <rneider AT web.de>
3246
3247         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
3248           based on absolute register address, patch by Alex Blond
3249
3250 2007-01-22 Raphael Neider <rneider AT web.de>
3251
3252         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
3253           emitted, do not emit them again...
3254
3255 2007-01-22 Raphael Neider <rneider AT web.de>
3256
3257         * src/regression/bank1.c, src/regression/compare6.c,
3258           src/regression/add.c: cosmetic changes
3259         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
3260         * src/pic/gen.c: fixed global zero and one,
3261           (aopForSym): removed unued code,
3262           (aopGet): assert aop is defined, check and use `index' of
3263             pCodeImmd operands (fixes #1630908),
3264         * src/pic/pcode.c (get_op): added output of generic pointer tag,
3265           (register_reassign): prevent accidental register unification,
3266           (ReuseReg): cosmetic changes (also above)
3267         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
3268           pic14emitStaticSeg): do not emit initialized data,
3269           (printIval*): replaced with working versions,
3270           (pic14createInterruptVect,picglue): use idata for initialized data,
3271             now init data should work in all modules (not only main()),
3272         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
3273
3274 2007-01-21 Borut Razem <borut.razem AT siol.net>
3275
3276         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
3277           use -fPIC or -fpic if they are supported and not ignored
3278         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
3279         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
3280
3281 2007-01-20 Borut Razem <borut.razem AT siol.net>
3282
3283         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
3284           implemented RFE #1470316: allow "$" in variable names
3285
3286 2007-01-20 Raphael Neider <rneider AT web.de>
3287
3288         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
3289
3290 2007-01-20 Raphael Neider <rneider AT web.de>
3291
3292         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
3293         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
3294         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
3295         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
3296           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
3297         * device/lib/pic/libdev/pic*.c,
3298         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
3299         * device/lib/pic/libdev/Makefile.in: show progress
3300
3301 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
3302
3303         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
3304         * support/scripts/sdcc_cygwin_mingw32,
3305         * support/scripts/sdcc_mingw32,
3306         * support/scripts/build.mak: replaced --datadir by --datarootdir for
3307         conformance with autoconf 2.6
3308
3309 2007-01-19 Raphael Neider <rneider AT web.de>
3310
3311         * src/pic/device.c (register_map): fixed list construction
3312         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
3313           (genMod): removed case for genModbits,
3314           (genModbits): removed as now unused/unimplemented
3315         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
3316
3317 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3318
3319         * support/regression/tests/swap.c: added in response to #1638622
3320         * doc/sdccman.lyx: synced version, minor changes
3321
3322 2007-01-18 Borut Razem <borut.razem AT siol.net>
3323
3324         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
3325           thanks to Gunther Jehle
3326         * src/asm.c: don't die if the file drfined in #line couldn't be opened
3327         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
3328           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
3329           use filename in lineno instead.
3330         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
3331           print the file name in ast_print()
3332
3333 2007-01-18 Borut Razem <borut.razem AT siol.net>
3334
3335         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
3336           defined in MSVC
3337         * src/SDCC.lex: stringLiteral() returns const char pointer,
3338           EOF detection in stringLiteral(), fixed asmbuf memory leak,
3339           fixed column counting
3340         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
3341           accept const char pointer as parameter
3342         * src/SDCCdwarf2.c: corrected buffer size
3343
3344 2007-01-17 Borut Razem <borut.razem AT siol.net>
3345
3346         * support/Util/dbuf_string.c: fixed for amd64
3347
3348 2007-01-15 Borut Razem <borut.razem AT siol.net>
3349
3350         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
3351           removed terminal symbol ELIPSIS, since it was never generated by the
3352           lexer and it was wrongly used in parameter_identifier_list rule
3353
3354 2007-01-15 Raphael Neider <rneider AT web.de>
3355
3356         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
3357             code page and data banking description
3358         * src/pic/genarith.c,
3359         * src/pic/gen.h: removed bit arithmetic functions,
3360             updated exit(1) to exit(EXIT_FAILURE)
3361         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
3362         * device/include/pic16/pic18f2455.h,
3363         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
3364             TRISD and TRISE, fixed/added some bit names
3365         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
3366         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
3367             updated pic18f2455.{c,h} instead of duplicating them
3368
3369 2007-01-14 Borut Razem <borut.razem AT siol.net>
3370
3371         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
3372           Cannot debug files that contain spaces in the path name
3373           by converting spaces in asm file name to underscores
3374
3375 2007-01-13 Borut Razem <borut.razem AT siol.net>
3376
3377         * doc/sdccman.lyx: fixed format errors
3378
3379 2007-01-10 Borut Razem <borut.razem AT siol.net>
3380
3381         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
3382           codeseg/constseg #pragma fail
3383         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
3384         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
3385           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
3386           suppoprt/cpp2/sdcpp.[ch]: house cleaning
3387
3388 2007-01-09 Borut Razem <borut.razem AT siol.net>
3389
3390         * get rid of diagnistic.[ch], pretty-print.[ch],
3391           c-pretty-print.[ch], ... used just for error, warning, ...
3392           message formatting
3393         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
3394           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
3395           suppoprt/cpp2/pretty-print.[ch]:
3396           removed
3397         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
3398           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
3399           suppoprt/cpp2/sdcpp.dsp:
3400           changed
3401
3402 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
3403
3404         * device/lib/printf_large.c (output_float): removed recursion,
3405           use smaller buffer on stack for mcs51,
3406           fixed bug printing 1.96
3407         * support/regression/tests/snprintf.c: added test
3408
3409 2007-01-07 Borut Razem <borut.razem AT siol.net>
3410
3411         * use dynamic memory buffers instead temporary files
3412         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
3413           added
3414         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
3415           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
3416           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
3417           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
3418           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
3419           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
3420           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
3421           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
3422           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
3423           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
3424           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
3425           support/Util/dbuf.c, support/Util/dbuf.h:
3426           modified
3427         * .version, sdcc.spec: bumped version to 2.6.4
3428
3429 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
3430
3431         * src/port.h: added TARGET_Z80_LIKE macro
3432         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
3433           output PSEG location if --xram-loc or --xstack-loc was used
3434         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
3435
3436 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
3437
3438         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
3439         * as/as_z80.dsp,   as/z80/as_z80.dsp,
3440         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
3441         * sdcc.dsw: moved project files into subdir
3442         * as/hc08/as_hc08.dsp,
3443         * as/hc08/Makefile.bcc,
3444         * as/hc08/Makefile.in,
3445         * as/mcs51/Makefile.bcc,
3446         * as/mcs51/Makefile.in,
3447         * as/z80/Makefile.bcc,
3448         * as/z80/Makefile.in,
3449         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
3450         * as/hc08/asm.h,
3451         * as/mcs51/asm.h,
3452         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
3453         * as/hc08/asmain.c,
3454         * as/hc08/assym.c,
3455         * as/mcs51/asmain.c,
3456         * as/mcs51/assym.c,
3457         * as/z80/assym.c: removed include "strcmpi.h"
3458         * as/hc08/strcmpi.c,
3459         * as/hc08/strcmpi.h,
3460         * as/mcs51/strcmpi.c,
3461         * as/mcs51/strcmpi.h,
3462         * support/Util/strcmpi.c,
3463         * support/Util/strcmpi.h: removed files
3464         * as/strcmpi.c: added as_strncmpi()
3465
3466 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3467
3468         * sdcc.dsw: Added some dependencies on project config.dsp
3469
3470 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
3471
3472         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
3473           with [di]ram_start to fix a regresion
3474
3475 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
3476
3477         * configure.in: added missing mcs51 in status output
3478         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
3479         directory
3480         * debugger/mcs51/clean.mk (distclean): remove config.h
3481         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
3482         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
3483         options.h, s-options-h and options.c
3484         * support/cpp2/clean.mk: unused, removed
3485         * Makefile.common.in,
3486         * main_in.mk,
3487         * as/Makefile.in,
3488         * as/hc08/Makefile.in,
3489         * as/hc08/clean.mk,
3490         * as/mcs51/Makefile.in,
3491         * as/mcs51/clean.mk,
3492         * as/z80/clean.mk,
3493         * as/z80/conf.mk,
3494         * as/z80/Makefile.in,
3495         * as/z80/clean.mk,
3496         * as/link/Makefile.in,
3497         * as/link/hc08/Makefile.in,
3498         * as/link/hc08/clean.mk,
3499         * as/link/mcs51/Makefile.in,
3500         * as/link/mcs51/clean.mk,
3501         * as/link/z80/Makefile.in,
3502         * as/link/z80/clean.mk,
3503         * as/link/z80/conf.mk,
3504         * debugger/mcs51/Makefile.in,
3505         * debugger/mcs51/clean.mk,
3506         * device/include/Makefile.in,
3507         * device/lib/Makefile.in,
3508         * device/lib/mcs51/Makefile.in,
3509         * device/lib/pic/Makefile.in,
3510         * device/lib/pic/Makefile.common.in,
3511         * device/lib/pic/Makefile.subdir,
3512         * device/lib/pic/Makefile.rules,
3513         * device/lib/pic16/libio/Makefile.in,
3514         * device/lib/pic16/Makefile.subdir,
3515         * device/lib/pic16/libdev/Makefile.in,
3516         * device/lib/pic16/Makefile.rules,
3517         * device/lib/pic16/Makefile.common.in,
3518         * sim/ucsim/avr.src/Makefile.in,
3519         * sim/ucsim/main_in.mk,
3520         * sim/ucsim/cmd.src/Makefile.in,
3521         * sim/ucsim/doc/Makefile.in,
3522         * sim/ucsim/gui.src/Makefile.in,
3523         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
3524         * sim/ucsim/gui.src/serio.src/Makefile.in,
3525         * sim/ucsim/hc08.src/Makefile.in,
3526         * sim/ucsim/libltdl/Makefile.in,
3527         * sim/ucsim/s51.src/Makefile.in,
3528         * sim/ucsim/sim.src/Makefile.in,
3529         * sim/ucsim/sim.src/conf.mk,
3530         * sim/ucsim/xa.src/Makefile.in,
3531         * sim/ucsim/z80.src/Makefile.in,
3532         * src/Makefile.in,
3533         * src/clean.mk,
3534         * src/port.mk,
3535         * support/cpp2/Makefile.in,
3536         * support/librarian/Makefile.in,
3537         * support/librarian/clean.mk,
3538         * support/makebin/Makefile.in,
3539         * support/makebin/clean.mk,
3540         * support/packihx/Makefile.in,
3541         * support/regression/Makefile.in,
3542         * support/regression/ports/ds390/spec.mk,
3543         * support/regression/ports/gbz80/spec.mk,
3544         * support/regression/ports/hc08/spec.mk,
3545         * support/regression/ports/mcs51/spec.mk,
3546         * support/regression/ports/mcs51-large/spec.mk,
3547         * support/regression/ports/mcs51-medium/spec.mk,
3548         * support/regression/ports/mcs51-xstack-auto/spec.mk,
3549         * support/regression/ports/pic14/spec.mk,
3550         * support/regression/ports/pic16/spec.mk,
3551         * support/regression/ports/mcs51-stack-auto/spec.mk,
3552         * support/regression/ports/ucz80/spec.mk,
3553         * support/regression/ports/xa51/spec.mk,
3554         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
3555         adding a slash after $(top_builddir) and/or adding @datarootdir@
3556         * configure.in,
3557         * debugger/mcs51/configure.in,
3558         * device/lib/pic/configure.in,
3559         * device/lib/pic16/configure.in,
3560         * sim/ucsim/configure.in,
3561         * support/cpp2/configure.in,
3562         * support/packihx/configure.in: changed AC_PREREQ to 2.60
3563         * configure,
3564         * debugger/mcs51/configure,
3565         * device/lib/pic/configure,
3566         * device/lib/pic16/configure,
3567         * sim/ucsim/configure,
3568         * support/cpp2/configure,
3569         * support/packihx/configure: generated with autoconf 2.60
3570
3571 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
3572
3573         * as/link/hc08/lkihx.c (newArea),
3574         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
3575
3576 2007-01-02 Borut Razem <borut.razem AT siol.net>
3577
3578         * doc/sdccman.lyx: documented #pragma sdcc_hash
3579         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
3580           initialized to 0
3581         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
3582
3583 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
3584
3585         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
3586         empty 'while'-loop to work correctly, see regression test 'while.c'
3587         * support/regression/tests/while.c: added
3588
3589 2007-01-01 Borut Razem <borut.razem AT siol.net>
3590
3591         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
3592           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
3593           support/cpp2/libcpp/sdcpp.c:
3594           sdcpp specific pragma/directive/option handling moved to sdcpp.c
3595         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
3596         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
3597
3598 2006-12-31 Borut Razem <borut.razem AT siol.net>
3599
3600         * SDCPP synchronized with GCC CPP release version 4.1.1,
3601           currently the latest release:
3602         * support/cpp2/libcpp, support/cpp2/libcpp/include,
3603           support/cpp2/libcpp/include/cpp-id-data.h
3604           support/cpp2/libiberty/fopen_unlocked.c
3605           support/cpp2/libiberty/md5.c
3606           support/cpp2/md5.h
3607           support/cpp2/opt-functions.awk
3608           support/cpp2/opt-gather.awk
3609           support/cpp2/optc-gen.awk
3610           support/cpp2/opth-gen.awk:
3611           added
3612         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
3613           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
3614           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
3615           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
3616           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
3617           support/cpp2/diagnostic.h, support/cpp2/except.h,
3618           support/cpp2/hwint.h, support/cpp2/input.h,
3619           support/cpp2/intl.h, support/cpp2/move-if-change,
3620           support/cpp2/opts.c, support/cpp2/opts.h,
3621           support/cpp2/output.h, support/cpp2/prefix.c,
3622           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
3623           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
3624           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
3625           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
3626           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
3627           support/cpp2/version.c:
3628           modified
3629         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
3630           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
3631           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
3632           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
3633           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
3634           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
3635           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
3636           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
3637           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
3638           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
3639           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
3640           moved
3641         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
3642           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
3643           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
3644           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
3645           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
3646           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
3647           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
3648           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
3649           support/cpp2/hashtable.h, support/cpp2/line-map.c,
3650           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
3651           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
3652           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
3653           support/cpp2/system.h:
3654           deleted / moved
3655
3656 2006-12-31 Borut Razem <borut.razem AT siol.net>
3657
3658         * configure.in, configure: fixed bug #1538756: configure dies if bison
3659           and flex are not installed, 2nd try
3660
3661 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
3662
3663         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
3664         400.x for better code in RFE 899102
3665
3666 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
3667
3668         * src/SDCCpeeph.c (deadMove),
3669         * src/port.h,
3670         * src/mcs51/peep.h: renamed 'op' by 'reg'
3671         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
3672         (scan4op): small change for removeDeadMove(), added support for
3673         'callee saves' and/or PACLL function calls,
3674         (removeDeadMove): added, removes superflous 'mov r%1,%2',
3675         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
3676         left in new dispatcher mcs51DeadMove()
3677         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
3678         removeDeadMove()
3679         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
3680
3681 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3682
3683         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
3684           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
3685
3686 2006-12-30 Borut Razem <borut.razem AT siol.net>
3687
3688         * support/cpp2/spacs.h: deleted from svn
3689         * configure.in, configure: fixed bug #1538756: configure dies if bison
3690           and flex are not installed
3691
3692 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
3693
3694         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
3695           with this z80 passes printf float test when enabled
3696         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
3697
3698 2006-12-28 Borut Razem <borut.razem AT siol.net>
3699
3700         * support/cpp2/config.in, support/cpp2/configure.in,
3701           support/cpp2/configure, support/cpp2/Makefile.in:
3702           fix for the solaris build
3703
3704 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3705
3706         * src/SDCC.y (type_specifier2, pointer),
3707         * src/SDCCsymt.h,
3708         * src/SDCCsymt.c (mergeSpec, checkSClass),
3709         * support/Util/SDCCerr.c,
3710         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
3711         * support/valdiag/valdiag.py: Allow test cases to specify
3712           required language standard
3713         * support/valdiag/tests/restrict.c: New file to test restrict keyword
3714         * support/valdiag/tests/tentdecl.c: Supress empty source file error
3715
3716 2006-12-27 Borut Razem <borut.razem AT siol.net>
3717
3718         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
3719         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
3720           mbchar removed
3721         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
3722           fixed for borland C
3723         * support/cpp2/libiberty/Makefile.bcc: updated
3724         * src/pic16/main.c: fixed #pragma udata handling
3725         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
3726
3727 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
3728
3729         * src/SDCCpeeph.c: made labelHashEntry global,
3730         made pcDistance, FBYNAME static,
3731         (pcDistance): made static, use isComment and isLabel,
3732         (deadMove): added,
3733         (getLabelRef): added, extracted from labelRefCount(),
3734         (labelRefCount): use new getLabelRef(),
3735         (callFuncByName): made static, added deadMove,
3736         use isComment and isLabel,
3737         (newPeepRule): made static, set isLabel,
3738         (isLabelDefinition): added parameter isPeepRule to allow '%' in
3739         labels from peephole rules,
3740         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
3741         when isComment or isLabel is set
3742         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
3743         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
3744         to make them global
3745         * src/mcs51/peep.h: added
3746         * src/mcs51/peep.c: added, implements mcs51DeadMove()
3747         * src/port.h: added peep->deadMove to port structure
3748         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
3749         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
3750         deadMove, finally removed no. 1 and 2
3751         * src/mcs51/gen.c,
3752         * src/pic/gen.c,
3753         * src/z80/gen.c,
3754         * src/z80/ralloc.c,
3755         * src/pic16/gen.c,
3756         * src/ds390/gen.c,
3757         * src/hc08/gen.c: mark lines with isComment or isLabel
3758         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
3759         * .version,
3760         * sdcc.spec: bumped version to 2.6.3
3761
3762 2006-12-26 Borut Razem <borut.razem AT siol.net>
3763
3764         * support/cpp2/Makefile.in: added dependency on options.h
3765         * configure: regenerated
3766         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
3767         * support/cpp2/Makefile.in: added vasprintf.c
3768
3769 2006-12-25 Borut Razem <borut.razem AT siol.net>
3770
3771         * SDCPP synchronized with GCC CPP release version 3.4.6,
3772           the latest release before 4.x:
3773         * support/cpp2/Makefile.in, support/cpp2/config.h,
3774           support/cpp2/configure, support/cpp2/configure.in,
3775           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
3776           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
3777           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
3778           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
3779           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
3780           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
3781           support/cpp2/cpptrad.c, support/cpp2/except.h,
3782           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
3783           support/cpp2/hwint.h, support/cpp2/intl.h,
3784           support/cpp2/line-map.c, support/cpp2/line-map.h,
3785           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
3786           support/cpp2/output.h, support/cpp2/prefix.c,
3787           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
3788           support/cpp2/system.h, support/cpp2/version.c:
3789           modified
3790         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
3791           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
3792           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
3793           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
3794           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
3795           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
3796           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
3797           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
3798           support/cpp2/move-if-change, support/cpp2/opts.c,
3799           support/cpp2/opts.h, support/cpp2/opts.sh,
3800           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
3801           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
3802           support/cpp2/win32, support/cpp2/win32/dirent.c,
3803           support/cpp2/win32/dirent.h:
3804           added
3805         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
3806         * support/cpp2/sdcpp.h: renamed from sdcc.h
3807         * sdcppinit.c: deleted
3808
3809 2006-12-23 Borut Razem <borut.razem AT siol.net>
3810
3811         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
3812           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
3813           preproc.c: an other try to fix bug #982435: introduced
3814           -pedantic-parse-number command line option and pedantic_parse_number
3815           pragma
3816
3817 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
3818
3819         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
3820            BSEG handling,
3821           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
3822            corrected overlayed areax addresses, warn about memory overlaps
3823         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
3824         * src/avr/main.c,
3825         * src/ds390/main.c,
3826         * src/hc08/main.c,
3827         * src/mcs51/main.c,
3828         * src/pic16/main.c,
3829         * src/pic/main.c,
3830         * src/xa51/main.c,
3831         * src/z80/main.c,
3832         * src/port.h: added xabs_name and iabs_name
3833         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
3834           (glue, emitMaps): create and emit maps d_abs and i_abs
3835         * src/SDCCglue.h: cosmetic changes
3836         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
3837         * src/SDCCmem.h,
3838         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
3839           (allocDefault): put absolute, initialized globals in them
3840         * support/regression/tests/absolute.c: added absolute bdata test
3841         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
3842
3843 2006-12-20 Borut Razem <borut.razem AT siol.net>
3844
3845         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
3846         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
3847           added regression test for bug #982435
3848
3849 2006-12-18 Borut Razem <borut.razem AT siol.net>
3850
3851         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
3852         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
3853           small cosmetic changes
3854         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
3855         * support/regression/tests/bug-1351710.c: added regression test
3856
3857 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3858
3859         * doc/sdccman.lyx: added the long missed iCode table
3860           "<where is figure II?>", added links to wiki
3861
3862 2006-12-17 Borut Razem <borut.razem AT siol.net>
3863
3864         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
3865           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
3866           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
3867           unified table driven pragma handling, pragma argument type checking
3868         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
3869           current one - version 1.1.3
3870         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
3871
3872 2006-12-13 Raphael Neider <rneider AT web.de>
3873
3874         * src/pic/device.h: removed AssignedMemory structure and macros
3875         * src/pic/device.c: removed global finalMapping (linker assigns
3876             memory locations),
3877           (register_map): add SFRs to remembered memRanges
3878           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
3879           assignFixedRegisters,assignRelocatableRegisters): removed,
3880           (setMaxRAM,validAddress): adapted accordingly,
3881           (pic14_hasSharebank,pic14_getSharedStack): only report and use
3882             reasonably sized sharebanks,
3883         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
3884           (allDefsOutOfRange): removed unused code,
3885         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
3886             handling
3887         * src/pic/pcode.c (register_reassign): removed recursion warning,
3888             fired far too often,
3889         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
3890             to use existing pic14_stringInSet() to avoid duplicate symbols,
3891             tidied up the code a bit,
3892           (pic14printLocals): added in symmetry to printExterns, replaces
3893             writeUsedRegs more or less,
3894           (picglue): call new pic14_printLocals(),
3895         * device/include/pic/pic*.h: removed #pragma memmap directives,
3896             information gathered from include/pic/pic14devices.txt
3897         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
3898
3899 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
3900
3901         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
3902
3903 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3904
3905         * device/include/mcs51/cc2430.h: fixed missing ';'
3906
3907 2006-12-10 Raphael Neider <rneider AT web.de>
3908
3909         * device/lib/pic16/libc/stdio/vfprintf.c,
3910         * device/lib/pic16/libc/stdio/printf_small.c,
3911         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
3912           char arguments, as char varargs are cast to int by the caller,
3913           hopefully fixes #1604915 (other device libraries are still affected)
3914
3915 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3916
3917         * src/mcs51/ralloc.c (packRegsForAssign),
3918         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
3919
3920 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
3921
3922         * device/include/malloc.h: removed init_dynamic_memory
3923         * device/lib/malloc.c: made init_dynamic_memory static and automatically
3924           call it once from malloc. Also use _sdcc_heap[] from _heap.c
3925         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
3926         * device/lib/libsdcc.lib,
3927         * device/lib/Makefile.in,
3928         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
3929         * doc/sdccman.lyx: documented use of new _heap.c
3930         * support/regression/tests/malloc.c: removed init_dynamic_memory
3931         * src/cdbFile.c(spacesToUnderscores): new function,
3932           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
3933           1068030
3934         * device/include/tinibios.h: removed defines for putchar and getchar
3935         * device/lib/ds390/Makefile.in: added putchar.c
3936         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
3937
3938 2006-12-09 Borut Razem <borut.razem AT siol.net>
3939
3940         * support/cpp2/sdcc.h: prevent multiple inclusion
3941         * support/cpp2/options.h: deleted
3942
3943 2006-12-08 Borut Razem <borut.razem AT siol.net>
3944
3945         * support/cpp2/sdcc.h: removed x*alloc() macros
3946         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
3947         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
3948           support/cpp2/sdcpp.sdc: x*alloc files added to the project
3949         * support/cpp2/system.h: moved #include "sdcc.h"
3950         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
3951           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
3952           added
3953         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
3954           -funsigned-char options
3955         * support/cpp2/sdcppmain.c: fixed bug 1611411
3956
3957 2006-12-07 Borut Razem <borut.razem AT siol.net>
3958
3959         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
3960           directive
3961
3962 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
3963
3964         * src/SDCCsymt.c (addDecl): fixed bug 1609244
3965         * src/SDCCmain.c (linkEdit): fixed bug 1609279
3966         * doc/sdccman.lyx,
3967         * .version: bumped to 2.6.2 because a) it's been a while
3968           b) the linker sources have moved c) the preprocessor is upgraded
3969
3970 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3971
3972         * support/regression/tests/snprintf.c: some checks
3973         * lib/src/printf_large.c: %bc: read char instead of int from stack
3974
3975 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
3976
3977         * device/include/mcs51/cc2430.h: inserted _XPAGE
3978
3979 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3980
3981         * device/include/mcs51/cc2430.h: added
3982
3983 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
3984
3985         * device/include/asm/default/features.h,
3986         * device/include/asm/ds390/features.h,
3987         * device/include/mcs51/at89s53.h,
3988         * device/include/ser.h,
3989         * device/include/ser_ir.h,
3990         * device/include/serial.h: changed keywords to double underscore variants,
3991           fixes bug 1590261 some more, thanks Steven Borley
3992
3993 2006-12-01 Raphael Neider <rneider AT web.de>
3994
3995         * src/pic/pcode.c (register_reassign): do not crash on recursive code
3996           but emit warning (recursion is not supported for pic14)
3997
3998 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3999
4000         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
4001         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
4002
4003 2006-11-30 Raphael Neider <rneider AT web.de>
4004
4005         * src/pic/device.c (dump_sfr): always emit symbols
4006         * src/pic/glue.c (pic14printPublics): fixed typo
4007
4008 2006-11-30 Raphael Neider <rneider AT web.de>
4009
4010         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
4011           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
4012           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
4013            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
4014            a sharebank, use a non-shared bank for the stack if none available
4015         * src/pic/device.h (struct memRange): added linked list next field,
4016           added prototypes for above functions
4017         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
4018           (typeRegWithIdx): accept fixed and unfixed stack registers
4019         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
4020           the stack, handle shared and banked stack (except for WSAVE),
4021           (insertBankSel): removed useless optimization (will never fire),
4022           (FixRegisterBanking): added optimization for devices with only one
4023           possibly aliased bank of memory, like 16f84
4024         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
4025           devices have no SHAREBANK in the linker script
4026         * device/include/pic/pic14devices.txt: documented memmap
4027         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
4028
4029 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4030
4031         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
4032           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
4033           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
4034           genhc08Code): switched most of the D (debug) macros to DD (detailed
4035           debug) macros to better control clutter in the generated .asm file.
4036         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
4037           genRightShift): fixed bug with non-constant bit shift stored to
4038           a volatile result (SF Open Discussion forum thread #1616749).
4039           Single byte case is not yet optimized.
4040
4041 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
4042
4043         * device/include/asm/mcs51/features.h,
4044         * device/include/malloc.h,
4045         * device/include/stdio.h: changed keywords to double underscore variants,
4046           fixes bug 1590261
4047
4048 2006-11-27 Borut Razem <borut.razem AT siol.net>
4049
4050         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
4051           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
4052           support/cpp2/output.h, support/cpp2/cppinit.c,
4053           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
4054           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
4055           support/cpp2/cppdefault.c, support/cpp2/system.h,
4056           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
4057           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
4058           support/cpp2/prefix.c, support/cpp2/except.h,
4059           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
4060           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
4061           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
4062           support/cpp2/version.c, support/cpp2/cppmain.c,
4063           support/cpp2/version.h, support/cpp2/hashtable.c,
4064           support/cpp2/cpperror.c:
4065           synchronized with GCC CPP release version 3.3.6,
4066           the latest where cppmain.c still exists.
4067         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
4068           support/cpp2/sdcppinit.c: added
4069
4070 2006-11-27 Borut Razem <borut.razem AT siol.net>
4071
4072         * support/cpp2/cpplex.c:
4073           fixed _asm ... _endasm handling bug, introduce with GCC CPP
4074           synchronization
4075         * support/cpp2/cpplib.c: removed definitions of unused variables
4076
4077 2006-11-26 Borut Razem <borut.razem AT siol.net>
4078
4079         * support/cpp2/libiberty.h: commented out x*alloc() declarations
4080           since they are redefined by macros in support/cpp2/sdcc.h
4081         * support/cpp2/sdcc.h: x*alloc macro redefinition
4082
4083 2006-11-25 Borut Razem <borut.razem AT siol.net>
4084
4085         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
4086           support/cpp2/configure, support/cpp2/Makefile.in,
4087           support/cpp2/cppfiles.c, support/cpp2/output.h,
4088           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
4089           support/cpp2/config.h, support/cpp2/cpplib.h,
4090           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
4091           support/cpp2/cppdefault.c, support/cpp2/config.in,
4092           support/cpp2/system.h, support/cpp2/cpplex.c,
4093           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
4094           support/cpp2/cppdefault.h, support/cpp2/prefix.c
4095           support/cpp2/hwint.h, support/cpp2/mbchar.h,
4096           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
4097           support/cpp2/configure.in, support/cpp2/intl.h,
4098           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
4099           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
4100           support/cpp2/version.c, support/cpp2/cppmain.c,
4101           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
4102           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
4103           support/cpp2/cpperror.c,
4104           support/cpp2/libiberty/safe-ctype.c,
4105           support/cpp2/libiberty/safe-ctype.h,
4106           support/cpp2/libiberty/splay-tree.c,
4107           support/cpp2/libiberty/obstack.c,
4108           support/cpp2/libiberty/lbasename.c,
4109           support/cpp2/libiberty/splay-tree.h,
4110           support/cpp2/libiberty/obstack.h:
4111           synchronized with GCC CPP release version 3.2.3,
4112           the latest before integration of cpp into gcc
4113         * support/cpp2/except.h, support/cpp2/line-map.c,
4114           support/cpp2/line-map.h,
4115           support/cpp2/libiberty/hex.c,
4116           support/cpp2/libiberty/concat.c,
4117           support/cpp2/libiberty/filenames.h: added
4118         * support/cpp2/intl.c: deleted
4119
4120 2006-11-24 Borut Razem <borut.razem AT siol.net>
4121
4122         * src/SDCC.y: enabled compilation of empty source file
4123         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
4124           "ISO C forbids an empty source file"
4125         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
4126           if all the code is ifdefed out.
4127
4128 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4129
4130         * src/hc08/gen.c (genPcall): fix for bug #1601032
4131
4132 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
4133
4134         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
4135         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
4136         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
4137         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
4138         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
4139         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
4140         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
4141         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
4142         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
4143         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
4144         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
4145         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
4146         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
4147         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
4148         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
4149           Renamed to all upper case as per the standard set by SiLabs
4150
4151 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
4152
4153         * device/include/mcs51/C8051F520.h: new, added
4154         * device/include/mcs51/compiler.h: added link about predefined macros
4155
4156 2006-11-23 Raphael Neider <rneider AT web.de>
4157
4158         * src/regression/Makefile: add -L path to fresh library
4159         * src/regression/simulate: emphasize FAILED output
4160         * src/regression/create_stc: output _failures from gpsim
4161         * src/regression/compare4.c,
4162         * src/regression/rotate6.c: fixed char literals,
4163           all compile, all run =8-D
4164
4165         * src/pic/pcode.h: added isPCASMDIR macro
4166         * src/pic/gen.c (genAnd): fixed bit offset
4167         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
4168           packBits): unified register numbering schemes,
4169           (newReg): do not insert stack registers into hash table,
4170           (initStack): unpinned pseudo stack, simplified,
4171           (typeRegWithIdx): fixed retrieval of stack registers,
4172         * src/pic/pcode.c (addpCodeComment,sameBank): added,
4173           (pCodeReplace): removed invalid assertion,
4174           (insertPCodeInstruction): fixed newly added labels,
4175           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
4176           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
4177           DumpFlow): removed unsed (broken?) code,
4178           (insertBankSel): prevent STATUS from being BANKSELed,
4179           (FixRegisterBanking): rewritten from scratch, implemented generic
4180             optimizations (suppress BANKSELs to same register and to registers
4181             present in all banks),
4182           (AnalyzeBanking): update flow after BANKSELection
4183
4184         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
4185             sharebank, let linker place it, mark STKxx symbols as emitted
4186
4187 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4188
4189         * src/regression/arrays.c,
4190         * src/regression/bank1.c,
4191         * src/regression/bool2.c,
4192         * src/regression/compare7.c,
4193         * src/regression/compare8.c,
4194         * src/regression/compare9.c,
4195         * src/regression/compare10.c,
4196         * src/regression/configword.c,
4197         * src/regression/for.c,
4198         * src/regression/mult1.c,
4199         * src/regression/pointer1.c,
4200         * src/regression/rotate6.c,
4201         * src/regression/string1.c,
4202         * src/regression/struct1.c,
4203         * src/regression/Makefile: make PIC14 regression tests run again
4204           (3 fail, 6 won't compile)
4205
4206 2006-11-21 Raphael Neider <rneider AT web.de>
4207
4208         * device/include/pic16/pic18f4550.h,
4209         * device/include/pic16/pic18f4455.h,
4210         * device/lib/pic16/libdev/pic18f4550.c,
4211         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
4212         * configure.in: removed superfluous closing bracket
4213
4214 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4215
4216         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
4217           always positive.
4218
4219 2006-11-21 Raphael Neider <rneider AT web.de>
4220
4221         * src/pic/device.{c,h}: added pic14_getPIC()
4222         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
4223           (genAnd): added PIC code for one case, fixes #1597044
4224         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
4225           SFRs that are present in all banks (e.g., STATUS)
4226
4227 2006-11-20 Raphael Neider <rneider AT web.de>
4228
4229         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
4230           INCFSZ/INCFSZW and declared them as changing Z bit,
4231           (insertPCodeInstruction): correctly invert the above instructions,
4232           fixes #1599333,
4233           (DoBankSelect): don't panic on po_immediates
4234
4235 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4236
4237         * as/link/aslink.h,
4238         * as/link/mcs51/lkihx.c (newArea),
4239         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
4240         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
4241
4242 2006-11-11 Raphael Neider <rneider AT web.de>
4243
4244         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
4245           bitfield symbols, fixes #1579535 (once more...).
4246
4247 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4248
4249         * support/regression/generate-cases.py,
4250         * support/regression/fwk/include/testfwk.h,
4251         * support/regression/fwk/lib/testfwk.c: used code pointers,
4252           (about 50kByte less code generated for mcs51)
4253
4254 2006-11-06 Borut Razem <borut.razem AT siol.net>
4255
4256         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4257           debugger/mcs51/configure: fixed failed check because the function
4258           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
4259           who submitted the patch for gpsim.
4260         * debugger/mcs51/configure.in: removed the result message
4261         * debugger/mcs51/Makefile.in: fixed the config.status warning
4262           "... seems to ignore the --datarootdir setting"
4263
4264 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
4265
4266         * device/include/mcs51/c8051f020.h,
4267         * device/include/mcs51/c8051f040.h,
4268         * device/include/mcs51/c8051f060.h,
4269         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
4270         * src/z80/gen.c (gencjneshort),
4271         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
4272
4273 2006-10-31 Borut Razem <borut.razem AT siol.net>
4274
4275         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4276           debugger/mcs51/configure: get readline version
4277
4278 2006-10-30 Borut Razem <borut.razem AT siol.net>
4279
4280         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
4281         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4282           debugger/mcs51/configure: locate readline even when cross compiling
4283         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
4284
4285 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4286
4287         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
4288           serial port.
4289
4290 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
4291
4292         * device/include/malloc.h,
4293         * device/lib/calloc.c,
4294         * device/lib/free.c,
4295         * device/lib/malloc.c,
4296         * device/lib/realloc.c: moved definition of struct into sources
4297         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
4298
4299 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
4300
4301         * as/asx8051.dsp: corrected output directories
4302         * as/link/hc08: new directory for hc08 linker
4303         * as/hc08/aslink.h,             as/link/aslink.h,
4304         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
4305         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
4306         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
4307         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
4308         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
4309         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
4310         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
4311         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
4312         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
4313         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
4314         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
4315         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
4316         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
4317         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
4318         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
4319         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
4320         * as/link/hc08/conf.mk,
4321         * configure,
4322         * configure.in,
4323         * Makefile.in,
4324         * sdcc.dsw: moved hc08 linker to as/link/hc08
4325         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
4326         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
4327         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
4328         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
4329         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
4330         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
4331         * as/link/mcs51/aslink.dsp,
4332         * as/link/mcs51/Makefile.in: factored out the common files
4333         * as/hc08/lkstore.c: deleted, use the one already in as/link/
4334         * as/clean.mk: extra cleaning common files
4335         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
4336         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
4337         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
4338
4339 2006-10-29 Raphael Neider <rneider AT web.de>
4340
4341         * src/pic/ralloc.c (newReg): create aliases for registers with
4342           multiple names to fix #1579535 and #1584001,
4343           (regWithIdx,dirregWithName): resolve aliases on lookup
4344         * src/pic/pcode.c (DoBankSelect): die with error message on failing
4345           bankselect
4346         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
4347           to prevent build errors on small devices
4348
4349 2006-10-28 Raphael Neider <rneider AT web.de>
4350
4351         * src/pic/gen.c (genFunction,genCall): drop "same code page"
4352           assumption within interrupt handlers, fixes #1584940
4353         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
4354           "emitted" to avoid emitting them again in udata
4355
4356 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4357
4358         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
4359         Removed.
4360
4361 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4362
4363         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
4364         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
4365         on/off CR to CRLF conversion.
4366
4367 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4368
4369         * doc/sdccman.lyx: updated IRQ section
4370
4371 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4372
4373         * device/lib/serial_io.c: removed
4374         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
4375         replacements for serial_io.c
4376
4377 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
4378
4379         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
4380
4381 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4382
4383         * device/lib/serial_io.c: Default putchar() and getchar() for
4384           mcs51 uses serial port.
4385
4386 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
4387
4388         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
4389
4390 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4391
4392         * support/regression/ports/mcs51/support.c: smaller
4393         _sdcc_external_startup()
4394         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
4395
4396 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
4397
4398         * device/lib/gbz80/crt0.s,
4399         * device/lib/gbz80/crt0_rle.s,
4400         * device/lib/gbz80/div.s,
4401         * device/lib/gbz80/fstubs.s,
4402         * device/lib/gbz80/heap.s,
4403         * device/lib/gbz80/mul.s,
4404         * device/lib/gbz80/putchar.s,
4405         * device/lib/gbz80/stubs.s,
4406         * device/lib/z80/crt0.s,
4407         * device/lib/z80/crt0_rle.s,
4408         * device/lib/z80/div.s,
4409         * device/lib/z80/fstubs.s,
4410         * device/lib/z80/heap.s,
4411         * device/lib/z80/mul.s,
4412         * device/lib/z80/putchar.s,
4413         * device/lib/z80/stubs.s: reverted, I was mistaken
4414
4415 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4416
4417         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
4418         * support/regression/ports/mcs51/support.c: removed race
4419         condition on TI in _putchar allowing to use serial port mode 0
4420
4421 2006-10-20 Borut Razem <borut.razem AT siol.net>
4422
4423         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
4424
4425 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
4426
4427         * device/lib/gbz80/crt0.s,
4428         * device/lib/gbz80/crt0_rle.s,
4429         * device/lib/gbz80/div.s,
4430         * device/lib/gbz80/fstubs.s,
4431         * device/lib/gbz80/heap.s,
4432         * device/lib/gbz80/mul.s,
4433         * device/lib/gbz80/putchar.s,
4434         * device/lib/gbz80/stubs.s,
4435         * device/lib/z80/crt0.s,
4436         * device/lib/z80/crt0_rle.s,
4437         * device/lib/z80/div.s,
4438         * device/lib/z80/fstubs.s,
4439         * device/lib/z80/heap.s,
4440         * device/lib/z80/mul.s,
4441         * device/lib/z80/putchar.s,
4442         * device/lib/z80/stubs.s: removed all leading underscores from area names
4443
4444 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
4445
4446         * support/regression/ports/mcs51/support.c: use highest baudrate so the
4447           regression tests are not waiting in the simulator for simulated
4448           transmission of debug output
4449
4450 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4451
4452         * device/lib/printf_large.c: slightly smaller
4453         * doc/sdccman.lyx: do not use spaces within html links
4454
4455 2006-10-16 Borut Razem <borut.razem AT siol.net>
4456
4457         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
4458           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
4459           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
4460           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
4461           debugger/mcs51/configure:
4462           [ 1185668 ] add gnu readline support to sdcdb - enabled
4463
4464 2006-10-16 Raphael Neider <rneider AT web.de>
4465
4466         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
4467           fixes #1577882, removes close to all banking optimizations
4468
4469 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
4470
4471         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
4472           variables in code memory
4473         * support/regression/tests/absolute.c: added test for this
4474
4475 2006-10-15 Raphael Neider <rneider AT web.de>
4476
4477         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
4478           devices,
4479           (BankSelect): emit BANKSEL before touching linker-placed regs,
4480           fixes #1570934
4481
4482 2006-10-10 Raphael Neider <rneider AT web.de>
4483
4484         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
4485         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
4486         * src/pic/main.c (_pic14_parseOptions),
4487         * src/pic/main.h: mostly reverted to previous state, now use results
4488             from SDCCmain.c's argument parsing
4489
4490 2006-10-10 Borut Razem <borut.razem AT siol.net>
4491
4492         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
4493           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
4494           [ 1185668 ] add gnu readline support to sdcdb -
4495           prepared for READLINE, not enabled yet,
4496           thanks to <tal.bav AT gmail.com>
4497
4498 2006-10-10 Raphael Neider <rneider AT web.de>
4499
4500         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
4501         * src/pic16/devices.inc,
4502         * device/include/pic16 (pic18f[24]620.h),
4503         * device/include/pic18fregs.h,
4504         * device/lib/pic16/pics.all,
4505         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
4506             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
4507             Gary Plumbridge and Anton Strobl
4508
4509 2006-10-10 Raphael Neider <rneider AT web.de>
4510
4511         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
4512           --stack-siz=NUM options to configure the argument passing stack
4513         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
4514         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
4515           (pic14_getSharebankSize): obey --stack-siz=NUM,
4516           (pic14_getSharebankAddress): obey --stack-loc=NUM
4517
4518 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4519
4520         * doc/sdccman.lyx: added to the manual
4521         * doc/figures/ddd_example.png: added (neither pdflatex nor
4522         most browsers seem to like the .eps file)
4523
4524 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
4525
4526         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
4527         to /tmp and /var/tmp acc. LSB
4528         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
4529         RESULT_TYPE_IFX
4530         * support/regression/tests/onebyte.c: added test
4531
4532 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4533
4534         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
4535
4536 2006-10-05 Borut Razem <borut.razem AT siol.net>
4537
4538         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
4539           thanks to dfulab:
4540           - sdcc.dsw: changed property eol-style to CRLF
4541           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
4542
4543 2006-10-04 Raphael Neider <rneider AT web.de>
4544
4545         * device/include/pic/{pic16f84.h,pic16f84a.h},
4546         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
4547           from patch #1522504, thanks to Robas Teodor
4548
4549 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
4550
4551         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
4552           fixes bug 1566015
4553
4554 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
4555
4556         * src/pic16/glue.c (pic16emitMaps),
4557         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
4558         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
4559         * device/lib/pic16/libc/string/memcpypgm2ram.c,
4560         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
4561           Philipp Krause
4562         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
4563         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
4564
4565 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4566
4567         * support/librarian/sdcclib.c: Added option -l.
4568         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
4569           usage totals.
4570         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
4571           using Windows command prompt.
4572
4573 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
4574
4575         * device/lib/libsdcc.lib: added module rand
4576         * src/ds390/ralloc.c (rematStr),
4577         * src/hc08/ralloc.c (rematStr),
4578         * src/mcs51/ralloc.c (rematStr),
4579         * src/z80/ralloc.c (rematStr): made output more consistent
4580         * src/mcs51/gen.c: cosmetic changes
4581
4582 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
4583
4584         * src/port.h: added mem.cabs_name to PORT
4585         * src/ds390/main.c,
4586         * src/hc08/main.c,
4587         * src/mcs51/main.c,
4588         * src/pic16/main.c,
4589         * src/pic/main.c,
4590         * src/xa51/main.c,
4591         * src/z80/main.c: added cabs_name initializers
4592         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
4593           constants
4594           (emitMaps): emit absolutes in code memory into cabs_name
4595         * src/SDCCmem.c,
4596         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
4597         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
4598         * support/regression/fwk/include/testfwk.h: added define for at
4599         * support/regression/tests/absolute.c: added, new
4600
4601 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
4602
4603         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
4604           optimizations, see also patch 887161 by Stas Sergeev
4605         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
4606           to be necessary anymore,
4607           (102, 103, 104, 127): renamed all occurances of bp to _bp
4608
4609 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
4610
4611         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
4612           thanks Weston T. Schmidt for patch 1555221
4613         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
4614         * src/SDCCicode.c(geniCodeMultiply): small optimization
4615
4616 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
4617
4618         * device/include/stdlib.h: added rand prototypes
4619         * device/lib/rand.c: new, added
4620         * device/lib/Makefile.in: added rand.c
4621         * src/z80/peeph.def,
4622         * src/z80/peeph-gbz80.def,
4623         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
4624
4625 2006-09-20 Raphael Neider <rneider AT web.de>
4626
4627         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
4628
4629 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
4630
4631         * as/link/aslink.h: cosmetic changes
4632         * as/link/mcs51/Makefile.in,
4633         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
4634
4635 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
4636
4637         * as/link/aslink.h,
4638         * as/link/mcs51/aslink.h,
4639         * as/link/z80/aslink.h: merged and moved to as/link/
4640         * as/link/lkstore.c,
4641         * as/link/mcs51/lkstore.c: moved to as/link/
4642         * as/link/clean.mk: remove *.o
4643         * as/link/mcs51/alloc.h: deleted
4644         * as/link/mcs51/lkarea.c: added lnksect prototype
4645         * as/link/mcs51/lkdata.c,
4646         * as/link/mcs51/lklex.c,
4647         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
4648         * as/link/mcs51/lkmem.c,
4649         * as/link/mcs51/lknoice.c: removed include strcmpi.h
4650         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
4651         * as/link/mcs51/aslink.dsp,
4652         * as/link/mcs51/Makefile.aslink,
4653         * as/link/mcs51/Makefile.bcc,
4654         * as/link/mcs51/Makefile.in: updated for moved files
4655         * as/link/z80/lkarea.c,
4656         * as/link/z80/lkhead.c,
4657         * as/link/z80/lklex.c,
4658         * as/link/z80/lklibr.c,
4659         * as/link/z80/lklist.c,
4660         * as/link/z80/lkmain.c,
4661         * as/link/z80/lkrloc.c,
4662         * as/link/z80/lksym.c: synced with mcs51
4663         * as/link/z80/lkdata.c,
4664         * as/link/z80/lkeval.c,
4665         * as/link/z80/lkihx.c,
4666         * as/link/z80/lks19.c: cosmetic changes
4667         * as/link/z80/Makefile.in,
4668         * as/link/z80/linkgbz80.dsp,
4669         * as/link/z80/linkz80.dsp: updated for moved files
4670
4671 2006-09-16 Borut Razem <borut.razem AT siol.net>
4672
4673         * debugger/mcs51/sdcdb.c: partially fixed
4674           [ 1203664 ] sdcdb fails to open files w. two "." periods
4675         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
4676           debugger/mcs51/symtab.h: fixed indenting
4677         * configure.in, configure: up to date with latest Maarten's changes
4678
4679 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
4680
4681         as/link/mcs51
4682         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
4683         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
4684         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
4685         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
4686         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
4687         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
4688         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
4689         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
4690         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
4691         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
4692         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
4693         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
4694         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
4695         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
4696         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
4697         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
4698         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
4699         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
4700         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
4701         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
4702         as/link/mcs51/alloc.h,
4703         as/link/mcs51/clean.mk,
4704         as/link/mcs51/conf.mk,
4705         as/link/mcs51/Makefile.bcc,
4706         as/link/mcs51/Makefile.in,
4707         as/link/mcs51/readme.390,
4708         as/link/mcs51/strcmpi.c,
4709         as/link/mcs51/strcmpi.h,
4710         as/mcs51/clean.mk,
4711         as/mcs51/Makefile.bcc,
4712         as/mcs51/Makefile.in,
4713         configure,
4714         Makefile.in,
4715         sdcc.dsw: moved mcs51 linker to as/link/mcs51
4716
4717 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
4718
4719         * as/link,
4720         * as/link/Makefile.in,
4721         * as/link/z80/linkgbz80.dsp,
4722         * as/link/z80/linkz80.dsp,
4723         * configure,
4724         * link,
4725         * link/clean.mk,
4726         * link/Makefile.in,
4727         * link/README,
4728         * link/z80,
4729         * link/z80/aslink.h,
4730         * link/z80/clean.mk,
4731         * link/z80/conf.mk,
4732         * link/z80/linkgbz80.dsp,
4733         * link/z80/linkz80.dsp,
4734         * link/z80/lkarea.c,
4735         * link/z80/lkdata.c,
4736         * link/z80/lkeval.c,
4737         * link/z80/lkgb.c,
4738         * link/z80/lkgg.c,
4739         * link/z80/lkhead.c,
4740         * link/z80/lkihx.c,
4741         * link/z80/lklex.c,
4742         * link/z80/lklibr.c,
4743         * link/z80/lklist.c,
4744         * link/z80/lkmain.c,
4745         * link/z80/lkrloc.c,
4746         * link/z80/lks19.c,
4747         * link/z80/lksym.c,
4748         * link/z80/Makefile.in,
4749         * Makefile.in,
4750         * sdcc.dsw: moved link/ to as/link/
4751
4752 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
4753
4754         * as/mcs51/i51mch.c (machine): fixed warning
4755
4756 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
4757
4758         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
4759
4760 2006-09-09 Borut Razem <borut.razem AT siol.net>
4761
4762         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
4763           sdcdb WIN32 native port
4764         * src/clean.mk: fixed
4765
4766 2006-09-08 Borut Razem <borut.razem AT siol.net>
4767
4768         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
4769
4770 2006-09-08 Raphael Neider <rneider AT web.de>
4771
4772         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
4773         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
4774             to gplink to disable processor mismatch warning and to allow
4775             the use of devices with only aliased (shared) memory banks,
4776           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
4777
4778 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4779
4780         * doc/sdccman.lyx: Some re-formating plus example on using
4781           #pragma preproc_asm +/-
4782
4783 2006-09-07 Borut Razem <borut.razem AT siol.net>
4784
4785         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
4786           section
4787
4788 2006-09-06 Borut Razem <borut.razem AT siol.net>
4789
4790         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
4791           line at sdcc.nsi:153
4792         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
4793
4794 2006-09-05 Borut Razem <borut.razem AT siol.net>
4795
4796         * configure.in, configure: support for winsock2
4797         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
4798           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
4799           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
4800           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
4801           debugger/mcs51/symtab.h: sdcdb WIN32 native port
4802
4803 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
4804
4805         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
4806           and OP_DEFS
4807         * support/regression/tests/bug1551947.c: new, added
4808         * src/SDCCsymt.h: strings are char* not byte*
4809
4810 2006-09-05 Raphael Neider <rneider AT web.de>
4811
4812         * device/lib/pic16/libdev/pic18f4550.c,
4813           device/include/pic16/pic18f4550.h: added PORTD/TRISD
4814             declarations/definitions from patch #1520949
4815
4816 2006-09-05 Raphael Neider <rneider AT web.de>
4817
4818         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
4819           byte-aligned bitfields, fixes #1539278
4820
4821 2006-09-05 Raphael Neider <rneider AT web.de>
4822
4823         * src/pic/gen.c (genReceive): skip unreferenced arguments,
4824           fixes #1544120
4825
4826 2006-09-04 Borut Razem <borut.razem AT siol.net>
4827
4828         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
4829         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
4830           -mno-cygwin is a part of the compiler name
4831         * support/scripts/sdcc_mingw32: don't disable ucsim
4832
4833 2006-09-03 Borut Razem <borut.razem AT siol.net>
4834
4835         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
4836         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
4837
4838 2006-09-03 Raphael Neider <rneider AT web.de>
4839
4840         * src/pic/ralloc.c,
4841         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
4842           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
4843           fixes #1550049
4844
4845 2006-09-01 Borut Razem <borut.razem AT siol.net>
4846
4847         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
4848           to make ppc-osx happy
4849
4850 2006-08-31 Borut Razem <borut.razem AT siol.net>
4851
4852         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
4853         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
4854         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
4855         * support/regression/ports/ds390/spec.mk,
4856           support/regression/ports/mcs51/spec.mk,
4857           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
4858           To run regression tests in mingw environment:
4859           make DEV_NULL=NUL CC=gcc
4860
4861 2006-08-30 Borut Razem <borut.razem AT siol.net>
4862
4863         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
4864           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
4865           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
4866           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
4867           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
4868           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
4869           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
4870           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
4871           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
4872           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
4873           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
4874           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
4875           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
4876           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
4877           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
4878           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
4879           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
4880           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
4881           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
4882           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
4883           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
4884           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
4885           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
4886           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
4887           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
4888           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
4889           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
4890           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
4891           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
4892           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
4893           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
4894           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
4895           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
4896           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
4897           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
4898           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
4899           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4900           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
4901           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
4902           ucsim WIN32 native port
4903
4904 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4905
4906         * doc/sdccman.lyx: added note on dynamic memory heap initialization
4907
4908 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4909
4910         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
4911         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
4912
4913 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
4914
4915         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
4916         * support/regression/tests/bug1546986.c: new, added
4917         * as/mcs51/.cvsignore,
4918         * debugger/mcs51/.cvsignore,
4919         * src/.cvsignore: deleted
4920
4921 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4922
4923         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
4924           definitions)
4925
4926 2006-08-20 Borut Razem <borut.razem AT siol.net>
4927
4928         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
4929           removed cl_listen_console::match(), cl_console::match(),
4930           restructured cl_commander::proc_input()
4931
4932 2006-08-16 Borut Razem <borut.razem AT siol.net>
4933
4934         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
4935           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
4936           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
4937
4938 2006-08-14 Borut Razem <borut.razem AT siol.net>
4939
4940         * support/regression/Makefile.in,
4941           support/regression/ports/pic14/gpsim.cmd,
4942           support/regression/ports/pic14/spec.mk,
4943           support/regression/ports/pic14/support.c:
4944           added pic14 regression test
4945
4946 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
4947
4948         * as/doc/asxhtm.html: documented changed ABS behaviour
4949         * as/doc/README: fixed some typos
4950
4951 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
4952
4953         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
4954           not defined on host
4955
4956 2006-08-12 Borut Razem <borut.razem AT siol.net>
4957
4958         * support/regression/fwk/include/testfwk.h,
4959           support/regression/fwk/lib/testfwk.c,
4960           support/regression/generate-cases.py,
4961           support/regression/Makefile.in:
4962           regression test framework does not depend on function pointers and
4963           variable arguments
4964
4965 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
4966
4967         * device/include/stddef.h: c temporary hack to fix bug 1518273
4968
4969 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4970
4971         * device/include/mcs51/cc2510fx.h: added
4972         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
4973           to projects.
4974
4975 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
4976
4977         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
4978         * as/z80/Makefile.in: added strcmpi.c
4979         * as/z80/z80adr.c: added upper case registers and lower case conditionals
4980         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
4981
4982 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
4983
4984         * device/lib/gbz80/asm_strings.s,
4985         * device/lib/gbz80/crt0_rle.s,
4986         * device/lib/gbz80/div.s,
4987         * device/lib/gbz80/mul.s,
4988         * device/lib/gbz80/shift.s,
4989         * device/lib/z80/asm_strings.s,
4990         * device/lib/z80/crt0_rle.s,
4991         * device/lib/z80/div.s,
4992         * device/lib/z80/mul.s,
4993         * device/lib/z80/shift.s: changed to all lower case menmonics except the
4994           flags which are all upper case
4995
4996 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
4997
4998         * as/z80/asm.h: made CASE_SENSITIVE 1
4999         * link/z80/aslink.h: made CASE_SENSITIVE 1
5000         * src/z80/gen.c (throughout): made all conditionals upper case
5001         * support/regression/tests/bug1503067.c: new
5002
5003 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
5004
5005         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
5006           (shiftIntoPair): added case 2 for PAIR_IY,
5007           (setupToPreserveCarry): replaced parameters with iCode and check if
5008            PAIR_DE is in use to fix bug 1399290,
5009           (genPlus, genMinus): updated call to setupToPreserveCarry
5010         * support/regression/tests/bug1399290.c: new
5011
5012 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
5013
5014         * device/lib/Makefile.in (Z80SOURCES): enabled float support
5015         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
5016         * src/ds390/gen.c (shiftRLong),
5017         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
5018         * src/mcs51/gen.c (sameReg): changed to sameByte,
5019           (xch_a_aopGet): new,
5020           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
5021            shiftRLong): fixed bug 1533966
5022         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
5023           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
5024         * support/regression/Makefile.in: disabled z80, enabled ucz80
5025         * support/regression/tests/float_trans.c: enabled test for z80 and host
5026         * support/regression/tests/shifts2.c: new, for testing bug 1533966
5027
5028 2006-08-01 Borut Razem <borut.razem AT siol.net>
5029
5030         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
5031           comparison is always false due to limited range of data type
5032           on PPC64 machine (openpower-linux1) where "char = unsigned char"
5033
5034 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
5035
5036         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
5037         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
5038         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
5039         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
5040
5041 2006-07-31 Borut Razem <borut.razem AT siol.net>
5042
5043         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
5044           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
5045           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
5046           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
5047           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
5048           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
5049           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
5050           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
5051           enable ucsim mingw compilation. Serial port is disabled,
5052           since it uses termios.h API, which is not available on native
5053           WIN32
5054
5055 2006-07-31 Borut Razem <borut.razem AT siol.net>
5056
5057         * Small Device C Compiler 2.6.0 released
5058         * support/scripts/sdcc.nsi: added FULL_DOC option
5059         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
5060
5061 2006-07-28 Borut Razem <borut.razem AT siol.net>
5062
5063         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
5064         * doc/INSTALL.txt: updated
5065
5066 2006-07-27 Borut Razem <borut.razem AT siol.net>
5067
5068         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
5069           device/lib/pic/libdev/Makefile.in: fixed bug
5070           [ 1438354 ] pic libsdcc: distclean doesn't work
5071         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
5072           device/lib/pic16/libio/Makefile.in: fixed bug
5073           [ 1438344 ] pic16 lib: clean doesn't work properly
5074         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
5075
5076 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
5077
5078         * device/lib/pic/libsdcc/fsdiv.c,
5079         * device/lib/pic/libsdcc/fsmul.c,
5080         * device/lib/pic16/libsdcc/float/fsdiv.c,
5081         * device/lib/pic16/libsdcc/float/fsmul.c,
5082         * device/lib/_fsdiv.c,
5083         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
5084         * support/regression/tests/bug1520966.c: added
5085         * doc/knownbugs.html: removed [ 1520966 ] from the list
5086
5087 2006-07-25 Borut Razem <borut.razem AT siol.net>
5088
5089         * configure.in, configure, sdccconf_in.h: fixed bug
5090           [ 1519095 ] regression test onebyte.c fails on ppc64 host
5091         * doc/knownbugs.html: removed [ 1519095 ] from the list
5092
5093 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
5094
5095         * doc/knownbugs.html: added, contains list of known bugs at release
5096         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
5097
5098 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
5099
5100         * device/include/mcs51/compiler.h: added SFRX for xdata based special
5101           function registers and corrected defaults with additional warning
5102         * device/lib/malloc.c: cosmetic changes
5103         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
5104         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
5105           (fillGaps): and used it
5106
5107 2006-07-20 Raphael Neider <rneider AT web.de>
5108
5109         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
5110           output unless SDCCPICDEBUG is set
5111         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
5112           output if SILENT is set
5113
5114 2006-07-11 Borut Razem <borut.razem AT siol.net>
5115
5116         * doc/README.txt: updated
5117
5118 2006-07-10 Borut Razem <borut.razem AT siol.net>
5119
5120         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
5121           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
5122           in WIN32 installation
5123         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
5124           release candidate 1
5125
5126 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
5127
5128         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
5129         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
5130
5131 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
5132
5133         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
5134
5135 2006-07-06 Borut Razem <borut.razem AT siol.net>
5136
5137         * support/regression/tests/bitfields.c:
5138           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
5139         * support/regression/tests/constantRange.c:
5140           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
5141
5142 2006-07-04 Borut Razem <borut.razem AT siol.net>
5143
5144         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
5145           src/port.mk,
5146           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
5147           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
5148           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
5149           reverted changes from 2006-07-03
5150         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
5151         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
5152           added CPPFLAGS, used by the host port
5153
5154 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
5155
5156         * support/regression/valdiag/tests/switch.c,
5157         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
5158         * support/regression/tests/libmullong.c: fixed for host
5159         * support/regression/ports/host/spec.mk: disable all warnings for host,
5160         SDCC runs with --less-pedantic too
5161
5162 2006-07-03 Borut Razem <borut.razem AT siol.net>
5163
5164         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
5165           defined CPPFLAGS
5166         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
5167         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
5168           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
5169           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
5170           include ../port.mk
5171         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
5172           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5173           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
5174           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
5175
5176 2006-07-02 Raphael Neider <rneider AT web.de>
5177
5178         * src/pic16/devices.inc,
5179         * device/include/pic16/pic18fregs.h,
5180         * device/include/pic16/pic18f4550.h,
5181         * device/lib/pic16/pics.all,
5182         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
5183
5184 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
5185
5186         * as/hc08/lkaomf51.c (OutputName),
5187         * as/mcs51/lkaomf51.c (OutputName),
5188         * as/z80/asmain.c (asmbl),
5189         * src/ds390/main.c (asmLineNodeFromLineNode),
5190         * src/hc08/ralloc.c (hc08_assignRegisters),
5191         * src/mcs51/main.c (asmLineNodeFromLineNode),
5192         * src/xa51/ralloc.c (checkRegMask),
5193         * src/xa51/gen.c (emitcode),
5194         * src/z80/gen.c (_emit2),
5195         * src/SDCCast.c (searchLitOp),
5196         * src/SDCCglobl.h,
5197         * support/packihx/packihx.c,
5198         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
5199         * src/ds390/gen.c (aopPutUsesAcc),
5200         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
5201         * support/regression/tests/libmullong.c (mullong_wrapper),
5202         * src/SDCCsymt.c (powof2),
5203         * src/SDCCast.c,
5204         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
5205         * src/SDCCsymt.h: added TYPE_TARGET_*
5206         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
5207         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
5208         SDCCast because 1) header problems 2) this is the right place
5209         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
5210         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
5211         prototype
5212
5213 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
5214
5215         * src/SDCCicode.h: removed buggy semicolon in unused macro
5216         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
5217         search for previous definiton of auto symbols too,
5218         (findPrevUse): fixed logic of emitWarnings
5219
5220 2006-06-26 Raphael Neider <rneider AT web.de>
5221
5222         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
5223           PCLATH and PCLATU on interrupts, potentially fixes #1505141
5224
5225 2006-06-25 Raphael Neider <rneider AT web.de>
5226
5227         * device/lib/pic/libm: NEW, added math library functions
5228         * device/lib/pic/libsdcc: NEW; added float support functions
5229         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
5230         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
5231           NEW, added math related headers
5232         * device/include/asm/pic/features.h: NEW
5233         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
5234           (popGet): allow larger offsets for AOP_PCODE,
5235           (genDataPointerSet): handle literals explicitly, more debug output,
5236           (genAssign): fixed for float using aopLiteral ;-)
5237         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
5238           GOTO initialisation routine
5239         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
5240           flag on registers, fixes #1469043 (local variables do not work)
5241         * src/pic/main.c (_pic14_do_link),
5242         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
5243           available
5244
5245 2006-06-25 Borut Razem <borut.razem AT siol.net>
5246
5247         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
5248           characters printed (not including the trailing '\0' used to end
5249           output to strings). Problem detected in regression test bug-927659.c.
5250           NOTE: printf() family functions should return int instead
5251           unsigned int!
5252         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
5253           specifier are printed as themselves
5254         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
5255           support flags, width and precision specifiers
5256
5257 2006-06-24 Borut Razem <borut.razem AT siol.net>
5258
5259         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
5260           to the list of sdcc tagrets not supporting bit type
5261         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
5262           testfor pic16 due to bug:
5263           [ 1511794 ] pic16: regression test bug-895992.c fails
5264
5265 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
5266
5267         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
5268         * src/SDCCglue.c (initPointer), fixed bug 1496419
5269         * support/regression/tests/bug1496419.c: new, added
5270
5271 2006-06-22 Borut Razem <borut.razem AT siol.net>
5272
5273         * support/regression/ports/pic16/support.c: use gpsim usart module from
5274           libgpsim_modules library
5275
5276 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5277
5278         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
5279         IP0H to IPH0.
5280
5281 2006-06-19 Raphael Neider <rneider AT web.de>
5282
5283         * src/pic/glue.h,src/pic16/glue.h: added prototypes
5284         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
5285           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
5286           (pic14printExterns,pic14printPublics,pic16printPublics,
5287           pic16_printExterns): use new functions to emit symbols
5288           (picglue,pic16glue): emit publics before emitting externs
5289         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
5290           locally defined functions to avoid bug #1443651
5291         * support/regression/tests/bug-716242.c: removed pic16 workaround
5292         * support/regression/ports/pic16/spec.mk: ignore errors during build
5293
5294 2006-06-19 Raphael Neider <rneider AT web.de>
5295
5296         * src/pic/glue.h: added pic14aopLiteral prototype
5297         * src/pic/glue.c (pic14aopLiteral): return unsigned int
5298         * src/pic/gen.c: removed stdint.h dependency
5299           (aopGet): use Safe_strdup()
5300           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
5301           (genDataPointerSet): use pic14aopLiteral()
5302         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
5303           for pic16; thanks to Bernhard and Maarten
5304
5305 2006-06-18 Borut Razem <borut.razem AT siol.net>
5306
5307         * support/regression/tests/structflexarray.c: flexible array members
5308           not supported by gcc < 3
5309         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
5310           GUI tool by default
5311         * src/pic/gen.c: don't include [p]strdin.h on solaris
5312         * support/Util/pstdint.h: addad svn attributes
5313         * support/regression/tests/constantRange.c,
5314           support/regression/tests/rotate.c: include inttypes.h instead
5315           stdint.h on solaris, addad svn attributes
5316
5317 2006-06-18 Raphael Neider <rneider AT web.de>
5318
5319         * src/SDCCsymt.c (initCSupport): change return type of divschar to
5320           int for PIC16
5321         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
5322           (pic16_genMinusBits): simplified sign-extension
5323           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
5324             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
5325             adjusted to correctly handle mixed-signed operands, disabled
5326             now unused multiplciation routines
5327         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
5328           (assignResultValue): added argument denoting the size of the result
5329             as returned by the function (fixes upcasts in assigning from
5330             function calls: char foo(); int i = foo();)
5331           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
5332             function result to assignResultValue
5333           (genMult): disabled inlined multiplication code
5334           (genDiv): augmented to also handle the modulus operator, fixed to
5335             handle mixed-signed operands correctly
5336           (genMod): simply call genDiv, disabled unused code
5337           (genAssign): fixed missing (sign-)extension on result
5338         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
5339             valid char operands, allow signed operands for native code, added
5340             division and modulo operator handling
5341         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
5342
5343         As a consequence, onebyte.c (if split into two files) and muldiv.c
5344         pass regression tests.
5345
5346 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5347
5348         * doc/Makefile.in: two runs of makeindex seem needed to get
5349         correct page references in the index of sdccman.pdf
5350         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
5351
5352 2006-06-17 Borut Razem <borut.razem AT siol.net>
5353
5354         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
5355
5356 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5357
5358         * doc/sdccman.lyx: updated, added (porting source code, debugging),
5359         mentioned ec2drv and paulmon
5360
5361 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
5362
5363         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
5364           consecutive abs areas
5365           (find_empty_space, allocate_space): added map to handle codemap or
5366            xdatamap,
5367           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
5368            absolute idata and xdata
5369         * as/mcs51/lkmem.c (summary2): updated legend
5370
5371 2006-06-16 Raphael Neider <rneider AT web.de>
5372
5373         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
5374
5375 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
5376
5377         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
5378           1208515
5379         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
5380
5381 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
5382
5383         * src/port.h (struct PORT): added field gp_tags, to hold the tag
5384         value of generic pointers,
5385         * src/avr/main.c,
5386           src/ds390/main.c,
5387           src/hc08/main.c,
5388           src/izt/i186.c,
5389           src/izt/tlcs900h.c,
5390           src/mcs51/main.c,
5391           src/pic/main.c,
5392           src/pic16/main.c,
5393           src/xa51/main.c,
5394           src/z80/main.c: PORT structure, added elements for gp_tags field,
5395         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
5396         fields in the PORT structure of each port,
5397         * src/SDCCast.c (decorateType): allow processing of generic pointers
5398         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
5399         S_FIXED symbols
5400
5401 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
5402
5403         * link/z80/lkgb.c,
5404         * link/z80/lkgg.c,
5405         * src/pic16/gen.c,
5406         * src/pic16/main.c,
5407         * src/pic16/pcode.c,
5408         * src/pic/main.c,
5409         * src/pic/pcoderegs.c,
5410         * src/SDCCicode.c,
5411         * src/SDCCmain.c,
5412         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
5413           bug 1504689 on minGW
5414
5415 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5416
5417         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
5418
5419 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
5420
5421         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
5422
5423 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
5424
5425         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
5426           for optimization
5427
5428 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
5429
5430         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
5431         to a char variable. Fixed bug #1504211
5432         * device/include/pic16/adc.h,
5433         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
5434         and fixed bug #1364390
5435
5436 2006-06-10 Borut Razem <borut.razem AT siol.net>
5437
5438         * CVSROOT: removed the CVS left-over
5439
5440 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
5441
5442         * as/hc08/asmain.c (asexit),
5443         * as/hc08/lkmain.c (lkexit),
5444         * as/mcs51/asmain.c (asexit),
5445         * as/mcs51/lkmain.c (lkexit),
5446         * src/SDCCglue.c (DEFSETFUNC),
5447         * src/SDCCmain.c (linkEdit, assemble),
5448         * support/librarian/sdcclib.c (AddRel),
5449           replaced unlink() by standard C remove()
5450         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
5451         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
5452           gatherImplicitVariables): new, added to fix bug 608752,
5453           (createFunction): added gatherImplicitVariables()
5454         * src/SDCCast.h: added createRMW prototype
5455         * src/SDCCsymt.h (struct symbol): added infertype
5456         * support/regression/tests/bug608752.c: new, added
5457
5458 2006-06-10 Raphael Neider <rneider AT web.de>
5459
5460         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
5461           multibyte dummy reads (fixes #1503234)
5462
5463 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
5464
5465         * device/include/mcs51/compiler.h: new, added header file to enable
5466           creating common sfr definition header files for different compilers
5467
5468 2006-06-05 Raphael Neider <rneider AT web.de>
5469
5470         * src/pic16/{pcode.h,genarith.c}:
5471           introduced pCodeOp combining any two pCodeOps (previously only
5472           two register operands could be combined), removed pcop2 from
5473           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
5474         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
5475         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
5476           rewritten to use new PO_TWO_OPS
5477         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
5478         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
5479           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
5480           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
5481           (pic16_get_op): embraced return arg to allow #define return(x),
5482             added new case for combined opcodes
5483           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
5484           (pic16_pCode2str,pic16_getRegFrompCodeOp,
5485            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
5486
5487 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
5488
5489         * src/SDCCval.c (checkConstantRange): added
5490         * src/SDCCval.h: added checkConstantRange
5491         * support/Util/SDCCerr.c,
5492         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
5493         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
5494         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
5495         * src/SDCCast.c (decorateType): added checkConstantRange,
5496         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
5497         can be emitted with the correct always true/false warning,
5498         added optimization for double '!';
5499         result of decorateType() must be assigned back to the tree, because
5500         decorateType() can change the tree
5501         * src/SDCCicode.c (geniCodeLogic),
5502         (geniCodeAssign): replaced new checkConstantRange, added warnings,
5503         (checkConstantRange): removed, it was only a fragment which never
5504         emitted a warning
5505         * src/SDCCsymt.c (computeType): fixed promotion for
5506         "-1 < (unsigned bit) b"
5507         * src/pic/ralloc.c (packRegsForAssign),
5508         * src/pic16/ralloc.c (packRegsForAssign),
5509         * src/hc08/ralloc.c (packRegsForAssign),
5510         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
5511         from mcs51
5512         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
5513         * support/regression/tests/constantRange.c: added
5514         * support/valdiag/tests/constantRange.c: added
5515         * support/valdiag/valdiag.py: added -DPORT_HOST=1
5516
5517 2006-06-02 Borut Razem <borut.razem AT siol.net>
5518
5519         * support/regression/ports/pic16/support.c: increase stack size
5520           to 255 bytes
5521         * support/regression/Makefile.in: sort tests by name so that the
5522           resutlts can be compared on different machines / platforms
5523
5524 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
5525
5526         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
5527         * src/ds390/gen.c (emitLabel): new, added,
5528           (genDjnz): fixed stack overflow bug,
5529           (throughout): cosmetic changes to sync with mcs51/gen.c,
5530           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
5531         * src/mcs51/gen.c (genEndFunction): small optimization,
5532           (throughout): cosmetic changes to sync with ds390/gen.c
5533
5534 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
5535
5536         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
5537           (_print_format): fixed printing pointers
5538         * src/mcs51/gen.c (emitLabel, movb): new, added,
5539           (genAssign): small optimization,
5540           (genDjnz): fixed stack overflow bug,
5541           (throughout): replaced sprintf with SNPRINTF,
5542           replaced mcs51_regWithIdx with REG_WITH_INDEX,
5543           replaced emitcode("mov", "b,...") with MOVB(...),
5544           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
5545           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
5546         * src/mcs51/peeph.def: added rules 140 and 264
5547         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
5548           so they may get optimized into registers
5549
5550 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
5551
5552         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
5553           immediately when encountered,
5554           (printUsage): always use stderr even on windows
5555
5556 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
5557
5558         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
5559         (processParms): fixed bug #1247551
5560         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
5561         parseCmdLine, main): print '--version' to stdout,
5562         print 'help' to stdout if --help is given,
5563         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
5564         arguments are given; fixed --help
5565
5566 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
5567
5568         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
5569         * support/regression/tests/bug-1493710.c: added
5570
5571 2006-05-27 Borut Razem <borut.razem AT siol.net>
5572
5573         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
5574           static instead auto
5575         * support/regression/ports/pic16/support.c: increase stack size
5576           from default 64 bytes to 128 bytes
5577         * support/regression/tests/staticinit.c,
5578           support/regression/tests/float.c: regression tests fully enabled
5579           for pic16 port by putting the initialized data arrays into the code
5580           section
5581         * support/regression/ports/pic16/spec.mk: don't link default libraries.
5582           This was changed by mistake in the previous version.
5583
5584 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
5585
5586         * src/pic16/gen.c (genFunction, genEndFunction): some
5587         beautifications, fixed bug with falsely restoring FSR2 in large
5588         stack model, thanks to Beau E. Cox for reporting the bug
5589
5590 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
5591
5592         * debugger/mcs51/break.c,
5593         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
5594           use %p to print pointers, made address variables unsigned
5595         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
5596         * debugger/mcs51/symtab.c (parseSymbol): must return something
5597         * src/mcs51/gen.c (aopForSym): small optimization,
5598            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
5599           (freeAsmop): added missing break,
5600           (aopPut): removed parameter bvolatile, determine it inside the function,
5601           (saveRegisters, unsaveRegisters): small optimization,
5602           (genIpush): removed pointless check,
5603           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
5604           replaced sprintf with SNPRINTF,
5605           replaced strcpy with strncpyz,
5606           updated aopPut calls,
5607           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
5608         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
5609
5610 2006-05-24 Borut Razem <borut.razem AT siol.net>
5611
5612         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
5613           modification of test for the pic16 port, put the array to the code
5614           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
5615
5616 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5617
5618         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
5619         * support/Util/pstdint.h: added
5620
5621 2006-05-22 Borut Razem <borut.razem AT siol.net>
5622
5623         * src/regression/Makefile: removed bool2.c test, added -q linker option
5624         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
5625           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
5626           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
5627           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
5628           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
5629           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
5630           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
5631           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
5632           define SUPPORT_BIT_TYPES 0, removed unused bit variables
5633
5634 2006-05-22 Raphael Neider <rneider AT web.de>
5635
5636         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
5637           bug #1492360 (problematic due to generic pointers, see code)
5638
5639 2006-05-22 Borut Razem <borut.razem AT siol.net>
5640
5641         * support/regression/ports/pic16/specs.mk: removed stack size linker
5642           directive
5643         * support/regression/tests/array.c,
5644           support/regression/tests/bitopcse.c,
5645           support/regression/tests/bug-908454.c,
5646           support/regression/tests/malloc.c: modified for pic16 regression test
5647         * support/regression/tests/bitfields.c:
5648           pic16 - excluded bitfileds of size > 8
5649         * support/regression/tests/bp.c: pic16 - reduced data size
5650         * support/regression/tests/bug-221100.c: pic16 - reduced data size
5651         * support/regression/tests/bug-460010.c:
5652           pic16 - used the absolute address the fits in memory
5653         * support/regression/tests/bug-716242.c:
5654           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
5655         * support/regression/tests/float.c:
5656           pic16 - excluded - data size too big
5657         * support/regression/tests/onebyte.c:
5658           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
5659         * support/regression/tests/shifts.c:
5660           pic16 - function names probably have to differ in first X characters
5661           (gpasm limitation?)
5662         * support/regression/tests/staticinit.c:
5663           pic16 - excluded some tests due error: no target memory available for
5664           section ".idata"
5665
5666 2006-05-22 Borut Razem <borut.razem AT siol.net>
5667
5668         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
5669           second try. Thanks Stas Sergeev once more.
5670
5671 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
5672
5673         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
5674           (genLeftShift, genRightShift): fixed bug 1491627
5675         * src/hc08/peeph.def (rules 7, 8.x): added
5676         * support/regression/tests/shifts.c (ShiftLeftByParam,
5677           ShiftRightByParam, testShiftByParam): added to test variable shifting
5678
5679 2006-05-20 Raphael Neider <rneider AT web.de>
5680
5681         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
5682         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
5683           (allocReg): add only new registers to dynAllocRegs,
5684           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
5685             #1489055, #1445850, and probably #1483693
5686
5687 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
5688
5689         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
5690         bug in for-loop that didn't emit the last of CONFIG and ID registers
5691
5692 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
5693
5694         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
5695           with offset
5696         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
5697           1489016, 1434401 and 1490124
5698         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
5699           1489016, 1434401 and 1490124
5700
5701 2006-05-17 Borut Razem <borut.razem AT siol.net>
5702
5703         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
5704           thanks Stas Sergeev
5705
5706 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5707
5708         * device/include/mcs51/P89c51RD2.h,
5709         * device/include/mcs51/P89LPC901.h,
5710         * device/include/mcs51/P89LPC922.h,
5711         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
5712
5713 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
5714
5715         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
5716         to fix missing stack pragma in compiled binary object file,
5717
5718 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
5719
5720         * support/packihx/configure.in,
5721         * support/packihx/configure: removed warning, autoconf >= 2.5x can
5722         determine sizeof basic types even while cross compiling
5723
5724 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
5725
5726         * src/avr/gen.c (aopop),
5727         * src/ds390/gen.c (aopOp),
5728         * src/hc08/gen.c (aopOp),
5729         * src/mcs51/gen.c (aopop),
5730         * src/pic16/gen.c (pic16_aopOp),
5731         * src/pic/gen.c (aopOp),
5732         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
5733         if size of operand is smaller than spill location
5734
5735 2006-05-12 Borut Razem <borut.razem AT siol.net>
5736
5737         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
5738           have to have CR/LF line endings even if they are checked out on *nix
5739           or on WIN32 in cygwin binmode
5740
5741 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
5742
5743         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
5744         * device/include/ds80c390.h: added sfr16 definitions
5745         * src/ds390/gen.c,
5746         * src/ds390/gen.h,
5747         * src/ds390/main.c,
5748         * src/ds390/ralloc.c,
5749         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
5750           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
5751           bit returning functions
5752         * support/regression/tests/sfr16.c: enabled test on ds390
5753
5754 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5755
5756         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
5757         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
5758
5759 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
5760
5761         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
5762         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
5763           (cl_address_space constructor): removed expensive initialization,
5764           (cl_address_space::get_cell): extended for late initialization,
5765           (cl_address_space::*): use late initialization,
5766           (cl_address_decoder::activate): removed expensive initialization,
5767           This reduced regression test running time by 25%
5768
5769 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
5770
5771         * packihx/,
5772         * configure.in,
5773         * configure,
5774         * sdcc.dsw,
5775         * Makefile.bcc,
5776         * Makefile.in,
5777         * support/packihx/Makefile.in,
5778         * support/packihx/clean.mk,
5779         * support/packihx/Makefile.bcc,
5780         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
5781
5782 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5783
5784         * src/SDCCval.c (valNot): fix for regression test failure
5785           of not.c on big endian hosts
5786
5787 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
5788
5789         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
5790
5791 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5792
5793         * device/lib/mcs51/Makefile.in: changed string comparison operator
5794           to = for POSIX compliance; == is bash extension
5795
5796 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
5797
5798         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
5799           kosmonaut_pirx
5800
5801 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
5802
5803         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
5804         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
5805         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
5806         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
5807         bug report #1478657,
5808
5809 2006-05-05 Borut Razem <borut.razem AT siol.net>
5810
5811         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
5812           making the html
5813
5814 2006-05-02 Borut Razem <borut.razem AT siol.net>
5815
5816         * doc/Makefile.in: removed *.ind dependency since there is no rule to
5817           create *.ind, which made make to fail if invoked with -j 2
5818
5819 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
5820
5821         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
5822           Hubert Sack for patch 1479782
5823
5824 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
5825
5826         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
5827
5828 2006-05-01 Raphael Neider <rneider AT web.de>
5829
5830         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
5831           (create_pic): store only prefix-free device name,
5832           (init_pic): check for device names with "16" prefix,
5833           (list_valid_pics),
5834         * src/pic/device.h (struct PIC_device),
5835         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
5836             stored device name,
5837         * device/include/pic/pic12f{635,675,629,683}.h,
5838         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
5839         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
5840         * device/include/pic/pic16f505.h,
5841         * device/lib/pic/libdev/pic16f505.c: removed
5842         * device/include/pic/pic14devices.txt: added support for pic12f
5843             devices, removed unsupported non 16-bit devices
5844             [above changes provided by patch from Zik Saleeba]
5845         * src/pic/*, src/pic16/*, device/include/pic16/*,
5846           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
5847
5848 2006-05-01 Borut Razem <borut.razem AT siol.net>
5849
5850         * configure.in, configure, doc/Makefile.in:
5851           sync with nightly build makefile - latex, dvipdf and dvips
5852           not needed any more
5853
5854 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
5855
5856         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
5857         in the library source
5858
5859 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
5860
5861         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
5862
5863 2006-04-28 Raphael Neider <rneider AT web.de>
5864
5865         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
5866         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
5867           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
5868         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
5869
5870 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
5871
5872         * device/lib/pic/libdev/Makefile.in,
5873         * device/lib/hc08/Makefile.in,
5874         * device/lib/gbz80/Makefile.in,
5875         * device/lib/z80/Makefile.in,
5876         * device/lib/ds390/Makefile.in,
5877         * device/lib/ds400/Makefile.in: added srcdir to include search path,
5878         thanks to Borut for the bug report
5879         * configure.in,
5880         * configure: always create doc/Makefile independent from --enable-doc
5881         * Makefile.in: always install from directory doc independent from
5882         --enable-doc
5883         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
5884         removed
5885         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
5886         * doc/Makefile.in: install *.txt if present
5887         * device/include/Makefile.in (install): added installation of pic/*.inc
5888         and pic/*.txt files again, they were erroneously removed
5889
5890 2006-04-28 Raphael Neider <rneider AT web.de>
5891
5892         * src/pic/{gen.c,main.h,pcode.c},
5893         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
5894             concerning signedness with casts
5895
5896 2006-04-28 Raphael Neider <rneider AT web.de>
5897
5898         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
5899             definition of an interrupt handler,
5900         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
5901             interrupt handler stuff from picglue() to separate routine,
5902           (picglue): enabled definition of intr handlers in files w/o main()
5903
5904 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5905
5906         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
5907           compilation with MSVC 2005 Express Edition (VC8)
5908
5909 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
5910
5911         * device/lib/Makefile: fixed build of gbz80 lib
5912
5913 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5914
5915         * support/regression/tests/bug-460010.c,
5916         * support/regression/tests/bug-524691.c,
5917         * support/regression/tests/bug-716242.c: removed conditional defines
5918           that are already in testfwk.h
5919
5920 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
5921
5922         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
5923           (AccAXRsh1): added, shift right by 1,
5924           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
5925            AccAXLrl1
5926         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
5927
5928 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
5929
5930         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
5931         remove cast to same type
5932         * src/SDCCast.c (decorateType): fix for RFE 1475742,
5933         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
5934         * as/z80/Makefile,
5935         * link/z80/Makefile: removed, they have moved to
5936         Makefile.in files
5937         * configure,
5938         * configure.in: replaced duplicate message about ucsim by missing sdcpp
5939         * install-sh: fix bug #1204398 by setting umask 0022
5940         * device/lib/Makefile: separate build of z80 and gbz80 lib
5941
5942 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
5943
5944         Enabled VPATH feature: changed nearly all Makefiles (149 files).
5945         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
5946
5947         One basic decision: e.g. src/clean.mk includes further files. In order
5948         to make this work there are two solutions:
5949         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
5950           run configure on them. This way they can use
5951           'include $(srcdir)/port-clean.mk'
5952         - always include clean.mk by the Makefile at the same level. To avoid
5953           that `make clean` tries to include and build Makefile.dep the
5954           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
5955           implemented, because now even `make uninstall` doesn't create
5956           Makefile.in. clean.mk could be eliminated by pasting it in
5957           Makefile.in.
5958
5959         * debugger/mcs51/Makefile.in: build own objects from library sources
5960         (SLIB, SDCC) in current directory
5961
5962         * configure, configure.in: renamed --disable-device-lib-build in
5963         --disable-device-lib; added --enable-doc, the required tools are
5964         searched by configure; added result message; the toolchain for the
5965         belonging ports are now only built, if the port is enabled.
5966
5967         * support/regression/*: all output is written in directory gen, because
5968         the fwk and ports directories don't livet in the build tree using vpath
5969
5970         * doc/sdccman.lyx: renamed --disable-device-lib-build to
5971         --disable-device-lib, added --enable-doc, added section VPATH
5972
5973         * sim/ucsim/configure.in,
5974         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
5975         z80 are enabled by default
5976
5977 2006-04-24 Raphael Neider <rneider AT web.de>
5978
5979         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
5980             to config word, "pic14_"-prefixed some extern functions
5981           (pic14_emitConfigWord): emit __config directive(s) if assignment to
5982             config word has been found
5983         * src/pic/device.h: added prototypes
5984         * src/pic/pcode.c: added "pic14_"-prefix where needed
5985         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
5986             fixup
5987         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
5988             words,
5989           (pic14emitRegularMap): ignore config words,
5990           (pic14createInterruptVect): moved generating __config directives away
5991           (picglue): have __config directives emitted
5992
5993 2006-04-24 Borut Razem <borut.razem AT siol.net>
5994
5995         * doc/Makefile: sync with nightly build makefile
5996
5997 2006-04-24 Raphael Neider <rneider AT web.de>
5998
5999         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
6000             registers that have not been assigned proper liveranges,
6001             fixes #1469504 and #1474602,
6002           (pCodeRegOptimizeRegUsage): fixed typo in comment
6003
6004 2006-04-24 Borut Razem <borut.razem AT siol.net>
6005
6006         * device/examples/main8051.c: deleted - it was removed from CVS
6007           24.mar.2000 and after that modified 18.feb.2001, so it reappered
6008           after the transition to Subversion
6009         * src/SDCCalloc.h: deleted - it was removed  from CVS
6010           3.feb.2001 and after that modified 18.feb.2001, so it reappered
6011           after the transition to Subversion
6012         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
6013           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
6014           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
6015           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
6016
6017 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
6018
6019         * as/asx8051.dsp: added mcs51/strcmpi.h
6020         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
6021         * as/hc08/aslink.h: updated lnksect prototype
6022         * as/hc08/asm.h,
6023         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
6024         * as/hc08/asmain.c,
6025         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
6026           (newdot): handle A_ABS
6027         * as/hc08/asout.c,
6028         * as/mcs51/asout.c (outarea): output address
6029         * as/hc08/lkaomf51.c,
6030         * as/mcs51/lkaomf51.c: disabled unused array UsageType
6031         * as/hc08/m08pst.c,
6032         * as/mcs51/i51pst.c,
6033         * as/z80/z80pst.c: "ABS" is not A_OVR
6034         * as/hc08/lkarea.c (newarea): read a_addr,
6035           (lnkarea): added codemap array, sort absolute areas to the front,
6036            combine all GSINITx/GSFINAL,
6037           (find_empty_space, allocate_space): new functions,
6038           (lnksect): return next address, handle absolute sections
6039         * as/mcs51/lkarea.c (newarea): read a_addr,
6040           lnksect2 prototype changed,
6041           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
6042           (find_empty_space, allocate_space): new, factored out of lnksect2,
6043           (lnksect2): return next address, handle absolute sections
6044         * as/hc08/lkhead.c,
6045         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
6046         * as/hc08/lklibr.c (addfile, fndsym),
6047         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
6048           index out of range and detect both '\' and '/'
6049         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
6050         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
6051           regression tests (ds390 cannot return bool yet)
6052         * doc/sdccman.lyx: changed version number, document changed --no-peep,
6053           document critical interrupts on z80, document changed SDCC define
6054         * src/asm.c (_asxxxx_mapping): fixed .org directive,
6055           (_a390_mapping): added .org directive
6056         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
6057           (genMultOneByte): fixed warnings
6058         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
6059           ones
6060         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
6061         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
6062           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
6063         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
6064         * src/pic16/main.c: removed newReg prototype
6065         * src/pic16/pcode.c,
6066         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
6067           warnings
6068         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
6069           ones
6070         * src/pic16/ralloc.c
6071         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
6072           to fix warnings
6073         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
6074           from short to PIC_OPTYPE
6075         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
6076         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
6077           optype from short to PIC_OPTYPE
6078         * src/port.h: made int_size unsigned to fix warnings
6079         * src/SDCC.y: fixed warning on MSVC
6080         * src/SDCCicode.c (getArraySizePtr): return unsigned int
6081         * src/SDCCopt.c (convertToFcall): fixed warnings
6082         * src/SDCCsymt.h: removed double prototype for genSymName
6083         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
6084           offset int to fix warnings
6085
6086 2006-04-22 Borut Razem <borut.razem AT siol.net>
6087
6088         * doc/sdccman.lyx, */Makefile, */Makefile.in:
6089           references to CVS replaced with Subversion
6090
6091 2006-04-21 Borut Razem <borut.razem AT siol.net>
6092
6093         * doc/sdccman.lyx, */Makefile, */Makefile.in:
6094           references to CVS replaced with Subversion
6095
6096 2006-04-19 Borut Razem <borut.razem AT siol.net>
6097
6098         * src/version.awk: adapted for svn
6099         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
6100           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
6101           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
6102           /binutils-avr/etc/*.vi, *.jin: removed all properties
6103           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
6104
6105 2006-04-19 Borut Razem <borut.razem AT siol.net>
6106
6107         * CVS to Subversion migration completed
6108
6109 2006-04-18 Borut Razem <borut.razem AT siol.net>
6110
6111         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}/lib/pic/*.o,
6112           ${DEV_ROOT}/lib/src/pic/libdev/*.S, ${DEV_ROOT}/lib/src/pic/libdev/*.inc
6113
6114 2006-04-17 Borut Razem <borut.razem AT siol.net>
6115
6116         * device/include/Makefile.in: added pic/*.inc to the installation
6117
6118 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
6119
6120         * support/regression/collate-results.py: fixed output in case of
6121         a valdiag error
6122         * support/regression/generate-cases.py: fixed splitting of pathnames
6123         with dots
6124         * as/hc08/lklibr.c (addfile),
6125         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
6126
6127 2006-04-11 Raphael Neider <rneider AT web.de>
6128
6129         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
6130         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
6131         * src/pic16/pcode.c (assignValnums): fixed #1460578
6132
6133 2006-04-11 Raphael Neider <rneider AT web.de>
6134
6135         * device/lib/pic/libdev/*.c,
6136         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
6137           fixes #1468739, enables compilation in --std-c99 mode
6138         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
6139
6140 2006-04-11 Raphael Neider <rneider AT web.de>
6141
6142         * src/pic/device.c (find_device): removed debug output
6143           (list_valid_pics): enabled verbose listing of supported devices
6144         * device/include/stdbool.h: define bool as char for pic14/16 as well
6145
6146 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6147
6148         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
6149
6150 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6151
6152         * .version: bumped version to 2.5.6
6153         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
6154
6155 2006-04-06 Raphael Neider <rneider AT web.de>
6156
6157         * .version: bumped version to 2.5.6 (pic14 ABI changed)
6158         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
6159         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
6160           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
6161             pic14_constructAbsMap
6162           (pic14printPublics): declare absolute global symbols as global
6163           (pic14createInterruptVect),
6164         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
6165           (newReg): assume new registers unused, use correct name in
6166             hashtable (reg->name instead of name), more debugLog output
6167         * src/pic/device.h (PIC_device): added fields for verbose output
6168         * src/pic/device.c: moved device definition to pic14devices.txt,
6169             added routines for runtime parsing of pic14devices.txt,
6170             added support for second config word
6171         * src/pic/main.c (_process_pragma): removed #pragma maxram,
6172           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
6173           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
6174           (_pic14_parseOptions): moved pCodeInitRegisters here
6175           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
6176         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
6177           (pCodeInitRegisters): rewrapped comments, perpared new approach to
6178             handling the pseudo stack
6179         * device/lib/Makefile.in: ignore failures in objects-pic16,
6180         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
6181         * device/lib/pic/NEWS: document new dependency on picXXX.lib
6182         * device/lib/pic/Makefile.subdir,
6183         * device/lib/pic16/Makefile.subdir: improved clean rules
6184         * device/lib/pic/libdev/: NEW, pic14 device libraries
6185         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
6186         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
6187         * device/include/Makefile.in: create subdir and install pic14 headers
6188         * device/include/pic/p16f_common.inc: removed unused declarations
6189         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
6190             PICs from inc2h.pl v1.6,
6191             replaced BIT_AT macros with struct declarations
6192         * device/include/pic/pic14devices.txt: definition of supported devices,
6193             all above improvements contributed by Zik Saleeba, thanks
6194         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
6195         * support/scripts/sdcc.nsi: also install pic14 device libraries and
6196             headers
6197
6198 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6199
6200         * device/include/mcs51/c8051f410.h: added interrupt numbers,
6201         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
6202           thanks to Charles Olds
6203
6204 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6205
6206         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
6207
6208 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6209
6210         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
6211         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
6212         * support/regression/bug1464657.c: added, new test
6213
6214 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6215
6216         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
6217           version number
6218
6219 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6220
6221         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
6222           --no-peep and --peep-file <file> are used don't use default rules but
6223           do use the <file>
6224
6225 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6226
6227         * src/mcs51/gen.c (genCall): fixed bug 1457608
6228
6229 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6230
6231         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
6232         changes seem to cause (trigger?) problems with the build system.
6233
6234 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
6235
6236         * src/SDCCpeeph.c (operandsLiteral): new, added,
6237           (callFuncByName): inserted operandsLiteral
6238         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
6239
6240 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6241
6242         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
6243         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
6244
6245 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
6246
6247         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
6248           implemented patch 1120823 Thanks to Willy De la Court (normal
6249           interrupts need an interrupt number now if they are made critical),
6250           and enabled nesting of critical functions though not for gbz80
6251           (genCritical, genEndCritical): added functions
6252           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
6253         * src/z80/mappings.i: added "ei" to all mappings
6254
6255 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6256
6257         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
6258         submitted by the Debian SDCC maintainer Aurelien Jarno:
6259         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
6260         archive with gcc 4.1 on mips and wrote the patch"
6261
6262 2006-03-16 Raphael Neider <rneider AT web.de>
6263
6264         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
6265           the left operand is shorter than the result (c* = lit-c* + int),
6266           fixes bug #1450796
6267         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
6268           OP_SYMBOL
6269
6270 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6271
6272         * src/.version: increased version number to 2.5.5
6273         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
6274         linking is done manually in pic16 port's _linkEdit,
6275         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
6276         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
6277         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
6278         allocate asmop as AOP_ACC,
6279         (aopForRemat): added parameter 'bool result' in function declaration,
6280         (pic16_aopGet): return AOP_ACC when accessing WREG,
6281         (pic16_popGetTempReg): minor modification,
6282         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
6283         'pic16_allocWithIdx',
6284         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
6285         calling function in absolute addresses,
6286         (genAssign): take into account AOP_ACC asmop,
6287         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
6288         * src/pic16/pcoderegs.c: some debug functions and lines added,
6289         * src/pic16/ralloc.c (decodeRegType): added but commented out,
6290         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
6291         register too,
6292         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
6293         call to allocReg, not by manually allocating a new one,
6294         (pic16_assignRegisters): now before going through the register
6295         allocating functions mark all registers as free. This eliminates some
6296         side effects resulting from peephole parser done earlier in the backbone
6297
6298 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
6299
6300         * src/SDCCicode.c (geniCodeLogic),
6301         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
6302
6303 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
6304
6305         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
6306           (genSend): bugfix, do not allocate and free twice,
6307           (shiftRLong): handle partially overlapping aops
6308         * support/regression/tests/bitopcse.c: fixed warning redefined idata
6309
6310 2006-03-08 Borut Razem <borut.razem AT siol.net>
6311
6312         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
6313           for pic16
6314
6315 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
6316
6317         * support/regression/tests/bug1409955.c: new, added
6318         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
6319         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
6320           (aopForSym, aopOp): increment asmop.allocated if reused,
6321           (freeAsmop): decrement asmop.allocated and check for zero instead of
6322           using asmop.freed,
6323           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
6324           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
6325            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
6326            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
6327            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
6328            genSignedRightShift, genRightShift, genDataPointerGet,
6329            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
6330            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
6331             in reverse order from allocation,
6332           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
6333             added swappedLR to keep track
6334         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
6335           pdata & code for GCC, z80, gbz80 & hc08
6336         * support/regression/tests/zeropad.c: moved defines to testfwk.h
6337
6338 2006-03-08 Raphael Neider <rneider AT web.de>
6339
6340         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
6341
6342 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
6343
6344         * device/include/mcs51/c8051f410.h: new SiLabs mcu
6345         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
6346         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
6347
6348 2006-03-06 Borut Razem <borut.razem AT siol.net>
6349
6350         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
6351           made the linker quiet
6352
6353 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
6354
6355         * src/pic16/gen.c (genPcall): fixed bug #1443644
6356         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
6357         which dumps before the function entry point a data byte which represents
6358         the number of the local variables used by the specified function, added
6359         'xinst' for initial support for Extended Instruction Support,
6360         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
6361         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
6362         port->fun_prefix anymore (may change later),
6363         (genFunction, genEndFunction): do not store/restore local registers for
6364         _main (this should take care the --main-return command line option in
6365         the future),
6366         (genOr): removed some legacy pic-port instructions,
6367         * src/pic16/genarith.c (genAddLit): re-enabled old code because
6368         performing operations with SFR's causes data to be written more than
6369         once to each SFR. Perhaps SFRs should be handled in special cases...
6370         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
6371         pcode.h
6372         * src/pic16/main.c (_process_pragma): stack bound checking did not take
6373         into account for stack starting position,
6374         (struct OPTIONS pic16_optionsTable): added command line argument
6375         --extended or -y for Extended Instruction Support,
6376         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
6377         (deassignLRs): *** perhaps the most important change, old 'for' code
6378         (commented out for reference), didn't account for some registers which
6379         were left marked 'not free' after a pointer operation. The change
6380         reduces register usage a lot in some cases
6381
6382 2006-03-04 Borut Razem <borut.razem AT siol.net>
6383
6384         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
6385           _clean
6386         * support/regression/tests/bug-524697.c: decreased array size for
6387           mcs51 to fit into the internal RAM
6388         * support/regression/Makefile.in: a little bit more verbose
6389
6390 2006-03-03 Borut Razem <borut.razem AT siol.net>
6391
6392         * support/regression/fwk/lib/testfwk.c,
6393           support/regression/fwk/include/testfwk.h: introduced function
6394           _prints(), nonrecursive _printn(), call _initEmu() from main()
6395         * support/regression/ports/gbz80/support.asm,
6396           support/regression/ports/ucz80/support.asm,
6397           support/regression/ports/z80/support.asm,
6398           support/regression/ports/ds390/support.c,
6399           support/regression/ports/hc08/support.c,
6400           support/regression/ports/host/support.c,
6401           support/regression/ports/mcs51/support.c,
6402           support/regression/ports/xa51/support.c: added empty _initEmu()
6403           function
6404         * support/regression/ports/pic16/gpsim.cmd,
6405           support/regression/ports/pic16/spec.mk,
6406           support/regression/ports/pic16/support.c,
6407           support/regression/Makefile.in: added pic16 regression test
6408
6409 2006-03-01 Raphael Neider <rneider AT web.de>
6410
6411         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
6412           genConstPointerGet): use safe way of generating MOVFF to cover
6413             literals as well as registers, fixes bug #1440527
6414         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
6415             dereference
6416           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
6417             more correctly, fixes bug #1232186
6418           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
6419         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
6420             gplink guess the correct processor in more cases, applied patch
6421             from Till Riedel attached to and fixing bug #1436552
6422
6423 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6424
6425         * support/regression/tests/array.c: added, contains check for #1434401
6426         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
6427
6428 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
6429
6430         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
6431         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
6432         * device/include/mcs51/c8051f326.h,
6433         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
6434         * device/include/mcs51/c8051f000.h,
6435         * device/include/mcs51/c8051f018.h,
6436         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
6437           PCON_IDLE,PCON_STOP and added sfr16 definitions
6438
6439 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
6440
6441         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
6442           genGetWord): fixed bug 1409955
6443
6444 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
6445
6446         * device/include/hc08/mc68hc908gp32.h,
6447         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
6448
6449 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
6450
6451         * src/SDCCast.c (constExprValue): return NULL if not a value
6452         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
6453         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
6454         * support/regression/tests/bitfields.c: enabled signed bitfield for all
6455
6456 2006-02-13 Borut Razem <borut.razem AT siol.net>
6457
6458         * src/regression/ptrarg.c: added, fails due to bug #1430967
6459         * src/regression/Makefile: ptrarg.c added, ...
6460
6461 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
6462
6463         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
6464         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
6465
6466 2006-02-11 Borut Razem <borut.razem AT siol.net>
6467
6468         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
6469           print "Processor: xxx" message to stdout only if --verbose
6470
6471 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
6472
6473         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
6474         * support/regression/tests/bug1426356.c: added
6475         * support/regression/tests/bitfields.c: removed 2 tests
6476
6477 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
6478
6479         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
6480         * device/include/mcs51/c8051f330.h,
6481         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
6482           PCON_IDLE,PCON_STOP and added sfr16 definitions
6483         * device/lib/_divsint.c,
6484         * device/lib/_divuint.c,
6485         * device/lib/_divulong.c,
6486         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
6487           register bank bug for small stackauto
6488
6489 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
6490
6491         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
6492
6493 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
6494
6495         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
6496         * all.dsp: corrected several bin paths
6497         * device/include/mcs51/c8051f120.h,
6498         * device/include/mcs51/c8051f300.h,
6499         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
6500           to PCON_IDLE,PCON_STOP
6501         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
6502         * device/lib/printf_large.c (output_float): fixed bug 1388703
6503         * support/regression/tests/bug1057979.c: added test for bug 1388703
6504
6505 2006-02-08 Raphael Neider <rneider AT web.de>
6506
6507         * src/pic/pcode.c (pciTRIS): fixed typo,
6508           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
6509           (LinkFlow): fixed handling of flows that end in a call,
6510           (ReuseReg): perform safety check earlier
6511         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
6512             to work with flows at the beginning of a pBlock,
6513             fixes #1426557 (Symbol not previously defined),
6514           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
6515             usage information
6516           (RemoveUnusedRegisters): update register usage info
6517         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
6518             created, reuse existing ones instead
6519         * src/pic/gen.c (genPcall): fixed #1424719
6520
6521 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
6522
6523         * link/z80/lkmain.c,
6524         * link/z80/lklex.c,
6525         * link/z80/lkdata.c,
6526         * link/z80/aslink.h: fixed build on current cygwin:
6527         replaced getline() by lk_getline()
6528
6529 2006-02-01 Borut Razem <borut.razem AT siol.net>
6530
6531         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
6532           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
6533           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
6534           src/regression/bool1.c, src/regression/bool2.c,
6535           src/regression/bool3.c, src/regression/call1.c,
6536           src/regression/compare.c, src/regression/compare10.c,
6537           src/regression/compare2.c, src/regression/compare3.c,
6538           src/regression/compare4.c, src/regression/compare5.c,
6539           src/regression/compare6.c, src/regression/compare7.c,
6540           src/regression/compare8.c, src/regression/compare9.c,
6541           src/regression/configword.c, src/regression/for.c,
6542           src/regression/inline.c, src/regression/mult1.c,
6543           src/regression/nestfor.c, src/regression/or1.c,
6544           src/regression/pointer1.c, src/regression/ptrfunc.c,
6545           src/regression/rotate1.c, src/regression/rotate2.c,
6546           src/regression/rotate3.c, src/regression/rotate4.c,
6547           src/regression/rotate5.c, src/regression/rotate6.c,
6548           src/regression/rotate7.c, src/regression/string1.c,
6549           src/regression/struct1.c, src/regression/sub.c,
6550           src/regression/sub2.c, src/regression/switch1.c,
6551           src/regression/while.c, src/regression/xor.c,
6552           src/regression/create_stc, src/regression/simulate,
6553           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
6554           regression tests
6555         * src/regression/gpsim_assert.h: added
6556
6557 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
6558
6559         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
6560         ((void (code *) (void)) 0) ();
6561         * as/hc08/aslex.c,
6562         * as/hc08/aslink.h,
6563         * as/hc08/asm.h,
6564         * as/hc08/asmain.c,
6565         * as/hc08/lkdata.c,
6566         * as/hc08/lklex.c,
6567         * as/hc08/lkmain.c,
6568         * as/mcs51/aslex.c,
6569         * as/mcs51/aslink.h,
6570         * as/mcs51/asm.h,
6571         * as/mcs51/asmain.c,
6572         * as/mcs51/lkdata.c,
6573         * as/mcs51/lklex.c,
6574         * as/mcs51/lkmain.c,
6575         * as/z80/aslex.c,
6576         * as/z80/asm.h,
6577         * as/z80/asmain.c: fixed build on current cygwin:
6578         replaced getline() by as_getline()
6579
6580 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
6581
6582         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
6583         declarator in the symbol chain
6584         * src/SDCCsymt.h,
6585         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
6586         parameter list for function pointers
6587         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
6588         * support/regression/tests/bug-716242.c: added
6589
6590 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
6591
6592         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
6593         offset if possible
6594         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
6595
6596 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
6597
6598         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
6599         inifinitely recurseable, added static
6600         * support/regression/tests/bug-1408066.c: added
6601
6602 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
6603
6604         * src/SDCCicode.h,
6605         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
6606         renamed, added possibility to create "postLoopLbl"-labels
6607         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
6608         newiTempLoopHeaderLabel
6609         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
6610         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
6611         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
6612         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
6613         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
6614         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
6615         (basicInduction): fixed bug #136564, made static,
6616         (loopInduction): changed parameter of basicInduction, made static,
6617         (addPostLoopBlock): added
6618         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
6619         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
6620         findLoopEndSeq
6621         * support/regression/tests/bug-136564.c: added
6622         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
6623         --std-sdcc99 to LIBSDCCFLAGS
6624
6625 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
6626
6627         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
6628         while loop
6629         * support/regression/tests/bug-1406131.c: added
6630
6631 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
6632
6633         * src/SDCCast.c (decorateType): fix promotion of unary minus
6634         * src/SDCCsymt.c (computeType): beautified
6635         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
6636         (valUnaryPM, valComplement): fix sign and promotion,
6637         (valNot): ANSI: result type is int (SDCC: unsigned char)
6638         * support/regression/tests/uminus.c: speedup by removing superflous
6639         test case 'int'
6640         * support/regression/tests/onebyte.c: added promotion and signedness
6641         tests for unary minus
6642         * support/regressions/tests/bug-477927.c: disable warning about
6643         uninitialized variables
6644         * support/regression/tests/not.c: added
6645
6646 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
6647
6648         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
6649         * src/mcs51/gen.c (gen51Code): show final register usage after
6650         fillGaps in asm with --i-code-in-asm
6651         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
6652         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
6653         incUsed, rliveClear, adjustIChain): made static,
6654         (setFromRange): excluded because it's unused,
6655         (findPrevUseSym, markWholeLoop): added,
6656         (findPrevUse): rewritten; fixes bug 895992; now a complete search
6657         through all branches of predecessors enables sdcc to emit the warning
6658         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
6659         (rlivePoint): made static, added parameter emitWarnings which is only
6660         true during the first run out of two,
6661         (findRecursiveSucc, findRecursivePred): removed,
6662         (computeLiveRanges): made static, added parameter emitWarnings,
6663         (dumpIcRlive): added for debugging only
6664         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
6665         removed prototype of setFromRange()
6666         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
6667         in call of computeLiveRanges()
6668         * support/regression/tests/bug-895992.c: added
6669         * support/regression/tests/bug-971834.c: added
6670         * support/valdiag/tests/bug-895992.c: added
6671         * support/valdiag/tests/bug-971834.c: added
6672
6673 2005-12-18 Raphael Neider <rneider AT web.de>
6674
6675         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
6676           (genUnpackBits): improved code for direct operands,
6677           (genPackBits): improved code for literal assignment to bitfields
6678             and for direct destination operands (no FSR indirection),
6679             prevented redundant AND, fixes #1362800,
6680           (AccLsh): added parameter to disable masking of the result
6681         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
6682           skip instructions with side-effects (like incfsz),
6683           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
6684         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
6685         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
6686           fixes #1375263
6687
6688 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
6689
6690         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
6691         volatile variables as spill location
6692
6693 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
6694
6695         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
6696         replacing literals
6697         * support/regression/tests/bug-1376320.c: added
6698
6699 2005-12-08 Raphael Neider <rneider AT web.de>
6700
6701         * src/pic/device.c: renamed is_shared to pic14_is_shared
6702         * src/pic/gen.c (genIfx): re-enabled handling of sbits
6703         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
6704           (is_valid_identifier): added for above workaround
6705
6706 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
6707
6708         * device/lib/Makefile.in: fixed to enable port-specific-objects
6709         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
6710           char, thanks Hubert Sack
6711         * doc/sdccman.lyx: documented --xstack-loc,
6712           elaborated a bit more on interrupts and pitfalls,
6713           removed "setjmp/longjmp unsupported",
6714           documented some unsupported C99 features
6715         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
6716         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
6717           if, thanks Hubert Sack
6718         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
6719         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
6720           make make_library
6721         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
6722           regression tests can report resource usage (rfe 700441)
6723         * support/regression/collate-results.py: report resource usage
6724         * support/regression/ports/ds390/spec.mk,
6725         * support/regression/ports/hc08/spec.mk,
6726         * support/regression/ports/mcs51/spec.mk,
6727         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
6728         * support/regression/ports/ds390/uCsim.cmd,
6729         * support/regression/ports/hc08/uCsim.cmd,
6730         * support/regression/ports/mcs51/uCsim.cmd,
6731         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
6732         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
6733           library, use the default one
6734         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
6735           building the library
6736
6737 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
6738
6739         * config.dsp: added dependency on .version and configure_vc.awk
6740         * device/include/setjmp.h: updated for --stack-auto and --xstack
6741         * device/include/mcs51/at89c51snd1c.h: corrected line endings
6742         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
6743         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
6744         * device/lib/libsdcc.lib: added _setjmp
6745         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
6746           (decorateType): fixed bug 1372851,
6747           (optimizeGetHbit): fixed warning
6748         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
6749           array initialisation
6750         * support/regression/tests/bug1057979.c: added test for bug 1358192
6751         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
6752
6753 2005-12-03 Borut Razem <borut.razem AT siol.net>
6754
6755         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
6756           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
6757
6758 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
6759
6760         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
6761         createIval): implement symbol independant "flexible array member",
6762         (createIvalCharPtr): implemented flexible array initialisation with a
6763         string
6764         * src/SDCCsymt.c (copyStruct): removed,
6765         (getSize): fixed misleading comment,
6766         (getAllocSize): removed, the additional allocation size is now in
6767         sym->flexArrayLength,
6768         (checkStructFlexArray): new, syntax checks for flexible array members,
6769         (compStructSize): added syntax checks for "flexible array members"
6770         (copyStruct): removed,
6771         (copyLinkChain): removed inefficient fix for bug 770487
6772         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
6773         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
6774         symbol->flexArrayLength
6775         * src/SDCCerr.c,
6776         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
6777         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
6778         * support/regression/tests/structflexarray.c: added
6779         * support/valdiag/tests/structflexiblearray.c: added
6780
6781 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
6782
6783         * src/SDCCast.c (decorateType): fixed bug 1368489
6784         * support/Util/SDCCerr.c,
6785         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
6786
6787 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6788
6789         * device/include/mcs51/at89c51snd1c.h: added file submitted by
6790           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
6791
6792 2005-11-27 Borut Razem <borut.razem AT siol.net>
6793
6794         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
6795           support/cpp2/mkdeps.h: added command line option
6796           -obj-ext=<extension> to SDCPP to define object file externion, used
6797           for generation of make dependencies (-M)
6798         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
6799
6800 2005-11-26 Borut Razem <borut.razem AT siol.net>
6801
6802         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
6803           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
6804           added pic and pic16 libraries
6805
6806 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6807
6808         * device/include/float.h: Corrected typo in prototype of __fsgt
6809
6810 2005-11-25 Borut Razem <borut.razem AT siol.net>
6811
6812         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
6813           added creation of model-mcs51-stack-auto libraries
6814
6815 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
6816
6817         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
6818         and fields-list too
6819         * src/SDCCast.c (createIvalArray): removed obsolete comment
6820
6821 2005-11-24 Borut Razem <borut.razem AT siol.net>
6822
6823         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
6824           added missing device/lib/mcs51/crt*.asm sources
6825
6826 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
6827
6828         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
6829
6830 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
6831
6832         * device/lib/_fs2schar.c,
6833         * device/lib/_fs2sint.c,
6834         * device/lib/_fs2slong.c: optimized inline asm
6835
6836 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6837
6838         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
6839           Better handling of floats between -1.0 and 0.0.
6840
6841 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6842
6843         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
6844           (the missing "if"s prohibited removal of redundant labels)
6845
6846 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6847
6848         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
6849           Properly convert floats between -1.0 and 0.0 to long, int, and char
6850           types (max integer value of negative floats tends to zero).
6851         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
6852           Removed changes made so to work properly with floats between
6853           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
6854           and _fs2char.c
6855
6856 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
6857
6858         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
6859         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
6860         (genCast) cosmetic change
6861         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
6862         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
6863         from mcs51
6864         * support/regression/tests/bitfields (testSignedBitfields): added
6865
6866 2005-11-18 Borut Razem <borut.razem AT siol.net>
6867
6868         * sdcc/device/lib/Makefile.in: remove all unnecessary files
6869         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
6870           introduced SILENT option to make building of pic16 libraries less
6871
6872 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6873
6874         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
6875           Now they work properly with floats between -1.0 and 0.0
6876         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
6877
6878 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
6879
6880         * src/SDCCicode.c (printOperand): added missing else
6881
6882 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
6883
6884         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
6885         reformatted for better readability
6886         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
6887         signed bitfields
6888
6889 2005-11-17 Borut Razem <borut.razem AT siol.net>
6890
6891         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
6892           introduced SILENT option to make building of pic16 libraries less
6893           verbose - used for nightly snapshot build
6894         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
6895           available on Win32 platforms.
6896         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
6897           medium, large, pic and pic16
6898
6899 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6900
6901         * device/lib/printf_large.c: Temporary patch for bug 1358192:
6902           printf("%f"...) sets fraction to zero.
6903
6904 2005-11-16 Raphael Neider <rneider AT web.de>
6905
6906         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
6907           fixes #1357221
6908         * src/pic/gen.c (genIfx): implemented for CARRY bit
6909         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
6910           to generic pointers, fixes #1357332,
6911           (pic16_movLit2f): NEW,
6912           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
6913
6914 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
6915
6916         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
6917
6918 2005-11-11 Raphael Neider <rneider AT web.de>
6919
6920         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
6921         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
6922           compute pointer's type from operand,
6923           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
6924           improved single bit reads, fixes bug #1353379
6925
6926 2005-11-09 Borut Razem <borut.razem AT siol.net>
6927
6928         * support/scripts/sdcc.nsi: added lib/pic to the package
6929
6930 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
6931
6932         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
6933
6934 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
6935
6936         * support/regression/tests/bug1348008.c: added
6937         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
6938         * support/regression/tests/bug1337835.c: updated comment
6939
6940 2005-11-06 Borut Razem <borut.razem AT siol.net>
6941
6942         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
6943           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
6944           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
6945           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
6946           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
6947           dynamic construction of cl_error_class and derivates - 2.nd try
6948
6949 2005-11-05 Borut Razem <borut.razem AT siol.net>
6950
6951         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
6952           bug, which caused Bus Errors on sparc solaris
6953
6954 2005-11-04 Borut Razem <borut.razem AT siol.net>
6955
6956         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
6957           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
6958           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
6959           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
6960           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
6961           and derivates to resolve the initialization problem on OSX
6962
6963 2005-11-02 Borut Razem <borut.razem AT siol.net>
6964
6965         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
6966           corrected typo - #include <winsock2.h>
6967
6968 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
6969
6970         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
6971           (_asxxxx_mapping): added org directive for future enhancements
6972
6973 2005-11-01 Borut Razem <borut.razem AT siol.net>
6974
6975         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
6976           enabled sockets on WIN32
6977         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
6978
6979 2005-10-31 Borut Razem <borut.razem AT siol.net>
6980
6981         * support/regression/generate-cases.py: escape backslashes in {testcase}:
6982           WIN32 backslash path delimiters should be escaped when used in C strings
6983         * support/regression/tests/bitfields.c: exclude failing assertions for
6984           __CYGWIN32__ and __MINGW32__ hosts
6985
6986 2005-10-30 Borut Razem <borut.razem AT siol.net>
6987
6988         * src/SDCCutil.c: corrected double comparison typo
6989
6990 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
6991
6992         * device/lib/medium/Makefile: added for new memory model medium
6993         * device/include/asm/mcs51/features.h: updated for medium/pdata
6994         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
6995           added Multiply & Accumulate sbit's and MAC0_PAGE define
6996         * device/include/mcs51/c8051f300.h: added sfr16 definitions
6997         * device/include/mcs51/c8051f310.h: added sfr16 definitions
6998         * device/lib/_mullong.c: update for medium model
6999         * device/lib/incl.mk: added medium model
7000         * doc/sdccman.lyx: documented medium model
7001         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
7002         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
7003         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
7004         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
7005           (allocParms): set SCLS and OCLS to pdata for medium model
7006         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
7007           for pdata,
7008           (powof2): return <0 if not power of 2
7009         * src/avr/gen.c (genBitWise): use updated powof2
7010         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
7011           (shiftR2Left2Result): small optimization in setup, save acc when storing,
7012           (shiftLLeftOrResult): use B if necessary
7013         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
7014         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
7015         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
7016         * support/regression/Makefile.in: added test-mcs51-medium
7017         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
7018
7019 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
7020
7021         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
7022         specifier unsigned
7023         * device/lib/time.c (mktime): fixed bug 1334315
7024
7025 2005-10-28 Raphael Neider <rneider AT web.de>
7026
7027         * device/include/pic/p16f_common.inc: added common declarations
7028         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
7029
7030 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
7031
7032         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
7033           (aopPutUsesAcc): added to predict accumulator use,
7034           (assignResultValue): save acc if necessary,
7035           (genMinusDec): store result if indirectly addressed,
7036           (genDivOneByte):  save acc if necessary,
7037           (movLeft2Result): bugfix if left already in acc,
7038           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
7039             attention to accumulator use (esp. pdata),
7040           (genReceive): receive pdata correctly
7041         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
7042         * src/SDCCicode.h: added isOperandInPagedSpace prototype
7043
7044 2005-10-27 Raphael Neider <rneider AT web.de>
7045
7046         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
7047
7048 2005-10-27 Raphael Neider <rneider AT web.de>
7049
7050         * .version: changed version to 2.5.4
7051         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
7052         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
7053           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
7054             arithmetics support routines
7055         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
7056         * device/lib/Makefile.in: also create installdir for pic
7057
7058         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
7059           pic14 port as well
7060         * src/pic/device.c (dump_sfr): rewritten to delegate register
7061           placement to the linker (use `extern sym' rather than sym EQU addr),
7062           (validAddress): fixed to check last specified address
7063         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
7064           (popGetLit): truncate literal value to 8 bit,
7065           (popGet): moved assert to more appropriate place
7066           (popGetExternal): create pCode operand from and mark the according
7067             symbol as being `extern'
7068           (popGetAddr): added sanity check on immediate's offset, provide
7069             GPOINTER tag on demand
7070           (aopPut): fixed for immediates,
7071           (mov2w_op): move operand's address or contents to WREG (depending on
7072             operand type), safer variant of mov2w,
7073           (movwf,call_libraryfunc): NEW, handy abbreviations,
7074           (get_argument_pcop,get_return_val_pcop,pass_argument,
7075           get_returnvalue): interface for accessing function parameters and
7076             return values,
7077           (assignResultValuei,genRet): use new parameter/return value interface
7078           (pic14_getDataSize): back to old version handling generic pointers,
7079           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
7080             provided implementation and/or fixed old one,
7081           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
7082             calls, removed legacy 8051 reference code
7083           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
7084           (loadSignToC): NEW, move the operands sign bit to CARRY,
7085           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
7086             genRightShiftSigned, accepts negative shift counts,
7087           (setup_fsr): load FSR and adjust IRP (indirect memory access),
7088           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
7089             generic pointers, __data pointers and __code pointers,
7090           (genUnpackBits,genPackBits): rewritten to work with generic pointers
7091             and signed bitfields, limit bitfields to 8 bit,
7092           (genDataPointerGet): fixed number of bytes read,
7093           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
7094           (genPointerGet,genPointerSet): fixed handling of __code pointers,
7095             pointers to constant data are no longer assumed to point to __code
7096             space, removed invalid pointer types,
7097           (bitpatternFromVal): retrieve the PICs representation of an integer
7098             or float literal,
7099           (genDataPointerSet): fixed assigning to po_immediate operands,
7100           (genGenPointerSet): implemented as library call,
7101           (genIfx): fixed incorrect condition,
7102           (genAddrOf): limit generic pointers' addresses to 2 bytes,
7103             provide GPOINTER tag according to destination's storage class,
7104           (genCast): added code to handle casting to generic pointers, added
7105             sign-/zero extension of the result
7106           (aop_isLitLike,op_isLitLike): fixed handling of immediates
7107         * src/pic/gen.h: added macros to access IRP bit in STATUS register
7108         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
7109           extend the result
7110         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
7111           address/register resides in the shared banks
7112           (emitSymbolToFile): improved to handle global and `pinned' symbols,
7113             put all variables into separate sections (have the linker arrange
7114             them)
7115           (picglue): put init code and interrupt handlers in separate sections
7116         * src/pic/main.c: added port specific options table, modified to PORT
7117           structure to make GPOINTERs 3 byte, added pic14_options
7118           (_pic14_do_link): private linking routine (update paths to libraries,
7119             add libsdcc.lib by default)
7120         * src/pic/main.h: declare pic14_options
7121         * src/pic/pcode.c: fixed instructions i/o relations,
7122           (RegCond): reverted to correct version,
7123           (newpCodeOpLit): truncate literals to 8 bit,
7124           (genericPrint): added debug output,
7125           (getRegFromInstruction): fixed for various operand types, simplified
7126           (BuildFlow): fixed broken handling of isntructions with labels
7127           (LinkFlow): start at last instruction in flow (skip trailing comments),
7128             pass the flow on to the next instruction after CALL
7129           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
7130           (insertPCodeInstruction): fixed inserting after a skip instruction,
7131           (DoBankSelect): fixed for labeled instructions
7132           (OptimizepBlock): honor --nopeep switch
7133           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
7134         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
7135         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
7136           (pCodeOptime2pCodes): allow disabling this optimization via
7137             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
7138             but is still buggy), started implementation of a dataflow based
7139             pCode optimization (CSE + dead code elimination)
7140           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
7141         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
7142           names are independant of the stack location and therefore portable across
7143           devices
7144
7145 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
7146
7147         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
7148           (selectSpil): fixed bug 1337835 by not spilling bit variables
7149         * support/regression/tests/bug1337835.c: added test for this bug
7150         * src/mcs51/peeph.def: restart after rule 3.c,
7151           addded rules 263.x to optimize loading constants
7152
7153 2005-10-26 Raphael Neider <rneider AT web.de>
7154
7155         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
7156         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
7157           (genAssign): emit warning when casting literals to generic pointer
7158             type, also applies when taking the address of a fixed variable,
7159           (genCast): improved casting to generic pointers
7160         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
7161           extern variables, added verbose error message
7162         * device/include/pic16/{string.h,errno.h}: added #pragma library c
7163
7164 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
7165
7166         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
7167         carry must be complemented too
7168         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
7169         could be emitted by genMinus
7170         * src/SDCCval.c (constVal): fixed bug 1305065
7171
7172 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
7173
7174         * src/SDCCast.c (addCast): added promotion for bit variables
7175         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
7176         promotion casts + optimisation
7177         (optimizeGetWord): fix warning 'i' might be used uninitialized
7178         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
7179         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
7180
7181 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
7182
7183         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
7184         all chars are promoted to int; promotion should be handled in SDCCast.c
7185
7186 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7187
7188         * device/lib/_strcmp.c: Fixed bug 1326457
7189
7190 2005-10-11 Raphael Neider <rneider AT web.de>
7191
7192         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
7193         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
7194
7195 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
7196
7197         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
7198         * support/regression/tests/sfr16.c: added test for the sfr32 bug
7199
7200 2005-10-04 Raphael Neider <rneider AT web.de>
7201
7202         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
7203           device/lib/pic16/pics.all: added pic18f1320
7204         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
7205
7206 2005-09-30 Raphael Neider <rneider AT web.de>
7207
7208         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
7209         * src/pic16/devices.inc: NEW, provides device descriptions
7210         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
7211
7212 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
7213
7214         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
7215           GETHBIT
7216
7217 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
7218
7219         * doc/sdccman.lyx: updated Highest Order Bit documentation,
7220           documented Any Order Bit, Higher Order Byte and Higher Order Word
7221         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
7222         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
7223           (optimizeGetAbit): new, to get any bit, not only the high bit,
7224           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
7225           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
7226           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
7227           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
7228             RIGHT_OP: also try GETBYTE, GETWORD optimization,
7229             GETABIT, GETBYTE, GETWORD: decorate them,
7230           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
7231           (ast_print): added GETABIT, GETBYTE, GETWORD
7232         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
7233         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
7234           (geniCodeBinary): new generic binary icode,
7235           (ast2iCode): added GETABIT, GETBYTE, GETWORD
7236         * src/port.h: updated comment for PORT.hasExtBitOp
7237         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
7238           (genGetByte): new, to get a single byte,
7239           (genGetWord): new, to get a word from a long,
7240           (gen51Code): added GETABIT, GETBYTE, GETWORD
7241         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
7242
7243 2005-09-23 Raphael Neider <rneider AT web.de>
7244
7245         * configure.in, configure: have device/lib/pic configured
7246         * device/lib/Makefile.in: added model-pic14
7247         * device/lib/clean.mk: added pic/ to clean rule
7248         * device/lib/pic: added rudimentary pic14 library providing support
7249           functions for multiplication/division/generic pointer access
7250         * src/SDCCopt.c (convilong): mark support functions as extern
7251           for pic14 port as well
7252         * src/pic/gen.c (genMult): added assertions,
7253           (genpic14Code): emit warning on unhandled iCodes
7254         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
7255         * src/pic/pcode.c (pCodeOpCopy),
7256         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
7257           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
7258           SFR_REGISTER}), made safe for future extensions
7259         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
7260           instructions even if preceeded by SKIP instructions (also remove
7261           them); removed unused code
7262         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
7263           prevents leaving parts of the structure uninitialized after copying
7264
7265 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
7266
7267         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
7268           ago by me
7269         * support/regression/tests/addsub.c: added test for the bug
7270
7271 2005-09-21 Raphael Neider <rneider AT web.de>
7272
7273         * device/include/pic16/pic18f1220.h,
7274           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
7275         * device/lib/pic16/Makefile.rules: added missing opening paren
7276         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
7277           are provided in genutils.c,
7278           (genUminusFloat,genUminus,genCmpEq): added asserts on different
7279           operand/result sizes,
7280           (genCmp): assert on NULL pointers first, then check deref'ed values
7281         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
7282           result size
7283
7284 2005-09-18 Raphael Neider <rneider AT web.de>
7285
7286         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
7287           as these are now unused,
7288           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
7289         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
7290           local, avoids uninitialized pointer dereference on r->name
7291         * src/pic16/ralloc.c (newReg): fixed indentation
7292
7293 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
7294
7295         * src/SDCCval.c (constVal): fixed bug 730366
7296         * support/Util/SDCCerr.c,
7297         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
7298
7299 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
7300
7301         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
7302
7303 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
7304
7305         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
7306
7307 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7308
7309         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
7310           (hex2dec): made hex_digit unsigned char, removed ascii dependance
7311         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
7312           (hex2dec): made hex_digit unsigned char, removed ascii dependance
7313         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
7314         * packihx/packihx.c (hexDigit): made c unsigned char
7315         * as/mcs51/lklibr.c (fndsym),
7316         * link/z80/lkgb.c (gb),
7317         * link/z80/lklibr.c (fndsym),
7318         * link/z80/lkrloc.c (relr),
7319         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
7320         * src/SDCC.lex (checkCurrFile, process_pragma),
7321         * src/SDCCglue.c (spacesToUnderscores),
7322         * src/SDCCmain.c (setParseWithComma, processFile),
7323         * src/asm.c (tvsprintf, printCLine),
7324         * src/avr/gen.c (emitcode, aopPut),
7325         * src/ds390/gen.c (emitcode),
7326         * src/hc08/gen.c (emitcode, emitinline),
7327         * src/mcs51/gen.c (emitcode, genInline),
7328         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
7329           tokenizeLineNode),
7330         * src/pic/ralloc.c (debugLog),
7331         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
7332           tokenizeLineNode),
7333         * src/pic16/ralloc.c (debugLog),
7334         * src/z80/main.c (_process_pragma):
7335            made all ctype.h function calls safe
7336         * src/SDCCopt.c: include math.h for fabs
7337         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
7338           and used them throughout the code to make ctype.h function calls safe
7339         * src/ds390/main.c (asmLineNodeFromLineNode),
7340         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
7341         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
7342            unsigned char*
7343         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
7344           (newpCodeAsmDir): made ctype.h function calls safe
7345         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
7346           pic16_emitcode):  made lbp unsigned char*
7347         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
7348           (pic16_newpCodeAsmDir): made ctype.h function calls safe
7349         * src/xa51/gen.c (emitcode),
7350         * src/z80/gen.c (_emit2): made lbp unsigned char*
7351         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
7352            char*
7353
7354 2005-09-05 Raphael Neider <rneider AT web.de>
7355
7356         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
7357           access bank splitpoint
7358
7359 2005-09-05 Raphael Neider <rneider AT web.de>
7360
7361         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
7362
7363 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
7364
7365         * .version: changed to version 2.5.3
7366         * doc/sdccman.lyx: changed version to 2.5.3,
7367           documented --codeseg and --constseg and pragma codeseg and constseg,
7368           documented bit parameters (reentrant) and bit returning
7369         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
7370            currFunc->recvSize, but is this ok for all ports?
7371           (ast2iCode): result of ~ on unsigned char must be cast to int for
7372            bool to work
7373         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
7374           function pointers in bit space
7375         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
7376           (processFuncArgs): call port.reg_parm() with reentrancy info
7377         * src/port.h,
7378         * src/avr/main.c,
7379         * src/ds390/main.c,
7380         * src/hc08/main.c,
7381         * src/pic/main.c,
7382         * src/pic16/main.c,
7383         * src/xa51/main.c,
7384         * src/z80/main.c: port.reg_parm prototype extended with
7385           "bool reentrant" parameter
7386         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
7387           options.stackAuto for allocating bit register parameters
7388         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
7389           (genSend): set BitBankUsed if it is,
7390           (selectRegBank): factored out of genCall for use in genPcall,
7391           (genCall): removed redundant dtype assignmen, use selectRegBank,
7392           (genPcall): handle returning in Carry properly, save in F0 if needed,
7393           (genReceive): handle bit register parameters
7394         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
7395           (mcs51_assignRegisters): enable bit registers for all reentrant
7396            functions and don't set BitBankUsed unconditionally
7397         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
7398         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
7399         * support/regression/tests/funptrs.c: added tests for BOOL and for return
7400
7401 2005-08-27 Borut Razem <borut.razem AT siol.net>
7402
7403         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
7404         ppc-osx (Darwin) does not support -u option. It seems that it is
7405         supported only on Linux - GNU cp
7406
7407 2005-08-25 Borut Razem <borut.razem AT siol.net>
7408
7409         * sim/ucsim/gui.src/serio.src/Makefile.in,
7410           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
7411           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
7412           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
7413           install and strip, since the strip at /usr/ccs/bin should be used
7414           on solaris
7415
7416 2005-08-24 Borut Razem <borut.razem AT siol.net>
7417
7418         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
7419
7420 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
7421
7422         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
7423         ffffffffu
7424
7425 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
7426
7427         * as/mcs51/aslink.h: completed lkrloc.c prototypes
7428         * as/mcs51/lkmain.c (link_main): fixed warning
7429         * device/include/stdbool.h: ds390 has no advanced bit support yet
7430         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
7431         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
7432         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
7433           and updated their macros
7434         * src/SDCCval.c (constVal): updated comment for renamed b_long
7435
7436 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
7437
7438         * as/mcs51/asdata.c: changed ctype['['] to BINOP
7439         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
7440           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
7441           (oprio): set priority for '['
7442         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
7443            and adb_24_bit
7444         * as/mcs51/asm.h: added defines R_BIT and S_BIT
7445         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
7446         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
7447         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
7448           added overlayable BIT_BANK area
7449         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
7450           (summary2): explain 'T' in legenda
7451         * as/mcs51/lkrloc.c: replaced old K&R style,
7452           (relr): added R_BIT processing,
7453           (errmsg): added "Bit-addressable relocation error",
7454           (adb_bit): added for converting from byte- to bit-addressable space,
7455           (adb_24_bit): added for converting from byte- to bit-addressable space
7456         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
7457            used in reentrant functions now even as return value
7458         * device/lib/_gptrput.c (_gptrput): removed obsolete code
7459         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
7460           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
7461         * src/SDCCglobl.h: added indicator BitBankUsed
7462         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
7463            the bit registers b0-b7
7464         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
7465           (geniCodeCast): fixed bug 1263853,
7466           (geniCodeLogicAndOr): put result in bool or char,
7467           (geniCodeReceive): added parameter func for accessing the return type,
7468           (geniCodeFunctionBody): pass func to geniCodeReceive
7469         * src/SDCCmain.c: added indicator BitBankUsed
7470         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
7471         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
7472           (checkSClass): don't put automatic bool/bit on stack,
7473           (checkFunction): removed check on function cannot return bit
7474         * src/SDCCsymt.h: added newBoolLink prototype
7475         * src/mcs51/gen.c (rb1regs): added bit registers,
7476           (movc): created for assigning to carry,
7477           (pushReg, popReg): created for pushing registers,
7478           (sameRegs): check both AOP_REG and AOP_CRY types,
7479           (aopOp): handle bit registers,
7480           (aopPut): optimization no self-assign,
7481           (saveRegisters): push reg->base (bits) only once for bit registers,
7482            and use pushReg,
7483           (unsaveRegisters): pop reg->base only once and use popReg,
7484           (assignResultValue): added parameter func and return in carry for bits,
7485           (genIpush): optimization no reload in A if not changed,
7486           (genSend): bit parameters in reentrant functions are passed in bit
7487            registers by first assigning to bits in B, then save registers and
7488            copy B to bits,
7489           (genCall): handle returning in Carry properly, save it in F0 if needed,
7490           (genPcall): updated assignResultValue call, this is not safe yet for bit
7491            returning function !!!
7492           (genFunction): don't generate equ's for bit registers and use pushReg,
7493           (genEndFunction): take care of bit returning functions and use popReg,
7494           (genRet): return bit in Carry,
7495           (genIfx): optimize bit registers and other directly addressable bits,
7496           (genReceive): updated assignResultValue call
7497         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
7498           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
7499            registers when using stack-auto
7500         * src/mcs51/ralloc.c (_G): added allBitregs,
7501           (regs8051): added the bit registers,
7502           (createStackSpil): use macro IS_BIT,
7503           (getRegBit): added to allocate a bit register, else spill,
7504           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
7505           (updateRegUsage): factored out to ease stepping while debugging,
7506           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
7507            also allocate bit registers,
7508           (fillGaps): handle bit registers,
7509           (findAllBitregs): added to create bit vector with all bit registers,
7510           (mcs51_allBitregs): returns this bit vector,
7511           (mcs51_assignRegisters): when using stack-auto use bit registers for
7512            passing parameters and creating local variables
7513         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
7514
7515 2005-08-22 Borut Razem <borut.razem AT siol.net>
7516
7517         * device/lib/Makefile.in: replaced find option -or with -o
7518           to make it run on solaris
7519
7520 2005-08-22 Raphael Neider <rneider AT web.de>
7521
7522         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
7523           fixes #1265442 (crash on Solaris)
7524
7525 2005-08-20 Borut Razem <borut.razem AT siol.net>
7526
7527         * configure, configure.in: added tests for libsocket and libnsl libraries,
7528           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
7529           from support/regression/Makefile.in
7530         * support/regression/Makefile.in: added
7531         * device/lib/pic16/Makefile.common.in: force make to use bash shell
7532         * sim/ucsim/libtool: regenerated on sparc-solaris
7533         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
7534           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
7535           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
7536           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
7537           sparc-solaris, which doesn't use GNU ld linker
7538         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
7539         * as/Makefile: find on sparc-solaris does not support -maxdepth option
7540
7541 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
7542
7543         * src/mcs51/peeph.def: updated comments
7544
7545 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7546
7547         * device/lib/_gptrget.c,
7548         * device/lib/_gptrput.c: slightly shorter
7549         * doc/sdccman.lyx: incremented version
7550         * src/mcs51/peeph.def: moved peephole comments to the line of first
7551           change to better keep line correlation, reanimated 186.e
7552         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
7553
7554 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
7555
7556         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
7557           David Saxton with quotes around file name.
7558
7559 2005-08-15 Borut Razem <borut.razem AT siol.net>
7560
7561         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
7562           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
7563           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
7564           make tests run on x86_64 platform
7565
7566 2005-08-13 Raphael Neider <rneider AT web.de>
7567
7568         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
7569           as it might be executed DURING a build (parallel make is wonderful)
7570
7571 2005-08-13 Raphael Neider <rneider AT web.de>
7572
7573         * device/lib/Makefile.in (port-specific-objects-pic16):
7574           revert to cp $(PORT)/bin/*.* $(PORTDIR)
7575         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
7576           dependency
7577         * device/lib/pic16/Makefile.rules: build subdirs before creating
7578           the library, removed builddir rule, create $(builddir) early in
7579           recurse rule, use empty recurse rule for leaf directories
7580         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
7581           mkdir errors (race condition), removed duplicate suffix "hex"
7582           from clean rules
7583         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
7584         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
7585           prevents mkdir -p from aborting on Alpha
7586
7587 2005-08-12 Raphael Neider <rneider AT web.de>
7588
7589         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
7590           db-statements in order to allow for arrays of pointers in code
7591           sections to be placed without interspersed 0-padding, fixes
7592           bug #1256215
7593         * (emitStatistics): fixed division by zero for pic18f1220
7594         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
7595           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
7596         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
7597         * (pic16_pCodeConstString): keep track of already emitted string
7598           literals to prevent "duplicate definitions of symbol _str_NR"
7599         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
7600           debug message
7601         * device/lib/Makefile.in: ignore failing PIC16 library builds
7602         * device/lib/pic16/Makefile: do not build if gputils are missing
7603         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
7604
7605 2005-08-10 Raphael Neider <rneider AT web.de>
7606
7607         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
7608           my last commit)
7609
7610 2005-08-10 Raphael Neider <rneider AT web.de>
7611
7612         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
7613           Rokas' patch to add the new fixed point type "__fixed16x16"
7614         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
7615           functions for __fixed16x16 arithmetics
7616         * device/lib/pic16: reimplemented the build system to support
7617           a separate build directory, better handling of libio (create
7618           the library in a separate subdir for each architecture) and
7619           easier configuration (centralized in Makefile.common)
7620
7621 2005-08-07 Raphael Neider <rneider AT web.de>
7622
7623         * src/pic16/gen.c (genrshTwo): fixed sign extension
7624         * src/pic16/device.c: added pic18f2320, 4220 and 4320
7625         * device/include/pic16/pic18f2220.h: changed some bit definitions,
7626           added T0CONbits
7627         * device/include/pic16/pic18f4220.h: NEW, header for
7628           pic18f4220 and pic18f4320
7629         * device/include/pic16/pic18fregs.h: added new devices,
7630           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
7631         * device/include/pic16/signal.h: resolved name clashes
7632           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
7633           to also allow testing for interrupt enable bits, added
7634           comments on how to use the macros
7635         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
7636         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
7637           register definitions for the devices
7638         * device/lib/pic16/pics.all: added new devices
7639         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
7640           allocated memory
7641         * device/lib/pic16/libc/stdlib/memfree: do not count
7642           the block header as free memory
7643         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
7644           simplified and added missing end-of-blocklist-marker
7645           (reported by Peter Onion, fixes #1252814)
7646         * (_mergeHeapBlock): fixed loop condition
7647         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
7648           len==0, restructured code
7649         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
7650           up a bit, reduced bitfield accesses, prevent endless loops
7651           in case of heap corruption
7652         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
7653           "unreferenced arguments/must return a value" warnings
7654         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
7655           replaced BAUDREG with SPBRG
7656         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
7657           device/lib/pic16/debug/gstack/gstack.c: replaced
7658           _naked, _asm, _endasm with __naked, __asm, __endasm
7659
7660 2005-08-05 Raphael Neider <rneider AT web.de>
7661
7662         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
7663           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
7664
7665 2005-08-05 Borut Razem <borut.razem AT siol.net>
7666
7667         * device/lib/Makefile.in: added missing ';'
7668         * configure: removed ^M characters
7669
7670 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7671
7672         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
7673           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
7674           License
7675
7676 2005-08-04 Borut Razem <borut.razem AT siol.net>
7677
7678         * configure.in: pic16 libraries build 2nd try - enable running
7679           configure in device/lib/pic16
7680         * configure: regenerated from configure.in
7681         * device/lib/Makefile.in: create $(PORT)/bin directory
7682
7683 2005-08-03 Raphael Neider <rneider AT web.de>
7684
7685         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
7686           to get/set values via pointers
7687         * (genUnpackBits,genPackBits): changed detection of
7688           ptr->bitfield vs. sym.bitfield, fixed access via generic
7689           pointers, removed dead (wrong) code for multibyte bitfields
7690         * (genNearPointerGet, genGenPointerGet): removed useless code,
7691           fixed bitfield detection, fixes #1250594
7692         * (genNearPointerSet): removed useless code
7693         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
7694           and introduced macro pic16_emitpcode that conditionally emits
7695           the origin of the following pCode (useful for debugging SDCC)
7696         * src/pic16/pcode.c: changed (and disabled) some debug outputs
7697         * (createDefmap): fixed handling of LFSR for --optimize-df
7698
7699 2005-08-02 Borut Razem <borut.razem AT siol.net>
7700
7701         * device/lib/Makefile.in: pic16 libraries build enabled since
7702           gputils-0.13.2 are now localy installed at sourceforge's compile farm
7703
7704 2005-08-02 Raphael Neider <rneider AT web.de>
7705
7706         * src/pic16/gen.c (genPackBits): removed deprecated warning
7707         * (genGenPointerSet): fixed bitfield detection
7708
7709 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7710
7711         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
7712
7713 2005-07-31 Raphael Neider <rneider AT web.de>
7714
7715         * device/lib/pic16/libdev/pic18f458.c,
7716           device/include/pic16/pic18f458.h: added missing T0CONbits
7717
7718 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
7719
7720         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
7721
7722 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
7723
7724         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
7725
7726 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7727
7728         * device/include/mcs51/at89c51ed2.h: added.
7729
7730 2005-07-23 Raphael Neider <rneider AT web.de>
7731
7732         * src/pic/gen.h: added emitpcode macro for debugging
7733         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
7734           and replace by macro adding debug information on demand
7735         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
7736         * (gencjne): tried to fix; replaced with correct (slower) code
7737         * (gen{Unp,P}ackBits): fixed single bit access
7738         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
7739         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
7740           previous instruction
7741         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
7742           register has to be handled with care (forbidding movement
7743           of assignments/uses, removing assignments completely, ...)
7744         * (pCodeOptime2pCodes): make use of regIsSpecial
7745         * added lots of debugging output (commented out)
7746         * src/pic/rallloc.c (deassignLRs): prevent operand registers
7747           from being reused as result UNLESS it is known to work
7748
7749 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
7750
7751         * support/Util/dbuf.h: include <stddef.h> for size_t
7752         * .version: changed to version 2.5.2
7753
7754 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7755
7756         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
7757
7758 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7759
7760         * src/hc08/gen.c (genMinus): fixed bug #1241835,
7761           (genModOneByte): removed needless psha/pula
7762
7763 2005-07-22 Raphael Neider <rneider AT web.de>
7764
7765         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
7766           have PIC14 handled like PIC16, fixes broken pic14 linker calls
7767         * src/pic/gen.c (resolveIfx): do not "invent" labels
7768         * (genSkipc): changed to positive logic
7769         * (genSkipCond): removed as no longer needed
7770         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
7771           backport from PIC16
7772         * (genLeftShift): check operands are in different registers
7773         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
7774           INCF does not update CARRY...
7775         * src/pic/main.c: fixed _linkCmd
7776         * src/pic/pcode.c (unlinkpCode): added inactive code
7777         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
7778           alive (do not assign result and operand overlapping registers)
7779
7780 2005-07-22 Raphael Neider <rneider AT web.de>
7781
7782         * src/pic/device.c (dump_sfr): replaced register declaration with
7783           call to emitSymbolToFile() to avoid duplicate symbols
7784         * (assignRelocatableRegisters): do not declare external symbols
7785         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
7786           right (take size of type, not etype)
7787         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
7788         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
7789         * (packRegsForAccUse): disabled assignment of WREG as
7790           the result reg to prevent occurence of just fixed #1235003,
7791           fixes #1242954
7792         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
7793           symbols (avoids duplicate symbols in .asm file)
7794         * (pic14emitRegularMap): use emitSymbolToFile()
7795         * src/pic/gen.c (aopOp): fixed spillLocation handling
7796         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
7797         * (genDataPointerSet): removed unneccessary variables/output
7798
7799 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
7800
7801         * as/mcs51/lkarea.c: enlarged codemap for banked memory
7802         * device/lib/mcs51/crtbank.asm: added # to 0x0F
7803
7804 2005-07-21 Raphael Neider <rneider AT web.de>
7805
7806         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
7807           architecture cannot handle them efficiently, fixes bug #1235003
7808         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
7809           check for empty sets before using them (fixes bug #1232190)
7810
7811 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
7812
7813         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
7814           (lnksect2): generate warnings for memory overlap
7815         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
7816           constseg to set the name of these segments so you can instruct the linker
7817           to place them in banks
7818         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
7819         * src/SDCCglobl.h: added MODEL_HUGE to enum,
7820           added code_seg and const_seg to options
7821         * src/SDCCglue.c (emitMaps): use options.const_seg,
7822           (createInterruptVect): put interrupt vectors in segment HOME,
7823           (glue): put HOME before static segment and put the main glue in HOME,
7824           (glue): use options.code_seg
7825         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
7826         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
7827           these segments so you can instruct the linker to place them in banks
7828           (linkEdit): use code_loc for HOME segment which should be the first
7829           segment in code memory now
7830         * src/SDCCmem.c: fixed more stuff like bug 1238386
7831         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
7832           (changePointer): don't change function pointers to code pointers for
7833           banked functions,
7834           (compareType): added exceptional check for banked function pointers
7835         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
7836         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
7837           after static in code memory
7838         * src/mcs51/gen.c: added aopLiteralLong prototype,
7839           (aopForSym): use getSize for functions,
7840           (genCall): generate banked calls over one trampoline __sdcc_banked_call
7841           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
7842           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
7843           the segment,
7844           (genPcall): use call for literal function pointers and generate banked
7845           calls over the one trampoline so there's only one place for the user to
7846           modify according to his/hers hardware,
7847           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
7848           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
7849         * src/mcs51/main.c: added keyword banked,
7850           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
7851         * support/Util/SDCCerr.c,
7852         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
7853           needed for passing the bank and address to the trampoline
7854         * device/lib/mcs51/crtbank.asm: added for bankswitching
7855         * device/lib/mcs51/Makefile: added crtbank
7856
7857 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7858
7859         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
7860           for fields at offset 0 of a struct or union as reported
7861           on 2005-07-07 in the developer mailing list.
7862
7863 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
7864
7865         * src/SDCCmem.c: fixed bug 1238386
7866
7867 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7868
7869         * src/mcs51/peeph.def: added labelrefcounting for peepholes
7870           (patch #1144962), added peephole 300, enabled 259.x
7871         * doc/sdccman.lyx: removed screenshot and provided link instead
7872
7873 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7874
7875         * doc/sdccman.lyx: added section about debugging with ddd
7876         * doc/figures/ddd_example.eps: screenshot of debugging session
7877
7878 2005-07-04 Raphael Neider <rneider AT web.de>
7879
7880         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
7881           like CODE pointers, fixes #1115683
7882         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
7883           call, fixes bugs #1232211, #1228110,
7884           fixed wrong casts to pCodeFlow from pCodeInstructions
7885
7886 2005-07-04 Raphael Neider <rneider AT web.de>
7887
7888         * src/pic/gen.c (popGet): changed assert to allow for
7889           bit operands
7890         * (popGetAddr): changed signature to provide
7891           an additional index, patched all call sites
7892         * (genCmpEq): handle literal-like operands correctly
7893         * (genAddrOf): added sanity checks on __code/__data pointers
7894         * (genAssign): added handling of symbols from __code section
7895         * (gencjne): do not generate code for comparisons whose result
7896           is neither stored nor used, fixes bug #1171114
7897         * (AccLsh, AccRsh): operate on operand instead of WREG
7898         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
7899           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
7900           by known count
7901         * rewrote complete shift-by-literal logic, commented unused
7902           functions out
7903         * (genConstPointerGet): get multiple bytes (if result size > 1),
7904           fixed handling of non-immediate addresses
7905         * (genPointerGet): handle CODE pointers like CONST pointers
7906         * (genpic14Code): insert C-SRC lines as Cource-pCodes
7907         * ({aop,op}_isLitLike): NEW, single place to decide whether an
7908           operand is to be treated as a literal or not
7909         * (mov2w,genPcall,genCmpEq),
7910           src/pic/genarith.c: use aop_isLitLike() to decide between
7911           literal/register contents
7912         * (addSign): added missing offset
7913         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
7914           only emit comment in debug-mode,
7915           use {aop,op}_isLitLike throughout the file
7916         * src/pic/glue.c: fix initializers for pointers (work in progress)
7917         * src/pic/pcode.c (get_op): honor index on _const symbols
7918         * ({reset,dump}pCodeStatistics): NEW, estimate code size
7919         * (dumppBlock): added pCode size estimation
7920         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
7921           check for IS_SYMOP before OP_SYMBOL'ing
7922         * fixed indentation, compacted switch-statements
7923         * (allocReg): find free register and allocate it instead of
7924           allocating new registers all the time
7925         * (deassignLRs): prevent POINTER_GET's from being assigned the same
7926           registers as its operands (necessary only for multibyte GETs)
7927
7928 2005-07-01 Raphael Neider <rneider AT web.de>
7929
7930         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
7931           debugging .asm-output macros FENTRY + FEXIT
7932         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
7933           way... I wonder...
7934         * (emitpComment): NEW, printf to pCode
7935         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
7936           offset handling
7937         * (popGetAddr): NEW, variant of popGet to access an immediates
7938           high(er) bytes instead of the n'th byte of memory they reference,
7939           replaced popGet with popGetAddr where neccessary
7940         * (genDataPointerGet): reactivated and fixed implementation
7941         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
7942           accesses
7943         * (genDataPointerSet): fixed multibyte assignments
7944         * (genpic14Code): fixed --i-code-in-asm handling
7945         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
7946         * (genPlus): fixed index-out-of-bounds error
7947         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
7948         * src/pic/ralloc.c: added debugging output macro FENTRY2
7949         * (spillThis): fixed indentation, enbraced for-body for clarity
7950         * (rematStr): commented out as now unused
7951         * (regTypeNum): commented out special spill case (overwrites
7952           arbitrary values)
7953         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
7954
7955 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
7956
7957         * doc/sdccman.lyx: documented sfr16/sfr32,
7958           added example for using storage class with function pointers
7959         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
7960
7961 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
7962
7963         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
7964         * device/lib/_itoa.c,
7965         * device/lib/_ltoa.c: optimized codesize
7966         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
7967           but don't know how to suppress the double warning.
7968         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
7969         * support/Util/SDCCerr.c,
7970         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
7971
7972 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
7973
7974         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
7975           fixed old K&R prototypes
7976         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
7977         * device/lib/_gptrget.c,
7978         * device/lib/_gptrgetc.c,
7979         * device/lib/_gptrput.c: changed versions for new memory indicator values,
7980           also new versions for small generic pointers and banked generic pointers
7981         * src/port.h: added const_name
7982         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
7983         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
7984         * src/SDCCcse.c (findPrevIc): check all associative operators
7985         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
7986         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
7987         * src/SDCCmem.c: updated comments,
7988           set far-space to 0 for pdata, results in optimized code
7989         * src/SDCCmem.h: added macro CONST_NAME
7990         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
7991           moving the info into the highest bits, see also gptrget/gptrput
7992         * src/src.dsp: added sdcc.ico to project files
7993         * src/avr/gen.c (genCast): fixed bug 0x%d
7994         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
7995         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
7996           relation between ptr_type and DCL_TYPE,
7997           (genCast): fixed bug 0x%d
7998         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
7999           (CODE)" for const_name
8000         * src/hc08/gen.c (genCast): fixed bug 0x%d
8001         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
8002           (hc08_port): added "CONST (CODE)" for const_name
8003         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
8004           (aopForRemat, adjustArithmeticResult): disconnected direct relation
8005           between ptr_type and DCL_TYPE,
8006           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
8007           operand* and took AOP() inside function so sfr-ness can be checked,
8008           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
8009           new prototype,
8010           (genFunction, genEndFunction): optimized stack setup,
8011           (genMinus): optimized for literals with ending zeroes (in bytes),
8012           (genCast): fixed bug 0x%d
8013         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
8014           (mcs51_port): added "CONST (CODE)" for const_name
8015         * src/mcs51/peeph.def: made rule 226 more generic
8016         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
8017         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
8018         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
8019         * src/z80/main.c (z80_port): added NULL for const_name,
8020           (gbz80_port): added NULL for const_name
8021         * support/regression/tests/bug663539.c,
8022         * support/regression/tests/sfr16.c: new tests
8023
8024 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8025
8026         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
8027
8028 2005-06-24 Raphael Neider <rneider AT web.de>
8029
8030         * device/lib/pic16/libdev/pic18f[68][567]20.c:
8031           corrected typos...
8032         * device/include/pic16/signal.h: added USBIF
8033           and SIG_USB
8034
8035 2005-06-24 Raphael Neider <rneider AT web.de>
8036
8037         * device/lib/pic16/libdev/pic18f2455.c,
8038           device/include/pic16/pic18f2455.h: NEW
8039         * device/include/pic16/pic18fregs.h,
8040           device/lib/pic16/pics.all,
8041           src/pic16/device.c: added 18f2455
8042         * device/lib/pic16/libdev/pic18f[68][567]20.c,
8043           device/include/pic16/{pic18f[68][567].h,usart.h}:
8044           replaced MULTIPLE_USARTS define with more relaible
8045           compatibility sfrs (for USART access)
8046
8047 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
8048
8049         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
8050           and the output asm file line is printed on two lines.
8051
8052 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8053
8054         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
8055           BGT, BLE, BHI, and BLS instructions
8056         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
8057           genCmpEq): removed
8058         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
8059           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
8060           fixes bug #1216342
8061         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
8062
8063 2005-06-15 Raphael Neider <rneider AT web.de>
8064
8065         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
8066         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
8067         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
8068           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
8069           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
8070
8071 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8072
8073         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
8074           Marcel Telka in bug #1215704
8075
8076 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
8077
8078         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
8079           located in shared memory bank.
8080
8081 2005-05-31 Raphael Neider <rneider AT web.de>
8082
8083         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
8084           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
8085           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
8086
8087 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
8088
8089         * device/lib/_strncpy.c: fixed the fix
8090
8091 2005-05-26 Raphael Neider <rneider AT web.de>
8092
8093         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
8094           initializers with \0, bug #1208187
8095         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
8096           intializers with \0, bug #1208187
8097
8098 2005-05-26 Raphael Neider <rneider AT web.de>
8099
8100         * src/pic16/glue.c (pic16_printIvalChar): fixed string
8101           initializers with \0, bug #1208187
8102         * src/pic16/main.c (_process_pragma): added sanity checks
8103           for stack position and size, emit warnings when appropriate
8104
8105 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
8106
8107         * device/lib/_strncpy.c: fixed not filling with \0
8108
8109 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8110
8111         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
8112           createFunction),
8113         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
8114           compound_statement),
8115         * src/SDCCsymt.h,
8116         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
8117
8118 2005-05-24 Raphael Neider <rneider AT web.de>
8119
8120         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
8121
8122 2005-05-24 Raphael Neider <rneider AT web.de>
8123
8124         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
8125           TRISE definitions, closes bug #1162453
8126
8127 2005-05-22 Raphael Neider <rneider AT web.de>
8128
8129         * src/pic16/main.c (_process_pragma): check for missing
8130           arguments to pragmas code and udata
8131         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
8132           consistency fixes to match other headers (thanks to Jim Paris)
8133         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
8134
8135 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
8136
8137         * src/SDCCicode.c (isOperandEqual): fixed missing ;
8138
8139 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
8140
8141         * support/regression/tests/bug1198642.c: new test
8142         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
8143         * src/SDCCcse.c (findPrevIc): added comment, please have a look
8144         * support/scripts/resource.h,
8145         * support/scripts/resource.rc,
8146         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
8147         * support/scripts/sdcc.ico: added 32x32 icon
8148
8149 2005-05-18 Raphael Neider <rneider AT web.de>
8150
8151         * device/lib/pic16/libdev/pic18f*.c,
8152         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
8153           keywords to "__sfr" and "__at (X)"
8154         * device/include/pic16/pic18fregs.h: added pic18f4520
8155         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
8156           #1203088 (MPLAB compatibility)
8157
8158 2005-05-17 Raphael Neider <rneider AT web.de>
8159
8160         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
8161         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
8162         * device/lib/pic16/pics.all: added new devices
8163         * src/pic16/device.c: added support for pic18f4520
8164
8165 2005-05-16 Raphael Neider <rneider AT web.de>
8166         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
8167         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
8168         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
8169           convenience function for bit access
8170
8171 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
8172
8173         * device/lib/printf_large.c: fixed bug 1193299
8174         * support/regression/tests/bug1057979.c: added test %3.3s
8175
8176 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8177
8178         * device/include/mcs51/8051.h,
8179         * device/include/mcs51/8052.h: made parseable with lint
8180         * device/include/mcs51/lint.h: added include file for (sp)lint
8181         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
8182         * doc/cdbfileformat.lyx,
8183         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
8184
8185 2005-05-14 Raphael Neider <rneider AT web.de>
8186
8187         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
8188         * device/lib/pic16/libc/stdlib/itoa.c (new)
8189         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
8190         * device/lib/pic16/libio/Makefile: exclude subdir according to
8191           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
8192         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
8193         * src/pic16/gen.c (genFunction): prevent annoying warning
8194         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
8195           nameclashes on BeOS
8196         * support/cpp2/cppmain.c (cpp_output_string): new
8197         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
8198           fixes bug 1116802
8199
8200 2005-05-13 Borut Razem <borut.razem AT siol.net>
8201
8202         * src/SDCCmain.c (linkEdit): fixed bug 1195202
8203
8204 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8205
8206         * .version: changed to version 2.5.1; back to bleeding edge development
8207
8208 2005-05-11 Borut Razem <borut.razem AT siol.net>
8209
8210         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
8211           generate PDF version 1.3 documents
8212
8213 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8214
8215         * .version: changed to version 2.5.0
8216
8217 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8218
8219         * doc/sdccman.lyx: updated weblinks, index and smaller updates
8220
8221 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8222
8223         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
8224         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
8225         well as many smaller updates.
8226         * .version: changed to version 2.5.0-pre1
8227
8228 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8229
8230         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
8231
8232 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
8233
8234         * support/regression/tests/bug1185672.c: added
8235         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
8236           bug 1185672
8237         * src/mcs51/gen.c (genCall): added comments, made it look safer
8238         * src/mcs51/gen.c (genEndFunction): simplified
8239
8240 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
8241
8242         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
8243
8244 2005-04-14 Borut Razem <borut.razem AT siol.net>
8245
8246         * fixed bug 1045046 - SIGSEGV with really simple code?:
8247           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
8248           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
8249
8250 2005-04-14 Borut Razem <borut.razem AT siol.net>
8251
8252         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
8253           src/pic16/device.h: temporarily disabled experimental #inline pragma
8254           for 2.5.0 release
8255
8256 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
8257
8258         * device/include/z80/stdio.h,
8259         * device/include/z80/string.h: removed these highly incomplete files so
8260           SDCC can use the default ones in device/include/
8261
8262 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8263
8264         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
8265         gcc warning.
8266         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
8267         fix sdcpp warnings.
8268
8269 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
8270
8271         * device/include/malloc.h: removed redundant __reentrant prototypes
8272         * device/lib/_mullong.c: added working xstack variant in asm (C version
8273           doesn't pass regression tests)
8274         * device/lib/bpx.c: used __data and made bpx char for mcs51
8275         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
8276           (createFunction): fixed bug with xstackPtr
8277         * src/SDCCcse.c: corrected comments
8278         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
8279           (killDeadCode, eBBlockFromiCode): removed unused code
8280         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
8281           corrected comments
8282         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
8283           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
8284           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
8285           (genModOneByte): fixed warning in MSVC
8286         * src/mcs51/main.c (): added comments
8287         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
8288
8289 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
8290
8291         * src/SDCCmain.c (linkEdit): oops, changed one line too many
8292
8293 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
8294
8295         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
8296
8297 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
8298
8299         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
8300         characters arrays of larger size than the declared one.
8301
8302 2005-04-10 Borut Razem <borut.razem AT siol.net>
8303
8304         * src/pic/gen.c (genInline),
8305           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
8306           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
8307           (findNextInstruction), (findPrevInstruction),
8308           (findInstructionUsingLabel),
8309           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
8310         * src/pic/pcode.c (findLabel): added missing '\n'
8311         * src/src.dsp: added SDCCdwarf2.c to the project
8312
8313 2005-04-09 Borut Razem <borut.razem AT siol.net>
8314
8315         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
8316
8317 2005-04-08 Raphael Neider <rneider AT web.de>
8318
8319         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
8320           into the chain after a given one) and mergeDefmapSymbols (combine
8321           defmap entries for each symbol per pcode)
8322         * (createDefmap): have defmap entries merged in the end
8323         * (defmapReplaceSymRef): split defmap entries covering two accesses to
8324           a symbol before replacing one access type's symbol, merge symbols in
8325           the end (replacement symbol might already have an entry)
8326         * (assignValnums): keep reference to written WREG intact
8327
8328 2005-04-08 Raphael Neider <rneider AT web.de>
8329
8330         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
8331           Alpha)
8332
8333 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
8334
8335         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
8336         bytes
8337
8338 2005-04-07 Raphael Neider <rneider AT web.de>
8339
8340         * device/include/pic16/usart.h: added compatibility defines for
8341           devices with more than one USART
8342         * device/include/pic16/pic18f[68][567]20.h: activated above defines
8343
8344 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8345
8346         * device/lib/Makefile.in: updated for port specific include
8347
8348 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8349
8350         * support/regression/ports/mcs51/spec.mk: added mcs51 include
8351
8352 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8353
8354         * device/include/8051.h,
8355         * device/include/8052.h,
8356         * device/include/at89S8252.h,
8357         * device/include/at89c55.h,
8358         * device/include/at89x051.h,
8359         * device/include/at89x51.h,
8360         * device/include/at89x52.h,
8361         * device/include/mcs51reg.h,
8362         * device/include/reg51.h,
8363         * device/include/reg764.h,
8364         * device/include/regc515c.h,
8365         * device/include/sab80515.h: (re)moved these 12 files
8366         * device/include/mcs51/8051.h,
8367         * device/include/mcs51/8052.h,
8368         * device/include/mcs51/at89S8252.h,
8369         * device/include/mcs51/at89c55.h,
8370         * device/include/mcs51/at89x051.h,
8371         * device/include/mcs51/at89x51.h,
8372         * device/include/mcs51/at89x52.h,
8373         * device/include/mcs51/mcs51reg.h,
8374         * device/include/mcs51/reg51.h,
8375         * device/include/mcs51/reg764.h,
8376         * device/include/mcs51/regc515c.h,
8377         * device/include/mcs51/sab80515.h: and added them here
8378
8379 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
8380
8381         * device/include/stdarg.h: changed SDCC specific keywords to double
8382           underlined form.
8383         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
8384           mcs51 and ds390.
8385         * device/include/hc08/mc68hc908gp32.h,
8386         * device/include/hc08/mc68hc908jb8.h,
8387         * device/include/hc08/mc68hc908jkjl.h,
8388         * device/include/hc08/mc68hc908qy.h: fixed comments
8389         * device/include/mcs51/README: updated
8390         * device/include/mcs51/c8051f120.h: added PINRSF
8391         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
8392         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
8393           amidst code. Also inline is not supported.
8394
8395 2005-04-06 Raphael Neider <rneider AT web.de>
8396
8397         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
8398         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
8399           callers stack/frame pointers
8400
8401 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
8402
8403         * device/include/pic16/usart.h: added, missing in previous commit,
8404         * device/include/pic16/adc.h: fixed typo,
8405         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
8406         commit,
8407         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
8408         <p18fxxx.inc>
8409         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
8410         uninitialized because a bug appears with gplink
8411         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
8412         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
8413         complains for unrecognised option
8414
8415 2005-04-05 Raphael Neider <rneider AT web.de>
8416
8417         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
8418           structs as well (using memcpy)
8419         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
8420           on ISRs (GOTO has no label)
8421         * src/pic16/device.h: added OF_OPTIMIZE_DF
8422         * src/pic16/main.c: added compiler switch --optimize-df to enable the
8423           new data flow analysis/optimization
8424         * src/pic16/pcode.c: added (prototypes for and implementation of)
8425           dataflow analysis functions, fixed pCodeInstructions' inCond and
8426           outCond values, made RCALL a branch instruction
8427         * (pic16_unlinkpCode): keep C line if possible
8428         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
8429           C line moved if possible
8430         * (pic16_getRegFrompCodeOp): NEW, improved version of...
8431         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
8432           to use new pic16_getRegFrompCodeOp (works for more SFRs)
8433         * (pic16_BuildFlow): fixed skip instructions with label (did not start
8434           new flow)
8435         * (pic16_getJumptabpCode): NEW, needed in...
8436         * (LinkFlow): fixed handling of jumptables, calls and conditional
8437           branches
8438         * (pic16_InsertCommentAfter): NEW
8439         * (pic16_pCodeReplace): made verbose and flow preserving
8440         * (AnalyzeFlow): added call to data flow analysis
8441         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
8442         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
8443         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
8444
8445 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8446
8447         * src/SDCCast.c (decorateType): fixed bug #1105626
8448
8449 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
8450
8451         * device/include/asm/pic16/features.h,
8452         * pic18f*.h headers,
8453         * device/include/pic16/adc.h,
8454         * device/include/pic16/delay.h,
8455         * device/include/pic16/i2c.h,
8456         * device/include/pic16/malloc.h,
8457         * device/include/pic16/stdio.h,
8458         * device/include/pic16/stdlib.h,
8459         * device/include/pic16/string.h,
8460         * device/lib/pic16/libc/stdio/printf_tiny.c,
8461         * device/lib/pic16/libc/stdio/printf_small.c,
8462         * device/lib/pic16/libc/stdio/strmgpsim.c,
8463         * device/lib/pic16/libc/stdio/strmmssp.c,
8464         * device/lib/pic16/libc/stdio/strmusart.c,
8465         * device/lib/pic16/libc/stdio/vfprintf.c,
8466         * device/lib/pic16/libc/stdlib/ltoa.c,
8467         * device/lib/pic16/libc/stdlib/putchar.c,
8468         * device/lib/pic16/libc/stdlib/x_ftoa.c,
8469         * device/lib/pic16/libc/stdlib/memchrpgm.c,
8470         * device/lib/pic16/libc/stdlib/memchrram.c,
8471         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
8472         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
8473         * device/lib/pic16/libio/adc/adcbusy.c,
8474         * device/lib/pic16/libio/adc/adcread.c,
8475         * device/lib/pic16/libio/adc/adcsetch.c,
8476         * device/lib/pic16/libio/usart/ubaud.c,
8477         * device/lib/pic16/libio/usart/ubusy.c,
8478         * device/lib/pic16/libio/usart/udrdy.c,
8479         * device/lib/pic16/libio/usart/uopen.c,
8480         * device/lib/pic16/libio/usart/uputc.c,
8481         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
8482         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
8483         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
8484         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
8485         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
8486         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
8487         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
8488         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
8489         specific keywords to double underlined form,
8490         * device/lib/pic16/libc/Makefile.rules,
8491         * device/lib/pic16/libsdcc/Makefile.rules,
8492         * device/lib/pic16/libm/Makefile,
8493         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
8494         to compile with C standard set in Makefile.common
8495         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
8496         rand.c and crc.c in compilation process,
8497         * device/lib/pic16/libsdcc/int/divuint.c,
8498         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
8499         `c' from signed to unsigned,
8500         * device/lib/pic16/startup/crt0.c,
8501         * device/lib/pic16/startup/crt0i.c,
8502         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
8503         keywords to double underlined form, bug fixes in _do_cinit function
8504         which prevented the correct initialization of the .idata segment,
8505         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
8506         core to enter a infinite loop
8507         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
8508
8509 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8510
8511         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
8512
8513 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8514
8515         * device/include/Makefile.in: add support for hc08 subdirectory
8516         * device/include/hc08/: new subdirectory
8517         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
8518         Lucas Loizaga, thanks!
8519         * device/include/hc08/mc68hc908qy.h,
8520         * device/include/hc08/mc68hc908gp32.h,
8521         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
8522         their own directory. Changed internal macro names to use the compiler
8523         reserved namespace. Changed SDCC specific keywords to double
8524         underlined form.
8525         * device/include/math.h,
8526         * device/include/malloc.h,
8527         * device/include/stdarg.h,
8528         * device/include/stdbool.h
8529         * device/include/string.h,
8530         * device/include/tinibios.h,
8531         * device/include/ds400rom.h,
8532         * device/include/8051.h,
8533         * device/include/8052.h,
8534         * device/include/80c51xa.h,
8535         * device/include/at89c55.h,
8536         * device/include/at89S8252.h,
8537         * device/include/at89x51.h,
8538         * device/include/at89x52.h,
8539         * device/include/ds80c390.h,
8540         * device/include/reg764.h,
8541         * device/include/regc515c.h,
8542         * device/include/sab80515.h,
8543         * device/include/mcs51/c8051f000.h,
8544         * device/include/mcs51/c8051f018.h,
8545         * device/include/mcs51/c8051f020.h,
8546         * device/include/mcs51/c8051f040.h,
8547         * device/include/mcs51/c8051f060.h,
8548         * device/include/mcs51/c8051f120.h,
8549         * device/include/mcs51/c8051f300.h,
8550         * device/include/mcs51/c8051f310.h,
8551         * device/include/mcs51/c8051f320.h,
8552         * device/include/mcs51/c8051f330.h,
8553         * device/include/mcs51/c8051f350.h,
8554         * device/include/z180.h: Changed SDCC specific keywords to double
8555         underlined form.
8556
8557 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
8558
8559         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
8560         18F4455,
8561         * (pic16_assignConfigWordValue): disable testing of configuration
8562         register value with config mask,
8563         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
8564         function with port->fun_prefix,
8565         * (genFunction): when generating a naked interrupt function never
8566         create an absolute segment placed in interrupt vector address, place
8567         the actual interrupt function at IVA instead, when an interrupt
8568         function is generated with unspecified interrupt then do not create
8569         the absolute section,
8570         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
8571         code for generating a call to generic pointer get/put function with
8572         a call to function pic16_callGenericPointer(),
8573         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
8574         the call to the generic pointer get/put functions with prefixing the
8575         function name with port->fun_prefix,
8576         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
8577         * src/pic16/main.c (_process_pragma): prefix function with
8578         port->fun_prefix,
8579         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
8580         calling assembler, old 18Fxxxx macro is deprecated,
8581         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
8582         PC_ASMDIR in while condition,
8583         * (findInstruction): add PC_ASMDIR in while condition,
8584         * (buildCallTree): prefix main with port->fun_prefix,
8585         * (pic16_pCode2str): fixed bug that didn't emit the memory access
8586         identifier for variable with banked access in instructions BTFSS,
8587         BTFSC, BCF, BSF, BTG
8588         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
8589         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
8590         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
8591         perform optimization when enviroment variable NO_REG_OPT is set,
8592         * (insideLRBlock): NEW, return 1 if register is inside an
8593         INF_LOCALREGS block,
8594         * (RemoveRegFromLRBlock): remove a register that is completely
8595         eliminated by register optimization, but it is still left in local
8596         register store/restore in/from stack block,
8597         * (Remove2pcodes): after removing register, check to see if it
8598         should be removed from local register store/restore in/from stack
8599         block,
8600         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
8601         DUMMY_READ_VOLATILE,
8602
8603         * device/include/pic16/adc.h: minor prototype modifications and
8604         update,
8605         * device/include/pic16/malloc.h: added GPL notice various
8606         modifications,
8607         * device/include/pic16/stdint.h: NEW, standard header for ints
8608         * device/include/pic16/delay.h: NEW, header for delay functions,
8609         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
8610         delay1mtcy,
8611         * device/include/pic16/signal.h: NEW, header providing helper macros
8612         for implementing signal handlers,
8613         * device/include/pic16/stdio.h: added prototypes for functions,
8614         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
8615         prototypes for stdin and stdout, added macro PUTCHAR to
8616         automatically implement putchar function prototype,
8617         * device/include/pic16/usart.h: modified and updated USART library,
8618         * device/lib/pic16/libio/adc/,
8619         * device/lib/pic16/libio/i2c: some modifications to improve library
8620         performance,
8621         * device/lib/pic16/libc/stdio/: modifications for the new printf*
8622         family of functions,
8623         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
8624         family of functions and other sources,
8625         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
8626         of the PIC18Fxx[28] devices,
8627         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
8628         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
8629         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
8630         _do_cinit function, because the previous failed when local variables
8631         where not placed in the same memory bank,
8632         * device/lib/pic16/libsdcc/char/: various modifications to improve
8633         library performance,
8634         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
8635         information on the new functions of the c library and more...
8636
8637 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8638
8639         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
8640
8641 2005-03-26 Raphael Neider <rneider AT web.de>
8642
8643         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
8644           if condition == CARRY)
8645         * (genCmp): adapted to new genSkipc semantics
8646         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
8647           on rIfx (genCmp was broken)
8648
8649 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8650
8651         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
8652         * src/z80/main.c (_keywords[]),
8653         * src/SDCCglobal.h (struct options),
8654         * src/SDCC.y,
8655         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
8656         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
8657         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
8658         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
8659         always available in leading double underscore form. The C99 support is
8660         mostly missing, but it's a start.
8661         * support/regression/tests/bug-227710.c: fixed nonconforming use of
8662         reserved identifier "__data".
8663
8664 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
8665
8666         * src/mcs51/peeph.def: fixed bug 1170013
8667
8668 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
8669
8670         * device/include/mcs51reg.h: fixed bug 842007
8671
8672 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8673
8674         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
8675         last time.
8676
8677 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8678
8679         * src/port.h (struct PORT),
8680         * src/avr/ralloc.c (avr_assignRegisters),
8681         * src/avr/main.c,
8682         * src/ds390/ralloc.c (ds390_assignRegisters),
8683         * src/ds390/main.c,
8684         * src/hc08/ralloc.c (hc08_assignRegisters),
8685         * src/hc08/main.c,
8686         * src/mcs51/ralloc.c (mcs51_assignRegisters),
8687         * src/mcs51/main.c,
8688         * src/pic/ralloc.c (pic14_assignRegisters),
8689         * src/pic/main.c,
8690         * src/pic16/ralloc.c (pic16_assignRegisters),
8691         * src/pic16/main.c,
8692         * src/xa51/ralloc.c (xa51_assignRegisters),
8693         * src/xa51/main.c,
8694         * src/z80/ralloc.c (z80_assignRegisters),
8695         * src/z80/ralloc.h,
8696         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
8697         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
8698         * src/SDCCcse.h,
8699         * src/SDCCdflow.c (computeDataFlow),
8700         * src/SDCCdflow.h,
8701         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
8702         * src/SDCCloop.h,
8703         * src/SDCCcflow.c (*),
8704         * src/SDCCcflow.h,
8705         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
8706         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
8707         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
8708         immedDom() returning wrong block; probably fixes bug #1160833)
8709
8710 2005-03-20 Borut Razem <borut.razem AT siol.net>
8711
8712         * support/scripts/inc2h.pl: WIN32 port
8713
8714 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
8715
8716         * device/lib/makefile.in: added abs.c and labs.c
8717
8718 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
8719
8720         * device/include/stdint.h: added
8721         * device/lib/abs.c: added
8722         * device/lib/labs.c: added
8723         * device/include/stdlib.h: added abs() and labs() prototypes
8724         * device/lib/libsdcc.lib: added abs and labs
8725         * device/include/float.h,
8726         * device/lib/_fsmul.c,
8727         * device/lib/printf_fast.c,
8728         * device/lib/printf_tiny.c: updated comments
8729
8730 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8731
8732         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
8733         bug #1164313
8734
8735 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8736
8737         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
8738         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
8739
8740 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
8741
8742         * device/lib/printf_large.c: removed inline assembly for portability and
8743           readability. Use printf_fast if speed or size are more important.
8744         * src/pic16/gen.c: removed conditions around use of DEBUGpc
8745         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
8746
8747 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
8748
8749         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
8750         prevent compiler warning
8751
8752 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
8753
8754         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
8755         moved to level 0 and declared as static. Also they are explicit
8756         placed in access bank. This was necessery because some times they
8757         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
8758         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
8759         optimizations. Currently only compare to unsigned char is implemented,
8760         * src/pic16/gen.c: added fReturnIdx array,
8761         * (struct resolvedIfx) is moved to gen.h and made public,
8762         * (struct _G): added sregsAlloc and sregsAllocSet fields,
8763         * (aopForSym): added an optimization to directly store in stack of
8764         the operand of a SEND iCode,
8765         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
8766         but as registers instead (AOP_REG) using the fReturnIdx array,
8767         * (pic16_freeAsmop): remove the freed register from the
8768         _G.sregsAlloc field,
8769         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
8770         a compare of 'WREG',
8771         * (pic16_popGetTempRegCond): changed function prototype, now
8772         function takes also a bitVector argument v which holds the current
8773         set of registers that are allocated for stack access by aopForSym,
8774         registers allocated in aopForSym for accessing stack symbols are not
8775         any more part of the functions usedRegs field,
8776         * (genCall): some times aopOp is called for a stack variable to be
8777         send, aopForSym might perform the push, if this is true make sure
8778         that genCall doesn't push the variable twice by testing _G.resDirect,
8779         * (genFunction): changed testing for unspecified interrupt number
8780         from 256 to INTNO_UNSPEC,
8781         * modified selection scheme of frame pointer generation. Previously
8782         if function did use local registers a frame pointer was generated,
8783         now a frame pointer is generated only if function has arguments
8784         (that need PLUSW2 register access), or has stack arguments, or the
8785         compiler is not instructed to omit the frame pointer,
8786         * (genEndFunction): before restoring local registers that were saved
8787         in the function preamble, also restore the registers that *might*
8788         have been allocated for stack access,
8789         * (genRet): removed some old comments,
8790         * (genCmp, the active (RN's) version): added a call to the
8791         pic16_genCmp_special function to perform the compare with a more
8792         robust and optimized way,
8793         * (genInline): a feature has been added in inline code generation,
8794         which allows a wildcard variable substitution when writing inline
8795         assembly. Code is incomplete and experimental therefore undocumented,
8796         * (genCast): changed order of aopOp for result and right to allow
8797         aopForSym to directly load the result if possible,
8798         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
8799         perform an optimized compare on some selected special occasions,
8800         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
8801         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
8802         generate an IVT any more,
8803         * src/pic16/main.c (pic16_optionsTable): added command line option
8804         --optimize-cmp,
8805         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
8806         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
8807         macros,
8808         * src/pic16/NOTES: Raphael Neider added in list of active developers
8809         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
8810         jumptable_end to prevent bug #,
8811         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
8812         inCond and outCond fields,
8813         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
8814         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
8815         turn off register spilling,
8816         * (packRegsForOneUse): synced with other ports' versions although it
8817         is not used currently,
8818         * (pic16_packRegisters): added an optimization while reading
8819         structure bitfields, some registers may be saved (malloc code is
8820         decreased by 80 bytes)
8821
8822 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
8823
8824         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
8825         left is a bitfield, if yes, then don't optimize assignment. Perhaps
8826         this can be optimized more?
8827
8828 2005-03-10 Raphael Neider <rneider AT web.de>
8829
8830         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
8831           genNearPointerGet): (hopefully) fixed access to bitfields via
8832           pointers (p->bitN = x; and x = p->bitN; failed)
8833
8834 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
8835
8836         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
8837
8838 2005-03-09 Raphael Neider <rneider AT web.de>
8839
8840         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
8841
8842 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
8843
8844         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
8845         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
8846           (regTypeNum): set REG_BIT type if necessary
8847         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
8848         * support/regression/tests/critical.c: check bug 1144613
8849
8850 2005-03-02 Raphael Neider <rneider AT web.de>
8851
8852         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
8853
8854 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8855
8856         * src/avr/ralloc.c (serialRegAssign),
8857         * src/ds390/ralloc.c (serialRegAssign),
8858         * src/hc08/ralloc.c (serialRegAssign),
8859         * src/mcs51/ralloc.c (serialRegAssign),
8860         * src/pic/ralloc.c (serialRegAssign),
8861         * src/pic16/ralloc.c (serialRegAssign),
8862         * src/xa51/ralloc.c (serialRegAssign),
8863         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
8864
8865 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
8866
8867         * src/SDCCast.c (decorateType): fixed bug 1124787
8868
8869 2005-02-20 Hubert Sack <sack AT digiplan.de>
8870         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8871
8872         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
8873         patch #1121755
8874
8875 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8876
8877         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
8878         to keep the correct label reference count when adding/removing references
8879         to labels. A peephole file using this is appended to patch #1144962.
8880
8881 2005-02-14 Raphael Neider <rneider AT web.de>
8882
8883         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
8884         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
8885         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
8886           retrievals of result operand's value on assignment
8887
8888 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
8889
8890         * device/include/pic16/string.h: modified prototype for memccpy()
8891         to memccpy(void *, void *, char, size_t)
8892         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
8893         check whether to omit frame pointer or not,
8894         * (genInline): convert all occurences of "\n" to LF in inline
8895         assembler blocks, this helps formatting the inline text,
8896         * (pic16_loadFSR0): modified prototype,
8897         * (genNearPointerGet, genNearPointerSet): reorganization of code,
8898         removed some 8051 legacy code,
8899         * (genPackBits): enabled handling bitfields exceeding one byte in size,
8900         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
8901         before allocating temporary registers in functions,
8902
8903 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
8904
8905         * support/regression/tests/bitvars.c: corrected the "fix"
8906
8907 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
8908
8909         * support/regression/tests/bitvars.c,
8910         * support/regression/tests/bitwise.c,
8911         * support/regression/tests/rotate.c: "fixed" problems on Alpha
8912
8913 2005-02-10 Raphael Neider <rneider AT web.de>
8914
8915         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
8916           different size for Alpha
8917         * src/pic16/gen.c (genCmpEq) : improved compare with 0
8918
8919 2005-02-09 Raphael Neider <rneider AT web.de>
8920
8921         * src/SDCC.lex(doPragma) : save and restore warning options as well
8922           (also added new stack plus clone- and copyAndFreeSDCCERRG())
8923         * have #pragma less_pedantic set the errorlevel to WARNING
8924           (fixes #1117001)
8925         * (cloneOptimize) : fixed wrong malloc's size
8926         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
8927           facilitate correct handling of #pragma (save|restore)
8928
8929 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
8930
8931         * src/mcs51/gen.c: removed non-standard C nameless struct/union
8932
8933 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
8934
8935         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
8936
8937 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
8938
8939         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
8940
8941 2005-02-02 Raphael Neider <rneider AT web.de>
8942
8943         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
8944         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
8945         * (pic16_storeForReturn): fixed to allow returning function pointers
8946         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
8947         * device/include/pic16/{stddef.h,stdbool.h}: added
8948
8949 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
8950
8951         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
8952
8953 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
8954
8955         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
8956         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
8957          appeared to be required
8958
8959 2005-01-31 Borut Razem <borut.razem AT siol.net>
8960
8961         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
8962           include/mcs51 and include/z80 directories to the package
8963
8964 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8965
8966         * src/hc08/gen.c (genFunction): fixed bug #1112752
8967
8968 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8969
8970         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
8971
8972 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8973
8974         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
8975
8976 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
8977
8978         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
8979
8980 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
8981
8982         * device/include/c8051fxxx.h: removed these 6 files
8983         * device/include/mcs51/c8051fxxx.h: added these 11 new files
8984
8985 2005-01-26 Raphael Neider <rneider AT web.de>
8986
8987         * src/pic16/gen.c (genAssign): fixed assignment from longs
8988           in codespace (were cut to three bytes)
8989         * (genDummyRead): implemented (except for CODESPACE...),
8990           fixed bug #1108575
8991         * src/pic16/glue.c (emitStatistics): beautified
8992         * device/lib/pic16/libm/Makefile: added include path
8993
8994 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8995
8996         * src/z80/gen.c (aopPut): fixed bug #1103902
8997
8998 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8999
9000         * device/lib/expf.c: fixed bug #1095792
9001
9002 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
9003
9004         * device/lib/pic16/libm: added Math library sources
9005
9006 2005-01-24 Raphael Neider <rneider AT web.de>
9007
9008         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
9009           to enable upcast to pCodeOpReg2 (there is no type tag to
9010           differenciate the two and pic16_popGet2p cast into PCOR2)
9011         * src/pic16/main.c (_process_pragma): fixed another malloc bug
9012           (sizeof(sectNames) changed to sizeof(sectName))
9013           Both patches fix segfaults under MinGW.
9014
9015 2005-01-23 Raphael Neider <rneider AT web.de>
9016
9017         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
9018           Safe_[mc]?alloc()'ed variables
9019         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
9020           of (byte sized) temporaries (assign them to WREG for now)
9021         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
9022           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
9023           this might fix SIGSEGVs on MinGW...
9024         * src/SDCCopt.c (killDeadCode): restored original behaviour
9025           (volatile operands might get thrown away though)
9026
9027 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
9028
9029         * src/pic16/gen.c: fixed bug #1106975,
9030         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
9031         pointer update, INTCON is saved, global interrupts are disabled and
9032         restored after updateing TOS.
9033         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
9034         * added function attribute 'shadowregs' to take advantage of shadow
9035         registers,
9036         * added function attribute 'wparam' as an alternative to the wparam
9037         pragma,
9038         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
9039         user declares a non-ISR function as 'shadowregs',
9040         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
9041
9042 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
9043
9044         * .version: bumped version number to 2.4.8
9045         * device/lib/pic16/pics.all: list of PIC18F devices supported by
9046         pic16 port,
9047         * device/lib/pic16/libio/i2c/: I2C module support library,
9048         * device/include/pic16/i2c.h: I2C support library header,
9049         * device/lib/pic16/libc/stdio/: standard IO support sources,
9050         * (printf_small.c): printf_small() source, supports float print,
9051         * (printf_tiny.c): printf_tiny() source, does not support floats,
9052         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
9053         enable global optimizations for entire library source, other
9054         Makefiles in the source tree are also modified to reflect this,
9055         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
9056         function,
9057         * doc/sdccman.lyx: updated to reflect new changes,
9058         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
9059         sym->onStack if-case,
9060         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
9061         sbit, idata, _idata, xdata, _xdata,
9062         * added pragma library, to link an external library, (see doc),
9063         * removed command line options, --pomit-config-words, --pomit-ivt,
9064         --pleave-reset-vector,
9065         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
9066         when calling assembler to reflect memory model used, also define
9067         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
9068         reflect stack model used,
9069         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
9070         on stack return NULL,
9071
9072 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
9073
9074         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
9075           of the operands is volatile. Fixes #1020220
9076
9077 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
9078
9079         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
9080         * (OptimizeRegUsage): make sure that there is really no other flow where
9081           the first pCode is used
9082
9083 2005-01-22 Raphael Neider <rneider AT web.de>
9084
9085         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
9086           to fix #1106967 (pCode->seq are not set up correctly)
9087
9088 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9089
9090         * src/SDCCglue.c (glue): make sure code area is declared before the
9091         static initialization area.
9092
9093 2005-01-21 Raphael Neider <rneider AT web.de>
9094
9095         * device/lib/Makefile.in: fixed test for pic16 install dir
9096         * device/lib/pic16/*/Makefile*: modified compile flags to enable
9097           optimizations
9098         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
9099           added --optimize-goto compiler switch and pragma wparam documentation
9100         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
9101         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
9102           and PRODH closing bug #1071770 (peephole optimizer)
9103
9104 2005-01-19 Raphael Neider <rneider AT web.de>
9105
9106         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
9107           cmdLine buffers (used when calling sdcpp...) are large enough
9108           (MAX_PATH=256 truncates arguments leading to system halts when
9109           used in MinGW...)
9110         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
9111         * (genUminus): rewritten to for efficiency
9112         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
9113           used uninitialized in some cases)
9114         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
9115           copy the third byte from the int -- now assumes 0x80 (data memory)
9116         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
9117           operands (genAddLit expects the iCode's operands to swapped as
9118           well), fixed leftover bytes (crashed for short left operands)
9119         * (pic16_genMinusDec): performance improvements, removed false
9120           PIC14 emitSKPNCs
9121         * (pic16_genMinus): fixed to cope with differently sized operands
9122         * src/pic16/glue.c (pic16_glue): added new banksel optimization
9123           for --obanksel > 1
9124         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
9125         * src/pic16/graph.[ch]: implementation of directed graphs, used by
9126           new banksel optimization
9127         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
9128           analysis for temporary registers (segfaults...)
9129         * src/pic16/peeph.def: added rule
9130
9131 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
9132
9133         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
9134         which converts a float number to its ASCII representation
9135         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
9136         functions to convert the fractional and integer part of a float to ASCII,
9137         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
9138         realloc.c): added _MALLOC_SPEC to explicit place variables in data
9139         ram
9140         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
9141         _STATMEM macros,
9142         * device/include/pic16/adc.h: added GPL info,
9143         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
9144         a pCodeOp as tested operand,
9145         * (genNearPointerGet): optimized bit testing, does not use
9146         intermediate register for bit value, test directly instead with
9147         BTFSS, BTFSC, works only for single bits,
9148         * (genpic16Code): dump the name of the iCode in the asm,
9149         * src/pic16/ralloc.c (decodeOp): removed static declaration and
9150         renamed to pic16_decodeOp,
9151         * (serialRegAssign): do not allocate a temporary register for iCode
9152         sequences that test a single bit for 1/0
9153
9154 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
9155
9156         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
9157         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
9158         access stack and frame pointers. They are initially assigned to
9159         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
9160         accessing SFRs. Updated all occurences of modification of stack or
9161         frame pointer in gen.c and pcode.c,
9162         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
9163         assigning of a literal value to pointers,
9164         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
9165         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
9166         selected
9167
9168 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
9169
9170         * doc/sdccman.lyx: update documentation about stack pragma, added
9171         some info for stack memory models
9172
9173 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9174
9175         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
9176
9177 2005-01-08 Raphael Neider <rneider AT web.de>
9178
9179         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
9180           udata sections to fix bug #1097823
9181
9182 2005-01-05 Raphael Neider <rneider AT web.de>
9183
9184         * src/pic16/gen.c (genGenericShift): added handling of differently
9185           sized left operand and result
9186
9187 2005-01-04 Raphael Neider <rneider AT web.de>
9188
9189         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
9190         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
9191           to hold the condition bit)
9192         * added new version of genCmp (old code available via #define)
9193         * added new version of genShiftLeft/genShiftRight in a generic
9194           way, now supports shifting by negative values
9195         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
9196           shiftCount (expected by genGenericShift)
9197         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
9198         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
9199           dump
9200         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
9201           is an invalid literal too...)
9202
9203 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
9204
9205         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
9206         from Raphael Neider,
9207         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
9208         for 8-bit literals. This fixes some literal operands which are sign
9209         extended to 16-bits ints when instruction needs only 8-bits.
9210
9211 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
9212
9213         * device/lib/logf.c: added mcs51 assembly version
9214         * device/lib/expf.c: added mcs51 assembly version
9215         * device/lib/_logexpf.c: new shared asm code for expf and logf
9216         * device/include/math.h: add defines for assembly math library
9217         * device/lib/Makefile.in: build new _logexpf.c
9218         * device/lib/libfloat.lib: use new _logexpf.c
9219
9220 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
9221
9222         * src/pic/device.c
9223         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
9224           device types which have less than 0x7f registers.
9225
9226 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
9227
9228         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
9229
9230 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
9231
9232         * device/lib/printf_fast.c: only build on supported arch.
9233         * device/lib/printf_tiny.c: only build on supported arch.
9234         * device/lib/printf_fast_f.c: only build if asm float lib
9235         * device/lib/_fsget1arg.c: only build if asm float lib
9236         * device/lib/_fsget2args.c: only build if asm float lib
9237         * device/lib/_fsnormalize.c: only build if asm float lib
9238         * device/lib/_fsreturnval.c: only build if asm float lib
9239         * device/lib/_fsrshift.c: only build if asm float lib
9240         * device/lib/_fsswapargs.c: only build if asm float lib
9241         * device/include/stdio.h: don't provide print_fast,
9242           print_fast_f, print_tiny prototypes if --xstack used
9243
9244 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
9245
9246         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
9247         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
9248           to the SOURCES
9249
9250 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
9251
9252         * device/lib/printf_fast_f.c: same as printf_fast, but
9253           with floating point enabled
9254         * device/lib/printf_fast.c: minor tweaks
9255         * device/include/stdio.h: add printf_fast_f
9256
9257 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
9258
9259         * src/SDCCmain.c: make --float-reent default for mcs51
9260         * device/lib/_fsadd.c: added mcs51 assembly version
9261         * device/lib/_fssub.c: added mcs51 assembly version
9262         * device/lib/_fsmul.c: added mcs51 assembly version
9263         * device/lib/_fsdiv.c: added mcs51 assembly version
9264         * device/lib/_fseq.c: added mcs51 assembly version
9265         * device/lib/_fsneq.c: added mcs51 assembly version
9266         * device/lib/_fsgt.c: added mcs51 assembly version
9267         * device/lib/_fslt.c: added mcs51 assembly version
9268         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
9269         * device/lib/Makefile.in: add _fscmp to build
9270         * device/lib/libfloat.lib: add _fscmp to build
9271
9272 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
9273
9274         * device/lib/_fs2slong.c: added mcs51 assembly version
9275         * device/lib/_fs2sint.c: added mcs51 assembly version
9276         * device/lib/_fs2schar.c: added mcs51 assembly version
9277         * device/lib/_fs2ulong.c: added mcs51 assembly version
9278         * device/lib/_fs2uint.c: added mcs51 assembly version
9279         * device/lib/_fs2uchar.c: added mcs51 assembly version
9280         * device/lib/_slong2fs.c: added mcs51 assembly version
9281         * device/lib/_sint2fs.c: added mcs51 assembly version
9282         * device/lib/_schar2fs.c: added mcs51 assembly version
9283         * device/lib/_ulong2fs.c: added mcs51 assembly version
9284         * device/lib/_uint2fs.c: added mcs51 assembly version
9285         * device/lib/_uchar2fs.c: added mcs51 assembly version
9286         * device/include/float.h: added #define to select asm vs c
9287
9288 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
9289
9290         * device/lib/printf_fast.c: improvements to float output
9291         * device/include/float.h: add defines for assembly float library
9292         * device/lib/_fsget1arg.c: receive 1 float arg
9293         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
9294         * device/lib/_fsnormalize.c: normalize a float
9295         * device/lib/_fsreturnval.c: return float, various helper routines
9296         * device/lib/_fsrshift.c: right shift a float's mantissa
9297         * device/lib/_fsswapargs.c: swap 2 floats
9298         * device/lib/Makefile.in: build these 6 new files for mcs51
9299         * device/lib/libfloat.lib: add these 6 files to the library
9300
9301 2004-12-26 Borut Razem <borut.razem AT siol.net>
9302
9303         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
9304           built by gcc 3.4.2
9305
9306 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
9307
9308         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
9309           and fully reentrant and register bank neutral.
9310         * device/lib/printf_fast.c: added float (not enabled by default),
9311           added compact/slower integer (also not enabled by default),
9312           improved size/speed of fast integer code, other minor changes
9313         * device/include/stdio.h, device/lib/Makefile.in,
9314           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
9315
9316 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
9317
9318         * src/pic16/pcode.c: declaring variables other than at the start of a
9319           block is not supported in C by VC6.
9320
9321 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
9322
9323         * applied a previous patch from Raphael Neider that wasn't included
9324         in the previous commits, which fixes infinite loops within jumptable
9325         improvements,
9326         * made some fixes that previous patches introduced
9327
9328 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
9329
9330         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
9331         that fixes an issue with AOP_PCODE asmop's offset,
9332         * (pic16_popCopyReg): update instance field too,
9333         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
9334         function of pic port,
9335         * (genCmp, genAnd, genAssign),
9336         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
9337
9338 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
9339
9340         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
9341         variables initial values to idata section,
9342         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
9343         variables in some functions. This utilizes parmBytes field of iCode
9344         structure to hold the offset of the variable in stack. (might be
9345         able to use the stack field too?)
9346         * applied patch from Raphael Neider # ### , # ###
9347         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
9348         variable initial values in idata section,
9349         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
9350         for static variables with initial value
9351         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
9352         applied fix in while loop from Raphael Neider.
9353
9354 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
9355
9356         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
9357         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
9358         * src/ds390/ralloc.c (serialRegAssign): spill bits
9359         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
9360         * support/Util/SDCCerr.c,
9361         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
9362         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
9363         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
9364
9365 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
9366
9367         * device/include/sdcc-lib.h: inserted LGPL, added includes
9368           asm/ds390/features.h and asm/mcs51/features.h
9369         * device/include/asm/default/features.h,
9370         * device/include/asm/gbz80/features.h,
9371         * device/include/asm/z80/features.h: added empty _AUTOMEM
9372           and _STATMEM
9373         * device/include/asm/ds390/features.h,
9374         * device/include/asm/mcs51/features.h: added files with defines for
9375           _AUTOMEM and _STATMEM indicating automatic and static storage class
9376         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
9377         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
9378         * src/SDCCicode.c (geniCodeCast),
9379         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
9380         * src/SDCCloop.c (loopInduction): removed unused variable lr
9381         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
9382           to convertToFcall to include char modulo (RFE 1065037), added check
9383           if left operand is unsigned and use abs of literal value
9384         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
9385           as it doesn't work after conversion from peephole.def to peephole.rul
9386         * src/mcs51/gen.c (toBoolean): added check for size,
9387           (genModOneByte): optimized code for signed char modulo a literal
9388           power of 2 (thanks to Hubert Sack),
9389           (genRRC): removed unnecessary "clr c",
9390           (genRLC): replaced "add a,acc" with cheaper "rlc a"
9391         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
9392           jump optimization,
9393           swapped rules 256.c and 256.d,
9394           extended 256.d by using new multiple checks (thanks Erik),
9395           added rules 256.e and 256.f,
9396           updated rule 261.a and 261.b to new generated code
9397         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
9398
9399 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9400
9401         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
9402           induction related bugs, including first part of bug #1074377
9403
9404 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
9405
9406         * applied patch from bug-report #1076292,
9407         * applied patches for genAnd and Goto-optimizations for Raphael
9408         Neider,
9409         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
9410         dump a less iCode information,
9411         * src/pic16/device.h (pic16_options_t): added field debgen,
9412         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
9413         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
9414         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
9415         puclic,
9416         * (various functions): added macros FENTRY and FENTRY2 to functions,
9417         to emit function prologue,
9418         * (various functions): fixed indentation,
9419         * (genNearPointerGet): fixed loading of FSR0,
9420         * (genPackBits): applied patch from Raphael Neider to fix updating
9421         of FSR0 and touching only the modified bits,
9422         * src/pic16/genarith.c (various functions): added macros FENTRY to
9423         emit function prologue in comments,
9424         * src/pic16/pcode.h: added functions debugf2, debugf3,
9425         * src/pic16/ralloc.c: partial fix for packForPush caused
9426         segmentation fault,
9427
9428 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9429
9430         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
9431           <stsp AT users.sourceforge.net> with reversed byte order
9432         * support/regression/tests/rotate.c: added (ds390 skips some tests)
9433
9434 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9435
9436         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
9437           bug #1074377
9438         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
9439         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
9440
9441 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
9442
9443         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
9444
9445 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9446
9447         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
9448           conditions,
9449           (setFromConditionArgs): friendly operand parser for peephole rules,
9450           (operandBaseName, operandsNotRelated): new peephole condition
9451           "operandsNotRelated" -- similar to "operandsNotSame", but takes
9452           architecture specific register naming into account, handles n-way
9453           comparisons, and supports quoted literals
9454         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
9455
9456 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9457
9458         * src/mcs51/peeph.def: fixed bug #1076940
9459
9460 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
9461
9462         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
9463
9464 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9465
9466         Adding support for replacing ljmps with sjmps in jumptables
9467         generated for switch statements. For now you need to set the
9468         environment variable SDCC_SJMP_JUMPTABLE to enable this.
9469         Now 4 algorithms for mcs51 jumptable generation are used:
9470         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
9471         addresses loaded pc-relative for up to 112 cases and stack-pushing
9472         target addresses loaded with offset from dptr for up to 256 cases.
9473
9474         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
9475         * src/mcs51/main.c: adapted constants for switch table generation
9476         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
9477
9478 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
9479
9480         * device/lib/printf_large.c (_print_format): fixed bug 1073386
9481         * support/regression/tests/bug1057979.c: added test for bug 1073386
9482
9483 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
9484
9485         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
9486         compilers
9487
9488 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
9489
9490         * src/pic16/device.h,
9491         * src/pic16/genarith.c,
9492         * src/pic16/glue.c,
9493         * src/pic16/main.c,
9494         * src/pic16/pcode.c: applied patches #1068154 and #1070213
9495
9496 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
9497
9498         Large cummulative patch for pic16 port.
9499         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
9500         to call when a stack overflow occurs,
9501         * (malloc.h): added CVS Id tag,
9502         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
9503         variable,
9504         * added libc directory. The current version of LibC contains string
9505         functions, ctype functions and macros and some functions of the
9506         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
9507         be extensively tested in the future. Standard disclaimer here.
9508         Library is not automatically build yet. But one can build it by
9509         invoking 'make' inside the libc directory.
9510         * added ADC library under libio. Preliminary version yet.
9511
9512         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
9513         * src/pic16/gen.c (aopForRemat): asmop size is filled by
9514         aopForRemat() now and not by pic16_aopOp(),
9515         * (pic16_popGetTempReg): removed warning messgae when allocating
9516         temporary registers, its a buggy feature and will be removed,
9517         * (pic16_popGet): set register instance field in AOP_CRY,
9518         * (pic16_outBitC): fixed for results in size greater than 1,
9519         * (genUminusFloat): fixed for pic16, ported code from mcs51,
9520         * (pic16_storeForReturn): optimized return of 0,
9521         * (genCmp): experimental code for new genCmp which uses PIC18's
9522         special compare&skip instructions. Initial tests fail some times
9523         with variables grater than 1 byte in size, so new code is disabled,
9524         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
9525         a single bit,
9526         * (genCast): began a fix to optimize the casting of a bit to another
9527         bit, now assigning a bitfield to another bitfield will fail, sorry,
9528         * src/pic16/main.c: disabled the use of lr-support feature,
9529         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
9530         * added some function prototypes, added function _debugf prototype,
9531         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
9532         bits with offset (case PO_GPR_BIT),
9533         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
9534         command line,
9535         * (isBankInstruction): modified to return 0 for no banking instruction,
9536         and 1 for banking instruction,
9537         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
9538         caused stop processing pCodes after a inline assembly block,
9539         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
9540         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
9541         registers when it shouldn't,
9542         * src/pic16/ralloc.c (allocReg): add preliminary support for
9543         supporting a limited set of temporary registers,
9544
9545 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9546
9547         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
9548           genDataPointerSet): ensure assignments always copy in MSB to LSB
9549           order,
9550           (loadRegFromAop): recognize CLRH optimization,
9551           (genFunction): optimize RECEIVE iCodes in reentrant functions
9552
9553 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9554
9555         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
9556           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
9557           selected.
9558         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
9559         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
9560           contiguous with data
9561
9562 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9563
9564         * device/lib/_gptrget.c (_gptrget),
9565         * device/lib/_gptrgetc.c (_gptrgetc),
9566         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
9567           instead of sjmp to ret
9568         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
9569           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
9570
9571 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
9572
9573         * .version: bumped version to 2.4.7
9574         * device/lib/_gptrget.c (_gptrget): is now _naked
9575         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
9576         * device/lib/_gptrput.c (_gptrput): is now _naked
9577         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
9578           (createFunction): fixed xstack
9579         * src/SDCCglue.c (emitMaps): set allocation required for bit area
9580         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
9581           or bit either,
9582           (geniCodeCritical): store original interrupt state in an iTemp bit
9583           var unless stack-auto
9584         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
9585         * src/SDCCmain.c (setIncludePath): added include/target to search path
9586         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
9587         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
9588           prototype,
9589           (processFuncArgs): put bit vars in bit area
9590         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
9591           unsaveRBank): fixed xstack,
9592           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
9593           (genFunction, genEndFunction): fixed xstack,
9594           (genAssign): optimization don't walk backwards through mem
9595         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
9596         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
9597         * support/regression/Makefile: also make library (for stack-auto) when
9598           making "all" and added "test-mcs51-xstack-auto"
9599         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
9600         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
9601         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
9602         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
9603         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
9604           make-library by MAKE_LIBRARY
9605         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
9606           regression tests for xstack
9607         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
9608         * support/regression/tests/critical.c: test for critical on mcs51
9609
9610 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9611
9612         * support/regression/ports/ucz80/spec.mk: use include and lib files from
9613           built version of sdcc instead of installed version
9614
9615 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
9616
9617         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
9618         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
9619           vprintf.c now
9620         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
9621         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
9622           WARNING: remove device/lib/build/z80/printf.o by hand when
9623           updating from previous build!
9624         * device/lib/z80/printf.c: updated comment
9625         * support/regression/tests/bug1057979.c: test all ports now
9626         * support/regression/tests/bug1065458.c: file added
9627
9628 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9629
9630         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
9631           *_start and *_end symbols for static functions
9632
9633 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
9634
9635         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
9636           and search crt0.o in all library paths,
9637           (setIncludePath): proper handling of --nostdinc,
9638           (setLibPath): proper handling of --nostdlib
9639         * support/regression/Makefile,
9640         * support/regression/ports/ds390/spec.mk,
9641         * support/regression/ports/gbz80/spec.mk,
9642         * support/regression/ports/hc08/spec.mk,
9643         * support/regression/ports/mcs51/spec.mk,
9644         * support/regression/ports/mcs51-large/spec.mk,
9645         * support/regression/ports/mcs51-stack-auto/spec.mk,
9646         * support/regression/ports/z80/spec.mk: use include and lib files from
9647           built version of sdcc instead of installed version
9648         * doc/sdccman.lyx: fixed typo in --nostdinc
9649
9650 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
9651
9652         * src/pic/pcode.c,
9653         * src/pic/device.c,
9654         * src/pic/ralloc.c,
9655         * src/pic/gen.c : added support to generate code for struct bit fields.
9656
9657 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
9658
9659         * as/xa51/xa_version.h,
9660         * device/include/errno.h,
9661         * device/include/regc515c.h,
9662         * device/lib/_itoa.c,
9663         * device/lib/_ltoa.c,
9664         * device/lib/ser_ir_cts_rts.c,
9665         * sim/ucsim/xa.src/glob.cc,
9666         * sim/ucsim/xa.src/inst_gen.cc,
9667         * sim/ucsim/xa.src/xa_bit.cc,
9668         * sim/ucsim/xa.src/xa_sfr.cc,
9669         * sim/ucsim/z80.src/inst_dd.cc,
9670         * sim/ucsim/z80.src/inst_fdcb.cc,
9671         * support/scripts/keil2sdcc.pl,
9672         * src/pic16/pic16.dsp,
9673         * src/pic16/pic16a.dsp: corrected cvs line endings
9674         * device/lib/printf_large.c: fixed bug 1057979
9675         * src/pic16/gen.c: fixed non-C standard code
9676         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
9677         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
9678         * support/regression/ports/mcs51/support.c: reload T1 asap
9679         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
9680           pdata use and clear idata startup behaviour
9681         * support/regression/tests/bug1057979.c: added
9682
9683 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
9684
9685         * device/examples/ds390/ow390/ad26.h,
9686         * device/examples/ds390/ow390/cnt1d.h,
9687         * device/examples/ds390/ow390/crcutil.c,
9688         * device/examples/ds390/ow390/ownet.h,
9689         * device/examples/ds390/ow390/owsesu.c,
9690         * device/examples/ds390/ow390/swt12.h,
9691         * device/examples/ds390/ow390/swtoper.c,
9692         * device/examples/ds390/ow390/temp10.h,
9693         * device/examples/ds390/ow390/thermodl.c,
9694         * device/examples/ds390/tinitalk/tinitalk.dsp,
9695         * device/examples/ds390/tinitalk/tinitalk.dsw,
9696         * device/examples/mcs51/clock/hw.h,
9697         * device/examples/mcs51/simple2/go.bat,
9698         * device/examples/serialcomm/windows/serial.h,
9699         * device/examples/xa51/dummy.c,
9700         * device/examples/xa51/hello.c,
9701         * device/include/80c51xa.h,
9702         * device/include/at89x051.h: corrected cvs line endings
9703
9704 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
9705
9706         * src/pic16/main.c (options): added command line --gstack, to trace
9707         stack over/under flows,
9708         * added pragma 'wparam' to allow passing first byte of function
9709         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
9710         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
9711         call to __gstack_test function and sets up the symbol as extern,
9712         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
9713         * popaop): added call to pic16_testStackOverflow,
9714         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
9715         wparamList list,
9716         * (genCall, genPcall): now all parameters are passed via stack
9717         except in functions that are pass to wparam pragma in which WREG is
9718         used too,
9719         * (genPcall): REENTRANT flag is checked to see if variable prototype
9720         contains reentrant keyword, don't call a non-reentrant function, via
9721         a reentrant function pointer or vice versa, functions are never
9722         passed via WREG,
9723         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
9724         D.Winkler,
9725         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
9726         SIGSEGV when accessing a NULL register stucture,
9727         * (pic16_printGPointerType): modified to handle UPPER modifier for
9728         function initializers, changed prototype of function to simpler one,
9729         * (pic16_printIvalFuncPtr): check to see if function is already
9730         added in externs list,
9731         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
9732         optimized a move from W to SFR with a move to the same register
9733         later after a CALL,
9734         * device/lib/pic16/debug: NEW directory, contains debug features
9735         which are enabled when linking with libdebug.lib, currently command
9736         line option --gstack enables stack pointer tracing for over/under
9737         flow, corresponding sources are in debug/gstack
9738
9739 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
9740
9741         * doc/sdccman.lyx: updated SDCC version,
9742         * (PIC16 port): update list of command line options,
9743         * src/pic16/device.h (structure pic16_options_t): added field gstack
9744         to enable stack overflow tracing on push/pops,
9745         * src/pic16/device.c (statistics structure): added statistics
9746         structure,
9747         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
9748         pic16_dump_int_registers): increase statistics counters for each
9749         * variable which is encountered
9750         * (pic16_dump_usection): emit each .udata variable to its own udata
9751         section,
9752         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
9753         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
9754         parameters via stack, otherwise use old scheme,
9755         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
9756         assembler output file,
9757         * src/pic16/main.c: added command line options --gstack to enable
9758         push/pop tracing for stack overflow,
9759         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
9760         instructions): added size of each instruction,
9761         * (pic16_countInstruction): estimate size of instructions in
9762         the_pFile list, inline assembly blocks are not counted,
9763         * (pic16_FixRegisterBanking): trace previous register usage, when
9764         banksel optimizations is greater than 0, don't emit a redudant
9765         banksel directive,
9766
9767 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
9768
9769         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
9770         * src/pic16/ralloc.c : applied same fix for pic16.
9771         * src/pic/gen.c : tidied it up a little.
9772
9773 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9774
9775         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
9776         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
9777
9778 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9779
9780         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
9781
9782 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9783
9784         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
9785         non-reentrant function __modsint in the interrupt function (thus
9786         corrupting math operations during serial I/O)
9787         * device/lib/ser_ir.c: as above, changed buffersize
9788         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
9789         256.c,d for zeroing
9790         * doc/Makefile: added option -t for rsync
9791
9792 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9793
9794         * src/SDCCast.h (struct ast),
9795         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
9796
9797 2004-10-20 Borut Razem <borut.razem AT siol.net>
9798
9799         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
9800         package
9801
9802 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
9803
9804         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
9805         makefile targets,
9806         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
9807         support functions to replace long sequences of MOVFF's from access
9808         bank registers to stack and vice versa,
9809         * src/pic16/device.h: added new field opt_flags, where optimization
9810         flags can be set to enable certain features,
9811         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
9812         * pBlock, (genFunction, genEndFunction): surroung loop for
9813         saving/loading used registers in stack with PC_INFO pCodes,
9814         INF_LREGS. Code in between can then be optimized by pCode optimizer
9815         to support function calls,
9816         * (genDataPointerSet): fixed bug which loaded float fields in
9817         structures with corrupt data,
9818         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
9819         in a standard way debug info on stderr. Feature used for developing
9820         and debugging only,
9821         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
9822         obsolete chunks of code,
9823         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
9824         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
9825         * pic16/src/pcode.c (pic16_newpCodeInfo,
9826         * (pic16_newpCodeOpLocalRegs),
9827         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
9828         feature,
9829         * (pic16_pCodeConstString): printing of the initial value of a
9830         symbol as a comment is inhibited since parsing was already done by
9831         copyStr and output is corrupt,
9832         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
9833
9834 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9835
9836         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
9837
9838 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
9839
9840         * as/mcs51/lkarea.c: removed old K&R style,
9841           (lnksect): changed check on boundary error,
9842           (lnksect2): changed check on boundary error,
9843           (lnksect2): extend XSTK to end of page if size = 1
9844         * as/mcs51/lkmain.c: removed old K&R style,
9845           (Areas51): create l_IRAM symbol
9846         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
9847         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
9848           model-mcs51-stack-auto, added model-mcs51-xstack-auto
9849         * device/lib/_mullong.c: added version to be compiled with xstack
9850         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
9851         * device/lib/mcs51/crtxclear.asm: clear pdata as well
9852         * device/lib/mcs51/crtxstack.asm: fixed comment
9853         * src/SDCCglue.c: maxInterrupts defaults to 0,
9854           (emitMaps): added pdata,
9855           (createInterruptVect): (re)moved default,
9856           (glue): added pdata,
9857           (glue): moved __start__xstack to XSTK with default size 1
9858         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
9859           and options.float_rent when options.stackAuto is set,
9860           (linkEdit): only write XDATA_NAME if provided on command line
9861         * src/SDCCmem.h,
9862         * src/SDCCmem.c: added pdata
9863         * src/port.h: added pdata_name to PORT
9864         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
9865           (saveRegisters, unsaveRegisters): removed usage of B,
9866           (genMinus): fixed accumulator clash,
9867           (genJumpTab): added comment, this needs another look
9868         * src/mcs51/gen.c: added check for "B in use" paranoia,
9869           added pushB() and popB()
9870         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
9871           chance
9872         * src/avr/main.c,
9873         * src/ds390/main.c,
9874         * src/hc08/main.c,
9875         * src/mcs51/main.c,
9876         * src/pic/main.c,
9877         * src/pic16/main.c,
9878         * src/xa51/main.c,
9879         * src/z80/main.c: (reset_regparms) made void parameter explicit and
9880           added PSEG (PAG,XDATA) or NULL to port specifier
9881         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
9882         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
9883           (_mcs51_genInitStartup): removed __start__xstack equ,
9884           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
9885         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
9886         * src/z80/gen.c (_rleAppend): fixed warnings
9887         * support/regression/tests/zeropad.c: added pdata test
9888         * .version: bumped to 2.4.6
9889
9890 2004-10-17 Borut Razem <borut.razem AT siol.net>
9891
9892         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
9893         as a part of nightly build
9894
9895 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
9896
9897         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
9898         WREG holds the first byte function parameters,
9899         * (aopForSym): take special case for symbols which are in FARSPACE
9900         but in CODESPACE too,
9901         * (assignResultValue): modified to take into account _G.useWreg,
9902         * (genCall): don't use wreg for parameter passing when function is
9903         declared as reentrant, too, added optimization INCF to stack
9904         pointer when stack parameter count is 1,
9905         * (genFunction, genEndFunction): refurnished and fixed to not using
9906         wreg for passing parameters when function has varargs or is
9907         reentrant, fixed bug with symbol name compare for generating
9908         functions in absolute address,
9909         * (pic16_storeForReturn): refurnished,
9910         * (genCmp): began writing a new version of the function, not ready
9911         yet, therefore it is disabled,
9912         * (genAssign): do not read code memory when assigning a function to
9913         a pointer function,
9914         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
9915         array of characters, not pointer,
9916         * (pic16initialComments): in debug mode emit an .ident directive for
9917         the assembler,
9918         * (_process_pragma): emit a new warning type (internal to pic16)
9919         when setting stack to default length, emit a similar warning when
9920         placing a function at absolute address and address is not word aligned
9921         * (_pic16_parseOptions): added 'return TRUE' statement,
9922         * (_pic16_linkEdit): if compiling a source, then add the source's
9923         file object, first in the list of objects to link,
9924
9925 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
9926
9927         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
9928         * src/pic/main.c : removed VC warning.
9929         * src/pic/gen.c : changed comment.
9930
9931 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
9932
9933         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
9934         reference to a deprecated symbol _GPTRREG was causing failure to
9935         link. Thanks G. M. Gallant for the info.
9936
9937 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
9938
9939         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
9940         comments for Bugs item #954788.
9941
9942 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
9943
9944         * src/pic16/device.c (pic16_dump_gsection,
9945         * pic16_groupRegistersInSection): handle symbols declared to be in
9946         access bank differently,
9947         * src/pic16/gen.c (struct _G): added field resDirect,
9948         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
9949         send values read from stack directly to result and don't allocate
9950         temporary values,
9951         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
9952         same registers,
9953         * (pic16_sameRegsOfs): NEW,
9954         * (freeAsmop): if _G.resDirect is set then do not mark registers as
9955         free because they were not allocated from temporary pool,
9956         * pic16_popRegFromString): workaround to fix a problem with
9957         allocating variables twice or never,
9958         * (genGenPointerGet): using PRODL instead of FSR0H,
9959         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
9960         instead of FSR0H,
9961         * (genAssign): take advantage of the _G.resDirect flag,
9962         * (genCast): around line 11844, use mov2f instead of directly
9963         MOVFF'ing between operands to account for literal values,
9964         * src/pic16/genutils.c: some new debug functions for gpsim have been
9965         added,
9966         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
9967         float with integer part only,
9968         * src/pic16/main.c (_process_pragma): handle pragma udata access to
9969         place variables in access bank
9970         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
9971         updated sources to reflect recent changes in gen.c
9972
9973 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
9974
9975         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
9976         sources that searched for headers in installation path, now the
9977         device/include/pic16 is used,
9978         * src/pic16/glue.c (pic16glue),
9979         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
9980         .line directives if not in debug mode, this suppresses assembler's
9981         warnings for ignored directives
9982
9983 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
9984
9985         * src/port.h: made reset_regparms prototype void parameter explicit.
9986         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
9987         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
9988         * doc/sdccman.lyx: documented warning disabling and how to use
9989           printf_large to make it print floats.
9990         * device/include/stdbool.h: NEW
9991         * device/lib/_atof.c,
9992         * device/lib/_divuint.c,
9993         * device/lib/_divulong.c,
9994         * device/lib/expf.c,
9995         * device/lib/printf_large.c,
9996         * device/lib/sincosf.c,
9997         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
9998         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
9999           a completely reentrant lib.
10000
10001 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
10002
10003         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
10004         * device/include/pic16/stdio.h: fixed bug with colon
10005
10006 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
10007
10008         * device/include/pic16/stdio.h,
10009         * device/include/pic16/stdlib.h,
10010         * device/include/pic16/math.h: NEW
10011         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
10012         declared as _naked to reduce overhead
10013         * device/lib/Makefile.in (target port-specific-objects-pic16):
10014         changed * to *.* so to ignore the CVS directory,
10015         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
10016         stacked variables back in stack,
10017         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
10018         corruption
10019
10020 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
10021
10022         * .version: bumped version number to 2.4.5
10023         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
10024         * support/Util/SDCCerr.c (messages structure): added entry for
10025         W_POSSBUG2
10026
10027         Large cumulative patch for pic16 port and libraries.
10028         * device/include/pic16/sdcc-lib.h,
10029         * device/include/pic16/stdarg.h,
10030         * device/include/asm/pic16/features.h,
10031         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
10032         * device/include/pic16/float.h: changes reentrant keyword with
10033         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
10034         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
10035         updated target build-libraries to include objects from gptr,
10036         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
10037         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
10038         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
10039         all function headings,
10040         * src/SDCCmain.c: added global parameter userIncDirsSet,
10041         * (parseCmdLine): when option -I is encountered add directory to
10042         userIncDirsSet too,
10043         * src/version.awk: added space between control and long,
10044         * src/pic16/NOTES: added some notes for the port,
10045         * src/pic16/gen.c: added prototype for mov2fp function,
10046         * (fReturnpic16[]): properly named return value registers,
10047         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
10048         * (aopForSym): added code to handle symbols with onStack flag set,
10049         symbols onStack are allocated PTRSIZE bytes,
10050         * (aopFreeAsmop): handles special case where asmops are stack objects,
10051         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
10052         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
10053         added argument lock to trace flaws in allocating temporary registers
10054         when developing port,
10055         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
10056         * (pic16_popRegFromString): reenabled allocating a direct register
10057         from string,
10058         * (assignResultValue): various beautifications,
10059         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
10060         referenced function argument,
10061         * (genIpush): reenabled to allow stacked arguments, handles only
10062         ic->parmPush iCodes,
10063         * (genCall, genPcall): major changes to allow for variable argument
10064         functions, fixed a bug with falsely restoring stack pointer after
10065         returning from call,
10066         * (genFunction): pending code for critical function,
10067         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
10068         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
10069         * (genNearPointerGet): fixed bug with indirect reading, was always
10070         reading from INDF0
10071         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
10072         pointers,
10073         * (genAddrOf): rewrote code to take address of a stacked function parameter
10074         * (genCast): fixed casting to generic pointer type,
10075         * src/pic16/gen.h: added AOP_STA,
10076         * (struct asmop): added field stk,
10077         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
10078         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
10079         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
10080         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
10081         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
10082         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
10083         generic pointers,
10084         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
10085         and library paths,
10086         * (pic16_port structure): generic pointer size is set to 3,
10087         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
10088         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
10089         compiler warning,
10090         * src/pic16/ralloc.c (allocReg): prevent allocating register when
10091         operand is an iTemp,
10092
10093 2004-09-24 Martin Helmling <mh AT octo-soft.de>
10094
10095         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
10096         * debugger/mcs51/simi.c: addapt new syntax of s51
10097
10098 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
10099
10100         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
10101         * src/pic16/pcode.c: commented out some calls to free() in order to
10102         fix bug #989576,
10103
10104 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10105
10106         * src/SDCCicode.h,
10107         * src/SDCCicode.c (isiCodeInFunctionCall),
10108         * src/avr/ralloc.c (selectSpil),
10109         * src/pic/ralloc.c (selectSpil),
10110         * src/pic16/ralloc.c (selectSpil),
10111         * src/ds390/ralloc.c (selectSpil),
10112         * src/hc08/ralloc.c (selectSpil),
10113         * src/xa51/ralloc.c (selectSpil),
10114         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
10115         stack in the middle of a function call sequence (fixes bug #1020268)
10116         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
10117         costs associated with the minimum switch case.
10118
10119 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10120
10121         * src/SDCC.lex: fixed bug #1030549
10122
10123 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10124
10125         * src/SDCCcse.h (struct cseDef),
10126         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
10127         over a function call if the CSE is derived from a symbol whose
10128         address has been taken (fixes bug #1029883)
10129         * support/regression/tests/bug-1029883: a new regression test for
10130         this bug
10131
10132 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10133
10134         * src/hc08/gen.c (emitinline): fixed bug #1029778
10135         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
10136         to a cast object is no longer a syntax error ("fixes" bug #1030006,
10137         and starts toward RFE #905167)
10138
10139 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
10140
10141         * src/pic16/gen.c (mov2f): New function to move an operand to
10142         another without considering if it is a literal or a register,
10143         * (pic16_sameRegs): don't check if they are both AOP_REG,
10144         * (AccRsh): removed andmask=0 lines,
10145         * (genLeftShift): duplicated to be improved in future versions,
10146         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
10147         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
10148         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
10149         * (pic16initMnemonics): added initialization for POC_INFSNZW,
10150         * (insertBankSwitch): fixed inserting banksel directives algorithm
10151         for instructions that follow a skip instruction, this fixes a report
10152         for broken subtraction code generation,
10153         * src/pic16/ralloc.c (deassignLRs): do not free register if current
10154         iCode is a left op, just in case result and right share the same
10155         registers
10156
10157 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10158
10159         * src/hc08/main.c,
10160         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
10161         preservation of HX
10162         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
10163         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
10164         on 2004-09-12; it was buggy
10165
10166 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
10167
10168         * src/SDCCsymt.h: removed RESULT_CHECK
10169         * src/SDCCast.c,
10170         * src/SDCCglue.c,
10171         * src/SDCCval.c,
10172         * src/pic/glue.c,
10173         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
10174
10175 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
10176
10177         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
10178         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
10179         configuration values no more rejected by compiler, they are assigned
10180         to configuration registers with a warning message instead,
10181         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
10182         the for-loop so last conf register is emitted too,
10183         * (_pic16_initPaths): link library libsdcc.lib by default,
10184         * (_hasNativeMulFor): modified test for multiplication according to
10185         Raphael Neider's remarks. Integer multiplication is also done with
10186         support functions,
10187         * device/include/pic16/pic18fregs.h: corrected type error in while
10188         testing and including 18f6720 header file
10189
10190 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
10191
10192         * src/pic16/device.h (pic16_options): removed field use_crt,
10193         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
10194         until an optimization to handle single bits is added,
10195         * (pic16_loadFSR0): moved before genUnpackBits,
10196         * (genAnd): some white lines removed,
10197         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
10198         leave_reset flags in pic16_options when using crt modules,
10199
10200 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
10201
10202         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
10203           for bugs 898889 & 979599. Also used some safer print instructions.
10204
10205 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
10206
10207         * src/pic16/device.h (pic16_options_t): added field use_crt,
10208         crt_name, no_crt,
10209         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
10210         catch a probable future bug,
10211         * src/pic16/gen.c: aopIdx function commented out,
10212         * (genAssign): commented out old code which used aopIdx,
10213         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
10214         code, added if conditionals to take into account the --use-crt
10215         command line options,
10216         * src/pic16/main.c (pic16_optionsTable): added new command line
10217         options, --use-crt= and --no-crt,
10218         * (_pic16_linkEdit): now the proper crt object is added in the
10219         linker command line except than when --no-crt is specified,
10220         * src/pic16/pcode.c,
10221         * src/pic16/pcode.h: added some structures and functions for a new
10222         optimization scheme to compansate for instruction overhead between
10223         same iCodes, this scheme is currently under development and is not
10224         working in any way,
10225         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
10226         to && operator,
10227         * device/lib/pic16/startup/crt0i.c,
10228         * device/lib/pic16/startup/crt0iz.c: added global char variable
10229         __uflags to force the generation of an idata section
10230
10231 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
10232
10233         * doc/Makefile,
10234         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
10235         * doc/sdccman.lyx: updated sdcc version to 2.4.4
10236
10237 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10238
10239         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
10240         Frieder) and clarified the default code optimization mode
10241
10242 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10243
10244         * src/SDCC.lex (doPragma, process_pragma),
10245         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
10246         "opt_code_size", and "opt_code_balanced"
10247         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
10248         regrouped options by category, added support for category headers
10249         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
10250         and "--opt-code-size"
10251         * doc/sdccman.lyx: documented these new options and pragmas
10252         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
10253         preference into account
10254
10255 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
10256
10257         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
10258           geniCodePreDec): Fixed bug 904237 by generating a warning
10259         * src/SDCCerr.h,
10260         * src/SDCCerr.c: added warning W_SIZEOF_VOID
10261
10262 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
10263
10264         * src/pic/device.c : When no max ram set validate full memory range.
10265         * src/pic/pcode.c,
10266         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
10267
10268 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
10269
10270         * device/lib/_gptrget.c,
10271         * device/lib/_gptrput.c: updated comment
10272         * device/lib/calloc.c,
10273         * device/lib/free.c,
10274         * device/lib/malloc.c,
10275         * device/lib/realloc.c: added LGPL, made them reentrant-safe
10276         * src/SDCCcse.c (cseBBlock),
10277         * src/SDCCicode.c (printOperand, geniCodeArray),
10278         * src/SDCCicode.h (struct operand): fixed bug 868103
10279         * support/regression/tests/bug-868103.c: added
10280         * src/SDCCast.c (searchLitOp),
10281         * src/SDCCcse.h (struct cseDef),
10282         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
10283         * src/SDCCicode.h (struct operand),
10284         * src/SDCCsymt.h (struct sym_link),
10285         * src/avr/gen.c (hasInc),
10286         * src/ds390/gen.c (hasInc),
10287         * src/hc08/gen.c (genPlusIncr, hasInc),
10288         * src/mcs51/gen.c (hasInc),
10289         * src/pic16/glue.c (pic16_printIvalChar),
10290         * src/pic16/ralloc.c (regWithIdx),
10291         * src/xa51/gen.c (hasInc) : removed warnings
10292         * src/SDCCast.c (createBlock): added comment ???
10293         * src/hc08/ralloc.c: updated comments
10294
10295 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10296
10297         * doc/sdccman.lyx: updated section on switch statements, added
10298         section about semaphore locking
10299         * doc/Makefile: added option -info for latex2html
10300         * device/lib/_gptrget.c,
10301         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
10302
10303 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
10304
10305         * src/pic/device.h,
10306         * src/pic/device.c,
10307         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
10308          maxram is less than 0x100.
10309
10310 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
10311
10312         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
10313
10314 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10315
10316         * src/port.h,
10317         * src/mcs51/main.c,
10318         * src/ds390/main.c,
10319         * src/z80/main.c,
10320         * src/hc08/main.c,
10321         * src/pic/main.c,
10322         * src/pic16/main.c,
10323         * src/avr/main.c,
10324         * src/xa51/main.c
10325         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
10326         a jump table is the best form for a switch statement, including
10327         automatic insertion of missing cases to make the case range
10328         continuous. Developed in collaboration with Frieder Ferlemann.
10329
10330 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10331
10332         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
10333         accumulator result if it needs sign extension
10334
10335 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10336
10337         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
10338
10339 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10340
10341         * device/lib/gbz80/printf.c,
10342         * device/lib/z80/printf.c: removed define for NULL
10343
10344 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10345
10346         * as/xa51/xa_link.c,
10347         * device/examples/ds390/ow390/ad26.c,
10348         * device/examples/ds390/ow390/cnt1d.c,
10349         * device/examples/ds390/ow390/counter.c,
10350         * device/examples/ds390/ow390/ds2480.h,
10351         * device/examples/ds390/ow390/ds2480ut.c,
10352         * device/examples/ds390/ow390/findtype.c,
10353         * device/examples/ds390/ow390/gethumd.c,
10354         * device/examples/ds390/ow390/owllu.c,
10355         * device/examples/ds390/ow390/ownetu.c,
10356         * device/examples/ds390/ow390/swt12.c,
10357         * device/examples/ds390/ow390/swtloop.c,
10358         * device/examples/ds390/ow390/temp.c,
10359         * device/examples/ds390/ow390/temp10.c,
10360         * device/examples/ds390/ow390/thermo21.c,
10361         * device/examples/ds390/ow390/tinilnk.c,
10362         * device/examples/ds390/ow390/tstfind.c,
10363         * device/examples/serialcomm/windows/serial.cpp,
10364         * device/examples/serialcomm/windows/test_serialcomm.cpp,
10365         * device/include/reg51.h: fixed line endings for cvs
10366
10367 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10368
10369         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
10370         packRegsForAccUse, packRegisters): new accumulator register
10371         packing algorithm
10372         * support/regression/ports/hc08/support.c (_putchar): suppress
10373         warning of unused variable
10374         * src/SDCCicode.c: added SWAP entry to codeTable
10375
10376 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
10377
10378         * device/lib/sprintf.c: forgot to add this file before previous commit
10379
10380 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
10381
10382         * src/pic16/gen.c (genPackBits): added operand right in function
10383         parameters, load result directly if p_type is POINTER (that is
10384         called by genNearPointerSet)
10385         * (genUnPackBits): added operand left in function parameters,
10386         * (genNearPointerGet, genNearPointerSet): prevent the loading of
10387         FSR0 if accessing bitfields,
10388
10389 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
10390
10391         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
10392           _print_format; updated printf, sprintf, vsprintf
10393         * device/include/asm/default/features.h: corrected comment/define
10394         * device/lib/Makefile.in: added sprintf.c
10395         * device/lib/libsdcc.lib: added sprintf module
10396         * device/lib/printf_large.c,
10397         * device/lib/vprintf.c,
10398         * device/lib/sprintf.c: totally refactored printf_large and vprintf
10399           into these 3 files
10400         * support/regression/Makefile: changed ALL_PORTS into a usefull default
10401         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
10402         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
10403           hc08 test
10404         * support/regression/tests/zeropad.c: define idata as data for hc08
10405
10406 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10407
10408         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
10409         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
10410         labels are referenced at least once (even if a reference is not found)
10411         * src/hc08/gen.c (emitcode): set isComment flag for comments
10412         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
10413         loads), rules 6a..6b (optimize jumps to return)
10414
10415 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10416
10417         * device/lib/acosf.c (acosf),
10418         * device/lib/asinf.c (asinf),
10419         * device/lib/atanf.c (atanf),
10420         * device/lib/ceilf.c (ceilf),
10421         * device/lib/cosf.c (cosf),
10422         * device/lib/coshf.c (coshf),
10423         * device/lib/cotf.c (cotf),
10424         * device/lib/fabsf.c (fabsf),
10425         * device/lib/floorf.c (floorf),
10426         * device/lib/log10f.c (log10f),
10427         * device/lib/logf.c (logf),
10428         * device/lib/sinf.c (sinf),
10429         * device/lib/sinhf.c (sinhf),
10430         * device/lib/sqrtf.c (sqrtf),
10431         * device/lib/tanf.c (tanf),
10432         * device/lib/tanhf.c (tanhf),
10433         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
10434         replaced all instances of "reentrant" in the library functions
10435         defined in math.h with this macro.
10436         * support/regression/tests/float_trans.c: reenabled test for hc08
10437
10438 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
10439
10440         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
10441         erroneously deleted
10442
10443 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10444
10445         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
10446         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
10447         multi-byte volatile operands are used
10448         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
10449         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
10450         initialization to area GSINIT0 so that it would always precede
10451         any static initializers in GSINIT
10452         * support/regression/tests/zeropad.c: fixed idata define for hc08
10453         * support/regression/tests/bug-927659.c,
10454         * support/regression/tests/float_trans.c: disabled tests for hc08
10455         pending missing library routines
10456         * .version: increased version number to 2.4.4 - hc08 port now passes
10457         regression tests
10458
10459
10460 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
10461
10462         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
10463         * Makefile.common.in,
10464         * as/Makefile,
10465         * as/hc08/Makefile.in,
10466         * as/mcs51/Makefile.in,
10467         * as/z80/Makefile.in,
10468         * debugger/mcs51/Makefile.in,
10469         * device/include/Makefile.in,
10470         * device/lib/Makefile.in,
10471         * doc/Makefile,
10472         * link/Makefile,
10473         * link/z80/Makefile.in,
10474         * packihx/Makefile.in,
10475         * sim/ucsim/main_in.mk,
10476         * sim/ucsim/avr.src/Makefile.in,
10477         * sim/ucsim/doc/Makefile.in,
10478         * sim/ucsim/gui.src/serio.src/Makefile.in,
10479         * sim/ucsim/hc08.src/Makefile.in,
10480         * sim/ucsim/s51.src/Makefile.in,
10481         * sim/ucsim/xa.src/Makefile.in,
10482         * sim/ucsim/z80.src/Makefile.in,
10483         * src/Makefile.in,
10484         * support/cpp2/Makefile.in,
10485         * support/librarian/Makefile,
10486         * support/makebin/Makefile: added DESTDIR to the install path proposed
10487         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
10488         * doc/sdccman.lyx: added DESTDIR documentation
10489
10490 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
10491
10492         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
10493         instruction for interrupt handlers, use fast returns when returning
10494         from high priority interrupts
10495
10496 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10497
10498         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
10499         code generation
10500         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
10501         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
10502         bugs, ported much of Bernhard's code from mcs51
10503         * src/mcs51/gen.c (genSend),
10504         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
10505         than one when calling a reentrant function
10506         * device/lib/_mullong.c: defined an alternate struct layout for big
10507         endian ports (hc08)
10508
10509 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10510
10511         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
10512         test
10513
10514 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10515
10516         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
10517         are sane and complete before asking the port its prefered parameter
10518         passing method (fixes bug #1017633)
10519         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
10520         and _ret3
10521
10522 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10523
10524         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
10525         problem in bitfields >= 8 bits.
10526
10527 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10528
10529         * src/SDCCsymt.c: undid changes that were not meant to be committed
10530
10531 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10532
10533         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
10534
10535 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10536
10537         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
10538           copied and wrong bit got inverted
10539
10540 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10541
10542         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
10543         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
10544         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
10545         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
10546         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
10547         assignments to bitfields at known addresses
10548         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
10549         reads from bitfields at known addresses
10550         * src/hc08/ralloc.c (packRegisters),
10551         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
10552         genhc08Code): optimize pointer get values used as conditionals
10553         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
10554         and branch
10555
10556 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10557
10558         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
10559         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
10560         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
10561         as conditionals
10562
10563 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10564
10565         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
10566
10567 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10568
10569         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
10570         related problems
10571
10572 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
10573
10574         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
10575
10576 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10577
10578         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
10579         mcs51 port
10580
10581 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
10582
10583         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
10584
10585 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10586
10587         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
10588         cases use more compact code.
10589
10590 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
10591
10592         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
10593
10594 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10595
10596         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
10597
10598 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10599
10600         * src/SDCCsymt.h,
10601         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
10602         parameter of changePointer() from symbol* to sym_link*
10603         * src/SDCCast.c (decorateType): call changePointer() for CAST op
10604         * src/SDCCsymt.c (compareType): void* type is castable to other
10605         pointers, but not necesarily an exact match.
10606         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
10607         is no longer blindly treated as an exact match.
10608         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
10609
10610 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
10611
10612         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
10613
10614 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
10615
10616         * src/pic/gen.c,
10617         * src/pic/pcode.c,
10618         * src/pic/ralloc.h,
10619         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
10620
10621 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
10622
10623         * src/pic/device.c,
10624         * src/pic/device.h,
10625         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
10626
10627 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10628
10629         * src/mcs51/gen.c (emitcode): fixed bug #992819
10630
10631 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
10632
10633         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
10634           there's no need to make it worse
10635
10636 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10637
10638         * src/mcs51/ralloc.c (deassignLR),
10639         * src/ds390/ralloc.c (deassignLR),
10640         * src/hc08/ralloc.c (deassignLR),
10641         * src/z80/ralloc.c (deassignLR),
10642         * src/pic/ralloc.c (deassignLR),
10643         * src/pic16/ralloc.c (deassignLR),
10644         * src/avr/ralloc.c (deassignLR),
10645         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
10646         rlivePoint): fixed another part of bug #971834
10647
10648 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10649
10650         * src/z80/main.c: enabled "critical" keyword
10651         * src/z80/mappings.i,
10652         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
10653         functions (fixes bug #979646)
10654         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
10655
10656 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10657
10658         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
10659           such as c:\mydir.
10660
10661 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
10662
10663         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
10664           doesn't disable too much optimizations
10665
10666 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
10667
10668         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
10669
10670 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
10671
10672         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
10673
10674 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
10675
10676         * src/pic/gen.c tidied up tabs
10677         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
10678         * src/pic/main.c tidied up tabs
10679         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
10680         * src/pic/pcoderegs.c tidied up tabs
10681         * src/pic/ralloc.c tidied up tabs
10682
10683 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
10684
10685         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
10686         to S_FIXED for pic16 port and when symbol is not in level 0,
10687         allocate for S_REGISTER storage class and pic16 port, too,
10688         * src/pic16/device.h: prototype for checkSym,
10689         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
10690         * (pic16_assignConfigWordValue): test the value and the mask to
10691         validate that the value is suitable for the configuration word,
10692         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
10693         collect extern declared symbols, don't emit symbol twice, check
10694         first if symbol is in publics set first,
10695         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
10696         * added command line '--fstack' which enables an experimental
10697         feature for stack access, too buggy to be used yet...
10698         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
10699         * (pic16_allocDirReg): when register has storage class S_REGISTER
10700         allocate in pic16_dynAccessRegs,
10701         * device/include/pic16/pic18f????.h: modified configuration word
10702         naming convention, words started as CONFIG0H but should be CONFIG1H
10703
10704 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
10705
10706         * device/include/mcs51reg.h: fixed bug 970993
10707
10708 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
10709
10710         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
10711         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
10712         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
10713         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
10714         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
10715         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
10716           error/warning numbers,
10717           added function setWarningDisabled()
10718         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
10719         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
10720           _memcmp.c _memmove.c calloc.c realloc.c free.c
10721         * support/regression/tests/malloc.c: added tests for new functionality
10722         * support/regression/tests/zeropad.c: added tests for truncated initializers
10723           and initialized char arrays starting with '\x0'
10724         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
10725
10726 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
10727
10728         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
10729
10730 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10731
10732         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
10733         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
10734         peephole 177.e. Thanks to anonymous
10735
10736 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
10737
10738         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
10739         function isn't used in the source but referenced as a
10740         variable initializer then declare it as extern in .asm file
10741
10742 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
10743
10744         * .version: increased version number to 2.4.3
10745
10746         Adding version extension according to ChangeLog CVS revision
10747         * src/Makefile.in (target all): added dependency 'version.h'
10748         * (rule version.h): added rule to create version.h from ChangeLog,
10749         * (rule dep): added dependency version.h,
10750         * src/version.awk: AWK script to create version.h
10751         * src/SDCCdwarf2.c (dwWriteModule),
10752         * src/SDCCglue.c (initialComments),
10753         * src/SDCCmain.c (printVersionInfo): modified to write after
10754         version string the version extension number,
10755         * src/SDCCutil.c: included "version.h"
10756         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
10757         number,
10758         * src/SDCCutil.h: added prototype for getBuildNumber
10759
10760         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
10761         includeDirsSet, too,
10762         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
10763         const char [] is found in function prototype...
10764
10765         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
10766         moving to WREG with source is already in WREG,
10767         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
10768         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
10769         * (aopForSym): stack'ed symbols are partially supported, added
10770         if-clause to support symbols in FARSPACE,
10771         * (sameRegs): added test for AOP_ACC to see if registers are same,
10772         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
10773         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
10774         * (pic16_popRegFromString): will not allocate a new register if it
10775         doesn't find one by name, bug may have introduced...
10776         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
10777         * (genIpush): revived to use pic16 port's stack,
10778         * (genAddrOf): added incomplete case for stack'ed operand,
10779         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
10780         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
10781         can handle multibyte operands,
10782         * src/pic16/glue.c (pic16_printIval*): some debug info added,
10783         * (pic16initialComments): added message for MPLAB compatibility
10784         mode enabled,
10785         * src/pic16/main.h: prototype for pic16_mplab_comp,
10786         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
10787         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
10788         * (_pic16_linkEdit): NEW, handles link stage, transferred here
10789         because of increased complexity of procedure,
10790         * (_process_pragma): stack pragma changed to format 'stack pos len',
10791         emit symbol '_stack_end' to conform with gplink,
10792         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
10793         to search for register,
10794         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
10795         PO_GPR_REGISTER,
10796         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
10797         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
10798         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
10799         case for PO_GPR_REGISTER,
10800         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
10801         dies, the new era is ahead !...
10802         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
10803         pic16_dynInternalRegs,
10804         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
10805         * (pic16_allocDirReg): minor optimizations and bug fixes,
10806         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
10807
10808         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
10809         load stack and frame pointer with address of 'stack_end' symbol
10810
10811 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
10812
10813         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
10814         without source code but only variable initializers
10815
10816 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
10817
10818         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
10819         external are not declared as extern to reduce overhead while linking
10820
10821 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
10822
10823         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
10824
10825 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
10826
10827         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
10828           Yee Keat for the patch
10829         * src/SDCCast.c (decorateType): fixed bug #979599
10830         * src/ds390/gen.h: removed local fReturnSizeDS390
10831         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
10832         * src/ds390/gen.c (genAnd, genOr, genXor),
10833         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
10834
10835 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
10836
10837         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
10838         add relFilesSet to $3, manipulate $2 to handle linking of object
10839         files without source files in command line,
10840         * device/include/pic16 (all headers): added ID location macros,
10841         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
10842         entries for ID location bytes,
10843         * (pic16_assignIdByteValue): NEW,
10844         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
10845         added field dumpcalltree to pic16_options_t,
10846         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
10847         is used instead of pic16_Gstack_base_addr, check if (ifx) before
10848         emitting rFalseIfx label after check_carry label,
10849         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
10850         pic16_emitDIRegs), NEW
10851         * (pic16glue): dump .calltree file when option --calltree found,
10852         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
10853         * (_pic16_genAssemblerPreamble): emit ID locations after
10854         configuration registers,
10855         * (pic16_linkCmd): modifications of the link command,
10856         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
10857         * (pic16_pCodeInitRegisters): don't init stack registers,
10858         * (pic16_findPrevInstruction): fixed bug,
10859         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
10860         bug with immediate registers,
10861         * (buildCallTree): traces stack push and pop,
10862         * (pct2): dump also stack usage for each function,
10863         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
10864         * (pic16_allocDirReg): various modifications,
10865         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
10866         fixed to 1,
10867
10868 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
10869
10870         * src/pic16/pcode.c: removed buggy double colon
10871
10872 2004-07-01 Borut Razem <borut.razem AT siol.net>
10873
10874         * support/scripts/sdcc.nsi: added include/pic16 to setup
10875
10876 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
10877
10878         * device/lib/Makefile.in: fixed bug in target objects-pic16,
10879         * device/lib/pic16/Makefile: prefixed with dash (-) command under
10880         target 'clean',
10881         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
10882         specific command line arguments. Also added sample lkr script
10883         for placing a variable at a specific memory bank.
10884         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
10885         at a specific memory bank,
10886         * (pic16_dump_isection): fixed bug which caused string literals to
10887         be omitted when dumping idata section,
10888         * (pic16_groupRegistersInSection): added code to handle registers
10889         in specific memory banks,
10890         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
10891         public, all references are renamed too,
10892         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
10893         AOP_DPTR2,
10894         * (pic16_storeForReturn): added case to handle when dest is WREG,
10895         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
10896         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
10897         pic16_rel_udata, check to see if that register is marked as being
10898         a member of a specific memory bank,
10899         * (pic16_printIvalCharPtr): added code to add string literals either
10900         to code or the idata sections,
10901         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
10902         also accept the 'udata' pragma,
10903         * src/pic16/main.h: new structure types sectName and sectSym
10904         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
10905         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
10906         * (pic16_findPrevInstruction): fixed, it returned nothing,
10907         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
10908         instruction combinations,
10909         * (pic16_FixRegisterBanking): heavily reorganised,
10910         * (pic16_AnalyzeBanking): if generating banksel directives is
10911         disabled, then don't call FixRegisterBanking at all,
10912         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
10913         completely removed,
10914         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
10915
10916 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
10917
10918         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
10919         Phuah Yee Keat <yk.phuah AT nestac.com>
10920
10921 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
10922
10923         * src/pic16/glue.c (pic16createInterruptVect): function now emits
10924         correctly the IVT even if it is relocated to some other location
10925
10926 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
10927
10928         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
10929         * device/include/pic16/pic18f2220.h: NEW,
10930         * device/lib/pic16/libdev/pic18f2220.c: NEW,
10931         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
10932         * src/pic16/device.c (struct Pics16): added info for 18f2220,
10933         * src/pic16/device.h (struct pic16_options): added ivt_loc and
10934         nodefaultlibs, ivt_loc is the location of the interrupt vector
10935         table, and nodefaultlibs signs that default libraries should not be
10936         linked in link stage,
10937         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
10938         according to --ivt-loc argument,
10939         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
10940         when pragma stack is found,
10941
10942 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10943
10944         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
10945         256 (range check), 257 (do while), 258.a-f (bit banging
10946         f.e. on 3-wire SPI bus)
10947
10948 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10949
10950         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
10951         variables used exclusively within a loop
10952
10953 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
10954
10955         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
10956
10957 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10958
10959         * src/SDCClrange.c (computeClash): fixed bug #971834
10960
10961 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10962
10963         * src/mcs51/gen.c (genCmp): fixed bug #975903
10964         * src/hc08/gen.c (operandsEqu),
10965         * src/ds390/gen.c (operandsEqu),
10966         * src/z80/gen.c (operandsEqu),
10967         * src/pic/gen.c (operandsEqu),
10968         * src/pic16/gen.c (operandsEqu),
10969         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
10970         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
10971
10972 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10973
10974         * src/SDCCcse.c (cseBBlock): fixed bug #966963
10975
10976 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
10977
10978         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
10979         default case in switch statement,
10980         * glue.c (pic16_initPointer): expr is initialised via decoarteType
10981         to eliminate problem with initialisation of pointers, but problem
10982         still exists,
10983         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
10984         * (emitStaticSegment): removed various lines emitting debug info,
10985         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
10986         added processor registers for utilizing EEPROM,
10987         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
10988         configurable and set 8
10989
10990 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
10991
10992         * .version: increased version number to 2.4.2,
10993
10994         Cumulative patch for pic16 port
10995         * src/pic16/device.c: changed scheme to dump initial values for
10996         variables in idata segment, all print_idata* functions were removed,
10997         now the pic16_printIval* will be called,
10998         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
10999         * _pic16_printPointerType, pic16_printPointerType,
11000         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
11001         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
11002         NEW, similar to the respective functions in SDCCglue.c,
11003         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
11004         way, emitting hex bytes,
11005         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
11006
11007 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11008
11009         * src/avr/ralloc.c (serialRegAssign),
11010         * src/xa51/ralloc.c (serialRegAssign),
11011         * src/pic/ralloc.c (serialRegAssign),
11012         * src/pic16/ralloc.c (serialRegAssign),
11013         * src/hc08/ralloc.c (serialRegAssign),
11014         * src/z80/ralloc.c (serialRegAssign),
11015         * src/ds390/ralloc.c (serialRegAssign),
11016         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
11017
11018 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11019
11020         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
11021         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
11022
11023 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
11024
11025         Cumulative patch for pic16 port:
11026         * src/pic16/device.h (typedef PIC16_device) modified fields for
11027         defining microcontrollers,
11028         * src/pic16/device.c: added new info for all devices in Pics16 array,
11029         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
11030         to be optimised out by the pCode optimiser,
11031         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
11032         specially, bug reported by G.M. Gallant,
11033         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
11034         as force'd so that cannot be optimised out by pCode optimiser,
11035         * src/pic16/pcode.c,
11036         * src/pic16/pcodepeeph.c,
11037         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
11038         they are disabled by default, but can be enabled explicit with
11039         command argument --denable-peeps, for testing,
11040         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
11041         --pomit-ivt in COMPILE_FLAGS
11042
11043 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
11044
11045         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
11046           compilation on MSVC
11047
11048 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
11049
11050         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
11051
11052 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11053
11054         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
11055         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
11056
11057 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
11058
11059         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
11060         would only assign 0x300001 register.
11061
11062 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
11063
11064         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
11065         in COMPILE_FLAGS. Thanks to G. Gallant for report.
11066
11067 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11068
11069         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
11070         for ds80c400
11071         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
11072         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
11073         added peephole 254 (left shift), 255 (jump table)
11074
11075 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
11076
11077         * device/lib/Makefile.in: removed comment line with model-pic16,
11078         * (target port-specific-objects-pic16): the libraries and objects
11079         are copied to the build directory form the device/lib/pic16/bin
11080         directory
11081
11082         Cumulative patch concerning pic16 port:
11083         * library directory has been re-organized,
11084         * added support for PIC18F1220,
11085         * added headers and library sources for chips 18f1220,18f6520,
11086         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
11087
11088         * configuration registers setting has changed, now each supported
11089         device has a complete description of the registers it uses,
11090         * all initialisations are moved to idata sections, these section
11091         can be absolute or relocatable,
11092         * fixed initialisation of codespace variables,
11093         * fixed warning about PCLATU and gpsim,
11094         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
11095         * (genAssign): use table reads when assigning from variables in codespace,
11096         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
11097         char/int variables placed in codespace,
11098         * (pic16_emitConfigRegs): NEW, emits a list with configuration
11099         registers set in .asm file, no need for --pomit-config-words anymore,
11100         * (pic16glue): some 8051 legacy segments are commented out
11101         (to be removed completely),
11102         * added support for alternative assembler and linker with --asm=
11103         and --link= command line arguments,
11104         * peepholes are disabled automatically in the port, no need to
11105         specify on command line,
11106         * port supports natively char/int/long multiplication, but converts
11107         all divisions to support functions,
11108         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
11109         to the file set in variable $2,
11110         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
11111         strings in ASCII format and not in hex,
11112         * ralloc.c (serialRegAssign): added a triplet of conditional calls
11113         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
11114         allocate proper register if iCodes aren't temporary,
11115
11116 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
11117
11118         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
11119
11120 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
11121
11122         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
11123         is commented out
11124
11125 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11126
11127         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
11128         computed address is reused
11129         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
11130         multi-byte bitfields
11131
11132 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
11133
11134         * src/z80/gen.c: (genArrayInit): must check for pointers too
11135
11136 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
11137
11138         * support/regression/tests/zeropad.c: never meant to commit the
11139           nestedstruct test: removed, added check for GCC version
11140
11141 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
11142
11143         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
11144         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
11145         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
11146           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
11147           bugs 928906 and 954082 half-empty initializers
11148         * src/SDCCsymt.h,
11149         * src/SDCCsymt.c (getAllocSize): added for above fix
11150         * src/z80/gen.c (genArrayInit): fixed bug 741044
11151         * support/regression/tests/zeropad.c: added tests
11152
11153 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
11154
11155         * src/pic16/device.c (pic16_dump_section): corrected bug which
11156         caused some symbols of the libraries to be misplaced
11157
11158 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
11159
11160         * src/pic16/glue.c,
11161         * src/pic16/ralloc.h,
11162         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
11163         to fix conflict with pic port
11164
11165 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
11166
11167         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
11168         externs configuration variables,
11169         * src/pic16/ralloc.h,
11170         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
11171         prototype in header, commented out some debug messages
11172
11173 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
11174
11175         * src/pic16/glue.c,
11176         * src/pic16/main.c,
11177         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
11178         for gpasm COFF object generation. Thanks to D. Hawkins for
11179         his patch info
11180
11181 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11182
11183         * src/ds390/main.c,
11184         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
11185         Brock for spotting this)
11186         * src/ds390/gen.c (genEndFunction),
11187         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
11188         interrupt handler and critical. Disable push/pop optimizations when
11189         peephole optimizations disabled.
11190
11191 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
11192
11193         Updated pic16 library sources and headers.
11194         * device/lib/pic16/pic18f*/ ,
11195         * device/include/pic16/*.h: modified to handle structured SFR
11196         definitions
11197
11198 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
11199
11200         * src/port.h (PORT structure): added hook initPaths, now each
11201         port can declare its own default search paths,
11202         which can been seen with the --print-search-dirs option,
11203         see pic16 port for example,
11204         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
11205         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
11206         * (doPrintSearchDirs): NEW, replaces in a central manner the
11207         printing of search dirs which was split in set*Paths functions,
11208         * (main): added call to port->initPaths and doPrintSearchDirs,
11209         * src/avr/main.c,
11210         * src/ds390/main.c,
11211         * src/hc08/main.c,
11212         * src/izt/i186.c,
11213         * src/izt/tlcs900h.c,
11214         * src/mcs51/main.c,
11215         * src/pic/main.c,
11216         * src/pic16/main.c: modified port structures to reflect addition of
11217         initPaths hook,
11218
11219         * src/pic16/device.c (regCompare): registers are finally sorted by name,
11220         * (pic16_dump_section): for registers in same address reserve memory once,
11221         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
11222         to no_banksel,
11223         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
11224         result is greater in size than right or left,
11225         * (pic16_genUMult8X8_8): there are some cases where the result can
11226         be 16 bits size, so handle these,
11227         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
11228         * (pic16_outBitC): modified to emit pcodes,
11229         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
11230         or not,
11231         * (genDivOneByte): implemented algorithm to divide 8-bits,
11232         * (genCmp): uncommented goto, but issues still exist,
11233         * (genAnd): fixed a bug with variables >8bits,
11234         * (genPackBits): optimization added that uses BCF/BSF to change a
11235         single bit,
11236         * (genAssign): fixed bug when assigning floating point literals,
11237         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
11238         __sdcc_gsinit_startup label,
11239         * src/pic16/main.c (_pic16_init): removed search directory
11240         initialisations,
11241         * (_pic16_initPaths): NEW, used to initialise search directories,
11242         * (_hasNativeMulFor): support functions for all except char/int
11243         multiplication, and char division,
11244         * (PIC16_port struct): modified entry for native mul support,
11245         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
11246         no_banksel option,
11247         * (buildCallTree): call to register_usage is ifdef'ed out,
11248
11249 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11250
11251         * device/include/string.h: applied Stas Sergeev's patch to make this
11252         header file compatible with the preprocessor -Wundef option
11253         * src/SDCCmain.c (main): abort compilation if preprocessor reports
11254         failure (fixes bug #941458)
11255
11256 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11257
11258         * src/SDCCopt.c (killDeadCode): fixed bug #907733
11259         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
11260         that the variable, not the function, should be static
11261         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
11262         to be consistent with non-literal case
11263
11264 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11265
11266         * src/SDCCast.c (isConformingBody): fixed bug #949967
11267         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
11268         convilong): fixed bug #952086
11269
11270 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11271
11272         * src/SDCCmem.c (allocVariables): fixed bug #955321
11273
11274 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11275
11276         * src/hc08/main.c (_hc08_genAssemblerEnd),
11277         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
11278         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
11279         completely eliminated the use of a temporary file
11280         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
11281         when more than one file linked
11282         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
11283
11284 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11285
11286         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
11287         which fixes bug #543481
11288         * support/regression/tests/bug-751703.c: fixed comments left from a
11289         cut and paste error
11290         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
11291         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
11292         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
11293         scopes
11294         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
11295         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
11296         are now changed to underscores in moduleName
11297
11298 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11299
11300         * as/mcs51/lkmem.c: better fix for bug #954173
11301
11302 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
11303         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11304
11305         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
11306         * device/include/c8051f000.h,
11307         * device/include/c8051f120.h,
11308         * device/include/c8051f300.h,
11309         * device/include/c8051f310.h,
11310         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
11311         PWM16) and detab'ed
11312
11313 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11314
11315         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
11316         and mailing lists, doc'ed --no-peep-comments, removed reference
11317         to knoppix (newest version has no LyX/LaTeX), other minor changes
11318         * src/SDCCglue.c (glue): save 2 bytes stack space with
11319         option --main-return. The ljmp could probably be avoided too
11320
11321 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11322
11323         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
11324
11325 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11326
11327         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
11328         * src/SDCCopt.c (isLocalWithoutDef),
11329         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
11330         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
11331         (credit to Maarten Brock for patch #949363, on which this is based)
11332         * support/regression/tests/bug-751703.c: some test cases of extern used
11333         within inner scopes.
11334
11335 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11336
11337         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
11338         SPEC_STRUCT
11339         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
11340         struct definitions
11341         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
11342         dwWriteLabel): fix to create valid debugger symbols even when
11343         the module name has non-alphanumeric symbols in it
11344         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
11345         when a variable's allocation has been optimized away
11346
11347
11348 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11349
11350         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
11351         * src/hc08/main.c,
11352         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
11353         * src/mcs51/main.c,
11354         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
11355         * src/ds390/main.c,
11356         * src/z80/gen.c (z80_emitDebuggerSymbol),
11357         * src/z80/main.c,
11358         * src/pic/gen.c (pic14_emitDebuggerSymbol),
11359         * src/pic/main.c,
11360         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
11361         * src/pic16/main.c,
11362         * src/avr/gen.c (avr_emitDebuggerSymbol),
11363         * src/avr/main.c,
11364         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
11365         * src/xa51/main.c,
11366         * src/SDCCdebug.c (emitDebuggerSymbol),
11367         * src/SDCCdebug.h,
11368         * src/port.h: added a debugger struct to the port struct. Added a
11369         callback for defining debugger symbols
11370
11371         * src/SDCCast.c (createLabel),
11372         * src/SDCC.y (labeled_statement): mark all compiler generated labels
11373         with isitmp = 1
11374         * src/SDCCicode.h,
11375         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
11376         iCode back to the ast for the function
11377
11378         * src/hc08/ralloc.c (hc08_assignRegisters),
11379         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
11380         unneeded fields from the regs struct.
11381         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
11382         pushReg() & pullReg() functions instead of emitcode()
11383
11384         * src/hc08/gen.c (genLabel, genhc08Code),
11385         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
11386
11387         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
11388         debugger hooks
11389
11390         * src/hc08/gen.c (genEndFunction, genhc08Code),
11391         * src/hc08/gen.h,
11392         * src/mcs51/gen.c (genEndFunction, gen51Code),
11393         * src/mcs51/gen.h,
11394         * src/ds390/gen.c (genEndFunction, gen390Code),
11395         * src/ds390/gen.h,
11396         * src/z80/gen.c (genEndFunction, genZ80Code),
11397         * src/z80/gen.h,
11398         * src/z80/z80.h,
11399         * src/pic/gen.c (genEndFunction, genpic14Code),
11400         * src/pic/gen.h,
11401         * src/pic16/gen.c (genEndFunction, genpic16Code),
11402         * src/pic16/gen.h,
11403         * src/avr/gen.c (genEndFunction, genAVRCode),
11404         * src/avr/gen.h,
11405         * src/xa51/gen.c (genEndFunction, genXA51Code),
11406         * src/xa51/gen.h,
11407         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
11408         specific code to cdbFile.c and out of the backend code generators
11409
11410         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
11411         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
11412         starting address is now 0
11413
11414         * as/hc08/asm.h,
11415         * as/hc08/m08pst.c,
11416         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
11417         assembler directive for DWARF support
11418         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
11419
11420         * src/src.dsp,
11421         * src/Makefile.in,
11422         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
11423
11424 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11425
11426         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
11427         and inappropriate peephole optimization in jump tables
11428
11429 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11430
11431         * as/hc08/m08pst.c,
11432         * src/SDCCglue.c: sdccopt works for the hc08 port now
11433
11434 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
11435
11436         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
11437
11438 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11439
11440         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
11441
11442 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11443
11444         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
11445         rules
11446         * src/SDCCmain.c,
11447         * src/SDCCglobl.h,
11448         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
11449         comments from the peephole optimizer replacement rules
11450         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
11451         symbols
11452         * src/SDCCcse.c (updateSpillLocation),
11453         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
11454         equivalents
11455         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
11456         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
11457         objects far pointers
11458
11459 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11460
11461         * src/SDCCsymt.h: a missing part of my last change
11462         * src/pic/ralloc.c (regTypeNum),
11463         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
11464
11465 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11466
11467         * src/SDCCicode.h,
11468         * src/SDCCicode.c (aggrToPtrDclType),
11469         * src/SDCCptropt.h,
11470         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
11471         ptrPseudoSymConvert),
11472         * src/pic/ralloc.c (regTypeNum),
11473         * src/pic16/ralloc.c (regTypeNum),
11474         * src/hc08/ralloc.c (regTypeNum),
11475         * src/ds390/ralloc.c (regTypeNum),
11476         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
11477         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
11478
11479 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11480
11481         * link/z80/lkmain.c (afile),
11482         * as/hc08/lkmain.c (afile),
11483         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
11484         prevent a pointer problem when a filename has no directory and
11485         no extension specified.
11486
11487 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11488
11489         * link/z80/lkmain.c (afile): allow periods in directory names
11490         * link/z80/lkmain.c (afile),
11491         * as/mcs51/lkmain.c (afile),
11492         * as/hc08/lkmain.c (afile): allow linker script file to have an
11493         extension other than ".lnk"
11494         * link/z80/lklex.c (getfid),
11495         * link/z80/lkmain.c (parse),
11496         * as/mcs51/lklex.c (getfid),
11497         * as/mcs51/lkmain.c (parse),
11498         * as/hc08/lklex.c (getfid),
11499         * as/hc08/lkmain.c (parse): Support comments in the linker script
11500         file on lines by themselves and after filenames
11501
11502 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11503
11504         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
11505
11506 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11507
11508         * src/z80/peeph-z80.def: removed some peephole rules that don't
11509         work with multibyte arithmetic (fixed bug #937126)
11510         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
11511         to registers and not global variables
11512         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
11513         geniCodePreInc, geniCodePostDec, geniCodePreDec,
11514         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
11515         checking for assignments not internally generated (fixed bug #931895)
11516         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
11517         structure member (fixed bug #930072)
11518
11519 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11520
11521         * src/SDCCmain.c (linkEdit),
11522         * src/hc08/main.c (_hc08_parseOptions),
11523         * as/hc08/Makefile.in,
11524         * as/hc08/aslink.h,
11525         * as/hc08/asm.h,
11526         * as/hc08/m08pst.c,
11527         * as/hc08/lkrloc.c (relr, rele),
11528         * as/hc08/lkarea.c (lnkarea)
11529         * as/hc08/lkmain.c (afile, parse),
11530         * as/hc08/lkelf.c: support for ELF output
11531         * as/hc08/lks19.c (s19),
11532         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
11533
11534 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11535
11536         * as/mcs51/lkihx.c: Fixed bug #899105.
11537
11538 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11539
11540         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
11541         .dsp files from Unix to DOS.
11542
11543 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11544
11545         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
11546         function pointers; we have been compliant for several months now.
11547         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
11548         change that was accidently commented out
11549         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
11550         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
11551         bug #922319
11552
11553 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11554
11555         * src/hc08/gen.c: output of all of the internal debugging information
11556         is now controlled by the D() macro; it is disabled by default
11557
11558 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11559
11560         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
11561         harder to keep the same registers during a CAST iCode
11562         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
11563         long via int can be done in a single cast, if the signedness is
11564         correct.
11565         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
11566         putchar() in tinibios.c in ds390's library
11567
11568 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
11569
11570         * src/SDCCast.c (decorateType): fixed bug #898889,
11571         cast result of a literal complement too
11572         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
11573         fixed check for bitfields
11574
11575 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
11576
11577         * src/SDCCicode.c (geniCodeLogic): made it static,
11578         (geniCodeLogicAndOr): added in order to fix bug #905492,
11579         (ast2iCode): fixed bug #905492
11580         * support/regression/tests/bug-905492.c: added
11581         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
11582         (processParms): fixed bug #927659: don't copy parms, this will clear
11583         decorated flag
11584         * support/regression/tests/bug-927659.c: added
11585
11586 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
11587
11588         * src/SDCCast.c (addCast): don't cast float to char
11589         * device/lib/libsdcc.lib: added _memmove
11590
11591 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
11592
11593         * device/lib/large/Makefile: fixed parallel execution by
11594         replacing `make` by `$(MAKE)`
11595
11596 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11597
11598         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
11599         offsets (fixes bug #923936)
11600
11601 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
11602
11603         * device/lib/small/Makefile: fixed parallel execution by
11604         replacing `make` by `$(MAKE)`
11605
11606 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
11607
11608         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
11609
11610 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
11611
11612         * src/pic/gen.c (genCpl): multi-byte complements were not working.
11613         * src/regression/Makefile: Regression test was not running.
11614
11615 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
11616
11617         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
11618         complement if possible
11619         * src/SDCCval.c (valComplement),
11620         * src/SDCCicode.c (operandOperation): fixed complement of literal
11621         * support/regression/tests/onebyte.c (testComplement): added
11622
11623 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
11624
11625         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
11626         return an optimized tree; actually replace actParm with the new tree
11627         * src/SDCCast.h: added some parantheses to remove side effects
11628         * support/regression/tests/bug-920866.c
11629
11630 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
11631         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
11632         Bit operands were not being handled properly in the pic14 port.
11633         (now src/regression/add.c passes again).
11634
11635 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11636
11637         * src/SDCC.y (labeled_statement): case and default no longer require
11638         a following statement (RFE #893037)
11639
11640 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11641
11642         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
11643         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
11644         disabled (fixes bug #916294)
11645         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
11646         "mov a,acc"; patch provided by Lenny Story
11647         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
11648
11649 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11650
11651         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
11652         functions
11653         * src/ds390/gen.c (genFunction, genEndFunction),
11654         * src/ds390/ralloc.c (ds390_assignRegisters),
11655         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
11656         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
11657         pushed if there are parameters passed on the stack. Also, a cleaner
11658         way to decide if r0/r1 should be pushed/popped. (Together they fix
11659         bug #918693)
11660
11661 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11662
11663         * doc/sdccman.lyx,
11664         * device/lib/mcs51/crtpagesfr.asm,
11665         * device/lib/mcs51/crtxinit.asm,
11666         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
11667         to avoid confusion with Si Lab's SFRPAGE register.
11668
11669 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11670
11671         * src/SDCCglue.c (emitMaps): allow public sfr variables
11672         * src/SDCCglue.c (initialComments): include compiler build date
11673         with compiler version and put the timestamp of the generated
11674         assembly file on a serperate line to be less confusing.
11675         * src/port.h: added genInitStartup hook
11676         * src/avr/main.c,
11677         * src/ds390/main.c,
11678         * src/hc08/main.c,
11679         * src/pic/main.c,
11680         * src/pic16/main.c,
11681         * src/xa51/main.c,
11682         * src/z80/main.c: genInitStartup initialize as NULL (default to
11683         historical behaviour)
11684         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
11685         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
11686         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
11687         library instead of hard coding it into the compiler.
11688         * support/regression/ports/mcs51-stack-auto/spec.mk,
11689         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
11690         * device/lib/mcs51/Makefile,
11691         * device/lib/small/Makefile,
11692         * device/lib/large/Makefile,
11693         * device/lib/mcs51/crtpagesfr.asm,
11694         * device/lib/mcs51/crtstart.asm,
11695         * device/lib/mcs51/crtxclear.asm,
11696         * device/lib/mcs51/crtxinit.asm,
11697         * device/lib/mcs51/crtclear.asm,
11698         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
11699         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
11700         and into user configurable files.
11701         * device/lib/clean.mk: clean mcs51 directory too
11702         * support/regression/tests/longlit.c: added static to T1 declaration
11703         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
11704         accesses in the initialization code
11705
11706 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11707
11708         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
11709         OSCTRIMVAL as noted in bug #916008
11710
11711 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11712
11713         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
11714         in loops with multiple exits (reported as incorrect registers
11715         used by Martin Helmling in Sdcc-user list)
11716
11717 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11718
11719         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
11720         made ds390 register extensions look less like error messages
11721
11722 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11723
11724         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
11725         reported by Adam Wozniak in Sdcc-user list
11726
11727 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
11728
11729         * src/SDCCast.c (decorateType): fixed with bug and promotion in
11730         arithmetic optimizations, added debug output
11731
11732 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
11733
11734         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
11735         * sdcc.spec: updated and split sdcc into 3 rpms
11736         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
11737         needed for literals of LEFT_OP and '+'
11738         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
11739         introduced RESULT_TYPE_NOPROM
11740         (geniCodeMultiply): fixed logic for decision if mul is optimized to
11741         left shift
11742         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
11743         limited promotion to int only for '*'
11744         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
11745
11746 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
11747
11748         * src/pic16/gen.c (genSkip),
11749         (genc16bit2lit), (gencjneshort): commented out
11750         (is_LitOp): new helper function, checks operand type
11751         (genCmpEq): rewritten
11752
11753 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
11754
11755         * support/regression/tests/bug-908454.c: added
11756
11757 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
11758
11759         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
11760         * src/SDCCicode.c (usualBinaryConversions): op needs int type
11761         (geniCodeCast): cosmetic, don't preserve bit storage class
11762         (geniCodeLeftShift): added promotion
11763         (geniCodeLogic): fixed regression
11764         * src/SDCCsymt.c (computeTypeOr): accept bits too
11765         (compareType): 2nd part of fix for bug #908454, needed for bitfields
11766
11767 2004-03-07  Borut Razem <borut.razem AT siol.net>
11768
11769         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
11770
11771 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
11772
11773         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
11774         version of pic16_genPackRegisters which does not check if ic is a
11775         CAST operator,
11776         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
11777         function cause string1.c regression test fails
11778
11779 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
11780
11781         * sim/ucsim/configure.in,
11782         * sim/ucsim/configure,
11783         * sim/ucsim/doc/Makefile.in: use docdir
11784         * src/SDCC.y: fixed sbit atrributes
11785         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
11786         * src/SDCCast.c (decorateType): |^& need special promotion handling
11787         * src/SDCCast.h,
11788         * src/SDCCsymt.h: moved definition of RESULT_TYPE
11789         * src/SDCCsymt.h (computeType),
11790         * src/SDCCicode.c: computeType() needs op
11791         * src/SDCCsymt.c (checkTypeSanity),
11792         * doc/sddman.lyx: "plain" bitfields are unsigned
11793         * src/SDCCsymt.c (computeTypeOr): added
11794         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
11795         |^& ops
11796         * src/SDCCval.c (val*): computeType() needs op
11797         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
11798         * support/regression/tests/onebyte.c: added tests for |^&
11799
11800 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
11801
11802         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
11803         for writing icode into asm output.
11804
11805 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
11806
11807         * src/pic16/device.c: added some debug lines enabled
11808         with macro DEBUG_CHECK,
11809         * src/pic16/genarith.c: more debug in genPlus,
11810         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
11811         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
11812         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
11813         * (aopForSym): onStack symbols are re-placed in data memspace,
11814         and onStack flag is cleared,
11815         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
11816         copy temporary pcodeop,
11817         * (genPcall): added warning for not updating PCLATU,
11818         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
11819         always true for pic16 port,
11820         * (genMultOneWord): NEW, supports integer multiplication,
11821         * (genMult): modified to call genMultOneWord,
11822         * (ifxForOp): added warning when return NULL,
11823         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
11824         flag is set before call to operandFromSymbol for implicit
11825         added structures,
11826         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
11827         options.intlong_rent are set by default,
11828         * (_hasNativeMulFor): modified to allow port generation of integer
11829         multiplication,
11830         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
11831         set regtype to REG_SFR for all registers, restricting seting the
11832         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
11833
11834 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11835
11836         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
11837         more than 500 times in the regression tests
11838
11839 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11840
11841         * support/Util/SDCCerr.h,
11842         * support/Util/SDCCerr.c,
11843         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
11844         enumerator_list),
11845         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
11846         for symbol conflicts.
11847         * support/valdiags/tests/enum.c,
11848         * support/valdiags/tests/tentdecl.c,
11849         * support/valdiags/tests/struct.c: expect possible error messages
11850         referring to original symbol definitions.
11851         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
11852         * src/SDCCsymt.h,
11853         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
11854
11855 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
11856
11857         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
11858
11859 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
11860
11861         * src/pic16/ralloc.c (newReg): fixed bug #908929
11862
11863 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11864
11865         * src/ds390/gen.c: added missing #include "main.h"
11866
11867 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
11868
11869         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
11870         checking if symbol is already in set,
11871         * src/pic16/device.h: prototype for checkAddSym,
11872         * src/pic16/gen.c: (_G): added entry interruptvector,
11873         * (assignResultValue): removed some commented out lines,
11874         * (genFunction): check for ISR via sym->type, absolute section for
11875         interrupt code is created via a new pBlock, the goto instruction is
11876         placed now correctly at the interrupt vector position, changed all
11877         references from ivec to _G.interruptvector,
11878         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
11879         is the interrupt is a high priority one, same for return from ISR,
11880         * src/pic16/glue.c: changed all calls of addSetHead for publics and
11881         externs to calls of checkAddSym,
11882         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
11883         pic16_pcode_verbose flag is set,
11884         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
11885         * src/pic16/pcoderegs.c: message about how many registers are saved
11886         will only be emitted if pic16_pcode_verbose flag is set,
11887
11888 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11889
11890         * src/ds390/ralloc.h,
11891         * src/ds390/ralloc.c (ds390_regWithIdx),
11892         * src/ds390/gen.c (emitcode),
11893         * src/ds390/main.h,
11894         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
11895         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
11896         ds390operandCompare, getRegsRead, getRegsWritten,
11897         initializeAsmLineNode): customized instruction size calculation for
11898         ds390, started basis for some register optimizations
11899         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
11900         corresponding assembly output
11901         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
11902         missing push/pop of r0/r1. Optimized push/pops
11903
11904 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11905
11906         * src/mcs51/main.c (instructionSize): fixed ACALL size
11907         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
11908
11909 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
11910
11911         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
11912         the sorting of rlist with NULL elements
11913         * (print_idataType, print_idata): NEW to create idata sections
11914         * src/pic16/device.h: idataSymSet new variable
11915         * src/pic16/gen.c (genFunction): fixed some bugs in string
11916         comparing, improved the absolute section creation for ISRs,
11917         added FSR0L/FSR0H in registers that are saved in an ISR,
11918         * (genInline): fixed the processing of inline snippets,
11919         now they undergo no process by the peephole optimizer
11920         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
11921         are placed in idataSymSet,
11922         * (pic16emitStaticSeg): extern symbols are added in externs,
11923         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
11924         switching when aboslute variables are placed in access bank memory
11925         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
11926         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
11927         commented out with #if,
11928         * (pic16_packRegisters): reintroduce the check for CAST because some
11929         symbols are not correctly handled,
11930         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
11931         pCodeInstruction instead of pCode,
11932         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
11933         pCodeAsmDir definition,
11934         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
11935         directive, then the argument directive is emitted without the leading
11936         tab, hack for inline labels which must be in the first column,
11937         * (compareLabel,pic16_findNextInstruction),
11938         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
11939         * (insertBankSwitch): modified for the new pCodeAsmDir,
11940
11941 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11942         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
11943
11944         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
11945         instance,
11946         * (pushSide): commented out with #if,
11947         * (assignResultValue): fixed some typos in saving
11948         registers,
11949         * (genPcall): FIXED and sync'ed with genCall,
11950         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
11951         * (genNearPointerGet): fixed to handle some more cases,
11952         implementation scheme via table reads,
11953         * (genConstPointerGet): modified to access code memory correct,
11954         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
11955         and improved to handle some cases
11956         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
11957         instead of "RETLW" for init data
11958         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
11959         not IN_DIRSPACE, work around to reduce bank switching when aboslute
11960         variables are placed in access bank memory (<0x80 and >=0xf80),
11961         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
11962         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
11963         TBLWT_POSTDEC,TBLWT_PREINC
11964         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
11965         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
11966         directives
11967         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
11968         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
11969         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
11970         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
11971
11972 2004-02-29  Borut Razem <borut.razem AT siol.net>
11973
11974         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
11975         support/Util/findme.h, support/Util/system.h: enhance binary relative
11976         search for lib and include by using findProgramPath()
11977
11978 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11979
11980         * src/SDCCpeeph.h,
11981         * src/SDCCpeeph.c (pcDistance),
11982         * src/port.h,
11983         * src/mcs51/ralloc.h,
11984         * src/mcs51/ralloc.c (mcs51_regWithIdx),
11985         * src/mcs51/main.h,
11986         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
11987         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
11988         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
11989         size calculation port specific, started basis for some register
11990         optimizations
11991         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
11992         missing push/pop of r0/r1. Optimized push/pops
11993         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
11994         * device/lib/_modsint.c (_modsint),
11995         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
11996         and stack version so regression tests pass
11997
11998 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
11999
12000         * src/Makefile.in (dep): include SLIBOBJS in dependency check
12001         * src/SDCCast.c (decorateType): catch another small optimization
12002         with '?' operator
12003         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
12004         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
12005         modified to finally use computeType() all over SDCC,
12006         see Feature Request #877103
12007         * src/SDCCval.h: cosmetic
12008         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
12009         valCompare(); regression tested in muldiv.c
12010         * support/regression/tests/muldiv.c (testMod): mod sign follows
12011         dividend only
12012
12013 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
12014
12015         * src/SDCCast.c (decorateType): fixed bug #902362
12016         * doc/INSTALL.txt: fixed install instructions for win32
12017
12018 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
12019
12020         * device/include/Makefile.in (install): fixed by replacing spaces
12021         by tabs
12022         * doc/README.txt,
12023         * doc/INSTALL.txt: updated for release
12024         * doc/sdccman.lyx: added warning for --xstack being buggy
12025
12026 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
12027
12028         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
12029         to eliminate build warnings.
12030         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
12031
12032 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
12033            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12034
12035         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
12036         removed -penable-stack, added comment for stack pragma, added
12037         warning for not initializing the stack/frame registers, removed
12038         comment at interrupts section
12039
12040         Stack is made permanent, there is no ability to disable stack usage.
12041         * src/pic16/device.h,
12042         * src/pic16/device.c: removed all references to USE_STACK macro,
12043         * src/pic16/device.c (pic16_dump_section): when no elements in
12044         rlist, free rlist before return,
12045         * (pic16_dump_int_registers): NEW, internal registers are a new set
12046         of general purpose registers reused by each function,
12047         * (checkAddReg): returns 1 if registers is added to set,
12048         * (pic16_groupRegistersInSection): when a registers is of type
12049         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
12050         * src/pic16/device.h: memRange and Assigned Memory are deleted,
12051         SRCASECMP macro is moved here from device.c
12052         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
12053         PO_PCLATU, PO_PRODL, PO_PRODH,
12054         * (pic16_pCodeOpType, genMinus,
12055         changed compares to "a" register, with AOP_ACC,
12056         * (pic16_genPlus): fixed some bugs and indented properly,
12057         * (pic16_addSign): changed size to size+offset in the MOVWF
12058         instruction,
12059         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
12060         multiply 8-bit operand by literal, result is 8-bit,
12061         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
12062         multiply 2 8-bit operand, result is 8-bit,
12063         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
12064         genUMult8X*_16,
12065         * src/pic16/gen.c: changed accUse to contain WREG only,
12066         * (pic16_emitcomment): renamed to pic16_emitpcomment,
12067         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
12068         true, do not use immediate addressing any more unless sym is a
12069         pointer in codespace,
12070         * (aopForRemat): do not use immediate addressing when symbol not in
12071         codespace and when symbol's address is requested,
12072         * (aopOp): for-loop in if(sym->accUse) is modified for the new
12073         accUse size (= 1),
12074         * (aopGet): added case for AOP_ACC and don't return "accumulator
12075         bug" but WREG instead,
12076         * (popGetTempReg): pushes contents of temporary register in stack,
12077         * (popReleaseTempReg): pops contents of temporary register from
12078         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
12079         * (pic16_popGet): separated case AOP_ACC to return register WREG
12080         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
12081         or PO_IMMEDIATE and initializes their instance/offset appropriately,
12082         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
12083         the use of immediate pointers to certain cases only.
12084
12085         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
12086         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
12087         * (assignResultValue, genCall, genRet): modified to use the new
12088         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
12089         genPcall is still broken,
12090         * (genFunction): added code to create 'A' type pBlocks when
12091         interrupt functions are generated, code not extensively tested yet,
12092         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
12093         * (genEndFunction): modified so ISRs pop stored registers from stack,
12094         * (genMultOneByte): cleanup,
12095         * (AccRsh): added flag andmask, to and result with appropriate mask,
12096         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
12097         * (genDataPointerGet): fixed and reenabled its use,
12098         * (genNearDataPointerGet): bugs fixed,
12099         * (genDataPointerSet): bugs fixed,
12100         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
12101         pic16_DumpSymbol, pic16_DumpOp,
12102         * src/pic16/genutils.h: function prototypes for the above functions,
12103         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
12104         pointers,
12105         * (pic16emitRegularMap): many many many improvements, but needs a
12106         major cleanup,
12107         * src/pic16/main.c: enable_stack in pic16_options is removed,
12108         * (_pic16_parseOptions): removed command line options -penable-stack,
12109         * (_process_pragma): emit stack symbol only when stack pragma is
12110         processed,
12111         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
12112         redirected to FSR0L/FSR0H pair,
12113         * (pic16_get_op, pic16_get_op2): modifications and improvements,
12114         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
12115         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
12116         for immediates,
12117         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
12118         * (dumpPicOptype): NEW,
12119         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
12120         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
12121         with movff instruction,
12122         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
12123         added pic16_int_regs, some packRegsFor* functions are commented out,
12124         because produce errors,
12125         * src/pic16/NOTES: minor modifications
12126
12127 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12128
12129         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
12130         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
12131         --pack-iram.
12132         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
12133         * as/mcs51/lkaomf51.c: fixed bug #895763
12134
12135 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
12136
12137         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
12138
12139 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12140
12141         * doc/sdccman.lyx: added details about the HC08 storage classes and
12142         interrupts, fixed the register usage info for z80 & gbz80
12143
12144 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
12145
12146         * doc/sdccman.lyx: added more pic16 port documentation
12147         * device/include/pic16/: added header pic18fregs.h
12148
12149 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
12150
12151         * doc/sdccman.lyx: added Vangelis' contribution
12152
12153 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12154
12155         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
12156         extend to the next CALL or PCALL, not just to the next CALL.
12157
12158 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
12159
12160         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
12161
12162 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12163
12164         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
12165         bug #895752 and a better fix for bug #716790
12166
12167 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12168
12169         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
12170
12171 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12172
12173         * doc/sdccman.lyx: minor changes, minor changed
12174
12175 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
12176
12177         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
12178         which can't handle SDCC_NEWONEBYTEOPS,
12179         (geniCodeMultiply): removed conversion from mult to shift for pic14
12180         and pic16
12181
12182 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12183
12184         * src/hc08/gen.h,
12185         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
12186         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
12187         thus fixing bug #895406
12188
12189 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
12190
12191         * device/lib/_modsint.c,
12192         * device/lib/_modslong.c: sign follows divisor only
12193         * src/hc08/gen.c (genMultOneByte): if result size is 1,
12194         signs or signedness can be ignored
12195         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
12196         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
12197         added optimization for IFX,
12198         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
12199         arguments;
12200         reenabled optimization for IFX, which was removed on 2004-01-11
12201         * src/SDCCast.h: added return type IFX
12202         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
12203         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
12204         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
12205         SDCC_OLDONEBYTEOPS selects the old behaviour
12206         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
12207         changed again and commented promotion rule
12208         * src/SDCCval.c (valDiv): promotion no longer necessary
12209         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
12210         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
12211         rewritten
12212         * support/regression/tests/onebyte.c: added
12213
12214 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
12215
12216         * gen.c (genInline): reverted to old code for assemnling inline
12217         code because of bug reported James Chadd
12218
12219 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
12220
12221         * ralloc.h: missing declarations from previous patch,
12222         seems that patch for ralloc.h was never applied, fixed
12223
12224 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12225            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
12226
12227         * pcode.c,
12228         * pcode.h,
12229         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
12230         indirect addressing. Marked FSR0 as deprecated
12231         * gen.c (pointerCode): commented out, not needed now
12232         (pic16_popGet2p): new MOVFF helper function
12233         (genGenPointerGet),
12234         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
12235         (shiftRLong): removed duplicate debugging info
12236
12237 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12238
12239         * src/ds390/gen.c (genNearPointerGet),
12240         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
12241         optimization with bits, but not bitfields.
12242         * src/ds390/ralloc.c (packRegisters),
12243         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
12244
12245 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
12246
12247         * src/SDCCcse.c (algebraicOpts): copy operands before modification
12248
12249 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12250
12251         * src/SDCCsymt.h,
12252         * src/SDCCicode.c (operandFromSymbol),
12253         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
12254         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
12255         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
12256         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
12257         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
12258         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
12259         bug #892038
12260         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
12261         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
12262         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
12263         * src/SDCCsymt.c (newSymbol),
12264         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
12265         enumerator_list),
12266         * src/SDCCval.h,
12267         * src/SDCCval.c (newiList): fixed bug #885705
12268
12269 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12270
12271         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
12272         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
12273
12274 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12275
12276         * device/include/c8051f120.h,
12277         * device/include/c8051f300.h,
12278         * device/include/c8051f310.h: added/updated header files for Silicon
12279         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
12280         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
12281         in new section Submitting patches
12282
12283 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12284
12285         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
12286         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12287         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12288         genGenPointerSet),
12289         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
12290         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12291         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12292         genGenPointerSet),
12293         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
12294         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12295         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12296         genGenPointerSet),
12297         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
12298         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12299         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12300         genGenPointerSet): fixed bug #892400
12301         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
12302         to eliminate build warnings.
12303         * src/SDCCast.c (processParms),
12304         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
12305         fixed bug 751859
12306         * support/valdiag/valdiag.py: added GCC to the list of defines active
12307         when compiling with gcc
12308
12309 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12310
12311         * support/Util/SDCCerr.h,
12312         * support/Util/SDCCerr.c,
12313         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
12314         with an incomplete type (fixed bug #883734)
12315         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
12316
12317 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12318
12319         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
12320
12321 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12322
12323         * src/SDCCast.c (decorateType),
12324         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
12325         function pointer implementation
12326         * support/regression/tests/funptrs.c: added tests to verify both forms
12327         of function pointers work correctly. Added tests to verify parameters
12328         are passed in the correct order.
12329
12330 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
12331
12332         * device.c (regCompare): registers are sorted by ascending
12333         address and increasing size,
12334         * main.c (_pic16_finaliseOptions): removed the declaration
12335         of compiler macro MCU. Now a macro of the format pic18fxxxx
12336         will be defined from the command line
12337
12338 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12339             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
12340
12341         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
12342         PCOP_RLCF was overwritten!
12343         * gen.c (genSkip): commented out calls to pic16_emitcode,
12344         * (genCmpEQ): fixed "long" compares, only high word did get compared,
12345         * (genlshTwo),
12346         * (genRRC): added debugging info,
12347         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
12348         overwritten while shifting,
12349         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
12350         overwritten while shifting,
12351         * (AccLsh),
12352         * (AccRsh),
12353         * (shiftLLeftOrResult),
12354         * (shiftRLeftOrResult),
12355         * (shiftRLong),
12356         * (shiftLLong): Implemented with pic16_emitpcode
12357         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
12358         * (genLeftShift): Fixed bug, operand for shift by variable always
12359         was "and"ed with 0x0f,
12360         * (genLeftShiftLiteral),
12361         * (genrshTwo),
12362         * (genRightShiftLiteral): added debugging info,
12363         * (genrshFour): added comment,
12364         * (genRightShift): determined signedness from operand "left"
12365         instead of "result"
12366
12367 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12368
12369         * src/SDCCicode.c (geniCodeParms),
12370         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
12371         function pointers, fixed function pointer bugs #861242 and #861896
12372
12373 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12374
12375         * device/include/c8051f000.h,
12376         * device/include/c8051f120.h,
12377         * device/include/c8051f300.h: added header files for Silicon
12378         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
12379
12380 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
12381
12382         * src/SDCCast.c (processParams): added new type flow and restructured
12383         (gatherAutoInit): added new type flow
12384         (addCast): cosmetic changes
12385         (getLeftResultType): added new type flow for array indices, patch
12386         provided by Stas, see FR #877103
12387         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
12388         array index patch by Stas
12389         * src/SDCCast.h: added prototype getResultTypeFromType()
12390         * src/SDCCval.h,
12391         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
12392         * src/pic/glue.c (pic14emitStaticSeg),
12393         * src/pic16/glue.c (pic16emitStaticSeg),
12394         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
12395         for initialization of symbols
12396         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
12397         * support/Util/SDCCerr.h:
12398         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
12399         * .version: bumped version number to 2.3.8
12400         * device/include/Makefile.in (install),
12401         * doc/Makefile (install): changed to 'rm `find ...`' construct to
12402         avoid warnings
12403
12404 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
12405
12406         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
12407         Slade Rich fixed an optimization bug
12408         * src/pic/pcodepeep.c,
12409         * src/pic/pcoderegs.c
12410         * doc/Makefile (install): added test for directory
12411
12412 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12413
12414         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
12415         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
12416         * src/pic/ralloc.c (getRegPtr, getRegGpr),
12417         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
12418         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
12419         * as/mcs51/asexpr.c (term),
12420         * as/hc08/asexpr.c (term): fixed bug #887146
12421
12422 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12423
12424         * src/z80/gen.c (genMult): handle single byte result product
12425         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
12426         DUMMY_READ_VOLATILE (fixed bug #886367)
12427
12428 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
12429
12430         * support/regression/tests/libmullong.c: fixed logic, on little endian
12431         hosts we ended without a mullong_wrapper()
12432
12433 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12434
12435         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
12436         virus/worm forged address usage.
12437
12438 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
12439
12440         Fixed promotion, it should be done on AST level:
12441         * src/SDCCast.c (addCast): added promotion to int
12442         (decorateType): updated call to upCast()
12443         * src/SDCCicode.c (geniCodeLeftShift): removed call to
12444         usualUnaryConversions()
12445
12446 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
12447
12448         * support/regression/tests/literalop.c (mulWrapper): Added a
12449         wrapper to remove integer overflow warnings.
12450
12451         * support/regression/tests/float_trans.c: Made work on host.
12452
12453         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
12454         location of sz80.
12455
12456         * support/regression/generate-cases.py (main): Changed from inline
12457         to a main method.
12458
12459         * doc/Makefile (install): Changed to depth first to get rid of
12460         missing directory install warning.
12461
12462         * as/Makefile (install-doc): Made work on Mac.
12463
12464 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
12465
12466         * src/SDCCast.c: added an additional type flow in decorateType() of
12467         opposite direction, see feature request #860006; it's enabled at runtime
12468         by setting the environment variable SDCC_NEWTYPEFLOW
12469         * src/SDCCast.h: changed prototype of decorateType()
12470         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
12471         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
12472         'char' to 'int' can be omitted, if both operands are 'unsigned char';
12473         see feature request #877103
12474         * src/SDCCval.c: updated call of decorateType()
12475         (valBitwise): fixed bug #882876
12476         (valMinus): added promotion
12477         (valLogicAndOr): result is unsigned
12478         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
12479         * src/SDCCsymt.c (computeType),
12480         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
12481         must not cause an unsigned operation
12482         * src/pic/glue (pic14emitRegularMap),
12483         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
12484
12485 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
12486
12487         * src/pic/pcode.c (PCodeID): commented out left over debug code
12488
12489 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
12490
12491         * support/valdiag/tests/overflow.c: added shift tests
12492         * src/pic/device.c,
12493         * src/pic/gen.c,
12494         * src/pic/gen.h,
12495         * src/pic/glue.c,
12496         * src/pic/main.c,
12497         * src/pic/pcode.c,
12498         * src/pic/pcode.h,
12499         * src/pic/pcodepeep.c,
12500         * src/pic/pcoderegs.c,
12501         * src/pic/ralloc.c,
12502         * src/pic/ralloc.h: applied patch from Slade Rich;
12503         added support for multiple code pages and multiple RAM banks on the
12504         PIC 14 port. The ASM files now no longer simply assume all the
12505         code / RAM are in the same page / bank. This means the linker can
12506         safely allocate code/RAM of separate ASM files to different pages/banks.
12507         * doc/sdccman.lyx: added Slade's tips
12508         * src/mcs51/peeph.def: fixed bug #880768
12509
12510 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12511
12512         * src/hc08/ralloc.c (rematStr): fixed bug #879282
12513         * src/SDCCast.c (decorateType): fixed bug #880197
12514
12515 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
12516
12517         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
12518         getopt.h.
12519
12520         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
12521         strtof is not part of C89 and isn't included with Mac OS X.
12522
12523 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12524
12525         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
12526         shiftL2Left2Result): fixed bug #879326
12527         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
12528         (genMultOneByte): fixed bug in signed vs unsigned multiplication
12529         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
12530         address fetch for clr instruction
12531         * device/lib/hc08/_mulint.c: created optimized assembly version
12532         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
12533
12534 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
12535
12536         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
12537         proposed in FR #877103
12538
12539 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
12540
12541         * src/SDCCval.c (cheapestVal): added missing checks
12542         * src/SDCCicode.c (usualBinaryConversions): fixed condition
12543         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
12544
12545 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
12546
12547         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
12548         equal operands
12549
12550 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
12551
12552         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
12553         loaded with the linker search paths (-L arguments) and the libraries
12554         to be linked with the current source (-l arguments). Changes
12555         currently will affect only the pic16 port.
12556         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
12557         include path the port specific paths and port specific libraries,
12558         * gplink command now contains the $3 argument,
12559         * src/pic16/device.h,
12560         * src/pic16/device.c,: structure PIC_device is made public and
12561         renamed to PIC16_device, the same for variable Pics which is renamed
12562         to Pics16. Updated all references to them.
12563         * src/pic16/glue.c (pic16glue): corrected bug with code
12564         initialization which bypassed the variable initializations block.
12565
12566         * device/lib/pic16/Makefile.rules: removed --penable-stack from
12567         COMPILE_FLAGS and added the --nostdinc option
12568
12569 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12570
12571         * device/include/mc68hc908jb8.h: Register defs for another member
12572         of the hc08 family. Contributed by Bjorn Bringert - thanks!
12573
12574 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
12575
12576         Documenting changes from previous commits.
12577         * configure.in (version 1.56),
12578         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
12579         when generating output files to configure the pic16 library,
12580         but now I've commented it out, since gputils aren't installed in the
12581         SF compile farm, so library won't compile
12582
12583         * device/lib/Makefile.in (version 1.56): initially I've added in
12584         target 'all' the prerequestive 'model-pic16' so it compiled the
12585         pic16 library, but now I've commented it out for the same reasons
12586         above,
12587         * added targets 'model-pic16' and 'objects-pic16' to compile the
12588         library
12589         * added target 'port-specific-objects-pic16' to handle the
12590         generated libraries and copy them into the build/ directory
12591         * added target 'clean-intermediate-pic16' to clean intermediate
12592         files into pic16 directory
12593         * in target 'installdirs' added line to create directory pic16 in
12594         the installation path
12595
12596         * device/include/Makefile.in (version 1.11): in target 'install'
12597         added lines to copy all header files to installation path,
12598         * in target 'installdirs' added line create directory for pic16
12599         headers in the installation path
12600
12601 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
12602
12603         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
12604          a function call
12605
12606 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
12607
12608         * configure,
12609         * device/lib/configure.in,
12610         * device/lib/configure: fixed for autoconf 2.57
12611
12612 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12613
12614         * src/z80/main.c (_parseOptions): fixed the portmode= command line
12615         option so that it actually works. Made it specific to the z80, since
12616         the gbz80 doesn't have these kinds of I/O ports.
12617
12618 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12619
12620         * device/include/z180.h,
12621         * device/lib/_memcpy.c,
12622         * device/lib/_memmove.c,
12623         * device/lib/_mulint.c,
12624         * device/lib/ser_ir.c,
12625         * device/lib/ser_ir_cts_rts.c,
12626         * device/lib/_strcmp.c,
12627         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
12628         * src/z80/main.c (_process_pragma): add support for pragmas bank and
12629         portmode; added deprecation warning for bank= and protmode= forms.
12630         Also, guard against buffer overflow.
12631         * src/z80/gen.c (aopGet): generate better code for sfr banked read
12632
12633 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12634
12635         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
12636         changed interrupt vector table generation to only emit declared vectors.
12637         * device/include/Makefile.in: added missing backslash
12638         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
12639
12640 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
12641
12642         Mainly changes to support compilation of the device libraries
12643         * src/pic16/device.c: stack is allocated via symbol and not
12644         via literal number. The symbol is placed in the corresponding
12645         position of the data ram
12646         * (pic16_dump_section): relocatable and absolute uninitialized
12647         data are now emitted in sorted order to reduce section naming,
12648         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
12649         weren't marked as being in the access bank,
12650
12651 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
12652
12653         Added portion of GNU PIC Library under the directory
12654         device/include/pic16 and device/lib/pic16. These files
12655         contain the declarations of SFRs for the PIC18Fxx2 devices.
12656         The directory is initialized via configure from toplevel.
12657
12658 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
12659
12660         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
12661         the spilllocations to be compared correctly
12662
12663 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
12664
12665         * src/SDCCast.c (decorateType): fixed bug introduced today
12666
12667 2004-01-12  Borut Razem <borut.razem AT siol.net>
12668
12669         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
12670         doc/sdccman.lyx: upper case pragmas are deprecated
12671
12672 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
12673
12674         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
12675         in simpler and even better code
12676
12677 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
12678
12679         * src/SDCCicode.c (operandOperation): fixed bug #874819
12680         * src/SDCCast.c (decorateType): fixed
12681         char foo (unsigned long ul) { return ul > 0; }
12682
12683 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12684
12685         * doc/sdccman.lyx: Moved and added some sections, small changes
12686         all over. Telling LaTeX to be less strict with word spacing
12687         to better keep the right margin. Changed some notes about
12688         maintainance of the ports in section 3.2.1 - is it OK like this?
12689
12690 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
12691
12692         SDCC source changes:
12693         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
12694         convilong): modified to inform the pic16 port that builtin functions
12695         are external
12696
12697         PIC16 PORT specific changes:
12698         * src/pic16/device.c pic16_dump_equates() added,
12699         processor registers declared internally by the port are emitted in
12700         the translation as equates,
12701         * src/pic16/gen.c: inline code is passed unprocessed to the
12702         translation,
12703         * (pic16_popGetLit2): fnuction modified to take second operand as
12704         pCodeOp pointer and not as literal,
12705         * (popRegFromIdx): prefixed with pic16_,
12706         * (pic16_popCombine2): modified to receive already allocated pCode
12707         operands,
12708         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
12709         * (genFunction): initializes local stack frame and pushes on stack
12710         all the registers used by this function,
12711         * (genEndFunction): restores all registers from stack and restores
12712         stack frame,
12713         * src/pic16/glue.c (pic16emitRegularMap): various changes and
12714         improvements,
12715         * (pic16glue): changed the program startup sequence,
12716         * added new dbName code 'A' for functions placed in absolute section
12717         * src/pic16/main.c: added function attribute _naked,
12718         * added pragma 'code' to place a fnuction at an absolute address,
12719         * added command line arguments --debug-ralloc and --pcode-verbose,
12720         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
12721         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
12722         * (pic16_newpCodeOpLit2): modified to take the second operand as
12723         pCodeOp pointer,
12724         * (pic16_printpBlock): modified to emit each function in a separate
12725         section,
12726         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
12727         UPPER for immediate operands,
12728         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
12729         instruction,
12730         * src/pic16/peeph.def: all peepholes with movff are commented out,
12731         because there is a problem in the pcode peep optimizer,
12732         * src/pic16/ralloc.c: the register allocator can now reuse local
12733         function symbols for another function. This saves register usage.
12734         * src/pic16/ralloc.h: added flag isLocal in structure regs,
12735
12736         Added file src/pic16/NOTES with information about program writing on
12737         the current port version.
12738
12739 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12740
12741         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
12742         and peephole 252 (array access)
12743
12744 2004-01-09  Borut Razem <borut.razem AT siol.net>
12745
12746         * src/SDCCmain.c : fixed #872250: -l command line defined library
12747           files are scanned before standard library files
12748
12749 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12750
12751         * src/SDCCast.c (decorateType): fixed bug #874046
12752
12753 2004-01-09  Borut Razem <borut.razem AT siol.net>
12754
12755         * support/scripts/sdcc.nsi: remove previous installation
12756
12757 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12758
12759         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
12760         bytes for last interrupt vector (mcs51)
12761         * sdcc.spec: fixed typo
12762
12763 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12764
12765         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
12766         gen51Code): more efficient parameter receive for --model-large
12767         ("bug" #845294)
12768
12769 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12770
12771         * src/ds390/main.c,
12772         * src/z80/main.c: added missed needLinkerScript flags (more than
12773         one port structure defined in these file)
12774         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
12775         bug #795325
12776
12777 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
12778
12779         * src/SDCCmain.c: removed various references to DEFAULT_PORT
12780         * src/port.h: added flag needLinkerScript in port->linker
12781         structure to inform whether to create a .lnk file or not,
12782         * src/avr/main.c,
12783         * src/ds390/main.c,
12784         * src/hc08/main.c,
12785         * src/mcs51/main.c,
12786         * src/pic/main.c,
12787         * src/pic16/main.c,
12788         * src/xa51/main.c,
12789         * src/z80/main.c: changed appropriately to configure
12790         needLinkerScript flag
12791         * src/pic/gen.c,
12792         * src/pic16/gen.c (genAddrOf): fixed bug #863624
12793         * src/pic/glue.c: added variable udata_section_name to
12794         override default uninitialized data segment definition for
12795         devices only with SHAREBANK memory (reported from Erik Epetrich)
12796         * (pic14emitOverlay): modified to emit a commented overlay segment
12797         directive when no overlay data exist
12798         * (picglue): modified to emit uninitialized data segment
12799         according to udata_section_name
12800         * src/pic/main.c (_pic14_parseOptions): added command line
12801         options --udata-section-name=[name] to override default
12802         udata definition name
12803         * modified _linkCmd and _asmCmd to include compiler passed
12804         arguments via -W option
12805         * src/pic16/main.c: added $l in _asmCmd, changed extension for
12806         object file from '.rel' to '.o' in port->linker structure,
12807         changed size of fptr from 2 to 3 in port structure
12808
12809 2004-01-07  Borut Razem <borut.razem AT siol.net>
12810
12811         * support/scripts/sdcc.nsi: update PATH
12812         * support/scripts/sdcc.ico: craeted
12813
12814 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
12815
12816         * device/include/Makefile.in: fix install
12817         * doc/Makefile: fix install
12818
12819 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12820
12821         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
12822         in bug #860505
12823         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
12824         how the function variable allocation summary is displayed; also
12825         include information about variables allocated to the overlay
12826         segment
12827
12828 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12829
12830         * as/mcs51/lkmain.c: Help about -Y option
12831         * as/mcs51/lkarea.c: Fixed gcc warnings
12832
12833 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
12834
12835         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
12836         fixed warning
12837         * support/valdiag/tests/overflow.c: added
12838         * src/SDCCast.c (decorateType),
12839         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
12840         LEFT_OP (left shift)
12841
12842 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12843
12844         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
12845         (default behaviour).
12846
12847 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12848
12849         A python script to validate compiler diagnostic messages. It can be
12850         used to verify that sdcc complains about bad c source code and
12851         gives a good location of the error.
12852         * support/valdiag/Makefile,
12853         * support/valdiag/valdiag.py,
12854         * support/valdiag/tests/*
12855
12856 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12857
12858         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
12859         * src/SDCCsymt.c (newEnumType),
12860         * src/SDCCsymt.h
12861         * support/Util/SDCCerr.c,
12862         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
12863         enum related bugs.
12864         * support/regression/tests/enum.c: added test for enum values that
12865         require at least 2 bytes of storage.
12866
12867 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
12868
12869         * src/common.h: added ifndef/define/endif macros
12870         around the header file.
12871         Bug reported from Jesus Calvino-Fraga
12872
12873 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
12874
12875         * sdcc.spec: updated
12876         * device/include/Makefile.in: don't install CVS directories
12877         * device/lib/Makefile.in: added removal of CVS directories after install
12878         * doc/Makefile: fixed install, added local_icons
12879         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
12880         * src/mcs51/gen.c (genRightShift): fixed bug #870788
12881         * src/ds390/gen.c (genRightShift): fixed bug #870788
12882         * src/SDCCast.c (decorateType): fixed bug #870781
12883
12884 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
12885
12886         PIC16 port related changes:
12887         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
12888         added variable stackPos,
12889
12890         * gen.c: genCall, assignResultValue: added support for
12891         pushing/retrieving function parameters to/from stack,
12892         genFunction,genEndFunction: setup stack frame for the
12893         generated function,
12894         genAddrOf: will be changed according to bug 863624
12895
12896         * added files genutils.c and genutils.h which contain gen*
12897         debugged and optimised functions extracted from gen.c
12898
12899         * glue.c: added variable 'externs' which holds extern symbols,
12900         pic16emitRegularMap: is modified to properly handle relocatable
12901          symbols under the new scheme,
12902         pic16createInterruptVect: is modified
12903         pic16printPublics: is modified to emit 'global' assembler directives,
12904         added pic16_printExterns to print extern symbols,
12905         pic16glue: initializes stack/frame pointer in the beginning of
12906         the assembly output. Temporary hack, will be corrected later,
12907         because gplink yet does not support stack and SDCC does not
12908         yet support a type of crt0.o object to create the final binary.
12909
12910         * Removed many lines that contain 8051 legacy code.
12911         * The code is finally placed under a 'code' directive.
12912         * Added port specific options.
12913
12914         * _process_pragma: simplified since now we do not need *special*
12915         include file to define SFR registers. But a separate header
12916         will be needed. This will be developed later.
12917         * _pic16_parseOptions: added, parses port specific options:
12918         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
12919         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
12920         --preplace-udata-with=
12921
12922         * _pic16_setDefaultOptions: modified to initialize section names,
12923         but hack is temporarly out of order since it needs improvement.
12924         * _pic16_genAssemblerPreamble: configuration words are emitted by
12925         their address instead of their name. This part is incomplete and
12926         supports only the 18Fxx2 devices. Other devices will emit an error
12927         during assembly since they do not contain the same set of config
12928         registers
12929         * _pic16_genIVT: is modified,
12930
12931         * pcode.c: added definitions for some hardware registers that are needed
12932         for stack support
12933         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
12934         All PCI entries are updated. Now LFSR is supported.
12935         * Removed pic16_pciTRIS is mentioned by mdubuc in source
12936         * added pic16_newpCodeOpLit2 to support instructions with
12937         two literal arguments
12938         * pic16_pCode2str: corrected code that emits assembler instructions
12939         with two literal operands and those that have an access bit modifier
12940         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
12941         this fixes a bug which caused some labels to be lost, when an
12942         assembler directive was added, i.e. banksel,
12943         * pic16_FixRegisterBanking: improved logic that causes the insertion
12944         of bank switching,
12945         * InlineFunction: functions that are called once, are not any more
12946         inlined. This can be a port option in the future,
12947
12948         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
12949
12950         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
12951         hold the corresponding uninitialized symbols,
12952         * pic16_allocProcessorRegister: registers have explicit marked the
12953         accessBank field,
12954         * pic16_allocInternalRegister: registers are explicit marked as
12955         not used,
12956         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
12957         processing list, so bit registers were lost,
12958         *
12959
12960         * ralloc.h: added field 'accessBank' and original symbol operand
12961         in register definition,
12962         * removed the field isMapped from register definition,
12963
12964         ** Several functions have been removed from various sources:
12965         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
12966         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
12967         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
12968         pic16_assignRelocatableRegisters
12969
12970         ** others have been introduced:
12971         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
12972         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
12973
12974 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
12975
12976         * support/scripts/inc2h.pl: changed definition of BIT_AT
12977         to emit 'sbit at' instead of 'bit at'. This was a request.
12978
12979         PIC16 port related preliminary changes:
12980         * gen.c: prefixed function popRegFromString with
12981         pic16_ and all references to it corrected
12982         * pcode.c: all pic16_pc_* hardware registers prefixed
12983         with underscore (_),
12984         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
12985         * ralloc.c: newReg(): when register is REG_SFR then
12986         set address to rIdx,
12987         pic16_allocProcessorRegister(): marks register wasUsed=0
12988         pic16_writeUsedRegs(): added a call to assign processor
12989         registers via pic16_assignFixedRegisters
12990
12991 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12992
12993         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
12994         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
12995         variables in unused register banks.  Also the SSEG is placed
12996         wherever there is enough space for it, and IDATA can be anywhere
12997         in internal RAM.  For now compile using -Wl-Y[stack_size].
12998         The mem file is different for this option as well, since it
12999         makes no sense of talking about DSEG lenght.
13000
13001 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
13002
13003         * src/SDCClrange.c: fixed bug 869095 that caused segfault
13004         in certain cases, e.g. when ROM assignment, patch provided
13005         from Albert den Haan.
13006
13007 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
13008
13009         Many signedness and type propagation fixes:
13010         * src/SDCCicode.c: made geniCodeCast() static
13011         replaced SPEC_ by IS_ (cosmetic)
13012         (operandOperation): fixed div and mod operation
13013         (usualBinaryConversions): added support for promotion of char
13014         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
13015         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
13016         (geniCodeAdd): an array index will stay unsigned, even if promoted
13017         from char to int
13018         (geniCodeArray): ditto
13019         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
13020         * src/SDCCsymt.c (computeType): added more support for char;
13021         promotion of char is selectable by promoteCharToInt, fixed signedness
13022         for all cases
13023         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
13024         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
13025         * src/SDCCval (val*): replaced signedness calculation by
13026         computeType()
13027         rearranged if-branches (cosmetic)
13028         (valShift): added warning W_SHIFT_CHANGED
13029         (valCompare): fixed problem with different types
13030         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
13031         * support/regression/tests/literalop.c: added many cases
13032         * support/regression/tests/ast_constant_folding.c: changed finally to
13033         'unsigned int'
13034         * .version: new year, new version: 2.3.7
13035         * src/SDCCmain.c (main): applied patch #866468
13036         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
13037         provided by Scott Bronson
13038         * doc/sdccman.lyx: updated documentation for sdcdb
13039         updated and added chapter tips
13040
13041 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13042
13043         * src/SDCCsymt.h: missing from yesterday's commits
13044
13045 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13046
13047         * src/SDCC.y (struct_or_union_specifier),
13048         * support/Util/SDCCerr.c,
13049         * support/Util/SDCCerr.h: verify that struct & union tags are used
13050         as declared.
13051
13052 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13053
13054         * src/SDCCglobl.h: missing from yesterday's commits
13055
13056 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13057
13058         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
13059         sft_attributes, struct_declaration, parameter_declaration,
13060         type_name, start_block, declaration_list),
13061         * src/SDCC.lex (check_type): support redefinition of typedef names
13062
13063 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13064
13065         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
13066         aligned xdata arrays. Erik helped me with the if clause.
13067
13068 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13069
13070         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
13071         warning
13072
13073 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13074
13075         * src/SDCCast.h,
13076         * src/SDCCast.c (newAst_),
13077         * src/SDCCicode.h,
13078         * src/SDCCicode.c (ast2iCode, newiCode),
13079         * src/SDCCglobl.h,
13080         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
13081         expr, statement, expression_statement, selection_statement,
13082         iteration_statement, expr_opt, jump_statement): foundation for tracking
13083         sequence points
13084         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
13085         point code too)
13086
13087 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13088
13089         * support/Util/SDCCerr.c,
13090         * src/SDCCast.h,
13091         * src/SDCCast.c (createCase, createDefault, decorateType),
13092         * src/SDCClabel.c (labelUnreach),
13093         * src/SDCC.y (labeled_statement, jump_statement): More improvements
13094         to error messages.
13095         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
13096         (with thanks to Stas Sergeev)
13097         * device/include/time.h,
13098         * device/lib/time.c (CheckTime): suppress unreachable code warning
13099
13100 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13101
13102         * src/SDCCast.c (createIvalCharPtr),
13103         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
13104         bug #753752)
13105         * support/regression/tests/nullstring.c: tests for these two bugs
13106
13107 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13108
13109         * support/Util/SDCCerr.h,
13110         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
13111         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
13112         about storage class and 'at' used inside struct or union
13113         * src/SDCCBBlock.c (iCodeFromeBBlock),
13114         * src/SDCCcse.c (ifxOptimize),
13115         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
13116         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
13117         printIval, emitStaticSeg, emitOverlay),
13118         * src/SDCClabel.c (deleteIfx),
13119         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
13120         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
13121         gatherAutoInit, processParms),
13122         * support/Util/SDCCerr.h,
13123         * support/Util/SDCCerr.c (werrorfl): Support for better error location
13124         reporting for post-parse errors.
13125
13126 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13127
13128         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
13129         implicit casts via union; they don't work on big endian systems
13130         (possible fix for bug #861138)
13131
13132 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13133
13134         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
13135         * src/mcs51/main.c: fixed the fix for bug #737001
13136
13137 2003-12-15  Borut Razem <borut.razem AT siol.net>
13138
13139         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
13140
13141 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13142
13143         * support/makebin/makebin.c: put output in binary mode
13144
13145 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13146
13147         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
13148         xdata and data memory on startup. Set the environment variable
13149         SDCC_NOGENRAMCLEAR to disable this.
13150         * src/mcs51/peephole.def,
13151         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
13152         (allows non-interrupt and interrupt code to safely compete for a resource
13153         without the non-interrupt code having to disable interrupts)
13154
13155 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13156
13157         * src/SDCCicode.c (geniCodeAdd),
13158         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
13159         with valFromType if type might be a pointer and host is big endian).
13160         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
13161         types, not just integer types.
13162         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
13163         multiply defined with mismatching "at" address.
13164
13165 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13166
13167         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
13168         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
13169         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
13170         with embedded nulls (fixed bug #753752)
13171
13172 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13173
13174         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
13175         Apparently this did not see much testing (endless loop)
13176
13177 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13178
13179         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
13180
13181 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13182
13183         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
13184         gracefully handle NULL memmap pointers
13185
13186 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13187
13188         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
13189         instead of deleting the iCode when an operand is volatile
13190         * src/z80/gen.c (genDummyRead),
13191         * src/mcs51/gen.c (genDummyRead),
13192         * src/ds390/gen.c (genDummyRead),
13193         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
13194         not just IC_RIGHT
13195         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
13196         * src/SDCC.y: fixed bug #850420
13197
13198 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13199
13200         Applied z80 i/o port patch from Peter Townson and fixed some operators
13201         to better handle operands in A register.
13202         * device/include/z180.h
13203         * src/SDCC.y
13204         * src/SDCCglue.c
13205         * src/z80/gen.c
13206         * src/z80/gen.h
13207         * src/z80/main.c
13208         * src/z80/peeph-z80.def
13209         * src/z80/peeph.def
13210         * src/z80/z80.h
13211
13212 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13213
13214         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
13215
13216 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13217
13218         * device/lib/hc08/_mullong.c: Removed extra #endif
13219
13220 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13221
13222         * sim/ucsim/hc08.src/inst.cc,
13223         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
13224         carries from x to h
13225         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
13226         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
13227         * device/include/stdarg.h: fixed varargs for hc08
13228         * device/lib/Makefile.in,
13229         * device/lib/hc08/Makefile,
13230         * device/lib/hc08/_mulint.c,
13231         * device/lib/hc08/_mullong.c: fixed some endian problems
13232
13233 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13234
13235         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
13236         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
13237         * device/lib/_gptrget.c,
13238         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
13239
13240 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13241
13242         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
13243         * src/SDCCast.c (astErrors): fixed bug #846007
13244         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
13245
13246 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13247
13248         * src/SDCCast.c (decorateType): disabled a transformation I added in
13249         revision 1.188 (access to fields of a structure at an absolute address);
13250         it breaks with bitfields, extern declarations, and gcse analysis.
13251         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
13252         could be assigned through a pointer, so don't complain.
13253         * src/SDCCast.c (astErrors),
13254         * src/SDCCast.h,
13255         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
13256
13257 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
13258
13259         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
13260         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
13261         output of __config directives, since gpasm now supports them
13262         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
13263         pre-processor macro, i.e. -DMCU=p18f452
13264         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
13265         and modified to handle 'cast' icode similarly to '=' icode
13266         * src/pic16/device.h (typedef struct PIC_device): added field
13267         'extMIface' to indicate that chip has external memory interface
13268         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
13269         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
13270         18F8720
13271
13272 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13273
13274         * src/SDCC.y (pointer): fixed bug #846006
13275         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
13276         * src/SDCCast.c (decorateType): fixed bug #846009
13277         * src/ds390/peeph.def,
13278         * src/ds390/gen.c (genAnd, genOr),
13279         * src/mcs51/peeph.def,
13280         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
13281
13282 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13283
13284         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
13285         * src/SDCCdflow.c
13286         * src/SDCCcse.c
13287         * src/SDCCcse.h
13288         * src/SDCCBBlock.h
13289         * src/SDCCBBlock.c
13290
13291 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
13292
13293         fixed bug #845089
13294         * src/SDCCbitv.h,
13295         * src/SDCCbitv.c: added function to free a bitvector
13296         * src/SDCClrange.h,
13297         * src/SDCClrange.c: added function to recompute the liveranges
13298         * src/avr/ralloc.c,
13299         * src/ds390/ralloc.c,
13300         * src/hc08/ralloc.c,
13301         * src/mcs51/ralloc.c,
13302         * src/pic/ralloc.c,
13303         * src/pic16/ralloc.c,
13304         * src/xa51/ralloc.c,
13305         * src/z80/ralloc.c: recompute the liveranges after register packing
13306
13307 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
13308
13309         * src/SDCCloop.c (newInduction): fixed bug #845630
13310
13311 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13312
13313         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
13314         inadvertantly left behind from my 2003-11-12 change
13315
13316 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13317
13318         Updated headers I neglected to commit yesterday.
13319         * src/SDCClrange.h,
13320         * src/SDCCicode.h
13321
13322 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13323
13324         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
13325         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
13326         * src/SDCCopt.c (eBBlockFromiCode),
13327         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
13328         the creation of the key hash table from the sequencing so it can be used
13329         earlier (for some GCSE bug fixes still pending)
13330
13331 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13332
13333         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
13334         * support/regression/tests/addsub.c: testing genPlus shortcut
13335
13336 2003-11-15  Borut Razem <borut.razem AT siol.net>
13337
13338         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
13339
13340 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13341
13342         * src/SDCCcse.c (cseBBlock): fixed bug #527779
13343         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
13344         ordering is immaterial.
13345         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
13346
13347 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13348
13349         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
13350         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
13351         (SIGSEV) of bug #840381
13352         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
13353         unlink new file before rename if new and old filenames are the same)
13354
13355 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13356
13357         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
13358         uninitialized variables) for the mcs51. Set environment variable
13359         SDCC_GENRAMCLEAR to test.
13360         xdata initialization slightly shorter
13361
13362 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13363
13364         * src/SDCCsymt.h,
13365         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
13366         #838241 & 780691 (basicly the same bug)
13367         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
13368         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
13369
13370 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
13371
13372         * src/SDCCmain.c (linkEdit): "fix" #834252
13373
13374 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13375
13376         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
13377         * src/SDCCast.h,
13378         * src/SDCC.y: fixed bug #819403
13379
13380 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13381
13382         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
13383         the reentrant attribute.
13384         * src/hc08/gen.c (genPackBits): added missing stack readjustment
13385         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
13386         simulation
13387         * src/SDCCast.c (decorateType): fixed bug with storage class not being
13388         updated during pointer dereference; f.e. ~(((char *)1)*) was being
13389         erroneously reduced to a literal.
13390         * src/hc08/ralloc.c (packRegisters, rematStr),
13391         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
13392         some cases
13393
13394 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13395
13396         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
13397         * doc/sdccman.lyx: changed from 'article' to 'book'
13398         * doc/Makefile: readded test_suite_spec and cdbfileformat
13399
13400 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
13401
13402         * device/include/stdlib.h: include malloc.h to comply with ANSI
13403         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
13404
13405 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13406
13407         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
13408         * doc/clean.mk: also remove *.out files
13409         * doc/sdccman.lyx: some additions, larger top/bottom margins
13410
13411 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13412
13413         * src/SDCC.y: fixed bug #837365
13414         * support/regression/tests/bitopcse.c
13415         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
13416         a symbol (might be valop instead)
13417         * device/lib/Makefile.in: added errno.c to HC08SOURCES
13418         * device/lib/clean.mk: added hc08 to the cleaning list
13419
13420 2003-11-04  Borut Razem <borut.razem AT siol.net>
13421
13422         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
13423           made 2003-11-04
13424         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
13425           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
13426           malloc is declared in standard stdlib.h
13427
13428 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13429
13430         * device/lib/hc08/Makefile: need to clean .rel not .o files
13431         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
13432
13433 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13434
13435         * src/port.h,
13436         * src/hc08/main.c,
13437         * src/mcs51/main.c,
13438         * src/ds390/main.c,
13439         * src/z80/main.c,
13440         * src/avr/main.c,
13441         * src/pic/main.c,
13442         * src/pic16/main.c,
13443         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
13444         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
13445         tests (which uses the port's oclsExpense function)
13446         * src/SDCC.y,
13447         * src/SDCCast.c,
13448         * src/SDCCicode.c,
13449         * src/hc08/gen.c,
13450         * src/ds390/gen.c,
13451         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
13452
13453 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13454
13455         * src/SDCCcse.c (ifxOptimize),
13456         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
13457         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
13458         deleting the IFX iCode.
13459         * src/hc08/ralloc.c: reduced unneeded slocs
13460         * src/hc08/gen.c: fixed bug in asmopToBoolean
13461
13462 2003-11-04  Borut Razem <borut.razem AT siol.net>
13463
13464         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
13465           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
13466           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
13467           transferred to configure
13468
13469 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
13470
13471         Use headers defined in the C[++] standards:
13472         * sim/ucsim/gui.src/serio.src/fileio.cc
13473         * sim/ucsim/gui.src/serio.src/frontend.cc
13474         * sim/ucsim/gui.src/serio.src/main.cc
13475         * sim/ucsim/gui.src/serio.src/posix_signal.cc
13476         * support/Util/NewAlloc.c
13477         * as/hc08/lklibr.c
13478         * as/mcs51/lklibr.c
13479         * as/z80/aslist.c
13480         * as/z80/assym.c
13481
13482 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13483
13484         * Added MSVC projects for hc08 assembler and linker:
13485         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
13486         /as/hc08/link_hc08.dsp
13487
13488 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
13489
13490         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
13491
13492 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
13493
13494         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
13495
13496 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13497
13498         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
13499
13500 2003-10-31  Borut Razem <borut.razem AT siol.net>
13501
13502         * support/cpp2/cpplib.h,
13503           support/cpp2/cpplib.c,
13504           support/cpp2/cpplex.c,
13505           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
13506           to switch _asm block preprocessing on / off. Default is
13507           #pragma preproc_asm +
13508
13509 2003-10-31  Borut Razem <borut.razem AT siol.net>
13510
13511         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
13512           when outputting comment blocks (when executed with -C option) and
13513           _asm (SDCPP specific) blocks
13514
13515 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13516
13517         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
13518
13519 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
13520
13521         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
13522
13523 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
13524
13525         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
13526         * src/SDCCast.c (decorateType): fixed bug #832664
13527
13528 2003-10-31  Borut Razem <borut.razem AT siol.net>
13529
13530         * support/cpp2/cpplex.c: fixed for SDCPP:
13531           comments(when executed with -C option) and _asm blocks
13532           were included even if they where in skipped #if block.
13533           Applied solution from GCC cpp 3.3.2
13534
13535 2003-10-31  Borut Razem <borut.razem AT siol.net>
13536
13537         * src/SDCC.lex: sdcc now understands both formats:
13538           '# <line_number> <file_name>' and
13539           '#line <line_number> <file_name>'
13540         * support/cpp2/cppmain.c: sdcpp now generates the standard
13541           '# <line_number> <file_name>' instead of former
13542           '#line <line_number> <file_name>'
13543
13544 2003-10-30  Borut Razem <borut.razem AT siol.net>
13545
13546         * support/cpp2/cpphash.h,
13547         * support/cpp2/cpplib.h
13548         * support/cpp2/cpplex.c,
13549         * support/cpp2/cppmain.c,
13550         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
13551
13552 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13553
13554         Fixed a number of problems revealed by bug #827883.
13555         * src/SDCCloop.c (loopInvariants): Spill location of the
13556         result operand should be recomputed if extracted from
13557         a loop. Also, don't extract assignments of an iTemp
13558         from a literal.
13559         * src/SDCCast.c (isConformingBody): loop reversal should
13560         not occur if the control variable is involved with a
13561         relational operator.
13562
13563 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
13564
13565         * .version: bumped to 2.3.6 to reflect the big improvements
13566         made by Erik and Klaus. Thanks!
13567
13568 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
13569
13570         Replaced the livrange code.
13571         * src/SDCClrange.c: added new LR code
13572         * src/SDCCloop.c,
13573         * src/SDCCBBlock.h: removed remainig parts from old LR code
13574         * src/ds390/ralloc.c,
13575         * src/ds390/gen.c: minor fixes to make it work with new code
13576
13577 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13578
13579         * as/hc08/asm.h,
13580         * as/hc08/lkrloc.c,
13581         * src/hc08/gen.c,
13582         * src/hc08/ralloc.c: Fix various warnings related to the hc08
13583         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
13584         (tweaked fix for bug #818696)
13585
13586 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13587
13588         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
13589
13590 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13591
13592         * src/SDCCmain.c,
13593         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
13594         * src/mcs51/gen.c (gencjneshort),
13595         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
13596         more efficient (per Scott Bronson's suggestion)
13597
13598 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13599
13600         Extended the semantics of the critical keyword to include
13601         individual statements. See RFE #827755 and #799831
13602         * src/SDCC.y
13603         * src/SDCCicode.c
13604         * src/SDCCopt.c
13605         * src/SDCCast.c
13606         * support/Util/SDCCerr.c
13607         * support/Util/SDCCerr.h
13608         * src/mcs51/gen.c
13609         * src/ds390/gen.c
13610         * src/hc08/gen.c
13611
13612 2003-10-19  Borut Razem <borut.razem AT siol.net>
13613
13614         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
13615
13616 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13617
13618         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
13619         Fixed bug #818696
13620         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
13621         and predecrement operand is displayed
13622
13623 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
13624
13625         * src/SDCCval.c (valMinus): fixed bug #826041
13626
13627 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13628
13629         Some hc08 related updates that I missed earlier
13630         * sim/ucsim/stypes.h
13631         * support/regression/ports/hc08/spec.mk
13632
13633 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13634
13635         New target "hc08" for the Motorola 68hc08 family of micros
13636
13637         * configure
13638         * configure.in
13639         * Makefile
13640         * src/hc08/*
13641         * src/SDCCmain.c
13642         * src/port.h
13643         * sim/ucsim/hc08.src/*
13644         * sim/ucsim/configure.in
13645         * src/ucsim/configure
13646         * sim/ucsim/packages_in.mk
13647         * as/hc08/*
13648         * as/Makefile
13649         * device/include/mc68hc908qy.h
13650         * device/lib/hc08/*
13651         * device/lib/Makefile.in
13652         * support/regression/ports/hc08/*
13653         * support/regression/Makefile
13654
13655 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13656
13657         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
13658         regression test
13659         * src/ds390/gen.c (genCast): fixed bug #821957
13660
13661 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
13662
13663         * device/lib/logf.c: "fixed" overlay bug
13664         * support/regression/ports/host/spec.mk: added m library
13665         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
13666         * support/regression/tests/float_trans: added (for Eric)
13667
13668 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
13669
13670         * src/mcs51/gen.c (genCpl): fixed bug
13671         http://sf.net/mailarchive/message.php?msg_id=6263915
13672
13673 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
13674
13675         * src/SDCCast.c (decorateType): added extended constant folding
13676         * src/SDCCsymt.c (computeType): cleanup
13677         * src/SDCCval.c (valShift): minor optimization
13678         * support/regression/tests/ast_constant_folding.c: added
13679
13680 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13681
13682         * src/SDCCmain.c: removed some unintended changes
13683
13684 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13685
13686         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
13687         * src/z80/gen.c: fixed part of bug #817589
13688         * src/SDCCsymt.c (checkFunction): fixed bug #817895
13689
13690 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
13691
13692         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
13693         * src/SDCCcflow.c
13694         * src/SDCCcse.c
13695         * src/SDCCdflow.c
13696         * src/SDCClabel.c
13697         * src/SDCClrange.c
13698         * src/SDCCmem.c
13699         * src/SDCCopt.c
13700         * src/SDCCpeeph.c
13701         * src/SDCCset.c
13702         * src/avr/ralloc.c
13703         * src/ds390/ralloc.c
13704         * src/izt/ralloc.c
13705         * src/mcs51/ralloc.c
13706         * src/pic/ralloc.c
13707         * src/pic16/ralloc.c
13708         * src/xa51/ralloc.c
13709         * src/z80/ralloc.c
13710         * src/z80/gen.c: removed unused label "release:"
13711
13712 2003-10-06  Borut Razem <borut.razem AT siol.net>
13713
13714         * src/SDCC.lex: removed definition of unused variables
13715           save_optimize and save_options
13716
13717 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
13718
13719         * clean.mk: removed '=' in "-maxdepth=1"
13720         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
13721         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
13722
13723 2003-10-06  Borut Razem <borut.razem AT siol.net>
13724
13725         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
13726           my_unput() replaced by unput()
13727
13728 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
13729
13730         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
13731         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
13732         type-punned pointer will break strict-aliasing rules"
13733         Old LR behaviour is again default; Klaus' LR can be choosen by
13734         defining the environment variable LRKLAUS
13735         * src/SDCCBBlock.h
13736         * src/SDCCloop.c
13737         * src/SDCClrange.c
13738         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
13739         * clean.mk: fixed removal of files in bin/CVS/
13740         * device/lib/clean.mk: fixed removal of directories small and large
13741         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
13742         * src/SDCCicode.c,
13743         * src/SDCCval.c: removed superflous test for pedantic
13744
13745 2003-10-05  Borut Razem <borut.razem AT siol.net>
13746
13747         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
13748           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
13749           message "unmatched #pragma SAVE and #pragma RESTORE"
13750
13751 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13752
13753         * doc/sdccman.lyx: various additions and updates (interrupts, inline
13754           assembly, critical functions, atomic, nojtbound)
13755
13756 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
13757
13758         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
13759         * src/SDCCBBlock.h
13760         * src/SDCCloop.c
13761         * src/SDCCloop.h
13762         * src/SDCClrange.c
13763
13764 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13765
13766         * src/z80/gen.h,
13767         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13768         * src/mcs51/gen.h
13769         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13770         * src/ds390/gen.h
13771         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13772         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
13773         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
13774
13775 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13776
13777         * src/z80/gen.c (genRet): fixed bug #524753
13778         * src/z80/gen.c (genCast): fixed internal error on cast from
13779         pointer to long
13780         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
13781         fix for bug #477835 to the z80
13782         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
13783         for tracking iCodes in the peephole optimizer for z80
13784
13785 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13786
13787         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
13788         the other part of bug #814548
13789         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
13790
13791 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
13792
13793         * src/SDCCcse.c: fixed part of bug #814548
13794
13795 2003-09-28  Borut Razem <borut.razem AT siol.net>
13796
13797         * src/asm.c: rewrite of printILine() to use temporary file instead
13798           a pipe
13799         * src/xa51/main.c: commented out declaration of int rewinds
13800
13801 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13802
13803         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
13804
13805 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13806
13807         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
13808         * src/asm.c (printILine): Fixed bug #811015
13809
13810 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13811
13812         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
13813         freeing.
13814
13815 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13816
13817         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
13818         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
13819         to correctly handle general case of AOP_PAIRPTR
13820         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
13821
13822 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13823
13824         * src/mcs51/ralloc.c (fillGaps),
13825         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
13826         register positioning bug)
13827
13828 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
13829
13830         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
13831
13832 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13833
13834         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
13835         genCodePointerGet, genGenPointerGet, genFarPointerSet,
13836         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
13837         (ralloc doesn't intentionally do this now, but perhaps later)
13838         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
13839         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
13840         register positioning bugs (Fixed bug #762602 and #795325)
13841         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
13842         (Fixed bug #808779)
13843         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
13844         lines that --i-code-in-asm generates
13845
13846 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13847
13848         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
13849         trying to fclose a FILE* that was already closed.
13850
13851 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13852
13853         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
13854         of const struct should be treated as if const themselves)
13855
13856 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
13857
13858         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
13859
13860 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13861
13862         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
13863         Unix (/n) and DOS (/r/n) line terminations.
13864
13865 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13866
13867         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
13868         bug #613775
13869
13870 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13871
13872         * src/mcs51/gen.c (genFunction, genEndFunction),
13873         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
13874         and restore of EA so that stack offsets to parameters are
13875         correct when using both critical and reentrant/stack-auto.
13876         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
13877         size (can be triggered in error if sloc is shared between
13878         different sized objects)
13879         * device/include/float.h: fixed macros to explicitly use
13880         unsigned long where needed
13881
13882 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
13883
13884         Feature req. 799831: added code to allow nesting of critical functions
13885         * src/mcs51/gen.c (genFunction, genEndFunction)
13886         * src/ds390/gen.c (genFunction, genEndFunction)
13887
13888 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13889
13890         * src/SDCCsymt.c (sclsFromPtr),
13891         * src/SDCCsymt.h,
13892         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
13893         support for standard C idiom of memory mapped variables; for
13894         example, *((xdata int*)0x1234) = 1 is now internally equivalent
13895         to xdata int at 0x1234 tempvar = 1.
13896         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
13897         provided by Akiya ISHIDA
13898
13899 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
13900
13901         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
13902         * src/SDCCval.c (constVal): added reduction from int to char
13903         * src/SDCCval.c (valMult, valDiv): fixed sign handling
13904         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
13905         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
13906         to ignore the sign
13907         * support/regression/tests/shifts.c: fixed
13908
13909 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13910
13911         * src/z80/gen.c (genXor): Fixed bug #805445
13912
13913 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13914
13915         Fixed bug #621531 (const & volatile confusion in the type chain).
13916         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
13917         refer to the const or volatile state of the pointer itself.
13918
13919         * src/SDCCast.c
13920         * src/SDCCglue.c
13921         * src/SDCCicode.c
13922         * src/SDCCsymt.c
13923         * src/SDCCval.c
13924         * src/SDCC.y
13925         * src/SDCCsymt.h
13926         * src/pic/gen.c
13927         * src/pic/ralloc.c
13928         * src/pic16/gen.c
13929         * src/pic16/ralloc.c
13930         * support/regression/tests/const.c
13931
13932 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13933
13934         When checking for duplicated modules, use absolute paths
13935         instead of relative paths.  Files changed:
13936
13937         * as/mcs51/lklib.c
13938         * link/z80/lklib.c
13939
13940 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13941
13942         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
13943
13944 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13945
13946         * device/include/string.h: added size_t typedef, changed
13947         prototypes to use size_t, eliminated separate reentrant and
13948         non-reentrant declarations, added _memmove declaration
13949         * device/lib/_memcpy.c: changed to use size_t instead of int,
13950         changed /4 to >>2 to avoid division library call
13951         * device/lib/_memcmp.c,
13952         * device/lib/_memset.c,
13953         * device/lib/_strncat.c,
13954         * device/lib/_strncpy.c,
13955         * device/lib/_strncmp.c: changed to use size_t instead of int
13956         * device/lib/_memmove.c: new file (fixed bug #772294)
13957         * device/lib/Makefile.in: added _memmove.c
13958         * device/lib/z80/asm_strings.s: fixed bug #772290
13959         * support/regression/tests/bitfields.c: attempt to fix host assertion
13960         failure on amd64-unknown-linux2.2
13961
13962 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13963
13964         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
13965         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
13966         * as/z80/asmain.c (main): fixed bug #801766
13967
13968 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
13969
13970         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
13971         compilers
13972
13973 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13974
13975         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
13976         reported in bug #800609
13977
13978 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
13979
13980         * Top header beautifications in src/pic16 directory:
13981           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
13982           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
13983           pcoderegs.h, ralloc.c, ralloc.h
13984         * main.c: added top header and GPL license notice
13985         * pcode.c: fixed the if-conditional warning
13986
13987 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
13988
13989         * device/lib/_mullong.c: replaced int by short for gcc
13990
13991 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13992
13993         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
13994         and JUMPTABLE iCodes properly now (worked by accident before)
13995         * src/mcs51/gen.c (leftRightUseAcc),
13996         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
13997         iCode properly now. Use getSize instead of nRegs since a & b
13998         aren't part of the nRegs tally.
13999
14000 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
14001
14002         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
14003         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
14004           before instructions that use the _STATUS register
14005
14006 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
14007
14008         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
14009         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
14010         fetching of the pointer
14011         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
14012         copied from genNearPointerSet()
14013         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
14014         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
14015         If they pop r0/r1 they must be called in the opposite order than aopOp().
14016         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
14017         (resp. --stack-auto), prepared for --xstack
14018
14019 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14020
14021         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
14022
14023 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
14024
14025         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
14026         these ports have their own __sdcc_external_start()
14027
14028 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
14029
14030         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
14031         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
14032         type for bits was changed. It resulted in bit variables becoming
14033         global, which is not permitted in PIC 14 assembly output.
14034
14035 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14036
14037         * doc/sdccman.lyx: various additions and updates. Rearranged sections
14038
14039 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14040
14041         Z80 and MCS51 linkers complaint if a public symbol is defined
14042         in more than one library module:
14043
14044         * as/mcs51/lklib.c
14045         * link/z80/lklib.c
14046         * as/mcs51/Makefile.in
14047
14048 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14049
14050         A few small changes that speed up the peephole optimizer.
14051
14052         * src/SDCCpeeph.c
14053
14054 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14055
14056         Try to make the peephole optimizer smarter by maintaining
14057         an association between the assembly source code and the
14058         iCodes that originated them. Put this information to use
14059         with a new peephole rule condition "notVolatile" so that
14060         the rules can be aggressive yet still safe.
14061
14062         * src/SDCCpeeph.c
14063         * src/SDCCpeeph.h
14064         * src/mcs51/gen.c
14065         * src/mcs51/peeph.def
14066
14067 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14068
14069         Fixed bug #741761
14070
14071         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
14072         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
14073         if the left or right operand symbols have the accuse flag set.
14074
14075 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14076
14077         Changed the type of the result of the ! (NOT) operator to char;
14078         previously it returned the same type as the source. This allows
14079         us to eliminate all the genFloatNot functions (all of its target
14080         implementations were very buggy) since !float can use the same
14081         code as !long now.
14082
14083         * src/SDCCicode.c (ast2iCode): ! returns char
14084         * src/mcs51/gen.c (genNot, genNotFloat),
14085         * src/ds390/gen.c (genNot, genNotFloat),
14086         * src/z80/gen.c (genNot, genNotFloat),
14087         * src/pic/gen.c (genNot, genNotFloat),
14088         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
14089
14090 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
14091
14092         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
14093         1. Interrupt would not compile properly. Ensure PCLATH register is saved
14094            during interrupts. Ensure WSAVE is located at a shared bank address.
14095         2. Fixed page selection in some places
14096         3. Fixed BTFSS/C to where necessary use registers directly and not simply
14097            the registers name strings.
14098         4. Fixed "signed / unsigned compare" compiler warnings.
14099         5. The PIC port manages its own allocation of the general purpose
14100            registers, but makes no attempt to reuse them. As a result when
14101            compiling it soon runs out of general purpose registers. Some
14102            additional code was added to the files pcode.c and device.c to walk
14103            through the function call tree and rename the registers so that they
14104            get reused.
14105
14106         * src/pic/device.c
14107         * src/pic/gen.c
14108         * src/pic/glue.c
14109         * src/pic/pcode.c
14110         * src/pic/pcode.h
14111         * src/pic/ralloc.c
14112         * src/pic/ralloc.h
14113         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
14114         genPlus() & genMinus() when the result is the same as left or right
14115
14116 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14117
14118         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
14119
14120 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14121
14122         Made bitfield a distinct type from bit so that bitfields
14123         convert as per ANSI C and bits retain their traditional
14124         boolean style behaviour. Implemented bitfield support in
14125         the z80 port.
14126
14127         * src/SDCCsymt.h,
14128         * src/SDCCsymt.c,
14129         * src/SDCCast.c,
14130         * src/cdbFile.c,
14131         * src/mcs51/gen.c,
14132         * src/ds390/gen.c: bit v bitfield split
14133         * src/z80/gen.c: New support for bitfields
14134         * support/regression/tests/bitfields.c: reenabled z80,
14135         added more tests
14136
14137 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14138
14139         Rules 246.x, 247.x relate to bitfields, the others speed up
14140         access to xdata mapped I/O devices.
14141
14142         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
14143
14144 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14145
14146         Cleaned up genPackBits and genUnpackBits and added two helper
14147         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
14148         for literal assignments in genPackBits (thanks to Frieder for
14149         reminding me).
14150
14151         * src/mcs51/gen.c
14152         * src/ds390/gen.c
14153
14154 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14155
14156         Fixed bug #748310 (pointer to function type mishandled when the
14157         function name is omitted). Also fixed a SIGSEGV when a function
14158         attribute (reentrant, etc) is used on a non-function or on a
14159         function but misplaced before the parameter list.
14160
14161         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
14162         bug #748310
14163         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
14164         * support/Util/SDCCerr.h,
14165         * support/Util/SDCCerr.c: Added func attr misuse error msg
14166
14167 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
14168
14169         Fixed bug #787649 by anonymous
14170         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
14171         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
14172
14173 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14174
14175         Fixed numerous bitfield problems.
14176
14177         * src/SDCC.y: More bitfield related error checking
14178         * src/SDCCsymt.h,
14179         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
14180         * support/Util/SDCCerr.h,
14181         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
14182         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
14183         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
14184         * support/regression/tests/bitfields.c: tests added
14185
14186 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14187
14188         Made the constant following the "interrupt" keyword optional. If
14189         omitted, the function will not automatically be given an entry
14190         in the interrupt vector table (similar to #pragma NOIV, but
14191         less syntacticly kludgy). The interrupt number is also now
14192         range checked. Also fixed a bug in the high order bit example
14193         in the manual.
14194
14195         * src/SDCC.y
14196         * src/SDCCmem.c
14197         * src/SDCCglue.c
14198         * src/SDCCsymt.h
14199         * support/Util/SDCCerr.c
14200         * support/Util/SDCCerr.h
14201         * doc/sdccman.lyx
14202
14203 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
14204
14205         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
14206         * src/SDCCicode.c (operandOperation): rewritten some ops
14207         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
14208         * src/SDCCsymt.c (computeType): literals are handled the same way as any
14209         other type
14210         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
14211         be re-activated by defining REDUCE_LITERALS)
14212         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
14213         unsigned, but are signed by default
14214         * src/SDCCval.c (constVal): rearranged
14215         * src/SDCCval.c (valMod): preliminary fix
14216         * src/SDCCval.c (valCastLiteral): use TYPE_* types
14217         * support/regression/literalop.c: added, work in progress
14218
14219 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14220
14221         Generate warnings for useless declarations like "char data;"
14222         that don't do what new users expect.
14223
14224         * src/SDCC.y
14225         * support/Util/SDCCerr.h
14226         * support/Util/SDCCerr.c
14227
14228 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
14229
14230         * src/SDCCval.c (valMult): fix overflow detection of negative int
14231
14232 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14233
14234         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
14235
14236         Changes to support big endian targets:
14237
14238         * src/ports.h
14239         * src/SDCCglue.c
14240         * src/avr/main.c
14241         * src/ds390/main.c
14242         * src/izt/i186.c
14243         * src/mcs51/main.c
14244         * src/pic/main.c
14245         * src/pic16/main.c
14246         * src/xa51/main.c
14247         * src/z80/main.c
14248
14249 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
14250
14251         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
14252         * device/lib/time.c: fixed warning "integer overflow in expression"
14253
14254 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
14255
14256         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
14257         * src/SDCCval.c (constVal): changed default to signed; hex and octal
14258         constants are unsigned; added recognition of "u" flag for unsigned
14259         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
14260         * src/SDCCval.c (valDiv, valMod): fixed signdness
14261         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
14262         signedness of modulo, left and right shift
14263         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
14264         * support/Util/SDCCerr.h: added warning W_INT_OVL
14265         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
14266         * src/SDCCast.c (ast_print): improved output of constants
14267
14268 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14269
14270         Fixed some warnings when building with MSVC:
14271
14272         * as/mcs51/asdata.c
14273         * as/z80/asdata.c
14274         * as/mcs51/asm.h
14275         * as/z80/asm.h
14276         * link/z80/aslink.h
14277         * link/z80/lkdata.c
14278         * link/z80/lkeval.c
14279         * link/z80/lkgb.c
14280         * link/z80/lkihx.c
14281         * link/z80/lks19.c
14282         * link/z80/lksym.c
14283         * support/cpp2/cpplib.c
14284         * src/ds390/gen.c
14285         * src/mcs51/gen.c
14286
14287 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
14288
14289         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
14290
14291 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14292
14293         * support/librarian/clean.mk: Do not remove Makefile.
14294         * support/librarian/Makefile: added.
14295
14296 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14297
14298         Added librarian to MSVC build:
14299         * all.dsp
14300         * sdcc.dsw
14301         * support/librarian/librarian.dsp
14302
14303         'configure' not needed for librarian, removed:
14304         * support/librarian/configure
14305         * support/librarian/configure.in
14306         * support/librarian/config_in.h
14307         * support/librarian/Makefile.in
14308
14309         Hopefully these ones built the librarian and the rest of sdcc properly:
14310         * Makefile
14311         * Makefile.common.in
14312
14313         Messed up 'configure', so revert to previous version:
14314         * configure
14315         * configure.in
14316
14317 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
14318
14319         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
14320         there, while the mantissa of a double is "only" 53 bits wide.
14321
14322 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14323
14324         Adding sdcclib to the build.  MSVC project coming soon.
14325         Files added/changed:
14326
14327         * support/librarian/clean.mk
14328         * support/librarian/configure
14329         * support/librarian/configure.in
14330         * support/librarian/config_in.h
14331         * support/librarian/Makefile.bcc
14332         * support/librarian/Makefile.in
14333         * support/librarian/sdcclib.c
14334         * Makefile.bcc
14335         * Makefile
14336         * Makefile.common.in
14337         * configure
14338         * configure.in
14339
14340 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14341
14342         Linker now complaints if linked modules have conflicting options, for
14343         example, one compiled using --model-large and another one compiled with
14344         --model-small.  The following files were modified:
14345
14346         * as/mcs51/asdata.c
14347         * as/mcs51/aslink.h
14348         * as/mcs51/asm.h
14349         * as/mcs51/asmain.c
14350         * as/mcs51/asout.c
14351         * as/mcs51/i51pst.c
14352         * as/mcs51/lkdata.c
14353         * as/mcs51/lklibr.c
14354         * as/mcs51/lkmain.c
14355         * as/z80/asdata.c
14356         * as/z80/asm.h
14357         * as/z80/asmain.c
14358         * as/z80/asout.c
14359         * as/z80/z80pst.c
14360         * link/z80/aslink.h
14361         * link/z80/lkdata.c
14362         * link/z80/lklibr.c
14363         * link/z80/lkmain.c
14364         * src/SDCCglue.c
14365
14366 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14367
14368         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
14369         as/mcs51/lklibr.c: Generate a warning when a library is not found.
14370
14371 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
14372
14373         * src/z80/mappings.i: fix _mul[us][int,long] entries
14374
14375 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14376
14377         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
14378
14379 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
14380
14381         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
14382         * support/regression/tests/bitopcse.c: added
14383         fixed warning:
14384         * src/avr/gen.c:
14385         * src/pic/gen.c:
14386         * src/pic16/gen.c:
14387         * src/z80/gen.c:
14388         * src/xa51/gen.c:
14389
14390 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14391
14392         added support for new library format to z80, gbz80 linkers:
14393         *link/z80/aslink.h
14394         *link/z80/lklex.c
14395         *link/z80/lklib.c
14396         *link/z80/lklist.c
14397
14398 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
14399
14400         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
14401         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
14402
14403 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
14404
14405         added DUMMY_READ_VOLATILE:
14406         * src/SDCC.y:
14407         * src/avr/gen.c:
14408         * src/xa51/gen.c:
14409         * src/z80/gen.c:
14410         * src/pic/gen.c:
14411         * src/pic16/gen.c:
14412         * src/mcs51/gen.c:
14413         * src/ds390/gen.c:
14414         * src/SDCCcse.c (algebraicOpts): many improvements
14415         * src/SDCCcse.h: removed algebraicOpts()
14416         * src/SDCCicode.c (picDummyRead): added
14417
14418 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14419
14420         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
14421         "Insufficient space in data memory".
14422
14423 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14424
14425         * src/mcs51/gen.c: fixed bug #771358
14426         * src/z80/gen.c: fixed bug #759087
14427
14428 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
14429
14430         * src/pic16/glue.c: minor cleanup by Vangelis
14431
14432 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14433
14434         * device/include/regc515c.h: fixed #758477
14435         * device/lib/_gptrget.c: saving some cycles in generic pointer get
14436         * device/lib/_gptrput.c: saved a few bytes
14437         * my tab spacing is 8, yours too?)
14438         * device/lib/_ser.c: process RX bytes earlier than TX bytes
14439         * device/lib/serial.c: process RX bytes earlier than TX bytes
14440         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
14441
14442 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14443
14444         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
14445
14446 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14447
14448     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
14449
14450 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
14451
14452         * device/lib/Makefile.in: bad fix, reverted to 1.43
14453
14454 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
14455
14456         * device/lib/Makefile.in: added missing z80 object files
14457
14458 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
14459
14460         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
14461         pic16 progress by Vangelis:
14462         * src/SDCCglobl.h:
14463         * src/SDCCmain.c:
14464         * src/pic/Makefile:
14465         * src/pic:
14466         * pic/Makefile:
14467         * pic16/device.c:
14468         * pic16/device.h:
14469         * pic16/gen.c:
14470         * pic16/gen.h:
14471         * pic16/genarith.c:
14472         * pic16/glue.c:
14473         * pic16/main.c:
14474         * pic16/pcode.c:
14475         * pic16/pcode.h:
14476         * pic16/pcodepeep.c:
14477         * pic16/peeph.def:
14478
14479 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14480
14481     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
14482
14483 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14484
14485     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
14486     added gbz80 build to MSVC project.
14487     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
14488     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
14489     from 8051 stuff and setup so it links using a .lnk file.
14490
14491 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14492
14493     * support/librarian/sdcclib.c: sdcc librarian.
14494     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
14495     with sdcclib.
14496
14497 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14498
14499     * as/mcs51/lkmain.c: properly handle extensions in function afile.
14500
14501 2003-07-02  Borut Razem <borut.razem AT siol.net>
14502
14503         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
14504         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
14505         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
14506         src/xa51/main.c, src/z80/main.c:
14507         virtualization of glue() function: each port has it's own glue function,
14508         which is accessed by do_glue function pointer in PORT.general structure
14509
14510 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
14511
14512         * DS800C400 fun, improved ROM interface and tinibios.
14513
14514 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
14515
14516         * More support for DS80C400. Now includes beginning of interface to ROM.
14517
14518 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
14519
14520         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
14521
14522 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14523
14524         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
14525
14526 2003-06-19  Borut Razem <borut.razem AT siol.net>
14527
14528         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
14529
14530 2003-06-19  Borut Razem <borut.razem AT siol.net>
14531
14532         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
14533         fixed Z80 port - crt0.o: cannot open.
14534
14535 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
14536
14537         * support/Util/MySystem.c (merge_command): revert bad fix
14538
14539 2003-06-18  Borut Razem <borut.razem AT siol.net>
14540
14541         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
14542
14543 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14544
14545         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
14546         option --use-stdout sends errors to stdout instead of stderr.
14547
14548 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
14549
14550         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
14551
14552 2003-06-15  Borut Razem <borut.razem AT siol.net>
14553
14554         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
14555         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
14556         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
14557         fixed width array of pointers replaced with sets;
14558         multiple include and lib paths ared transferred to preprocessor and linker
14559         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
14560         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
14561         fixed width array of pointers
14562         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
14563         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
14564         fixupPath(), getPathDifference()
14565         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
14566         fixed width array of pointers
14567
14568 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
14569
14570         * src/pic16/ralloc.c: fix warnings
14571         * src/pic16/pcode.c: fix warning
14572
14573 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
14574
14575          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
14576         know all the details, but essentially this set of changes enable
14577         the pic16 port to generate movff instructions and generate assembler
14578         directives,
14579         * src/SDCCmain.c:
14580         * src/pic16/gen.c:
14581         * src/pic16/glue.c:
14582         * src/pic16/pcode.c:
14583         * src/pic16/device.c:
14584         * src/pic16/main.c:
14585         * src/pic16/pcode.h:
14586         * src/pic16/pcoderegs.c:
14587         * src/pic16/ralloc.c:
14588         * src/pic16/ralloc.h:
14589
14590 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14591
14592         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
14593         added option --vc, so sdcc errors and warnings are compatible with
14594         Microsoft Visual Studio.
14595
14596 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14597
14598         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
14599           device/lib/libfloat.lib: added atof function.
14600
14601 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
14602
14603         * doc/sdccman.lyx: updated to Lyx 1.3
14604         * doc/cdbfileformat.lyx: updated to Lyx 1.3
14605         * doc/test_suite_spec.lyx: updated to Lyx 1.3
14606         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
14607
14608 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
14609
14610         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
14611
14612 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14613
14614         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
14615           additions to the "related tools/documentation" section
14616
14617 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
14618
14619         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
14620
14621 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
14622
14623         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
14624         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
14625
14626 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
14627
14628         * doc/sdccman.lyx: fix double dash and other minor things
14629         * doc/Makefile: fix double dash
14630
14631 2003-05-28  Karl Bongers(patches from Martin Helmling)
14632         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
14633           condition and ignore commands.
14634
14635 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14636
14637         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
14638           is in parts still quite out of date, I did changes as far as I felt makes sense
14639           for a non-native english speaker.
14640           Please feel free to add to the manual or to correct my changes.
14641         * doc/Makefile: undid touching the date of intermediate tex files.
14642
14643 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14644
14645         * doc/sdccman.lyx: Manual has an index now
14646
14647 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
14648
14649         Finalize muluint/mulsint and mululong/mulslong merging:
14650         * device/lib/_mulint.c
14651         * device/lib/_mullong.c
14652         * device/lib/gbz80/mul.s
14653         * device/lib/gbz80/stubs.s
14654         * device/lib/z80/mul.s
14655         * device/lib/z80/stubs.s
14656         * src/SDCCsymt.c (initCSupport)
14657
14658 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14659
14660         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
14661         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
14662           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
14663           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
14664           instead of /Zm500.
14665
14666 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14667
14668         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
14669           the regression tests I'm not brave enough to enable 245.b, 245.c
14670         * doc/sdccman.lyx: added latex preamble for hyperref package.
14671           Using pdflatex this will give you a hyperlinked pdf file with
14672           bookmarks. (prepend '%' before /usepackage if this breaks something)
14673
14674 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14675
14676          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
14677
14678 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
14679
14680         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
14681
14682 2003-05-21    <johan AT balder>
14683
14684         * src/SDCCglue.c (printIval): fixed bug #739934
14685
14686 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
14687
14688         Applied patch from bug 737905 (renamed yylineo to mylineno):
14689         * src/altlex.c
14690         * src/SDCCast.c
14691         * src/SDCglobl.h
14692         * src/SDCC.lex
14693         * src/SDCCsymt.c
14694         * src/SDCCval.c
14695         * src/pic16/pcode.c: Cleaned warnings
14696         * src/pic16/pcodeflow.c: Cleaned warnings
14697         * src/pic16/pcoderegs.c: Cleaned warnings
14698
14699 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
14700
14701         * src/pic16/pcode.c: Cleaned warnings
14702         * src/pic16/pcodepeep.c: Cleaned warnings
14703         * src/pic16/ralloc.c: Cleaned warnings
14704
14705 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
14706
14707         * doc/sdccman.lyx: fixed bug 739745
14708         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
14709
14710 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
14711
14712         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
14713         it can be defined with CFLAGS when running configure
14714         * src/SDCCmain.c: fixed compiling + linking with object files
14715
14716 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
14717
14718         * configure.in: configure for pic16 port,
14719             added --disable-pic16-port
14720         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
14721         * src/SDCCmain.c: linkOptions is changed to set *,
14722             added if/endif conditional macros to remove options help
14723             messages from optionsTable when a port is not configured, added
14724             support for the PIc16 port in the ports table, when executing
14725             the compiler with no port specified on command line, a default
14726             port is selected with the new macro DEFAULT_PORT which is
14727             defined in port.h, in setDefaultOptions() linkOptions is removed
14728             from initialization assignment, since now it is a set,
14729             parseCmdLine uses setParseWithComma for linkOptions, in
14730             linkEdit() linkOptions are accessed with new function indexSet()
14731             which returns the i'th item of a set variable. See SDCCset.c, in
14732             linkEdit() when calling buildCmdLine(), added linkOptions as
14733             last argument. Now users can pass arguments to gplink via the
14734             -Wl option, main() uses pic16glue() to glue up pic16 programs
14735         * src/SDCCpeeph.c: various changes to support pic16
14736         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
14737             return the i'th item of the set
14738         * src/SDCCset.h: added function prototype for indexSet()
14739         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
14740         * src/clean.mk: added pic16 in CLEANALLPORTS variable
14741         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
14742             added macro DEFAULT_PORT
14743         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
14744         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
14745             generated
14746         * src/pic16/glue.c: commented out some error producing lines
14747         * src/pic16/main.c: __config directives are commented out to stop
14748             gpasm complaining and test the linkage with gplink, _linkCmd and
14749             _asmCmd changed to be more gplink and gpasm friendly
14750         * src/pic16/peeph.def: peep rule 3 is commented out, since it
14751             produced an error when parsed, peep rule 12 is added to utilize
14752             movff, but it is commented out since the pCode does not support
14753             yet a command with 2 address arguments
14754
14755 2003-05-18    <johan AT balder>
14756
14757         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
14758         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
14759 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
14760
14761         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
14762   Added feature to script commands from file.
14763
14764 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
14765
14766         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
14767         * src/SDCCutil.c: include ctype.h for win32
14768
14769 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
14770
14771         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
14772
14773 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
14774
14775         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
14776   Fixed so you can set breakpoints prior to run, run does not stop
14777   on entry now.  Add tbreak.  Other enhancements and fixes for use
14778   with ddd.
14779
14780 2003-05-12  Borut Razem <borut.razem AT siol.net>
14781
14782         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
14783
14784 2003-05-11  Borut Razem <borut.razem AT siol.net>
14785
14786         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
14787         the path of bin directory, so that PATH is the only env. variable, which has to be set
14788         in case of standard installation.
14789         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
14790         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
14791         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
14792
14793 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
14794
14795         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
14796         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
14797         temp files are in the port dir; clean the gen/test directory when
14798         generating new test.c
14799         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
14800         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
14801         * support/regression/tests/zeropad.c: added
14802
14803 2003-05-09    <johan AT balder>
14804
14805         * src/SDCCglue.c: fixed bug #597940
14806
14807 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
14808
14809         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
14810   cache sfr, optimize next,step, fix off by one sourceline,
14811   support ddd list function.
14812         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
14813
14814 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
14815
14816         * support/regression/HTMLgen.py: added compare_s2f()
14817         * support/regression/Makefile: redo 1.27
14818         * support/regression/generate-cases.py: redo 1.5
14819
14820 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
14821
14822         * support/regression/tests/float.c: workaround 33 bit hex constant
14823         * support/regression/tests/simplefloat.c: fix division for host
14824
14825 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
14826
14827         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
14828         that tame's the PIC's over-aggressive optimizer.
14829
14830 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14831
14832          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
14833          support for MSVC.
14834
14835 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
14836
14837         Initial support for DS80C400. "Hello world" runs on TINIm400
14838         (with polled I/O).
14839
14840 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
14841
14842          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
14843          * Some notes on ddd usage added in debugger/README
14844          Martin Helmling adding more features and fixes for ddd GUI debugger.
14845          Code added for nexti, stepi, up, down, and other adjustments.
14846
14847 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
14848
14849         * src/pic/pCodepeep.c non-wildcard asmops are now handled
14850         * src/pic/peeph.def Added two rules to optimize carry manipulation
14851         * src/pic/* removed debug printfs
14852
14853 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
14854
14855         * debugger/mcs51/cmd.c: added header newalloc.h
14856
14857 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
14858
14859         * as/Makefile: new EXEEXT
14860         * as/z80/Makefile: remove trailing slash of BUILDIR
14861         * as/z80/clean.mk: new EXEEXT
14862         * Makefile.common.in: add to CFLAGS (and others), don't replace it
14863         * support/cpp2/Makefile.in: new EXEEXT
14864         * src/pic/glue.c (pic14emitRegularMap): fixed warning
14865
14866 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
14867
14868         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
14869         EXEEXT was introduced to fix all related problems with targets
14870         "clean", "install" and "uninstall"; a couple of further flaws
14871         especially with "clean" have been fixed too
14872         * as/mcs51/Makefile.in
14873         * as/mcs51/clean.mk
14874         * as/z80/Makefile
14875         * Makefile
14876         * clean.mk
14877         * debugger/mcs51/Makefile.in
14878         * debugger/mcs51/clean.mk
14879         * link/z80/Makefile
14880         * link/z80/Makefile.in
14881         * link/z80/clean.mk
14882         * link/Makefile
14883         * packihx/Makefile.in
14884         * packihx/clean.mk
14885         * sim/ucsim/Makefile
14886         * sim/ucsim/clean.mk
14887         * sim/ucsim/avr.src/Makefile.in
14888         * sim/ucsim/avr.src/clean.mk
14889         * sim/ucsim/s51.src/Makefile.in
14890         * sim/ucsim/s51.src/clean.mk
14891         * sim/ucsim/xa.src/Makefile.in
14892         * sim/ucsim/xa.src/clean.mk
14893         * sim/ucsim/z80.src/Makefile.in
14894         * sim/ucsim/z80.src/clean.mk
14895         * sim/ucsim/main_in.mk
14896         * sim/ucsim/packages_in.mk
14897         * sim/ucsim/gui.src/Makefile.in
14898         * sim/ucsim/gui.src/serio.src/Makefile.in
14899         * sim/ucsim/gui.src/serio.src/clean.mk
14900         * src/Makefile.in
14901         * src/clean.mk
14902         * support/cpp2/Makefile.in
14903         * support/cpp2/clean.mk
14904         * support/makebin/Makefile
14905         * support/makebin/clean.mk
14906         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
14907         * doc/sdccman.lyx: --program-suffix no longer needed
14908
14909 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
14910
14911          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
14912          Martin Helmling added support for ddd GUI debugger.
14913          Code added to display assembly, set variables, and other commands
14914          to interface to ddd.
14915
14916 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
14917
14918         * as/Makefile: fix target clean
14919         * as/clean.mk: fix target clean
14920         * as/z80/clean.mk: fix target clean
14921
14922 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
14923
14924         * Makefile.common.in: added  AT EXEEXT AT
14925         * configure.in: removed all mingw32 stuff
14926         * configure: rebuilt from configure.in
14927         * doc/sdccman.lyx: updated section "installation"
14928         * support/scripts/sdcc_mingw32: adapted to configure
14929         * support/scripts/sdcc_cygwin_mingw32: added
14930
14931 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
14932
14933         * src/pic Added object file support for the PIC port
14934         * src/pic Applied patch from Craig Franklin (this started the object file support)
14935         * src/regression Updated the PIC regression tests for object files
14936
14937 2003-04-20  Borut Razem <borut.razem AT siol.net>
14938
14939         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
14940           lklex.c: In function `getfid':
14941           lklex.c:203: warning: array subscript has type `char'
14942         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
14943           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
14944         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
14945           stack handling macros
14946
14947 2003-04-19  Borut Razem <borut.razem AT siol.net>
14948
14949         * "handling space characters in file path" task:
14950         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
14951         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
14952         * support/Util/MySystem.h: make it self-sufficient
14953         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
14954           src/z80/main.c, sdcc/as/mcs51/lklex.c:
14955           handling space characters in file path
14956         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
14957           (it will be used by assemblers, which have their own includes, e.g. gpasm)
14958         * support/Util/MySystem.c: handling space characters in executable's path
14959
14960 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
14961
14962         * as/z80/Makefile: fix permanent rebuild of z80
14963         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
14964         * support/regression/tests/bitfields.c: added Johan's bitfields.c
14965
14966 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
14967
14968         * src/SDCCopt.c: add special case optimization to replace modulo by
14969           a power of two with a bitwise AND.
14970
14971 2003-04-18    <johan AT balder>
14972
14973         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
14974
14975 2003-04-17    <johan AT balder>
14976
14977         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
14978         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
14979
14980 2003-04-13  Borut Razem <borut.razem AT siol.net>
14981
14982         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
14983         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
14984           fixed mingw problem in adl_NORMALIZE_PATH
14985
14986 2003-04-12  Borut Razem <borut.razem AT siol.net>
14987
14988         * fixed "#pragma SAVE/RESTORE can not be nested":
14989         * src/SDCC.lex: reworked pragma handling functions
14990         * sdcc/src/SDCCglobl.h: reworked stack handling macros
14991         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
14992
14993 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
14994
14995         * src/SDCCutil.c (pathEquivalent): defined but not used
14996         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
14997         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
14998         * configure: rebuilt from configure.in
14999         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
15000         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
15001         * device/include/Makefile.in: replace sdcc_datadir
15002         * device/lib/Makefile.in: replace sdcc_datadir
15003         * Makefile.common.in: add LDFLAGS from configure
15004         * packihx/Makefile.in: use LDFLAGS
15005         * src/Makefile.in: use LDFLAGS
15006         * support/cpp2/Makefile.in: add LDFLAGS from configure
15007         * support/makebin/Makefile: use LDFLAGS
15008         * .version: bumped version number to 2.3.5
15009
15010 2003-04-12  Borut Razem <borut.razem AT siol.net>
15011
15012         * completed "different paths" task:
15013         * src/SDCCmacro.c: fixed bug in handling quotes
15014         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
15015         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
15016
15017 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
15018
15019         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
15020
15021 2003-04-11 kevin Vigor <kevin AT vigor.nu>
15022
15023         * ds390/gen.c ds390/peeph.def: fix bug 706781
15024
15025 2003-04-11  Borut Razem <borut.razem AT siol.net>
15026
15027         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
15028
15029 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
15030
15031         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
15032         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
15033          set - this bit used to not be set...).
15034         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
15035           bad code in PIC Port
15036         * src/regression/and2.c added to test bug 609268
15037         * src/regression/Makefile added and2.c to regression test
15038
15039
15040 2003-04-08    <johan AT CP255758-A>
15041
15042         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
15043         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
15044         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
15045
15046 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
15047
15048         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
15049         fix bug #487815
15050         * support/cpp2/Makefile.in: fix bug #487815
15051         * configure: rebuilt from configure.in
15052         * Makefile.common.in: docdir changed, new path suffixes
15053         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
15054         * sdcc_vc_in.h: reflect changes from sdccconf.h
15055         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
15056         * src/SDCCutil.h: remove BINDIR hack
15057         * doc/sdccman.lyx: update new path hierarchy
15058
15059 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15060
15061         * src/SDCCpeeph.c: added okToRemoveSLOC test
15062
15063 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15064
15065         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
15066
15067 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15068
15069         * src/SDCCpeeph.c: added labelIsReturnOnly test
15070         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
15071
15072 2003-04-05    <johan AT balder>
15073
15074         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
15075         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
15076         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
15077         * src/SDCCast.c: fixed a warning
15078         * src/SDCCast.h: fixed a warning
15079         * src/SDCCicode.c (operandFromAst): fixed a warning
15080
15081 2003-04-04    <johan AT balder>
15082
15083         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
15084         * src/SDCCast.c (decorateType): fixed bug #715076
15085         * src/SDCC.y: fixed bug #702907
15086
15087 2003-04-03    <johan AT balder>
15088
15089         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
15090         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
15091         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
15092         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
15093         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
15094
15095 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
15096
15097         * _decdptr.c: fix return values
15098         * _gptrget.c: fix return values
15099         * _gptrgetc.c: fix return values
15100         * _gptrput.c: fix return values
15101         * _mulint.c: fix return values
15102         * as/z80/Makefile: fix 'make -j' problem
15103
15104 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
15105
15106         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
15107         * configure.in: big cleanup, updated to autoconf 2.5x
15108         * configure: rebuilt from configure.in
15109         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
15110         * sdcc_vc_in.h: reflect changes from sdccconf.h
15111         * doc/Makefile: fixed a flaw in "make install"
15112
15113 2003-04-02    <johan AT balder>
15114
15115         * src/ds390/gen.c (genCmp): no comments
15116         * src/mcs51/gen.c (genCmp): no comments
15117         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
15118         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
15119
15120 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
15121
15122         * support/regression/generate-cases.py: place generated file in given sub directory
15123         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
15124         * support/regression/Makefile: improvements for 'make -j';
15125         side effect: it's simpler and faster now
15126
15127 2003-03-31  Borut Razem <borut.razem AT siol.net>
15128
15129         * src/z80/main.c: link-{port} and as-{port} defined without path
15130         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
15131
15132 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
15133
15134         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
15135
15136 2003-03-30  Borut Razem <borut.razem AT siol.net>
15137
15138         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
15139           changed type of list parameter to set
15140         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
15141         * src/port.h: changed type of do_assemble() parameter to set
15142         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
15143           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
15144           definition of "cppoutfilename" macro with NULL value in preProcess()
15145         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
15146         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
15147         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
15148           replaced with set *binPathSet
15149         * shash_add() deallocates the item, if allready exsists, before adding the new one
15150         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
15151
15152 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
15153
15154         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
15155           a nested for loop bug in the PIC port
15156         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
15157           for loops
15158
15159 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
15160
15161         * support/Util/dbuf.h: remove C++ stuff to make it portable
15162
15163 2003-03-28  Borut Razem <borut.razem AT siol.net>
15164
15165         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
15166           literal strings in stringLiteral()
15167         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
15168         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
15169           to the project
15170
15171 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
15172
15173         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
15174
15175 2003-03-26    <johan AT balder>
15176
15177         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
15178         * src/ds390/gen.c (saveRegisters): catched symbol abuse
15179         * src/SDCCast.c (decorateType): fixed " -v < 3"
15180
15181 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
15182
15183         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
15184         Added Lenny Story's debug infrastructure changes:
15185         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
15186         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
15187         * src/cdbFile.c: added
15188         * src/SDCCdebug.c: added
15189         * src/SDCCdebug.h: added
15190         * src/SDCCast.c (createFunction)
15191         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
15192         * src/SDCCmain.c (parseCmdLine, main)
15193         * src/SDCCmem.c (redoStackOffsets)
15194         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
15195         * src/SDCCsymt.h
15196         * src/common.h
15197         * src/avr/gen.c (genAVRCode)
15198         * src/ds390/gen.c (gen390Code)
15199         * src/mcs51/gen.c (gen51Code)
15200         * src/pic/gen.c (genpic14Code)
15201         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
15202         * src/xa51/gen.c (genXA51Code)
15203         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
15204
15205 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15206
15207         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
15208         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
15209
15210 2003-03-22    <johan AT balder>
15211
15212         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
15213
15214 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
15215
15216         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
15217         * doc/cdbfileformat.lyx: added, written by Lenny Story
15218         * doc/Makefile: added cdbfileformat.lyx
15219         * doc/clean.mk: added cdbfileformat.lyx
15220
15221 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
15222
15223         * src/mcs51/peeph.def: fix bug #705773
15224
15225 2003-03-20    <johan AT balder>
15226
15227         An sfr/sbit can have an "at #" AND an initializer
15228         * src/SDCCsymt.c (checkSClass):
15229         * src/SDCCmem.c (allocGlobal):
15230         * src/SDCCmem.c (allocLocal):
15231         * src/SDCCast.c (createBlock):
15232
15233 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
15234
15235         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
15236
15237 2003-03-16    <johan AT balder>
15238
15239         Undid the hackup of const and volatile, the problem is much bigger
15240         * src/SDCC.y:1.65
15241         * src/SDCCast.c:1.171
15242         * src/SDCCglue.c:1.138
15243         * src/SDCCicode.c:1.146
15244         * src/SDCCsymt.c:1.150
15245         * src/SDCCval.c:1.65
15246
15247 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
15248
15249         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
15250         * src/ds390/gen.c (genAddrOf): fixed bug #704087
15251
15252 2003-03-13    <johan AT balder>
15253
15254         Hackup const and volatile modifiers in type chains a bit:
15255         * src/SDCC.y:1.63
15256         * src/SDCCast.c:1.169
15257         * src/SDCCglue.c:1.136
15258         * src/SDCCicode.c:1.143
15259         * src/SDCCsymt.c1.146
15260         * src/SDCCsymt.h1.59
15261         * src/SDCCval.c:1.63
15262
15263 2003-03-12    <johan AT balder>
15264
15265         * src/SDCCBBlock.h: more LRH debugging junk
15266         * src/SDCCcflow.h: more LRH debugging junk
15267         * src/SDCCloop.c: more LRH debugging junk
15268         * src/SDCC.y (struct_declaration): fixed bug #697590
15269         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
15270         * src/ds390/gen.c (aopForRemat): fixed bug #700031
15271         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
15272
15273 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15274         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
15275         test function names must now match exactly).
15276         * src/SDCCcse.c: added special case in findCheaperOp to allow
15277         extending a short integer. Makes less awful code for bug 700121 test case.
15278
15279 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15280
15281         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
15282         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
15283
15284 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15285
15286         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
15287         actually called (operandsNotEqual() was called for all
15288         operandsNotEqualX tests).
15289
15290 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15291
15292         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
15293         with shorter literals. Fixes bug 700121.
15294
15295 2003-03-11    <johan AT balder>
15296
15297         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
15298
15299 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
15300
15301         * src/SDCCloop.c (mergeRegions): an evil beast is dead
15302         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
15303
15304 2003-03-10  Borut Razem <borut.razem AT siol.net>
15305
15306         * src/SDCCmain.c: pipe preprocessor's output
15307         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
15308         * sdcc_vc_in.h: define pclose as _pclose for WIN32
15309         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
15310         which closes all pipes in pipeSet set
15311         * src/SDCCset.c: free deleted item in function deleteSetItem()
15312         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
15313         moved from z80 to src subproject
15314         * .version: increased version number to 2.3.4
15315
15316 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
15317
15318         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
15319         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
15320         * support/regression/ports/xa51/spec.mk: fix typo
15321
15322 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
15323
15324         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
15325
15326 2003-03-09  Borut Razem <borut.razem AT siol.net>
15327
15328         * src/SDCCmain.c: pipe preprocessor's output
15329         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
15330         * sdcc_vc_in.h: define pclose as _pclose for WIN32
15331         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
15332         which closes all pipes in pipeSet set
15333         * src/SDCCset.c: free deleted item in function deleteSetItem()
15334         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
15335         moved from z80 to src subproject
15336
15337 2003-03-09  Borut Razem <borut.razem AT siol.net>
15338
15339         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
15340         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
15341         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
15342         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
15343         * src/SDCCglobl.h: unification of WIN32 native definitions
15344
15345 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15346
15347         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
15348
15349 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
15350
15351         * src/configure.in:   check for endianess (even while cross-compiling)
15352         * src/configure:      check for endianess (even while cross-compiling)
15353         * src/configure_in.h: check for endianess (even while cross-compiling)
15354         * src/avr/gen.c:        remove old endianess stuff
15355         * src/mcs51/gen.c:      remove old endianess stuff
15356         * src/ds390/gen.c:      remove old endianess stuff
15357         * src/pic/gen.c:        remove old endianess stuff
15358         * src/pic/genarith.c:   remove old endianess stuff
15359         * src/pic/glue.c:       fix endianess check
15360         * src/pic16/gen.c:      remove old endianess stuff
15361         * src/pic16/genarith.c: remove old endianess stuff
15362         * src/pic16/glue.c:     fix endianess check
15363         * src/xa51/gen.c:       remove old endianess stuff
15364         * src/z80/gen.c:        fix endianess check
15365         * src/SDCCglue.c:       fix endianess check
15366         * src/ds390/peeph.def: fix bug 700036
15367
15368 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
15369
15370         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
15371         * src/configure: find appropriate data-types on host for SDCC's int and long
15372         * src/configure.in: find appropriate data-types on host for SDCC's int and long
15373         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
15374         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
15375
15376 2003-03-07    <johan AT balder>
15377
15378         Just a big NOOP:
15379                 some minor cleanups before the big shot
15380                 OP_DEFS and OP_USES now use Kevin's protection
15381                 new option --nolabelopt
15382
15383         * src/SDCCBBlock.c:
15384         * src/SDCCast.c,:
15385         * src/SDCCcflow.c:
15386         * src/SDCCcse.c:
15387         * src/SDCCicode.c:
15388         * src/SDCCicode.h:
15389         * src/SDCClabel.c:
15390         * src/SDCCloop.c:
15391         * src/SDCCmain.c:
15392         * src/ds390/ralloc.c:
15393         * src/mcs51/ralloc.c:
15394         * src/pic/ralloc.c:
15395         * src/xa51/ralloc.c:
15396         * src/z80/ralloc.c:
15397
15398 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
15399
15400         * src/pic/pcode.c (get_op): fix 64 bit warnings
15401         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
15402         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
15403         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
15404         * support/regression/tests/malloc.c: fix 64 bit warnings
15405
15406 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
15407
15408         * src/mcs51/gen.c (genMinus): fixed bug 696436
15409
15410 2003-03-02  Borut Razem <borut.razem AT siol.net>
15411
15412         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
15413
15414 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
15415
15416         * configure.in: test for mkstemp
15417         * sdccconf_in.h: add HAVE_MKSTEMP
15418
15419 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
15420
15421         * device/include/ctype.h: removed warning while using --stack-auto
15422         * device/include/malloc.h: removed warning while using --stack-auto
15423         * device/include/string.h: removed warning while using --stack-auto
15424
15425 2003-02-23  Borut Razem <borut.razem AT siol.net>
15426
15427         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
15428         because NDEBUG is defined (see man assert)
15429         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
15430
15431 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15432
15433         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
15434         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
15435
15436 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15437
15438         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
15439         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
15440
15441 2003-02-18    <johan AT balder>
15442
15443         * as/mcs51/asmain.c (asmbl): module can start with a digit
15444         * as/z80/asmain.c (asmbl): module can start with a digit
15445
15446 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
15447
15448         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
15449         * src/asm.c: fix pipe() for Mingw32
15450
15451 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
15452
15453         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
15454         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
15455         make -V work again; --c1mode reads now from stdin
15456         * doc/sdccman.lyx: added --c1mode
15457         * support/Util/SDCCerr.c: new messages for c1 mode
15458         * support/Util/SDCCerr.h: new messages for c1 mode
15459         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
15460
15461 2003-02-15    <johan AT balder>
15462
15463         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
15464
15465 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
15466
15467         * doc/sdccman.lyx: Environment variables, -o and other minor things
15468
15469 2003-02-14    <johan AT balder>
15470
15471         * src/xa51/main.c: before anyone really tries to use it :)
15472
15473         * Install doc's in share/sdcc/doc
15474         * removed some obsolete files
15475         * Do a proper make distclean and uninstall
15476         M Makefile.common.in
15477         R sdccbuild.sh
15478         M as/Makefile
15479         M device/include/Makefile.in
15480         M device/lib/Makefile.in
15481         M doc/sdccman.lyx
15482         M link/Makefile
15483         M sim/ucsim/doc/Makefile.in
15484         M src/clean.mk
15485         R src/avr/peeph.rul
15486         R src/xa51/peeph.rul
15487         M support/cpp2/Makefile.in
15488         M support/makebin/Makefile
15489
15490
15491 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
15492
15493         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
15494
15495 2003-02-10  Borut Razem <borut.razem AT siol.net>
15496
15497         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
15498         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
15499         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
15500         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
15501         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
15502         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
15503         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
15504         src/z80/Makefile.bcc: Borland Makefile cleanup
15505         * as/z80/Makefile.bcc: Added Borland Makefile
15506         * support/cpp2/borland.h: Removed
15507
15508 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
15509
15510         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
15511         * src/SDCC.lex: new pragma NOIV
15512         * src/SDCCglobl.h: new pragma NOIV
15513         * src/SDCCmem.c: new pragma NOIV
15514
15515 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
15516
15517         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
15518
15519 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
15520
15521         * src/SDCCmain.c: signal handling is switched off by --debug
15522         * doc/Makefile: small fix for install; use clean.mk again
15523         * doc/clean.mk: clean *.pdf and *.html too
15524
15525 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
15526
15527         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
15528         * device/lib/printfl.c: fix a ds390 bug by making it portable
15529         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
15530         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
15531         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
15532         * debugger/mcs51/cmd.c: converted multi-line string literals
15533         * sim/ucsim/globals.cc: converted multi-line string literals
15534         * src/SDCCmain.c: introduced signal handler to remove temp files
15535         * doc/Makefile: small tweaks, implement clean
15536         * doc: removed generated files
15537
15538 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15539
15540         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
15541         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
15542         Address Record is not correctly generated for DS390."
15543
15544 2003-02-02  Borut Razem <borut.razem AT siol.net>
15545
15546         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
15547         * as/mcs51/asm.h: fixed compilation with Borland C
15548         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
15549         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
15550         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
15551         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
15552         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
15553         src/z80/Makefile.bcc: delete $(LIB) only if exist
15554         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
15555
15556 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
15557
15558         * device/include/malloc.h: introduced NULL
15559         * device/include/string.h: introduced NULL
15560         * device/include/stdlib.h: introduced NULL
15561         * device/lib/_memcpy.c: removed NULL
15562         * device/lib/_strcat.c: removed NULL
15563         * device/lib/_strchr.c: removed NULL
15564         * device/lib/_strcmp.c: removed NULL
15565         * device/lib/_strcpy.c: removed NULL
15566         * device/lib/_strcspn.c: removed NULL
15567         * device/lib/_strlen.c: removed NULL
15568         * device/lib/_strncat.c: removed NULL
15569         * device/lib/_strncmp.c: removed NULL
15570         * device/lib/_strncpy.c: removed NULL
15571         * device/lib/_strpbrk.c: removed NULL
15572         * device/lib/_strrchr.c: removed NULL
15573         * device/lib/_strspn.c: removed NULL
15574         * device/lib/_strstr.c: removed NULL
15575         * device/lib/_strtok.c: removed NULL
15576         * device/lib/malloc.c: removed NULL, include own header
15577
15578 2003-02-02    <johan AT balder>
15579
15580         * 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
15581         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
15582         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
15583         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
15584         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
15585         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
15586
15587 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15588
15589         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
15590         area 'DATA'"
15591
15592 2003-02-01    <johan AT balder>
15593
15594         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
15595
15596 2003-01-31    <johan AT CP255758-A>
15597
15598         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
15599
15600 2003-01-30    <johan AT balder>
15601
15602         * src/SDCCBBlock.c: automatic bug detection
15603         * src/SDCCicode.c: automatic bug detection
15604
15605 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15606
15607         * src/SDCCglobl.h:   now --xram-size 0 works
15608         * src/SDCCmain.c:    now --xram-size 0 works
15609
15610 2003-01-29    <johan AT balder>
15611
15612         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
15613
15614 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15615
15616         * as/mcs51/aslink.h: Added options --xram-size and --code-size
15617         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
15618         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
15619         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
15620         * src/SDCCglobl.h:   Added options --xram-size and --code-size
15621         * src/SDCCmain.c:    Added options --xram-size and --code-size
15622
15623 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
15624
15625         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
15626         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
15627
15628 2003-01-27    <johan AT balder>
15629
15630         * src/SDCC.y: fixed bug #613764
15631
15632 2003-01-26    <johan AT balder>
15633
15634         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
15635         * src/SDCCsymt.h: fixed bug #673374
15636         * src/SDCCglue.c: fixed bug #661910
15637         * src/SDCCast.c: fixed bug #458099 and 673374
15638
15639 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
15640
15641         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
15642         * as/mcs51/strcmpi.h: added
15643         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
15644         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
15645         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
15646         * as/mcs51/assym.c: strcmpi -> as_strcmpi
15647         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
15648         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
15649         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
15650         * as/mcs51/Makefile.aslink: new module strcmpi
15651         * as/mcs51/Makefile.asx8051: new module strcmpi
15652         * as/mcs51/Makefil.bcc: new module strcmpi
15653         * as/mcs51/Makefile.in: new module strcmpi
15654         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
15655
15656 2003-01-26    <johan AT balder>
15657
15658         * src/SDCCglue.c: reverted back to 1.124
15659         * src/SDCCast.c: reverted back to 1.156
15660         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
15661
15662 2003-01-25    <johan AT balder>
15663
15664         * src/SDCCglue.c: A better fix for bug #661910
15665         * src/SDCCast.c: A better fix for bug #661910
15666         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
15667
15668 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
15669
15670         * src/Makefile.in: remove spawn.o
15671         * src/SDCCmain.c: remove spawn.h
15672         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
15673         * src/spawn.c: removed
15674         * src/spawn.h: removed
15675         * support/regression/ports/ds390/spec.mk: link with -r
15676
15677 2003-01-24    <johan AT CP255758-A>
15678
15679         * src/ds390/gen.c (aopOp): fixed bug #667458
15680         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
15681         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
15682         (createIvalCharPtr): an ival doesn't always have a storage class anymore
15683
15684 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
15685
15686         * src/mcs51/peeph.def: better assembler identation by Frieder
15687         * src/mcs51/gen.c: better assembler identation by Frieder
15688
15689 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
15690
15691         * as/z80/string.h: removed for gcc 3.2
15692         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
15693         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
15694
15695 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
15696
15697         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
15698         * src/SDCCpeeph.c (replaceRule): fix bug #663503
15699         * support/regression/Makefile: separate temp files for ports
15700         * support/regression/generate-cases.py: separate temp files for ports
15701         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
15702         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
15703
15704 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
15705
15706         * moved tinitalk to device/examples/ds390
15707
15708 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
15709
15710         * as/mcs51/lkmem.c: rflag is for DS390
15711         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
15712         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
15713                          (linkEdit): move mem- and map-files the same way as ihx-files
15714         * src/z80/main.c (_setDefaultOptions): removed --generic
15715         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
15716         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
15717         * src/pic/glue.c (picglue): --c1mode works again
15718         * src/pic16/glue.c (pic16glue): --c1mode works again
15719         * src/asm.c (printCLine): fix #660034
15720
15721 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
15722
15723         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
15724         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
15725         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
15726         * as/mcs51/lkmem (summary): better fix for sp problem
15727         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
15728         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
15729         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
15730                                               remove --stack-after-data
15731
15732 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
15733
15734         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
15735         * src/SDCCutil.c (join): ugly bug: missing '\0'
15736         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
15737
15738 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
15739
15740         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
15741         * src/port.h: typo
15742         * src/pic/main.c (_asmCmd): gpasm supports -o
15743         * src/z80/main.c: more general macros
15744         * device/lib/Makefile.in: remove intermediate files
15745
15746 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
15747
15748         * .version: Bumped version number to 2.3.3
15749         * src/SDCCBBlock.c: new option -o
15750         * src/SDCCglobl.h: new option -o
15751         * src/SDCCglue.c: new option -o
15752         * src/SDCCmain.c: new option -o
15753         * src/asm.c: new option -o
15754         * src/ds390/main.c: new option -o
15755         * src/pic/glue.c: new option -o
15756         * src/pic/pcode.c: new option -o
15757         * src/pic/ralloc.c: new option -o
15758         * src/pic16/glue.c: new option -o
15759         * src/pic16/pcode.c: new option -o
15760         * src/pic16/ralloc.c: new option -o
15761         * src/z80/main.c: new option -o
15762         * device/lib/Makefile.in: use -o
15763         * support/regression/ports/ds390/spec.mk: use -o
15764         * support/regression/ports/gbz80/spec.mk: use -o
15765         * support/regression/ports/mcs51/spec.mk: use -o
15766         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
15767         * support/regression/ports/z80/spec.mk: use -o
15768         * support/regression/ports/ucz80/spec.mk: use -o
15769         * support/regression/ports/xa51/spec.mk: use -o
15770         * support/regression/fwk/lib/timeout.c: fix usage string
15771
15772 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
15773         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
15774
15775 2003-01-07    <johan AT balder>
15776
15777         * src/SDCCast.c (decorateType): fixed bug #600035
15778
15779 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
15780         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
15781         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
15782         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
15783         * src/pic/pcode.c: outcommented unused variable to remove warnings
15784         * src/pic/ralloc.c: outcommented unused variable to remove warnings
15785
15786 2003-01-06    <karl AT turbobit.com>
15787         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
15788    regression tests.
15789
15790 2003-01-06    <johan AT balder>
15791
15792         * src/SDCCicode.c: fixed array add
15793
15794 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
15795         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
15796         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
15797
15798 2003-01-04    <johan AT balder>
15799
15800         * src/SDCCval.c (getNelements): fixed the initialized array of structures
15801
15802 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15803         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
15804
15805 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
15806         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
15807         * support/regression/tests/bug-524697.c: fit mem usage into 8032
15808
15809 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
15810         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
15811
15812 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
15813         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
15814
15815 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
15816         * src/mcs51/main.c: removed {bindir}{sep} from aslink
15817
15818 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15819
15820     * in /sdcc/as/mcs51/ changed these files in order to create an
15821     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
15822     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
15823     following files to include the previous two files: aslink.dsp,
15824     Makefile.aslink, Makefile.bcc, and Makefile.in.
15825
15826     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
15827     .adb instead of .cdb
15828
15829 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15830
15831         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
15832         value from option --iram-size.
15833
15834 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15835
15836         * /sdcc/as/mcs51/lklist.c: added boundary check before using
15837         dram[] array.
15838
15839 2002-09-18    <wiml AT hhhh.org>
15840
15841         * SDCClrange.h: exposed setFromRange() and setToRange()
15842         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
15843           packRegsForAccUse() (bug 542397)
15844         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
15845           multiple times and emitting the fetch operations more than once
15846           added aopGetUsesAcc() function to allow binary operators to
15847           fetch their operands in the correct order; made genMinus() emit
15848           compact code for X = LITERAL - Y
15849
15850 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15851         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
15852         sprintf() in line 1267.
15853
15854 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15855         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
15856         like ports.
15857
15858 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15859         Changes to aslink (All the changes are marked with 'JCF'):
15860
15861         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
15862         summary().
15863
15864         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
15865         area BSEG.  Also moves, if possible, the DATA area down into the internal
15866         ram so more space is available.
15867
15868         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
15869         sflag.
15870
15871         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
15872         not bytes.  Function summary() which creates a memory usage summary
15873         file with extension .mem.  Reports of overlaping stack and small stack
15874         size.  If the space for the stack is less than 16 bytes aslink trows a
15875         warning.
15876
15877         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
15878         the 8051.  Option 'y' for memory summary output file.
15879
15880         Changes to sdcc (All the changes are marked with 'JCF'):
15881
15882         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
15883
15884         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
15885         overlaying area for it (uses RegBankUsed[4]).
15886
15887         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
15888         bank zero as used by default.  By default aslink locates the stack
15889         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
15890         the creation of the .mem file.  Delegates the allocation of data area
15891         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
15892         the begining of the stack area to aslink.
15893
15894         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
15895         glue() in SDCCglue.c creates an area for it.
15896
15897 2002-09-03  Borut Razem <borut.razem AT siol.net>
15898         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
15899         sdcc/src/pic/glue.c:
15900         introduced atexit() handler for teporay files removal in case of
15901         errors, assertions, ...
15902
15903 2002-08-29  Borut Razem <borut.razem AT siol.net>
15904         * sdcc/support/cpp2/auto-host_vc_in.h:
15905         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
15906         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
15907         Maybe there is a similar problem with BORLANDC? It should be checked!
15908
15909         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
15910         corrected improper use of assert: the assignment to clr variable was done inside the assert.
15911         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
15912         was not executed, and the compiler (cl) launched a warning:
15913         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
15914
15915 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
15916         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
15917
15918 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
15919         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
15920
15921         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
15922           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
15923           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
15924           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
15925           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
15926           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
15927           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
15928         - added Release configuration in VS projects
15929         - review of compiler an linker options
15930         - VC .exe files are generated in bin_vc directory, not to interfere
15931           with binaries generated from other projects (cygwin, mingw, bcc ...)
15932
15933         * sdcc/src/yacc.dsp: added
15934
15935         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
15936         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
15937         and insert the version number definitions from .version
15938
15939         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
15940
15941         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
15942         added - genarate auto-host.h using auto-host_vc_in.h as template
15943
15944         * sdcc/sdcc_vc.h,
15945         removed from CVS, generated automatically
15946
15947 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
15948         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
15949
15950 2002-08-11  Borut Razem <borut.razem AT siol.net>
15951         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
15952
15953 2002-08-10  Borut Razem <borut.razem AT siol.net>
15954         * src/SDCCmain.c (main):
15955         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
15956         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
15957         The consequence was that some temporary files were not removed.
15958
15959         * src/SDCCglue.c:
15960         unification of code in functions tempfilename() and tempfile():
15961         function tempnam() is defined in Visual Studio 6.0 and .NET
15962
15963         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
15964
15965         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
15966           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
15967         - removed compiler command line option /WX: Treats all warnings as errors
15968         - update a list of source files, included into the project
15969
15970         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
15971           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
15972         changed project type to Generic Project so that can be correcly converted to VS.NET project
15973
15974         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
15975
15976         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
15977
15978         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
15979
15980         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
15981         added return 0 statements after assert() to make compiler happy
15982
15983         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
15984         added newline in the def file to keep MSC compiler satisfied
15985
15986         * sdcc/src/z80/gen.c:
15987         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
15988           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
15989         - solved MSC error in function aopDump()
15990
15991         * sdcc_vc.h: define PREFIX as "\\sdcc"
15992
15993 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
15994         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
15995
15996 2002-06-22  Scott Dattalo <scott AT dattalo.com>
15997         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
15998         - Rewrote the register banking algorithm.
15999         - Added pCode live-range analysis to registers (for now, only non-used and
16000         singly-used registers optimized away)
16001
16002         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
16003
16004         * 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.
16005
16006 2002-05-10  Scott Dattalo <scott AT dattalo.com>
16007         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
16008
16009 2002-04-22  Michael Hope  <michaelh AT vroom>
16010
16011         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
16012
16013         * configure.in (DD_COPT): Added include support required for gbdk.
16014
16015         * .version: Bumped version number just to increase it.
16016
16017         * src/SDCCmain.c: Added -nostdinc to the default options.
16018
16019 2002-04-15  Michael Hope  <michaelh AT vroom>
16020
16021         * device/lib/z80/printf.c (sprintf): Added.
16022
16023         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
16024
16025         * src/z80/peeph.def: Added transpose redundent load rule.
16026
16027         * src/z80/main.c: Added force callee saves for jaune.
16028
16029         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
16030
16031         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
16032
16033 2002-03-28  Johan Knol  <johan AT balder>
16034
16035         * src/SDCCval.c: fixed bug #532436
16036
16037 2002-03-14  Scott Dattalo <scott AT dattalo.com>
16038         * /src/port.h:
16039         Added "char *Processor" field to the port structure.
16040
16041         * /src/SDCCmain.c:
16042         Added -p option. Allows port dependent processor to be specified.
16043
16044         * all ports:
16045         Initialized the new field char *Processor field to NULL in all ports
16046
16047         * /src/pic/*:
16048         Compiler generated registers for interrupt context saving
16049         were not getting allocated.
16050
16051 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
16052
16053         * /src/SDCCast.c:
16054         Fixed left shift. Will promote the left side of a left shift
16055         if a) left shifting more than size of operand or b) when assigned
16056         to something size > size of left side
16057
16058 2002-03-14  Scott Dattalo <scott AT dattalo.com>
16059         * src/pic/*
16060         tons of changes. Register allocation has been
16061         rewritten. Added customization for the various PICs. Flow
16062         analysis is restructured. ...
16063
16064         * src/pic/device.h:
16065         Added
16066
16067         * src/pic/device.c:
16068         Added. device.c is a PIC port hack to accomodate variations
16069         in PIC devices.
16070
16071 2002-03-13  Michael Hope  <michaelh AT vroom>
16072
16073         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
16074
16075 2002-03-04  johanknol  <johanknol AT manik>
16076
16077         * /src/SDCCval.c: fixed
16078
16079         const unsigned char arr[][2] = { { 0, 1 } };
16080         t18.c:1: error: Initializer element is not constant
16081
16082 2002-03-04  bela  <bela AT manik>
16083
16084         * /device/include/mcs51reg.h:
16085         ds89c420 register definition update
16086
16087 2002-03-03    <johan AT FRIJA>
16088
16089         * support/Util/SDCCerr.c: did something, but don't no why anymore
16090
16091         * support/regression/tests/bug-524691.c: made it a little less shy
16092
16093         * src/SDCCast.c (decorateType): fixed bug #524697
16094
16095         * src/SDCCast.c: made some lineno improvements
16096
16097         * src/SDCCval.c (getNelements): changed warning to error
16098
16099         * src/SDCCglue.c (printIvalArray): changed warning to error
16100
16101         * src/SDCCicode.c: fixed a warning for mingw
16102
16103         * src/SDCCast.c (decorateType): fixed the << promotion for ops
16104
16105         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
16106
16107 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
16108
16109         * src/ds390/peeph.def:
16110         Added some more peephole rules
16111
16112         * src/ds390/gen.c: Various fixes & enhancements
16113
16114         * src/SDCClrange.c, src/SDCClrange.h:
16115         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
16116
16117         * src/ds390/ralloc.c:
16118         various fixes & enhancements (ds390) specific
16119
16120         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
16121         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
16122         from rallocs.
16123
16124         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
16125
16126 2002-03-02    <johan AT FRIJA>
16127
16128         * src/SDCCast.c (decorateType): fixed bug #524708
16129
16130         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
16131
16132         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
16133
16134 2002-03-01  Michael Hope  <michaelh AT vroom>
16135
16136         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
16137
16138         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
16139
16140 2002-03-01    <johan AT FRIJA>
16141
16142         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
16143
16144         * src/SDCCast.c (decorateType): fixed bug #524209
16145
16146         * src/SDCCval.c (valNot): fixed bug #524195
16147
16148 2002-02-26    <johan AT balder>
16149
16150         * src/xa51/gen.c: fixed a warning
16151
16152         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
16153
16154         * src/SDCCast.c (decorateType): fixed bug #522534
16155
16156 2002-02-23    <johan AT balder>
16157
16158         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
16159
16160 2002-02-22    <johan AT balder>
16161
16162         * src/SDCCast.c: fixed bug #514865
16163
16164         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
16165
16166 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
16167
16168         * sdcc/src/SDCCloop.c:
16169         Previous fix was not good. basic blocks that have "break" or "return" are
16170         not really partof a loop , but live ranges used in these blocks should
16171         be live thru the entire loop, so set partOfLoop but don't add them to
16172         loop region
16173
16174 2002-02-21    <johan AT FRIJA>
16175
16176         * src/SDCCcse.c: fixed bug #514308
16177
16178 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
16179
16180         * src/SDCCloop.c:
16181         Fixed BUG #519583. If a conditional block ended in a return/break
16182         statement inside a loop, it was not being considered part of the loop.
16183
16184         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
16185
16186 2002-02-10  Karl Bongers <karl AT turbobit.com>
16187
16188         * debugger/*:
16189         Fixed up SDCDB debugger somewhat.  Updated debugger/README
16190         with lots of comments and notes.
16191
16192         * device/examples/test2.c:
16193         Fix bug, "red" variable not being initialized(compiler complained).
16194
16195         * device/examples/Makefile, examples/test3.c:
16196         Add Makefile in device/examples folder, compiles test3.c
16197         for use as a multiple module SDCDB test case.
16198
16199         * sim/ucsim/cmd.src/cmdset.cc:
16200         Took out debug printfs in ucsim "next" command.
16201
16202         * sim/ucsim/xa.src:
16203         Karl and Johan start ucsim XA support.  Most dissassembly working,
16204         about 75% emulation done(plenty of work remaining).
16205
16206         * sim/ucsim/z80.src:
16207         Add Z80 support to ucsim, add test-ucz80 regression test,
16208         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
16209         Notice z80 compiler fails on examples/test3.c/crc code.
16210
16211 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
16212
16213         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
16214         Added support for --parms-in-bank1
16215
16216         * src/ds390/peeph.def:
16217         added a few more peephole optimzations
16218
16219         * src/ds390/main.c:
16220         1) added __builtin_inp & __builtin_outp used to read in data of given length
16221            from a memory mapped port
16222         2) added __builtin_memcmp
16223         3) added __builtin_swapw swap bytes of a short
16224
16225         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
16226         1) handle multiple send & receives from register bank1
16227         2) ralloc can now allocate DPTR1 to some liveRanges
16228
16229         * src/SDCCsymt.c, src/SDCCsymt.h:
16230         changes to handle multiple sends & receives
16231
16232         * src/SDCCptropt.h:
16233         added some pointer arithmetic optimization
16234
16235         * src/SDCCptropt.c:
16236         added some pointer arithmetic optimizations but not stable yet so not
16237         called from anywhere (will get this working shortly)
16238
16239         * src/SDCCopt.c: fixed for multiple sends & receives
16240
16241         * src/SDCCmain.c:
16242         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
16243         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
16244            set preprocessor defines (depending on options)
16245
16246         * src/SDCCicode.c, src/SDCCicode.h:
16247         changes made to handle multiple sends & receives
16248
16249         * src/SDCCglobl.h:
16250         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
16251
16252         * src/SDCCcse.c, src/SDCCcse.h:
16253         added function findbackward def (to be used in upcoming optimization)
16254
16255         * src/SDCCcflow.c, src/SDCCcflow.h:
16256         added function returnAtEnd - to determine if a basic block terminates with
16257         a RETURN iCode
16258
16259         * src/SDCCast.c, src/SDCCast.h:
16260         added option parms-in-bank1
16261
16262         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
16263         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
16264         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
16265         adjusted for --parms-in-bank1 option
16266
16267         * device/include/string.h:
16268         donot redefine "reentrant" keyword
16269
16270         * device/include/ds80c390.h: Added some more SFRs
16271
16272 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
16273
16274         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
16275
16276 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
16277
16278         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
16279
16280 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
16281
16282         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
16283
16284 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
16285
16286         * Added --xram-movc option
16287
16288 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
16289
16290         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
16291
16292 2002-01-11  Johan Knol
16293
16294         * Added math lib of Jesus Calvino-Fraga
16295
16296 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
16297
16298         * src/SDCCmain.c (processFile): fix processing of ../../src.c
16299         * support/regression/Makefile: new target test-mcs51-stack-auto
16300         * support/regression/ports/mcs51-stack-auto/spec.mk: added
16301
16302 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
16303
16304         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
16305
16306 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
16307
16308         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
16309
16310 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
16311
16312         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
16313
16314         * src/SDCCglue.h: add definition for printIvalChar()
16315
16316 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
16317
16318         * src/SDCCast.c: fix #498138 by Johan
16319
16320         * src/SDCCglue.c: fix #498138 by Johan
16321
16322 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
16323
16324         * support/regression/Makefile: fix clean
16325
16326         * support/regression/ports/ds390/support.c: fix transmission of last character
16327
16328 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
16329
16330         * /sdcc/src/ds390/gen.c:
16331         a) improved computing address of stack variable
16332         b) took out some #if 0 code
16333         c) improved parmBytes adjustment
16334         d) improved genPlusIncr & genMinusIncr
16335         e) genCmp could generate bad code (when left assigned to DPTR)
16336         f) Fixed bug in hasInc
16337
16338         * /sdcc/src/ds390/ralloc.c:
16339         a) packRegsForSupport could mess up live information (Fixed)
16340         b) packRegsDPTRuse could be incorrect for left & right shift
16341
16342         * /sdcc/src/mcs51/ralloc.c:
16343         packRegsForSupport could mess up the live information (Fixed)
16344
16345         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
16346
16347         * /sdcc/src/SDCCast.c:
16348         can reverse a loop even if function call is present as long
16349         as the loop control variable is local & is not passed as parameter
16350
16351 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16352
16353         * /sdcc/ChangeLog: *** empty log message ***
16354
16355         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
16356         More builtin function additions for TININative
16357
16358         * /sdcc/src/ds390/ralloc.c:
16359         Had broken the regression testsuite
16360
16361         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
16362
16363         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
16364         Added funcattr hasStackParms will be set for reentrant functions when there
16365         are paramteres on the stack, this helps in minimizing frame pointer generation
16366         typeFromStr can handle function pointers now
16367
16368         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
16369         *** empty log message ***
16370
16371 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16372
16373         * /src/ds390/gen.c, /src/ds390/main.c:
16374         More builtin function additions for TININative
16375
16376         * /src/ds390/ralloc.c:
16377         Had broken the regression testsuite
16378
16379         * /src/SDCCast.c: Fixed a bug in dumptree
16380
16381         * /src/SDCCsymt.c, /src/SDCCsymt.h:
16382         Added funcattr hasStackParms will be set for reentrant functions when there
16383         are paramteres on the stack, this helps in minimizing frame pointer generation
16384         typeFromStr can handle function pointers now
16385
16386         * /doc/builtins.txt, /doc/TININative.txt:
16387         *** empty log message ***
16388
16389
16390 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16391
16392         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
16393         ALPHA version for -mTININative
16394
16395         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
16396         updated to reflect changes in the port structure
16397
16398         * /src/port.h:
16399         added function do_assemble (similar to do_link) if non-null this function
16400         will be called to do assembly (-mTININative) requires a multi command
16401         assembly
16402         added function genAssemblerEnd will be called to generate assembler Epilogue
16403
16404         * /src/SDCCsymt.c:
16405         added _JavaNative to debug info printing
16406
16407         * /src/SDCCmain.c: added option --tini-libid
16408         added port->do_assemble function (-mTININative) has a multi command assemble
16409
16410         * /src/SDCCglue.c: Disabled "constExpr" check
16411         added port->genAssemblerEnd function
16412
16413         * /src/SDCCglobl.h: Added option --tini-libid value
16414
16415         * /src/SDCCast.h:
16416         tookout optimizeCompare from the header (has no external references)
16417
16418         * /src/SDCCast.c: made one more function "static"
16419
16420 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
16421
16422         * src/z80/mappings.i: Added z80asm support.
16423
16424         * src/z80/main.c: Added z80asm support on --asm=z80asm
16425
16426         * src/z80/gen.c: Fixed asm portability issues.
16427
16428         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
16429
16430         * src/SDCCglue.c (printExterns): Added global/extern split.
16431
16432 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
16433
16434         * support/regression/Makefile: added test for mcs51 model large
16435
16436         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
16437
16438         * support/regression/ports/gbz80/spec.mk: added -mgbz80
16439
16440 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
16441
16442         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
16443
16444 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
16445
16446         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
16447
16448         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
16449
16450 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
16451
16452         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
16453
16454         * support/regression/tests/simplefloat.c: Port to mcs51.
16455
16456 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
16457         * support/regression/tests/bug-485362.c: Added.
16458
16459         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
16460
16461         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
16462
16463         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
16464
16465         * src/z80/gen.c (aopDump): Added a dump function.
16466
16467 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
16468         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
16469
16470         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
16471
16472         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
16473
16474         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
16475
16476         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
16477
16478         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
16479
16480         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
16481
16482         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
16483
16484         * support/regression/ports/ds390/support.c: Use tinibios.
16485
16486         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
16487
16488 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
16489
16490         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
16491         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
16492
16493         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
16494
16495         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
16496
16497 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
16498
16499         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
16500
16501         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
16502         (packRegsForIYUse): Created and optimised.
16503
16504 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
16505
16506         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
16507 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
16508
16509         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
16510
16511         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
16512
16513         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
16514
16515 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
16516
16517         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
16518
16519         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
16520
16521 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
16522
16523         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
16524
16525         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
16526
16527         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
16528
16529 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
16530
16531         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
16532         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
16533         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
16534
16535         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
16536
16537         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
16538         (genNotFloat): Added.
16539         (genUminusFloat): Added.
16540
16541         * device/lib/z80/Makefile: Added floating pt stubs.
16542
16543         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
16544
16545         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
16546
16547         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
16548
16549 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
16550
16551         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
16552
16553         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
16554
16555         * sdcc/support/regression/Makefile: Add port ds390.
16556
16557         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
16558
16559         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
16560
16561         * sdcc/support/regression/ports/ds390/spec.mk: Added.
16562
16563         * sdcc/support/regression/ports/ds390/support.c: Added.
16564
16565         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
16566
16567         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
16568
16569         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
16570
16571 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
16572
16573         * device/include/malloc.h: Added z80 and gbz80 support.
16574
16575         * device/lib/gbz80/heap.s: Added.
16576
16577         * device/lib/z80/heap.s: Added.
16578
16579         * device/lib/malloc.c: Added z80 and gbz80 support.
16580
16581         * support/regression/tests/malloc.c (testMalloc): Added.
16582
16583         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
16584
16585         * support/regression/tests/bug-478094.c: Added.
16586
16587         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
16588
16589 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
16590
16591         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
16592
16593         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
16594
16595         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
16596
16597         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
16598
16599         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
16600
16601 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
16602
16603         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
16604
16605 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
16606
16607         * support/regression/tests/bug-477927.c: Added.
16608
16609         * src/z80/peeph.def: Added minor rules.
16610
16611         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
16612
16613         * src/z80/peeph.def: Added jump optimisation modification.
16614
16615 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
16616
16617         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
16618
16619 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
16620
16621         * support/regression/tests/funptrs.c: Added.
16622
16623 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
16624
16625         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
16626
16627 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
16628
16629         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
16630
16631         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
16632
16633         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
16634         (movLeft2ResultLong): Created.
16635
16636         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
16637         (joinPushes): Added.  Joins two char pushes into a word push.
16638
16639 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
16640
16641         * support/cpp2/Makefile.in (install): Added creation of dest dir.
16642
16643         * support/makebin/Makefile (install): Added creation of dest dir.
16644
16645 2001-10-24 Karl Bongers <karl AT turbobit.com>
16646
16647         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
16648
16649 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
16650
16651         * src/z80/ralloc.c: Turned off faulty pack for one use.
16652
16653         * src/z80/peeph-gbz80.def: Removed redundent restart options.
16654
16655         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
16656
16657 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
16658
16659         * support/regression/Makefile: Improved clean
16660
16661         * support/regression/ports/gbz80/spec.mk: Added clean
16662
16663         * support/regression/ports/host/spec.mk: Added clean
16664
16665         * support/regression/ports/z80/spec.mk: Added clean
16666
16667         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
16668
16669         * support/regression/ports/mcs51/timeout.c: little improvements
16670
16671 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
16672
16673         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
16674
16675         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
16676
16677         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
16678
16679 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
16680
16681         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
16682
16683         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
16684
16685 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
16686         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
16687
16688         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
16689
16690         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
16691
16692         * src/mcs51/main.c (_linkCmd): Added bin path to command.
16693
16694         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
16695
16696         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
16697
16698         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
16699
16700         * support/regression/tests/longor.c: Added.
16701
16702 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
16703
16704         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
16705
16706         * as/mcs51/aslink.h: define PATH_MAX
16707
16708         * as/mcs51/asm.h: define PATH_MAX
16709
16710         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
16711
16712         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
16713
16714         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
16715
16716         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
16717
16718         * src/SDCCglobl.h: define PATH_MAX
16719
16720         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
16721
16722         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
16723
16724 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
16725
16726         * src/z80/gen.c (gencjneshort): Fixed
16727
16728         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
16729
16730 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
16731
16732         * support/regression/tests/bug-469671.c: Added.
16733
16734         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
16735
16736 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
16737
16738         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
16739
16740         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
16741
16742 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
16743
16744         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
16745
16746         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
16747
16748         * src/device/lib/_mullong.c : removed hint: nooverlay bug
16749
16750         * src/device/lib/_divuint.c : removed hint: nooverlay bug
16751
16752         * src/device/lib/_divulong.c: removed hint: nooverlay bug
16753
16754         * src/device/lib/_moduint.c : removed hint: nooverlay bug
16755
16756         * src/device/lib/_modulong.c: removed hint: nooverlay bug
16757
16758 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
16759
16760         * 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.
16761
16762         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
16763
16764         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
16765
16766 2001-10-07    <johan AT FRIJA>
16767
16768         * device/lib/gets.c (gets): fixed the return value.
16769
16770 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
16771         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
16772
16773         * 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.
16774
16775         * 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.
16776
16777         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
16778
16779         * src/pic/gen.c: Removed Safe_strdup.
16780
16781         * configure.in: Added option to enable libgc support.
16782
16783         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
16784         (bitVectUnion): Optimised.
16785         (bitVectIntersect): Optimised.
16786         (bitVectBitsInCommon): Optimised.
16787         (bitVectCplAnd): Optimised.
16788
16789         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
16790
16791 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16792
16793         * src/SDCCmain.c: distinguish between assembler debug and plain options
16794
16795         * src/avr/main.c:   remove standard assembler options
16796
16797         * src/ds390/main.c: remove standard assembler options
16798
16799         * src/mcs51/main.c: remove standard assembler options
16800
16801         * src/port.h: removed "PENDING" comment
16802
16803 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16804
16805         * src/device/lib/_mulint.c  : new, with assember functions
16806
16807         * src/device/lib/_mullong.c : new, with assember functions
16808
16809         * src/device/lib/_divuint.c : with assember functions
16810
16811         * src/device/lib/_divsint.c : with assember functions
16812
16813         * src/device/lib/_divulong.c: with assember functions
16814
16815         * src/device/lib/_divslong.c: with assember functions
16816
16817         * src/device/lib/_moduint.c : with assember functions
16818
16819         * src/device/lib/_modsint.c : with assember functions
16820
16821         * src/device/lib/_modulong.c: with assember functions
16822
16823         * src/device/lib/_modslong.c: with assember functions
16824
16825         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
16826
16827         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
16828
16829         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
16830                                       replaced _mululong.c and _mulslong.c by _mullong.c
16831
16832 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16833
16834         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
16835
16836 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
16837
16838         * src/SDCCglue.c: test, if win32api is available for MINGW
16839
16840 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
16841
16842         * src/SDCCsymt.c: no more _modifier in printTypeChain()
16843         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
16844         * support/regression/ports/gbz80/spec.mk: removed GENERIC
16845         * support/regression/ports/host/spec.mk: removed GENERIC
16846         * support/regression/ports/mcs51/spec.mk: removed GENERIC
16847         * support/regression/ports/z80/spec.mk: removed GENERIC
16848
16849 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
16850
16851         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
16852
16853         * support/regression/tests/bug-467035.c: Created.
16854
16855 2001-10-01    <johan AT FRIJA>
16856
16857         * src/SDCC.y: fixed bug #466586 part 1
16858
16859 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
16860
16861         * SDCCicode.c: z80 has no generic pointers
16862         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
16863
16864 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
16865
16866         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
16867
16868 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
16869
16870         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
16871
16872         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
16873
16874 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
16875
16876         * configure.in: Fixed up so that ucsim is only configured once.
16877
16878         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
16879
16880         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
16881         (getPathDifference): As above.
16882
16883         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
16884
16885         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
16886
16887 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
16888         * .version: Updated to 2.3.1
16889
16890         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
16891         Added copyright header.
16892
16893         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
16894         (assemble): Added support for macro based assembler commands.
16895         (linkEdit): Added support for macro based linker commands.
16896         (preProcess): Changed the pre-processor to use macros.
16897         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
16898         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
16899
16900         * device/lib/z80/crt0.s: Added module name for debugging.
16901
16902 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
16903
16904         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
16905
16906         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
16907
16908         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
16909
16910         * src/Makefile.in: Added SDCCmacro and SDCCutil
16911
16912 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
16913
16914         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
16915
16916 2001-09-16    <johan AT FRIJA>
16917
16918         * 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.
16919
16920 2001-09-15    <johan AT FRIJA>
16921
16922         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
16923         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
16924
16925 2001-09-11    <johan AT FRIJA>
16926
16927         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
16928
16929 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
16930
16931         * support/regression/tests/bug-460444.c: Added test case.
16932
16933         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
16934         (genCast): Added justification for all of the asserts.
16935
16936 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
16937
16938         * support/regression/support.c: _xdata replaced by xdata
16939
16940         * support/regression/spec.mk: removed _generic
16941
16942 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
16943
16944         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
16945
16946         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
16947         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
16948
16949         * src/z80/peeph.def: Added a rule to optimise shift then compare.
16950
16951         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
16952
16953         * support/regression/tests/bug-460010.c: Added test case.
16954
16955         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
16956
16957 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
16958
16959         * support/regression/Makefile: inter-port-clean adjusted for mcs51
16960
16961         * support/regression/testfwk.c: removed workaround for bug #436344
16962
16963         * support/regression/tests/bp.c: use less memory with mcs51
16964
16965         * support/regression/tests/bug-441448.c: use less memory
16966
16967         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
16968
16969         * support/regression/collate-results.py: typo
16970
16971 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
16972
16973         * support/regression/tests/fetchoverlap.c: Added new test case.
16974
16975         * support/regression/tests/bp.c: Added new test case.
16976
16977         * support/regression/tests/bug-448984.c: Added new test case.
16978
16979         * support/regression/tests/pow2shifts.c: Added new test case.
16980
16981         * src/z80/gen.c: Turned off the noise it normally generates for the release.
16982         (genlshTwo): Fixed right shift for count > 8.
16983
16984         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
16985
16986 2001-09-08    <johan AT FRIJA>
16987
16988         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
16989
16990 2001-09-07    <johan AT FRIJA>
16991
16992         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
16993
16994         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
16995
16996 2001-09-06    <johan AT FRIJA>
16997
16998         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
16999         * bernhard noted me at this: "() equals to (void)" (1.38)
17000
17001 2001-09-05    <johan AT FRIJA>
17002
17003         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
17004
17005 2001-09-04    <johan AT FRIJA>
17006
17007         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
17008
17009
17010 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
17011
17012         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
17013
17014 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
17015
17016         * link/z80/aslink.h: Fixed path for PATH_MAX
17017
17018 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
17019
17020         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
17021
17022         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
17023
17024         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
17025
17026         * 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.
17027
17028 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
17029
17030         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
17031         (genCmp): Fixed up genCmp for the GB with longs.
17032
17033         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
17034
17035         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
17036
17037         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
17038
17039         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
17040
17041 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
17042
17043         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
17044
17045 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
17046
17047         * 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.
17048
17049         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
17050
17051 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
17052
17053         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
17054
17055         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
17056
17057 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
17058
17059   * sim/ucsim/configure:    little improvement of Cygwin-detection
17060   * sim/ucsim/configure.in: little improvement of Cygwin-detection
17061   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
17062   * support/regression/tests/bug-221100.c: small changes for mcs51
17063   * support/regression/tests/bug-221168.c: small changes for mcs51
17064   * support/regression/tests/bug-227710.c: small changes for mcs51
17065   * support/regression/tests/staticinit.c: small changes for mcs51
17066   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
17067   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
17068   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
17069
17070 $Revision$