z80 library cleanup
[fw/sdcc] / ChangeLog
1 2008-12-27 Philipp Klaus Krause <pkk AT spth.de>
2
3         * device/lib/z80/string.c,
4           device/lib/z80/printf.c,
5           device/lib/z80/mul.s:
6           z80 library cleanup
7         * src/z80/gen.c:
8           Fixed code generation bug exposed by builtin memcpy().
9
10 2008-12-27 Philipp Klaus Krause <pkk AT spth.de>
11
12         * device/lib/_memcpy.c:
13           fixed conflict with builtin memcpy()
14
15 2008-12-26 Borut Razem <borut.razem AT siol.net>
16
17         * support/librarian/sdcclib.c:
18           fixed bug 2466950: "sdcclib broken"
19           by removing fgets return value check
20
21 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
22         * src/z80/main.c,
23           src/z80/gen.c,
24           device/include/string.h: Implemented RFE #1914254
25
26 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
27         * device/lib/z80/Makefile.in,
28           device/lib/Makefile.in,
29           device/lib/z80/memmove.s: Implemented RFE #1914256
30
31 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
32
33         * src/z80/peeph-z80.def: fixed a bug in peephole 0zf
34         * src/z80/peep.c: improved checks for unused data
35         * src/z80/gen.c,
36           src/z80/main.c: Implemented RFE #1899189
37
38 2008-12-25 Borut Razem <borut.razem AT siol.net>
39
40         * support/regression/Makefile.in:
41           add -I$(INC_DIR) to SDCCFLAGS only if INC_DIR is defined
42
43 2008-12-25 Philipp Klaus Krause <pkk AT spth.de>
44
45         * src/z80/peeph-z80.def: minor peephole improvements
46
47 2008-12-21 Borut Razem <borut.razem AT siol.net>
48
49         * support/librarian/sdcclib.c: fixed build failure on Mac OS X
50           due to redefinition of symbol __assert
51           sdcclib.c:53:1:warning: "__assert" redefined
52           /Xcode2.5/SDKs/MacOSX10.4u.sdk/usr/include/assert.h:80:1:
53           warning: this is the location of the previous definition
54
55 2008-12-20 Raphael Neider <rneider AT web.de>
56
57         * debugger/mcs51/break.c, debugger/mcs51/cmd.c,
58           debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
59           support/cpp/libcpp/macro.c: fix format string errors
60
61         * sim/ucsim/s51.src/timer2.cc: add clarifying parens
62
63         * src/pic/device.c: partial rewrite using strtok,
64           quieten compiler warnings, adopt SDCC coding style
65
66         * as/link/hc08/lkelf.c, as/link/lkaomf51.c, as/link/lklibr.c,
67           as/link/z80/lkgb.c, as/z80/asout.c, debugger/mcs51/cmd.c,
68           sim/ucsim/utils.cc, src/SDCCasm.c, support/Util/dbuf_string.c,
69           support/cpp/c-ppoutput.c, support/cpp/libcpp/lex.c,
70           support/librarian/sdcclib.c, support/makebin/makebin.c:
71           quieten most compiler warnings
72
73         * sim/ucsim/avr.src/arith_inst.cc: quieten compiler warnings,
74           probably fix operator precedence bug
75
76         * doc/clean.mk: quieten rm if no .lyx is present
77
78 2008-12-19 Borut Razem <borut.razem AT siol.net>
79
80         * doc/sdccman.lyx, doc/random-notes.txt, doc/avr/avr_design.txt,
81           doc/TININative.txt, doc/macro-sys-design.txt, doc/libdoc.txt,
82           doc/README.txt, doc/test_suite_spec.lyx:
83           applied patch 2446381: Dcoumentation spelling correcitons
84           thanks to Steven Borley
85
86 2008-12-16 Raphael Neider <rneider AT web.de>
87
88         * device/include/pic/pic12f629.h,
89           device/include/pic/pic12f675.h,
90           device/lib/pic/libdev/pic12f629.c,
91           device/lib/pic/libdev/pic12f675.c: consolidated, added TRISIO bits
92
93 2008-12-14 Borut Razem <borut.razem AT siol.net>
94
95         * doc/sdccman.lyx, cdbfileformat.lyx, test_suite_spec.lyx:
96           converted to LyX 1.5.7 (\lyxformat 276) format
97
98 2008-12-07 Borut Razem <borut.razem AT siol.net>
99
100         * support/regression/tests/bitfields.c:
101           added test case for bug #2366757
102
103 2008-12-07 Raphael Neider <rneider AT web.de>
104
105         * src/pic16/glue.c (pic16_printIvalBitFields): prevent
106           NULL pointer dereference, closes #2366757
107
108 2008-11-25 Raphael Neider <rneider AT web.de>
109
110         * device/include/pic16/pic16devices.txt,
111           sdcc/src/pic16/device.c,
112           sdcc/src/pic16/device.h: implicitly disable XINST
113           whenever CONFIG4L is set via an additional optional
114           argument to the configword directive in pic16devices.txt
115
116 2008-11-24 Raphael Neider <rneider AT web.de>
117
118         * device/lib/pic16/configure.ac,
119           device/lib/pic16/Makefile.common: fixed quoting issues
120
121         * device/lib/pic16/configure,
122           device/lib/pic16/debug/Makefile.in,
123           device/lib/pic16/libc/Makefile.in,
124           device/lib/pic16/libdev/Makefile.in,
125           device/lib/pic16/libio/Makefile.in,
126           device/lib/pic16/libm/Makefile.in,
127           device/lib/pic16/libsdcc/Makefile.in,
128           device/lib/pic16/Makefile.in,
129           device/lib/pic16/startup/Makefile.in: regenerated
130
131         * src/pic16/main.c (_pic16_finaliseOptions): revert to
132           variant of r5216
133
134 2008-11-24 Raphael Neider <rneider AT web.de>
135
136         * src/pic16/main.c (_pic16_finaliseOptions): do not quote the
137           argument of --asm= or --link= to allow for
138           --asm="sh script --options", the user can double quote the
139           argument if needed: --asm="'c:/program files/gpasm' -q",
140           also fix some potential buffer overflows
141
142 2008-11-19 Borut Razem <borut.razem AT siol.net>
143
144         * doc/sdccman.lyx:
145           fixed 2314467: sdccman.lyx: fix "--" in command line parameters
146           thanks Mauro Giachero
147
148 2008-11-16 Borut Razem <borut.razem AT siol.net>
149
150         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.5
151         * doc/sdccman.lyx: documented fixed unnamed bit-field initialization
152
153 2008-11-15 Borut Razem <borut.razem AT siol.net>
154
155         * src/pic16/glue.c, src/SDCC.y, src/SDCCast.c, src/SDCCglue.c,
156           src/SDCCsymt.c, src/SDCCsymt.h:
157           fixed RFE #2291335 : Unnamed bit-field initialization
158         * support/regression/tests/bitfields.c:
159           added test case for RFE #2291335
160         * support/regression/tests/bug-1981238.c:
161           don't initialize unnamed bit-fields
162
163 2008-11-11 Raphael Neider <rneider AT web.de>
164
165         * device/include/pic16/pic18f25j10.h,
166           device/include/pic16/pic18f45j10.h: remove useless boilerplate
167
168         * device/include/pic16/adc.h,
169           device/lib/pic16/libio/adc/adcbusy.c,
170           device/lib/pic16/libio/adc/adcclose.c,
171           device/lib/pic16/libio/adc/adcconv.c,
172           device/lib/pic16/libio/adc/adcopen.c,
173           device/lib/pic16/libio/adc/adcread.c,
174           device/lib/pic16/libio/adc/adcsetch.c: generalized, documented,
175           and fixed ADC routines to work for more target devices,
176           incorporates patch #2036130 by Nick Materer
177
178 2008-11-10 Steven Borley <steven.borley AT partnerelectronics.com>
179
180         * device/include/ctype.h,
181         * device/include/ds400rom.h,
182         * device/include/ds80c390.h,
183         * device/include/float.h,
184         * device/include/math.h,
185         * device/include/serial.h,
186         * device/include/stdbool.h,
187         * device/include/tinibios.h: replaced non-C89 '//' with '/* */',
188           patch 2195343
189         * device/include/mcs51/C8051F336.h,
190         * device/include/mcs51/C8051T600.h,
191         * device/include/mcs51/C8051T610.h,
192         * device/include/mcs51/C8051T630.h: new, added, patch 2183334
193           (svn commit by Maarten Brock <sourceforge.brock AT dse.nl>)
194
195 2008-11-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
196
197         * device/include/mcs51/P89LPC922.h: fixed #2255989, thanks kubi57
198
199 2008-11-10 Raphael Neider <rneider AT web.de>
200
201         * device/lib/pic16/libdev/mkmk.sh: obey pics.all
202         * device/lib/pic16/libio/mkmk.sh: properly match whole lines in
203           .ignore files, fixes IO libs for 18f242, 18f252, 18f442, and 18f452
204           (patch by Nick Materer, #2253980)
205
206         * device/lib/pic16/libio/adc.ignore,
207           device/lib/pic16/libio/i2c.ignore,
208           device/lib/pic16/libio/usart.ignore,
209           device/lib/pic16/pics.all: updated to build more device libs
210
211         * device/lib/pic16/libdev/Makefile.am,
212           device/lib/pic16/libdev/Makefile.in,
213           device/lib/pic16/libio/Makefile.am,
214           device/lib/pic16/libio/Makefile.in: regenerated
215
216         * src/pic16/device.c (pic16_dump_usection): fixed output of multiple
217           names per memory location, applied SDCC style to more functions
218
219 2008-11-09 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
220
221         * device/include/mcs51/p89lpc933_4.h: new NXP header file
222         * device/include/mcs51/p89lpc935_6.h: new NXP header file
223         * device/include/mcs51/p89v66x.h: minor changes
224           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
225
226 2008-11-09 Raphael Neider <rneider AT web.de>
227
228         * device/include/pic/pic14devices.txt: fixed memory description for
229           12f629 and 12f675, closes #2236240
230
231 2008-11-06 Borut Razem <borut.razem AT siol.net>
232
233         * src/SDCCmain.c: #fixed bug 2224960: sdcc -MM no working correctly
234           pass system include paths with -isystem to sdcpp
235         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c: removed unneeded
236           functions (closePipes), (closeTmpFiles) and (rmTmpFiles)
237
238 2008-11-02 Raphael Neider <rneider AT web.de>
239
240         * doc/sdccman.lyx: updated the sections on the library build process
241           and on how to add support for new devices, and documented known
242           problems with the extended instruction set including a workaround
243
244 2008-11-01 Raphael Neider <rneider AT web.de>
245
246         * device/include/pic16/adc.h,
247           device/include/pic16/pic16devices.txt,
248           device/include/pic16/pic18f2410.h,
249           device/include/pic16/pic18f2510.h,
250           device/include/pic16/pic18f2515.h,
251           device/include/pic16/pic18f2610.h,
252           device/include/pic16/pic18f4410.h,
253           device/include/pic16/pic18f4510.h,
254           device/include/pic16/pic18f4515.h,
255           device/include/pic16/pic18f4610.h,
256           device/include/pic16/pic18fregs.h,
257           device/lib/pic16/libdev/Makefile.am,
258           device/lib/pic16/libdev/Makefile.in,
259           device/lib/pic16/libdev/pic18f2410.c,
260           device/lib/pic16/libdev/pic18f2510.c,
261           device/lib/pic16/libdev/pic18f2515.c,
262           device/lib/pic16/libdev/pic18f2610.c,
263           device/lib/pic16/libdev/pic18f4410.c,
264           device/lib/pic16/libdev/pic18f4510.c,
265           device/lib/pic16/libdev/pic18f4515.c,
266           device/lib/pic16/libdev/pic18f4610.c,
267           device/lib/pic16/libio/Makefile.am,
268           device/lib/pic16/libio/Makefile.in,
269           device/lib/pic16/pics.all: added support for 18f[24][456]10
270           and 18f[24]515 devices
271         * doc/sdccman.lyx: updated list of supported PIC16 devices
272
273         * src/pic/glue.c, src/pic/pcode.c, src/pic/pcodeflow.c,
274           src/pic16/glue.c, src/pic16/pcode.c, src/pic16/pcodeflow.c,
275           src/xa51/gen.c: avoid compiler warnings
276         * support/scripts/inc2h-pic16.pl: removed trailing whitespace
277
278 2008-10-22 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
279
280         * device/include/mcs51/p89v66x.h: NXP header file
281         * device/include/mcs51/p89c66x.h: fixed an SBIT definition
282           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
283
284 2008-10-14 Raphael Neider <rneider AT web.de>
285
286         * device/lib/pic16/libdev/Makefile.am,
287           device/lib/pic16/libio/Makefile.am: enable building libraries for
288           18f2321, 18f4321, 18f2523, 18f4620, 18f66j60, 18f66j65, 18f67j60,
289           18f86j60, 18f86j65, 18f87j60, 18f96j60, 18f96j65, and 18f97j60
290         * device/lib/pic16/libdev/Makefile.in,
291           device/lib/pic16/libio/Makefile.in: regenerated
292
293 2008-10-14 Raphael Neider <rneider AT web.de>
294
295         * device/include/pic16/pic18f2450.h,
296           device/include/pic16/pic18f4450.h,
297           device/lib/pic16/libdev/pic18f2450.c,
298           device/lib/pic16/libdev/pic18f4450.c,
299           device/include/pic16/adc.h,
300           device/include/pic16/pic16devices.txt,
301           device/include/pic16/pic18fregs.h,
302           device/lib/pic16/libdev/Makefile.am,
303           device/lib/pic16/libdev/Makefile.in,
304           device/lib/pic16/libio/Makefile.am,
305           device/lib/pic16/libio/Makefile.in,
306           device/lib/pic16/pics.all: added 18f2450 and 18f4450, closes #1844525
307
308         * device/lib/pic16/libsdcc/stack/stack.S: there is no need to pin the
309           stack to a fixed location, relax it to automatically work with all
310           but the smallest devices (256 byte RAM devices need #pragma stack)
311
312 2008-10-09 Maarten Brock <sourceforge.brock AT dse.nl>
313
314         * debugger/mcs51/break.c: bugfix from patch 1989966, thanks Risto Huotari
315         * debugger/mcs51/simi.c: bugfix from patch 1989972, thanks Risto Huotari
316         * device/lib/_strcspn.c: fixed bug 2140931
317
318 2008-10-06 Raphael Neider <rneider AT web.de>
319
320         * device/include/pic16/stdio.h,
321           device/lib/pic16/libc/stdio/putchar.c: putchar should not be
322           declared __naked for convenience, named all arguments
323         * device/lib/pic16/libc/stdio/strmgpsim.c,
324           device/lib/pic16/libc/stdio/strmmssp.c,
325           device/lib/pic16/libc/stdio/strmusart.c: cosmetic changes
326
327         * src/pic16/pcode.c (createReachingDefinitions): avoid segfault on
328           empty __naked functions,
329         * (pCodeLabelDestruct, pic16_unlinkpCode, pic16_pCodeUnlink): fix
330           corner cases (unlink first/last pCode in list), reuse more code
331
332 2008-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
333
334         * src/ds390/main.c (_ds390_genInitStartup): added
335         * src/SDCCpeeph.c (getPatternVar): new, added,
336           (labelInRange): fixed bug 2115959
337         * src/mcs51/peeph.def (rules 193.x to 198.x): check for labelInRange
338         * src/SDCCicode.h: added newiTempOperand
339         * src/SDCCcse.c (algebraicOpts): fixed bug for x*-1,
340           added optimizations for 0/x and x/-1, see also patch 2142900
341         * support/regression/tests/onebyte.c (testMul): added test cases
342
343 2008-09-20 Borut Razem <borut.razem AT siol.net>
344
345         * src/pic16/glue.c:
346           definition of absolute address symbols without initial value,
347           fixed SDCC crash "do not know how to intialize symbol"
348
349 2008-09-16 Maarten Brock <sourceforge.brock AT dse.nl>
350
351         * device/lib/z80/mul.s (__mulsuchar_rrx_s, __muluschar_rrx_s),
352         * device/lib/z80/div.s (__divsuchar_rrx_s, __modsuchar_rrx_s,
353           __divuschar_rrx_s, __moduschar_rrx_s): added mixed signedness versions
354         * device/lib/z80/stubs.s: added stubs for above functions
355         * src/SDCCopt.c (convilong),
356         * src/SDCCsymt.c (initCSupport): fixed bug 1900961
357         * src/SDCCsymt.h (__muldiv): enlarged for mixed signedness
358         * src/z80/main.c (_hasNativeMulFor): fixed bug, I think
359         * support/regression/tests/onebyte.c: enabled all tests for z80
360
361 2008-09-15 Borut Razem <borut.razem AT siol.net>
362
363         * device/include/pic16/stdio.h, device/lib/pic16/libc/stdio/streams.c,
364           device/lib/pic16/libc/stdio/printf.c,
365           device/lib/pic16/libc/stdio/strmusart.c,
366           device/lib/pic16/libc/stdio/printf_tiny.c,
367           device/lib/pic16/libc/stdio/sprintf.c,
368           device/lib/pic16/libc/stdio/strmgpsim.c,
369           device/lib/pic16/libc/stdio/putchar.c,
370           device/lib/pic16/libc/stdio/fprintf.c,
371           device/lib/pic16/libc/stdio/strmmssp.c,
372           device/device/lib/pic16/libc/stdio/vprintf.c,
373           device/lib/pic16/libc/stdio/printf_small.c,
374           device/lib/pic16/libc/stdio/vsprintf.c,
375           device/lib/pic16/libc/stdio/strmputchar.c,
376           device/lib/pic16/libc/Makefile.am,
377           device/lib/pic16/libc/Makefile.in:
378           *printf now returns int, puchar.c moved from stdlib to stdio,
379           *printf format parameter type changed from char * to const char *,
380           added GNU link excetion text to library source files,
381           applyed GNU coding style, removed useless svn ids,
382           added BINARY_SPECIFIER macro re-enables the use of the removed 'b'
383           binary specifier: "%b", "%hb" and "%lb"
384         * device/lib/pic16/libc/stdio/vfprintf.c:
385           applied patch #2044424: PIC16: vfprintf
386           thanks Mauro Giachero
387         * support/regression/tests/bug1057979.c:
388           removed old pic16 sprintf specifics
389         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.4
390         * doc/sdccman.lyx: documented 'b' binary format specifier removal
391
392 2008-09-15 Raphael Neider <rneider AT web.de>
393
394         * src/pic16/device.c (pic16_dump_usection): force udata sections
395           into the addressable range (0..0xFFF), workaround for a gpsim
396           bug preventing simulation of regtest bug1750318
397         * src/pic16/ralloc.c (deassignLRs): cosmetic changes,
398           (serialRegAssign): fixed regtest bug-971834,
399           (pic16_packRegisters): avoid null-pointer dereference
400
401 2008-09-14 Raphael Neider <rneider AT web.de>
402
403         * src/pic16/gen.c, src/pic16/ralloc.c: use
404           SYM_SPIL_LOC/SPIL_LOC macros, no functional changes
405         * src/pic16/ralloc.c (rematStr): reimplemented, fixes #1818857
406
407 2008-09-12 Borut Razem <borut.razem AT siol.net>
408
409         * support/regression/fwk/testfwk.h:
410           define pdata as data for pic16 target
411           thanks Mauro Giachero
412
413 2008-09-11 Borut Razem <borut.razem AT siol.net>
414
415         * support/regression/tests/bug-221100.c, support/regression/shifts.c,
416           support/regression/absolute.c:
417           applied patch #2105615: Some PIC16 testcase fixlets
418           thanks Mauro Giachero
419
420 2008-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
421
422         * src/z80/gen.c (genCmpGt, genCmpLt): fixed bug 2094505
423         * support/regression/tests/bug2094505.c: new, added
424
425 2008-09-07 Borut Razem <borut.razem AT siol.net>
426
427         * src/SDCCglue.c, src/SDCCast.c:
428           fixed throw of "excess elements" warning for char arrays
429         * support/regression/tests/nullstring.c:
430           disable warning about excess elements in array of chars initializer
431
432 2008-09-07 Maarten Brock <sourceforge.brock AT dse.nl>
433
434         * as/z80/aslist.c (lstsym): changed old K&R to ANSI
435         * src/SDCCicode.c (geniCodeCritical): fixed bug for hc08
436         * src/z80/gen.c (genCritical, genEndCritical): fixed bug 2077267
437         * support/regression/tests/bug2077267.c: new, added
438
439 2008-09-05 Raphael Neider <rneider AT web.de>
440
441         * configure.in, Makefile.common.in: add support for ccache,
442           remove spurious $VERSION output, detect doc-tools even without
443           --enable-doc to facilitate later manual doc-builds, minor cleanup
444         * configure: regenerated
445
446         * doc/Makefile.in: quieten pdflatex, makeindex, and latex2html,
447           avoid races in parallel VPATH builds
448         * doc/clean.mk: remove .lyx files in the builddir for VPATH builds
449         * doc/sdccman.lyx: mention --without-ccache configure option
450
451 2008-09-01 Raphael Neider <rneider AT web.de>
452
453         * src/pic16/gen.c (pic16_derefPtr): handle CPOINTERs as well
454         * (genConstPointerGet): fix reading bitfields from __code space
455         * src/pic16/glue.c (pic16_printIvalBitFields): correctly mask
456           bitfield initializers (fix regression test bug1856409.c)
457         * (pic16_printIvalCharPtr,pic16_printIvalPtr): generalized to support
458           arbitrary sizes
459
460 2008-08-31 Raphael Neider <rneider AT web.de>
461
462         * src/pic16/gen.c (genAssign): removed useless compiler output
463         * (genPointerGet,genPointerSet,genCast),
464           src/pic16/glue.c (pic16_printGPointerType):
465           also handle PPOINTERs just to avoid spurious asserts
466         * (pic16_printIvalType,pic16_printIvalBitFields):
467           generalized to arbitrary type/bitfield sizes, allows compilation of
468           regression test bug-1981238.c
469         * (pic16_printIvalChar): fix regression test structflexarray.c
470         * (pic16_printIvalArray): avoid SIGSEGV on uninitialized strings
471           in initialized structs and fix #1843745
472         * (pic16_printIvalStruct): always output initializers for all fields,
473           even those not explicitly given, fixes zeropad.c regression test
474         * (pic16_printIvalUnion): fix union initializers (bug1426356.c,
475           #2073635, #1567098, and #1485812)
476         * src/pic16/main.c (_pic16_keywords): remove unsupported 'pdata'
477
478 2008-08-31 Borut Razem <borut.razem AT siol.net>
479
480         * support/regression/tests/bug-895992.c,
481           support/regression/tests/onebyte.c:
482           enabled pic16 regression testing since the bugs
483           1511794: pic16: regression test bug-895992.c fails
484           1444425: onebyte.c regression tes fails on pic16
485           are fixed, probably by fixing
486           2048464: PIC16: fix genUminus - addresses not.c regression test
487         * src/SDCCsymt.c, src/SDCCglue.c,
488           support/regression/tests/bug-1981238.c:
489           applied patch 2076664: fix #1981238 + SIGSEGV in SDCCGlue.c
490           thanks to RvS
491
492 2008-08-30 Borut Razem <borut.razem AT siol.net>
493
494         * support/cpp/libcpp/files.c: SDCPP synchronized with GCC CPP
495           release version 4.3.2
496
497 2008-08-24 Raphael Neider <rneider AT web.de>
498
499         * device/lib/pic16/configure, device/lib/pic16/configure.ac:
500           always use the sdcc from the current build tree (ignore $CC from
501           the environment, fixes compile farm builds)
502         * device/lib/Makefile.in: rename .a into .lib for compatibility,
503           remove more build products from install directory
504         * sdcc/src/pic16/main.c (_pic16_linkEdit,_pic16_finaliseOptions)
505         * sdcc/support/scripts/sdcc.nsi: revert to .lib extension for libs
506
507 2008-08-24 Borut Razem <borut.razem AT siol.net>
508
509         * src/SDCC.y: applied patch
510           2050245: Fix # 1963382
511           for bug
512           1963382: Listing File - C file comment is incorrect
513           thanks to RvS
514
515 2008-08-23 Borut Razem <borut.razem AT siol.net>
516
517         * src/pic16/gen.c: applied patch
518           2048464: PIC16: fix genUminus - addresses not.c regression test
519           thanks Mauro Giachero
520
521 2008-08-22 Borut Razem <borut.razem AT siol.net>
522
523         * device/lib/pic16/configure, device/lib/pic16/configure.ac,
524           src/pic16/main.c: allow spaces in gpasm and gplink paths
525
526 2008-08-15 Philipp Klaus Krause <pkk AT spth.de>
527
528         * src/z80/peep.c,
529         * src/z80/peeph-z80.def: minor peephole improvement
530
531 2008-08-15 Raphael Neider <rneider AT web.de>
532
533         * src/z80/gen.c (_vemit2): suppress compiler warning
534
535         * src/pic/*.[ch]: make proper use of header files and avoid
536           ad-hoc extern declarations, mark module-local helpers 'static',
537           removed dead/replaced code, no functional changes
538         * src/pic16/pcode.c: disentangled from pic14 backend
539
540 2008-08-14 Philipp Klaus Krause <pkk AT spth.de>
541
542         * src/z80/gen.c: fixed #2051348
543         * support/regression/tests/bug-2051348.c: regression test for #2051348
544
545 2008-08-10 Raphael Neider <rneider AT web.de>
546
547         * configure.in,
548         * Makefile.common.in: export PACKAGE for $docdir,
549           fixes #1957036, avoid some "underquoted definition" warnings
550         * configure: regenerated
551
552 2008-08-10 Raphael Neider <rneider AT web.de>
553
554         * device/lib/pic16/**: build pic16 library using autotools for
555           improved dependency tracking
556
557         * device/lib/Makefile.in,
558         * src/pic16/main.c,
559         * support/scripts/sdcc.nsi: adapt to changes in filenames (s/.lib/.a/)
560
561 2008-08-10 Raphael Neider <rneider AT web.de>
562
563         * src/pic/pcode.c (ReuseReg): do not overlay the registers used for
564           local variables if --nooverlay is given, workaround for #2023121
565
566 2008-08-08 Raphael Neider <rneider AT web.de>
567
568         * src/pic16/genarith.c (genAddLit): fix structure access (#1888004)
569
570 2008-08-08 Raphael Neider <rneider AT web.de>
571
572         * src/pic/pcoderegs.c,
573         * src/pic/pcode.c,
574         * src/pic16/pcode.c: replace own SAFE_snprintf with common SNPRINTF
575
576 2008-08-07 Borut Razem <borut.razem AT siol.net>
577
578         * src/SDCCval.c, src/SDCCmain.c, src/SDCC.lex,
579           device/lib/pic/Makefile.rules, device/lib/ds390/Makefile.in,
580           device/lib/ds400/Makefile.in, device/lib/hc08/Makefile.in,
581           support/cpp/libcpp/lex.c,  doc/sdccman.lyx:
582           applied modified patch 2038174: Add support for binary constants v2
583           thanks Mauro Giachero
584         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.3
585
586 2008-08-04 Raphael Neider <rneider AT web.de>
587
588         * doc/sdccman.lyx,
589         * src/pic16/device.h,
590         * src/pic16/glue.c,
591         * src/pic16/main.c: enable --optimize-goto by default
592
593         * device/lib/pic16/Makefile.common.in: suppress removed option
594
595         * src/pic16/gen.c,
596         * src/pic16/genutils.c: avoid too long relative branches (#2031890)
597
598 2008-07-30 Borut Razem <borut.razem AT siol.net>
599
600         * src/pic16/device.c, src/pic16/glue.c, src/pic16/pcode.c:
601           applied patch 22032433: PIC16: fix constant strings,
602           thanks Mauro Giachero
603
604 2008-07-29 Borut Razem <borut.razem AT siol.net>
605
606         * src/pic16/gen.c: applied patches:
607           2030306: [1/3] PIC16: fix failing rotate.c tests on 16-bit variables,
608           2030307: [2/3] PIC16: fix failing rotate.c tests for 32-bit var (1),
609           2030310: [3/3] PIC16: fix failing rotate.c tests for 32-bit var (2),
610           thanks Mauro Giachero
611
612 2008-07-13 Philipp Klaus Krause <pkk AT spth.de>
613
614         * src/port.h: Fixed typo in comment
615
616 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
617
618         * src/z80/mappings.i: Implemented RFE #1919415
619         * src/z80/peeph-z80.def: Implemented RFE #1919415, #1861376,
620           #1880202, #1914434, prepared for RFE #1703943
621
622 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
623
624         * src/z80/peeph.def,
625         * src/z80/peeph-z80.def,
626         * src/z80/peeph-gbz80.def: separate Z80 from GBZ80 peepholes in
627           preparation for Z80 peephole improvements
628
629 2008-06-21 Raphael Neider <rneider AT web.de>
630
631         * device/include/pic16/pic18f66j60.h,
632         * device/include/pic16/pic18f66j65.h,
633         * device/include/pic16/pic18f67j60.h,
634         * device/include/pic16/pic18f86j60.h,
635         * device/include/pic16/pic18f86j65.h,
636         * device/include/pic16/pic18f87j60.h,
637         * device/include/pic16/pic18f96j60.h,
638         * device/include/pic16/pic18f96j65.h,
639         * device/include/pic16/pic18f97j60.h,
640         * device/lib/pic16/libdev/pic18f66j60.c,
641         * device/lib/pic16/libdev/pic18f66j65.c,
642         * device/lib/pic16/libdev/pic18f67j60.c,
643         * device/lib/pic16/libdev/pic18f86j60.c,
644         * device/lib/pic16/libdev/pic18f86j65.c,
645         * device/lib/pic16/libdev/pic18f87j60.c,
646         * device/lib/pic16/libdev/pic18f96j60.c,
647         * device/lib/pic16/libdev/pic18f96j65.c,
648         * device/lib/pic16/libdev/pic18f97j60.c,
649         * device/include/pic16/pic16devices.txt,
650         * device/include/pic16/pic18fregs.h,
651         * device/lib/pic16/pics.all: added new devices
652
653         * device/include/pic16/adc.h,
654         * device/lib/pic16/libio/adc/adcbusy.c,
655         * device/lib/pic16/libio/adc/adcopen.c,
656         * device/lib/pic16/libio/adc/adcsetch.c,
657         * device/lib/pic16/libio/i2c/i2copen.c,
658         * device/lib/pic16/libio/usart/uopen.c: adapted to new devices,
659           all changes from a patch by Anton Strobl
660
661 2008-06-12 Borut Razem <borut.razem AT siol.net>
662
663         * sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/bp.cc,
664           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
665           sim/ucsim/z80.src/z80cl.h, sim/ucsim/z80.src/z80.cc,
666           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
667           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
668           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/uc390.cc,
669           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/uc390cl.h,
670           sim/ucsim/avr.src/avrcl.h, sim/ucsim/avr.src/avr.cc:
671           fixed bug 1990586: s51 simulator, uc::disass() unimplemented
672           by applying the modified patch from Risto Huotari
673
674 2008-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
675
676         * .version,
677         * doc/sdccman.lyx: bumped sdcc version to 2.8.2
678         * src/ds390/gen.c (aopPutUsesAcc, genAddrOf): fixed bug 1015185
679         * src/mcs51/gen.c (genNearPointerGet, genNearPointerSet): fixed bug 1938300
680         * support/regression/tests/bug1938300.c: new, added
681
682 2008-06-03 Maarten Brock <sourceforge.brock AT dse.nl>
683
684         * device/include/asm/ds390/features.h,
685         * device/include/asm/mcs51/features.h,
686         * device/include/mcs51/regc515c.h: inserted LGPL notice
687
688 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
689
690         * device/lib/gbz80/div.s,
691         * device/lib/z80/div.s: fixed bug 1904314 by applying a modified part of
692           patch 1597883, Thanks Robert Ramey
693
694 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
695
696         * src/SDCCast.c (createIvalType, createIvalStruct, createIvalArray,
697           createIvalCharPtr, createIvalPtr, createIval),
698         * src/SDCCval.h
699         * src/SDCCval.c (convertIListToConstList, list2expr): handle incomplete
700           initializers for local auto variables
701         * support/regression/tests/zeropad.c: added testcase for auto initializers
702
703 2008-05-26 Raphael Neider <rneider AT web.de>
704
705         * device/lib/pic16/startup/crt0.c,
706         * device/lib/pic16/startup/crt0i.c,
707         * device/lib/pic16/startup/crt0iz.c: clean up, make use of access bank
708           explicit, fixed curr_entry loop for >= 256 initializer records,
709           removed debug code (write to 0xf7e)
710
711 2008-05-25 Raphael Neider <rneider AT web.de>
712
713         * device/include/pic/pic16f627a.h,
714         * device/include/pic/pic16f628a.h,
715         * device/include/pic/pic16f648a.h: added missing ports
716
717 2008-05-20 Maarten Brock <sourceforge.brock AT dse.nl>
718
719         * device/include/float.h: added __INFINITY
720         * device/lib/_fsadd.c: handle overflows
721         * device/lib/_fsmul.c,
722         * device/lib/_fsdiv.c: use __INFINITY
723         * device/lib/_fseq.c,
724         * device/lib/_fsneq.c: handle -0.0
725         * sim/ucsim/s51.src/uc89c51r.cc,
726         * sim/ucsim/s51.src/uc89c51rcl.h: fixed bug 1385430
727         * sim/ucsim/sim.src/hwcl.h: */* confuses VC
728         * src/mcs51/gen.c (genSend): fixed bug with --xstack
729         * support/regression/ports/mcs51-xstack-auto/spec.mk: print floats
730         * support/regression/tests/snprintf.c: test bug with --xstack
731
732 2008-05-19  Philipp Klaus Krause <pkk AT spth.de>
733
734         * src/SDCCpeeph.c (callFuncByName):
735           Support nested parenthesis in peephole function arguments (#1967300)
736
737 2008-05-19 Raphael Neider <rneider AT web.de>
738
739         * src/pic16/gen.c (pic16_emitpLabel,pic16_emitpLabelFORCE):
740           fixed duplicate labels (#1911325)
741
742 2008-05-19 Raphael Neider <rneider AT web.de>
743
744         * src/regression/empty.c: suppress warning
745         * src/regression/pointer1.c: enabled index_by_pointer()
746         * src/regression/inline.c: now works for pic16 as well
747
748         * src/pic16/device.c: include dbuf declarations
749         * src/pic16/device.h: removed obsolete prototypes
750
751         * src/pic16/gen.c, src/pic16/gen.h: moved generic pointer tags
752         * src/pic16/glue.c: made purely local functions static,
753           (pic16_printGPointerType, pic16_printIvalCharPtr,
754           pic16_printIvalFuncPtr, pic16_printIvalPtr): fixed initialized
755           generic pointers' tags (#1961866)
756
757         * src/pic16/pcode.c (assignValnums): optimize literal assignments
758
759 2008-05-19 Borut Razem <borut.razem AT siol.net>
760
761         * support/scripts/sdcc.nsi: remove uninstall.exe after uninstallation,
762           fixed typo, uninstall include/pic16/pic16devices.txt
763
764 2008-05-18 Borut Razem <borut.razem AT siol.net>
765
766         * support/Utils/dbuf_string.[ch]: added dbuf_chomp(),
767           the buffer is null terminated
768         * src/device/pic16.c:
769           applied modified patch 1965676: Patch for Win32 16 bit PIC
770         * sdcc_vc_in.h: defined YY_NO_UNISTD_H
771
772 2008-05-16 Maarten Brock <sourceforge.brock AT dse.nl>
773
774         * src/SDCC.lex (check_type),
775         * src/SDCC.y (type_specifier2 TYPE_NAME): fixed bug 1925942
776         * as/hc08/clean.mk,
777         * as/mcs51/clean.mk,
778         * as/z80/clean.mk: also clean *.dep
779         * device/lib/pic16/libsdcc/stack/Makefile,
780         * sim/ucsim/libtool: removed as they are rebuild by configure
781         * src/clean.mk: removed izt, so Makefile is not deleted for distclean
782
783 2008-05-13 Maarten Brock <sourceforge.brock AT dse.nl>
784
785         * src/SDCCast.c (fixupInline, createFunction): save currBlockno in
786           fixupInline instead of createFunction to fix bug 1864577
787           (inlineFindMaxBlockno): removed, use global blockNo
788         * src/SDCCglobl.h: added blockNo
789         * src/z80/peep.c,
790         * src/z80/peep.h: modified properties
791         * support/regression/tests/bug1864577.c: new, added
792
793 2008-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
794
795         * as/mcs51/asdata.c,
796         * as/mcs51/asm.h: added org_cnt
797         * as/mcs51/asmain.c (main, asmbl): fixed bug 1957716, changed old K&R to ANSI
798         * as/mcs51/asout.c: changed old K&R to ANSI
799         * as/mcs51/Makefile.in: use common identifiers
800         * as/hc08/asdata.c,
801         * as/hc08/asexpr.c,
802         * as/hc08/asm.h,
803         * as/hc08/asmain.c,
804         * as/hc08/asout.c,
805         * as/hc08/Makefile.bcc,
806         * as/hc08/Makefile.in: synchronized with as/mcs51/*
807         * sdcc_vc_in.h: added define __func__
808         * src/SDCCast.c (expandInlineFuncs): applied patch 1957148 to fix bug 1717305,
809           Thanks Ruud van Silfhout
810         * support/regression/tests/bug1717305.c: new, added
811
812 2008-05-05 Borut Razem <borut.razem AT siol.net>
813
814         * support/regression/Makefile.in,
815           support/regression/ports/ds390/spec.mk,
816           support/regression/ports/hc08/spec.mk,
817           support/regression/ports/mcs51-common/spec.mk,
818           support/regression/ports/pic14/spec.mk,
819           support/regression/ports/pic16/spec.mk,
820           support/regression/ports/ucz80/spec.mk,
821           support/regression/ports/z80/spec.mk:
822           added INC_DIR and LIBDIR paths
823         * src/ds390/gen.c: removed duplicated selicolon
824
825 2008-05-04 Borut Razem <borut.razem AT siol.net>
826
827         * support/regression/Makefile.in,
828           support/regression/fwk/lib/testfwk.c,
829           support/regression/ports/ds390/spec.mk,
830           support/regression/ports/hc08/spec.mk,
831           support/regression/ports/mcs51-common/spec.mk,
832           support/regression/ports/mcs51-large/spec.mk,
833           support/regression/ports/mcs51-medium/spec.mk,
834           support/regression/ports/mcs51-small/spec.mk,
835           support/regression/ports/mcs51-stack-auto/spec.mk,
836           support/regression/ports/mcs51-xstack-auto/spec.mk,
837           support/regression/ports/pic14/spec.mk,
838           support/regression/ports/pic16/spec.mk,
839           support/regression/ports/ucz80/spec.mk:
840           added possibility to define the sdcc binary directory SDCC_BIN_PATH
841           used to run regeression tests
842
843 2008-05-01 Raphael Neider <rneider AT web.de>
844
845         * doc/sdccman.lyx, support/scripts/inc2h-pic16.pl: updated list of
846           supported devices and instructions to add new ones
847
848 2008-05-01 Raphael Neider <rneider AT web.de>
849
850         * device/include/pic16/adc.h,
851           device/lib/pic16/libio/adc/adcbusy.c,
852           device/lib/pic16/libio/adc/adcopen.c,
853           device/lib/pic16/libio/adc/adcsetch.c: support old 18f242 and new
854           18f2455 style ADC devices, based on patch #1776197
855         * device/lib/pic16/libio/adc/adcclose.c,
856           device/lib/pic16/libio/adc/adcconv.c,
857           device/lib/pic16/libio/adc/adcread.c: cosmetic changes
858         * device/include/pic16/{pic18f2331.h,pic18f2431.h},
859           device/lib/pic16/libdev/{pic18f2331.c,pic18f2431.c}: reuse 18f4331
860         * device/include/pic16/pic18f4431.h,
861           device/lib/pic16/libdev/pic18f4431.c: remove outdated comments
862         * device/lib/pic16/libio/adc.ignore: forbid unhandled devices
863
864 2008-05-01 Raphael Neider <rneider AT web.de>
865
866         * src/pic16/device.h: removed unused field PIC16_device.sfrRange,
867           moved xinst flag into pic16_options_t
868         * src/pic16/device.c (default_device, pic16_list_devices,
869           pic16_find_device): removed references to sfrrange
870         * src/pic16/gen.c (genFunction),
871           src/pic16/glue.c (pic16initialComments),
872           src/pic16/main.c (pic16_optionsTable),
873           src/pic16/ralloc.c (newReg, pic16_writeUsedRegs): updated references
874           to xinst
875         * device/include/pic16/pic16devices.txt: removed sfrrange lines
876
877 2008-04-29 Raphael Neider <rneider AT web.de>
878
879         * src/pic16/devices.inc,
880           device/include/pic16/pic16devices.txt: replaced compiled-in list
881           of devices with a variant parsed at runtime
882         * src/pic16/device.c: added support for parsing pic16devices.txt,
883           clean up
884         * src/pic16/device.h: removed (now) unused fields from PIC_device
885         * src/pic16/main.c: removed #pragma maxram,
886           (_pic16_initPaths): removed bogus generation of search paths,
887           setup the port proper only after the search paths (for
888           pic16devices.txt) are set up,
889           (_pic16_finaliseOptions): moved processor dependant code here
890           from _pic16_initPaths(), clean up
891         * src/pic16/ralloc.c (pic16_init_stack),
892         * src/pic16/ralloc.h,
893         * src/pic16/pcode.c: clean up
894         * device/include/Makefile.in,
895           support/scripts/sdcc.nsi: also install/package pic16devices.txt
896         * support/scripts/inc2h-pic16.pl: updated instructions
897
898 2008-04-29 Raphael Neider <rneider AT web.de>
899
900         * device/include/pic16/{pic18f2480.h, pic18f2580.h, pic18f4423.h,
901           pic18f4480.h, pic18f4523.h, pic18f4580.h, pic18f6585.h, pic18f8585.h},
902           device/lib/pic16/libdev/{pic18f2480.c, pic18f2580.c, pic18f4423.c,
903           pic18f4480.c, pic18f4523.c, pic18f4580.c, pic18f6585.c, pic18f8585.c}:
904           added missing family members and 18f2480/2580/4480/4580 family
905         * device/include/pic16/{pic18f2423.h, pic18f2523.h}: use 18f4523.h
906         * device/include/pic16/pic18f2525.h: use 18f4620.h
907         * device/include/pic16/pic18f6680.h: use 18f8680.h
908         * device/include/pic16/pic18fregs.h,
909           device/lib/pic16/pics.all,
910           src/pic16/devices.inc: add new devices
911         * device/lib/pic16/libdev/{pic18f2423.c, pic18f2523.c}: use 18f4523.c
912         * device/lib/pic16/libdev/pic18f2525.c: use 18f4620.c
913         * device/lib/pic16/libdev/pic18f6680.c: uso 18f8680.c
914         * device/lib/pic16/libio/{adc.ignore, i2c.ignore, usart.ignore}:
915           prevent attempting to build the libio for some new devices
916
917 2008-04-29 Raphael Neider <rneider AT web.de>
918
919         * debugger/mcs51/Makefile.in: fixed paths to sources
920
921 2008-04-25 Borut Razem <borut.razem AT siol.net>
922
923         * as/link/lklibr.c: moved from as/link/z80/lklibr.c
924         * as/link/hc08/lklibr.c, as/link/mcs51/lklibr.c: deleted
925         * as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
926         * as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
927           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
928           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
929           as/link/z80/linkz80.dsp: lklibr.c moved
930         * doc/INSTALL.txt: binary archives in bz2 format
931         * support/cpp/auto-host_vc_in.h: CPP2 replaced with CPP
932
933 2008-04-23 Maarten Brock <sourceforge.brock AT dse.nl>
934
935         * src/SDCCglue.c (printIvalType, printIvalBitFields): fixed bug 1856409
936         * support/regression/tests/bug1856409.c: new, added
937
938 2008-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
939
940         * src/z80/peep.c,
941         * src/mcs51/peep.c: Use werror for error messages.
942         * src/SDCCicode.c (geniCodeConditional),
943         * src/SDCCsymt.c (structElemType): fixed bug 1839321
944         * src/z80/Makefile.bcc,
945         * src/z80/z80.dsp: added src/z80/peep.c/h
946         * support/regression/tests/bug1839321.c: new, added
947
948 2008-04-20 Raphael Neider <rneider AT web.de>
949
950         * device/include/pic16/pic18f2455.h: added bitfields for port C
951
952 2008-04-20 Philipp Klaus Krause <pkk AT spth.de>
953
954         * src/z80/peep.c: Use werror for error messages.
955
956 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
957
958         * src/z80/peep.h (declaration of notUsed()),
959         * src/z80/main.c (enabled notUsed() for z80 port, documented z80_port
960           struct),
961         * src/z80/z80.h (added dependency on peep.h),
962         * src/z80/peep.c (definition of notUsed()): Implemented RFE #1880202
963           for Z80.
964
965 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
966
967         * src/SDCCpeeph.c (added support for notUsed()),
968         * src/mcs51/main.c (added dependency on peep.h, documented mcs51_port
969           struct),
970         * src/port.h (removed dependency on mcs51/peep.h, added declaration
971           for notUsed()): Implemented generic (that is not port-specific) part
972           of RFE #1880202.
973
974 2008-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
975
976         * as/link/mcs51/lkmem.c (summary2): fixed bug 1796077
977         * device/lib/libsdcc.lib,
978         * device/lib/Makefile.in,
979         * support/regression/ports/mcs51-xstack-auto/spec.mk,
980         * device/lib/calloc.c: renamed to _calloc.c
981         * device/lib/free.c: renamed to _free.c
982         * device/lib/malloc.c: renamed to _malloc.c
983         * device/lib/realloc.c: renamed to _realloc.c
984         * src/ds390/gen.c (aopGet, aopPut, genPlusBits, genDataPointerSet,
985           genNearPointerSet, genPagedPointerSet): synchronized with mcs51/gen.c
986         * src/ds390/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq, ifxForOp,
987           genAnd, genOr, genXor, genIfx, gen390Code): fixed bug 1509084
988         * src/mcs51/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq,
989           ifxForOp, genAnd, genOr, genXor, genNearPointerGet,
990           genPagedPointerGet, genFarPointerGet, genCodePointerGet,
991           genGenPointerGet, genIfx, gen51Code): fixed bug 1509084
992         * src/ds390/gen.c,
993         * src/mcs51/gen.c: throughout cosmetic changes for syncing both
994         * src/SDCCsymt.h: updated IS_OP_RUONLY, IS_OP_ACCUSE
995         * support/regression/tests/bug1509084.c: new, added
996
997 2008-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
998
999         * device/include/mcs51/cc2510fx.h: added _XPAGE
1000         * device/include/mcs51/compiler.h: cosmetic changes
1001
1002 2008-03-31 Maarten Brock <sourceforge.brock AT dse.nl>
1003
1004         * sdcc.dsw: adapted for moved cpp2, added dependency for as_z80 on
1005           config
1006
1007 2008-03-31 Borut Razem <borut.razem AT siol.net>
1008
1009         * support/cpp2 renamed to support/cpp
1010         * support/cpp2/libiberty/filenames.h, support/cpp2/libiberty/hex.c,
1011           support/cpp2/libiberty/splay-tree.c,
1012           support/cpp2/libiberty/splay-tree.h, support/cpp2/libcpp/macro.c,
1013           support/cpp2/libcpp/directives.c,
1014           support/cpp2/libcpp/include/cpplib.h,
1015           support/cpp2/libcpp/include/symtab.h,
1016           support/cpp2/libcpp/include/line-map.h,
1017           support/cpp2/libcpp/line-map.c, support/cpp2/libcpp/files.c,
1018           support/cpp2/libcpp/init.c, support/cpp2/libcpp/traditional.c,
1019           support/cpp2/libcpp/expr.c, support/cpp2/libcpp/internal.h,
1020           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/system.h,
1021           support/cpp2/libcpp/charset.c: SDCPP synchronized with GCC CPP
1022           release version 4.3.0
1023         * configure.in, configure, Makefile.in, Makefile.bcc:
1024           adapted for moved cpp2
1025
1026 2008-03-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1027
1028         * device/include/hc08/mc68hc908jkjl.h: committed fix for bug #1929739,
1029           thanks Alejandro Pustowka <alejo_pustowka AT yahoo.com.mx>
1030
1031 2008-03-30 Maarten Brock <sourceforge.brock AT dse.nl>
1032
1033         * src/SDCCloop.c (loopInvariants): applied fix for bug 1717943, thanks
1034           Robert Larice
1035         * support/regression/tests/bug1717943.c: new, added
1036
1037 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1038
1039         * src/z80/gen.c (assignResultValue): Reverted reversal of order of
1040           bytewise return value assignments introduced in last commit.
1041
1042 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1043
1044         * src/z80/gen.c (emitDebug, assignResultValue, genPlus, genMinus,
1045           genMult, genJumpTab):
1046           Use 16-bit instructions for addition in some additional cases,
1047           implemented RFEs #1914251, #1914245, #1922090, #1921382, #1918323.
1048
1049 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1050
1051         * src/z80/ralloc.c (serialRegAssign, allocReg, tryAllocatingRegPair):
1052           Implemented RFE #1921450, changed some debug messages.
1053
1054 2008-03-30 Borut Razem <borut.razem AT siol.net>
1055
1056         * Small Device C Compiler 2.8.0 released
1057         * .version, doc/sdccman.lyx: changed sdcc version to 2.8.1
1058         * support/scripts/sdcc.nsi: added finish page; this version
1059           was used for 2.8.0 release
1060         * doc/knownbugs.html: removed; magically generated by the build
1061           process using gen_known_bugs.pl from now on
1062
1063 2008-03-23 Borut Razem <borut.razem AT siol.net>
1064
1065         * src/pic/gen.h: Q&D solution for the bug, found by Jim Paris
1066           and reverted it, since it was already fixed by Raphael ;-)
1067         * doc/knownbugs.html: updated for RC2
1068
1069 2008-03-22 Raphael Neider <rneider AT web.de>
1070
1071         * src/SDCCicode.c (getPtrType): avoid unnecessary extra assignments
1072           for PIC16 targets
1073
1074 2008-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
1075
1076         * src/mcs51/gen.c (adjustArithmeticResult): fixed bug 1839299
1077         * support/regression/tests/bug1839277.c: added related testBug1839299
1078
1079 2008-03-21 Maarten Brock <sourceforge.brock AT dse.nl>
1080
1081         * src/ds390/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign),
1082         * src/mcs51/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign):
1083           fixed bug 1839277
1084         * src/mcs51/gen.c: throughout only output hex constants
1085         * src/SDCCicode.c (getPtrType, geniCodeCast): fixed code size regression
1086         * support/regression/tests/bug1839277.c: new, added
1087
1088 2008-03-21 Philipp Klaus Krause <pkk AT spth.de>
1089
1090         * src/z80/ralloc.c (callFuncByName): Used // instead of /**/ to fix
1091           compilation warning about nested comments.
1092
1093 2008-03-20 Maarten Brock <sourceforge.brock AT dse.nl>
1094
1095         * src/SDCCsymt.c (comparePtrType): fixed bug 1921073
1096         * support/regression/tests/bug1921073.c: new, added
1097
1098 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
1099
1100         * src/z80/SDCCpeeph.c.c (callFuncByName):
1101           Commented function parameters.
1102
1103 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
1104
1105         * src/z80/ralloc.c (packRegsForAccUse2):
1106           disabled a broken accumulator packing optimization (fixed #1292721).
1107         * support/regression/tests/bug-1292721: Regression test for #1292721.
1108
1109 2008-03-16 Raphael Neider <rneider AT web.de>
1110
1111         * src/pic/gen.c (SetIrp,genNearPointerGet,genNearPointerSet):
1112           fixed code bloat regression using a variant of patch #1915618
1113
1114 2008-03-16 Borut Razem <borut.razem AT siol.net>
1115
1116         * support/scripts/sdcc.nsi: added section debugging macros, added SDCC
1117           icon, changed startup menu for release distribution, code cleaning,
1118           create url files instead links in startup menu
1119
1120 2008-03-16 Maarten Brock <sourceforge.brock AT dse.nl>
1121
1122         * src/SDCCcse.c (algebraicOpts): fixed bug 1579949
1123         * support/regression/tests/bug1579949.c: new, added
1124
1125 2008-03-14 Paul Stoffregen <paul AT pjrc.com>
1126
1127         * device/lib/printf_fast.c: fixed bug 1255403
1128
1129 2008-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
1130
1131         * doc/sdccman.lyx: enhanced paragraph about bankswitching for mcs51
1132         * src/cdbFile.c (cdbWriteBasicSymbol): fixed bug 1909409 for locals
1133
1134 2008-03-14 Borut Razem <borut.razem AT siol.net>
1135
1136         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated link-xx and aslink
1137           command line options
1138         * as/link/hc08/lkmain.c: converted tabs to spaces so that the usage
1139           is correctly displayed
1140         * as/link/z80/lkmain.c: usage line commented out
1141
1142 2008-03-13 Borut Razem <borut.razem AT siol.net>
1143
1144         * doc/sdccman.lyx: corrected to be able to convert to PDF,
1145           updated the list pf supported pic14 devices
1146
1147 2008-03-12 Maarten Brock <sourceforge.brock AT dse.nl>
1148
1149         * doc/sdccman.lyx: added paragraph about bankswitching for mcs51
1150
1151 2008-03-12 Borut Razem <borut.razem AT siol.net>
1152
1153         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated command line options,
1154           fixed documentation request #1718191
1155         * as/hc80/asmain.c, as/mcs51/asmain.c: added option -c to usage
1156         * doc/sdccman.lyx: added description of --no-std-crt0 gbz80
1157           command line option
1158
1159 2008-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
1160
1161         * src/SDCCast.c (isConformingBody): fixed bug 1505811, thanks Robert Larice
1162         * support/regression/tests/bug1505811.c: new, added
1163
1164 2008-03-09 Raphael Neider <rneider AT web.de>
1165
1166         * device/include/pic16/pic18f2620.h,
1167         * device/include/pic16/pic18f4620.h,
1168         * device/lib/pic16/libdev/pic18f2620.c,
1169         * device/lib/pic16/libdev/pic18f4525.c,
1170         * device/lib/pic16/libdev/pic18f4620.c: merged 18f2525/2620/4525/4620
1171           family to consistently use pic18f4620.[ch], fixes #1832562
1172
1173 2008-03-09 Borut Razem <borut.razem AT siol.net>
1174
1175         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
1176           changed sdcc version to 2.8.0
1177         * knownbugs.html: regenerated
1178         * support/scripts/gen_known_bugs.pl: added number of open bugs
1179
1180 2008-03-09 Raphael Neider <rneider AT web.de>
1181
1182         * src/pic16/gen.c (pic16_mov2w_volatile): NEW, read volatile operands,
1183           (genOr): read volatile operand even if the result is known,
1184           closes #1511838
1185           (genOr,genXor): removed unused legacy code,
1186           (genDummyRead): use pic16_mov2w_volatile()
1187
1188 2008-03-08 Borut Razem <borut.razem AT siol.net>
1189
1190         * src/SDCCglue.c: fixed bug #1864582: multiple definition of char
1191           cons w. --model-large
1192         * support/regression/staticinit.c: added regression test for bug
1193           #1864582
1194
1195 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1196
1197         * src/ds390/gen.c (pushSide, genPcall),
1198         * src/hc08/gen.c (pushSide, genPcall): synchronized with mcs51
1199         * src/mcs51/gen.c: cosmetic changes
1200         * support/regression/fwk/include/testfwk.h: added macro reentrant
1201         * support/regression/tests/bug1908493.c: new, added
1202
1203 2008-03-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1204
1205         * src/SDCCdebug.c:, as/link/lkaomf51.c: Fixed bug 1909409: Pdata in OMF file
1206
1207 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1208
1209         * src/mcs51/gen.c (pushSide, genPcall): fixed bug 1908493
1210         * src/SDCCmain.c (preProcess): removed -DSDCC_PARMS_IN_BANK1 because it is
1211           already set in ds390/main.c and mcs51/main.c
1212
1213 2008-03-07 Raphael Neider <rneider AT web.de>
1214
1215         * src/regression/init0.c: new test for initialized arrays of function
1216           pointers
1217         * src/regression/Makefile: made a bit more flexible, added init0.c
1218         * src/pic/glue.c (emitIvals): hacky fix for initializing from function
1219           pointers, closes #1427663
1220
1221 2008-03-05 Borut Razem <borut.razem AT siol.net>
1222
1223         * dos/sdccman.lyx: docummented predefined macros SDCC_REVISION,
1224           SDCC_PARMS_IN_BANK1, SDCC_FLOAT_REENT and SDCC_INT_LONG_REENT
1225
1226 2008-03-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1227
1228         * support/librarian/sdcclib.c:Added feature request 1908061:
1229           Synchronise sdcclib commands with ar.
1230
1231 2008-03-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1232
1233         * src/SDCCmain.c: added predefined macros SDCC_REVISION (RFE #1907229),
1234           and (depending on corresponding compiler option) SDCC_PARMS_IN_BANK1,
1235           SDCC_FLOAT_REENT, SDCC_INT_LONG_REENT
1236         * device/include/mcs51/compiler.h: removed umlauts, added double
1237           underscore
1238
1239 2008-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
1240
1241         * src/SDCCptropt.c (ptrPseudoSymConvert): fixed bug 1536762
1242         * support/regression/tests/bug1536762.c: new, added
1243         * src/SDCCutil.c,
1244         * src/SDCCutil.h: added getBuildDate()
1245         * src/SDCCmain.c (printVersionInfo),
1246         * src/SDCCglue.c (initialComments): use getBuildDate() instead of
1247           __DATE__
1248         * src/*/ralloc.c: removed IS_OP_RUONLY macro
1249         * src/ds390/ralloc.c (packRegisters),
1250         * src/mcs51/ralloc.c (packRegisters),
1251         * src/z80/ralloc.c (packRegisters): applied fix for bug 1618050, thanks
1252           Robert Larice
1253         * support/regression/tests/bug1618050.c: new, added
1254         * src/SDCCsymt.h: fixed typo in DECLSPEC2TXT
1255         * support/regression/fwk/include/testfwk.h,
1256         * support/regression/tests/bug1838000.c: moved _AUTOMEM and _STATMEM to
1257           testfwk.h
1258
1259 2008-03-04 Raphael Neider <rneider AT web.de>
1260
1261         * src/pic/gen.c: removed unused prototypes, prevent internal errors
1262           on accessing OP_SYM_TYPE(op)
1263         * src/pic/gen.h: removed unused prototype of genMinusDec()
1264         * src/pic/genarith.c (genMinus): cosmetic changes, rewritten to
1265           fix #1876953 (invalid subtraction code), removed unused code
1266
1267 2008-03-03 Raphael Neider <rneider AT web.de>
1268
1269         * src/pic/gen.c,
1270         * src/pic/gen.h,
1271         * src/pic/genarith.c,
1272         * src/pic/ralloc.c,
1273         * src/pic/ralloc.h: removed AOP_R0, AOP_R1, AOP_DPTR, AOP_DPTR2,
1274           AOP_ACC, and *_IDX and adjusted code, removed unused legacy code
1275
1276 2008-03-03 Raphael Neider <rneider AT web.de>
1277
1278         * src/pic/device.c (find_device): search user-specified paths first
1279           for pic14devices.txt, fixes #1900827
1280
1281 2008-03-02 Borut Razem <borut.razem AT siol.net>
1282
1283         * support/scripts/sdcc.nsi: fixed bug in IsNT, LogicLib-isation of
1284           AddToPath and RemoveFromPath
1285
1286 2008-03-01 Borut Razem <borut.razem AT siol.net>
1287
1288         * support/scripts/sdcc.nsi: reverted MULTIUSER page since it didn't
1289           work correctly, added debugging support if -DSDCC.DEBUG command line
1290           option is defined
1291
1292 2008-02-28 Borut Razem <borut.razem AT siol.net>
1293
1294         * doc/sdccman.lyx: cosmetic changes
1295
1296 2008-02-28 Maarten Brock <sourceforge.brock AT dse.nl>
1297
1298         * src/mcs51/ralloc.c (fillGaps): fixed bug 1839671
1299         * doc/sdccman.lyx: fixed unmeant removal of spaces
1300
1301 2008-02-27 Borut Razem <borut.razem AT siol.net>
1302
1303         * support/scripts/sdcc.nsi: corrected installation directory for
1304           current user installation mode
1305         * doc/README.txt: added Philipp Klaus Krause to the developers list
1306
1307 2008-02-27 Maarten Brock <sourceforge.brock AT dse.nl>
1308
1309         * src/mcs51/gen.c (genUnpackBits): don't generate ifxJump, instead
1310           return ifx condition
1311           (genNearPointerGet, genPagedPointerGet, genFarPointerGet,
1312           genCodePointerGet, genGenPointerGet): cleanup aop before generating
1313             ifxJump to fix bug 1838000
1314         * src/SDCCsymt.c (aggregateToPointer): fix problem for xstack
1315         * support/regression/tests/bug1838000.c: new, added
1316         * device/include/mcs51/cc1110.h: new, added, thanks to Pravin Angolkar
1317
1318 2008-02-26 Borut Razem <borut.razem AT siol.net>
1319
1320         * src/SDCCast.c, doc/sdccman.lyx: fixed RFE #1901171: inerger promotion
1321           of casted varargs
1322         * support/scripts/sdcc.nsi: added MULTIUSER page,
1323           NSIS upgraded to version 2.35
1324
1325 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1326
1327         * src/mcs51/ralloc.c (isSpiltOnStack): fixed bug 1565152
1328         * support/regression/tests/bug1565152.c: new, added
1329
1330 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1331
1332         * src/mcs51/gen.c (genPagedPointerSet): fixed bug 1670148
1333         * support/regression/ports/mcs51-xstack-auto/spec.mk: added expf.c
1334         * support/regression/tests/bug1670148.c: new, added
1335
1336 2008-02-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1337
1338         * device/include/mcs51/at89c51ed2.h: fixed bug 1901469.
1339
1340 2008-02-24 Borut Razem <borut.razem AT siol.net>
1341
1342         * src/SDCCast.c, src/SDCCast.h: fixed bug #1874922: explicit typecast
1343           is ineffective for unsigned char parameter
1344
1345 2008-02-24 Maarten Brock <sourceforge.brock AT dse.nl>
1346
1347         * src/SDCCast.c (expandInlineFuncs): fixed bug 1875869
1348         * src/SDCCglue.c (printIvalBitFields): fixed bug 1806631
1349         * support/regression/tests/bitopcse.c: removed hc08 exception, see testfwk.h
1350         * support/Util/MySystem.c (my_system): output errorcode when verbose
1351
1352 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
1353
1354         * src/z80/gen.c (genMult): Rewrote 8-bit multiplication by constant,
1355           implements #1898231
1356
1357 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
1358
1359         * device/lib/z80/mul.s: Rewrote __muluchar_rrx_s, to improve 8-bit mult.,
1360           implements #1896290
1361
1362 2008-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
1363
1364         * src/SDCCast.c (createIvalStruct): fixed bug 1466761
1365
1366 2008-02-21 Borut Razem <borut.razem AT siol.net>
1367
1368         * support/regression/Makefile.in,
1369           support/regression/ports/ds390/spec.mk,
1370           support/regression/ports/hc08/spec.mk,
1371           support/regression/ports/mcs51-common/spec.mk,
1372           support/regression/ports/pic14/spec.mk,
1373           support/regression/ports/pic16/spec.mk,
1374           support/regression/ports/ucz80/spec.mk,
1375           support/regression/ports/xa51/spec.mk:
1376           added CFLAGS when compiling timeout
1377
1378 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1379
1380         * support/regression/tests/bugs-1596270-1736867.c: Regression test for
1381           #1596270, #1736867
1382
1383 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
1384
1385         * src/SDCClrange.c (findPrevUse): fixed bug 1888147
1386         * support/regression/tests/bug1888147.c: new, added
1387
1388 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1389
1390         * src/z80/gen.c: fixed bugs #1596270, #1736867
1391
1392 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1393
1394         * src/z80/gen.c: fixed bug in register pair loading when swapping register
1395           contents, mostly fixes #1596270
1396
1397 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1398
1399         * src/z80/peeph.def,
1400         * src/z80/peeph-z80.def: moved peephole that breaks gbz80 to z80-specific
1401           peepholes, fixes #1806565
1402
1403 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
1404
1405         * src/SDCCpeeph.c (operandBaseName): added check for @Ri
1406         * src/mcs51/peeph.def (rule 177.c): added operandsNotRelated(%1 %3)
1407           fixes bug 1739475, thanks Robert Larice
1408           (rule 271): new, added
1409
1410 2008-02-18 Borut Razem <borut.razem AT siol.net>
1411
1412         * sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
1413
1414 2008-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
1415
1416         * src/SDCCmain.c (linkEdit): emit -z when using --debug for z80
1417
1418 2008-02-17 Raphael Neider <rneider AT web.de>
1419
1420         * src/pic16/genarith.c,
1421         * src/pic16/gen.c,
1422         * src/pic16/gen.h,
1423         * src/pic16/genutils.c: removed unused legacy code,
1424           removed unused fields from struct asmop and struct _G
1425
1426 2008-02-17 Raphael Neider <rneider AT web.de>
1427
1428         * src/pic16/gen.c (AccRsh): cosmetic changes,
1429           (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
1430           genRightShiftLiteral): fixed to work with SFRs as result by
1431           assigning only once to result,
1432           removed a lot of unused/excluded code fragments
1433
1434 2008-02-17 Raphael Neider <rneider AT web.de>
1435
1436         * device/include/pic/pic16f88.h,
1437         * device/include/pic/pic16f886.h,
1438         * device/include/pic/pic16f887.h: added TRISA6 and TRISA7
1439
1440 2008-02-17 Borut Razem <borut.razem AT siol.net>
1441
1442         * src/z80/peeph.def: applied patch
1443           #1893626: Optimize tail calls on Z80, thanks to Philipp Krause
1444         * src/z80/gen.c, src/z80/peeph.def: applied patch
1445           #1893510: Improve logical left shift on Z80, thanks to Philipp Krause
1446         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1447           sim/ucsim/s51.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
1448           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
1449           sim/ucsim/main_in.mk: renamed libutil.a to libucsimutil.a in order to
1450           enable compilation on Mac OS X 10.5 (Leopard) and XCode v3.0
1451
1452 2008-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
1453
1454         * as/link/mcs51/aslink.dsp: removed SDK define
1455         * as/link/z80/clean.mk: brought in sync with other ports
1456         * as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
1457         * as/hc08/Makefile.bcc,
1458         * as/mcs51/Makefile.bcc,
1459         * as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
1460         * src/z80/main.c (_setValues): use the now capitalized -Z,
1461           (z80_port, gbz80_port): generate debug information when asked
1462
1463 2008-02-16 Borut Razem <borut.razem AT siol.net>
1464
1465         * as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
1466           as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
1467           as/z80/Makefile.in. as/z80/Makefile.bcc:
1468           applied patch #1893393: patch for as-z80 and link-z80 to generate
1469           cdb, thanks to Armin Diehl
1470         * as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
1471           as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
1472           asnoice.c moved to as/asxxsrc/asnoice.c
1473         * src/z80/peeph-gbz80.def: applied patch
1474           #1880235: Z80 return peephole, thanks to Philipp Krause
1475
1476 2008-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
1477
1478         * .version,
1479         * doc/sdccman.lyx: bumped version to 2.7.5
1480         * src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583
1481
1482 2008-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
1483
1484         * device/include/pic16/stdlib.h,
1485         * device/lib/pic16/libc/stdlib/ltoa.c,
1486         * device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*
1487
1488 2008-02-13 Borut Razem <borut.razem AT siol.net>
1489
1490         * src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
1491         * src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
1492           src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
1493           src/SDCCopt.c,  src/SDCCval.c:
1494           fixed bug #1890273: SDCC Warning 154 shows wrong filename
1495
1496 2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
1497
1498         * src/SDCCsymt.c (compareType): fixed bug 1309013
1499
1500 2008-02-09 Borut Razem <borut.razem AT siol.net>
1501
1502         * src/SDCCval.c, src/SDCCval.h:
1503           code cleaning, added function constChrVal()
1504         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
1505           call constChrVal() instead constVal()
1506
1507 2008-02-01 Maarten Brock <sourceforge.brock AT dse.nl>
1508
1509         * src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
1510           of function pointer
1511         * src/SDCCerr.h,
1512         * src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
1513         * support/regression/tests/absolute.c: added TestStruct TestVar (see also
1514           bug 1859853)
1515
1516 2008-02-01 Raphael Neider <rneider AT web.de>
1517
1518         * device/include/pic/pic16f886.h,
1519         * device/include/pic/pic16f887.h: added RA6 and RA7
1520
1521 2008-01-24 Raphael Neider <rneider AT web.de>
1522
1523         * device/include/pic/pic16f88.h: added RA6 and RA7
1524         * device/lib/pic/libdev/disabled_pic16f886.c,
1525         * device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled
1526
1527         * src/pic16/devices.inc,
1528         * device/include/pic16/pic18f2423.h,
1529         * device/include/pic16/pic18f2523.h,
1530         * device/include/pic16/pic18fregs.h,
1531         * device/lib/pic16/pics.all
1532         * device/lib/pic16/libdev/pic18f2423.c,
1533         * device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
1534         * device/lib/pic16/libio/i2c.ignore,
1535         * device/lib/pic16/libio/usart.ignore,
1536         * device/lib/pic16/libio/adc.ignore: ignore new devices
1537
1538 2008-01-23 Maarten Brock <sourceforge.brock AT dse.nl>
1539
1540         * src/SDCCast.c (createRMW): fixed bug 1582651
1541
1542 2008-01-20 Borut Razem <borut.razem AT siol.net>
1543
1544         * src/SDCCcse.c: partially fixed enhancement request
1545           #1793872 - multiply by -1 not collapsed
1546         * support/regression/tests/arithcsi.c: added regression test
1547
1548 2008-01-19 Maarten Brock <sourceforge.brock AT dse.nl>
1549
1550         * as/mcs51/asx8051.dsp: removed define SDK
1551         * as/mcs51/i51mch.c (machine): fixed bug 1865114
1552         * device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
1553         * as/link/lklex.c,
1554         * as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
1555           cosmetic changes, brought more in sync, changed old K&R to ANSI
1556
1557 2008-01-13 Borut Razem <borut.razem AT siol.net>
1558
1559         * support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...
1560         * src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
1561
1562 2007-12-30 Borut Razem <borut.razem AT siol.net>
1563
1564         * src/pic16/gen.c: fixed implementation of bitwise operations for
1565           pic16 target
1566         * support/regression/tests/bitwise.c: added test cases
1567
1568 2007-12-29 Borut Razem <borut.razem AT siol.net>
1569
1570         * src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
1571         * src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
1572           src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
1573         * support/Util/dbuf_string.[ch]: added function dbuf_getline()
1574         * src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
1575           src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
1576           src/pic16/pcode.[ch]: added const qualifier
1577         * as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
1578           as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
1579           as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
1580           as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
1581         * as/asxxsrc/aslex.c: use dbuf_getline()
1582         * as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
1583           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
1584           as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
1585           as/z80/asm.h, as/z80/z80adr.c:
1586           changed type of ib and ip to const char *
1587
1588 2007-12-28 Borut Razem <borut.razem AT siol.net>
1589
1590         * as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
1591           introduced (readlin) - long lines are turuncated
1592         * as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
1593           as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
1594           as/z80/Makefile.in: moved aslex.c to asxxsrc
1595         * as/hc08/aslex.c, as/z80/aslex.c: deleted
1596         * as/hc08/asmain.c, as/mcs51/asmain.c:
1597           added missing initialization of a_addr field
1598         * support/regression/tests/long_asm_line.c: added regtest for long
1599           assembler line
1600
1601 2007-12-22 Borut Razem <borut.razem AT siol.net>
1602
1603         * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
1604
1605 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
1606
1607         * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
1608
1609 2007-12-16 Borut Razem <borut.razem AT siol.net>
1610
1611         * device/include/pic16/stdbool.h: removed, since already exists in
1612          device/include/; this also fixes bitopcse.c regression test for pic16
1613          target
1614         * support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
1615         * src/pic16/glue.c: fixed bug #1851855: generic static pointer
1616           dereference doesn't work; covered by regression test bug1399290
1617
1618 2007-12-05 Borut Razem <borut.razem AT siol.net>
1619
1620         * doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
1621           Adding new PIC16
1622
1623 2007-12-01 Borut Razem <borut.razem AT siol.net>
1624
1625         * sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
1626           corrected handling of the highest_valid_address
1627
1628 2007-11-17 Raphael Neider <rneider AT web.de>
1629
1630         * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
1631         * src/pic/glue.c (picglue): emit .file if --debug is given
1632
1633 2007-11-17 Raphael Neider <rneider AT web.de>
1634
1635         * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
1636         care when left or right operand resides in result, fixes #1830220
1637
1638 2007-11-17 Borut Razem <borut.razem AT siol.net>
1639
1640         * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
1641           #983491 - "Merge duplicate strings function is ineffective"
1642         * support/regression/tests/bug-983491.c: regtest disabled
1643         * as/asxxsrc: created
1644           as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
1645           as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
1646           as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
1647           as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
1648           as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
1649           as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
1650           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
1651           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
1652           as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
1653           as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
1654           as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
1655           as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
1656           created as/asxxsrc directory, assym.c and strcpi.c moved into it
1657
1658 2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
1659
1660         * device/include/stdarg.h: added and removed some casts
1661         * src/SDCCsymt.c (compareType): Fully check types between generic and
1662           non-generic pointers, also accept ptr-ptr to void-ptr assignments
1663
1664 2007-11-13 Borut Razem <borut.razem AT siol.net>
1665
1666         * support/regression/tests/bug-1817005.c:
1667           added regtest for bug #1817005 - as-z80 chokes on long labels
1668
1669 2007-11-12 Borut Razem <borut.razem AT siol.net>
1670
1671         * as/z80/asmain.c, as/z80/asm.h, as/z80/assym.c, as/z80/asdata.c,
1672           as/z80/asout.c, as/z80/aslist.c:
1673           fixed bug #1817005 - as-z80 chokes on long labels
1674
1675 2007-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
1676
1677         * as/hc08/asmain.c,
1678         * as/z80/asmain.c: cosmetic changes
1679         * as/hc08/alloc.h,
1680         * as/mcs51/alloc.h,
1681         * as/z80/alloc.h: removed
1682         * as/hc08/assym.c,
1683         * as/mcs51/assym.c: replaced alloc.h with stdlib.h
1684         * as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
1685         * as/link/hc08/Makefile.in,
1686         * as/link/mcs51/Makefile.in,
1687         * as/link/z80/Makefile.in: added -DUNIX to CFLAGS
1688         * as/link/lklex.c,
1689         * as/link/mcs51/lkarea.c,
1690         * as/link/mcs51/lkmain.c: cosmetic changes
1691         * as/link/hc08/lklibr.c,
1692         * as/link/z80/lklibr.c,
1693         * as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
1694           used cygwin_conv_to_full_posix_path,
1695           added warnings, cosmetic changes, brought more in sync
1696           changed old K&R into ANSI function declarations
1697         * as/link/z80/lklibr.c (loadAdb): added
1698         * as/link/z80/lkmain.c: removed -- option from usage text
1699
1700 2007-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
1701
1702         * src/mcs51/gen.c (outBitC): optimized for no result
1703
1704 2007-10-31 Borut Razem <borut.razem AT siol.net>
1705
1706         * src/SDCCsymt.c: fixed (hopeful properly) bug
1707           #1805702 - order of extern matters
1708         * support/regression/tests/bug-1805702.c: enabled regtest for bug
1709           #1805702
1710
1711 2007-10-29 Borut Razem <borut.razem AT siol.net>
1712
1713         * src/SDCCsymt.c: reverted bad fixed of bug #1805702
1714           - order of extern matters
1715         * support/regression/tests/bug-1805702.c: disabled regtest for bug
1716           #1805702
1717
1718 2007-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
1719
1720         * src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
1721           24bitMode, portIsDS390
1722         * src/mcs51/gen.c (genOr): optimized for RFE 1750727
1723         * src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
1724           (notVolatileVariable): also check sloc names,
1725           (callFuncByName): moved ftab[] out of function and sorted it by use
1726
1727 2007-10-28 Maarten Brock <sourceforge.brock AT dse.nl>
1728
1729         * device/include/stdarg.h: fixed bug in va_start macro for --xstack
1730         * src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
1731           aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
1732         * src/SDCCicode.c (geniCodeCast): fixed bug 880197
1733         * support/regression/tests/bug-880197.c: new, added
1734
1735 2007-10-28 Borut Razem <borut.razem AT siol.net>
1736
1737         * support/regression/Makefile.in,
1738           support/regression/ports/mcs51-large/spec.mk,
1739           support/regression/ports/mcs51-xstack-auto/spec.mk,
1740           support/regression/ports/mcs51-stack-auto/spec.mk,
1741           support/regression/ports/mcs51-medium/spec.mk,
1742           support/regression/ports/mcs51-common/spec.mk,
1743           support/regression/ports/mcs51-common/*,
1744           support/regression/ports/mcs51-small/*:
1745           mcs51 renamed to mcs51-common, created mcs51-small
1746         * src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
1747         * support/regression/tests/bug-1805702.c: added regtest for bug
1748           #1805702
1749
1750 2007-10-26 Maarten Brock <sourceforge.brock AT dse.nl>
1751
1752         * src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b,
1753           added new rules 265 - 270
1754         * support/regression/tests/bug1721024.c:new, added
1755         * support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
1756           introduced new test-mcs51 to run all mcs51 tests
1757
1758 2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
1759
1760         * support/regression/tests/bug1816470.c: new, added
1761
1762 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
1763
1764         * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
1765           propagate for *,+,- with float, fixed bug 1816470
1766           (decorateType): cast to resultTypeProp instead of resultType
1767
1768 2007-10-19 Borut Razem <borut.razem AT siol.net>
1769
1770         * src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
1771           function is ineffective" for pic16 tareget
1772         * support/scripts/listerr.c: corrected include path
1773         * device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
1774           adjacent memory
1775
1776 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
1777
1778         * support/regression/tests/using.c: new, added
1779         * support/regression/tests/vaargs.c: fixed and enabled test
1780
1781 2007-10-18 Borut Razem <borut.razem AT siol.net>
1782
1783         * src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
1784           is ineffective
1785         * support/regression/tests/bug-983491.c: added regtest for bug #983491
1786
1787 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
1788
1789         * doc/sdccman.lyx: documented option --Werror
1790         * src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
1791           RegBankUsed[] earlier
1792
1793 2007-10-14 Maarten Brock <sourceforge.brock AT dse.nl>
1794
1795         * device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
1796         * src/pic/glue.c,
1797         * src/SDCCval.c,
1798         * src/SDCCast.c,
1799         * src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
1800           AST_ULONG_VALUE
1801         * src/SDCCast.c (decorateType): improved optimization of tri-op
1802         * src/SDCCerr.c (vwerror, setWError),
1803         * src/SDCCerr.h,
1804         * src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
1805           warnings as errors, thanks Stas Sergeev for PATCH 1813211
1806
1807 2007-10-13 Maarten Brock <sourceforge.brock AT dse.nl>
1808
1809         * src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
1810         * src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
1811         * support/regression/tests/bug-223113.c,
1812         * support/regression/tests/bug-426632.c,
1813         * support/regression/tests/bug-468811.c,
1814         * support/regression/tests/bug-477835.c,
1815         * support/regression/tests/bug-478094.c,
1816         * support/regression/tests/bug-499644.c,
1817         * support/regression/tests/bug-524209.c,
1818         * support/regression/tests/bug-524211.c,
1819         * support/regression/tests/packcast.c,
1820         * support/regression/tests/structidx.c: added empty tests
1821         * support/regression/tests/bug-607243.c: enabled test
1822
1823 2007-10-06 Borut Razem <borut.razem AT siol.net>
1824
1825         * .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
1826            support of universal binaries on Mac OS X
1827
1828 2007-10-02 Borut Razem <borut.razem AT siol.net>
1829
1830         * src/SDCCval.h: unified double2ul macro for all platforms
1831         * src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
1832         * support/regression/tests/bitwise.c: added regtest for bug #1777758
1833
1834 2007-09-30 Borut Razem <borut.razem AT siol.net>
1835
1836         * src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
1837           platforms
1838         * sdcc_vc_in.h: enabled warnings
1839         * src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
1840           unsigned type, result still unsigned
1841         * src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
1842
1843 2007-09-28 Raphael Neider <rneider AT web.de>
1844
1845         * src/pic/device.c (find_device): prevent buffer underflow error
1846         * src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
1847           the just destroyed list entry
1848
1849 2007-09-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1850
1851         * doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks
1852           Alexander Neundorf
1853
1854 2007-09-18 Borut Razem <borut.razem AT siol.net>
1855
1856         * src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
1857          applied to unsigned type, result still unsigned
1858
1859 2007-09-17 Borut Razem <borut.razem AT siol.net>
1860
1861         * src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c,
1862           src/SDCCicode.c, src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c,
1863           src/SDCCval.h, src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c,
1864           src/mcs51/gen.c, src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c,
1865           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/genarith.c,
1866           src/pic16/genutils.c, src/pic16/glue.c, src/pic16/main.c,
1867           src/z80/gen.c, src/z80/ralloc.c:
1868           fixed bug #1739860 - sdcc does not work correctly on some platforms
1869           (not finished)
1870           introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()
1871
1872 2007-09-17 Raphael Neider <rneider AT web.de>
1873
1874         * src/pic16/device.c: reverted to previous version
1875         * device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q
1876
1877 2007-09-16 Raphael Neider <rneider AT web.de>
1878
1879         * src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
1880           as this raises a ton of gpasm warnings, just emit a second label
1881         * src/pic16/devices.inc,
1882         * device/lib/pic16/pics.all,
1883         * device/lib/pic16/libdev/pic18f2585.c,
1884         * device/lib/pic16/libdev/pic18f2680.c,
1885         * device/lib/pic16/libdev/pic18f2682.c,
1886         * device/lib/pic16/libdev/pic18f2685.c,
1887         * device/lib/pic16/libdev/pic18f4585.c,
1888         * device/lib/pic16/libdev/pic18f4680.c,
1889         * device/lib/pic16/libdev/pic18f4682.c,
1890         * device/lib/pic16/libdev/pic18f4685.c,
1891         * device/include/pic16/pic18f2585.h,
1892         * device/include/pic16/pic18f2680.h,
1893         * device/include/pic16/pic18f2682.h,
1894         * device/include/pic16/pic18f2685.h,
1895         * device/include/pic16/pic18f4585.h,
1896         * device/include/pic16/pic18f4680.h,
1897         * device/include/pic16/pic18f4682.h,
1898         * device/include/pic16/pic18f4685.h,
1899         * device/include/pic16/pic18fregs.h: added 18f2585, 18f2680,
1900           18f2682, 18f2685, 18f4585, 18f4680, 18f4682, 18f4685,
1901           patch contributed by Anton Strobl, applied with changes
1902
1903 2007-09-16 Raphael Neider <rneider AT web.de>
1904
1905         * device/include/pic16/pic18f2431.h,
1906         * device/include/pic16/pic18f25j10.h,
1907         * device/include/pic16/pic18f4431.h,
1908         * device/include/pic16/pic18f45j10.h: adopted common include style
1909         * device/include/pic16/pic18f1320.h,
1910         * device/include/pic16/pic18f2320.h,
1911         * device/include/pic16/pic18f2525.h,
1912         * device/include/pic16/pic18f4320.h,
1913         * device/include/pic16/pic18f4525.h: NEW, just include proper .h file
1914         * device/include/pic16/pic18fregs.h: prepared for automatic include
1915           file selection by having DEVICE.h for every DEVICE
1916         * device/lib/pic16/libdev/pic18f2320.c,
1917         * device/lib/pic16/libdev/pic18f4320.c: just include proper .c file
1918
1919         * device/lib/pic16/configure.in,
1920         * device/lib/pic16/configure: use rm -rf instead of rmdir
1921         * device/lib/pic16/Makefile.in: use RMDIR to remove build directories
1922         * device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast
1923
1924 2007-09-09 Borut Razem <borut.razem AT siol.net>
1925
1926         * src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
1927           distingush between i386 and ppc Mac OS X versions
1928
1929 2007-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
1930
1931         * src/mcs51/gen.c (genReceive): fixed bug 1788177
1932         * support/regression/tests/bug1788177.c: new, added
1933
1934 2007-09-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1935
1936         * doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
1937         * device/include/mcs51/lint.h added keyword __naked
1938
1939 2007-09-04 Maarten Brock <sourceforge.brock AT dse.nl>
1940
1941         * src/pic16/glue.c,
1942         * src/pic/glue.c,
1943         * src/SDCCmem.h: removed maxRegBank
1944         * src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
1945           RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
1946         * src/SDCCsymt.c (checkFunction): set RegBankUsed[] here
1947         * src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
1948           name and behaviour to handle banked functions
1949           (scan4op): and use it to fix bug 1786213
1950
1951 2007-09-03 Raphael Neider <rneider AT web.de>
1952
1953         * device/include/pic16/pic18f248.h,
1954         * device/include/pic16/pic18f258.h,
1955         * device/include/pic16/pic18f448.h,
1956         * device/lib/pic16/libdev/pic18f248.c,
1957         * device/lib/pic16/libdev/pic18f258.c,
1958         * device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
1959           added T0CONbits, fixes #1786891
1960
1961 2007-08-29 Maarten Brock <sourceforge.brock AT dse.nl>
1962
1963         * src/ds390/gen.c (genFarPointerSet),
1964         * src/hc08/ralloc.c (packRegisters),
1965         * src/mcs51/ralloc.c (packRegisters),
1966         * src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
1967           bug 1750318
1968         * src/SDCCicode.h: POINTER_SET can be true for literals too
1969         * support/regression/tests/bug1750318.c: new, added
1970
1971 2007-08-23 Borut Razem <borut.razem AT siol.net>
1972
1973         * debugger/mcs51/sdcdb.c: fixed compilation with older readline
1974           library versions without the completition functionality
1975
1976 2007-08-22 Raphael Neider <rneider AT web.de>
1977
1978         * device/include/pic16/pic18f1220.h,
1979         * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
1980
1981 2007-08-12 Borut Razem <borut.razem AT siol.net>
1982
1983         * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
1984
1985 2007-08-11 Borut Razem <borut.razem AT siol.net>
1986
1987         * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
1988           src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
1989           support/Util/SDCCerr.[ch] moved to src
1990         * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
1991           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
1992           device/examples/ds390/tinitalk/tinitalk.dsp,
1993           device/examples/serialcomm/windows/serialcomm.dsp,
1994           support/librarian/librarian.dsp:
1995           removed linking of unused odbc32.lib and odbccp32.lib
1996         * support/scripts/winres.h:
1997           added for compilation with Visual C++ 2005 Express Edition
1998
1999 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2000
2001         * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
2002           and CKCON1.
2003
2004 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2005
2006         * sdccconf_in.h: update the endian test so that SPARC Solaris
2007           does not throw syntax errors
2008
2009 2007-08-06 Borut Razem <borut.razem AT siol.net>
2010
2011         * doc/sdccman.lyx: removed two index entries which prevented the
2012           generation of sdcc doc archive
2013
2014 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2015
2016         * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
2017           instead of lyx 1.5.0.
2018
2019 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2020
2021         * device/include/hc08/mc68hc908apxx.h: new header contributed by
2022           Lucas Loizaga, with minor modifications. Thanks!
2023
2024 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2025
2026         * doc/sdccman.lyx: Documented --acall-ajmp and described new features
2027           in sdcclib.
2028
2029 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2030
2031         * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
2032           src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
2033           with acall/ajmp.
2034
2035 2007-07-22 Borut Razem <borut.razem AT siol.net>
2036
2037         * configure.in, configure: re-introduced .version
2038         * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
2039           the version reverted to 2.7.0
2040
2041 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
2042
2043         * configure.in,
2044         * doc/sdccman.lyx: bumped version to 2.7.3
2045         * device/include/mcs51/compiler.h: fixed elif->else
2046         * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
2047         * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
2048           (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
2049            enable accuse for bit operands
2050         * src/SDCCmain.c (printVersionInfo),
2051         * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
2052           environment descriptor
2053         * src/SDCCutil.h: added getBuildEnvironment
2054         * src/SDCCglue.c (initialComments): use getBuildEnvironment
2055         * support/regression/tests/bug1464657.c: enabled test test_Peephole251
2056         * support/regression/tests/bug-408972.c: enabled test leftShiftLong
2057         * support/regression/tests/bug1348008.c,
2058         * support/regression/tests/bug1496419.c,
2059         * support/regression/tests/bug1503067.c,
2060         * support/regression/tests/preproc.c: added empty tests
2061
2062 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
2063
2064         * support/regression/tests/bug1678803.c: new, added
2065
2066 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
2067
2068         * as/link/aslink.h,
2069         * as/link/hc08/lkihx.c,
2070         * as/link/hc08/lkrloc.c,
2071         * as/link/mcs51/lkihx.c,
2072         * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
2073           ihxExtendedLinearAddress
2074         * as/link/mcs51/lkrloc.c (relr),
2075         * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
2076           acall/ajmp, see bug 830513
2077
2078 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
2079
2080         * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
2081           (cseBBlock): remember aggr2ptr has been used
2082         * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
2083           (geniCodeAssign): fixed bug 868103
2084         * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
2085           added operandSize prototype
2086         * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
2087           (genDataPointerSet): use max of size of right and result,
2088           (gencjne): added parameter useCarry for optimization,
2089           (genCmpEq): use carry if appropriate,
2090           (genXor): check if operand already in carry
2091         * support/regression/tests/bug-868103.c: enabled test
2092
2093 2007-07-12 Raphael Neider <rneider AT web.de>
2094
2095         * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
2096
2097 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
2098
2099         * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
2100           from Robert Larice, thanks
2101         * support/regression/tests/bitopcse.c,
2102         * support/regression/tests/bitvars.c,
2103         * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
2104         * support/regression/tests/bug-927659.c: enabled test for z80
2105         * support/regression/tests/bug1738367.c: added extra tests by Frieder
2106         * support/regression/tests/bug1745717.c: new, added
2107         * support/regression/tests/literalop.c,
2108         * support/regression/tests/nullstring.c: removed storage definitions that
2109           are now in testfwk.h
2110
2111 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
2112
2113         * device/include/stdbool.h: do not define __bool_true_false_are_defined
2114           and bool for targets that do not fully support it.
2115         * support/regression/tests/bug1546986.c,
2116         * support/regression/tests/bug1723128.c,
2117         * support/regression/tests/bug1734654.c,
2118         * support/regression/tests/bug1738367.c,
2119         * support/regression/tests/constantRange.c: only use bool if allowed
2120
2121 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
2122
2123         * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
2124           Larice, also handle function pointers
2125         * support/regression/tests/bug1749275.c: new, added
2126
2127 2007-07-03 Borut Razem <borut.razem AT siol.net>
2128
2129         * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
2130           src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
2131           #1746528: SDCC should ignore ':' in inline assembler comments
2132         * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
2133
2134 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
2135
2136         * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
2137         * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
2138
2139 2007-06-29 Borut Razem <borut.razem AT siol.net>
2140
2141         * src/SDCCmain.c: fixed bug
2142           #1744746: SDCC #4867: broken option --xram-size
2143
2144 2007-06-28 Borut Razem <borut.razem AT siol.net>
2145
2146         * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
2147           find out the endianess of host machine for ucsim
2148
2149 2007-06-27 Borut Razem <borut.razem AT siol.net>
2150
2151         * support/regression/generate-cases.py: corrected the file name
2152           in warning
2153         * configure.in, configure, sdccconf_in.h: find out the endianess of
2154           host machine
2155         * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
2156           negative size
2157
2158 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
2159
2160         * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
2161
2162 2007-06-26 Borut Razem <borut.razem AT siol.net>
2163
2164         * support/regression/generate-cases.py: display warning if function
2165           list is empty; implemented more flexible rule for detection of
2166           testing functions, allowing return type 'void' in the same line as
2167           the function name in the function definition
2168         * support/regression/tests/bug-1654060.c: corrected test
2169         * support/librarian/sdcclib.c: fixed warning:
2170           format '%s' expects type 'char *', but argument 2 has type 'int'
2171
2172 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2173
2174         * support/librarian/sdcclib.c: Added feature Requests [1510635]
2175           Multiple infiles for sdcclib.
2176
2177 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2178
2179         * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
2180           bug 1731741
2181
2182 2007-06-18 Borut Razem <borut.razem AT siol.net>
2183
2184         * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
2185           how to handle comments, so they have to be removed by the
2186           preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
2187         * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
2188           src/pic16/main.c, src/pic/main.c, src/z80/main.c,
2189           support/Util/SDCCerr.c, support/Util/SDCCerr.h:
2190           table driven option hadling
2191
2192 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
2193
2194         * src/SDCCast.c (decorateType),
2195         * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
2196           iCode to ast level to fix bug 1738367
2197         * support/regression/tests/bug1738367.c: new, added
2198
2199 2007-06-15 Raphael Neider <rneider AT web.de>
2200
2201         * src/pic16/devices.inc,
2202         * device/lib/pic16/pics.all,
2203         * device/include/pic16/pic18fregs.h,
2204         * device/include/pic16/pic18f[24][45]20.h,
2205         * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
2206           18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
2207         * device/lib/pic16/Makefile.in: faster cleanup
2208
2209 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2210
2211         * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
2212
2213 2007-06-13 Raphael Neider <rneider AT web.de>
2214
2215         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
2216
2217 2007-06-12 Raphael Neider <rneider AT web.de>
2218
2219         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
2220           suppress bit defines if NO_BIT_DEFINES is #define'd
2221         * device/include/pic/pic*.h: recreated all headers to include
2222           conditional bit defines
2223         * device/include/pic/pic16f886.h,
2224         * device/include/pic/pic16f887.h: fixed based on newer .inc file
2225         * device/include/pic/recreate.sh: script to recreate the complete
2226           device library files based on the currently supported devices
2227
2228 2007-06-12 Borut Razem <borut.razem AT siol.net>
2229
2230         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
2231           support/regression/Makefile.in, support/scripts/build.mak,
2232           support/scripts/Makefile.snapshot:
2233           use new svn URL scheme
2234         * doc/sdccman.lyx: SDCC Wiki moved to
2235           http://sdcc.wiki.sourceforge.net/
2236
2237 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2238
2239         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
2240         * support/regression/tests/bug1734654.c: added
2241
2242 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
2243
2244         * src/SDCCast.c (decorateType): optimized '?' for equal operands
2245         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
2246           with literal operands
2247
2248 2007-06-10 Borut Razem <borut.razem AT siol.net>
2249
2250         * as/link/z80/lklibr.c: fixed mingw build warning
2251           lklibr.c:575: warning: implicit declaration of function 'tolower'
2252         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
2253           src/z80/main.c: move target specific options from src/SDCCmain.c
2254           to src/<target>/main.c
2255
2256 2007-06-09 Borut Razem <borut.razem AT siol.net>
2257
2258         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
2259           removed unused swap_sense; removed outBitCLong, replaced with outBitC
2260         * support/regression/tests/bug-1294691.c: added
2261
2262 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
2263
2264         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
2265           can also be static, fixes bug 1733438
2266         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
2267           have absolute address too
2268           (computeType): added optimization for 'cond ? true : false'
2269         * support/regression/tests/absolute.c: added test for static absolute var
2270
2271 2007-06-08 Raphael Neider <rneider AT web.de>
2272
2273         * src/regression/Makefile: suppress parallel builds, allow easy
2274           switching between pic14/pic16 ports
2275         * src/regression/picregs.h: added pic14/16 header file switch
2276         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
2277           inline.c,nestfor.c,string1.c}: include "picregs.h"
2278
2279 2007-06-07 Borut Razem <borut.razem AT siol.net>
2280
2281         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
2282           permanent solution to suppress GCC 4.2.0 c++ warning:
2283           deprecated conversion from string constant to `char *'
2284           use 'const char *' where ever required
2285         * support/regression/generate-cases.py: implemented more flexible rule
2286           for detection of testing functions, allowing white-spaces surrounding
2287           the function name and the 'void' parameter.
2288         * support/regression/tests/constantRange.c,
2289           support/regression/tests/scott-compare3.c: fixed failing regression
2290           tests, uncovered by implementation of more flexible rule for detection
2291           of testing functions
2292
2293 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
2294
2295         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
2296
2297 2007-06-04 Borut Razem <borut.razem AT siol.net>
2298
2299         * configure.in, configure, config_vc.awk: sdcc version number is now
2300           stored in configure.in; removed .version
2301         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
2302           doc/INSTALL.txt: version bumped to 2.7.2
2303         * sim/ucsim/configure.in, sim/ucsim/configure:
2304           use "read" to read from .version
2305
2306 2007-06-03 Borut Razem <borut.razem AT siol.net>
2307
2308         * */Makefile.in: removed annoying warning:
2309           Makefile:xx: Makefile.dep: No such file or directory
2310
2311 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
2312
2313         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
2314           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
2315         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
2316         * src/SDCCast.c (resultTypePropagate): propagate for '!',
2317           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
2318           bugfix: only use newBoolLink for bit result type
2319         * src/SDCCicode.c (geniCodeLogic): added param tree,
2320           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
2321           (geniCodeLogicAndOr): use IS_BIT,
2322           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
2323           (ast2iCode): added tree param to geniCodeLogic for comparisons
2324         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
2325         * support/regression/tests/bug1723128.c: added test NotZero
2326
2327 2007-06-01 Borut Razem <borut.razem AT siol.net>
2328
2329         * SDCPP synchronized with GCC CPP release version 4.2.0,
2330           currently the latest release:
2331         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2332           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
2333           support/cpp2/cppdefault.h, support/cpp2/except.h,
2334           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
2335           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
2336           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
2337           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
2338           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
2339           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
2340           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
2341           support/cpp2/opts.h, support/cpp2/output.h,
2342           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
2343           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
2344           support/cpp2/system.h, support/cpp2/version.c,
2345           support/cpp2/Makefile.in: modified
2346         * support/cpp2/opts-common.c: added
2347         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
2348         * device/lib/pic16/libdev/pic18f[24]5j10.c:
2349           search for included source file in local directory
2350         * sim/ucsim/configure, sim/ucsim/configure.in:
2351           temporary solution to suppress GCC 4.2.0 c++ warning:
2352           deprecated conversion from string constant to `char *'
2353
2354 2007-06-01 Raphael Neider <rneider AT web.de>
2355
2356         * device/lib/pic/libdev/pic12f683.c,
2357         * device/include/pic/pic12f683.h: added GPIO bits
2358
2359 2007-06-01 Raphael Neider <rneider AT web.de>
2360
2361         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
2362           quotation marks, clarified role of PIC14 vs. PIC16 ports
2363         * src/pic16/devices.inc,
2364         * device/include/pic16/pic18fregs.h,
2365         * device/include/pic16/pic18f[24][45]j10.h,
2366         * device/lib/pic16/pics.all,
2367         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
2368           18f24j10, 18f25j10, 18f44j10, and 18f45j10
2369         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
2370           for new devices as they are not yet supported by gputils
2371
2372 2007-05-31 Borut Razem <borut.razem AT siol.net>
2373
2374         * Small Device C Compiler 2.7.0 released
2375         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
2376           changed sdcc version to 2.7.1
2377         * support/scripts/sdcc.nsi: added How to create WIN32 release
2378           setup.exe package
2379
2380 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
2381
2382         * doc/sdccman.lyx: documented initialization and allocation of absolute
2383           variables, bit parameter passing, the need for function pointers to be
2384           reentrant and alpha quality support of inline and retrict
2385
2386 2007-05-26 Borut Razem <borut.razem AT siol.net>
2387
2388         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
2389           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
2390         * docs/knownbugs.html: updated
2391
2392 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
2393
2394         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
2395           thanks Jan Waclawek
2396         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
2397           AOP_CRY and ruonly
2398           (gencjneshort): optimized when left is AOP_DIR
2399         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
2400           initializing unions in a struct/array
2401         * support/regression/fwk/include/testfwk.h: added defines for data, near
2402           and far for host and z80
2403         * support/regression/tests/bug1723128.c: new, added
2404
2405 2007-05-22 Borut Razem <borut.razem AT siol.net>
2406
2407         * doc/knownbugs.html: updated
2408
2409 2007-05-21 Raphael Neider <rneider AT web.de>
2410
2411         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
2412           error message instead
2413         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
2414
2415 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
2416
2417         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
2418
2419 2007-05-21 Raphael Neider <rneider AT web.de>
2420
2421         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
2422           closes #1722392
2423         * src/regression/gpsim_assert.h,
2424         * src/regression/Makefile,
2425         * src/regression/pcodeopt.c: regression test for the above fix
2426
2427 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
2428
2429         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
2430           jumps to self, fixed bug 1717281
2431
2432 2007-05-10 Borut Razem <borut.razem AT siol.net>
2433
2434         * support/scripts/gen_known_bugs.pl: cosmetic fix
2435         * doc/knownbugs.html: generated by gen_known_bugs.pl
2436
2437 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2438
2439         * src/SDCCast.c (createFunction): also generate non-inlined version of
2440           function for functions declared as "static inline"
2441         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
2442           function can be inlined after non-inlined version generated.
2443
2444 2007-05-10 Borut Razem <borut.razem AT siol.net>
2445
2446         * support/scripts/gen_known_bugs.pl: added script
2447           which generates knownbugs.html
2448
2449 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
2450
2451         * doc/knownbugs.html: updated for release 2.7.0
2452
2453 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2454
2455         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
2456
2457 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
2458
2459         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
2460           (throughout): updated generating comments
2461         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
2462           (throughout): updated generating comments
2463         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
2464           rule instead of at the second, or it might skip lines when removing the
2465           complete match
2466         * support/regression/tests/bug1714204.c: changed test to foo
2467
2468 2007-05-08 Borut Razem <borut.razem AT siol.net>
2469
2470         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
2471           thanks to SDCC Distributed Compile Farm members,
2472           added Z80 and GBZ80 command line options
2473         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
2474
2475 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
2476
2477         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
2478         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
2479         * support/regression/tests/longlit.c: modified to be tested at all and
2480           to pass the actual test
2481
2482 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2483
2484         * device/include/mcs51/uPSD33xx.h: Added.
2485
2486 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
2487
2488         * device/lib/_gptrput.c,
2489         * device/lib/_gptrget.c: removed old code,
2490          (_gptrgetWord),
2491         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
2492         * support/regression/tests/bug1714204.c: new, added
2493
2494 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2495
2496         * support/regression/tests/regtrack.c: test was never executed
2497           because of the regression test being picky about white spaces.
2498         * device/lib/mcs51/crtclear.asm: added comment
2499
2500 2007-05-06 Raphael Neider <rneider AT web.de>
2501
2502         * device/lib/pic/Makefile.rules,
2503         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
2504           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
2505
2506 2007-05-06 Raphael Neider <rneider AT web.de>
2507
2508         * src/pic16/device.h,
2509         * src/pic16/main.h,
2510         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
2511           _pic16_setDefaultOptions): removed/reordered command-line args
2512         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
2513           devices, regrouped command line args, environment variables),
2514           clarified sone points, added sections on how to add devices to the
2515           PIC14/PIC16 ports
2516
2517 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
2518
2519         * src/z80/peeph.def: fixed bug in rule 2
2520
2521 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
2522
2523         * src/port.h: added TARGET_MCS51_LIKE
2524         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
2525           take advantage of it too
2526         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
2527           (shiftR2Left2Result): Optimized: don't check shifting by 0
2528         * src/z80/peeph-z80.def,
2529         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
2530           modifications, see patch 1700823
2531         * src/mcs51/peep.c (): fixed bug 1712928
2532         * support/regression/tests/bug1712928.c: new, added
2533
2534 2007-05-05 Borut Razem <borut.razem AT siol.net>
2535
2536         * device/lib/pic16/Makefile.common.in,
2537           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
2538           removed bash dependencies
2539
2540 2007-05-01 Borut Razem <borut.razem AT siol.net>
2541
2542         * src/SDCCicode.c:
2543           fixed bug #1710507: --i-code-in-asm makes compile fail
2544           all iCode comments are now one liners
2545         * src/mcs51/gen.c: fixed memory leak
2546
2547 2007-05-01 Raphael Neider <rneider AT web.de>
2548
2549         * device/lib/pic/libdev/*.c
2550         * device/include/pic/*.h: regenerated all device libs from updated
2551           .inc files
2552         * support/scripts/inc2h.pl: documented usage, now uses strict to
2553           catch more bugs
2554
2555 2007-04-30 Borut Razem <borut.razem AT siol.net>
2556
2557         * doc/sdccman.lyx:
2558           fixed bug #1669175: Problem with space in output paths
2559           documented how to use paths with spaces for Windows users
2560
2561 2007-04-29 Borut Razem <borut.razem AT siol.net>
2562
2563         * Fixed svn:eol-style and svn:keywords properties
2564         * src/SDCCval.c: fixed bug
2565           #1592871: Segfault with "large" const arrays of characters
2566           replaced recursion with iteration
2567         * Removed svn:executable property from non-executable files
2568
2569 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
2570
2571         * src/mcs51/gen.c (genRet): fixed bug 1707003
2572
2573 2007-04-27 Raphael Neider <rneider AT web.de>
2574
2575         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
2576           createReachingDefinitions,assignValnums,pic16_destructDF,
2577           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
2578           prevent NULL pointer dereferences
2579         * device/lib/pic/libdev/pic16f886.c,
2580         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
2581           prevent building them, gputils do not really support them yet
2582
2583 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2584
2585         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
2586           helps printf_small. 32 bytes more __idata mem.
2587
2588 2007-04-27 Raphael Neider <rneider AT web.de>
2589
2590         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
2591           return early when pb or pb->pcHead is NULL (patch #1708427)
2592         * src/regression/empty.c,
2593         * src/regression/Makefile: added test with empty functions
2594         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
2595
2596 2007-04-27 Borut Razem <borut.razem AT siol.net>
2597
2598         * src/SDCCast.c: fixed feature request
2599           #1547512: Redundant strings linked when using sizeof("abc")
2600
2601 2007-04-23 Borut Razem <borut.razem AT siol.net>
2602
2603         * doc/sdccman.lyx, src/SDCCmain.c:
2604           peep-hole comments are generated only if --fverbose-asm option is
2605           specified and --no-peep-comments is not, as proposed by Frieder.
2606         * support/regression/Makefile.in: compile regression tests with
2607           --fverbose-asm option so one can "grep" whether a new (or an old)
2608           peephole is (still) applied; requested by Frieder.
2609
2610 2007-04-23 Kevin Buettner <kevin AT buettner.to>
2611
2612         * device/include/pic/pic16f886.h,
2613         * device/include/pic/pic16f887.h,
2614         * device/lib/pic/libdev/pic16f886.c,
2615         * device/lib/pic/libdev/pic16f887.c,
2616         * device/include/pic/pic14devices.txt,
2617         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
2618
2619 2007-04-23 Kevin Buettner <kevin AT buettner.to>
2620
2621         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
2622           fixes #1704666
2623
2624 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2625
2626         * device/lib/_memset.c: assembler version for mcs51
2627
2628 2007-04-22 Borut Razem <borut.razem AT siol.net>
2629
2630         * support/scripts/listerr.c: program to create the list of errors and
2631           warnings list from - added
2632         * doc/sdccman.lyx: removed the note
2633           "For list of warnings and corresponding codes, see err_warn.txt"
2634         * src/SDCCsymt.c: fixed bug #1699804:
2635           Bug with some uses of sizeof(static local array) (MCS51)
2636         * support/regression/tests/bug-1699804.c: added
2637
2638 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
2639
2640         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
2641           (main): added option -i,
2642           (asmbl, case S_INCL): use search_path_fopen,
2643           mostly from patch 1579668 by Peter Miller, thanks
2644         * src/z80/main.c: fixed typo --callee-saves-bc
2645         * device/include/mcs51/compiler.h: added sfrword for Tasking
2646
2647 2007-04-20 Borut Razem <borut.razem AT siol.net>
2648
2649         * src/z80/main.c: replaced reserved keyword asm with asmblr
2650
2651 2007-04-19 Borut Razem <borut.razem AT siol.net>
2652
2653         * src/port.h: use const pointers to strings
2654         * src/SDCCargs.h: declared getStringArg() and getIntArg()
2655         * src/pic16/main.c: include SDCCargs.h
2656         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
2657           const char, since the strings are dynamically allocated
2658         * src/SDCCmain.c: options.code_seg and options.const_seg are
2659           dynamically allocated; check port specific command line options
2660           before the general ones
2661         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
2662
2663 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
2664
2665         * device/include/ds400rom.h,
2666         * device/lib/ds390/lcd390.c,
2667         * device/lib/ds390/memcpyx.c,
2668         * device/lib/ds390/rtc390.c,
2669         * device/lib/ds400/ds400rom.c,
2670         * device/lib/ds400/memcpyx.c,
2671         * device/lib/hc08/_ret.c: more replacements of keywords with their
2672           double underscore equivalents
2673         * device/lib/ds390/Makefile.in,
2674         * device/lib/ds400/Makefile.in,
2675         * device/lib/gbz80/Makefile.in,
2676         * device/lib/hc08/Makefile.in,
2677         * device/lib/mcs51/Makefile.in,
2678         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
2679
2680 2007-04-17 Borut Razem <borut.razem AT siol.net>
2681
2682         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
2683           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
2684           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
2685           to --fverbose-asm, to be gcc'ish
2686
2687 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
2688
2689         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
2690
2691 2007-04-17 Borut Razem <borut.razem AT siol.net>
2692
2693         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
2694         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
2695           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
2696           with their double underscore equivalent
2697
2698 2007-04-14 Borut Razem <borut.razem AT siol.net>
2699
2700         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
2701           source"
2702
2703 2007-04-13 Borut Razem <borut.razem AT siol.net>
2704
2705         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
2706           C99 standard
2707         * device/examples/serialcomm/windows/serial.[ch],
2708           device/examples/serialcomm/windows/test_serialcomm.cpp:
2709           updated by Bela Torok
2710         * device/examples/serialcomm/windows/serialcomm.dsw,
2711           device/examples/serialcomm/windows/serialcomm.dsp: added
2712
2713 2007-04-13 Jan Waclawek <wek AT efton.sk>
2714
2715         * doc/sdccman.lyx: additions and changes at various places
2716           (submitted as #1697136).
2717           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
2718
2719 2007-04-10 Borut Razem <borut.razem AT siol.net>
2720
2721         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
2722           LyX file format changed to 245
2723         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
2724           "FreeWare" replaced with "free open source"
2725
2726 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
2727
2728         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
2729
2730 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
2731
2732         * device/include/pic16/pic18fregs.h,
2733         * device/lib/_bp.c,
2734         * device/lib/_decdptr.c,
2735         * device/lib/_divsint.c,
2736         * device/lib/_divslong.c,
2737         * device/lib/_divuint.c,
2738         * device/lib/_divulong.c,
2739         * device/lib/_fs2schar.c,
2740         * device/lib/_fs2sint.c,
2741         * device/lib/_fs2slong.c,
2742         * device/lib/_fs2uchar.c,
2743         * device/lib/_fs2uint.c,
2744         * device/lib/_fs2ulong.c,
2745         * device/lib/_fsadd.c,
2746         * device/lib/_fscmp.c,
2747         * device/lib/_fsdiv.c,
2748         * device/lib/_fseq.c,
2749         * device/lib/_fsget1arg.c,
2750         * device/lib/_fsget2args.c,
2751         * device/lib/_fsgt.c,
2752         * device/lib/_fslt.c,
2753         * device/lib/_fsmul.c,
2754         * device/lib/_fsneq.c,
2755         * device/lib/_fsnormalize.c,
2756         * device/lib/_fsreturnval.c,
2757         * device/lib/_fsrshift.c,
2758         * device/lib/_fssub.c,
2759         * device/lib/_fsswapargs.c,
2760         * device/lib/_gptrget.c,
2761         * device/lib/_gptrgetc.c,
2762         * device/lib/_gptrput.c,
2763         * device/lib/_logexpf.c,
2764         * device/lib/_modsint.c,
2765         * device/lib/_modslong.c,
2766         * device/lib/_moduint.c,
2767         * device/lib/_modulong.c,
2768         * device/lib/_mulint.c,
2769         * device/lib/_mullong.c,
2770         * device/lib/_schar2fs.c,
2771         * device/lib/_ser.c,
2772         * device/lib/_setjmp.c,
2773         * device/lib/_sint2fs.c,
2774         * device/lib/_slong2fs.c,
2775         * device/lib/_spx.c,
2776         * device/lib/_uchar2fs.c,
2777         * device/lib/_uint2fs.c,
2778         * device/lib/_ulong2fs.c,
2779         * device/lib/asincosf.c,
2780         * device/lib/atanf.c,
2781         * device/lib/calloc.c,
2782         * device/lib/ds390/tinibios.c,
2783         * device/lib/ds400/tinibios.c,
2784         * device/lib/expf.c,
2785         * device/lib/free.c,
2786         * device/lib/hc08/_mulint.c,
2787         * device/lib/logf.c,
2788         * device/lib/malloc.c,
2789         * device/lib/printf_fast.c,
2790         * device/lib/printf_tiny.c,
2791         * device/lib/printfl.c,
2792         * device/lib/realloc.c,
2793         * device/lib/ser_ir.c,
2794         * device/lib/serial.c,
2795         * support/regression/tests/libmullong.c: replaced all special keywords
2796           with their double underscore equivalent
2797         * support/regression/ports/mcs51-xstack-auto/spec.mk,
2798         * device/lib/Makefile.in: compile libs with --std-c99 instead of
2799           --std-sdcc99
2800         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
2801           (genRet): if the bit-symbol is ruonly it already is in the carry
2802         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
2803         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
2804         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
2805           type UCHAR if dest is not bit
2806
2807 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
2808
2809         * device/include/math.h,
2810         * device/lib/cotf.c,
2811         * device/lib/expf.c,
2812         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
2813
2814 2007-04-01 Borut Razem <borut.razem AT siol.net>
2815
2816         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
2817           fixed bug #1692042: input buffer overflow...scanner uses REJECT
2818         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
2819           gcc_unreachable() called internal_error()...
2820
2821 2007-03-30 Raphael Neider <rneider AT web.de>
2822
2823         * src/pic/ralloc.c (isData): suppress garbage debug output
2824
2825 2007-03-28 Borut Razem <borut.razem AT siol.net>
2826
2827         * doc/sdccman.lyx:
2828           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
2829           is developed, built and used worldwide, and the word "night" doesn't
2830           make any sense.
2831
2832 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
2833
2834         * device/include/mcs51/C8051F360.h: new, added
2835         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
2836
2837 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2838
2839         * src/SDCC.y (declaration_specifiers, function_specifier),
2840         * support/Util/SDCCerr.c,
2841         * support/Util/SDCCerr.h,
2842         * src/SDCCsymt.h,
2843         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
2844           inline keyword
2845         * src/SDCCmem.c (deallocParms),
2846         * src/SDCCast.c: support for function inlining, not quite complete
2847         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
2848           'restrict' qualifier
2849
2850 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
2851
2852         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
2853           (saveRBank, unsaveRBank): don't save bits,
2854           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
2855         * support/regression/tests/bug1535242.c: new, added
2856         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
2857           thanks Alexey Shamrin <shamrin AT gmail.com>,
2858           made assert.h header ANSI compliant (added a check for NDEBUG macro,
2859           removed header guard)
2860         * .version,
2861         * sdcc.spec: bumped version to 2.6.5
2862         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
2863
2864 2007-03-22 Borut Razem <borut.razem AT siol.net>
2865
2866         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
2867           fixed bug #1653671: sdcdb integration into ddd is broken
2868
2869 2007-03-22 Raphael Neider <rneider AT web.de>
2870
2871         * src/pic/gen.c (popGetExternal): augmented to also create references
2872           to external variables (not only labels),
2873           (genCall): comment on plan to reduce PAGESEL overhead,
2874           (genFunction, genEndFunction): also save/restore FSR around interrupt
2875           handling code, removed lots of unused code
2876           (genDivOneByte): release acquired temp register
2877         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
2878           of popGetExternal
2879         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
2880           for registers that need to be saved during interrupts (FSR, STATUS,
2881           PCLATH; W needs special handling), currently only FSR is used
2882
2883 2007-03-22 Raphael Neider <rneider AT web.de>
2884
2885         * device/include/pic/pic14devices.txt: 16f688 has only one config word
2886
2887 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2888
2889         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
2890
2891 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
2892
2893         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
2894
2895 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
2896
2897         * as/link/aslink.h: added LKOBJEXT
2898         * as/link/hc08/link_hc08.dsp,
2899         * as/link/hc08/Makefile.bcc,
2900         * as/link/hc08/Makefile.in,
2901         * as/link/mcs51/aslink.dsp,
2902         * as/link/mcs51/Makefile.bcc,
2903         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
2904         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
2905         * as/link/lkaomf51.c: merged and moved
2906         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
2907         * as/link/z80/lkdata.c,
2908         * as/link/lkdata.c: merged and moved
2909         * as/link/hc08/lkmain.c,
2910         * as/link/mcs51/lkmain.c: cosmetic changes
2911         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
2912         * as/link/lklex.c: use LKOBJEXT
2913         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
2914           ANSI-fied functions, removed bubble-sorts
2915         * as/link/z80/lksym.c           as/link/lksym.c: merged,
2916           ANSI-fied functions
2917         * as/link/z80/linkgbz80.dsp,
2918         * as/link/z80/linkz80.dsp,
2919         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
2920           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
2921         * as/link/z80/lkhead.c,
2922         * as/link/z80/lklex.c: deleted
2923         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
2924         * as/link/z80/lkmain.c: added copyfile()
2925
2926 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2927
2928         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
2929
2930 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2931
2932         * device/lib/_strlen.c: assembler version for mcs51
2933
2934 2007-03-13 Raphael Neider <rneider AT web.de>
2935
2936         * device/include/pic16/pic18f2221.h,
2937         * device/include/pic16/pic18f2321.h,
2938         * device/include/pic16/pic18f2331.h,
2939         * device/include/pic16/pic18f4221.h,
2940         * device/include/pic16/pic18f4321.h,
2941         * device/include/pic16/pic18f4331.h: fixed config byte location names
2942         * support/scripts/inc2h-pic16.pl: removed debug output, emit
2943           consistently named config byte locations
2944
2945 2007-03-13 Borut Razem <borut.razem AT siol.net>
2946
2947         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
2948           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
2949           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
2950           as/link/z80/Makefile.in, as/z80/Makefile.in:
2951           introduced LDFLAGS
2952
2953 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2954
2955         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
2956         * device/lib/printf_large.c: pointer was converted to generic
2957         pointer for mcs51 models other than model-small (Maarten noticed)
2958
2959 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2960
2961         * device/include/mcs51/ADuC84x.h: Added.
2962
2963 2007-03-10 Borut Razem <borut.razem AT siol.net>
2964
2965         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
2966           fixed RFE #1624219: double backslashes in filenames;
2967           functions hexEscape(), octalEscape() and copyStr() moved from
2968           SDCCval.c to SDCCutil.c and made them glovbally available
2969
2970 2007-03-09 Borut Razem <borut.razem AT siol.net>
2971
2972         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
2973           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
2974           1673361: Missaligned comments in output files
2975
2976 2007-03-09 Raphael Neider <rneider AT web.de>
2977
2978         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
2979
2980 2007-03-09 Raphael Neider <rneider AT web.de>
2981
2982         * src/pic/gen.c,
2983         * src/pic/glue.c,
2984         * src/pic/ralloc.c: suppress undesired debug output
2985         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
2986
2987 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2988
2989         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
2990
2991 2007-03-07 Borut Razem <borut.razem AT siol.net>
2992
2993         * device/lib/pic16/libdev/pic18f[24][34]31.c:
2994           search include files in the current directory
2995
2996 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
2997
2998         * src/SDCCglue.c (emitMaps, glue),
2999         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
3000           absolute xdata
3001         * support/regression/tests/absolute.c: added xdata test
3002
3003 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
3004
3005         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
3006           added condition to macro, fixes bug 1666080
3007
3008 2007-03-02 Raphael Neider <rneider AT web.de>
3009
3010         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
3011
3012 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3013
3014         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
3015         be cleared. Unconditionally set __XPAGE
3016         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
3017
3018 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3019
3020         * src/SDCCglobl.h,
3021         * src/SDCCmain.c,
3022         * src/mcs51/gen.c,
3023         * src/mcs51/rtrack.c,
3024         * src/ds390/gen.c,
3025         * doc/sdccman.lyx: added --no-gen-comments
3026         * src/mcs51/peeph.def: added 192.b, disabled 185
3027
3028 2007-02-25 Raphael Neider <rneider AT web.de>
3029
3030         * src/pic16/gen.c (genCast): fixed typo
3031         * device/lib/pic16/Makefile.subdir: only install existing files
3032         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
3033
3034 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
3035
3036         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
3037         * device/lib/mcs51/crtclear.asm,
3038         * device/lib/mcs51/crtxclear.asm: renumbered labels
3039         * device/lib/mcs51/Makefile.in: added crtcall.asm
3040         * doc/sdccman.lyx: documented mcs51 crt* library startup code
3041         * src/mcs51/gen.c (movc): removed,
3042           (aopGet, genPlusBits): clear a after loading the carry (possibly from
3043             acc.x or psw.x),
3044           (toCarry, genSend, genRet): added function toCarry,
3045           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
3046           (assignBit, genAssign, genCast): added function assignBit
3047         * src/mcs51/Makefile.bcc: added rtrack.c
3048         * src/mcs51/ralloc.h: made valueKnown a bitfield
3049         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
3050           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
3051           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
3052         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
3053         * src/z80/gen.c: added AOP_IS_PAIRPTR,
3054           (_pop): only pop valid pairs, see gencjneshort,
3055           (gencjneshort): return pair that still needs to be popped, restructured,
3056           (gencjne, genCmpEq): call _pop
3057
3058 2007-02-23 Raphael Neider <rneider AT web.de>
3059
3060         * device/include/pic/pic14devices.txt: 16f684 has only one config word
3061
3062 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3063
3064         * device/include/mcs51/P89LPC925.h: Added.
3065
3066 2007-02-18 Raphael Neider <rneider AT web.de>
3067
3068         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
3069
3070 2007-02-17 Borut Razem <borut.razem AT siol.net>
3071
3072         * support/cpp2/directives.c, support/cpp2/version.c:
3073           synchronized with GCC CPP 4.1.2
3074
3075 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3076
3077         * src/mcs51/rtrack.h,
3078         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
3079           by checking the strings passed by emitcode() to the assembler.
3080           Feel free to change. This in part addresses RFE #482179.
3081           Set environment variable SDCC_RTRACK to enable.
3082         * src/mcs51/gen.c: inserted hooks
3083         * src/mcs51/ralloc.h: added two members to struct regs
3084         * support/regression/tests/regtrack.c: added
3085
3086 2007-02-14 Borut Razem <borut.razem AT siol.net>
3087
3088         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
3089         * Makefile.in: applied patch from Makefile related part of
3090           #1469393: Compiler does not initialize static data
3091
3092 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
3093
3094         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
3095           for better fix of bug 1273984, compiles pic16 rand.c
3096
3097 2007-02-12 Borut Razem <borut.razem AT siol.net>
3098
3099         * src/pic16/main.c: fixed pic16 standard library directory bug
3100
3101 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
3102
3103         * src/hc08/gen.c (genSwap): fix swap regression test
3104
3105 2007-02-10 Borut Razem <borut.razem AT siol.net>
3106
3107         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
3108           with same scope
3109         * support/regression/tests/bug-1654060.c: added regression test for
3110           #1654060
3111
3112 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
3113
3114         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
3115         bit moves in return statement
3116
3117 2007-02-09 Borut Razem <borut.razem AT siol.net>
3118
3119         * src/SDCC.y: fixed bug #1654060 typedef within function causes
3120           syntax error
3121
3122 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
3123
3124         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
3125         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
3126
3127 2007-02-07 Raphael Neider <rneider AT web.de>
3128
3129         * src/pic16/devices.inc,
3130         * device/include/pic16/pic18fregs.h,
3131         * device/include/pic16/pic18f[24][34]31.h,
3132         * device/lib/pic16/libdev/pic18f[24][34]31.c,
3133         * device/lib/pic16/pics.all: added 18f[24][34]31 family
3134         * device/lib/pic16/libio/i2c.ignore: do not build i2c
3135
3136 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
3137
3138         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
3139           can this have lived here for so many years?
3140         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
3141           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
3142         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
3143
3144 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
3145
3146         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
3147         appended by loop induction must be at the very end of the eBBlock
3148
3149 2007-02-05 Kevin Vigor
3150
3151         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
3152
3153 2007-02-05 Borut Razem <borut.razem AT siol.net>
3154
3155         * support/regression/fwk/lib/timeout.c: native WIN32 port,
3156           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
3157
3158 2007-02-03 Borut Razem <borut.razem AT siol.net>
3159
3160         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
3161           applied patch #1646602 option to set default signedness of char to
3162           unsigned, added -funsigned-char command line option,
3163           thanks to Gunther Jehle
3164         * device/lib/Makefile.in: added the -f option to rm so it doesn't
3165           prompt for file deletion a few hundred times (especially the
3166           subversion files, which have ro permissions so it asks for
3167           confirmation), thanks to Simon McAuliffe;
3168           added {} + option to find in order to remove multiple files from a
3169           single rm commad
3170
3171 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3172
3173         * device/include/mcs51/SST89x5xRDx.h: Added.
3174
3175 2007-02-02 Raphael Neider <rneider AT web.de>
3176
3177         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
3178         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
3179
3180 2007-02-01 Raphael Neider <rneider AT web.de>
3181
3182         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
3183           config words again
3184
3185 2007-01-31 Borut Razem <borut.razem AT siol.net>
3186
3187         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
3188           if compiled with GCC. Thanks to Raphael Neider
3189
3190 2007-01-31 Raphael Neider <rneider AT web.de>
3191
3192         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
3193             operand names, handles name and (name + n) for all n,
3194           (sameBank): restructured, also check bank allocation policy,
3195         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
3196           (pic14_operandsAllocatedInSameBank): check whether to operands
3197             will be allocated into the same bank (i.e., section) to reduce
3198             BANKSEL overhead, queried from pcode.c:sameBank,
3199           (pic14printLocals): reintroduced clustering registers into a single
3200             section: all compiler generated symbols will now reside in one
3201             bank (per file), reducing BANKSEL overhead and code size,
3202           (showAllMemmaps): use local dbuf where possible
3203
3204 2007-01-29 Raphael Neider <rneider AT web.de>
3205
3206         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
3207           (call_libraryfunc): retrieve/create symbol and mark as used,
3208           (genFunction): mark defined functions as non-extern and add again
3209            to code memmap for later output
3210         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
3211           (pic14printLocals): reworked for new symbol emission,
3212           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
3213           showAllMemmaps): reworked symbol output using dbufs, added handling
3214             of string literals (still incomplete),
3215           (picglue): removed symbol emission, moved into showAllMemmaps,
3216           (emitSymbolSet): new workhorse for symbol output,
3217           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
3218
3219 2007-01-29 Borut Razem <borut.razem AT siol.net>
3220
3221         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
3222           component contains the extension separator.
3223
3224 2007-01-28 Borut Razem <borut.razem AT siol.net>
3225
3226         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
3227           on WIN32
3228         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
3229           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
3230           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
3231           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
3232           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
3233           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
3234           src/z80/gen.c, support/Util/MySystem.c:
3235           accept slash and backslash as directory separator on WIN32 and
3236           Cygwin ports
3237
3238 2007-01-28 Raphael Neider <rneider AT web.de>
3239
3240         * src/pic16/devices.inc,
3241         * device/include/pic16/pic18f[24][23]21.h,
3242         * device/include/pic16/pic18fregs.h,
3243         * device/lib/pic16/libdev/pic18f[24][23]21.c,
3244         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
3245         * device/lib/pic16/libio/adc.ignore,
3246         * device/lib/pic16/libio/i2c.ignore,
3247         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
3248           family, as gputils do not yet support the devices
3249         * device/lib/pic16/Makefile.subdir: ignore errors on install
3250         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
3251           headers and libraries from gputils .inc files
3252
3253 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
3254
3255         * doc/sdccman.lyx: add printf_fast_f precision limitation note
3256
3257 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
3258
3259         * doc/sdccman.lyx: add printf benchmarks
3260
3261 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
3262
3263         * device/lib/printf_fast.c: fix %c, char promoted to int
3264         * device/lib/printf_tiny.c: fix %c, char promoted to int
3265
3266 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
3267
3268         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
3269
3270 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3271
3272         * support/regression/tests/swap.c: 64 bit hosts failed
3273         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
3274
3275 2007-01-25 Raphael Neider <rneider AT web.de>
3276
3277         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
3278           based on absolute register address, patch by Alex Blond
3279
3280 2007-01-22 Raphael Neider <rneider AT web.de>
3281
3282         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
3283           emitted, do not emit them again...
3284
3285 2007-01-22 Raphael Neider <rneider AT web.de>
3286
3287         * src/regression/bank1.c, src/regression/compare6.c,
3288           src/regression/add.c: cosmetic changes
3289         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
3290         * src/pic/gen.c: fixed global zero and one,
3291           (aopForSym): removed unued code,
3292           (aopGet): assert aop is defined, check and use `index' of
3293             pCodeImmd operands (fixes #1630908),
3294         * src/pic/pcode.c (get_op): added output of generic pointer tag,
3295           (register_reassign): prevent accidental register unification,
3296           (ReuseReg): cosmetic changes (also above)
3297         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
3298           pic14emitStaticSeg): do not emit initialized data,
3299           (printIval*): replaced with working versions,
3300           (pic14createInterruptVect,picglue): use idata for initialized data,
3301             now init data should work in all modules (not only main()),
3302         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
3303
3304 2007-01-21 Borut Razem <borut.razem AT siol.net>
3305
3306         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
3307           use -fPIC or -fpic if they are supported and not ignored
3308         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
3309         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
3310
3311 2007-01-20 Borut Razem <borut.razem AT siol.net>
3312
3313         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
3314           implemented RFE #1470316: allow "$" in variable names
3315
3316 2007-01-20 Raphael Neider <rneider AT web.de>
3317
3318         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
3319
3320 2007-01-20 Raphael Neider <rneider AT web.de>
3321
3322         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
3323         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
3324         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
3325         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
3326           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
3327         * device/lib/pic/libdev/pic*.c,
3328         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
3329         * device/lib/pic/libdev/Makefile.in: show progress
3330
3331 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
3332
3333         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
3334         * support/scripts/sdcc_cygwin_mingw32,
3335         * support/scripts/sdcc_mingw32,
3336         * support/scripts/build.mak: replaced --datadir by --datarootdir for
3337         conformance with autoconf 2.6
3338
3339 2007-01-19 Raphael Neider <rneider AT web.de>
3340
3341         * src/pic/device.c (register_map): fixed list construction
3342         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
3343           (genMod): removed case for genModbits,
3344           (genModbits): removed as now unused/unimplemented
3345         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
3346
3347 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3348
3349         * support/regression/tests/swap.c: added in response to #1638622
3350         * doc/sdccman.lyx: synced version, minor changes
3351
3352 2007-01-18 Borut Razem <borut.razem AT siol.net>
3353
3354         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
3355           thanks to Gunther Jehle
3356         * src/asm.c: don't die if the file drfined in #line couldn't be opened
3357         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
3358           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
3359           use filename in lineno instead.
3360         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
3361           print the file name in ast_print()
3362
3363 2007-01-18 Borut Razem <borut.razem AT siol.net>
3364
3365         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
3366           defined in MSVC
3367         * src/SDCC.lex: stringLiteral() returns const char pointer,
3368           EOF detection in stringLiteral(), fixed asmbuf memory leak,
3369           fixed column counting
3370         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
3371           accept const char pointer as parameter
3372         * src/SDCCdwarf2.c: corrected buffer size
3373
3374 2007-01-17 Borut Razem <borut.razem AT siol.net>
3375
3376         * support/Util/dbuf_string.c: fixed for amd64
3377
3378 2007-01-15 Borut Razem <borut.razem AT siol.net>
3379
3380         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
3381           removed terminal symbol ELIPSIS, since it was never generated by the
3382           lexer and it was wrongly used in parameter_identifier_list rule
3383
3384 2007-01-15 Raphael Neider <rneider AT web.de>
3385
3386         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
3387             code page and data banking description
3388         * src/pic/genarith.c,
3389         * src/pic/gen.h: removed bit arithmetic functions,
3390             updated exit(1) to exit(EXIT_FAILURE)
3391         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
3392         * device/include/pic16/pic18f2455.h,
3393         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
3394             TRISD and TRISE, fixed/added some bit names
3395         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
3396         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
3397             updated pic18f2455.{c,h} instead of duplicating them
3398
3399 2007-01-14 Borut Razem <borut.razem AT siol.net>
3400
3401         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
3402           Cannot debug files that contain spaces in the path name
3403           by converting spaces in asm file name to underscores
3404
3405 2007-01-13 Borut Razem <borut.razem AT siol.net>
3406
3407         * doc/sdccman.lyx: fixed format errors
3408
3409 2007-01-10 Borut Razem <borut.razem AT siol.net>
3410
3411         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
3412           codeseg/constseg #pragma fail
3413         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
3414         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
3415           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
3416           suppoprt/cpp2/sdcpp.[ch]: house cleaning
3417
3418 2007-01-09 Borut Razem <borut.razem AT siol.net>
3419
3420         * get rid of diagnistic.[ch], pretty-print.[ch],
3421           c-pretty-print.[ch], ... used just for error, warning, ...
3422           message formatting
3423         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
3424           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
3425           suppoprt/cpp2/pretty-print.[ch]:
3426           removed
3427         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
3428           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
3429           suppoprt/cpp2/sdcpp.dsp:
3430           changed
3431
3432 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
3433
3434         * device/lib/printf_large.c (output_float): removed recursion,
3435           use smaller buffer on stack for mcs51,
3436           fixed bug printing 1.96
3437         * support/regression/tests/snprintf.c: added test
3438
3439 2007-01-07 Borut Razem <borut.razem AT siol.net>
3440
3441         * use dynamic memory buffers instead temporary files
3442         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
3443           added
3444         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
3445           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
3446           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
3447           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
3448           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
3449           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
3450           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
3451           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
3452           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
3453           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
3454           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
3455           support/Util/dbuf.c, support/Util/dbuf.h:
3456           modified
3457         * .version, sdcc.spec: bumped version to 2.6.4
3458
3459 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
3460
3461         * src/port.h: added TARGET_Z80_LIKE macro
3462         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
3463           output PSEG location if --xram-loc or --xstack-loc was used
3464         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
3465
3466 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
3467
3468         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
3469         * as/as_z80.dsp,   as/z80/as_z80.dsp,
3470         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
3471         * sdcc.dsw: moved project files into subdir
3472         * as/hc08/as_hc08.dsp,
3473         * as/hc08/Makefile.bcc,
3474         * as/hc08/Makefile.in,
3475         * as/mcs51/Makefile.bcc,
3476         * as/mcs51/Makefile.in,
3477         * as/z80/Makefile.bcc,
3478         * as/z80/Makefile.in,
3479         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
3480         * as/hc08/asm.h,
3481         * as/mcs51/asm.h,
3482         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
3483         * as/hc08/asmain.c,
3484         * as/hc08/assym.c,
3485         * as/mcs51/asmain.c,
3486         * as/mcs51/assym.c,
3487         * as/z80/assym.c: removed include "strcmpi.h"
3488         * as/hc08/strcmpi.c,
3489         * as/hc08/strcmpi.h,
3490         * as/mcs51/strcmpi.c,
3491         * as/mcs51/strcmpi.h,
3492         * support/Util/strcmpi.c,
3493         * support/Util/strcmpi.h: removed files
3494         * as/strcmpi.c: added as_strncmpi()
3495
3496 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3497
3498         * sdcc.dsw: Added some dependencies on project config.dsp
3499
3500 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
3501
3502         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
3503           with [di]ram_start to fix a regresion
3504
3505 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
3506
3507         * configure.in: added missing mcs51 in status output
3508         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
3509         directory
3510         * debugger/mcs51/clean.mk (distclean): remove config.h
3511         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
3512         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
3513         options.h, s-options-h and options.c
3514         * support/cpp2/clean.mk: unused, removed
3515         * Makefile.common.in,
3516         * main_in.mk,
3517         * as/Makefile.in,
3518         * as/hc08/Makefile.in,
3519         * as/hc08/clean.mk,
3520         * as/mcs51/Makefile.in,
3521         * as/mcs51/clean.mk,
3522         * as/z80/clean.mk,
3523         * as/z80/conf.mk,
3524         * as/z80/Makefile.in,
3525         * as/z80/clean.mk,
3526         * as/link/Makefile.in,
3527         * as/link/hc08/Makefile.in,
3528         * as/link/hc08/clean.mk,
3529         * as/link/mcs51/Makefile.in,
3530         * as/link/mcs51/clean.mk,
3531         * as/link/z80/Makefile.in,
3532         * as/link/z80/clean.mk,
3533         * as/link/z80/conf.mk,
3534         * debugger/mcs51/Makefile.in,
3535         * debugger/mcs51/clean.mk,
3536         * device/include/Makefile.in,
3537         * device/lib/Makefile.in,
3538         * device/lib/mcs51/Makefile.in,
3539         * device/lib/pic/Makefile.in,
3540         * device/lib/pic/Makefile.common.in,
3541         * device/lib/pic/Makefile.subdir,
3542         * device/lib/pic/Makefile.rules,
3543         * device/lib/pic16/libio/Makefile.in,
3544         * device/lib/pic16/Makefile.subdir,
3545         * device/lib/pic16/libdev/Makefile.in,
3546         * device/lib/pic16/Makefile.rules,
3547         * device/lib/pic16/Makefile.common.in,
3548         * sim/ucsim/avr.src/Makefile.in,
3549         * sim/ucsim/main_in.mk,
3550         * sim/ucsim/cmd.src/Makefile.in,
3551         * sim/ucsim/doc/Makefile.in,
3552         * sim/ucsim/gui.src/Makefile.in,
3553         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
3554         * sim/ucsim/gui.src/serio.src/Makefile.in,
3555         * sim/ucsim/hc08.src/Makefile.in,
3556         * sim/ucsim/libltdl/Makefile.in,
3557         * sim/ucsim/s51.src/Makefile.in,
3558         * sim/ucsim/sim.src/Makefile.in,
3559         * sim/ucsim/sim.src/conf.mk,
3560         * sim/ucsim/xa.src/Makefile.in,
3561         * sim/ucsim/z80.src/Makefile.in,
3562         * src/Makefile.in,
3563         * src/clean.mk,
3564         * src/port.mk,
3565         * support/cpp2/Makefile.in,
3566         * support/librarian/Makefile.in,
3567         * support/librarian/clean.mk,
3568         * support/makebin/Makefile.in,
3569         * support/makebin/clean.mk,
3570         * support/packihx/Makefile.in,
3571         * support/regression/Makefile.in,
3572         * support/regression/ports/ds390/spec.mk,
3573         * support/regression/ports/gbz80/spec.mk,
3574         * support/regression/ports/hc08/spec.mk,
3575         * support/regression/ports/mcs51/spec.mk,
3576         * support/regression/ports/mcs51-large/spec.mk,
3577         * support/regression/ports/mcs51-medium/spec.mk,
3578         * support/regression/ports/mcs51-xstack-auto/spec.mk,
3579         * support/regression/ports/pic14/spec.mk,
3580         * support/regression/ports/pic16/spec.mk,
3581         * support/regression/ports/mcs51-stack-auto/spec.mk,
3582         * support/regression/ports/ucz80/spec.mk,
3583         * support/regression/ports/xa51/spec.mk,
3584         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
3585         adding a slash after $(top_builddir) and/or adding @datarootdir@
3586         * configure.in,
3587         * debugger/mcs51/configure.in,
3588         * device/lib/pic/configure.in,
3589         * device/lib/pic16/configure.in,
3590         * sim/ucsim/configure.in,
3591         * support/cpp2/configure.in,
3592         * support/packihx/configure.in: changed AC_PREREQ to 2.60
3593         * configure,
3594         * debugger/mcs51/configure,
3595         * device/lib/pic/configure,
3596         * device/lib/pic16/configure,
3597         * sim/ucsim/configure,
3598         * support/cpp2/configure,
3599         * support/packihx/configure: generated with autoconf 2.60
3600
3601 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
3602
3603         * as/link/hc08/lkihx.c (newArea),
3604         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
3605
3606 2007-01-02 Borut Razem <borut.razem AT siol.net>
3607
3608         * doc/sdccman.lyx: documented #pragma sdcc_hash
3609         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
3610           initialized to 0
3611         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
3612
3613 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
3614
3615         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
3616         empty 'while'-loop to work correctly, see regression test 'while.c'
3617         * support/regression/tests/while.c: added
3618
3619 2007-01-01 Borut Razem <borut.razem AT siol.net>
3620
3621         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
3622           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
3623           support/cpp2/libcpp/sdcpp.c:
3624           sdcpp specific pragma/directive/option handling moved to sdcpp.c
3625         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
3626         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
3627
3628 2006-12-31 Borut Razem <borut.razem AT siol.net>
3629
3630         * SDCPP synchronized with GCC CPP release version 4.1.1,
3631           currently the latest release:
3632         * support/cpp2/libcpp, support/cpp2/libcpp/include,
3633           support/cpp2/libcpp/include/cpp-id-data.h
3634           support/cpp2/libiberty/fopen_unlocked.c
3635           support/cpp2/libiberty/md5.c
3636           support/cpp2/md5.h
3637           support/cpp2/opt-functions.awk
3638           support/cpp2/opt-gather.awk
3639           support/cpp2/optc-gen.awk
3640           support/cpp2/opth-gen.awk:
3641           added
3642         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
3643           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
3644           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
3645           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
3646           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
3647           support/cpp2/diagnostic.h, support/cpp2/except.h,
3648           support/cpp2/hwint.h, support/cpp2/input.h,
3649           support/cpp2/intl.h, support/cpp2/move-if-change,
3650           support/cpp2/opts.c, support/cpp2/opts.h,
3651           support/cpp2/output.h, support/cpp2/prefix.c,
3652           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
3653           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
3654           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
3655           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
3656           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
3657           support/cpp2/version.c:
3658           modified
3659         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
3660           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
3661           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
3662           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
3663           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
3664           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
3665           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
3666           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
3667           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
3668           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
3669           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
3670           moved
3671         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
3672           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
3673           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
3674           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
3675           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
3676           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
3677           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
3678           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
3679           support/cpp2/hashtable.h, support/cpp2/line-map.c,
3680           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
3681           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
3682           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
3683           support/cpp2/system.h:
3684           deleted / moved
3685
3686 2006-12-31 Borut Razem <borut.razem AT siol.net>
3687
3688         * configure.in, configure: fixed bug #1538756: configure dies if bison
3689           and flex are not installed, 2nd try
3690
3691 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
3692
3693         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
3694         400.x for better code in RFE 899102
3695
3696 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
3697
3698         * src/SDCCpeeph.c (deadMove),
3699         * src/port.h,
3700         * src/mcs51/peep.h: renamed 'op' by 'reg'
3701         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
3702         (scan4op): small change for removeDeadMove(), added support for
3703         'callee saves' and/or PACLL function calls,
3704         (removeDeadMove): added, removes superflous 'mov r%1,%2',
3705         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
3706         left in new dispatcher mcs51DeadMove()
3707         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
3708         removeDeadMove()
3709         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
3710
3711 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3712
3713         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
3714           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
3715
3716 2006-12-30 Borut Razem <borut.razem AT siol.net>
3717
3718         * support/cpp2/spacs.h: deleted from svn
3719         * configure.in, configure: fixed bug #1538756: configure dies if bison
3720           and flex are not installed
3721
3722 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
3723
3724         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
3725           with this z80 passes printf float test when enabled
3726         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
3727
3728 2006-12-28 Borut Razem <borut.razem AT siol.net>
3729
3730         * support/cpp2/config.in, support/cpp2/configure.in,
3731           support/cpp2/configure, support/cpp2/Makefile.in:
3732           fix for the solaris build
3733
3734 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3735
3736         * src/SDCC.y (type_specifier2, pointer),
3737         * src/SDCCsymt.h,
3738         * src/SDCCsymt.c (mergeSpec, checkSClass),
3739         * support/Util/SDCCerr.c,
3740         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
3741         * support/valdiag/valdiag.py: Allow test cases to specify
3742           required language standard
3743         * support/valdiag/tests/restrict.c: New file to test restrict keyword
3744         * support/valdiag/tests/tentdecl.c: Supress empty source file error
3745
3746 2006-12-27 Borut Razem <borut.razem AT siol.net>
3747
3748         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
3749         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
3750           mbchar removed
3751         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
3752           fixed for borland C
3753         * support/cpp2/libiberty/Makefile.bcc: updated
3754         * src/pic16/main.c: fixed #pragma udata handling
3755         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
3756
3757 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
3758
3759         * src/SDCCpeeph.c: made labelHashEntry global,
3760         made pcDistance, FBYNAME static,
3761         (pcDistance): made static, use isComment and isLabel,
3762         (deadMove): added,
3763         (getLabelRef): added, extracted from labelRefCount(),
3764         (labelRefCount): use new getLabelRef(),
3765         (callFuncByName): made static, added deadMove,
3766         use isComment and isLabel,
3767         (newPeepRule): made static, set isLabel,
3768         (isLabelDefinition): added parameter isPeepRule to allow '%' in
3769         labels from peephole rules,
3770         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
3771         when isComment or isLabel is set
3772         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
3773         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
3774         to make them global
3775         * src/mcs51/peep.h: added
3776         * src/mcs51/peep.c: added, implements mcs51DeadMove()
3777         * src/port.h: added peep->deadMove to port structure
3778         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
3779         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
3780         deadMove, finally removed no. 1 and 2
3781         * src/mcs51/gen.c,
3782         * src/pic/gen.c,
3783         * src/z80/gen.c,
3784         * src/z80/ralloc.c,
3785         * src/pic16/gen.c,
3786         * src/ds390/gen.c,
3787         * src/hc08/gen.c: mark lines with isComment or isLabel
3788         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
3789         * .version,
3790         * sdcc.spec: bumped version to 2.6.3
3791
3792 2006-12-26 Borut Razem <borut.razem AT siol.net>
3793
3794         * support/cpp2/Makefile.in: added dependency on options.h
3795         * configure: regenerated
3796         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
3797         * support/cpp2/Makefile.in: added vasprintf.c
3798
3799 2006-12-25 Borut Razem <borut.razem AT siol.net>
3800
3801         * SDCPP synchronized with GCC CPP release version 3.4.6,
3802           the latest release before 4.x:
3803         * support/cpp2/Makefile.in, support/cpp2/config.h,
3804           support/cpp2/configure, support/cpp2/configure.in,
3805           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
3806           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
3807           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
3808           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
3809           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
3810           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
3811           support/cpp2/cpptrad.c, support/cpp2/except.h,
3812           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
3813           support/cpp2/hwint.h, support/cpp2/intl.h,
3814           support/cpp2/line-map.c, support/cpp2/line-map.h,
3815           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
3816           support/cpp2/output.h, support/cpp2/prefix.c,
3817           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
3818           support/cpp2/system.h, support/cpp2/version.c:
3819           modified
3820         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
3821           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
3822           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
3823           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
3824           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
3825           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
3826           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
3827           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
3828           support/cpp2/move-if-change, support/cpp2/opts.c,
3829           support/cpp2/opts.h, support/cpp2/opts.sh,
3830           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
3831           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
3832           support/cpp2/win32, support/cpp2/win32/dirent.c,
3833           support/cpp2/win32/dirent.h:
3834           added
3835         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
3836         * support/cpp2/sdcpp.h: renamed from sdcc.h
3837         * sdcppinit.c: deleted
3838
3839 2006-12-23 Borut Razem <borut.razem AT siol.net>
3840
3841         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
3842           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
3843           preproc.c: an other try to fix bug #982435: introduced
3844           -pedantic-parse-number command line option and pedantic_parse_number
3845           pragma
3846
3847 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
3848
3849         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
3850            BSEG handling,
3851           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
3852            corrected overlayed areax addresses, warn about memory overlaps
3853         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
3854         * src/avr/main.c,
3855         * src/ds390/main.c,
3856         * src/hc08/main.c,
3857         * src/mcs51/main.c,
3858         * src/pic16/main.c,
3859         * src/pic/main.c,
3860         * src/xa51/main.c,
3861         * src/z80/main.c,
3862         * src/port.h: added xabs_name and iabs_name
3863         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
3864           (glue, emitMaps): create and emit maps d_abs and i_abs
3865         * src/SDCCglue.h: cosmetic changes
3866         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
3867         * src/SDCCmem.h,
3868         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
3869           (allocDefault): put absolute, initialized globals in them
3870         * support/regression/tests/absolute.c: added absolute bdata test
3871         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
3872
3873 2006-12-20 Borut Razem <borut.razem AT siol.net>
3874
3875         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
3876         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
3877           added regression test for bug #982435
3878
3879 2006-12-18 Borut Razem <borut.razem AT siol.net>
3880
3881         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
3882         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
3883           small cosmetic changes
3884         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
3885         * support/regression/tests/bug-1351710.c: added regression test
3886
3887 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3888
3889         * doc/sdccman.lyx: added the long missed iCode table
3890           "<where is figure II?>", added links to wiki
3891
3892 2006-12-17 Borut Razem <borut.razem AT siol.net>
3893
3894         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
3895           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
3896           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
3897           unified table driven pragma handling, pragma argument type checking
3898         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
3899           current one - version 1.1.3
3900         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
3901
3902 2006-12-13 Raphael Neider <rneider AT web.de>
3903
3904         * src/pic/device.h: removed AssignedMemory structure and macros
3905         * src/pic/device.c: removed global finalMapping (linker assigns
3906             memory locations),
3907           (register_map): add SFRs to remembered memRanges
3908           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
3909           assignFixedRegisters,assignRelocatableRegisters): removed,
3910           (setMaxRAM,validAddress): adapted accordingly,
3911           (pic14_hasSharebank,pic14_getSharedStack): only report and use
3912             reasonably sized sharebanks,
3913         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
3914           (allDefsOutOfRange): removed unused code,
3915         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
3916             handling
3917         * src/pic/pcode.c (register_reassign): removed recursion warning,
3918             fired far too often,
3919         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
3920             to use existing pic14_stringInSet() to avoid duplicate symbols,
3921             tidied up the code a bit,
3922           (pic14printLocals): added in symmetry to printExterns, replaces
3923             writeUsedRegs more or less,
3924           (picglue): call new pic14_printLocals(),
3925         * device/include/pic/pic*.h: removed #pragma memmap directives,
3926             information gathered from include/pic/pic14devices.txt
3927         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
3928
3929 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
3930
3931         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
3932
3933 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3934
3935         * device/include/mcs51/cc2430.h: fixed missing ';'
3936
3937 2006-12-10 Raphael Neider <rneider AT web.de>
3938
3939         * device/lib/pic16/libc/stdio/vfprintf.c,
3940         * device/lib/pic16/libc/stdio/printf_small.c,
3941         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
3942           char arguments, as char varargs are cast to int by the caller,
3943           hopefully fixes #1604915 (other device libraries are still affected)
3944
3945 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3946
3947         * src/mcs51/ralloc.c (packRegsForAssign),
3948         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
3949
3950 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
3951
3952         * device/include/malloc.h: removed init_dynamic_memory
3953         * device/lib/malloc.c: made init_dynamic_memory static and automatically
3954           call it once from malloc. Also use _sdcc_heap[] from _heap.c
3955         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
3956         * device/lib/libsdcc.lib,
3957         * device/lib/Makefile.in,
3958         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
3959         * doc/sdccman.lyx: documented use of new _heap.c
3960         * support/regression/tests/malloc.c: removed init_dynamic_memory
3961         * src/cdbFile.c(spacesToUnderscores): new function,
3962           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
3963           1068030
3964         * device/include/tinibios.h: removed defines for putchar and getchar
3965         * device/lib/ds390/Makefile.in: added putchar.c
3966         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
3967
3968 2006-12-09 Borut Razem <borut.razem AT siol.net>
3969
3970         * support/cpp2/sdcc.h: prevent multiple inclusion
3971         * support/cpp2/options.h: deleted
3972
3973 2006-12-08 Borut Razem <borut.razem AT siol.net>
3974
3975         * support/cpp2/sdcc.h: removed x*alloc() macros
3976         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
3977         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
3978           support/cpp2/sdcpp.sdc: x*alloc files added to the project
3979         * support/cpp2/system.h: moved #include "sdcc.h"
3980         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
3981           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
3982           added
3983         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
3984           -funsigned-char options
3985         * support/cpp2/sdcppmain.c: fixed bug 1611411
3986
3987 2006-12-07 Borut Razem <borut.razem AT siol.net>
3988
3989         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
3990           directive
3991
3992 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
3993
3994         * src/SDCCsymt.c (addDecl): fixed bug 1609244
3995         * src/SDCCmain.c (linkEdit): fixed bug 1609279
3996         * doc/sdccman.lyx,
3997         * .version: bumped to 2.6.2 because a) it's been a while
3998           b) the linker sources have moved c) the preprocessor is upgraded
3999
4000 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4001
4002         * support/regression/tests/snprintf.c: some checks
4003         * lib/src/printf_large.c: %bc: read char instead of int from stack
4004
4005 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
4006
4007         * device/include/mcs51/cc2430.h: inserted _XPAGE
4008
4009 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4010
4011         * device/include/mcs51/cc2430.h: added
4012
4013 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
4014
4015         * device/include/asm/default/features.h,
4016         * device/include/asm/ds390/features.h,
4017         * device/include/mcs51/at89s53.h,
4018         * device/include/ser.h,
4019         * device/include/ser_ir.h,
4020         * device/include/serial.h: changed keywords to double underscore variants,
4021           fixes bug 1590261 some more, thanks Steven Borley
4022
4023 2006-12-01 Raphael Neider <rneider AT web.de>
4024
4025         * src/pic/pcode.c (register_reassign): do not crash on recursive code
4026           but emit warning (recursion is not supported for pic14)
4027
4028 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4029
4030         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
4031         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
4032
4033 2006-11-30 Raphael Neider <rneider AT web.de>
4034
4035         * src/pic/device.c (dump_sfr): always emit symbols
4036         * src/pic/glue.c (pic14printPublics): fixed typo
4037
4038 2006-11-30 Raphael Neider <rneider AT web.de>
4039
4040         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
4041           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
4042           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
4043            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
4044            a sharebank, use a non-shared bank for the stack if none available
4045         * src/pic/device.h (struct memRange): added linked list next field,
4046           added prototypes for above functions
4047         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
4048           (typeRegWithIdx): accept fixed and unfixed stack registers
4049         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
4050           the stack, handle shared and banked stack (except for WSAVE),
4051           (insertBankSel): removed useless optimization (will never fire),
4052           (FixRegisterBanking): added optimization for devices with only one
4053           possibly aliased bank of memory, like 16f84
4054         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
4055           devices have no SHAREBANK in the linker script
4056         * device/include/pic/pic14devices.txt: documented memmap
4057         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
4058
4059 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4060
4061         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
4062           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
4063           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
4064           genhc08Code): switched most of the D (debug) macros to DD (detailed
4065           debug) macros to better control clutter in the generated .asm file.
4066         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
4067           genRightShift): fixed bug with non-constant bit shift stored to
4068           a volatile result (SF Open Discussion forum thread #1616749).
4069           Single byte case is not yet optimized.
4070
4071 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
4072
4073         * device/include/asm/mcs51/features.h,
4074         * device/include/malloc.h,
4075         * device/include/stdio.h: changed keywords to double underscore variants,
4076           fixes bug 1590261
4077
4078 2006-11-27 Borut Razem <borut.razem AT siol.net>
4079
4080         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
4081           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
4082           support/cpp2/output.h, support/cpp2/cppinit.c,
4083           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
4084           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
4085           support/cpp2/cppdefault.c, support/cpp2/system.h,
4086           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
4087           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
4088           support/cpp2/prefix.c, support/cpp2/except.h,
4089           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
4090           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
4091           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
4092           support/cpp2/version.c, support/cpp2/cppmain.c,
4093           support/cpp2/version.h, support/cpp2/hashtable.c,
4094           support/cpp2/cpperror.c:
4095           synchronized with GCC CPP release version 3.3.6,
4096           the latest where cppmain.c still exists.
4097         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
4098           support/cpp2/sdcppinit.c: added
4099
4100 2006-11-27 Borut Razem <borut.razem AT siol.net>
4101
4102         * support/cpp2/cpplex.c:
4103           fixed _asm ... _endasm handling bug, introduce with GCC CPP
4104           synchronization
4105         * support/cpp2/cpplib.c: removed definitions of unused variables
4106
4107 2006-11-26 Borut Razem <borut.razem AT siol.net>
4108
4109         * support/cpp2/libiberty.h: commented out x*alloc() declarations
4110           since they are redefined by macros in support/cpp2/sdcc.h
4111         * support/cpp2/sdcc.h: x*alloc macro redefinition
4112
4113 2006-11-25 Borut Razem <borut.razem AT siol.net>
4114
4115         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
4116           support/cpp2/configure, support/cpp2/Makefile.in,
4117           support/cpp2/cppfiles.c, support/cpp2/output.h,
4118           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
4119           support/cpp2/config.h, support/cpp2/cpplib.h,
4120           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
4121           support/cpp2/cppdefault.c, support/cpp2/config.in,
4122           support/cpp2/system.h, support/cpp2/cpplex.c,
4123           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
4124           support/cpp2/cppdefault.h, support/cpp2/prefix.c
4125           support/cpp2/hwint.h, support/cpp2/mbchar.h,
4126           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
4127           support/cpp2/configure.in, support/cpp2/intl.h,
4128           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
4129           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
4130           support/cpp2/version.c, support/cpp2/cppmain.c,
4131           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
4132           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
4133           support/cpp2/cpperror.c,
4134           support/cpp2/libiberty/safe-ctype.c,
4135           support/cpp2/libiberty/safe-ctype.h,
4136           support/cpp2/libiberty/splay-tree.c,
4137           support/cpp2/libiberty/obstack.c,
4138           support/cpp2/libiberty/lbasename.c,
4139           support/cpp2/libiberty/splay-tree.h,
4140           support/cpp2/libiberty/obstack.h:
4141           synchronized with GCC CPP release version 3.2.3,
4142           the latest before integration of cpp into gcc
4143         * support/cpp2/except.h, support/cpp2/line-map.c,
4144           support/cpp2/line-map.h,
4145           support/cpp2/libiberty/hex.c,
4146           support/cpp2/libiberty/concat.c,
4147           support/cpp2/libiberty/filenames.h: added
4148         * support/cpp2/intl.c: deleted
4149
4150 2006-11-24 Borut Razem <borut.razem AT siol.net>
4151
4152         * src/SDCC.y: enabled compilation of empty source file
4153         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
4154           "ISO C forbids an empty source file"
4155         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
4156           if all the code is ifdefed out.
4157
4158 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4159
4160         * src/hc08/gen.c (genPcall): fix for bug #1601032
4161
4162 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
4163
4164         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
4165         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
4166         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
4167         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
4168         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
4169         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
4170         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
4171         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
4172         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
4173         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
4174         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
4175         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
4176         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
4177         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
4178         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
4179           Renamed to all upper case as per the standard set by SiLabs
4180
4181 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
4182
4183         * device/include/mcs51/C8051F520.h: new, added
4184         * device/include/mcs51/compiler.h: added link about predefined macros
4185
4186 2006-11-23 Raphael Neider <rneider AT web.de>
4187
4188         * src/regression/Makefile: add -L path to fresh library
4189         * src/regression/simulate: emphasize FAILED output
4190         * src/regression/create_stc: output _failures from gpsim
4191         * src/regression/compare4.c,
4192         * src/regression/rotate6.c: fixed char literals,
4193           all compile, all run =8-D
4194
4195         * src/pic/pcode.h: added isPCASMDIR macro
4196         * src/pic/gen.c (genAnd): fixed bit offset
4197         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
4198           packBits): unified register numbering schemes,
4199           (newReg): do not insert stack registers into hash table,
4200           (initStack): unpinned pseudo stack, simplified,
4201           (typeRegWithIdx): fixed retrieval of stack registers,
4202         * src/pic/pcode.c (addpCodeComment,sameBank): added,
4203           (pCodeReplace): removed invalid assertion,
4204           (insertPCodeInstruction): fixed newly added labels,
4205           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
4206           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
4207           DumpFlow): removed unsed (broken?) code,
4208           (insertBankSel): prevent STATUS from being BANKSELed,
4209           (FixRegisterBanking): rewritten from scratch, implemented generic
4210             optimizations (suppress BANKSELs to same register and to registers
4211             present in all banks),
4212           (AnalyzeBanking): update flow after BANKSELection
4213
4214         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
4215             sharebank, let linker place it, mark STKxx symbols as emitted
4216
4217 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4218
4219         * src/regression/arrays.c,
4220         * src/regression/bank1.c,
4221         * src/regression/bool2.c,
4222         * src/regression/compare7.c,
4223         * src/regression/compare8.c,
4224         * src/regression/compare9.c,
4225         * src/regression/compare10.c,
4226         * src/regression/configword.c,
4227         * src/regression/for.c,
4228         * src/regression/mult1.c,
4229         * src/regression/pointer1.c,
4230         * src/regression/rotate6.c,
4231         * src/regression/string1.c,
4232         * src/regression/struct1.c,
4233         * src/regression/Makefile: make PIC14 regression tests run again
4234           (3 fail, 6 won't compile)
4235
4236 2006-11-21 Raphael Neider <rneider AT web.de>
4237
4238         * device/include/pic16/pic18f4550.h,
4239         * device/include/pic16/pic18f4455.h,
4240         * device/lib/pic16/libdev/pic18f4550.c,
4241         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
4242         * configure.in: removed superfluous closing bracket
4243
4244 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4245
4246         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
4247           always positive.
4248
4249 2006-11-21 Raphael Neider <rneider AT web.de>
4250
4251         * src/pic/device.{c,h}: added pic14_getPIC()
4252         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
4253           (genAnd): added PIC code for one case, fixes #1597044
4254         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
4255           SFRs that are present in all banks (e.g., STATUS)
4256
4257 2006-11-20 Raphael Neider <rneider AT web.de>
4258
4259         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
4260           INCFSZ/INCFSZW and declared them as changing Z bit,
4261           (insertPCodeInstruction): correctly invert the above instructions,
4262           fixes #1599333,
4263           (DoBankSelect): don't panic on po_immediates
4264
4265 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4266
4267         * as/link/aslink.h,
4268         * as/link/mcs51/lkihx.c (newArea),
4269         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
4270         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
4271
4272 2006-11-11 Raphael Neider <rneider AT web.de>
4273
4274         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
4275           bitfield symbols, fixes #1579535 (once more...).
4276
4277 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4278
4279         * support/regression/generate-cases.py,
4280         * support/regression/fwk/include/testfwk.h,
4281         * support/regression/fwk/lib/testfwk.c: used code pointers,
4282           (about 50kByte less code generated for mcs51)
4283
4284 2006-11-06 Borut Razem <borut.razem AT siol.net>
4285
4286         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4287           debugger/mcs51/configure: fixed failed check because the function
4288           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
4289           who submitted the patch for gpsim.
4290         * debugger/mcs51/configure.in: removed the result message
4291         * debugger/mcs51/Makefile.in: fixed the config.status warning
4292           "... seems to ignore the --datarootdir setting"
4293
4294 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
4295
4296         * device/include/mcs51/c8051f020.h,
4297         * device/include/mcs51/c8051f040.h,
4298         * device/include/mcs51/c8051f060.h,
4299         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
4300         * src/z80/gen.c (gencjneshort),
4301         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
4302
4303 2006-10-31 Borut Razem <borut.razem AT siol.net>
4304
4305         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4306           debugger/mcs51/configure: get readline version
4307
4308 2006-10-30 Borut Razem <borut.razem AT siol.net>
4309
4310         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
4311         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4312           debugger/mcs51/configure: locate readline even when cross compiling
4313         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
4314
4315 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4316
4317         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
4318           serial port.
4319
4320 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
4321
4322         * device/include/malloc.h,
4323         * device/lib/calloc.c,
4324         * device/lib/free.c,
4325         * device/lib/malloc.c,
4326         * device/lib/realloc.c: moved definition of struct into sources
4327         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
4328
4329 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
4330
4331         * as/asx8051.dsp: corrected output directories
4332         * as/link/hc08: new directory for hc08 linker
4333         * as/hc08/aslink.h,             as/link/aslink.h,
4334         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
4335         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
4336         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
4337         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
4338         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
4339         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
4340         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
4341         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
4342         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
4343         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
4344         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
4345         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
4346         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
4347         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
4348         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
4349         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
4350         * as/link/hc08/conf.mk,
4351         * configure,
4352         * configure.in,
4353         * Makefile.in,
4354         * sdcc.dsw: moved hc08 linker to as/link/hc08
4355         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
4356         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
4357         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
4358         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
4359         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
4360         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
4361         * as/link/mcs51/aslink.dsp,
4362         * as/link/mcs51/Makefile.in: factored out the common files
4363         * as/hc08/lkstore.c: deleted, use the one already in as/link/
4364         * as/clean.mk: extra cleaning common files
4365         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
4366         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
4367         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
4368
4369 2006-10-29 Raphael Neider <rneider AT web.de>
4370
4371         * src/pic/ralloc.c (newReg): create aliases for registers with
4372           multiple names to fix #1579535 and #1584001,
4373           (regWithIdx,dirregWithName): resolve aliases on lookup
4374         * src/pic/pcode.c (DoBankSelect): die with error message on failing
4375           bankselect
4376         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
4377           to prevent build errors on small devices
4378
4379 2006-10-28 Raphael Neider <rneider AT web.de>
4380
4381         * src/pic/gen.c (genFunction,genCall): drop "same code page"
4382           assumption within interrupt handlers, fixes #1584940
4383         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
4384           "emitted" to avoid emitting them again in udata
4385
4386 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4387
4388         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
4389         Removed.
4390
4391 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4392
4393         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
4394         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
4395         on/off CR to CRLF conversion.
4396
4397 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4398
4399         * doc/sdccman.lyx: updated IRQ section
4400
4401 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4402
4403         * device/lib/serial_io.c: removed
4404         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
4405         replacements for serial_io.c
4406
4407 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
4408
4409         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
4410
4411 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4412
4413         * device/lib/serial_io.c: Default putchar() and getchar() for
4414           mcs51 uses serial port.
4415
4416 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
4417
4418         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
4419
4420 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4421
4422         * support/regression/ports/mcs51/support.c: smaller
4423         _sdcc_external_startup()
4424         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
4425
4426 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
4427
4428         * device/lib/gbz80/crt0.s,
4429         * device/lib/gbz80/crt0_rle.s,
4430         * device/lib/gbz80/div.s,
4431         * device/lib/gbz80/fstubs.s,
4432         * device/lib/gbz80/heap.s,
4433         * device/lib/gbz80/mul.s,
4434         * device/lib/gbz80/putchar.s,
4435         * device/lib/gbz80/stubs.s,
4436         * device/lib/z80/crt0.s,
4437         * device/lib/z80/crt0_rle.s,
4438         * device/lib/z80/div.s,
4439         * device/lib/z80/fstubs.s,
4440         * device/lib/z80/heap.s,
4441         * device/lib/z80/mul.s,
4442         * device/lib/z80/putchar.s,
4443         * device/lib/z80/stubs.s: reverted, I was mistaken
4444
4445 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4446
4447         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
4448         * support/regression/ports/mcs51/support.c: removed race
4449         condition on TI in _putchar allowing to use serial port mode 0
4450
4451 2006-10-20 Borut Razem <borut.razem AT siol.net>
4452
4453         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
4454
4455 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
4456
4457         * device/lib/gbz80/crt0.s,
4458         * device/lib/gbz80/crt0_rle.s,
4459         * device/lib/gbz80/div.s,
4460         * device/lib/gbz80/fstubs.s,
4461         * device/lib/gbz80/heap.s,
4462         * device/lib/gbz80/mul.s,
4463         * device/lib/gbz80/putchar.s,
4464         * device/lib/gbz80/stubs.s,
4465         * device/lib/z80/crt0.s,
4466         * device/lib/z80/crt0_rle.s,
4467         * device/lib/z80/div.s,
4468         * device/lib/z80/fstubs.s,
4469         * device/lib/z80/heap.s,
4470         * device/lib/z80/mul.s,
4471         * device/lib/z80/putchar.s,
4472         * device/lib/z80/stubs.s: removed all leading underscores from area names
4473
4474 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
4475
4476         * support/regression/ports/mcs51/support.c: use highest baudrate so the
4477           regression tests are not waiting in the simulator for simulated
4478           transmission of debug output
4479
4480 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4481
4482         * device/lib/printf_large.c: slightly smaller
4483         * doc/sdccman.lyx: do not use spaces within html links
4484
4485 2006-10-16 Borut Razem <borut.razem AT siol.net>
4486
4487         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
4488           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
4489           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
4490           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
4491           debugger/mcs51/configure:
4492           [ 1185668 ] add gnu readline support to sdcdb - enabled
4493
4494 2006-10-16 Raphael Neider <rneider AT web.de>
4495
4496         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
4497           fixes #1577882, removes close to all banking optimizations
4498
4499 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
4500
4501         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
4502           variables in code memory
4503         * support/regression/tests/absolute.c: added test for this
4504
4505 2006-10-15 Raphael Neider <rneider AT web.de>
4506
4507         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
4508           devices,
4509           (BankSelect): emit BANKSEL before touching linker-placed regs,
4510           fixes #1570934
4511
4512 2006-10-10 Raphael Neider <rneider AT web.de>
4513
4514         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
4515         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
4516         * src/pic/main.c (_pic14_parseOptions),
4517         * src/pic/main.h: mostly reverted to previous state, now use results
4518             from SDCCmain.c's argument parsing
4519
4520 2006-10-10 Borut Razem <borut.razem AT siol.net>
4521
4522         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
4523           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
4524           [ 1185668 ] add gnu readline support to sdcdb -
4525           prepared for READLINE, not enabled yet,
4526           thanks to <tal.bav AT gmail.com>
4527
4528 2006-10-10 Raphael Neider <rneider AT web.de>
4529
4530         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
4531         * src/pic16/devices.inc,
4532         * device/include/pic16 (pic18f[24]620.h),
4533         * device/include/pic18fregs.h,
4534         * device/lib/pic16/pics.all,
4535         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
4536             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
4537             Gary Plumbridge and Anton Strobl
4538
4539 2006-10-10 Raphael Neider <rneider AT web.de>
4540
4541         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
4542           --stack-siz=NUM options to configure the argument passing stack
4543         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
4544         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
4545           (pic14_getSharebankSize): obey --stack-siz=NUM,
4546           (pic14_getSharebankAddress): obey --stack-loc=NUM
4547
4548 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4549
4550         * doc/sdccman.lyx: added to the manual
4551         * doc/figures/ddd_example.png: added (neither pdflatex nor
4552         most browsers seem to like the .eps file)
4553
4554 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
4555
4556         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
4557         to /tmp and /var/tmp acc. LSB
4558         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
4559         RESULT_TYPE_IFX
4560         * support/regression/tests/onebyte.c: added test
4561
4562 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4563
4564         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
4565
4566 2006-10-05 Borut Razem <borut.razem AT siol.net>
4567
4568         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
4569           thanks to dfulab:
4570           - sdcc.dsw: changed property eol-style to CRLF
4571           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
4572
4573 2006-10-04 Raphael Neider <rneider AT web.de>
4574
4575         * device/include/pic/{pic16f84.h,pic16f84a.h},
4576         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
4577           from patch #1522504, thanks to Robas Teodor
4578
4579 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
4580
4581         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
4582           fixes bug 1566015
4583
4584 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
4585
4586         * src/pic16/glue.c (pic16emitMaps),
4587         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
4588         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
4589         * device/lib/pic16/libc/string/memcpypgm2ram.c,
4590         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
4591           Philipp Krause
4592         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
4593         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
4594
4595 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4596
4597         * support/librarian/sdcclib.c: Added option -l.
4598         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
4599           usage totals.
4600         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
4601           using Windows command prompt.
4602
4603 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
4604
4605         * device/lib/libsdcc.lib: added module rand
4606         * src/ds390/ralloc.c (rematStr),
4607         * src/hc08/ralloc.c (rematStr),
4608         * src/mcs51/ralloc.c (rematStr),
4609         * src/z80/ralloc.c (rematStr): made output more consistent
4610         * src/mcs51/gen.c: cosmetic changes
4611
4612 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
4613
4614         * src/port.h: added mem.cabs_name to PORT
4615         * src/ds390/main.c,
4616         * src/hc08/main.c,
4617         * src/mcs51/main.c,
4618         * src/pic16/main.c,
4619         * src/pic/main.c,
4620         * src/xa51/main.c,
4621         * src/z80/main.c: added cabs_name initializers
4622         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
4623           constants
4624           (emitMaps): emit absolutes in code memory into cabs_name
4625         * src/SDCCmem.c,
4626         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
4627         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
4628         * support/regression/fwk/include/testfwk.h: added define for at
4629         * support/regression/tests/absolute.c: added, new
4630
4631 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
4632
4633         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
4634           optimizations, see also patch 887161 by Stas Sergeev
4635         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
4636           to be necessary anymore,
4637           (102, 103, 104, 127): renamed all occurances of bp to _bp
4638
4639 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
4640
4641         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
4642           thanks Weston T. Schmidt for patch 1555221
4643         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
4644         * src/SDCCicode.c(geniCodeMultiply): small optimization
4645
4646 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
4647
4648         * device/include/stdlib.h: added rand prototypes
4649         * device/lib/rand.c: new, added
4650         * device/lib/Makefile.in: added rand.c
4651         * src/z80/peeph.def,
4652         * src/z80/peeph-gbz80.def,
4653         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
4654
4655 2006-09-20 Raphael Neider <rneider AT web.de>
4656
4657         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
4658
4659 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
4660
4661         * as/link/aslink.h: cosmetic changes
4662         * as/link/mcs51/Makefile.in,
4663         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
4664
4665 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
4666
4667         * as/link/aslink.h,
4668         * as/link/mcs51/aslink.h,
4669         * as/link/z80/aslink.h: merged and moved to as/link/
4670         * as/link/lkstore.c,
4671         * as/link/mcs51/lkstore.c: moved to as/link/
4672         * as/link/clean.mk: remove *.o
4673         * as/link/mcs51/alloc.h: deleted
4674         * as/link/mcs51/lkarea.c: added lnksect prototype
4675         * as/link/mcs51/lkdata.c,
4676         * as/link/mcs51/lklex.c,
4677         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
4678         * as/link/mcs51/lkmem.c,
4679         * as/link/mcs51/lknoice.c: removed include strcmpi.h
4680         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
4681         * as/link/mcs51/aslink.dsp,
4682         * as/link/mcs51/Makefile.aslink,
4683         * as/link/mcs51/Makefile.bcc,
4684         * as/link/mcs51/Makefile.in: updated for moved files
4685         * as/link/z80/lkarea.c,
4686         * as/link/z80/lkhead.c,
4687         * as/link/z80/lklex.c,
4688         * as/link/z80/lklibr.c,
4689         * as/link/z80/lklist.c,
4690         * as/link/z80/lkmain.c,
4691         * as/link/z80/lkrloc.c,
4692         * as/link/z80/lksym.c: synced with mcs51
4693         * as/link/z80/lkdata.c,
4694         * as/link/z80/lkeval.c,
4695         * as/link/z80/lkihx.c,
4696         * as/link/z80/lks19.c: cosmetic changes
4697         * as/link/z80/Makefile.in,
4698         * as/link/z80/linkgbz80.dsp,
4699         * as/link/z80/linkz80.dsp: updated for moved files
4700
4701 2006-09-16 Borut Razem <borut.razem AT siol.net>
4702
4703         * debugger/mcs51/sdcdb.c: partially fixed
4704           [ 1203664 ] sdcdb fails to open files w. two "." periods
4705         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
4706           debugger/mcs51/symtab.h: fixed indenting
4707         * configure.in, configure: up to date with latest Maarten's changes
4708
4709 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
4710
4711         as/link/mcs51
4712         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
4713         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
4714         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
4715         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
4716         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
4717         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
4718         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
4719         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
4720         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
4721         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
4722         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
4723         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
4724         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
4725         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
4726         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
4727         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
4728         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
4729         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
4730         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
4731         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
4732         as/link/mcs51/alloc.h,
4733         as/link/mcs51/clean.mk,
4734         as/link/mcs51/conf.mk,
4735         as/link/mcs51/Makefile.bcc,
4736         as/link/mcs51/Makefile.in,
4737         as/link/mcs51/readme.390,
4738         as/link/mcs51/strcmpi.c,
4739         as/link/mcs51/strcmpi.h,
4740         as/mcs51/clean.mk,
4741         as/mcs51/Makefile.bcc,
4742         as/mcs51/Makefile.in,
4743         configure,
4744         Makefile.in,
4745         sdcc.dsw: moved mcs51 linker to as/link/mcs51
4746
4747 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
4748
4749         * as/link,
4750         * as/link/Makefile.in,
4751         * as/link/z80/linkgbz80.dsp,
4752         * as/link/z80/linkz80.dsp,
4753         * configure,
4754         * link,
4755         * link/clean.mk,
4756         * link/Makefile.in,
4757         * link/README,
4758         * link/z80,
4759         * link/z80/aslink.h,
4760         * link/z80/clean.mk,
4761         * link/z80/conf.mk,
4762         * link/z80/linkgbz80.dsp,
4763         * link/z80/linkz80.dsp,
4764         * link/z80/lkarea.c,
4765         * link/z80/lkdata.c,
4766         * link/z80/lkeval.c,
4767         * link/z80/lkgb.c,
4768         * link/z80/lkgg.c,
4769         * link/z80/lkhead.c,
4770         * link/z80/lkihx.c,
4771         * link/z80/lklex.c,
4772         * link/z80/lklibr.c,
4773         * link/z80/lklist.c,
4774         * link/z80/lkmain.c,
4775         * link/z80/lkrloc.c,
4776         * link/z80/lks19.c,
4777         * link/z80/lksym.c,
4778         * link/z80/Makefile.in,
4779         * Makefile.in,
4780         * sdcc.dsw: moved link/ to as/link/
4781
4782 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
4783
4784         * as/mcs51/i51mch.c (machine): fixed warning
4785
4786 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
4787
4788         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
4789
4790 2006-09-09 Borut Razem <borut.razem AT siol.net>
4791
4792         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
4793           sdcdb WIN32 native port
4794         * src/clean.mk: fixed
4795
4796 2006-09-08 Borut Razem <borut.razem AT siol.net>
4797
4798         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
4799
4800 2006-09-08 Raphael Neider <rneider AT web.de>
4801
4802         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
4803         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
4804             to gplink to disable processor mismatch warning and to allow
4805             the use of devices with only aliased (shared) memory banks,
4806           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
4807
4808 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4809
4810         * doc/sdccman.lyx: Some re-formating plus example on using
4811           #pragma preproc_asm +/-
4812
4813 2006-09-07 Borut Razem <borut.razem AT siol.net>
4814
4815         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
4816           section
4817
4818 2006-09-06 Borut Razem <borut.razem AT siol.net>
4819
4820         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
4821           line at sdcc.nsi:153
4822         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
4823
4824 2006-09-05 Borut Razem <borut.razem AT siol.net>
4825
4826         * configure.in, configure: support for winsock2
4827         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
4828           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
4829           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
4830           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
4831           debugger/mcs51/symtab.h: sdcdb WIN32 native port
4832
4833 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
4834
4835         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
4836           and OP_DEFS
4837         * support/regression/tests/bug1551947.c: new, added
4838         * src/SDCCsymt.h: strings are char* not byte*
4839
4840 2006-09-05 Raphael Neider <rneider AT web.de>
4841
4842         * device/lib/pic16/libdev/pic18f4550.c,
4843           device/include/pic16/pic18f4550.h: added PORTD/TRISD
4844             declarations/definitions from patch #1520949
4845
4846 2006-09-05 Raphael Neider <rneider AT web.de>
4847
4848         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
4849           byte-aligned bitfields, fixes #1539278
4850
4851 2006-09-05 Raphael Neider <rneider AT web.de>
4852
4853         * src/pic/gen.c (genReceive): skip unreferenced arguments,
4854           fixes #1544120
4855
4856 2006-09-04 Borut Razem <borut.razem AT siol.net>
4857
4858         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
4859         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
4860           -mno-cygwin is a part of the compiler name
4861         * support/scripts/sdcc_mingw32: don't disable ucsim
4862
4863 2006-09-03 Borut Razem <borut.razem AT siol.net>
4864
4865         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
4866         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
4867
4868 2006-09-03 Raphael Neider <rneider AT web.de>
4869
4870         * src/pic/ralloc.c,
4871         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
4872           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
4873           fixes #1550049
4874
4875 2006-09-01 Borut Razem <borut.razem AT siol.net>
4876
4877         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
4878           to make ppc-osx happy
4879
4880 2006-08-31 Borut Razem <borut.razem AT siol.net>
4881
4882         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
4883         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
4884         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
4885         * support/regression/ports/ds390/spec.mk,
4886           support/regression/ports/mcs51/spec.mk,
4887           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
4888           To run regression tests in mingw environment:
4889           make DEV_NULL=NUL CC=gcc
4890
4891 2006-08-30 Borut Razem <borut.razem AT siol.net>
4892
4893         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
4894           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
4895           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
4896           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
4897           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
4898           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
4899           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
4900           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
4901           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
4902           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
4903           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
4904           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
4905           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
4906           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
4907           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
4908           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
4909           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
4910           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
4911           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
4912           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
4913           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
4914           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
4915           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
4916           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
4917           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
4918           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
4919           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
4920           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
4921           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
4922           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
4923           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
4924           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
4925           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
4926           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
4927           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
4928           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
4929           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4930           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
4931           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
4932           ucsim WIN32 native port
4933
4934 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4935
4936         * doc/sdccman.lyx: added note on dynamic memory heap initialization
4937
4938 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4939
4940         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
4941         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
4942
4943 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
4944
4945         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
4946         * support/regression/tests/bug1546986.c: new, added
4947         * as/mcs51/.cvsignore,
4948         * debugger/mcs51/.cvsignore,
4949         * src/.cvsignore: deleted
4950
4951 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4952
4953         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
4954           definitions)
4955
4956 2006-08-20 Borut Razem <borut.razem AT siol.net>
4957
4958         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
4959           removed cl_listen_console::match(), cl_console::match(),
4960           restructured cl_commander::proc_input()
4961
4962 2006-08-16 Borut Razem <borut.razem AT siol.net>
4963
4964         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
4965           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
4966           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
4967
4968 2006-08-14 Borut Razem <borut.razem AT siol.net>
4969
4970         * support/regression/Makefile.in,
4971           support/regression/ports/pic14/gpsim.cmd,
4972           support/regression/ports/pic14/spec.mk,
4973           support/regression/ports/pic14/support.c:
4974           added pic14 regression test
4975
4976 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
4977
4978         * as/doc/asxhtm.html: documented changed ABS behaviour
4979         * as/doc/README: fixed some typos
4980
4981 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
4982
4983         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
4984           not defined on host
4985
4986 2006-08-12 Borut Razem <borut.razem AT siol.net>
4987
4988         * support/regression/fwk/include/testfwk.h,
4989           support/regression/fwk/lib/testfwk.c,
4990           support/regression/generate-cases.py,
4991           support/regression/Makefile.in:
4992           regression test framework does not depend on function pointers and
4993           variable arguments
4994
4995 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
4996
4997         * device/include/stddef.h: c temporary hack to fix bug 1518273
4998
4999 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5000
5001         * device/include/mcs51/cc2510fx.h: added
5002         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
5003           to projects.
5004
5005 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
5006
5007         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
5008         * as/z80/Makefile.in: added strcmpi.c
5009         * as/z80/z80adr.c: added upper case registers and lower case conditionals
5010         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
5011
5012 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
5013
5014         * device/lib/gbz80/asm_strings.s,
5015         * device/lib/gbz80/crt0_rle.s,
5016         * device/lib/gbz80/div.s,
5017         * device/lib/gbz80/mul.s,
5018         * device/lib/gbz80/shift.s,
5019         * device/lib/z80/asm_strings.s,
5020         * device/lib/z80/crt0_rle.s,
5021         * device/lib/z80/div.s,
5022         * device/lib/z80/mul.s,
5023         * device/lib/z80/shift.s: changed to all lower case menmonics except the
5024           flags which are all upper case
5025
5026 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
5027
5028         * as/z80/asm.h: made CASE_SENSITIVE 1
5029         * link/z80/aslink.h: made CASE_SENSITIVE 1
5030         * src/z80/gen.c (throughout): made all conditionals upper case
5031         * support/regression/tests/bug1503067.c: new
5032
5033 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
5034
5035         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
5036           (shiftIntoPair): added case 2 for PAIR_IY,
5037           (setupToPreserveCarry): replaced parameters with iCode and check if
5038            PAIR_DE is in use to fix bug 1399290,
5039           (genPlus, genMinus): updated call to setupToPreserveCarry
5040         * support/regression/tests/bug1399290.c: new
5041
5042 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
5043
5044         * device/lib/Makefile.in (Z80SOURCES): enabled float support
5045         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
5046         * src/ds390/gen.c (shiftRLong),
5047         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
5048         * src/mcs51/gen.c (sameReg): changed to sameByte,
5049           (xch_a_aopGet): new,
5050           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
5051            shiftRLong): fixed bug 1533966
5052         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
5053           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
5054         * support/regression/Makefile.in: disabled z80, enabled ucz80
5055         * support/regression/tests/float_trans.c: enabled test for z80 and host
5056         * support/regression/tests/shifts2.c: new, for testing bug 1533966
5057
5058 2006-08-01 Borut Razem <borut.razem AT siol.net>
5059
5060         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
5061           comparison is always false due to limited range of data type
5062           on PPC64 machine (openpower-linux1) where "char = unsigned char"
5063
5064 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
5065
5066         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
5067         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
5068         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
5069         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
5070
5071 2006-07-31 Borut Razem <borut.razem AT siol.net>
5072
5073         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
5074           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
5075           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
5076           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
5077           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
5078           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
5079           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
5080           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
5081           enable ucsim mingw compilation. Serial port is disabled,
5082           since it uses termios.h API, which is not available on native
5083           WIN32
5084
5085 2006-07-31 Borut Razem <borut.razem AT siol.net>
5086
5087         * Small Device C Compiler 2.6.0 released
5088         * support/scripts/sdcc.nsi: added FULL_DOC option
5089         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
5090
5091 2006-07-28 Borut Razem <borut.razem AT siol.net>
5092
5093         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
5094         * doc/INSTALL.txt: updated
5095
5096 2006-07-27 Borut Razem <borut.razem AT siol.net>
5097
5098         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
5099           device/lib/pic/libdev/Makefile.in: fixed bug
5100           [ 1438354 ] pic libsdcc: distclean doesn't work
5101         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
5102           device/lib/pic16/libio/Makefile.in: fixed bug
5103           [ 1438344 ] pic16 lib: clean doesn't work properly
5104         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
5105
5106 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
5107
5108         * device/lib/pic/libsdcc/fsdiv.c,
5109         * device/lib/pic/libsdcc/fsmul.c,
5110         * device/lib/pic16/libsdcc/float/fsdiv.c,
5111         * device/lib/pic16/libsdcc/float/fsmul.c,
5112         * device/lib/_fsdiv.c,
5113         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
5114         * support/regression/tests/bug1520966.c: added
5115         * doc/knownbugs.html: removed [ 1520966 ] from the list
5116
5117 2006-07-25 Borut Razem <borut.razem AT siol.net>
5118
5119         * configure.in, configure, sdccconf_in.h: fixed bug
5120           [ 1519095 ] regression test onebyte.c fails on ppc64 host
5121         * doc/knownbugs.html: removed [ 1519095 ] from the list
5122
5123 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
5124
5125         * doc/knownbugs.html: added, contains list of known bugs at release
5126         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
5127
5128 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
5129
5130         * device/include/mcs51/compiler.h: added SFRX for xdata based special
5131           function registers and corrected defaults with additional warning
5132         * device/lib/malloc.c: cosmetic changes
5133         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
5134         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
5135           (fillGaps): and used it
5136
5137 2006-07-20 Raphael Neider <rneider AT web.de>
5138
5139         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
5140           output unless SDCCPICDEBUG is set
5141         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
5142           output if SILENT is set
5143
5144 2006-07-11 Borut Razem <borut.razem AT siol.net>
5145
5146         * doc/README.txt: updated
5147
5148 2006-07-10 Borut Razem <borut.razem AT siol.net>
5149
5150         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
5151           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
5152           in WIN32 installation
5153         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
5154           release candidate 1
5155
5156 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
5157
5158         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
5159         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
5160
5161 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
5162
5163         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
5164
5165 2006-07-06 Borut Razem <borut.razem AT siol.net>
5166
5167         * support/regression/tests/bitfields.c:
5168           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
5169         * support/regression/tests/constantRange.c:
5170           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
5171
5172 2006-07-04 Borut Razem <borut.razem AT siol.net>
5173
5174         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
5175           src/port.mk,
5176           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
5177           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
5178           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
5179           reverted changes from 2006-07-03
5180         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
5181         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
5182           added CPPFLAGS, used by the host port
5183
5184 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
5185
5186         * support/regression/valdiag/tests/switch.c,
5187         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
5188         * support/regression/tests/libmullong.c: fixed for host
5189         * support/regression/ports/host/spec.mk: disable all warnings for host,
5190         SDCC runs with --less-pedantic too
5191
5192 2006-07-03 Borut Razem <borut.razem AT siol.net>
5193
5194         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
5195           defined CPPFLAGS
5196         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
5197         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
5198           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
5199           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
5200           include ../port.mk
5201         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
5202           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5203           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
5204           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
5205
5206 2006-07-02 Raphael Neider <rneider AT web.de>
5207
5208         * src/pic16/devices.inc,
5209         * device/include/pic16/pic18fregs.h,
5210         * device/include/pic16/pic18f4550.h,
5211         * device/lib/pic16/pics.all,
5212         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
5213
5214 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
5215
5216         * as/hc08/lkaomf51.c (OutputName),
5217         * as/mcs51/lkaomf51.c (OutputName),
5218         * as/z80/asmain.c (asmbl),
5219         * src/ds390/main.c (asmLineNodeFromLineNode),
5220         * src/hc08/ralloc.c (hc08_assignRegisters),
5221         * src/mcs51/main.c (asmLineNodeFromLineNode),
5222         * src/xa51/ralloc.c (checkRegMask),
5223         * src/xa51/gen.c (emitcode),
5224         * src/z80/gen.c (_emit2),
5225         * src/SDCCast.c (searchLitOp),
5226         * src/SDCCglobl.h,
5227         * support/packihx/packihx.c,
5228         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
5229         * src/ds390/gen.c (aopPutUsesAcc),
5230         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
5231         * support/regression/tests/libmullong.c (mullong_wrapper),
5232         * src/SDCCsymt.c (powof2),
5233         * src/SDCCast.c,
5234         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
5235         * src/SDCCsymt.h: added TYPE_TARGET_*
5236         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
5237         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
5238         SDCCast because 1) header problems 2) this is the right place
5239         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
5240         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
5241         prototype
5242
5243 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
5244
5245         * src/SDCCicode.h: removed buggy semicolon in unused macro
5246         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
5247         search for previous definiton of auto symbols too,
5248         (findPrevUse): fixed logic of emitWarnings
5249
5250 2006-06-26 Raphael Neider <rneider AT web.de>
5251
5252         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
5253           PCLATH and PCLATU on interrupts, potentially fixes #1505141
5254
5255 2006-06-25 Raphael Neider <rneider AT web.de>
5256
5257         * device/lib/pic/libm: NEW, added math library functions
5258         * device/lib/pic/libsdcc: NEW; added float support functions
5259         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
5260         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
5261           NEW, added math related headers
5262         * device/include/asm/pic/features.h: NEW
5263         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
5264           (popGet): allow larger offsets for AOP_PCODE,
5265           (genDataPointerSet): handle literals explicitly, more debug output,
5266           (genAssign): fixed for float using aopLiteral ;-)
5267         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
5268           GOTO initialisation routine
5269         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
5270           flag on registers, fixes #1469043 (local variables do not work)
5271         * src/pic/main.c (_pic14_do_link),
5272         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
5273           available
5274
5275 2006-06-25 Borut Razem <borut.razem AT siol.net>
5276
5277         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
5278           characters printed (not including the trailing '\0' used to end
5279           output to strings). Problem detected in regression test bug-927659.c.
5280           NOTE: printf() family functions should return int instead
5281           unsigned int!
5282         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
5283           specifier are printed as themselves
5284         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
5285           support flags, width and precision specifiers
5286
5287 2006-06-24 Borut Razem <borut.razem AT siol.net>
5288
5289         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
5290           to the list of sdcc tagrets not supporting bit type
5291         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
5292           testfor pic16 due to bug:
5293           [ 1511794 ] pic16: regression test bug-895992.c fails
5294
5295 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
5296
5297         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
5298         * src/SDCCglue.c (initPointer), fixed bug 1496419
5299         * support/regression/tests/bug1496419.c: new, added
5300
5301 2006-06-22 Borut Razem <borut.razem AT siol.net>
5302
5303         * support/regression/ports/pic16/support.c: use gpsim usart module from
5304           libgpsim_modules library
5305
5306 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5307
5308         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
5309         IP0H to IPH0.
5310
5311 2006-06-19 Raphael Neider <rneider AT web.de>
5312
5313         * src/pic/glue.h,src/pic16/glue.h: added prototypes
5314         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
5315           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
5316           (pic14printExterns,pic14printPublics,pic16printPublics,
5317           pic16_printExterns): use new functions to emit symbols
5318           (picglue,pic16glue): emit publics before emitting externs
5319         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
5320           locally defined functions to avoid bug #1443651
5321         * support/regression/tests/bug-716242.c: removed pic16 workaround
5322         * support/regression/ports/pic16/spec.mk: ignore errors during build
5323
5324 2006-06-19 Raphael Neider <rneider AT web.de>
5325
5326         * src/pic/glue.h: added pic14aopLiteral prototype
5327         * src/pic/glue.c (pic14aopLiteral): return unsigned int
5328         * src/pic/gen.c: removed stdint.h dependency
5329           (aopGet): use Safe_strdup()
5330           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
5331           (genDataPointerSet): use pic14aopLiteral()
5332         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
5333           for pic16; thanks to Bernhard and Maarten
5334
5335 2006-06-18 Borut Razem <borut.razem AT siol.net>
5336
5337         * support/regression/tests/structflexarray.c: flexible array members
5338           not supported by gcc < 3
5339         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
5340           GUI tool by default
5341         * src/pic/gen.c: don't include [p]strdin.h on solaris
5342         * support/Util/pstdint.h: addad svn attributes
5343         * support/regression/tests/constantRange.c,
5344           support/regression/tests/rotate.c: include inttypes.h instead
5345           stdint.h on solaris, addad svn attributes
5346
5347 2006-06-18 Raphael Neider <rneider AT web.de>
5348
5349         * src/SDCCsymt.c (initCSupport): change return type of divschar to
5350           int for PIC16
5351         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
5352           (pic16_genMinusBits): simplified sign-extension
5353           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
5354             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
5355             adjusted to correctly handle mixed-signed operands, disabled
5356             now unused multiplciation routines
5357         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
5358           (assignResultValue): added argument denoting the size of the result
5359             as returned by the function (fixes upcasts in assigning from
5360             function calls: char foo(); int i = foo();)
5361           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
5362             function result to assignResultValue
5363           (genMult): disabled inlined multiplication code
5364           (genDiv): augmented to also handle the modulus operator, fixed to
5365             handle mixed-signed operands correctly
5366           (genMod): simply call genDiv, disabled unused code
5367           (genAssign): fixed missing (sign-)extension on result
5368         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
5369             valid char operands, allow signed operands for native code, added
5370             division and modulo operator handling
5371         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
5372
5373         As a consequence, onebyte.c (if split into two files) and muldiv.c
5374         pass regression tests.
5375
5376 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5377
5378         * doc/Makefile.in: two runs of makeindex seem needed to get
5379         correct page references in the index of sdccman.pdf
5380         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
5381
5382 2006-06-17 Borut Razem <borut.razem AT siol.net>
5383
5384         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
5385
5386 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5387
5388         * doc/sdccman.lyx: updated, added (porting source code, debugging),
5389         mentioned ec2drv and paulmon
5390
5391 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
5392
5393         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
5394           consecutive abs areas
5395           (find_empty_space, allocate_space): added map to handle codemap or
5396            xdatamap,
5397           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
5398            absolute idata and xdata
5399         * as/mcs51/lkmem.c (summary2): updated legend
5400
5401 2006-06-16 Raphael Neider <rneider AT web.de>
5402
5403         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
5404
5405 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
5406
5407         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
5408           1208515
5409         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
5410
5411 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
5412
5413         * src/port.h (struct PORT): added field gp_tags, to hold the tag
5414         value of generic pointers,
5415         * src/avr/main.c,
5416           src/ds390/main.c,
5417           src/hc08/main.c,
5418           src/izt/i186.c,
5419           src/izt/tlcs900h.c,
5420           src/mcs51/main.c,
5421           src/pic/main.c,
5422           src/pic16/main.c,
5423           src/xa51/main.c,
5424           src/z80/main.c: PORT structure, added elements for gp_tags field,
5425         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
5426         fields in the PORT structure of each port,
5427         * src/SDCCast.c (decorateType): allow processing of generic pointers
5428         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
5429         S_FIXED symbols
5430
5431 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
5432
5433         * link/z80/lkgb.c,
5434         * link/z80/lkgg.c,
5435         * src/pic16/gen.c,
5436         * src/pic16/main.c,
5437         * src/pic16/pcode.c,
5438         * src/pic/main.c,
5439         * src/pic/pcoderegs.c,
5440         * src/SDCCicode.c,
5441         * src/SDCCmain.c,
5442         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
5443           bug 1504689 on minGW
5444
5445 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5446
5447         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
5448
5449 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
5450
5451         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
5452
5453 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
5454
5455         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
5456           for optimization
5457
5458 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
5459
5460         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
5461         to a char variable. Fixed bug #1504211
5462         * device/include/pic16/adc.h,
5463         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
5464         and fixed bug #1364390
5465
5466 2006-06-10 Borut Razem <borut.razem AT siol.net>
5467
5468         * CVSROOT: removed the CVS left-over
5469
5470 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
5471
5472         * as/hc08/asmain.c (asexit),
5473         * as/hc08/lkmain.c (lkexit),
5474         * as/mcs51/asmain.c (asexit),
5475         * as/mcs51/lkmain.c (lkexit),
5476         * src/SDCCglue.c (DEFSETFUNC),
5477         * src/SDCCmain.c (linkEdit, assemble),
5478         * support/librarian/sdcclib.c (AddRel),
5479           replaced unlink() by standard C remove()
5480         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
5481         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
5482           gatherImplicitVariables): new, added to fix bug 608752,
5483           (createFunction): added gatherImplicitVariables()
5484         * src/SDCCast.h: added createRMW prototype
5485         * src/SDCCsymt.h (struct symbol): added infertype
5486         * support/regression/tests/bug608752.c: new, added
5487
5488 2006-06-10 Raphael Neider <rneider AT web.de>
5489
5490         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
5491           multibyte dummy reads (fixes #1503234)
5492
5493 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
5494
5495         * device/include/mcs51/compiler.h: new, added header file to enable
5496           creating common sfr definition header files for different compilers
5497
5498 2006-06-05 Raphael Neider <rneider AT web.de>
5499
5500         * src/pic16/{pcode.h,genarith.c}:
5501           introduced pCodeOp combining any two pCodeOps (previously only
5502           two register operands could be combined), removed pcop2 from
5503           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
5504         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
5505         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
5506           rewritten to use new PO_TWO_OPS
5507         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
5508         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
5509           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
5510           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
5511           (pic16_get_op): embraced return arg to allow #define return(x),
5512             added new case for combined opcodes
5513           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
5514           (pic16_pCode2str,pic16_getRegFrompCodeOp,
5515            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
5516
5517 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
5518
5519         * src/SDCCval.c (checkConstantRange): added
5520         * src/SDCCval.h: added checkConstantRange
5521         * support/Util/SDCCerr.c,
5522         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
5523         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
5524         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
5525         * src/SDCCast.c (decorateType): added checkConstantRange,
5526         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
5527         can be emitted with the correct always true/false warning,
5528         added optimization for double '!';
5529         result of decorateType() must be assigned back to the tree, because
5530         decorateType() can change the tree
5531         * src/SDCCicode.c (geniCodeLogic),
5532         (geniCodeAssign): replaced new checkConstantRange, added warnings,
5533         (checkConstantRange): removed, it was only a fragment which never
5534         emitted a warning
5535         * src/SDCCsymt.c (computeType): fixed promotion for
5536         "-1 < (unsigned bit) b"
5537         * src/pic/ralloc.c (packRegsForAssign),
5538         * src/pic16/ralloc.c (packRegsForAssign),
5539         * src/hc08/ralloc.c (packRegsForAssign),
5540         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
5541         from mcs51
5542         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
5543         * support/regression/tests/constantRange.c: added
5544         * support/valdiag/tests/constantRange.c: added
5545         * support/valdiag/valdiag.py: added -DPORT_HOST=1
5546
5547 2006-06-02 Borut Razem <borut.razem AT siol.net>
5548
5549         * support/regression/ports/pic16/support.c: increase stack size
5550           to 255 bytes
5551         * support/regression/Makefile.in: sort tests by name so that the
5552           resutlts can be compared on different machines / platforms
5553
5554 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
5555
5556         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
5557         * src/ds390/gen.c (emitLabel): new, added,
5558           (genDjnz): fixed stack overflow bug,
5559           (throughout): cosmetic changes to sync with mcs51/gen.c,
5560           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
5561         * src/mcs51/gen.c (genEndFunction): small optimization,
5562           (throughout): cosmetic changes to sync with ds390/gen.c
5563
5564 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
5565
5566         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
5567           (_print_format): fixed printing pointers
5568         * src/mcs51/gen.c (emitLabel, movb): new, added,
5569           (genAssign): small optimization,
5570           (genDjnz): fixed stack overflow bug,
5571           (throughout): replaced sprintf with SNPRINTF,
5572           replaced mcs51_regWithIdx with REG_WITH_INDEX,
5573           replaced emitcode("mov", "b,...") with MOVB(...),
5574           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
5575           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
5576         * src/mcs51/peeph.def: added rules 140 and 264
5577         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
5578           so they may get optimized into registers
5579
5580 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
5581
5582         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
5583           immediately when encountered,
5584           (printUsage): always use stderr even on windows
5585
5586 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
5587
5588         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
5589         (processParms): fixed bug #1247551
5590         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
5591         parseCmdLine, main): print '--version' to stdout,
5592         print 'help' to stdout if --help is given,
5593         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
5594         arguments are given; fixed --help
5595
5596 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
5597
5598         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
5599         * support/regression/tests/bug-1493710.c: added
5600
5601 2006-05-27 Borut Razem <borut.razem AT siol.net>
5602
5603         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
5604           static instead auto
5605         * support/regression/ports/pic16/support.c: increase stack size
5606           from default 64 bytes to 128 bytes
5607         * support/regression/tests/staticinit.c,
5608           support/regression/tests/float.c: regression tests fully enabled
5609           for pic16 port by putting the initialized data arrays into the code
5610           section
5611         * support/regression/ports/pic16/spec.mk: don't link default libraries.
5612           This was changed by mistake in the previous version.
5613
5614 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
5615
5616         * src/pic16/gen.c (genFunction, genEndFunction): some
5617         beautifications, fixed bug with falsely restoring FSR2 in large
5618         stack model, thanks to Beau E. Cox for reporting the bug
5619
5620 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
5621
5622         * debugger/mcs51/break.c,
5623         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
5624           use %p to print pointers, made address variables unsigned
5625         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
5626         * debugger/mcs51/symtab.c (parseSymbol): must return something
5627         * src/mcs51/gen.c (aopForSym): small optimization,
5628            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
5629           (freeAsmop): added missing break,
5630           (aopPut): removed parameter bvolatile, determine it inside the function,
5631           (saveRegisters, unsaveRegisters): small optimization,
5632           (genIpush): removed pointless check,
5633           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
5634           replaced sprintf with SNPRINTF,
5635           replaced strcpy with strncpyz,
5636           updated aopPut calls,
5637           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
5638         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
5639
5640 2006-05-24 Borut Razem <borut.razem AT siol.net>
5641
5642         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
5643           modification of test for the pic16 port, put the array to the code
5644           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
5645
5646 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5647
5648         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
5649         * support/Util/pstdint.h: added
5650
5651 2006-05-22 Borut Razem <borut.razem AT siol.net>
5652
5653         * src/regression/Makefile: removed bool2.c test, added -q linker option
5654         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
5655           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
5656           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
5657           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
5658           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
5659           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
5660           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
5661           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
5662           define SUPPORT_BIT_TYPES 0, removed unused bit variables
5663
5664 2006-05-22 Raphael Neider <rneider AT web.de>
5665
5666         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
5667           bug #1492360 (problematic due to generic pointers, see code)
5668
5669 2006-05-22 Borut Razem <borut.razem AT siol.net>
5670
5671         * support/regression/ports/pic16/specs.mk: removed stack size linker
5672           directive
5673         * support/regression/tests/array.c,
5674           support/regression/tests/bitopcse.c,
5675           support/regression/tests/bug-908454.c,
5676           support/regression/tests/malloc.c: modified for pic16 regression test
5677         * support/regression/tests/bitfields.c:
5678           pic16 - excluded bitfileds of size > 8
5679         * support/regression/tests/bp.c: pic16 - reduced data size
5680         * support/regression/tests/bug-221100.c: pic16 - reduced data size
5681         * support/regression/tests/bug-460010.c:
5682           pic16 - used the absolute address the fits in memory
5683         * support/regression/tests/bug-716242.c:
5684           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
5685         * support/regression/tests/float.c:
5686           pic16 - excluded - data size too big
5687         * support/regression/tests/onebyte.c:
5688           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
5689         * support/regression/tests/shifts.c:
5690           pic16 - function names probably have to differ in first X characters
5691           (gpasm limitation?)
5692         * support/regression/tests/staticinit.c:
5693           pic16 - excluded some tests due error: no target memory available for
5694           section ".idata"
5695
5696 2006-05-22 Borut Razem <borut.razem AT siol.net>
5697
5698         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
5699           second try. Thanks Stas Sergeev once more.
5700
5701 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
5702
5703         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
5704           (genLeftShift, genRightShift): fixed bug 1491627
5705         * src/hc08/peeph.def (rules 7, 8.x): added
5706         * support/regression/tests/shifts.c (ShiftLeftByParam,
5707           ShiftRightByParam, testShiftByParam): added to test variable shifting
5708
5709 2006-05-20 Raphael Neider <rneider AT web.de>
5710
5711         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
5712         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
5713           (allocReg): add only new registers to dynAllocRegs,
5714           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
5715             #1489055, #1445850, and probably #1483693
5716
5717 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
5718
5719         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
5720         bug in for-loop that didn't emit the last of CONFIG and ID registers
5721
5722 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
5723
5724         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
5725           with offset
5726         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
5727           1489016, 1434401 and 1490124
5728         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
5729           1489016, 1434401 and 1490124
5730
5731 2006-05-17 Borut Razem <borut.razem AT siol.net>
5732
5733         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
5734           thanks Stas Sergeev
5735
5736 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5737
5738         * device/include/mcs51/P89c51RD2.h,
5739         * device/include/mcs51/P89LPC901.h,
5740         * device/include/mcs51/P89LPC922.h,
5741         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
5742
5743 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
5744
5745         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
5746         to fix missing stack pragma in compiled binary object file,
5747
5748 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
5749
5750         * support/packihx/configure.in,
5751         * support/packihx/configure: removed warning, autoconf >= 2.5x can
5752         determine sizeof basic types even while cross compiling
5753
5754 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
5755
5756         * src/avr/gen.c (aopop),
5757         * src/ds390/gen.c (aopOp),
5758         * src/hc08/gen.c (aopOp),
5759         * src/mcs51/gen.c (aopop),
5760         * src/pic16/gen.c (pic16_aopOp),
5761         * src/pic/gen.c (aopOp),
5762         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
5763         if size of operand is smaller than spill location
5764
5765 2006-05-12 Borut Razem <borut.razem AT siol.net>
5766
5767         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
5768           have to have CR/LF line endings even if they are checked out on *nix
5769           or on WIN32 in cygwin binmode
5770
5771 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
5772
5773         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
5774         * device/include/ds80c390.h: added sfr16 definitions
5775         * src/ds390/gen.c,
5776         * src/ds390/gen.h,
5777         * src/ds390/main.c,
5778         * src/ds390/ralloc.c,
5779         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
5780           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
5781           bit returning functions
5782         * support/regression/tests/sfr16.c: enabled test on ds390
5783
5784 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5785
5786         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
5787         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
5788
5789 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
5790
5791         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
5792         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
5793           (cl_address_space constructor): removed expensive initialization,
5794           (cl_address_space::get_cell): extended for late initialization,
5795           (cl_address_space::*): use late initialization,
5796           (cl_address_decoder::activate): removed expensive initialization,
5797           This reduced regression test running time by 25%
5798
5799 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
5800
5801         * packihx/,
5802         * configure.in,
5803         * configure,
5804         * sdcc.dsw,
5805         * Makefile.bcc,
5806         * Makefile.in,
5807         * support/packihx/Makefile.in,
5808         * support/packihx/clean.mk,
5809         * support/packihx/Makefile.bcc,
5810         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
5811
5812 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5813
5814         * src/SDCCval.c (valNot): fix for regression test failure
5815           of not.c on big endian hosts
5816
5817 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
5818
5819         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
5820
5821 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5822
5823         * device/lib/mcs51/Makefile.in: changed string comparison operator
5824           to = for POSIX compliance; == is bash extension
5825
5826 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
5827
5828         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
5829           kosmonaut_pirx
5830
5831 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
5832
5833         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
5834         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
5835         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
5836         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
5837         bug report #1478657,
5838
5839 2006-05-05 Borut Razem <borut.razem AT siol.net>
5840
5841         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
5842           making the html
5843
5844 2006-05-02 Borut Razem <borut.razem AT siol.net>
5845
5846         * doc/Makefile.in: removed *.ind dependency since there is no rule to
5847           create *.ind, which made make to fail if invoked with -j 2
5848
5849 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
5850
5851         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
5852           Hubert Sack for patch 1479782
5853
5854 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
5855
5856         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
5857
5858 2006-05-01 Raphael Neider <rneider AT web.de>
5859
5860         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
5861           (create_pic): store only prefix-free device name,
5862           (init_pic): check for device names with "16" prefix,
5863           (list_valid_pics),
5864         * src/pic/device.h (struct PIC_device),
5865         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
5866             stored device name,
5867         * device/include/pic/pic12f{635,675,629,683}.h,
5868         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
5869         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
5870         * device/include/pic/pic16f505.h,
5871         * device/lib/pic/libdev/pic16f505.c: removed
5872         * device/include/pic/pic14devices.txt: added support for pic12f
5873             devices, removed unsupported non 16-bit devices
5874             [above changes provided by patch from Zik Saleeba]
5875         * src/pic/*, src/pic16/*, device/include/pic16/*,
5876           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
5877
5878 2006-05-01 Borut Razem <borut.razem AT siol.net>
5879
5880         * configure.in, configure, doc/Makefile.in:
5881           sync with nightly build makefile - latex, dvipdf and dvips
5882           not needed any more
5883
5884 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
5885
5886         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
5887         in the library source
5888
5889 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
5890
5891         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
5892
5893 2006-04-28 Raphael Neider <rneider AT web.de>
5894
5895         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
5896         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
5897           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
5898         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
5899
5900 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
5901
5902         * device/lib/pic/libdev/Makefile.in,
5903         * device/lib/hc08/Makefile.in,
5904         * device/lib/gbz80/Makefile.in,
5905         * device/lib/z80/Makefile.in,
5906         * device/lib/ds390/Makefile.in,
5907         * device/lib/ds400/Makefile.in: added srcdir to include search path,
5908         thanks to Borut for the bug report
5909         * configure.in,
5910         * configure: always create doc/Makefile independent from --enable-doc
5911         * Makefile.in: always install from directory doc independent from
5912         --enable-doc
5913         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
5914         removed
5915         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
5916         * doc/Makefile.in: install *.txt if present
5917         * device/include/Makefile.in (install): added installation of pic/*.inc
5918         and pic/*.txt files again, they were erroneously removed
5919
5920 2006-04-28 Raphael Neider <rneider AT web.de>
5921
5922         * src/pic/{gen.c,main.h,pcode.c},
5923         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
5924             concerning signedness with casts
5925
5926 2006-04-28 Raphael Neider <rneider AT web.de>
5927
5928         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
5929             definition of an interrupt handler,
5930         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
5931             interrupt handler stuff from picglue() to separate routine,
5932           (picglue): enabled definition of intr handlers in files w/o main()
5933
5934 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5935
5936         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
5937           compilation with MSVC 2005 Express Edition (VC8)
5938
5939 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
5940
5941         * device/lib/Makefile: fixed build of gbz80 lib
5942
5943 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5944
5945         * support/regression/tests/bug-460010.c,
5946         * support/regression/tests/bug-524691.c,
5947         * support/regression/tests/bug-716242.c: removed conditional defines
5948           that are already in testfwk.h
5949
5950 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
5951
5952         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
5953           (AccAXRsh1): added, shift right by 1,
5954           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
5955            AccAXLrl1
5956         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
5957
5958 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
5959
5960         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
5961         remove cast to same type
5962         * src/SDCCast.c (decorateType): fix for RFE 1475742,
5963         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
5964         * as/z80/Makefile,
5965         * link/z80/Makefile: removed, they have moved to
5966         Makefile.in files
5967         * configure,
5968         * configure.in: replaced duplicate message about ucsim by missing sdcpp
5969         * install-sh: fix bug #1204398 by setting umask 0022
5970         * device/lib/Makefile: separate build of z80 and gbz80 lib
5971
5972 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
5973
5974         Enabled VPATH feature: changed nearly all Makefiles (149 files).
5975         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
5976
5977         One basic decision: e.g. src/clean.mk includes further files. In order
5978         to make this work there are two solutions:
5979         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
5980           run configure on them. This way they can use
5981           'include $(srcdir)/port-clean.mk'
5982         - always include clean.mk by the Makefile at the same level. To avoid
5983           that `make clean` tries to include and build Makefile.dep the
5984           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
5985           implemented, because now even `make uninstall` doesn't create
5986           Makefile.in. clean.mk could be eliminated by pasting it in
5987           Makefile.in.
5988
5989         * debugger/mcs51/Makefile.in: build own objects from library sources
5990         (SLIB, SDCC) in current directory
5991
5992         * configure, configure.in: renamed --disable-device-lib-build in
5993         --disable-device-lib; added --enable-doc, the required tools are
5994         searched by configure; added result message; the toolchain for the
5995         belonging ports are now only built, if the port is enabled.
5996
5997         * support/regression/*: all output is written in directory gen, because
5998         the fwk and ports directories don't livet in the build tree using vpath
5999
6000         * doc/sdccman.lyx: renamed --disable-device-lib-build to
6001         --disable-device-lib, added --enable-doc, added section VPATH
6002
6003         * sim/ucsim/configure.in,
6004         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
6005         z80 are enabled by default
6006
6007 2006-04-24 Raphael Neider <rneider AT web.de>
6008
6009         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
6010             to config word, "pic14_"-prefixed some extern functions
6011           (pic14_emitConfigWord): emit __config directive(s) if assignment to
6012             config word has been found
6013         * src/pic/device.h: added prototypes
6014         * src/pic/pcode.c: added "pic14_"-prefix where needed
6015         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
6016             fixup
6017         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
6018             words,
6019           (pic14emitRegularMap): ignore config words,
6020           (pic14createInterruptVect): moved generating __config directives away
6021           (picglue): have __config directives emitted
6022
6023 2006-04-24 Borut Razem <borut.razem AT siol.net>
6024
6025         * doc/Makefile: sync with nightly build makefile
6026
6027 2006-04-24 Raphael Neider <rneider AT web.de>
6028
6029         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
6030             registers that have not been assigned proper liveranges,
6031             fixes #1469504 and #1474602,
6032           (pCodeRegOptimizeRegUsage): fixed typo in comment
6033
6034 2006-04-24 Borut Razem <borut.razem AT siol.net>
6035
6036         * device/examples/main8051.c: deleted - it was removed from CVS
6037           24.mar.2000 and after that modified 18.feb.2001, so it reappered
6038           after the transition to Subversion
6039         * src/SDCCalloc.h: deleted - it was removed  from CVS
6040           3.feb.2001 and after that modified 18.feb.2001, so it reappered
6041           after the transition to Subversion
6042         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
6043           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
6044           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
6045           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
6046
6047 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
6048
6049         * as/asx8051.dsp: added mcs51/strcmpi.h
6050         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
6051         * as/hc08/aslink.h: updated lnksect prototype
6052         * as/hc08/asm.h,
6053         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
6054         * as/hc08/asmain.c,
6055         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
6056           (newdot): handle A_ABS
6057         * as/hc08/asout.c,
6058         * as/mcs51/asout.c (outarea): output address
6059         * as/hc08/lkaomf51.c,
6060         * as/mcs51/lkaomf51.c: disabled unused array UsageType
6061         * as/hc08/m08pst.c,
6062         * as/mcs51/i51pst.c,
6063         * as/z80/z80pst.c: "ABS" is not A_OVR
6064         * as/hc08/lkarea.c (newarea): read a_addr,
6065           (lnkarea): added codemap array, sort absolute areas to the front,
6066            combine all GSINITx/GSFINAL,
6067           (find_empty_space, allocate_space): new functions,
6068           (lnksect): return next address, handle absolute sections
6069         * as/mcs51/lkarea.c (newarea): read a_addr,
6070           lnksect2 prototype changed,
6071           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
6072           (find_empty_space, allocate_space): new, factored out of lnksect2,
6073           (lnksect2): return next address, handle absolute sections
6074         * as/hc08/lkhead.c,
6075         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
6076         * as/hc08/lklibr.c (addfile, fndsym),
6077         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
6078           index out of range and detect both '\' and '/'
6079         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
6080         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
6081           regression tests (ds390 cannot return bool yet)
6082         * doc/sdccman.lyx: changed version number, document changed --no-peep,
6083           document critical interrupts on z80, document changed SDCC define
6084         * src/asm.c (_asxxxx_mapping): fixed .org directive,
6085           (_a390_mapping): added .org directive
6086         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
6087           (genMultOneByte): fixed warnings
6088         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
6089           ones
6090         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
6091         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
6092           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
6093         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
6094         * src/pic16/main.c: removed newReg prototype
6095         * src/pic16/pcode.c,
6096         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
6097           warnings
6098         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
6099           ones
6100         * src/pic16/ralloc.c
6101         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
6102           to fix warnings
6103         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
6104           from short to PIC_OPTYPE
6105         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
6106         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
6107           optype from short to PIC_OPTYPE
6108         * src/port.h: made int_size unsigned to fix warnings
6109         * src/SDCC.y: fixed warning on MSVC
6110         * src/SDCCicode.c (getArraySizePtr): return unsigned int
6111         * src/SDCCopt.c (convertToFcall): fixed warnings
6112         * src/SDCCsymt.h: removed double prototype for genSymName
6113         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
6114           offset int to fix warnings
6115
6116 2006-04-22 Borut Razem <borut.razem AT siol.net>
6117
6118         * doc/sdccman.lyx, */Makefile, */Makefile.in:
6119           references to CVS replaced with Subversion
6120
6121 2006-04-21 Borut Razem <borut.razem AT siol.net>
6122
6123         * doc/sdccman.lyx, */Makefile, */Makefile.in:
6124           references to CVS replaced with Subversion
6125
6126 2006-04-19 Borut Razem <borut.razem AT siol.net>
6127
6128         * src/version.awk: adapted for svn
6129         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
6130           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
6131           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
6132           /binutils-avr/etc/*.vi, *.jin: removed all properties
6133           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
6134
6135 2006-04-19 Borut Razem <borut.razem AT siol.net>
6136
6137         * CVS to Subversion migration completed
6138
6139 2006-04-18 Borut Razem <borut.razem AT siol.net>
6140
6141         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}/lib/pic/*.o,
6142           ${DEV_ROOT}/lib/src/pic/libdev/*.S, ${DEV_ROOT}/lib/src/pic/libdev/*.inc
6143
6144 2006-04-17 Borut Razem <borut.razem AT siol.net>
6145
6146         * device/include/Makefile.in: added pic/*.inc to the installation
6147
6148 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
6149
6150         * support/regression/collate-results.py: fixed output in case of
6151         a valdiag error
6152         * support/regression/generate-cases.py: fixed splitting of pathnames
6153         with dots
6154         * as/hc08/lklibr.c (addfile),
6155         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
6156
6157 2006-04-11 Raphael Neider <rneider AT web.de>
6158
6159         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
6160         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
6161         * src/pic16/pcode.c (assignValnums): fixed #1460578
6162
6163 2006-04-11 Raphael Neider <rneider AT web.de>
6164
6165         * device/lib/pic/libdev/*.c,
6166         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
6167           fixes #1468739, enables compilation in --std-c99 mode
6168         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
6169
6170 2006-04-11 Raphael Neider <rneider AT web.de>
6171
6172         * src/pic/device.c (find_device): removed debug output
6173           (list_valid_pics): enabled verbose listing of supported devices
6174         * device/include/stdbool.h: define bool as char for pic14/16 as well
6175
6176 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6177
6178         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
6179
6180 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6181
6182         * .version: bumped version to 2.5.6
6183         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
6184
6185 2006-04-06 Raphael Neider <rneider AT web.de>
6186
6187         * .version: bumped version to 2.5.6 (pic14 ABI changed)
6188         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
6189         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
6190           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
6191             pic14_constructAbsMap
6192           (pic14printPublics): declare absolute global symbols as global
6193           (pic14createInterruptVect),
6194         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
6195           (newReg): assume new registers unused, use correct name in
6196             hashtable (reg->name instead of name), more debugLog output
6197         * src/pic/device.h (PIC_device): added fields for verbose output
6198         * src/pic/device.c: moved device definition to pic14devices.txt,
6199             added routines for runtime parsing of pic14devices.txt,
6200             added support for second config word
6201         * src/pic/main.c (_process_pragma): removed #pragma maxram,
6202           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
6203           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
6204           (_pic14_parseOptions): moved pCodeInitRegisters here
6205           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
6206         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
6207           (pCodeInitRegisters): rewrapped comments, perpared new approach to
6208             handling the pseudo stack
6209         * device/lib/Makefile.in: ignore failures in objects-pic16,
6210         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
6211         * device/lib/pic/NEWS: document new dependency on picXXX.lib
6212         * device/lib/pic/Makefile.subdir,
6213         * device/lib/pic16/Makefile.subdir: improved clean rules
6214         * device/lib/pic/libdev/: NEW, pic14 device libraries
6215         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
6216         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
6217         * device/include/Makefile.in: create subdir and install pic14 headers
6218         * device/include/pic/p16f_common.inc: removed unused declarations
6219         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
6220             PICs from inc2h.pl v1.6,
6221             replaced BIT_AT macros with struct declarations
6222         * device/include/pic/pic14devices.txt: definition of supported devices,
6223             all above improvements contributed by Zik Saleeba, thanks
6224         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
6225         * support/scripts/sdcc.nsi: also install pic14 device libraries and
6226             headers
6227
6228 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6229
6230         * device/include/mcs51/c8051f410.h: added interrupt numbers,
6231         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
6232           thanks to Charles Olds
6233
6234 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6235
6236         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
6237
6238 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6239
6240         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
6241         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
6242         * support/regression/bug1464657.c: added, new test
6243
6244 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6245
6246         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
6247           version number
6248
6249 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6250
6251         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
6252           --no-peep and --peep-file <file> are used don't use default rules but
6253           do use the <file>
6254
6255 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6256
6257         * src/mcs51/gen.c (genCall): fixed bug 1457608
6258
6259 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6260
6261         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
6262         changes seem to cause (trigger?) problems with the build system.
6263
6264 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
6265
6266         * src/SDCCpeeph.c (operandsLiteral): new, added,
6267           (callFuncByName): inserted operandsLiteral
6268         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
6269
6270 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6271
6272         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
6273         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
6274
6275 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
6276
6277         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
6278           implemented patch 1120823 Thanks to Willy De la Court (normal
6279           interrupts need an interrupt number now if they are made critical),
6280           and enabled nesting of critical functions though not for gbz80
6281           (genCritical, genEndCritical): added functions
6282           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
6283         * src/z80/mappings.i: added "ei" to all mappings
6284
6285 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6286
6287         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
6288         submitted by the Debian SDCC maintainer Aurelien Jarno:
6289         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
6290         archive with gcc 4.1 on mips and wrote the patch"
6291
6292 2006-03-16 Raphael Neider <rneider AT web.de>
6293
6294         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
6295           the left operand is shorter than the result (c* = lit-c* + int),
6296           fixes bug #1450796
6297         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
6298           OP_SYMBOL
6299
6300 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6301
6302         * src/.version: increased version number to 2.5.5
6303         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
6304         linking is done manually in pic16 port's _linkEdit,
6305         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
6306         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
6307         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
6308         allocate asmop as AOP_ACC,
6309         (aopForRemat): added parameter 'bool result' in function declaration,
6310         (pic16_aopGet): return AOP_ACC when accessing WREG,
6311         (pic16_popGetTempReg): minor modification,
6312         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
6313         'pic16_allocWithIdx',
6314         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
6315         calling function in absolute addresses,
6316         (genAssign): take into account AOP_ACC asmop,
6317         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
6318         * src/pic16/pcoderegs.c: some debug functions and lines added,
6319         * src/pic16/ralloc.c (decodeRegType): added but commented out,
6320         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
6321         register too,
6322         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
6323         call to allocReg, not by manually allocating a new one,
6324         (pic16_assignRegisters): now before going through the register
6325         allocating functions mark all registers as free. This eliminates some
6326         side effects resulting from peephole parser done earlier in the backbone
6327
6328 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
6329
6330         * src/SDCCicode.c (geniCodeLogic),
6331         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
6332
6333 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
6334
6335         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
6336           (genSend): bugfix, do not allocate and free twice,
6337           (shiftRLong): handle partially overlapping aops
6338         * support/regression/tests/bitopcse.c: fixed warning redefined idata
6339
6340 2006-03-08 Borut Razem <borut.razem AT siol.net>
6341
6342         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
6343           for pic16
6344
6345 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
6346
6347         * support/regression/tests/bug1409955.c: new, added
6348         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
6349         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
6350           (aopForSym, aopOp): increment asmop.allocated if reused,
6351           (freeAsmop): decrement asmop.allocated and check for zero instead of
6352           using asmop.freed,
6353           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
6354           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
6355            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
6356            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
6357            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
6358            genSignedRightShift, genRightShift, genDataPointerGet,
6359            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
6360            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
6361             in reverse order from allocation,
6362           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
6363             added swappedLR to keep track
6364         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
6365           pdata & code for GCC, z80, gbz80 & hc08
6366         * support/regression/tests/zeropad.c: moved defines to testfwk.h
6367
6368 2006-03-08 Raphael Neider <rneider AT web.de>
6369
6370         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
6371
6372 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
6373
6374         * device/include/mcs51/c8051f410.h: new SiLabs mcu
6375         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
6376         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
6377
6378 2006-03-06 Borut Razem <borut.razem AT siol.net>
6379
6380         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
6381           made the linker quiet
6382
6383 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
6384
6385         * src/pic16/gen.c (genPcall): fixed bug #1443644
6386         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
6387         which dumps before the function entry point a data byte which represents
6388         the number of the local variables used by the specified function, added
6389         'xinst' for initial support for Extended Instruction Support,
6390         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
6391         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
6392         port->fun_prefix anymore (may change later),
6393         (genFunction, genEndFunction): do not store/restore local registers for
6394         _main (this should take care the --main-return command line option in
6395         the future),
6396         (genOr): removed some legacy pic-port instructions,
6397         * src/pic16/genarith.c (genAddLit): re-enabled old code because
6398         performing operations with SFR's causes data to be written more than
6399         once to each SFR. Perhaps SFRs should be handled in special cases...
6400         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
6401         pcode.h
6402         * src/pic16/main.c (_process_pragma): stack bound checking did not take
6403         into account for stack starting position,
6404         (struct OPTIONS pic16_optionsTable): added command line argument
6405         --extended or -y for Extended Instruction Support,
6406         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
6407         (deassignLRs): *** perhaps the most important change, old 'for' code
6408         (commented out for reference), didn't account for some registers which
6409         were left marked 'not free' after a pointer operation. The change
6410         reduces register usage a lot in some cases
6411
6412 2006-03-04 Borut Razem <borut.razem AT siol.net>
6413
6414         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
6415           _clean
6416         * support/regression/tests/bug-524697.c: decreased array size for
6417           mcs51 to fit into the internal RAM
6418         * support/regression/Makefile.in: a little bit more verbose
6419
6420 2006-03-03 Borut Razem <borut.razem AT siol.net>
6421
6422         * support/regression/fwk/lib/testfwk.c,
6423           support/regression/fwk/include/testfwk.h: introduced function
6424           _prints(), nonrecursive _printn(), call _initEmu() from main()
6425         * support/regression/ports/gbz80/support.asm,
6426           support/regression/ports/ucz80/support.asm,
6427           support/regression/ports/z80/support.asm,
6428           support/regression/ports/ds390/support.c,
6429           support/regression/ports/hc08/support.c,
6430           support/regression/ports/host/support.c,
6431           support/regression/ports/mcs51/support.c,
6432           support/regression/ports/xa51/support.c: added empty _initEmu()
6433           function
6434         * support/regression/ports/pic16/gpsim.cmd,
6435           support/regression/ports/pic16/spec.mk,
6436           support/regression/ports/pic16/support.c,
6437           support/regression/Makefile.in: added pic16 regression test
6438
6439 2006-03-01 Raphael Neider <rneider AT web.de>
6440
6441         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
6442           genConstPointerGet): use safe way of generating MOVFF to cover
6443             literals as well as registers, fixes bug #1440527
6444         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
6445             dereference
6446           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
6447             more correctly, fixes bug #1232186
6448           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
6449         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
6450             gplink guess the correct processor in more cases, applied patch
6451             from Till Riedel attached to and fixing bug #1436552
6452
6453 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6454
6455         * support/regression/tests/array.c: added, contains check for #1434401
6456         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
6457
6458 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
6459
6460         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
6461         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
6462         * device/include/mcs51/c8051f326.h,
6463         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
6464         * device/include/mcs51/c8051f000.h,
6465         * device/include/mcs51/c8051f018.h,
6466         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
6467           PCON_IDLE,PCON_STOP and added sfr16 definitions
6468
6469 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
6470
6471         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
6472           genGetWord): fixed bug 1409955
6473
6474 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
6475
6476         * device/include/hc08/mc68hc908gp32.h,
6477         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
6478
6479 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
6480
6481         * src/SDCCast.c (constExprValue): return NULL if not a value
6482         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
6483         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
6484         * support/regression/tests/bitfields.c: enabled signed bitfield for all
6485
6486 2006-02-13 Borut Razem <borut.razem AT siol.net>
6487
6488         * src/regression/ptrarg.c: added, fails due to bug #1430967
6489         * src/regression/Makefile: ptrarg.c added, ...
6490
6491 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
6492
6493         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
6494         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
6495
6496 2006-02-11 Borut Razem <borut.razem AT siol.net>
6497
6498         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
6499           print "Processor: xxx" message to stdout only if --verbose
6500
6501 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
6502
6503         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
6504         * support/regression/tests/bug1426356.c: added
6505         * support/regression/tests/bitfields.c: removed 2 tests
6506
6507 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
6508
6509         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
6510         * device/include/mcs51/c8051f330.h,
6511         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
6512           PCON_IDLE,PCON_STOP and added sfr16 definitions
6513         * device/lib/_divsint.c,
6514         * device/lib/_divuint.c,
6515         * device/lib/_divulong.c,
6516         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
6517           register bank bug for small stackauto
6518
6519 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
6520
6521         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
6522
6523 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
6524
6525         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
6526         * all.dsp: corrected several bin paths
6527         * device/include/mcs51/c8051f120.h,
6528         * device/include/mcs51/c8051f300.h,
6529         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
6530           to PCON_IDLE,PCON_STOP
6531         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
6532         * device/lib/printf_large.c (output_float): fixed bug 1388703
6533         * support/regression/tests/bug1057979.c: added test for bug 1388703
6534
6535 2006-02-08 Raphael Neider <rneider AT web.de>
6536
6537         * src/pic/pcode.c (pciTRIS): fixed typo,
6538           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
6539           (LinkFlow): fixed handling of flows that end in a call,
6540           (ReuseReg): perform safety check earlier
6541         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
6542             to work with flows at the beginning of a pBlock,
6543             fixes #1426557 (Symbol not previously defined),
6544           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
6545             usage information
6546           (RemoveUnusedRegisters): update register usage info
6547         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
6548             created, reuse existing ones instead
6549         * src/pic/gen.c (genPcall): fixed #1424719
6550
6551 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
6552
6553         * link/z80/lkmain.c,
6554         * link/z80/lklex.c,
6555         * link/z80/lkdata.c,
6556         * link/z80/aslink.h: fixed build on current cygwin:
6557         replaced getline() by lk_getline()
6558
6559 2006-02-01 Borut Razem <borut.razem AT siol.net>
6560
6561         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
6562           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
6563           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
6564           src/regression/bool1.c, src/regression/bool2.c,
6565           src/regression/bool3.c, src/regression/call1.c,
6566           src/regression/compare.c, src/regression/compare10.c,
6567           src/regression/compare2.c, src/regression/compare3.c,
6568           src/regression/compare4.c, src/regression/compare5.c,
6569           src/regression/compare6.c, src/regression/compare7.c,
6570           src/regression/compare8.c, src/regression/compare9.c,
6571           src/regression/configword.c, src/regression/for.c,
6572           src/regression/inline.c, src/regression/mult1.c,
6573           src/regression/nestfor.c, src/regression/or1.c,
6574           src/regression/pointer1.c, src/regression/ptrfunc.c,
6575           src/regression/rotate1.c, src/regression/rotate2.c,
6576           src/regression/rotate3.c, src/regression/rotate4.c,
6577           src/regression/rotate5.c, src/regression/rotate6.c,
6578           src/regression/rotate7.c, src/regression/string1.c,
6579           src/regression/struct1.c, src/regression/sub.c,
6580           src/regression/sub2.c, src/regression/switch1.c,
6581           src/regression/while.c, src/regression/xor.c,
6582           src/regression/create_stc, src/regression/simulate,
6583           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
6584           regression tests
6585         * src/regression/gpsim_assert.h: added
6586
6587 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
6588
6589         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
6590         ((void (code *) (void)) 0) ();
6591         * as/hc08/aslex.c,
6592         * as/hc08/aslink.h,
6593         * as/hc08/asm.h,
6594         * as/hc08/asmain.c,
6595         * as/hc08/lkdata.c,
6596         * as/hc08/lklex.c,
6597         * as/hc08/lkmain.c,
6598         * as/mcs51/aslex.c,
6599         * as/mcs51/aslink.h,
6600         * as/mcs51/asm.h,
6601         * as/mcs51/asmain.c,
6602         * as/mcs51/lkdata.c,
6603         * as/mcs51/lklex.c,
6604         * as/mcs51/lkmain.c,
6605         * as/z80/aslex.c,
6606         * as/z80/asm.h,
6607         * as/z80/asmain.c: fixed build on current cygwin:
6608         replaced getline() by as_getline()
6609
6610 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
6611
6612         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
6613         declarator in the symbol chain
6614         * src/SDCCsymt.h,
6615         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
6616         parameter list for function pointers
6617         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
6618         * support/regression/tests/bug-716242.c: added
6619
6620 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
6621
6622         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
6623         offset if possible
6624         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
6625
6626 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
6627
6628         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
6629         inifinitely recurseable, added static
6630         * support/regression/tests/bug-1408066.c: added
6631
6632 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
6633
6634         * src/SDCCicode.h,
6635         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
6636         renamed, added possibility to create "postLoopLbl"-labels
6637         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
6638         newiTempLoopHeaderLabel
6639         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
6640         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
6641         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
6642         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
6643         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
6644         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
6645         (basicInduction): fixed bug #136564, made static,
6646         (loopInduction): changed parameter of basicInduction, made static,
6647         (addPostLoopBlock): added
6648         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
6649         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
6650         findLoopEndSeq
6651         * support/regression/tests/bug-136564.c: added
6652         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
6653         --std-sdcc99 to LIBSDCCFLAGS
6654
6655 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
6656
6657         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
6658         while loop
6659         * support/regression/tests/bug-1406131.c: added
6660
6661 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
6662
6663         * src/SDCCast.c (decorateType): fix promotion of unary minus
6664         * src/SDCCsymt.c (computeType): beautified
6665         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
6666         (valUnaryPM, valComplement): fix sign and promotion,
6667         (valNot): ANSI: result type is int (SDCC: unsigned char)
6668         * support/regression/tests/uminus.c: speedup by removing superflous
6669         test case 'int'
6670         * support/regression/tests/onebyte.c: added promotion and signedness
6671         tests for unary minus
6672         * support/regressions/tests/bug-477927.c: disable warning about
6673         uninitialized variables
6674         * support/regression/tests/not.c: added
6675
6676 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
6677
6678         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
6679         * src/mcs51/gen.c (gen51Code): show final register usage after
6680         fillGaps in asm with --i-code-in-asm
6681         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
6682         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
6683         incUsed, rliveClear, adjustIChain): made static,
6684         (setFromRange): excluded because it's unused,
6685         (findPrevUseSym, markWholeLoop): added,
6686         (findPrevUse): rewritten; fixes bug 895992; now a complete search
6687         through all branches of predecessors enables sdcc to emit the warning
6688         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
6689         (rlivePoint): made static, added parameter emitWarnings which is only
6690         true during the first run out of two,
6691         (findRecursiveSucc, findRecursivePred): removed,
6692         (computeLiveRanges): made static, added parameter emitWarnings,
6693         (dumpIcRlive): added for debugging only
6694         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
6695         removed prototype of setFromRange()
6696         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
6697         in call of computeLiveRanges()
6698         * support/regression/tests/bug-895992.c: added
6699         * support/regression/tests/bug-971834.c: added
6700         * support/valdiag/tests/bug-895992.c: added
6701         * support/valdiag/tests/bug-971834.c: added
6702
6703 2005-12-18 Raphael Neider <rneider AT web.de>
6704
6705         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
6706           (genUnpackBits): improved code for direct operands,
6707           (genPackBits): improved code for literal assignment to bitfields
6708             and for direct destination operands (no FSR indirection),
6709             prevented redundant AND, fixes #1362800,
6710           (AccLsh): added parameter to disable masking of the result
6711         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
6712           skip instructions with side-effects (like incfsz),
6713           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
6714         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
6715         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
6716           fixes #1375263
6717
6718 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
6719
6720         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
6721         volatile variables as spill location
6722
6723 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
6724
6725         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
6726         replacing literals
6727         * support/regression/tests/bug-1376320.c: added
6728
6729 2005-12-08 Raphael Neider <rneider AT web.de>
6730
6731         * src/pic/device.c: renamed is_shared to pic14_is_shared
6732         * src/pic/gen.c (genIfx): re-enabled handling of sbits
6733         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
6734           (is_valid_identifier): added for above workaround
6735
6736 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
6737
6738         * device/lib/Makefile.in: fixed to enable port-specific-objects
6739         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
6740           char, thanks Hubert Sack
6741         * doc/sdccman.lyx: documented --xstack-loc,
6742           elaborated a bit more on interrupts and pitfalls,
6743           removed "setjmp/longjmp unsupported",
6744           documented some unsupported C99 features
6745         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
6746         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
6747           if, thanks Hubert Sack
6748         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
6749         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
6750           make make_library
6751         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
6752           regression tests can report resource usage (rfe 700441)
6753         * support/regression/collate-results.py: report resource usage
6754         * support/regression/ports/ds390/spec.mk,
6755         * support/regression/ports/hc08/spec.mk,
6756         * support/regression/ports/mcs51/spec.mk,
6757         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
6758         * support/regression/ports/ds390/uCsim.cmd,
6759         * support/regression/ports/hc08/uCsim.cmd,
6760         * support/regression/ports/mcs51/uCsim.cmd,
6761         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
6762         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
6763           library, use the default one
6764         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
6765           building the library
6766
6767 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
6768
6769         * config.dsp: added dependency on .version and configure_vc.awk
6770         * device/include/setjmp.h: updated for --stack-auto and --xstack
6771         * device/include/mcs51/at89c51snd1c.h: corrected line endings
6772         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
6773         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
6774         * device/lib/libsdcc.lib: added _setjmp
6775         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
6776           (decorateType): fixed bug 1372851,
6777           (optimizeGetHbit): fixed warning
6778         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
6779           array initialisation
6780         * support/regression/tests/bug1057979.c: added test for bug 1358192
6781         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
6782
6783 2005-12-03 Borut Razem <borut.razem AT siol.net>
6784
6785         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
6786           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
6787
6788 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
6789
6790         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
6791         createIval): implement symbol independant "flexible array member",
6792         (createIvalCharPtr): implemented flexible array initialisation with a
6793         string
6794         * src/SDCCsymt.c (copyStruct): removed,
6795         (getSize): fixed misleading comment,
6796         (getAllocSize): removed, the additional allocation size is now in
6797         sym->flexArrayLength,
6798         (checkStructFlexArray): new, syntax checks for flexible array members,
6799         (compStructSize): added syntax checks for "flexible array members"
6800         (copyStruct): removed,
6801         (copyLinkChain): removed inefficient fix for bug 770487
6802         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
6803         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
6804         symbol->flexArrayLength
6805         * src/SDCCerr.c,
6806         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
6807         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
6808         * support/regression/tests/structflexarray.c: added
6809         * support/valdiag/tests/structflexiblearray.c: added
6810
6811 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
6812
6813         * src/SDCCast.c (decorateType): fixed bug 1368489
6814         * support/Util/SDCCerr.c,
6815         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
6816
6817 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6818
6819         * device/include/mcs51/at89c51snd1c.h: added file submitted by
6820           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
6821
6822 2005-11-27 Borut Razem <borut.razem AT siol.net>
6823
6824         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
6825           support/cpp2/mkdeps.h: added command line option
6826           -obj-ext=<extension> to SDCPP to define object file externion, used
6827           for generation of make dependencies (-M)
6828         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
6829
6830 2005-11-26 Borut Razem <borut.razem AT siol.net>
6831
6832         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
6833           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
6834           added pic and pic16 libraries
6835
6836 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6837
6838         * device/include/float.h: Corrected typo in prototype of __fsgt
6839
6840 2005-11-25 Borut Razem <borut.razem AT siol.net>
6841
6842         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
6843           added creation of model-mcs51-stack-auto libraries
6844
6845 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
6846
6847         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
6848         and fields-list too
6849         * src/SDCCast.c (createIvalArray): removed obsolete comment
6850
6851 2005-11-24 Borut Razem <borut.razem AT siol.net>
6852
6853         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
6854           added missing device/lib/mcs51/crt*.asm sources
6855
6856 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
6857
6858         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
6859
6860 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
6861
6862         * device/lib/_fs2schar.c,
6863         * device/lib/_fs2sint.c,
6864         * device/lib/_fs2slong.c: optimized inline asm
6865
6866 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6867
6868         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
6869           Better handling of floats between -1.0 and 0.0.
6870
6871 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6872
6873         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
6874           (the missing "if"s prohibited removal of redundant labels)
6875
6876 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6877
6878         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
6879           Properly convert floats between -1.0 and 0.0 to long, int, and char
6880           types (max integer value of negative floats tends to zero).
6881         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
6882           Removed changes made so to work properly with floats between
6883           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
6884           and _fs2char.c
6885
6886 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
6887
6888         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
6889         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
6890         (genCast) cosmetic change
6891         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
6892         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
6893         from mcs51
6894         * support/regression/tests/bitfields (testSignedBitfields): added
6895
6896 2005-11-18 Borut Razem <borut.razem AT siol.net>
6897
6898         * sdcc/device/lib/Makefile.in: remove all unnecessary files
6899         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
6900           introduced SILENT option to make building of pic16 libraries less
6901
6902 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6903
6904         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
6905           Now they work properly with floats between -1.0 and 0.0
6906         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
6907
6908 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
6909
6910         * src/SDCCicode.c (printOperand): added missing else
6911
6912 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
6913
6914         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
6915         reformatted for better readability
6916         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
6917         signed bitfields
6918
6919 2005-11-17 Borut Razem <borut.razem AT siol.net>
6920
6921         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
6922           introduced SILENT option to make building of pic16 libraries less
6923           verbose - used for nightly snapshot build
6924         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
6925           available on Win32 platforms.
6926         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
6927           medium, large, pic and pic16
6928
6929 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6930
6931         * device/lib/printf_large.c: Temporary patch for bug 1358192:
6932           printf("%f"...) sets fraction to zero.
6933
6934 2005-11-16 Raphael Neider <rneider AT web.de>
6935
6936         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
6937           fixes #1357221
6938         * src/pic/gen.c (genIfx): implemented for CARRY bit
6939         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
6940           to generic pointers, fixes #1357332,
6941           (pic16_movLit2f): NEW,
6942           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
6943
6944 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
6945
6946         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
6947
6948 2005-11-11 Raphael Neider <rneider AT web.de>
6949
6950         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
6951         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
6952           compute pointer's type from operand,
6953           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
6954           improved single bit reads, fixes bug #1353379
6955
6956 2005-11-09 Borut Razem <borut.razem AT siol.net>
6957
6958         * support/scripts/sdcc.nsi: added lib/pic to the package
6959
6960 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
6961
6962         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
6963
6964 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
6965
6966         * support/regression/tests/bug1348008.c: added
6967         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
6968         * support/regression/tests/bug1337835.c: updated comment
6969
6970 2005-11-06 Borut Razem <borut.razem AT siol.net>
6971
6972         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
6973           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
6974           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
6975           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
6976           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
6977           dynamic construction of cl_error_class and derivates - 2.nd try
6978
6979 2005-11-05 Borut Razem <borut.razem AT siol.net>
6980
6981         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
6982           bug, which caused Bus Errors on sparc solaris
6983
6984 2005-11-04 Borut Razem <borut.razem AT siol.net>
6985
6986         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
6987           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
6988           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
6989           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
6990           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
6991           and derivates to resolve the initialization problem on OSX
6992
6993 2005-11-02 Borut Razem <borut.razem AT siol.net>
6994
6995         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
6996           corrected typo - #include <winsock2.h>
6997
6998 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
6999
7000         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
7001           (_asxxxx_mapping): added org directive for future enhancements
7002
7003 2005-11-01 Borut Razem <borut.razem AT siol.net>
7004
7005         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
7006           enabled sockets on WIN32
7007         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
7008
7009 2005-10-31 Borut Razem <borut.razem AT siol.net>
7010
7011         * support/regression/generate-cases.py: escape backslashes in {testcase}:
7012           WIN32 backslash path delimiters should be escaped when used in C strings
7013         * support/regression/tests/bitfields.c: exclude failing assertions for
7014           __CYGWIN32__ and __MINGW32__ hosts
7015
7016 2005-10-30 Borut Razem <borut.razem AT siol.net>
7017
7018         * src/SDCCutil.c: corrected double comparison typo
7019
7020 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
7021
7022         * device/lib/medium/Makefile: added for new memory model medium
7023         * device/include/asm/mcs51/features.h: updated for medium/pdata
7024         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
7025           added Multiply & Accumulate sbit's and MAC0_PAGE define
7026         * device/include/mcs51/c8051f300.h: added sfr16 definitions
7027         * device/include/mcs51/c8051f310.h: added sfr16 definitions
7028         * device/lib/_mullong.c: update for medium model
7029         * device/lib/incl.mk: added medium model
7030         * doc/sdccman.lyx: documented medium model
7031         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
7032         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
7033         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
7034         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
7035           (allocParms): set SCLS and OCLS to pdata for medium model
7036         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
7037           for pdata,
7038           (powof2): return <0 if not power of 2
7039         * src/avr/gen.c (genBitWise): use updated powof2
7040         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
7041           (shiftR2Left2Result): small optimization in setup, save acc when storing,
7042           (shiftLLeftOrResult): use B if necessary
7043         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
7044         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
7045         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
7046         * support/regression/Makefile.in: added test-mcs51-medium
7047         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
7048
7049 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
7050
7051         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
7052         specifier unsigned
7053         * device/lib/time.c (mktime): fixed bug 1334315
7054
7055 2005-10-28 Raphael Neider <rneider AT web.de>
7056
7057         * device/include/pic/p16f_common.inc: added common declarations
7058         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
7059
7060 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
7061
7062         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
7063           (aopPutUsesAcc): added to predict accumulator use,
7064           (assignResultValue): save acc if necessary,
7065           (genMinusDec): store result if indirectly addressed,
7066           (genDivOneByte):  save acc if necessary,
7067           (movLeft2Result): bugfix if left already in acc,
7068           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
7069             attention to accumulator use (esp. pdata),
7070           (genReceive): receive pdata correctly
7071         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
7072         * src/SDCCicode.h: added isOperandInPagedSpace prototype
7073
7074 2005-10-27 Raphael Neider <rneider AT web.de>
7075
7076         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
7077
7078 2005-10-27 Raphael Neider <rneider AT web.de>
7079
7080         * .version: changed version to 2.5.4
7081         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
7082         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
7083           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
7084             arithmetics support routines
7085         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
7086         * device/lib/Makefile.in: also create installdir for pic
7087
7088         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
7089           pic14 port as well
7090         * src/pic/device.c (dump_sfr): rewritten to delegate register
7091           placement to the linker (use `extern sym' rather than sym EQU addr),
7092           (validAddress): fixed to check last specified address
7093         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
7094           (popGetLit): truncate literal value to 8 bit,
7095           (popGet): moved assert to more appropriate place
7096           (popGetExternal): create pCode operand from and mark the according
7097             symbol as being `extern'
7098           (popGetAddr): added sanity check on immediate's offset, provide
7099             GPOINTER tag on demand
7100           (aopPut): fixed for immediates,
7101           (mov2w_op): move operand's address or contents to WREG (depending on
7102             operand type), safer variant of mov2w,
7103           (movwf,call_libraryfunc): NEW, handy abbreviations,
7104           (get_argument_pcop,get_return_val_pcop,pass_argument,
7105           get_returnvalue): interface for accessing function parameters and
7106             return values,
7107           (assignResultValuei,genRet): use new parameter/return value interface
7108           (pic14_getDataSize): back to old version handling generic pointers,
7109           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
7110             provided implementation and/or fixed old one,
7111           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
7112             calls, removed legacy 8051 reference code
7113           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
7114           (loadSignToC): NEW, move the operands sign bit to CARRY,
7115           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
7116             genRightShiftSigned, accepts negative shift counts,
7117           (setup_fsr): load FSR and adjust IRP (indirect memory access),
7118           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
7119             generic pointers, __data pointers and __code pointers,
7120           (genUnpackBits,genPackBits): rewritten to work with generic pointers
7121             and signed bitfields, limit bitfields to 8 bit,
7122           (genDataPointerGet): fixed number of bytes read,
7123           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
7124           (genPointerGet,genPointerSet): fixed handling of __code pointers,
7125             pointers to constant data are no longer assumed to point to __code
7126             space, removed invalid pointer types,
7127           (bitpatternFromVal): retrieve the PICs representation of an integer
7128             or float literal,
7129           (genDataPointerSet): fixed assigning to po_immediate operands,
7130           (genGenPointerSet): implemented as library call,
7131           (genIfx): fixed incorrect condition,
7132           (genAddrOf): limit generic pointers' addresses to 2 bytes,
7133             provide GPOINTER tag according to destination's storage class,
7134           (genCast): added code to handle casting to generic pointers, added
7135             sign-/zero extension of the result
7136           (aop_isLitLike,op_isLitLike): fixed handling of immediates
7137         * src/pic/gen.h: added macros to access IRP bit in STATUS register
7138         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
7139           extend the result
7140         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
7141           address/register resides in the shared banks
7142           (emitSymbolToFile): improved to handle global and `pinned' symbols,
7143             put all variables into separate sections (have the linker arrange
7144             them)
7145           (picglue): put init code and interrupt handlers in separate sections
7146         * src/pic/main.c: added port specific options table, modified to PORT
7147           structure to make GPOINTERs 3 byte, added pic14_options
7148           (_pic14_do_link): private linking routine (update paths to libraries,
7149             add libsdcc.lib by default)
7150         * src/pic/main.h: declare pic14_options
7151         * src/pic/pcode.c: fixed instructions i/o relations,
7152           (RegCond): reverted to correct version,
7153           (newpCodeOpLit): truncate literals to 8 bit,
7154           (genericPrint): added debug output,
7155           (getRegFromInstruction): fixed for various operand types, simplified
7156           (BuildFlow): fixed broken handling of isntructions with labels
7157           (LinkFlow): start at last instruction in flow (skip trailing comments),
7158             pass the flow on to the next instruction after CALL
7159           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
7160           (insertPCodeInstruction): fixed inserting after a skip instruction,
7161           (DoBankSelect): fixed for labeled instructions
7162           (OptimizepBlock): honor --nopeep switch
7163           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
7164         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
7165         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
7166           (pCodeOptime2pCodes): allow disabling this optimization via
7167             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
7168             but is still buggy), started implementation of a dataflow based
7169             pCode optimization (CSE + dead code elimination)
7170           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
7171         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
7172           names are independant of the stack location and therefore portable across
7173           devices
7174
7175 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
7176
7177         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
7178           (selectSpil): fixed bug 1337835 by not spilling bit variables
7179         * support/regression/tests/bug1337835.c: added test for this bug
7180         * src/mcs51/peeph.def: restart after rule 3.c,
7181           addded rules 263.x to optimize loading constants
7182
7183 2005-10-26 Raphael Neider <rneider AT web.de>
7184
7185         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
7186         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
7187           (genAssign): emit warning when casting literals to generic pointer
7188             type, also applies when taking the address of a fixed variable,
7189           (genCast): improved casting to generic pointers
7190         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
7191           extern variables, added verbose error message
7192         * device/include/pic16/{string.h,errno.h}: added #pragma library c
7193
7194 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
7195
7196         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
7197         carry must be complemented too
7198         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
7199         could be emitted by genMinus
7200         * src/SDCCval.c (constVal): fixed bug 1305065
7201
7202 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
7203
7204         * src/SDCCast.c (addCast): added promotion for bit variables
7205         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
7206         promotion casts + optimisation
7207         (optimizeGetWord): fix warning 'i' might be used uninitialized
7208         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
7209         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
7210
7211 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
7212
7213         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
7214         all chars are promoted to int; promotion should be handled in SDCCast.c
7215
7216 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7217
7218         * device/lib/_strcmp.c: Fixed bug 1326457
7219
7220 2005-10-11 Raphael Neider <rneider AT web.de>
7221
7222         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
7223         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
7224
7225 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
7226
7227         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
7228         * support/regression/tests/sfr16.c: added test for the sfr32 bug
7229
7230 2005-10-04 Raphael Neider <rneider AT web.de>
7231
7232         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
7233           device/lib/pic16/pics.all: added pic18f1320
7234         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
7235
7236 2005-09-30 Raphael Neider <rneider AT web.de>
7237
7238         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
7239         * src/pic16/devices.inc: NEW, provides device descriptions
7240         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
7241
7242 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
7243
7244         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
7245           GETHBIT
7246
7247 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
7248
7249         * doc/sdccman.lyx: updated Highest Order Bit documentation,
7250           documented Any Order Bit, Higher Order Byte and Higher Order Word
7251         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
7252         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
7253           (optimizeGetAbit): new, to get any bit, not only the high bit,
7254           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
7255           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
7256           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
7257           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
7258             RIGHT_OP: also try GETBYTE, GETWORD optimization,
7259             GETABIT, GETBYTE, GETWORD: decorate them,
7260           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
7261           (ast_print): added GETABIT, GETBYTE, GETWORD
7262         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
7263         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
7264           (geniCodeBinary): new generic binary icode,
7265           (ast2iCode): added GETABIT, GETBYTE, GETWORD
7266         * src/port.h: updated comment for PORT.hasExtBitOp
7267         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
7268           (genGetByte): new, to get a single byte,
7269           (genGetWord): new, to get a word from a long,
7270           (gen51Code): added GETABIT, GETBYTE, GETWORD
7271         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
7272
7273 2005-09-23 Raphael Neider <rneider AT web.de>
7274
7275         * configure.in, configure: have device/lib/pic configured
7276         * device/lib/Makefile.in: added model-pic14
7277         * device/lib/clean.mk: added pic/ to clean rule
7278         * device/lib/pic: added rudimentary pic14 library providing support
7279           functions for multiplication/division/generic pointer access
7280         * src/SDCCopt.c (convilong): mark support functions as extern
7281           for pic14 port as well
7282         * src/pic/gen.c (genMult): added assertions,
7283           (genpic14Code): emit warning on unhandled iCodes
7284         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
7285         * src/pic/pcode.c (pCodeOpCopy),
7286         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
7287           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
7288           SFR_REGISTER}), made safe for future extensions
7289         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
7290           instructions even if preceeded by SKIP instructions (also remove
7291           them); removed unused code
7292         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
7293           prevents leaving parts of the structure uninitialized after copying
7294
7295 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
7296
7297         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
7298           ago by me
7299         * support/regression/tests/addsub.c: added test for the bug
7300
7301 2005-09-21 Raphael Neider <rneider AT web.de>
7302
7303         * device/include/pic16/pic18f1220.h,
7304           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
7305         * device/lib/pic16/Makefile.rules: added missing opening paren
7306         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
7307           are provided in genutils.c,
7308           (genUminusFloat,genUminus,genCmpEq): added asserts on different
7309           operand/result sizes,
7310           (genCmp): assert on NULL pointers first, then check deref'ed values
7311         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
7312           result size
7313
7314 2005-09-18 Raphael Neider <rneider AT web.de>
7315
7316         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
7317           as these are now unused,
7318           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
7319         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
7320           local, avoids uninitialized pointer dereference on r->name
7321         * src/pic16/ralloc.c (newReg): fixed indentation
7322
7323 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
7324
7325         * src/SDCCval.c (constVal): fixed bug 730366
7326         * support/Util/SDCCerr.c,
7327         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
7328
7329 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
7330
7331         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
7332
7333 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
7334
7335         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
7336
7337 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7338
7339         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
7340           (hex2dec): made hex_digit unsigned char, removed ascii dependance
7341         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
7342           (hex2dec): made hex_digit unsigned char, removed ascii dependance
7343         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
7344         * packihx/packihx.c (hexDigit): made c unsigned char
7345         * as/mcs51/lklibr.c (fndsym),
7346         * link/z80/lkgb.c (gb),
7347         * link/z80/lklibr.c (fndsym),
7348         * link/z80/lkrloc.c (relr),
7349         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
7350         * src/SDCC.lex (checkCurrFile, process_pragma),
7351         * src/SDCCglue.c (spacesToUnderscores),
7352         * src/SDCCmain.c (setParseWithComma, processFile),
7353         * src/asm.c (tvsprintf, printCLine),
7354         * src/avr/gen.c (emitcode, aopPut),
7355         * src/ds390/gen.c (emitcode),
7356         * src/hc08/gen.c (emitcode, emitinline),
7357         * src/mcs51/gen.c (emitcode, genInline),
7358         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
7359           tokenizeLineNode),
7360         * src/pic/ralloc.c (debugLog),
7361         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
7362           tokenizeLineNode),
7363         * src/pic16/ralloc.c (debugLog),
7364         * src/z80/main.c (_process_pragma):
7365            made all ctype.h function calls safe
7366         * src/SDCCopt.c: include math.h for fabs
7367         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
7368           and used them throughout the code to make ctype.h function calls safe
7369         * src/ds390/main.c (asmLineNodeFromLineNode),
7370         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
7371         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
7372            unsigned char*
7373         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
7374           (newpCodeAsmDir): made ctype.h function calls safe
7375         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
7376           pic16_emitcode):  made lbp unsigned char*
7377         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
7378           (pic16_newpCodeAsmDir): made ctype.h function calls safe
7379         * src/xa51/gen.c (emitcode),
7380         * src/z80/gen.c (_emit2): made lbp unsigned char*
7381         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
7382            char*
7383
7384 2005-09-05 Raphael Neider <rneider AT web.de>
7385
7386         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
7387           access bank splitpoint
7388
7389 2005-09-05 Raphael Neider <rneider AT web.de>
7390
7391         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
7392
7393 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
7394
7395         * .version: changed to version 2.5.3
7396         * doc/sdccman.lyx: changed version to 2.5.3,
7397           documented --codeseg and --constseg and pragma codeseg and constseg,
7398           documented bit parameters (reentrant) and bit returning
7399         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
7400            currFunc->recvSize, but is this ok for all ports?
7401           (ast2iCode): result of ~ on unsigned char must be cast to int for
7402            bool to work
7403         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
7404           function pointers in bit space
7405         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
7406           (processFuncArgs): call port.reg_parm() with reentrancy info
7407         * src/port.h,
7408         * src/avr/main.c,
7409         * src/ds390/main.c,
7410         * src/hc08/main.c,
7411         * src/pic/main.c,
7412         * src/pic16/main.c,
7413         * src/xa51/main.c,
7414         * src/z80/main.c: port.reg_parm prototype extended with
7415           "bool reentrant" parameter
7416         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
7417           options.stackAuto for allocating bit register parameters
7418         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
7419           (genSend): set BitBankUsed if it is,
7420           (selectRegBank): factored out of genCall for use in genPcall,
7421           (genCall): removed redundant dtype assignmen, use selectRegBank,
7422           (genPcall): handle returning in Carry properly, save in F0 if needed,
7423           (genReceive): handle bit register parameters
7424         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
7425           (mcs51_assignRegisters): enable bit registers for all reentrant
7426            functions and don't set BitBankUsed unconditionally
7427         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
7428         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
7429         * support/regression/tests/funptrs.c: added tests for BOOL and for return
7430
7431 2005-08-27 Borut Razem <borut.razem AT siol.net>
7432
7433         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
7434         ppc-osx (Darwin) does not support -u option. It seems that it is
7435         supported only on Linux - GNU cp
7436
7437 2005-08-25 Borut Razem <borut.razem AT siol.net>
7438
7439         * sim/ucsim/gui.src/serio.src/Makefile.in,
7440           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
7441           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
7442           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
7443           install and strip, since the strip at /usr/ccs/bin should be used
7444           on solaris
7445
7446 2005-08-24 Borut Razem <borut.razem AT siol.net>
7447
7448         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
7449
7450 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
7451
7452         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
7453         ffffffffu
7454
7455 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
7456
7457         * as/mcs51/aslink.h: completed lkrloc.c prototypes
7458         * as/mcs51/lkmain.c (link_main): fixed warning
7459         * device/include/stdbool.h: ds390 has no advanced bit support yet
7460         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
7461         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
7462         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
7463           and updated their macros
7464         * src/SDCCval.c (constVal): updated comment for renamed b_long
7465
7466 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
7467
7468         * as/mcs51/asdata.c: changed ctype['['] to BINOP
7469         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
7470           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
7471           (oprio): set priority for '['
7472         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
7473            and adb_24_bit
7474         * as/mcs51/asm.h: added defines R_BIT and S_BIT
7475         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
7476         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
7477         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
7478           added overlayable BIT_BANK area
7479         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
7480           (summary2): explain 'T' in legenda
7481         * as/mcs51/lkrloc.c: replaced old K&R style,
7482           (relr): added R_BIT processing,
7483           (errmsg): added "Bit-addressable relocation error",
7484           (adb_bit): added for converting from byte- to bit-addressable space,
7485           (adb_24_bit): added for converting from byte- to bit-addressable space
7486         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
7487            used in reentrant functions now even as return value
7488         * device/lib/_gptrput.c (_gptrput): removed obsolete code
7489         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
7490           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
7491         * src/SDCCglobl.h: added indicator BitBankUsed
7492         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
7493            the bit registers b0-b7
7494         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
7495           (geniCodeCast): fixed bug 1263853,
7496           (geniCodeLogicAndOr): put result in bool or char,
7497           (geniCodeReceive): added parameter func for accessing the return type,
7498           (geniCodeFunctionBody): pass func to geniCodeReceive
7499         * src/SDCCmain.c: added indicator BitBankUsed
7500         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
7501         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
7502           (checkSClass): don't put automatic bool/bit on stack,
7503           (checkFunction): removed check on function cannot return bit
7504         * src/SDCCsymt.h: added newBoolLink prototype
7505         * src/mcs51/gen.c (rb1regs): added bit registers,
7506           (movc): created for assigning to carry,
7507           (pushReg, popReg): created for pushing registers,
7508           (sameRegs): check both AOP_REG and AOP_CRY types,
7509           (aopOp): handle bit registers,
7510           (aopPut): optimization no self-assign,
7511           (saveRegisters): push reg->base (bits) only once for bit registers,
7512            and use pushReg,
7513           (unsaveRegisters): pop reg->base only once and use popReg,
7514           (assignResultValue): added parameter func and return in carry for bits,
7515           (genIpush): optimization no reload in A if not changed,
7516           (genSend): bit parameters in reentrant functions are passed in bit
7517            registers by first assigning to bits in B, then save registers and
7518            copy B to bits,
7519           (genCall): handle returning in Carry properly, save it in F0 if needed,
7520           (genPcall): updated assignResultValue call, this is not safe yet for bit
7521            returning function !!!
7522           (genFunction): don't generate equ's for bit registers and use pushReg,
7523           (genEndFunction): take care of bit returning functions and use popReg,
7524           (genRet): return bit in Carry,
7525           (genIfx): optimize bit registers and other directly addressable bits,
7526           (genReceive): updated assignResultValue call
7527         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
7528           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
7529            registers when using stack-auto
7530         * src/mcs51/ralloc.c (_G): added allBitregs,
7531           (regs8051): added the bit registers,
7532           (createStackSpil): use macro IS_BIT,
7533           (getRegBit): added to allocate a bit register, else spill,
7534           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
7535           (updateRegUsage): factored out to ease stepping while debugging,
7536           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
7537            also allocate bit registers,
7538           (fillGaps): handle bit registers,
7539           (findAllBitregs): added to create bit vector with all bit registers,
7540           (mcs51_allBitregs): returns this bit vector,
7541           (mcs51_assignRegisters): when using stack-auto use bit registers for
7542            passing parameters and creating local variables
7543         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
7544
7545 2005-08-22 Borut Razem <borut.razem AT siol.net>
7546
7547         * device/lib/Makefile.in: replaced find option -or with -o
7548           to make it run on solaris
7549
7550 2005-08-22 Raphael Neider <rneider AT web.de>
7551
7552         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
7553           fixes #1265442 (crash on Solaris)
7554
7555 2005-08-20 Borut Razem <borut.razem AT siol.net>
7556
7557         * configure, configure.in: added tests for libsocket and libnsl libraries,
7558           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
7559           from support/regression/Makefile.in
7560         * support/regression/Makefile.in: added
7561         * device/lib/pic16/Makefile.common.in: force make to use bash shell
7562         * sim/ucsim/libtool: regenerated on sparc-solaris
7563         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
7564           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
7565           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
7566           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
7567           sparc-solaris, which doesn't use GNU ld linker
7568         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
7569         * as/Makefile: find on sparc-solaris does not support -maxdepth option
7570
7571 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
7572
7573         * src/mcs51/peeph.def: updated comments
7574
7575 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7576
7577         * device/lib/_gptrget.c,
7578         * device/lib/_gptrput.c: slightly shorter
7579         * doc/sdccman.lyx: incremented version
7580         * src/mcs51/peeph.def: moved peephole comments to the line of first
7581           change to better keep line correlation, reanimated 186.e
7582         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
7583
7584 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
7585
7586         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
7587           David Saxton with quotes around file name.
7588
7589 2005-08-15 Borut Razem <borut.razem AT siol.net>
7590
7591         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
7592           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
7593           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
7594           make tests run on x86_64 platform
7595
7596 2005-08-13 Raphael Neider <rneider AT web.de>
7597
7598         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
7599           as it might be executed DURING a build (parallel make is wonderful)
7600
7601 2005-08-13 Raphael Neider <rneider AT web.de>
7602
7603         * device/lib/Makefile.in (port-specific-objects-pic16):
7604           revert to cp $(PORT)/bin/*.* $(PORTDIR)
7605         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
7606           dependency
7607         * device/lib/pic16/Makefile.rules: build subdirs before creating
7608           the library, removed builddir rule, create $(builddir) early in
7609           recurse rule, use empty recurse rule for leaf directories
7610         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
7611           mkdir errors (race condition), removed duplicate suffix "hex"
7612           from clean rules
7613         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
7614         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
7615           prevents mkdir -p from aborting on Alpha
7616
7617 2005-08-12 Raphael Neider <rneider AT web.de>
7618
7619         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
7620           db-statements in order to allow for arrays of pointers in code
7621           sections to be placed without interspersed 0-padding, fixes
7622           bug #1256215
7623         * (emitStatistics): fixed division by zero for pic18f1220
7624         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
7625           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
7626         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
7627         * (pic16_pCodeConstString): keep track of already emitted string
7628           literals to prevent "duplicate definitions of symbol _str_NR"
7629         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
7630           debug message
7631         * device/lib/Makefile.in: ignore failing PIC16 library builds
7632         * device/lib/pic16/Makefile: do not build if gputils are missing
7633         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
7634
7635 2005-08-10 Raphael Neider <rneider AT web.de>
7636
7637         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
7638           my last commit)
7639
7640 2005-08-10 Raphael Neider <rneider AT web.de>
7641
7642         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
7643           Rokas' patch to add the new fixed point type "__fixed16x16"
7644         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
7645           functions for __fixed16x16 arithmetics
7646         * device/lib/pic16: reimplemented the build system to support
7647           a separate build directory, better handling of libio (create
7648           the library in a separate subdir for each architecture) and
7649           easier configuration (centralized in Makefile.common)
7650
7651 2005-08-07 Raphael Neider <rneider AT web.de>
7652
7653         * src/pic16/gen.c (genrshTwo): fixed sign extension
7654         * src/pic16/device.c: added pic18f2320, 4220 and 4320
7655         * device/include/pic16/pic18f2220.h: changed some bit definitions,
7656           added T0CONbits
7657         * device/include/pic16/pic18f4220.h: NEW, header for
7658           pic18f4220 and pic18f4320
7659         * device/include/pic16/pic18fregs.h: added new devices,
7660           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
7661         * device/include/pic16/signal.h: resolved name clashes
7662           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
7663           to also allow testing for interrupt enable bits, added
7664           comments on how to use the macros
7665         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
7666         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
7667           register definitions for the devices
7668         * device/lib/pic16/pics.all: added new devices
7669         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
7670           allocated memory
7671         * device/lib/pic16/libc/stdlib/memfree: do not count
7672           the block header as free memory
7673         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
7674           simplified and added missing end-of-blocklist-marker
7675           (reported by Peter Onion, fixes #1252814)
7676         * (_mergeHeapBlock): fixed loop condition
7677         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
7678           len==0, restructured code
7679         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
7680           up a bit, reduced bitfield accesses, prevent endless loops
7681           in case of heap corruption
7682         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
7683           "unreferenced arguments/must return a value" warnings
7684         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
7685           replaced BAUDREG with SPBRG
7686         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
7687           device/lib/pic16/debug/gstack/gstack.c: replaced
7688           _naked, _asm, _endasm with __naked, __asm, __endasm
7689
7690 2005-08-05 Raphael Neider <rneider AT web.de>
7691
7692         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
7693           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
7694
7695 2005-08-05 Borut Razem <borut.razem AT siol.net>
7696
7697         * device/lib/Makefile.in: added missing ';'
7698         * configure: removed ^M characters
7699
7700 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7701
7702         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
7703           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
7704           License
7705
7706 2005-08-04 Borut Razem <borut.razem AT siol.net>
7707
7708         * configure.in: pic16 libraries build 2nd try - enable running
7709           configure in device/lib/pic16
7710         * configure: regenerated from configure.in
7711         * device/lib/Makefile.in: create $(PORT)/bin directory
7712
7713 2005-08-03 Raphael Neider <rneider AT web.de>
7714
7715         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
7716           to get/set values via pointers
7717         * (genUnpackBits,genPackBits): changed detection of
7718           ptr->bitfield vs. sym.bitfield, fixed access via generic
7719           pointers, removed dead (wrong) code for multibyte bitfields
7720         * (genNearPointerGet, genGenPointerGet): removed useless code,
7721           fixed bitfield detection, fixes #1250594
7722         * (genNearPointerSet): removed useless code
7723         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
7724           and introduced macro pic16_emitpcode that conditionally emits
7725           the origin of the following pCode (useful for debugging SDCC)
7726         * src/pic16/pcode.c: changed (and disabled) some debug outputs
7727         * (createDefmap): fixed handling of LFSR for --optimize-df
7728
7729 2005-08-02 Borut Razem <borut.razem AT siol.net>
7730
7731         * device/lib/Makefile.in: pic16 libraries build enabled since
7732           gputils-0.13.2 are now localy installed at sourceforge's compile farm
7733
7734 2005-08-02 Raphael Neider <rneider AT web.de>
7735
7736         * src/pic16/gen.c (genPackBits): removed deprecated warning
7737         * (genGenPointerSet): fixed bitfield detection
7738
7739 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7740
7741         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
7742
7743 2005-07-31 Raphael Neider <rneider AT web.de>
7744
7745         * device/lib/pic16/libdev/pic18f458.c,
7746           device/include/pic16/pic18f458.h: added missing T0CONbits
7747
7748 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
7749
7750         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
7751
7752 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
7753
7754         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
7755
7756 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7757
7758         * device/include/mcs51/at89c51ed2.h: added.
7759
7760 2005-07-23 Raphael Neider <rneider AT web.de>
7761
7762         * src/pic/gen.h: added emitpcode macro for debugging
7763         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
7764           and replace by macro adding debug information on demand
7765         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
7766         * (gencjne): tried to fix; replaced with correct (slower) code
7767         * (gen{Unp,P}ackBits): fixed single bit access
7768         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
7769         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
7770           previous instruction
7771         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
7772           register has to be handled with care (forbidding movement
7773           of assignments/uses, removing assignments completely, ...)
7774         * (pCodeOptime2pCodes): make use of regIsSpecial
7775         * added lots of debugging output (commented out)
7776         * src/pic/rallloc.c (deassignLRs): prevent operand registers
7777           from being reused as result UNLESS it is known to work
7778
7779 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
7780
7781         * support/Util/dbuf.h: include <stddef.h> for size_t
7782         * .version: changed to version 2.5.2
7783
7784 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7785
7786         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
7787
7788 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7789
7790         * src/hc08/gen.c (genMinus): fixed bug #1241835,
7791           (genModOneByte): removed needless psha/pula
7792
7793 2005-07-22 Raphael Neider <rneider AT web.de>
7794
7795         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
7796           have PIC14 handled like PIC16, fixes broken pic14 linker calls
7797         * src/pic/gen.c (resolveIfx): do not "invent" labels
7798         * (genSkipc): changed to positive logic
7799         * (genSkipCond): removed as no longer needed
7800         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
7801           backport from PIC16
7802         * (genLeftShift): check operands are in different registers
7803         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
7804           INCF does not update CARRY...
7805         * src/pic/main.c: fixed _linkCmd
7806         * src/pic/pcode.c (unlinkpCode): added inactive code
7807         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
7808           alive (do not assign result and operand overlapping registers)
7809
7810 2005-07-22 Raphael Neider <rneider AT web.de>
7811
7812         * src/pic/device.c (dump_sfr): replaced register declaration with
7813           call to emitSymbolToFile() to avoid duplicate symbols
7814         * (assignRelocatableRegisters): do not declare external symbols
7815         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
7816           right (take size of type, not etype)
7817         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
7818         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
7819         * (packRegsForAccUse): disabled assignment of WREG as
7820           the result reg to prevent occurence of just fixed #1235003,
7821           fixes #1242954
7822         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
7823           symbols (avoids duplicate symbols in .asm file)
7824         * (pic14emitRegularMap): use emitSymbolToFile()
7825         * src/pic/gen.c (aopOp): fixed spillLocation handling
7826         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
7827         * (genDataPointerSet): removed unneccessary variables/output
7828
7829 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
7830
7831         * as/mcs51/lkarea.c: enlarged codemap for banked memory
7832         * device/lib/mcs51/crtbank.asm: added # to 0x0F
7833
7834 2005-07-21 Raphael Neider <rneider AT web.de>
7835
7836         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
7837           architecture cannot handle them efficiently, fixes bug #1235003
7838         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
7839           check for empty sets before using them (fixes bug #1232190)
7840
7841 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
7842
7843         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
7844           (lnksect2): generate warnings for memory overlap
7845         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
7846           constseg to set the name of these segments so you can instruct the linker
7847           to place them in banks
7848         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
7849         * src/SDCCglobl.h: added MODEL_HUGE to enum,
7850           added code_seg and const_seg to options
7851         * src/SDCCglue.c (emitMaps): use options.const_seg,
7852           (createInterruptVect): put interrupt vectors in segment HOME,
7853           (glue): put HOME before static segment and put the main glue in HOME,
7854           (glue): use options.code_seg
7855         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
7856         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
7857           these segments so you can instruct the linker to place them in banks
7858           (linkEdit): use code_loc for HOME segment which should be the first
7859           segment in code memory now
7860         * src/SDCCmem.c: fixed more stuff like bug 1238386
7861         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
7862           (changePointer): don't change function pointers to code pointers for
7863           banked functions,
7864           (compareType): added exceptional check for banked function pointers
7865         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
7866         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
7867           after static in code memory
7868         * src/mcs51/gen.c: added aopLiteralLong prototype,
7869           (aopForSym): use getSize for functions,
7870           (genCall): generate banked calls over one trampoline __sdcc_banked_call
7871           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
7872           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
7873           the segment,
7874           (genPcall): use call for literal function pointers and generate banked
7875           calls over the one trampoline so there's only one place for the user to
7876           modify according to his/hers hardware,
7877           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
7878           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
7879         * src/mcs51/main.c: added keyword banked,
7880           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
7881         * support/Util/SDCCerr.c,
7882         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
7883           needed for passing the bank and address to the trampoline
7884         * device/lib/mcs51/crtbank.asm: added for bankswitching
7885         * device/lib/mcs51/Makefile: added crtbank
7886
7887 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7888
7889         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
7890           for fields at offset 0 of a struct or union as reported
7891           on 2005-07-07 in the developer mailing list.
7892
7893 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
7894
7895         * src/SDCCmem.c: fixed bug 1238386
7896
7897 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7898
7899         * src/mcs51/peeph.def: added labelrefcounting for peepholes
7900           (patch #1144962), added peephole 300, enabled 259.x
7901         * doc/sdccman.lyx: removed screenshot and provided link instead
7902
7903 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7904
7905         * doc/sdccman.lyx: added section about debugging with ddd
7906         * doc/figures/ddd_example.eps: screenshot of debugging session
7907
7908 2005-07-04 Raphael Neider <rneider AT web.de>
7909
7910         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
7911           like CODE pointers, fixes #1115683
7912         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
7913           call, fixes bugs #1232211, #1228110,
7914           fixed wrong casts to pCodeFlow from pCodeInstructions
7915
7916 2005-07-04 Raphael Neider <rneider AT web.de>
7917
7918         * src/pic/gen.c (popGet): changed assert to allow for
7919           bit operands
7920         * (popGetAddr): changed signature to provide
7921           an additional index, patched all call sites
7922         * (genCmpEq): handle literal-like operands correctly
7923         * (genAddrOf): added sanity checks on __code/__data pointers
7924         * (genAssign): added handling of symbols from __code section
7925         * (gencjne): do not generate code for comparisons whose result
7926           is neither stored nor used, fixes bug #1171114
7927         * (AccLsh, AccRsh): operate on operand instead of WREG
7928         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
7929           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
7930           by known count
7931         * rewrote complete shift-by-literal logic, commented unused
7932           functions out
7933         * (genConstPointerGet): get multiple bytes (if result size > 1),
7934           fixed handling of non-immediate addresses
7935         * (genPointerGet): handle CODE pointers like CONST pointers
7936         * (genpic14Code): insert C-SRC lines as Cource-pCodes
7937         * ({aop,op}_isLitLike): NEW, single place to decide whether an
7938           operand is to be treated as a literal or not
7939         * (mov2w,genPcall,genCmpEq),
7940           src/pic/genarith.c: use aop_isLitLike() to decide between
7941           literal/register contents
7942         * (addSign): added missing offset
7943         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
7944           only emit comment in debug-mode,
7945           use {aop,op}_isLitLike throughout the file
7946         * src/pic/glue.c: fix initializers for pointers (work in progress)
7947         * src/pic/pcode.c (get_op): honor index on _const symbols
7948         * ({reset,dump}pCodeStatistics): NEW, estimate code size
7949         * (dumppBlock): added pCode size estimation
7950         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
7951           check for IS_SYMOP before OP_SYMBOL'ing
7952         * fixed indentation, compacted switch-statements
7953         * (allocReg): find free register and allocate it instead of
7954           allocating new registers all the time
7955         * (deassignLRs): prevent POINTER_GET's from being assigned the same
7956           registers as its operands (necessary only for multibyte GETs)
7957
7958 2005-07-01 Raphael Neider <rneider AT web.de>
7959
7960         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
7961           debugging .asm-output macros FENTRY + FEXIT
7962         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
7963           way... I wonder...
7964         * (emitpComment): NEW, printf to pCode
7965         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
7966           offset handling
7967         * (popGetAddr): NEW, variant of popGet to access an immediates
7968           high(er) bytes instead of the n'th byte of memory they reference,
7969           replaced popGet with popGetAddr where neccessary
7970         * (genDataPointerGet): reactivated and fixed implementation
7971         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
7972           accesses
7973         * (genDataPointerSet): fixed multibyte assignments
7974         * (genpic14Code): fixed --i-code-in-asm handling
7975         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
7976         * (genPlus): fixed index-out-of-bounds error
7977         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
7978         * src/pic/ralloc.c: added debugging output macro FENTRY2
7979         * (spillThis): fixed indentation, enbraced for-body for clarity
7980         * (rematStr): commented out as now unused
7981         * (regTypeNum): commented out special spill case (overwrites
7982           arbitrary values)
7983         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
7984
7985 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
7986
7987         * doc/sdccman.lyx: documented sfr16/sfr32,
7988           added example for using storage class with function pointers
7989         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
7990
7991 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
7992
7993         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
7994         * device/lib/_itoa.c,
7995         * device/lib/_ltoa.c: optimized codesize
7996         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
7997           but don't know how to suppress the double warning.
7998         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
7999         * support/Util/SDCCerr.c,
8000         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
8001
8002 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
8003
8004         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
8005           fixed old K&R prototypes
8006         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
8007         * device/lib/_gptrget.c,
8008         * device/lib/_gptrgetc.c,
8009         * device/lib/_gptrput.c: changed versions for new memory indicator values,
8010           also new versions for small generic pointers and banked generic pointers
8011         * src/port.h: added const_name
8012         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
8013         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
8014         * src/SDCCcse.c (findPrevIc): check all associative operators
8015         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
8016         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
8017         * src/SDCCmem.c: updated comments,
8018           set far-space to 0 for pdata, results in optimized code
8019         * src/SDCCmem.h: added macro CONST_NAME
8020         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
8021           moving the info into the highest bits, see also gptrget/gptrput
8022         * src/src.dsp: added sdcc.ico to project files
8023         * src/avr/gen.c (genCast): fixed bug 0x%d
8024         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
8025         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
8026           relation between ptr_type and DCL_TYPE,
8027           (genCast): fixed bug 0x%d
8028         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
8029           (CODE)" for const_name
8030         * src/hc08/gen.c (genCast): fixed bug 0x%d
8031         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
8032           (hc08_port): added "CONST (CODE)" for const_name
8033         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
8034           (aopForRemat, adjustArithmeticResult): disconnected direct relation
8035           between ptr_type and DCL_TYPE,
8036           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
8037           operand* and took AOP() inside function so sfr-ness can be checked,
8038           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
8039           new prototype,
8040           (genFunction, genEndFunction): optimized stack setup,
8041           (genMinus): optimized for literals with ending zeroes (in bytes),
8042           (genCast): fixed bug 0x%d
8043         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
8044           (mcs51_port): added "CONST (CODE)" for const_name
8045         * src/mcs51/peeph.def: made rule 226 more generic
8046         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
8047         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
8048         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
8049         * src/z80/main.c (z80_port): added NULL for const_name,
8050           (gbz80_port): added NULL for const_name
8051         * support/regression/tests/bug663539.c,
8052         * support/regression/tests/sfr16.c: new tests
8053
8054 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8055
8056         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
8057
8058 2005-06-24 Raphael Neider <rneider AT web.de>
8059
8060         * device/lib/pic16/libdev/pic18f[68][567]20.c:
8061           corrected typos...
8062         * device/include/pic16/signal.h: added USBIF
8063           and SIG_USB
8064
8065 2005-06-24 Raphael Neider <rneider AT web.de>
8066
8067         * device/lib/pic16/libdev/pic18f2455.c,
8068           device/include/pic16/pic18f2455.h: NEW
8069         * device/include/pic16/pic18fregs.h,
8070           device/lib/pic16/pics.all,
8071           src/pic16/device.c: added 18f2455
8072         * device/lib/pic16/libdev/pic18f[68][567]20.c,
8073           device/include/pic16/{pic18f[68][567].h,usart.h}:
8074           replaced MULTIPLE_USARTS define with more relaible
8075           compatibility sfrs (for USART access)
8076
8077 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
8078
8079         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
8080           and the output asm file line is printed on two lines.
8081
8082 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8083
8084         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
8085           BGT, BLE, BHI, and BLS instructions
8086         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
8087           genCmpEq): removed
8088         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
8089           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
8090           fixes bug #1216342
8091         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
8092
8093 2005-06-15 Raphael Neider <rneider AT web.de>
8094
8095         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
8096         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
8097         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
8098           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
8099           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
8100
8101 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8102
8103         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
8104           Marcel Telka in bug #1215704
8105
8106 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
8107
8108         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
8109           located in shared memory bank.
8110
8111 2005-05-31 Raphael Neider <rneider AT web.de>
8112
8113         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
8114           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
8115           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
8116
8117 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
8118
8119         * device/lib/_strncpy.c: fixed the fix
8120
8121 2005-05-26 Raphael Neider <rneider AT web.de>
8122
8123         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
8124           initializers with \0, bug #1208187
8125         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
8126           intializers with \0, bug #1208187
8127
8128 2005-05-26 Raphael Neider <rneider AT web.de>
8129
8130         * src/pic16/glue.c (pic16_printIvalChar): fixed string
8131           initializers with \0, bug #1208187
8132         * src/pic16/main.c (_process_pragma): added sanity checks
8133           for stack position and size, emit warnings when appropriate
8134
8135 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
8136
8137         * device/lib/_strncpy.c: fixed not filling with \0
8138
8139 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8140
8141         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
8142           createFunction),
8143         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
8144           compound_statement),
8145         * src/SDCCsymt.h,
8146         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
8147
8148 2005-05-24 Raphael Neider <rneider AT web.de>
8149
8150         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
8151
8152 2005-05-24 Raphael Neider <rneider AT web.de>
8153
8154         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
8155           TRISE definitions, closes bug #1162453
8156
8157 2005-05-22 Raphael Neider <rneider AT web.de>
8158
8159         * src/pic16/main.c (_process_pragma): check for missing
8160           arguments to pragmas code and udata
8161         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
8162           consistency fixes to match other headers (thanks to Jim Paris)
8163         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
8164
8165 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
8166
8167         * src/SDCCicode.c (isOperandEqual): fixed missing ;
8168
8169 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
8170
8171         * support/regression/tests/bug1198642.c: new test
8172         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
8173         * src/SDCCcse.c (findPrevIc): added comment, please have a look
8174         * support/scripts/resource.h,
8175         * support/scripts/resource.rc,
8176         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
8177         * support/scripts/sdcc.ico: added 32x32 icon
8178
8179 2005-05-18 Raphael Neider <rneider AT web.de>
8180
8181         * device/lib/pic16/libdev/pic18f*.c,
8182         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
8183           keywords to "__sfr" and "__at (X)"
8184         * device/include/pic16/pic18fregs.h: added pic18f4520
8185         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
8186           #1203088 (MPLAB compatibility)
8187
8188 2005-05-17 Raphael Neider <rneider AT web.de>
8189
8190         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
8191         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
8192         * device/lib/pic16/pics.all: added new devices
8193         * src/pic16/device.c: added support for pic18f4520
8194
8195 2005-05-16 Raphael Neider <rneider AT web.de>
8196         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
8197         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
8198         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
8199           convenience function for bit access
8200
8201 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
8202
8203         * device/lib/printf_large.c: fixed bug 1193299
8204         * support/regression/tests/bug1057979.c: added test %3.3s
8205
8206 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8207
8208         * device/include/mcs51/8051.h,
8209         * device/include/mcs51/8052.h: made parseable with lint
8210         * device/include/mcs51/lint.h: added include file for (sp)lint
8211         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
8212         * doc/cdbfileformat.lyx,
8213         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
8214
8215 2005-05-14 Raphael Neider <rneider AT web.de>
8216
8217         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
8218         * device/lib/pic16/libc/stdlib/itoa.c (new)
8219         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
8220         * device/lib/pic16/libio/Makefile: exclude subdir according to
8221           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
8222         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
8223         * src/pic16/gen.c (genFunction): prevent annoying warning
8224         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
8225           nameclashes on BeOS
8226         * support/cpp2/cppmain.c (cpp_output_string): new
8227         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
8228           fixes bug 1116802
8229
8230 2005-05-13 Borut Razem <borut.razem AT siol.net>
8231
8232         * src/SDCCmain.c (linkEdit): fixed bug 1195202
8233
8234 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8235
8236         * .version: changed to version 2.5.1; back to bleeding edge development
8237
8238 2005-05-11 Borut Razem <borut.razem AT siol.net>
8239
8240         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
8241           generate PDF version 1.3 documents
8242
8243 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8244
8245         * .version: changed to version 2.5.0
8246
8247 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8248
8249         * doc/sdccman.lyx: updated weblinks, index and smaller updates
8250
8251 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8252
8253         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
8254         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
8255         well as many smaller updates.
8256         * .version: changed to version 2.5.0-pre1
8257
8258 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8259
8260         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
8261
8262 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
8263
8264         * support/regression/tests/bug1185672.c: added
8265         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
8266           bug 1185672
8267         * src/mcs51/gen.c (genCall): added comments, made it look safer
8268         * src/mcs51/gen.c (genEndFunction): simplified
8269
8270 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
8271
8272         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
8273
8274 2005-04-14 Borut Razem <borut.razem AT siol.net>
8275
8276         * fixed bug 1045046 - SIGSEGV with really simple code?:
8277           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
8278           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
8279
8280 2005-04-14 Borut Razem <borut.razem AT siol.net>
8281
8282         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
8283           src/pic16/device.h: temporarily disabled experimental #inline pragma
8284           for 2.5.0 release
8285
8286 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
8287
8288         * device/include/z80/stdio.h,
8289         * device/include/z80/string.h: removed these highly incomplete files so
8290           SDCC can use the default ones in device/include/
8291
8292 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8293
8294         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
8295         gcc warning.
8296         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
8297         fix sdcpp warnings.
8298
8299 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
8300
8301         * device/include/malloc.h: removed redundant __reentrant prototypes
8302         * device/lib/_mullong.c: added working xstack variant in asm (C version
8303           doesn't pass regression tests)
8304         * device/lib/bpx.c: used __data and made bpx char for mcs51
8305         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
8306           (createFunction): fixed bug with xstackPtr
8307         * src/SDCCcse.c: corrected comments
8308         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
8309           (killDeadCode, eBBlockFromiCode): removed unused code
8310         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
8311           corrected comments
8312         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
8313           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
8314           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
8315           (genModOneByte): fixed warning in MSVC
8316         * src/mcs51/main.c (): added comments
8317         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
8318
8319 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
8320
8321         * src/SDCCmain.c (linkEdit): oops, changed one line too many
8322
8323 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
8324
8325         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
8326
8327 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
8328
8329         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
8330         characters arrays of larger size than the declared one.
8331
8332 2005-04-10 Borut Razem <borut.razem AT siol.net>
8333
8334         * src/pic/gen.c (genInline),
8335           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
8336           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
8337           (findNextInstruction), (findPrevInstruction),
8338           (findInstructionUsingLabel),
8339           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
8340         * src/pic/pcode.c (findLabel): added missing '\n'
8341         * src/src.dsp: added SDCCdwarf2.c to the project
8342
8343 2005-04-09 Borut Razem <borut.razem AT siol.net>
8344
8345         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
8346
8347 2005-04-08 Raphael Neider <rneider AT web.de>
8348
8349         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
8350           into the chain after a given one) and mergeDefmapSymbols (combine
8351           defmap entries for each symbol per pcode)
8352         * (createDefmap): have defmap entries merged in the end
8353         * (defmapReplaceSymRef): split defmap entries covering two accesses to
8354           a symbol before replacing one access type's symbol, merge symbols in
8355           the end (replacement symbol might already have an entry)
8356         * (assignValnums): keep reference to written WREG intact
8357
8358 2005-04-08 Raphael Neider <rneider AT web.de>
8359
8360         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
8361           Alpha)
8362
8363 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
8364
8365         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
8366         bytes
8367
8368 2005-04-07 Raphael Neider <rneider AT web.de>
8369
8370         * device/include/pic16/usart.h: added compatibility defines for
8371           devices with more than one USART
8372         * device/include/pic16/pic18f[68][567]20.h: activated above defines
8373
8374 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8375
8376         * device/lib/Makefile.in: updated for port specific include
8377
8378 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8379
8380         * support/regression/ports/mcs51/spec.mk: added mcs51 include
8381
8382 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8383
8384         * device/include/8051.h,
8385         * device/include/8052.h,
8386         * device/include/at89S8252.h,
8387         * device/include/at89c55.h,
8388         * device/include/at89x051.h,
8389         * device/include/at89x51.h,
8390         * device/include/at89x52.h,
8391         * device/include/mcs51reg.h,
8392         * device/include/reg51.h,
8393         * device/include/reg764.h,
8394         * device/include/regc515c.h,
8395         * device/include/sab80515.h: (re)moved these 12 files
8396         * device/include/mcs51/8051.h,
8397         * device/include/mcs51/8052.h,
8398         * device/include/mcs51/at89S8252.h,
8399         * device/include/mcs51/at89c55.h,
8400         * device/include/mcs51/at89x051.h,
8401         * device/include/mcs51/at89x51.h,
8402         * device/include/mcs51/at89x52.h,
8403         * device/include/mcs51/mcs51reg.h,
8404         * device/include/mcs51/reg51.h,
8405         * device/include/mcs51/reg764.h,
8406         * device/include/mcs51/regc515c.h,
8407         * device/include/mcs51/sab80515.h: and added them here
8408
8409 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
8410
8411         * device/include/stdarg.h: changed SDCC specific keywords to double
8412           underlined form.
8413         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
8414           mcs51 and ds390.
8415         * device/include/hc08/mc68hc908gp32.h,
8416         * device/include/hc08/mc68hc908jb8.h,
8417         * device/include/hc08/mc68hc908jkjl.h,
8418         * device/include/hc08/mc68hc908qy.h: fixed comments
8419         * device/include/mcs51/README: updated
8420         * device/include/mcs51/c8051f120.h: added PINRSF
8421         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
8422         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
8423           amidst code. Also inline is not supported.
8424
8425 2005-04-06 Raphael Neider <rneider AT web.de>
8426
8427         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
8428         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
8429           callers stack/frame pointers
8430
8431 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
8432
8433         * device/include/pic16/usart.h: added, missing in previous commit,
8434         * device/include/pic16/adc.h: fixed typo,
8435         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
8436         commit,
8437         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
8438         <p18fxxx.inc>
8439         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
8440         uninitialized because a bug appears with gplink
8441         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
8442         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
8443         complains for unrecognised option
8444
8445 2005-04-05 Raphael Neider <rneider AT web.de>
8446
8447         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
8448           structs as well (using memcpy)
8449         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
8450           on ISRs (GOTO has no label)
8451         * src/pic16/device.h: added OF_OPTIMIZE_DF
8452         * src/pic16/main.c: added compiler switch --optimize-df to enable the
8453           new data flow analysis/optimization
8454         * src/pic16/pcode.c: added (prototypes for and implementation of)
8455           dataflow analysis functions, fixed pCodeInstructions' inCond and
8456           outCond values, made RCALL a branch instruction
8457         * (pic16_unlinkpCode): keep C line if possible
8458         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
8459           C line moved if possible
8460         * (pic16_getRegFrompCodeOp): NEW, improved version of...
8461         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
8462           to use new pic16_getRegFrompCodeOp (works for more SFRs)
8463         * (pic16_BuildFlow): fixed skip instructions with label (did not start
8464           new flow)
8465         * (pic16_getJumptabpCode): NEW, needed in...
8466         * (LinkFlow): fixed handling of jumptables, calls and conditional
8467           branches
8468         * (pic16_InsertCommentAfter): NEW
8469         * (pic16_pCodeReplace): made verbose and flow preserving
8470         * (AnalyzeFlow): added call to data flow analysis
8471         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
8472         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
8473         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
8474
8475 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8476
8477         * src/SDCCast.c (decorateType): fixed bug #1105626
8478
8479 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
8480
8481         * device/include/asm/pic16/features.h,
8482         * pic18f*.h headers,
8483         * device/include/pic16/adc.h,
8484         * device/include/pic16/delay.h,
8485         * device/include/pic16/i2c.h,
8486         * device/include/pic16/malloc.h,
8487         * device/include/pic16/stdio.h,
8488         * device/include/pic16/stdlib.h,
8489         * device/include/pic16/string.h,
8490         * device/lib/pic16/libc/stdio/printf_tiny.c,
8491         * device/lib/pic16/libc/stdio/printf_small.c,
8492         * device/lib/pic16/libc/stdio/strmgpsim.c,
8493         * device/lib/pic16/libc/stdio/strmmssp.c,
8494         * device/lib/pic16/libc/stdio/strmusart.c,
8495         * device/lib/pic16/libc/stdio/vfprintf.c,
8496         * device/lib/pic16/libc/stdlib/ltoa.c,
8497         * device/lib/pic16/libc/stdlib/putchar.c,
8498         * device/lib/pic16/libc/stdlib/x_ftoa.c,
8499         * device/lib/pic16/libc/stdlib/memchrpgm.c,
8500         * device/lib/pic16/libc/stdlib/memchrram.c,
8501         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
8502         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
8503         * device/lib/pic16/libio/adc/adcbusy.c,
8504         * device/lib/pic16/libio/adc/adcread.c,
8505         * device/lib/pic16/libio/adc/adcsetch.c,
8506         * device/lib/pic16/libio/usart/ubaud.c,
8507         * device/lib/pic16/libio/usart/ubusy.c,
8508         * device/lib/pic16/libio/usart/udrdy.c,
8509         * device/lib/pic16/libio/usart/uopen.c,
8510         * device/lib/pic16/libio/usart/uputc.c,
8511         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
8512         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
8513         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
8514         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
8515         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
8516         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
8517         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
8518         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
8519         specific keywords to double underlined form,
8520         * device/lib/pic16/libc/Makefile.rules,
8521         * device/lib/pic16/libsdcc/Makefile.rules,
8522         * device/lib/pic16/libm/Makefile,
8523         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
8524         to compile with C standard set in Makefile.common
8525         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
8526         rand.c and crc.c in compilation process,
8527         * device/lib/pic16/libsdcc/int/divuint.c,
8528         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
8529         `c' from signed to unsigned,
8530         * device/lib/pic16/startup/crt0.c,
8531         * device/lib/pic16/startup/crt0i.c,
8532         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
8533         keywords to double underlined form, bug fixes in _do_cinit function
8534         which prevented the correct initialization of the .idata segment,
8535         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
8536         core to enter a infinite loop
8537         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
8538
8539 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8540
8541         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
8542
8543 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8544
8545         * device/include/Makefile.in: add support for hc08 subdirectory
8546         * device/include/hc08/: new subdirectory
8547         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
8548         Lucas Loizaga, thanks!
8549         * device/include/hc08/mc68hc908qy.h,
8550         * device/include/hc08/mc68hc908gp32.h,
8551         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
8552         their own directory. Changed internal macro names to use the compiler
8553         reserved namespace. Changed SDCC specific keywords to double
8554         underlined form.
8555         * device/include/math.h,
8556         * device/include/malloc.h,
8557         * device/include/stdarg.h,
8558         * device/include/stdbool.h
8559         * device/include/string.h,
8560         * device/include/tinibios.h,
8561         * device/include/ds400rom.h,
8562         * device/include/8051.h,
8563         * device/include/8052.h,
8564         * device/include/80c51xa.h,
8565         * device/include/at89c55.h,
8566         * device/include/at89S8252.h,
8567         * device/include/at89x51.h,
8568         * device/include/at89x52.h,
8569         * device/include/ds80c390.h,
8570         * device/include/reg764.h,
8571         * device/include/regc515c.h,
8572         * device/include/sab80515.h,
8573         * device/include/mcs51/c8051f000.h,
8574         * device/include/mcs51/c8051f018.h,
8575         * device/include/mcs51/c8051f020.h,
8576         * device/include/mcs51/c8051f040.h,
8577         * device/include/mcs51/c8051f060.h,
8578         * device/include/mcs51/c8051f120.h,
8579         * device/include/mcs51/c8051f300.h,
8580         * device/include/mcs51/c8051f310.h,
8581         * device/include/mcs51/c8051f320.h,
8582         * device/include/mcs51/c8051f330.h,
8583         * device/include/mcs51/c8051f350.h,
8584         * device/include/z180.h: Changed SDCC specific keywords to double
8585         underlined form.
8586
8587 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
8588
8589         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
8590         18F4455,
8591         * (pic16_assignConfigWordValue): disable testing of configuration
8592         register value with config mask,
8593         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
8594         function with port->fun_prefix,
8595         * (genFunction): when generating a naked interrupt function never
8596         create an absolute segment placed in interrupt vector address, place
8597         the actual interrupt function at IVA instead, when an interrupt
8598         function is generated with unspecified interrupt then do not create
8599         the absolute section,
8600         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
8601         code for generating a call to generic pointer get/put function with
8602         a call to function pic16_callGenericPointer(),
8603         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
8604         the call to the generic pointer get/put functions with prefixing the
8605         function name with port->fun_prefix,
8606         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
8607         * src/pic16/main.c (_process_pragma): prefix function with
8608         port->fun_prefix,
8609         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
8610         calling assembler, old 18Fxxxx macro is deprecated,
8611         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
8612         PC_ASMDIR in while condition,
8613         * (findInstruction): add PC_ASMDIR in while condition,
8614         * (buildCallTree): prefix main with port->fun_prefix,
8615         * (pic16_pCode2str): fixed bug that didn't emit the memory access
8616         identifier for variable with banked access in instructions BTFSS,
8617         BTFSC, BCF, BSF, BTG
8618         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
8619         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
8620         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
8621         perform optimization when enviroment variable NO_REG_OPT is set,
8622         * (insideLRBlock): NEW, return 1 if register is inside an
8623         INF_LOCALREGS block,
8624         * (RemoveRegFromLRBlock): remove a register that is completely
8625         eliminated by register optimization, but it is still left in local
8626         register store/restore in/from stack block,
8627         * (Remove2pcodes): after removing register, check to see if it
8628         should be removed from local register store/restore in/from stack
8629         block,
8630         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
8631         DUMMY_READ_VOLATILE,
8632
8633         * device/include/pic16/adc.h: minor prototype modifications and
8634         update,
8635         * device/include/pic16/malloc.h: added GPL notice various
8636         modifications,
8637         * device/include/pic16/stdint.h: NEW, standard header for ints
8638         * device/include/pic16/delay.h: NEW, header for delay functions,
8639         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
8640         delay1mtcy,
8641         * device/include/pic16/signal.h: NEW, header providing helper macros
8642         for implementing signal handlers,
8643         * device/include/pic16/stdio.h: added prototypes for functions,
8644         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
8645         prototypes for stdin and stdout, added macro PUTCHAR to
8646         automatically implement putchar function prototype,
8647         * device/include/pic16/usart.h: modified and updated USART library,
8648         * device/lib/pic16/libio/adc/,
8649         * device/lib/pic16/libio/i2c: some modifications to improve library
8650         performance,
8651         * device/lib/pic16/libc/stdio/: modifications for the new printf*
8652         family of functions,
8653         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
8654         family of functions and other sources,
8655         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
8656         of the PIC18Fxx[28] devices,
8657         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
8658         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
8659         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
8660         _do_cinit function, because the previous failed when local variables
8661         where not placed in the same memory bank,
8662         * device/lib/pic16/libsdcc/char/: various modifications to improve
8663         library performance,
8664         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
8665         information on the new functions of the c library and more...
8666
8667 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8668
8669         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
8670
8671 2005-03-26 Raphael Neider <rneider AT web.de>
8672
8673         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
8674           if condition == CARRY)
8675         * (genCmp): adapted to new genSkipc semantics
8676         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
8677           on rIfx (genCmp was broken)
8678
8679 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8680
8681         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
8682         * src/z80/main.c (_keywords[]),
8683         * src/SDCCglobal.h (struct options),
8684         * src/SDCC.y,
8685         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
8686         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
8687         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
8688         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
8689         always available in leading double underscore form. The C99 support is
8690         mostly missing, but it's a start.
8691         * support/regression/tests/bug-227710.c: fixed nonconforming use of
8692         reserved identifier "__data".
8693
8694 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
8695
8696         * src/mcs51/peeph.def: fixed bug 1170013
8697
8698 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
8699
8700         * device/include/mcs51reg.h: fixed bug 842007
8701
8702 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8703
8704         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
8705         last time.
8706
8707 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8708
8709         * src/port.h (struct PORT),
8710         * src/avr/ralloc.c (avr_assignRegisters),
8711         * src/avr/main.c,
8712         * src/ds390/ralloc.c (ds390_assignRegisters),
8713         * src/ds390/main.c,
8714         * src/hc08/ralloc.c (hc08_assignRegisters),
8715         * src/hc08/main.c,
8716         * src/mcs51/ralloc.c (mcs51_assignRegisters),
8717         * src/mcs51/main.c,
8718         * src/pic/ralloc.c (pic14_assignRegisters),
8719         * src/pic/main.c,
8720         * src/pic16/ralloc.c (pic16_assignRegisters),
8721         * src/pic16/main.c,
8722         * src/xa51/ralloc.c (xa51_assignRegisters),
8723         * src/xa51/main.c,
8724         * src/z80/ralloc.c (z80_assignRegisters),
8725         * src/z80/ralloc.h,
8726         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
8727         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
8728         * src/SDCCcse.h,
8729         * src/SDCCdflow.c (computeDataFlow),
8730         * src/SDCCdflow.h,
8731         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
8732         * src/SDCCloop.h,
8733         * src/SDCCcflow.c (*),
8734         * src/SDCCcflow.h,
8735         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
8736         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
8737         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
8738         immedDom() returning wrong block; probably fixes bug #1160833)
8739
8740 2005-03-20 Borut Razem <borut.razem AT siol.net>
8741
8742         * support/scripts/inc2h.pl: WIN32 port
8743
8744 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
8745
8746         * device/lib/makefile.in: added abs.c and labs.c
8747
8748 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
8749
8750         * device/include/stdint.h: added
8751         * device/lib/abs.c: added
8752         * device/lib/labs.c: added
8753         * device/include/stdlib.h: added abs() and labs() prototypes
8754         * device/lib/libsdcc.lib: added abs and labs
8755         * device/include/float.h,
8756         * device/lib/_fsmul.c,
8757         * device/lib/printf_fast.c,
8758         * device/lib/printf_tiny.c: updated comments
8759
8760 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8761
8762         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
8763         bug #1164313
8764
8765 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8766
8767         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
8768         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
8769
8770 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
8771
8772         * device/lib/printf_large.c: removed inline assembly for portability and
8773           readability. Use printf_fast if speed or size are more important.
8774         * src/pic16/gen.c: removed conditions around use of DEBUGpc
8775         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
8776
8777 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
8778
8779         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
8780         prevent compiler warning
8781
8782 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
8783
8784         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
8785         moved to level 0 and declared as static. Also they are explicit
8786         placed in access bank. This was necessery because some times they
8787         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
8788         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
8789         optimizations. Currently only compare to unsigned char is implemented,
8790         * src/pic16/gen.c: added fReturnIdx array,
8791         * (struct resolvedIfx) is moved to gen.h and made public,
8792         * (struct _G): added sregsAlloc and sregsAllocSet fields,
8793         * (aopForSym): added an optimization to directly store in stack of
8794         the operand of a SEND iCode,
8795         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
8796         but as registers instead (AOP_REG) using the fReturnIdx array,
8797         * (pic16_freeAsmop): remove the freed register from the
8798         _G.sregsAlloc field,
8799         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
8800         a compare of 'WREG',
8801         * (pic16_popGetTempRegCond): changed function prototype, now
8802         function takes also a bitVector argument v which holds the current
8803         set of registers that are allocated for stack access by aopForSym,
8804         registers allocated in aopForSym for accessing stack symbols are not
8805         any more part of the functions usedRegs field,
8806         * (genCall): some times aopOp is called for a stack variable to be
8807         send, aopForSym might perform the push, if this is true make sure
8808         that genCall doesn't push the variable twice by testing _G.resDirect,
8809         * (genFunction): changed testing for unspecified interrupt number
8810         from 256 to INTNO_UNSPEC,
8811         * modified selection scheme of frame pointer generation. Previously
8812         if function did use local registers a frame pointer was generated,
8813         now a frame pointer is generated only if function has arguments
8814         (that need PLUSW2 register access), or has stack arguments, or the
8815         compiler is not instructed to omit the frame pointer,
8816         * (genEndFunction): before restoring local registers that were saved
8817         in the function preamble, also restore the registers that *might*
8818         have been allocated for stack access,
8819         * (genRet): removed some old comments,
8820         * (genCmp, the active (RN's) version): added a call to the
8821         pic16_genCmp_special function to perform the compare with a more
8822         robust and optimized way,
8823         * (genInline): a feature has been added in inline code generation,
8824         which allows a wildcard variable substitution when writing inline
8825         assembly. Code is incomplete and experimental therefore undocumented,
8826         * (genCast): changed order of aopOp for result and right to allow
8827         aopForSym to directly load the result if possible,
8828         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
8829         perform an optimized compare on some selected special occasions,
8830         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
8831         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
8832         generate an IVT any more,
8833         * src/pic16/main.c (pic16_optionsTable): added command line option
8834         --optimize-cmp,
8835         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
8836         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
8837         macros,
8838         * src/pic16/NOTES: Raphael Neider added in list of active developers
8839         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
8840         jumptable_end to prevent bug #,
8841         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
8842         inCond and outCond fields,
8843         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
8844         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
8845         turn off register spilling,
8846         * (packRegsForOneUse): synced with other ports' versions although it
8847         is not used currently,
8848         * (pic16_packRegisters): added an optimization while reading
8849         structure bitfields, some registers may be saved (malloc code is
8850         decreased by 80 bytes)
8851
8852 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
8853
8854         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
8855         left is a bitfield, if yes, then don't optimize assignment. Perhaps
8856         this can be optimized more?
8857
8858 2005-03-10 Raphael Neider <rneider AT web.de>
8859
8860         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
8861           genNearPointerGet): (hopefully) fixed access to bitfields via
8862           pointers (p->bitN = x; and x = p->bitN; failed)
8863
8864 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
8865
8866         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
8867
8868 2005-03-09 Raphael Neider <rneider AT web.de>
8869
8870         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
8871
8872 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
8873
8874         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
8875         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
8876           (regTypeNum): set REG_BIT type if necessary
8877         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
8878         * support/regression/tests/critical.c: check bug 1144613
8879
8880 2005-03-02 Raphael Neider <rneider AT web.de>
8881
8882         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
8883
8884 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8885
8886         * src/avr/ralloc.c (serialRegAssign),
8887         * src/ds390/ralloc.c (serialRegAssign),
8888         * src/hc08/ralloc.c (serialRegAssign),
8889         * src/mcs51/ralloc.c (serialRegAssign),
8890         * src/pic/ralloc.c (serialRegAssign),
8891         * src/pic16/ralloc.c (serialRegAssign),
8892         * src/xa51/ralloc.c (serialRegAssign),
8893         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
8894
8895 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
8896
8897         * src/SDCCast.c (decorateType): fixed bug 1124787
8898
8899 2005-02-20 Hubert Sack <sack AT digiplan.de>
8900         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8901
8902         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
8903         patch #1121755
8904
8905 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8906
8907         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
8908         to keep the correct label reference count when adding/removing references
8909         to labels. A peephole file using this is appended to patch #1144962.
8910
8911 2005-02-14 Raphael Neider <rneider AT web.de>
8912
8913         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
8914         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
8915         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
8916           retrievals of result operand's value on assignment
8917
8918 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
8919
8920         * device/include/pic16/string.h: modified prototype for memccpy()
8921         to memccpy(void *, void *, char, size_t)
8922         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
8923         check whether to omit frame pointer or not,
8924         * (genInline): convert all occurences of "\n" to LF in inline
8925         assembler blocks, this helps formatting the inline text,
8926         * (pic16_loadFSR0): modified prototype,
8927         * (genNearPointerGet, genNearPointerSet): reorganization of code,
8928         removed some 8051 legacy code,
8929         * (genPackBits): enabled handling bitfields exceeding one byte in size,
8930         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
8931         before allocating temporary registers in functions,
8932
8933 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
8934
8935         * support/regression/tests/bitvars.c: corrected the "fix"
8936
8937 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
8938
8939         * support/regression/tests/bitvars.c,
8940         * support/regression/tests/bitwise.c,
8941         * support/regression/tests/rotate.c: "fixed" problems on Alpha
8942
8943 2005-02-10 Raphael Neider <rneider AT web.de>
8944
8945         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
8946           different size for Alpha
8947         * src/pic16/gen.c (genCmpEq) : improved compare with 0
8948
8949 2005-02-09 Raphael Neider <rneider AT web.de>
8950
8951         * src/SDCC.lex(doPragma) : save and restore warning options as well
8952           (also added new stack plus clone- and copyAndFreeSDCCERRG())
8953         * have #pragma less_pedantic set the errorlevel to WARNING
8954           (fixes #1117001)
8955         * (cloneOptimize) : fixed wrong malloc's size
8956         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
8957           facilitate correct handling of #pragma (save|restore)
8958
8959 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
8960
8961         * src/mcs51/gen.c: removed non-standard C nameless struct/union
8962
8963 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
8964
8965         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
8966
8967 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
8968
8969         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
8970
8971 2005-02-02 Raphael Neider <rneider AT web.de>
8972
8973         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
8974         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
8975         * (pic16_storeForReturn): fixed to allow returning function pointers
8976         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
8977         * device/include/pic16/{stddef.h,stdbool.h}: added
8978
8979 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
8980
8981         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
8982
8983 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
8984
8985         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
8986         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
8987          appeared to be required
8988
8989 2005-01-31 Borut Razem <borut.razem AT siol.net>
8990
8991         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
8992           include/mcs51 and include/z80 directories to the package
8993
8994 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8995
8996         * src/hc08/gen.c (genFunction): fixed bug #1112752
8997
8998 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8999
9000         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
9001
9002 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9003
9004         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
9005
9006 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
9007
9008         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
9009
9010 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
9011
9012         * device/include/c8051fxxx.h: removed these 6 files
9013         * device/include/mcs51/c8051fxxx.h: added these 11 new files
9014
9015 2005-01-26 Raphael Neider <rneider AT web.de>
9016
9017         * src/pic16/gen.c (genAssign): fixed assignment from longs
9018           in codespace (were cut to three bytes)
9019         * (genDummyRead): implemented (except for CODESPACE...),
9020           fixed bug #1108575
9021         * src/pic16/glue.c (emitStatistics): beautified
9022         * device/lib/pic16/libm/Makefile: added include path
9023
9024 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9025
9026         * src/z80/gen.c (aopPut): fixed bug #1103902
9027
9028 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9029
9030         * device/lib/expf.c: fixed bug #1095792
9031
9032 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
9033
9034         * device/lib/pic16/libm: added Math library sources
9035
9036 2005-01-24 Raphael Neider <rneider AT web.de>
9037
9038         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
9039           to enable upcast to pCodeOpReg2 (there is no type tag to
9040           differenciate the two and pic16_popGet2p cast into PCOR2)
9041         * src/pic16/main.c (_process_pragma): fixed another malloc bug
9042           (sizeof(sectNames) changed to sizeof(sectName))
9043           Both patches fix segfaults under MinGW.
9044
9045 2005-01-23 Raphael Neider <rneider AT web.de>
9046
9047         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
9048           Safe_[mc]?alloc()'ed variables
9049         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
9050           of (byte sized) temporaries (assign them to WREG for now)
9051         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
9052           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
9053           this might fix SIGSEGVs on MinGW...
9054         * src/SDCCopt.c (killDeadCode): restored original behaviour
9055           (volatile operands might get thrown away though)
9056
9057 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
9058
9059         * src/pic16/gen.c: fixed bug #1106975,
9060         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
9061         pointer update, INTCON is saved, global interrupts are disabled and
9062         restored after updateing TOS.
9063         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
9064         * added function attribute 'shadowregs' to take advantage of shadow
9065         registers,
9066         * added function attribute 'wparam' as an alternative to the wparam
9067         pragma,
9068         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
9069         user declares a non-ISR function as 'shadowregs',
9070         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
9071
9072 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
9073
9074         * .version: bumped version number to 2.4.8
9075         * device/lib/pic16/pics.all: list of PIC18F devices supported by
9076         pic16 port,
9077         * device/lib/pic16/libio/i2c/: I2C module support library,
9078         * device/include/pic16/i2c.h: I2C support library header,
9079         * device/lib/pic16/libc/stdio/: standard IO support sources,
9080         * (printf_small.c): printf_small() source, supports float print,
9081         * (printf_tiny.c): printf_tiny() source, does not support floats,
9082         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
9083         enable global optimizations for entire library source, other
9084         Makefiles in the source tree are also modified to reflect this,
9085         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
9086         function,
9087         * doc/sdccman.lyx: updated to reflect new changes,
9088         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
9089         sym->onStack if-case,
9090         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
9091         sbit, idata, _idata, xdata, _xdata,
9092         * added pragma library, to link an external library, (see doc),
9093         * removed command line options, --pomit-config-words, --pomit-ivt,
9094         --pleave-reset-vector,
9095         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
9096         when calling assembler to reflect memory model used, also define
9097         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
9098         reflect stack model used,
9099         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
9100         on stack return NULL,
9101
9102 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
9103
9104         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
9105           of the operands is volatile. Fixes #1020220
9106
9107 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
9108
9109         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
9110         * (OptimizeRegUsage): make sure that there is really no other flow where
9111           the first pCode is used
9112
9113 2005-01-22 Raphael Neider <rneider AT web.de>
9114
9115         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
9116           to fix #1106967 (pCode->seq are not set up correctly)
9117
9118 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9119
9120         * src/SDCCglue.c (glue): make sure code area is declared before the
9121         static initialization area.
9122
9123 2005-01-21 Raphael Neider <rneider AT web.de>
9124
9125         * device/lib/Makefile.in: fixed test for pic16 install dir
9126         * device/lib/pic16/*/Makefile*: modified compile flags to enable
9127           optimizations
9128         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
9129           added --optimize-goto compiler switch and pragma wparam documentation
9130         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
9131         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
9132           and PRODH closing bug #1071770 (peephole optimizer)
9133
9134 2005-01-19 Raphael Neider <rneider AT web.de>
9135
9136         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
9137           cmdLine buffers (used when calling sdcpp...) are large enough
9138           (MAX_PATH=256 truncates arguments leading to system halts when
9139           used in MinGW...)
9140         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
9141         * (genUminus): rewritten to for efficiency
9142         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
9143           used uninitialized in some cases)
9144         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
9145           copy the third byte from the int -- now assumes 0x80 (data memory)
9146         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
9147           operands (genAddLit expects the iCode's operands to swapped as
9148           well), fixed leftover bytes (crashed for short left operands)
9149         * (pic16_genMinusDec): performance improvements, removed false
9150           PIC14 emitSKPNCs
9151         * (pic16_genMinus): fixed to cope with differently sized operands
9152         * src/pic16/glue.c (pic16_glue): added new banksel optimization
9153           for --obanksel > 1
9154         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
9155         * src/pic16/graph.[ch]: implementation of directed graphs, used by
9156           new banksel optimization
9157         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
9158           analysis for temporary registers (segfaults...)
9159         * src/pic16/peeph.def: added rule
9160
9161 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
9162
9163         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
9164         which converts a float number to its ASCII representation
9165         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
9166         functions to convert the fractional and integer part of a float to ASCII,
9167         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
9168         realloc.c): added _MALLOC_SPEC to explicit place variables in data
9169         ram
9170         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
9171         _STATMEM macros,
9172         * device/include/pic16/adc.h: added GPL info,
9173         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
9174         a pCodeOp as tested operand,
9175         * (genNearPointerGet): optimized bit testing, does not use
9176         intermediate register for bit value, test directly instead with
9177         BTFSS, BTFSC, works only for single bits,
9178         * (genpic16Code): dump the name of the iCode in the asm,
9179         * src/pic16/ralloc.c (decodeOp): removed static declaration and
9180         renamed to pic16_decodeOp,
9181         * (serialRegAssign): do not allocate a temporary register for iCode
9182         sequences that test a single bit for 1/0
9183
9184 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
9185
9186         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
9187         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
9188         access stack and frame pointers. They are initially assigned to
9189         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
9190         accessing SFRs. Updated all occurences of modification of stack or
9191         frame pointer in gen.c and pcode.c,
9192         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
9193         assigning of a literal value to pointers,
9194         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
9195         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
9196         selected
9197
9198 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
9199
9200         * doc/sdccman.lyx: update documentation about stack pragma, added
9201         some info for stack memory models
9202
9203 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9204
9205         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
9206
9207 2005-01-08 Raphael Neider <rneider AT web.de>
9208
9209         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
9210           udata sections to fix bug #1097823
9211
9212 2005-01-05 Raphael Neider <rneider AT web.de>
9213
9214         * src/pic16/gen.c (genGenericShift): added handling of differently
9215           sized left operand and result
9216
9217 2005-01-04 Raphael Neider <rneider AT web.de>
9218
9219         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
9220         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
9221           to hold the condition bit)
9222         * added new version of genCmp (old code available via #define)
9223         * added new version of genShiftLeft/genShiftRight in a generic
9224           way, now supports shifting by negative values
9225         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
9226           shiftCount (expected by genGenericShift)
9227         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
9228         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
9229           dump
9230         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
9231           is an invalid literal too...)
9232
9233 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
9234
9235         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
9236         from Raphael Neider,
9237         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
9238         for 8-bit literals. This fixes some literal operands which are sign
9239         extended to 16-bits ints when instruction needs only 8-bits.
9240
9241 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
9242
9243         * device/lib/logf.c: added mcs51 assembly version
9244         * device/lib/expf.c: added mcs51 assembly version
9245         * device/lib/_logexpf.c: new shared asm code for expf and logf
9246         * device/include/math.h: add defines for assembly math library
9247         * device/lib/Makefile.in: build new _logexpf.c
9248         * device/lib/libfloat.lib: use new _logexpf.c
9249
9250 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
9251
9252         * src/pic/device.c
9253         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
9254           device types which have less than 0x7f registers.
9255
9256 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
9257
9258         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
9259
9260 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
9261
9262         * device/lib/printf_fast.c: only build on supported arch.
9263         * device/lib/printf_tiny.c: only build on supported arch.
9264         * device/lib/printf_fast_f.c: only build if asm float lib
9265         * device/lib/_fsget1arg.c: only build if asm float lib
9266         * device/lib/_fsget2args.c: only build if asm float lib
9267         * device/lib/_fsnormalize.c: only build if asm float lib
9268         * device/lib/_fsreturnval.c: only build if asm float lib
9269         * device/lib/_fsrshift.c: only build if asm float lib
9270         * device/lib/_fsswapargs.c: only build if asm float lib
9271         * device/include/stdio.h: don't provide print_fast,
9272           print_fast_f, print_tiny prototypes if --xstack used
9273
9274 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
9275
9276         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
9277         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
9278           to the SOURCES
9279
9280 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
9281
9282         * device/lib/printf_fast_f.c: same as printf_fast, but
9283           with floating point enabled
9284         * device/lib/printf_fast.c: minor tweaks
9285         * device/include/stdio.h: add printf_fast_f
9286
9287 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
9288
9289         * src/SDCCmain.c: make --float-reent default for mcs51
9290         * device/lib/_fsadd.c: added mcs51 assembly version
9291         * device/lib/_fssub.c: added mcs51 assembly version
9292         * device/lib/_fsmul.c: added mcs51 assembly version
9293         * device/lib/_fsdiv.c: added mcs51 assembly version
9294         * device/lib/_fseq.c: added mcs51 assembly version
9295         * device/lib/_fsneq.c: added mcs51 assembly version
9296         * device/lib/_fsgt.c: added mcs51 assembly version
9297         * device/lib/_fslt.c: added mcs51 assembly version
9298         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
9299         * device/lib/Makefile.in: add _fscmp to build
9300         * device/lib/libfloat.lib: add _fscmp to build
9301
9302 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
9303
9304         * device/lib/_fs2slong.c: added mcs51 assembly version
9305         * device/lib/_fs2sint.c: added mcs51 assembly version
9306         * device/lib/_fs2schar.c: added mcs51 assembly version
9307         * device/lib/_fs2ulong.c: added mcs51 assembly version
9308         * device/lib/_fs2uint.c: added mcs51 assembly version
9309         * device/lib/_fs2uchar.c: added mcs51 assembly version
9310         * device/lib/_slong2fs.c: added mcs51 assembly version
9311         * device/lib/_sint2fs.c: added mcs51 assembly version
9312         * device/lib/_schar2fs.c: added mcs51 assembly version
9313         * device/lib/_ulong2fs.c: added mcs51 assembly version
9314         * device/lib/_uint2fs.c: added mcs51 assembly version
9315         * device/lib/_uchar2fs.c: added mcs51 assembly version
9316         * device/include/float.h: added #define to select asm vs c
9317
9318 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
9319
9320         * device/lib/printf_fast.c: improvements to float output
9321         * device/include/float.h: add defines for assembly float library
9322         * device/lib/_fsget1arg.c: receive 1 float arg
9323         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
9324         * device/lib/_fsnormalize.c: normalize a float
9325         * device/lib/_fsreturnval.c: return float, various helper routines
9326         * device/lib/_fsrshift.c: right shift a float's mantissa
9327         * device/lib/_fsswapargs.c: swap 2 floats
9328         * device/lib/Makefile.in: build these 6 new files for mcs51
9329         * device/lib/libfloat.lib: add these 6 files to the library
9330
9331 2004-12-26 Borut Razem <borut.razem AT siol.net>
9332
9333         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
9334           built by gcc 3.4.2
9335
9336 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
9337
9338         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
9339           and fully reentrant and register bank neutral.
9340         * device/lib/printf_fast.c: added float (not enabled by default),
9341           added compact/slower integer (also not enabled by default),
9342           improved size/speed of fast integer code, other minor changes
9343         * device/include/stdio.h, device/lib/Makefile.in,
9344           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
9345
9346 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
9347
9348         * src/pic16/pcode.c: declaring variables other than at the start of a
9349           block is not supported in C by VC6.
9350
9351 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
9352
9353         * applied a previous patch from Raphael Neider that wasn't included
9354         in the previous commits, which fixes infinite loops within jumptable
9355         improvements,
9356         * made some fixes that previous patches introduced
9357
9358 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
9359
9360         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
9361         that fixes an issue with AOP_PCODE asmop's offset,
9362         * (pic16_popCopyReg): update instance field too,
9363         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
9364         function of pic port,
9365         * (genCmp, genAnd, genAssign),
9366         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
9367
9368 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
9369
9370         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
9371         variables initial values to idata section,
9372         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
9373         variables in some functions. This utilizes parmBytes field of iCode
9374         structure to hold the offset of the variable in stack. (might be
9375         able to use the stack field too?)
9376         * applied patch from Raphael Neider # ### , # ###
9377         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
9378         variable initial values in idata section,
9379         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
9380         for static variables with initial value
9381         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
9382         applied fix in while loop from Raphael Neider.
9383
9384 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
9385
9386         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
9387         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
9388         * src/ds390/ralloc.c (serialRegAssign): spill bits
9389         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
9390         * support/Util/SDCCerr.c,
9391         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
9392         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
9393         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
9394
9395 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
9396
9397         * device/include/sdcc-lib.h: inserted LGPL, added includes
9398           asm/ds390/features.h and asm/mcs51/features.h
9399         * device/include/asm/default/features.h,
9400         * device/include/asm/gbz80/features.h,
9401         * device/include/asm/z80/features.h: added empty _AUTOMEM
9402           and _STATMEM
9403         * device/include/asm/ds390/features.h,
9404         * device/include/asm/mcs51/features.h: added files with defines for
9405           _AUTOMEM and _STATMEM indicating automatic and static storage class
9406         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
9407         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
9408         * src/SDCCicode.c (geniCodeCast),
9409         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
9410         * src/SDCCloop.c (loopInduction): removed unused variable lr
9411         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
9412           to convertToFcall to include char modulo (RFE 1065037), added check
9413           if left operand is unsigned and use abs of literal value
9414         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
9415           as it doesn't work after conversion from peephole.def to peephole.rul
9416         * src/mcs51/gen.c (toBoolean): added check for size,
9417           (genModOneByte): optimized code for signed char modulo a literal
9418           power of 2 (thanks to Hubert Sack),
9419           (genRRC): removed unnecessary "clr c",
9420           (genRLC): replaced "add a,acc" with cheaper "rlc a"
9421         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
9422           jump optimization,
9423           swapped rules 256.c and 256.d,
9424           extended 256.d by using new multiple checks (thanks Erik),
9425           added rules 256.e and 256.f,
9426           updated rule 261.a and 261.b to new generated code
9427         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
9428
9429 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9430
9431         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
9432           induction related bugs, including first part of bug #1074377
9433
9434 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
9435
9436         * applied patch from bug-report #1076292,
9437         * applied patches for genAnd and Goto-optimizations for Raphael
9438         Neider,
9439         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
9440         dump a less iCode information,
9441         * src/pic16/device.h (pic16_options_t): added field debgen,
9442         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
9443         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
9444         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
9445         puclic,
9446         * (various functions): added macros FENTRY and FENTRY2 to functions,
9447         to emit function prologue,
9448         * (various functions): fixed indentation,
9449         * (genNearPointerGet): fixed loading of FSR0,
9450         * (genPackBits): applied patch from Raphael Neider to fix updating
9451         of FSR0 and touching only the modified bits,
9452         * src/pic16/genarith.c (various functions): added macros FENTRY to
9453         emit function prologue in comments,
9454         * src/pic16/pcode.h: added functions debugf2, debugf3,
9455         * src/pic16/ralloc.c: partial fix for packForPush caused
9456         segmentation fault,
9457
9458 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9459
9460         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
9461           <stsp AT users.sourceforge.net> with reversed byte order
9462         * support/regression/tests/rotate.c: added (ds390 skips some tests)
9463
9464 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9465
9466         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
9467           bug #1074377
9468         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
9469         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
9470
9471 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
9472
9473         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
9474
9475 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9476
9477         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
9478           conditions,
9479           (setFromConditionArgs): friendly operand parser for peephole rules,
9480           (operandBaseName, operandsNotRelated): new peephole condition
9481           "operandsNotRelated" -- similar to "operandsNotSame", but takes
9482           architecture specific register naming into account, handles n-way
9483           comparisons, and supports quoted literals
9484         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
9485
9486 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9487
9488         * src/mcs51/peeph.def: fixed bug #1076940
9489
9490 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
9491
9492         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
9493
9494 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9495
9496         Adding support for replacing ljmps with sjmps in jumptables
9497         generated for switch statements. For now you need to set the
9498         environment variable SDCC_SJMP_JUMPTABLE to enable this.
9499         Now 4 algorithms for mcs51 jumptable generation are used:
9500         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
9501         addresses loaded pc-relative for up to 112 cases and stack-pushing
9502         target addresses loaded with offset from dptr for up to 256 cases.
9503
9504         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
9505         * src/mcs51/main.c: adapted constants for switch table generation
9506         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
9507
9508 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
9509
9510         * device/lib/printf_large.c (_print_format): fixed bug 1073386
9511         * support/regression/tests/bug1057979.c: added test for bug 1073386
9512
9513 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
9514
9515         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
9516         compilers
9517
9518 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
9519
9520         * src/pic16/device.h,
9521         * src/pic16/genarith.c,
9522         * src/pic16/glue.c,
9523         * src/pic16/main.c,
9524         * src/pic16/pcode.c: applied patches #1068154 and #1070213
9525
9526 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
9527
9528         Large cummulative patch for pic16 port.
9529         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
9530         to call when a stack overflow occurs,
9531         * (malloc.h): added CVS Id tag,
9532         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
9533         variable,
9534         * added libc directory. The current version of LibC contains string
9535         functions, ctype functions and macros and some functions of the
9536         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
9537         be extensively tested in the future. Standard disclaimer here.
9538         Library is not automatically build yet. But one can build it by
9539         invoking 'make' inside the libc directory.
9540         * added ADC library under libio. Preliminary version yet.
9541
9542         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
9543         * src/pic16/gen.c (aopForRemat): asmop size is filled by
9544         aopForRemat() now and not by pic16_aopOp(),
9545         * (pic16_popGetTempReg): removed warning messgae when allocating
9546         temporary registers, its a buggy feature and will be removed,
9547         * (pic16_popGet): set register instance field in AOP_CRY,
9548         * (pic16_outBitC): fixed for results in size greater than 1,
9549         * (genUminusFloat): fixed for pic16, ported code from mcs51,
9550         * (pic16_storeForReturn): optimized return of 0,
9551         * (genCmp): experimental code for new genCmp which uses PIC18's
9552         special compare&skip instructions. Initial tests fail some times
9553         with variables grater than 1 byte in size, so new code is disabled,
9554         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
9555         a single bit,
9556         * (genCast): began a fix to optimize the casting of a bit to another
9557         bit, now assigning a bitfield to another bitfield will fail, sorry,
9558         * src/pic16/main.c: disabled the use of lr-support feature,
9559         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
9560         * added some function prototypes, added function _debugf prototype,
9561         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
9562         bits with offset (case PO_GPR_BIT),
9563         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
9564         command line,
9565         * (isBankInstruction): modified to return 0 for no banking instruction,
9566         and 1 for banking instruction,
9567         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
9568         caused stop processing pCodes after a inline assembly block,
9569         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
9570         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
9571         registers when it shouldn't,
9572         * src/pic16/ralloc.c (allocReg): add preliminary support for
9573         supporting a limited set of temporary registers,
9574
9575 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9576
9577         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
9578           genDataPointerSet): ensure assignments always copy in MSB to LSB
9579           order,
9580           (loadRegFromAop): recognize CLRH optimization,
9581           (genFunction): optimize RECEIVE iCodes in reentrant functions
9582
9583 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9584
9585         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
9586           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
9587           selected.
9588         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
9589         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
9590           contiguous with data
9591
9592 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9593
9594         * device/lib/_gptrget.c (_gptrget),
9595         * device/lib/_gptrgetc.c (_gptrgetc),
9596         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
9597           instead of sjmp to ret
9598         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
9599           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
9600
9601 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
9602
9603         * .version: bumped version to 2.4.7
9604         * device/lib/_gptrget.c (_gptrget): is now _naked
9605         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
9606         * device/lib/_gptrput.c (_gptrput): is now _naked
9607         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
9608           (createFunction): fixed xstack
9609         * src/SDCCglue.c (emitMaps): set allocation required for bit area
9610         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
9611           or bit either,
9612           (geniCodeCritical): store original interrupt state in an iTemp bit
9613           var unless stack-auto
9614         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
9615         * src/SDCCmain.c (setIncludePath): added include/target to search path
9616         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
9617         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
9618           prototype,
9619           (processFuncArgs): put bit vars in bit area
9620         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
9621           unsaveRBank): fixed xstack,
9622           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
9623           (genFunction, genEndFunction): fixed xstack,
9624           (genAssign): optimization don't walk backwards through mem
9625         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
9626         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
9627         * support/regression/Makefile: also make library (for stack-auto) when
9628           making "all" and added "test-mcs51-xstack-auto"
9629         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
9630         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
9631         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
9632         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
9633         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
9634           make-library by MAKE_LIBRARY
9635         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
9636           regression tests for xstack
9637         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
9638         * support/regression/tests/critical.c: test for critical on mcs51
9639
9640 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9641
9642         * support/regression/ports/ucz80/spec.mk: use include and lib files from
9643           built version of sdcc instead of installed version
9644
9645 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
9646
9647         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
9648         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
9649           vprintf.c now
9650         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
9651         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
9652           WARNING: remove device/lib/build/z80/printf.o by hand when
9653           updating from previous build!
9654         * device/lib/z80/printf.c: updated comment
9655         * support/regression/tests/bug1057979.c: test all ports now
9656         * support/regression/tests/bug1065458.c: file added
9657
9658 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9659
9660         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
9661           *_start and *_end symbols for static functions
9662
9663 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
9664
9665         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
9666           and search crt0.o in all library paths,
9667           (setIncludePath): proper handling of --nostdinc,
9668           (setLibPath): proper handling of --nostdlib
9669         * support/regression/Makefile,
9670         * support/regression/ports/ds390/spec.mk,
9671         * support/regression/ports/gbz80/spec.mk,
9672         * support/regression/ports/hc08/spec.mk,
9673         * support/regression/ports/mcs51/spec.mk,
9674         * support/regression/ports/mcs51-large/spec.mk,
9675         * support/regression/ports/mcs51-stack-auto/spec.mk,
9676         * support/regression/ports/z80/spec.mk: use include and lib files from
9677           built version of sdcc instead of installed version
9678         * doc/sdccman.lyx: fixed typo in --nostdinc
9679
9680 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
9681
9682         * src/pic/pcode.c,
9683         * src/pic/device.c,
9684         * src/pic/ralloc.c,
9685         * src/pic/gen.c : added support to generate code for struct bit fields.
9686
9687 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
9688
9689         * as/xa51/xa_version.h,
9690         * device/include/errno.h,
9691         * device/include/regc515c.h,
9692         * device/lib/_itoa.c,
9693         * device/lib/_ltoa.c,
9694         * device/lib/ser_ir_cts_rts.c,
9695         * sim/ucsim/xa.src/glob.cc,
9696         * sim/ucsim/xa.src/inst_gen.cc,
9697         * sim/ucsim/xa.src/xa_bit.cc,
9698         * sim/ucsim/xa.src/xa_sfr.cc,
9699         * sim/ucsim/z80.src/inst_dd.cc,
9700         * sim/ucsim/z80.src/inst_fdcb.cc,
9701         * support/scripts/keil2sdcc.pl,
9702         * src/pic16/pic16.dsp,
9703         * src/pic16/pic16a.dsp: corrected cvs line endings
9704         * device/lib/printf_large.c: fixed bug 1057979
9705         * src/pic16/gen.c: fixed non-C standard code
9706         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
9707         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
9708         * support/regression/ports/mcs51/support.c: reload T1 asap
9709         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
9710           pdata use and clear idata startup behaviour
9711         * support/regression/tests/bug1057979.c: added
9712
9713 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
9714
9715         * device/examples/ds390/ow390/ad26.h,
9716         * device/examples/ds390/ow390/cnt1d.h,
9717         * device/examples/ds390/ow390/crcutil.c,
9718         * device/examples/ds390/ow390/ownet.h,
9719         * device/examples/ds390/ow390/owsesu.c,
9720         * device/examples/ds390/ow390/swt12.h,
9721         * device/examples/ds390/ow390/swtoper.c,
9722         * device/examples/ds390/ow390/temp10.h,
9723         * device/examples/ds390/ow390/thermodl.c,
9724         * device/examples/ds390/tinitalk/tinitalk.dsp,
9725         * device/examples/ds390/tinitalk/tinitalk.dsw,
9726         * device/examples/mcs51/clock/hw.h,
9727         * device/examples/mcs51/simple2/go.bat,
9728         * device/examples/serialcomm/windows/serial.h,
9729         * device/examples/xa51/dummy.c,
9730         * device/examples/xa51/hello.c,
9731         * device/include/80c51xa.h,
9732         * device/include/at89x051.h: corrected cvs line endings
9733
9734 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
9735
9736         * src/pic16/main.c (options): added command line --gstack, to trace
9737         stack over/under flows,
9738         * added pragma 'wparam' to allow passing first byte of function
9739         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
9740         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
9741         call to __gstack_test function and sets up the symbol as extern,
9742         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
9743         * popaop): added call to pic16_testStackOverflow,
9744         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
9745         wparamList list,
9746         * (genCall, genPcall): now all parameters are passed via stack
9747         except in functions that are pass to wparam pragma in which WREG is
9748         used too,
9749         * (genPcall): REENTRANT flag is checked to see if variable prototype
9750         contains reentrant keyword, don't call a non-reentrant function, via
9751         a reentrant function pointer or vice versa, functions are never
9752         passed via WREG,
9753         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
9754         D.Winkler,
9755         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
9756         SIGSEGV when accessing a NULL register stucture,
9757         * (pic16_printGPointerType): modified to handle UPPER modifier for
9758         function initializers, changed prototype of function to simpler one,
9759         * (pic16_printIvalFuncPtr): check to see if function is already
9760         added in externs list,
9761         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
9762         optimized a move from W to SFR with a move to the same register
9763         later after a CALL,
9764         * device/lib/pic16/debug: NEW directory, contains debug features
9765         which are enabled when linking with libdebug.lib, currently command
9766         line option --gstack enables stack pointer tracing for over/under
9767         flow, corresponding sources are in debug/gstack
9768
9769 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
9770
9771         * doc/sdccman.lyx: updated SDCC version,
9772         * (PIC16 port): update list of command line options,
9773         * src/pic16/device.h (structure pic16_options_t): added field gstack
9774         to enable stack overflow tracing on push/pops,
9775         * src/pic16/device.c (statistics structure): added statistics
9776         structure,
9777         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
9778         pic16_dump_int_registers): increase statistics counters for each
9779         * variable which is encountered
9780         * (pic16_dump_usection): emit each .udata variable to its own udata
9781         section,
9782         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
9783         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
9784         parameters via stack, otherwise use old scheme,
9785         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
9786         assembler output file,
9787         * src/pic16/main.c: added command line options --gstack to enable
9788         push/pop tracing for stack overflow,
9789         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
9790         instructions): added size of each instruction,
9791         * (pic16_countInstruction): estimate size of instructions in
9792         the_pFile list, inline assembly blocks are not counted,
9793         * (pic16_FixRegisterBanking): trace previous register usage, when
9794         banksel optimizations is greater than 0, don't emit a redudant
9795         banksel directive,
9796
9797 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
9798
9799         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
9800         * src/pic16/ralloc.c : applied same fix for pic16.
9801         * src/pic/gen.c : tidied it up a little.
9802
9803 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9804
9805         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
9806         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
9807
9808 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9809
9810         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
9811
9812 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9813
9814         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
9815         non-reentrant function __modsint in the interrupt function (thus
9816         corrupting math operations during serial I/O)
9817         * device/lib/ser_ir.c: as above, changed buffersize
9818         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
9819         256.c,d for zeroing
9820         * doc/Makefile: added option -t for rsync
9821
9822 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9823
9824         * src/SDCCast.h (struct ast),
9825         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
9826
9827 2004-10-20 Borut Razem <borut.razem AT siol.net>
9828
9829         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
9830         package
9831
9832 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
9833
9834         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
9835         makefile targets,
9836         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
9837         support functions to replace long sequences of MOVFF's from access
9838         bank registers to stack and vice versa,
9839         * src/pic16/device.h: added new field opt_flags, where optimization
9840         flags can be set to enable certain features,
9841         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
9842         * pBlock, (genFunction, genEndFunction): surroung loop for
9843         saving/loading used registers in stack with PC_INFO pCodes,
9844         INF_LREGS. Code in between can then be optimized by pCode optimizer
9845         to support function calls,
9846         * (genDataPointerSet): fixed bug which loaded float fields in
9847         structures with corrupt data,
9848         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
9849         in a standard way debug info on stderr. Feature used for developing
9850         and debugging only,
9851         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
9852         obsolete chunks of code,
9853         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
9854         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
9855         * pic16/src/pcode.c (pic16_newpCodeInfo,
9856         * (pic16_newpCodeOpLocalRegs),
9857         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
9858         feature,
9859         * (pic16_pCodeConstString): printing of the initial value of a
9860         symbol as a comment is inhibited since parsing was already done by
9861         copyStr and output is corrupt,
9862         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
9863
9864 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9865
9866         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
9867
9868 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
9869
9870         * as/mcs51/lkarea.c: removed old K&R style,
9871           (lnksect): changed check on boundary error,
9872           (lnksect2): changed check on boundary error,
9873           (lnksect2): extend XSTK to end of page if size = 1
9874         * as/mcs51/lkmain.c: removed old K&R style,
9875           (Areas51): create l_IRAM symbol
9876         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
9877         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
9878           model-mcs51-stack-auto, added model-mcs51-xstack-auto
9879         * device/lib/_mullong.c: added version to be compiled with xstack
9880         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
9881         * device/lib/mcs51/crtxclear.asm: clear pdata as well
9882         * device/lib/mcs51/crtxstack.asm: fixed comment
9883         * src/SDCCglue.c: maxInterrupts defaults to 0,
9884           (emitMaps): added pdata,
9885           (createInterruptVect): (re)moved default,
9886           (glue): added pdata,
9887           (glue): moved __start__xstack to XSTK with default size 1
9888         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
9889           and options.float_rent when options.stackAuto is set,
9890           (linkEdit): only write XDATA_NAME if provided on command line
9891         * src/SDCCmem.h,
9892         * src/SDCCmem.c: added pdata
9893         * src/port.h: added pdata_name to PORT
9894         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
9895           (saveRegisters, unsaveRegisters): removed usage of B,
9896           (genMinus): fixed accumulator clash,
9897           (genJumpTab): added comment, this needs another look
9898         * src/mcs51/gen.c: added check for "B in use" paranoia,
9899           added pushB() and popB()
9900         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
9901           chance
9902         * src/avr/main.c,
9903         * src/ds390/main.c,
9904         * src/hc08/main.c,
9905         * src/mcs51/main.c,
9906         * src/pic/main.c,
9907         * src/pic16/main.c,
9908         * src/xa51/main.c,
9909         * src/z80/main.c: (reset_regparms) made void parameter explicit and
9910           added PSEG (PAG,XDATA) or NULL to port specifier
9911         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
9912         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
9913           (_mcs51_genInitStartup): removed __start__xstack equ,
9914           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
9915         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
9916         * src/z80/gen.c (_rleAppend): fixed warnings
9917         * support/regression/tests/zeropad.c: added pdata test
9918         * .version: bumped to 2.4.6
9919
9920 2004-10-17 Borut Razem <borut.razem AT siol.net>
9921
9922         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
9923         as a part of nightly build
9924
9925 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
9926
9927         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
9928         WREG holds the first byte function parameters,
9929         * (aopForSym): take special case for symbols which are in FARSPACE
9930         but in CODESPACE too,
9931         * (assignResultValue): modified to take into account _G.useWreg,
9932         * (genCall): don't use wreg for parameter passing when function is
9933         declared as reentrant, too, added optimization INCF to stack
9934         pointer when stack parameter count is 1,
9935         * (genFunction, genEndFunction): refurnished and fixed to not using
9936         wreg for passing parameters when function has varargs or is
9937         reentrant, fixed bug with symbol name compare for generating
9938         functions in absolute address,
9939         * (pic16_storeForReturn): refurnished,
9940         * (genCmp): began writing a new version of the function, not ready
9941         yet, therefore it is disabled,
9942         * (genAssign): do not read code memory when assigning a function to
9943         a pointer function,
9944         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
9945         array of characters, not pointer,
9946         * (pic16initialComments): in debug mode emit an .ident directive for
9947         the assembler,
9948         * (_process_pragma): emit a new warning type (internal to pic16)
9949         when setting stack to default length, emit a similar warning when
9950         placing a function at absolute address and address is not word aligned
9951         * (_pic16_parseOptions): added 'return TRUE' statement,
9952         * (_pic16_linkEdit): if compiling a source, then add the source's
9953         file object, first in the list of objects to link,
9954
9955 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
9956
9957         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
9958         * src/pic/main.c : removed VC warning.
9959         * src/pic/gen.c : changed comment.
9960
9961 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
9962
9963         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
9964         reference to a deprecated symbol _GPTRREG was causing failure to
9965         link. Thanks G. M. Gallant for the info.
9966
9967 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
9968
9969         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
9970         comments for Bugs item #954788.
9971
9972 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
9973
9974         * src/pic16/device.c (pic16_dump_gsection,
9975         * pic16_groupRegistersInSection): handle symbols declared to be in
9976         access bank differently,
9977         * src/pic16/gen.c (struct _G): added field resDirect,
9978         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
9979         send values read from stack directly to result and don't allocate
9980         temporary values,
9981         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
9982         same registers,
9983         * (pic16_sameRegsOfs): NEW,
9984         * (freeAsmop): if _G.resDirect is set then do not mark registers as
9985         free because they were not allocated from temporary pool,
9986         * pic16_popRegFromString): workaround to fix a problem with
9987         allocating variables twice or never,
9988         * (genGenPointerGet): using PRODL instead of FSR0H,
9989         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
9990         instead of FSR0H,
9991         * (genAssign): take advantage of the _G.resDirect flag,
9992         * (genCast): around line 11844, use mov2f instead of directly
9993         MOVFF'ing between operands to account for literal values,
9994         * src/pic16/genutils.c: some new debug functions for gpsim have been
9995         added,
9996         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
9997         float with integer part only,
9998         * src/pic16/main.c (_process_pragma): handle pragma udata access to
9999         place variables in access bank
10000         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
10001         updated sources to reflect recent changes in gen.c
10002
10003 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
10004
10005         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
10006         sources that searched for headers in installation path, now the
10007         device/include/pic16 is used,
10008         * src/pic16/glue.c (pic16glue),
10009         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
10010         .line directives if not in debug mode, this suppresses assembler's
10011         warnings for ignored directives
10012
10013 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
10014
10015         * src/port.h: made reset_regparms prototype void parameter explicit.
10016         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
10017         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
10018         * doc/sdccman.lyx: documented warning disabling and how to use
10019           printf_large to make it print floats.
10020         * device/include/stdbool.h: NEW
10021         * device/lib/_atof.c,
10022         * device/lib/_divuint.c,
10023         * device/lib/_divulong.c,
10024         * device/lib/expf.c,
10025         * device/lib/printf_large.c,
10026         * device/lib/sincosf.c,
10027         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
10028         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
10029           a completely reentrant lib.
10030
10031 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
10032
10033         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
10034         * device/include/pic16/stdio.h: fixed bug with colon
10035
10036 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
10037
10038         * device/include/pic16/stdio.h,
10039         * device/include/pic16/stdlib.h,
10040         * device/include/pic16/math.h: NEW
10041         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
10042         declared as _naked to reduce overhead
10043         * device/lib/Makefile.in (target port-specific-objects-pic16):
10044         changed * to *.* so to ignore the CVS directory,
10045         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
10046         stacked variables back in stack,
10047         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
10048         corruption
10049
10050 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
10051
10052         * .version: bumped version number to 2.4.5
10053         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
10054         * support/Util/SDCCerr.c (messages structure): added entry for
10055         W_POSSBUG2
10056
10057         Large cumulative patch for pic16 port and libraries.
10058         * device/include/pic16/sdcc-lib.h,
10059         * device/include/pic16/stdarg.h,
10060         * device/include/asm/pic16/features.h,
10061         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
10062         * device/include/pic16/float.h: changes reentrant keyword with
10063         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
10064         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
10065         updated target build-libraries to include objects from gptr,
10066         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
10067         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
10068         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
10069         all function headings,
10070         * src/SDCCmain.c: added global parameter userIncDirsSet,
10071         * (parseCmdLine): when option -I is encountered add directory to
10072         userIncDirsSet too,
10073         * src/version.awk: added space between control and long,
10074         * src/pic16/NOTES: added some notes for the port,
10075         * src/pic16/gen.c: added prototype for mov2fp function,
10076         * (fReturnpic16[]): properly named return value registers,
10077         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
10078         * (aopForSym): added code to handle symbols with onStack flag set,
10079         symbols onStack are allocated PTRSIZE bytes,
10080         * (aopFreeAsmop): handles special case where asmops are stack objects,
10081         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
10082         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
10083         added argument lock to trace flaws in allocating temporary registers
10084         when developing port,
10085         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
10086         * (pic16_popRegFromString): reenabled allocating a direct register
10087         from string,
10088         * (assignResultValue): various beautifications,
10089         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
10090         referenced function argument,
10091         * (genIpush): reenabled to allow stacked arguments, handles only
10092         ic->parmPush iCodes,
10093         * (genCall, genPcall): major changes to allow for variable argument
10094         functions, fixed a bug with falsely restoring stack pointer after
10095         returning from call,
10096         * (genFunction): pending code for critical function,
10097         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
10098         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
10099         * (genNearPointerGet): fixed bug with indirect reading, was always
10100         reading from INDF0
10101         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
10102         pointers,
10103         * (genAddrOf): rewrote code to take address of a stacked function parameter
10104         * (genCast): fixed casting to generic pointer type,
10105         * src/pic16/gen.h: added AOP_STA,
10106         * (struct asmop): added field stk,
10107         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
10108         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
10109         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
10110         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
10111         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
10112         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
10113         generic pointers,
10114         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
10115         and library paths,
10116         * (pic16_port structure): generic pointer size is set to 3,
10117         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
10118         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
10119         compiler warning,
10120         * src/pic16/ralloc.c (allocReg): prevent allocating register when
10121         operand is an iTemp,
10122
10123 2004-09-24 Martin Helmling <mh AT octo-soft.de>
10124
10125         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
10126         * debugger/mcs51/simi.c: addapt new syntax of s51
10127
10128 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
10129
10130         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
10131         * src/pic16/pcode.c: commented out some calls to free() in order to
10132         fix bug #989576,
10133
10134 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10135
10136         * src/SDCCicode.h,
10137         * src/SDCCicode.c (isiCodeInFunctionCall),
10138         * src/avr/ralloc.c (selectSpil),
10139         * src/pic/ralloc.c (selectSpil),
10140         * src/pic16/ralloc.c (selectSpil),
10141         * src/ds390/ralloc.c (selectSpil),
10142         * src/hc08/ralloc.c (selectSpil),
10143         * src/xa51/ralloc.c (selectSpil),
10144         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
10145         stack in the middle of a function call sequence (fixes bug #1020268)
10146         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
10147         costs associated with the minimum switch case.
10148
10149 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10150
10151         * src/SDCC.lex: fixed bug #1030549
10152
10153 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10154
10155         * src/SDCCcse.h (struct cseDef),
10156         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
10157         over a function call if the CSE is derived from a symbol whose
10158         address has been taken (fixes bug #1029883)
10159         * support/regression/tests/bug-1029883: a new regression test for
10160         this bug
10161
10162 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10163
10164         * src/hc08/gen.c (emitinline): fixed bug #1029778
10165         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
10166         to a cast object is no longer a syntax error ("fixes" bug #1030006,
10167         and starts toward RFE #905167)
10168
10169 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
10170
10171         * src/pic16/gen.c (mov2f): New function to move an operand to
10172         another without considering if it is a literal or a register,
10173         * (pic16_sameRegs): don't check if they are both AOP_REG,
10174         * (AccRsh): removed andmask=0 lines,
10175         * (genLeftShift): duplicated to be improved in future versions,
10176         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
10177         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
10178         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
10179         * (pic16initMnemonics): added initialization for POC_INFSNZW,
10180         * (insertBankSwitch): fixed inserting banksel directives algorithm
10181         for instructions that follow a skip instruction, this fixes a report
10182         for broken subtraction code generation,
10183         * src/pic16/ralloc.c (deassignLRs): do not free register if current
10184         iCode is a left op, just in case result and right share the same
10185         registers
10186
10187 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10188
10189         * src/hc08/main.c,
10190         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
10191         preservation of HX
10192         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
10193         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
10194         on 2004-09-12; it was buggy
10195
10196 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
10197
10198         * src/SDCCsymt.h: removed RESULT_CHECK
10199         * src/SDCCast.c,
10200         * src/SDCCglue.c,
10201         * src/SDCCval.c,
10202         * src/pic/glue.c,
10203         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
10204
10205 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
10206
10207         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
10208         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
10209         configuration values no more rejected by compiler, they are assigned
10210         to configuration registers with a warning message instead,
10211         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
10212         the for-loop so last conf register is emitted too,
10213         * (_pic16_initPaths): link library libsdcc.lib by default,
10214         * (_hasNativeMulFor): modified test for multiplication according to
10215         Raphael Neider's remarks. Integer multiplication is also done with
10216         support functions,
10217         * device/include/pic16/pic18fregs.h: corrected type error in while
10218         testing and including 18f6720 header file
10219
10220 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
10221
10222         * src/pic16/device.h (pic16_options): removed field use_crt,
10223         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
10224         until an optimization to handle single bits is added,
10225         * (pic16_loadFSR0): moved before genUnpackBits,
10226         * (genAnd): some white lines removed,
10227         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
10228         leave_reset flags in pic16_options when using crt modules,
10229
10230 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
10231
10232         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
10233           for bugs 898889 & 979599. Also used some safer print instructions.
10234
10235 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
10236
10237         * src/pic16/device.h (pic16_options_t): added field use_crt,
10238         crt_name, no_crt,
10239         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
10240         catch a probable future bug,
10241         * src/pic16/gen.c: aopIdx function commented out,
10242         * (genAssign): commented out old code which used aopIdx,
10243         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
10244         code, added if conditionals to take into account the --use-crt
10245         command line options,
10246         * src/pic16/main.c (pic16_optionsTable): added new command line
10247         options, --use-crt= and --no-crt,
10248         * (_pic16_linkEdit): now the proper crt object is added in the
10249         linker command line except than when --no-crt is specified,
10250         * src/pic16/pcode.c,
10251         * src/pic16/pcode.h: added some structures and functions for a new
10252         optimization scheme to compansate for instruction overhead between
10253         same iCodes, this scheme is currently under development and is not
10254         working in any way,
10255         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
10256         to && operator,
10257         * device/lib/pic16/startup/crt0i.c,
10258         * device/lib/pic16/startup/crt0iz.c: added global char variable
10259         __uflags to force the generation of an idata section
10260
10261 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
10262
10263         * doc/Makefile,
10264         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
10265         * doc/sdccman.lyx: updated sdcc version to 2.4.4
10266
10267 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10268
10269         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
10270         Frieder) and clarified the default code optimization mode
10271
10272 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10273
10274         * src/SDCC.lex (doPragma, process_pragma),
10275         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
10276         "opt_code_size", and "opt_code_balanced"
10277         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
10278         regrouped options by category, added support for category headers
10279         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
10280         and "--opt-code-size"
10281         * doc/sdccman.lyx: documented these new options and pragmas
10282         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
10283         preference into account
10284
10285 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
10286
10287         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
10288           geniCodePreDec): Fixed bug 904237 by generating a warning
10289         * src/SDCCerr.h,
10290         * src/SDCCerr.c: added warning W_SIZEOF_VOID
10291
10292 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
10293
10294         * src/pic/device.c : When no max ram set validate full memory range.
10295         * src/pic/pcode.c,
10296         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
10297
10298 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
10299
10300         * device/lib/_gptrget.c,
10301         * device/lib/_gptrput.c: updated comment
10302         * device/lib/calloc.c,
10303         * device/lib/free.c,
10304         * device/lib/malloc.c,
10305         * device/lib/realloc.c: added LGPL, made them reentrant-safe
10306         * src/SDCCcse.c (cseBBlock),
10307         * src/SDCCicode.c (printOperand, geniCodeArray),
10308         * src/SDCCicode.h (struct operand): fixed bug 868103
10309         * support/regression/tests/bug-868103.c: added
10310         * src/SDCCast.c (searchLitOp),
10311         * src/SDCCcse.h (struct cseDef),
10312         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
10313         * src/SDCCicode.h (struct operand),
10314         * src/SDCCsymt.h (struct sym_link),
10315         * src/avr/gen.c (hasInc),
10316         * src/ds390/gen.c (hasInc),
10317         * src/hc08/gen.c (genPlusIncr, hasInc),
10318         * src/mcs51/gen.c (hasInc),
10319         * src/pic16/glue.c (pic16_printIvalChar),
10320         * src/pic16/ralloc.c (regWithIdx),
10321         * src/xa51/gen.c (hasInc) : removed warnings
10322         * src/SDCCast.c (createBlock): added comment ???
10323         * src/hc08/ralloc.c: updated comments
10324
10325 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10326
10327         * doc/sdccman.lyx: updated section on switch statements, added
10328         section about semaphore locking
10329         * doc/Makefile: added option -info for latex2html
10330         * device/lib/_gptrget.c,
10331         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
10332
10333 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
10334
10335         * src/pic/device.h,
10336         * src/pic/device.c,
10337         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
10338          maxram is less than 0x100.
10339
10340 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
10341
10342         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
10343
10344 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10345
10346         * src/port.h,
10347         * src/mcs51/main.c,
10348         * src/ds390/main.c,
10349         * src/z80/main.c,
10350         * src/hc08/main.c,
10351         * src/pic/main.c,
10352         * src/pic16/main.c,
10353         * src/avr/main.c,
10354         * src/xa51/main.c
10355         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
10356         a jump table is the best form for a switch statement, including
10357         automatic insertion of missing cases to make the case range
10358         continuous. Developed in collaboration with Frieder Ferlemann.
10359
10360 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10361
10362         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
10363         accumulator result if it needs sign extension
10364
10365 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10366
10367         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
10368
10369 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10370
10371         * device/lib/gbz80/printf.c,
10372         * device/lib/z80/printf.c: removed define for NULL
10373
10374 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10375
10376         * as/xa51/xa_link.c,
10377         * device/examples/ds390/ow390/ad26.c,
10378         * device/examples/ds390/ow390/cnt1d.c,
10379         * device/examples/ds390/ow390/counter.c,
10380         * device/examples/ds390/ow390/ds2480.h,
10381         * device/examples/ds390/ow390/ds2480ut.c,
10382         * device/examples/ds390/ow390/findtype.c,
10383         * device/examples/ds390/ow390/gethumd.c,
10384         * device/examples/ds390/ow390/owllu.c,
10385         * device/examples/ds390/ow390/ownetu.c,
10386         * device/examples/ds390/ow390/swt12.c,
10387         * device/examples/ds390/ow390/swtloop.c,
10388         * device/examples/ds390/ow390/temp.c,
10389         * device/examples/ds390/ow390/temp10.c,
10390         * device/examples/ds390/ow390/thermo21.c,
10391         * device/examples/ds390/ow390/tinilnk.c,
10392         * device/examples/ds390/ow390/tstfind.c,
10393         * device/examples/serialcomm/windows/serial.cpp,
10394         * device/examples/serialcomm/windows/test_serialcomm.cpp,
10395         * device/include/reg51.h: fixed line endings for cvs
10396
10397 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10398
10399         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
10400         packRegsForAccUse, packRegisters): new accumulator register
10401         packing algorithm
10402         * support/regression/ports/hc08/support.c (_putchar): suppress
10403         warning of unused variable
10404         * src/SDCCicode.c: added SWAP entry to codeTable
10405
10406 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
10407
10408         * device/lib/sprintf.c: forgot to add this file before previous commit
10409
10410 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
10411
10412         * src/pic16/gen.c (genPackBits): added operand right in function
10413         parameters, load result directly if p_type is POINTER (that is
10414         called by genNearPointerSet)
10415         * (genUnPackBits): added operand left in function parameters,
10416         * (genNearPointerGet, genNearPointerSet): prevent the loading of
10417         FSR0 if accessing bitfields,
10418
10419 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
10420
10421         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
10422           _print_format; updated printf, sprintf, vsprintf
10423         * device/include/asm/default/features.h: corrected comment/define
10424         * device/lib/Makefile.in: added sprintf.c
10425         * device/lib/libsdcc.lib: added sprintf module
10426         * device/lib/printf_large.c,
10427         * device/lib/vprintf.c,
10428         * device/lib/sprintf.c: totally refactored printf_large and vprintf
10429           into these 3 files
10430         * support/regression/Makefile: changed ALL_PORTS into a usefull default
10431         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
10432         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
10433           hc08 test
10434         * support/regression/tests/zeropad.c: define idata as data for hc08
10435
10436 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10437
10438         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
10439         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
10440         labels are referenced at least once (even if a reference is not found)
10441         * src/hc08/gen.c (emitcode): set isComment flag for comments
10442         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
10443         loads), rules 6a..6b (optimize jumps to return)
10444
10445 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10446
10447         * device/lib/acosf.c (acosf),
10448         * device/lib/asinf.c (asinf),
10449         * device/lib/atanf.c (atanf),
10450         * device/lib/ceilf.c (ceilf),
10451         * device/lib/cosf.c (cosf),
10452         * device/lib/coshf.c (coshf),
10453         * device/lib/cotf.c (cotf),
10454         * device/lib/fabsf.c (fabsf),
10455         * device/lib/floorf.c (floorf),
10456         * device/lib/log10f.c (log10f),
10457         * device/lib/logf.c (logf),
10458         * device/lib/sinf.c (sinf),
10459         * device/lib/sinhf.c (sinhf),
10460         * device/lib/sqrtf.c (sqrtf),
10461         * device/lib/tanf.c (tanf),
10462         * device/lib/tanhf.c (tanhf),
10463         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
10464         replaced all instances of "reentrant" in the library functions
10465         defined in math.h with this macro.
10466         * support/regression/tests/float_trans.c: reenabled test for hc08
10467
10468 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
10469
10470         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
10471         erroneously deleted
10472
10473 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10474
10475         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
10476         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
10477         multi-byte volatile operands are used
10478         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
10479         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
10480         initialization to area GSINIT0 so that it would always precede
10481         any static initializers in GSINIT
10482         * support/regression/tests/zeropad.c: fixed idata define for hc08
10483         * support/regression/tests/bug-927659.c,
10484         * support/regression/tests/float_trans.c: disabled tests for hc08
10485         pending missing library routines
10486         * .version: increased version number to 2.4.4 - hc08 port now passes
10487         regression tests
10488
10489
10490 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
10491
10492         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
10493         * Makefile.common.in,
10494         * as/Makefile,
10495         * as/hc08/Makefile.in,
10496         * as/mcs51/Makefile.in,
10497         * as/z80/Makefile.in,
10498         * debugger/mcs51/Makefile.in,
10499         * device/include/Makefile.in,
10500         * device/lib/Makefile.in,
10501         * doc/Makefile,
10502         * link/Makefile,
10503         * link/z80/Makefile.in,
10504         * packihx/Makefile.in,
10505         * sim/ucsim/main_in.mk,
10506         * sim/ucsim/avr.src/Makefile.in,
10507         * sim/ucsim/doc/Makefile.in,
10508         * sim/ucsim/gui.src/serio.src/Makefile.in,
10509         * sim/ucsim/hc08.src/Makefile.in,
10510         * sim/ucsim/s51.src/Makefile.in,
10511         * sim/ucsim/xa.src/Makefile.in,
10512         * sim/ucsim/z80.src/Makefile.in,
10513         * src/Makefile.in,
10514         * support/cpp2/Makefile.in,
10515         * support/librarian/Makefile,
10516         * support/makebin/Makefile: added DESTDIR to the install path proposed
10517         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
10518         * doc/sdccman.lyx: added DESTDIR documentation
10519
10520 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
10521
10522         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
10523         instruction for interrupt handlers, use fast returns when returning
10524         from high priority interrupts
10525
10526 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10527
10528         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
10529         code generation
10530         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
10531         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
10532         bugs, ported much of Bernhard's code from mcs51
10533         * src/mcs51/gen.c (genSend),
10534         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
10535         than one when calling a reentrant function
10536         * device/lib/_mullong.c: defined an alternate struct layout for big
10537         endian ports (hc08)
10538
10539 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10540
10541         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
10542         test
10543
10544 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10545
10546         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
10547         are sane and complete before asking the port its prefered parameter
10548         passing method (fixes bug #1017633)
10549         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
10550         and _ret3
10551
10552 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10553
10554         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
10555         problem in bitfields >= 8 bits.
10556
10557 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10558
10559         * src/SDCCsymt.c: undid changes that were not meant to be committed
10560
10561 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10562
10563         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
10564
10565 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10566
10567         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
10568           copied and wrong bit got inverted
10569
10570 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10571
10572         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
10573         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
10574         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
10575         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
10576         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
10577         assignments to bitfields at known addresses
10578         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
10579         reads from bitfields at known addresses
10580         * src/hc08/ralloc.c (packRegisters),
10581         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
10582         genhc08Code): optimize pointer get values used as conditionals
10583         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
10584         and branch
10585
10586 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10587
10588         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
10589         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
10590         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
10591         as conditionals
10592
10593 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10594
10595         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
10596
10597 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10598
10599         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
10600         related problems
10601
10602 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
10603
10604         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
10605
10606 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10607
10608         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
10609         mcs51 port
10610
10611 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
10612
10613         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
10614
10615 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10616
10617         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
10618         cases use more compact code.
10619
10620 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
10621
10622         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
10623
10624 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10625
10626         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
10627
10628 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10629
10630         * src/SDCCsymt.h,
10631         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
10632         parameter of changePointer() from symbol* to sym_link*
10633         * src/SDCCast.c (decorateType): call changePointer() for CAST op
10634         * src/SDCCsymt.c (compareType): void* type is castable to other
10635         pointers, but not necesarily an exact match.
10636         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
10637         is no longer blindly treated as an exact match.
10638         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
10639
10640 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
10641
10642         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
10643
10644 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
10645
10646         * src/pic/gen.c,
10647         * src/pic/pcode.c,
10648         * src/pic/ralloc.h,
10649         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
10650
10651 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
10652
10653         * src/pic/device.c,
10654         * src/pic/device.h,
10655         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
10656
10657 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10658
10659         * src/mcs51/gen.c (emitcode): fixed bug #992819
10660
10661 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
10662
10663         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
10664           there's no need to make it worse
10665
10666 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10667
10668         * src/mcs51/ralloc.c (deassignLR),
10669         * src/ds390/ralloc.c (deassignLR),
10670         * src/hc08/ralloc.c (deassignLR),
10671         * src/z80/ralloc.c (deassignLR),
10672         * src/pic/ralloc.c (deassignLR),
10673         * src/pic16/ralloc.c (deassignLR),
10674         * src/avr/ralloc.c (deassignLR),
10675         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
10676         rlivePoint): fixed another part of bug #971834
10677
10678 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10679
10680         * src/z80/main.c: enabled "critical" keyword
10681         * src/z80/mappings.i,
10682         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
10683         functions (fixes bug #979646)
10684         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
10685
10686 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10687
10688         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
10689           such as c:\mydir.
10690
10691 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
10692
10693         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
10694           doesn't disable too much optimizations
10695
10696 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
10697
10698         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
10699
10700 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
10701
10702         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
10703
10704 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
10705
10706         * src/pic/gen.c tidied up tabs
10707         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
10708         * src/pic/main.c tidied up tabs
10709         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
10710         * src/pic/pcoderegs.c tidied up tabs
10711         * src/pic/ralloc.c tidied up tabs
10712
10713 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
10714
10715         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
10716         to S_FIXED for pic16 port and when symbol is not in level 0,
10717         allocate for S_REGISTER storage class and pic16 port, too,
10718         * src/pic16/device.h: prototype for checkSym,
10719         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
10720         * (pic16_assignConfigWordValue): test the value and the mask to
10721         validate that the value is suitable for the configuration word,
10722         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
10723         collect extern declared symbols, don't emit symbol twice, check
10724         first if symbol is in publics set first,
10725         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
10726         * added command line '--fstack' which enables an experimental
10727         feature for stack access, too buggy to be used yet...
10728         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
10729         * (pic16_allocDirReg): when register has storage class S_REGISTER
10730         allocate in pic16_dynAccessRegs,
10731         * device/include/pic16/pic18f????.h: modified configuration word
10732         naming convention, words started as CONFIG0H but should be CONFIG1H
10733
10734 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
10735
10736         * device/include/mcs51reg.h: fixed bug 970993
10737
10738 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
10739
10740         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
10741         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
10742         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
10743         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
10744         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
10745         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
10746           error/warning numbers,
10747           added function setWarningDisabled()
10748         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
10749         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
10750           _memcmp.c _memmove.c calloc.c realloc.c free.c
10751         * support/regression/tests/malloc.c: added tests for new functionality
10752         * support/regression/tests/zeropad.c: added tests for truncated initializers
10753           and initialized char arrays starting with '\x0'
10754         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
10755
10756 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
10757
10758         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
10759
10760 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10761
10762         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
10763         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
10764         peephole 177.e. Thanks to anonymous
10765
10766 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
10767
10768         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
10769         function isn't used in the source but referenced as a
10770         variable initializer then declare it as extern in .asm file
10771
10772 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
10773
10774         * .version: increased version number to 2.4.3
10775
10776         Adding version extension according to ChangeLog CVS revision
10777         * src/Makefile.in (target all): added dependency 'version.h'
10778         * (rule version.h): added rule to create version.h from ChangeLog,
10779         * (rule dep): added dependency version.h,
10780         * src/version.awk: AWK script to create version.h
10781         * src/SDCCdwarf2.c (dwWriteModule),
10782         * src/SDCCglue.c (initialComments),
10783         * src/SDCCmain.c (printVersionInfo): modified to write after
10784         version string the version extension number,
10785         * src/SDCCutil.c: included "version.h"
10786         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
10787         number,
10788         * src/SDCCutil.h: added prototype for getBuildNumber
10789
10790         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
10791         includeDirsSet, too,
10792         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
10793         const char [] is found in function prototype...
10794
10795         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
10796         moving to WREG with source is already in WREG,
10797         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
10798         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
10799         * (aopForSym): stack'ed symbols are partially supported, added
10800         if-clause to support symbols in FARSPACE,
10801         * (sameRegs): added test for AOP_ACC to see if registers are same,
10802         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
10803         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
10804         * (pic16_popRegFromString): will not allocate a new register if it
10805         doesn't find one by name, bug may have introduced...
10806         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
10807         * (genIpush): revived to use pic16 port's stack,
10808         * (genAddrOf): added incomplete case for stack'ed operand,
10809         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
10810         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
10811         can handle multibyte operands,
10812         * src/pic16/glue.c (pic16_printIval*): some debug info added,
10813         * (pic16initialComments): added message for MPLAB compatibility
10814         mode enabled,
10815         * src/pic16/main.h: prototype for pic16_mplab_comp,
10816         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
10817         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
10818         * (_pic16_linkEdit): NEW, handles link stage, transferred here
10819         because of increased complexity of procedure,
10820         * (_process_pragma): stack pragma changed to format 'stack pos len',
10821         emit symbol '_stack_end' to conform with gplink,
10822         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
10823         to search for register,
10824         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
10825         PO_GPR_REGISTER,
10826         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
10827         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
10828         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
10829         case for PO_GPR_REGISTER,
10830         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
10831         dies, the new era is ahead !...
10832         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
10833         pic16_dynInternalRegs,
10834         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
10835         * (pic16_allocDirReg): minor optimizations and bug fixes,
10836         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
10837
10838         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
10839         load stack and frame pointer with address of 'stack_end' symbol
10840
10841 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
10842
10843         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
10844         without source code but only variable initializers
10845
10846 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
10847
10848         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
10849         external are not declared as extern to reduce overhead while linking
10850
10851 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
10852
10853         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
10854
10855 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
10856
10857         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
10858           Yee Keat for the patch
10859         * src/SDCCast.c (decorateType): fixed bug #979599
10860         * src/ds390/gen.h: removed local fReturnSizeDS390
10861         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
10862         * src/ds390/gen.c (genAnd, genOr, genXor),
10863         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
10864
10865 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
10866
10867         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
10868         add relFilesSet to $3, manipulate $2 to handle linking of object
10869         files without source files in command line,
10870         * device/include/pic16 (all headers): added ID location macros,
10871         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
10872         entries for ID location bytes,
10873         * (pic16_assignIdByteValue): NEW,
10874         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
10875         added field dumpcalltree to pic16_options_t,
10876         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
10877         is used instead of pic16_Gstack_base_addr, check if (ifx) before
10878         emitting rFalseIfx label after check_carry label,
10879         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
10880         pic16_emitDIRegs), NEW
10881         * (pic16glue): dump .calltree file when option --calltree found,
10882         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
10883         * (_pic16_genAssemblerPreamble): emit ID locations after
10884         configuration registers,
10885         * (pic16_linkCmd): modifications of the link command,
10886         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
10887         * (pic16_pCodeInitRegisters): don't init stack registers,
10888         * (pic16_findPrevInstruction): fixed bug,
10889         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
10890         bug with immediate registers,
10891         * (buildCallTree): traces stack push and pop,
10892         * (pct2): dump also stack usage for each function,
10893         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
10894         * (pic16_allocDirReg): various modifications,
10895         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
10896         fixed to 1,
10897
10898 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
10899
10900         * src/pic16/pcode.c: removed buggy double colon
10901
10902 2004-07-01 Borut Razem <borut.razem AT siol.net>
10903
10904         * support/scripts/sdcc.nsi: added include/pic16 to setup
10905
10906 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
10907
10908         * device/lib/Makefile.in: fixed bug in target objects-pic16,
10909         * device/lib/pic16/Makefile: prefixed with dash (-) command under
10910         target 'clean',
10911         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
10912         specific command line arguments. Also added sample lkr script
10913         for placing a variable at a specific memory bank.
10914         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
10915         at a specific memory bank,
10916         * (pic16_dump_isection): fixed bug which caused string literals to
10917         be omitted when dumping idata section,
10918         * (pic16_groupRegistersInSection): added code to handle registers
10919         in specific memory banks,
10920         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
10921         public, all references are renamed too,
10922         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
10923         AOP_DPTR2,
10924         * (pic16_storeForReturn): added case to handle when dest is WREG,
10925         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
10926         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
10927         pic16_rel_udata, check to see if that register is marked as being
10928         a member of a specific memory bank,
10929         * (pic16_printIvalCharPtr): added code to add string literals either
10930         to code or the idata sections,
10931         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
10932         also accept the 'udata' pragma,
10933         * src/pic16/main.h: new structure types sectName and sectSym
10934         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
10935         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
10936         * (pic16_findPrevInstruction): fixed, it returned nothing,
10937         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
10938         instruction combinations,
10939         * (pic16_FixRegisterBanking): heavily reorganised,
10940         * (pic16_AnalyzeBanking): if generating banksel directives is
10941         disabled, then don't call FixRegisterBanking at all,
10942         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
10943         completely removed,
10944         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
10945
10946 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
10947
10948         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
10949         Phuah Yee Keat <yk.phuah AT nestac.com>
10950
10951 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
10952
10953         * src/pic16/glue.c (pic16createInterruptVect): function now emits
10954         correctly the IVT even if it is relocated to some other location
10955
10956 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
10957
10958         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
10959         * device/include/pic16/pic18f2220.h: NEW,
10960         * device/lib/pic16/libdev/pic18f2220.c: NEW,
10961         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
10962         * src/pic16/device.c (struct Pics16): added info for 18f2220,
10963         * src/pic16/device.h (struct pic16_options): added ivt_loc and
10964         nodefaultlibs, ivt_loc is the location of the interrupt vector
10965         table, and nodefaultlibs signs that default libraries should not be
10966         linked in link stage,
10967         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
10968         according to --ivt-loc argument,
10969         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
10970         when pragma stack is found,
10971
10972 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10973
10974         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
10975         256 (range check), 257 (do while), 258.a-f (bit banging
10976         f.e. on 3-wire SPI bus)
10977
10978 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10979
10980         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
10981         variables used exclusively within a loop
10982
10983 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
10984
10985         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
10986
10987 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10988
10989         * src/SDCClrange.c (computeClash): fixed bug #971834
10990
10991 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10992
10993         * src/mcs51/gen.c (genCmp): fixed bug #975903
10994         * src/hc08/gen.c (operandsEqu),
10995         * src/ds390/gen.c (operandsEqu),
10996         * src/z80/gen.c (operandsEqu),
10997         * src/pic/gen.c (operandsEqu),
10998         * src/pic16/gen.c (operandsEqu),
10999         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
11000         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
11001
11002 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11003
11004         * src/SDCCcse.c (cseBBlock): fixed bug #966963
11005
11006 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
11007
11008         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
11009         default case in switch statement,
11010         * glue.c (pic16_initPointer): expr is initialised via decoarteType
11011         to eliminate problem with initialisation of pointers, but problem
11012         still exists,
11013         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
11014         * (emitStaticSegment): removed various lines emitting debug info,
11015         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
11016         added processor registers for utilizing EEPROM,
11017         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
11018         configurable and set 8
11019
11020 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
11021
11022         * .version: increased version number to 2.4.2,
11023
11024         Cumulative patch for pic16 port
11025         * src/pic16/device.c: changed scheme to dump initial values for
11026         variables in idata segment, all print_idata* functions were removed,
11027         now the pic16_printIval* will be called,
11028         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
11029         * _pic16_printPointerType, pic16_printPointerType,
11030         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
11031         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
11032         NEW, similar to the respective functions in SDCCglue.c,
11033         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
11034         way, emitting hex bytes,
11035         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
11036
11037 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11038
11039         * src/avr/ralloc.c (serialRegAssign),
11040         * src/xa51/ralloc.c (serialRegAssign),
11041         * src/pic/ralloc.c (serialRegAssign),
11042         * src/pic16/ralloc.c (serialRegAssign),
11043         * src/hc08/ralloc.c (serialRegAssign),
11044         * src/z80/ralloc.c (serialRegAssign),
11045         * src/ds390/ralloc.c (serialRegAssign),
11046         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
11047
11048 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11049
11050         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
11051         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
11052
11053 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
11054
11055         Cumulative patch for pic16 port:
11056         * src/pic16/device.h (typedef PIC16_device) modified fields for
11057         defining microcontrollers,
11058         * src/pic16/device.c: added new info for all devices in Pics16 array,
11059         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
11060         to be optimised out by the pCode optimiser,
11061         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
11062         specially, bug reported by G.M. Gallant,
11063         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
11064         as force'd so that cannot be optimised out by pCode optimiser,
11065         * src/pic16/pcode.c,
11066         * src/pic16/pcodepeeph.c,
11067         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
11068         they are disabled by default, but can be enabled explicit with
11069         command argument --denable-peeps, for testing,
11070         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
11071         --pomit-ivt in COMPILE_FLAGS
11072
11073 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
11074
11075         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
11076           compilation on MSVC
11077
11078 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
11079
11080         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
11081
11082 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11083
11084         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
11085         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
11086
11087 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
11088
11089         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
11090         would only assign 0x300001 register.
11091
11092 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
11093
11094         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
11095         in COMPILE_FLAGS. Thanks to G. Gallant for report.
11096
11097 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11098
11099         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
11100         for ds80c400
11101         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
11102         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
11103         added peephole 254 (left shift), 255 (jump table)
11104
11105 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
11106
11107         * device/lib/Makefile.in: removed comment line with model-pic16,
11108         * (target port-specific-objects-pic16): the libraries and objects
11109         are copied to the build directory form the device/lib/pic16/bin
11110         directory
11111
11112         Cumulative patch concerning pic16 port:
11113         * library directory has been re-organized,
11114         * added support for PIC18F1220,
11115         * added headers and library sources for chips 18f1220,18f6520,
11116         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
11117
11118         * configuration registers setting has changed, now each supported
11119         device has a complete description of the registers it uses,
11120         * all initialisations are moved to idata sections, these section
11121         can be absolute or relocatable,
11122         * fixed initialisation of codespace variables,
11123         * fixed warning about PCLATU and gpsim,
11124         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
11125         * (genAssign): use table reads when assigning from variables in codespace,
11126         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
11127         char/int variables placed in codespace,
11128         * (pic16_emitConfigRegs): NEW, emits a list with configuration
11129         registers set in .asm file, no need for --pomit-config-words anymore,
11130         * (pic16glue): some 8051 legacy segments are commented out
11131         (to be removed completely),
11132         * added support for alternative assembler and linker with --asm=
11133         and --link= command line arguments,
11134         * peepholes are disabled automatically in the port, no need to
11135         specify on command line,
11136         * port supports natively char/int/long multiplication, but converts
11137         all divisions to support functions,
11138         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
11139         to the file set in variable $2,
11140         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
11141         strings in ASCII format and not in hex,
11142         * ralloc.c (serialRegAssign): added a triplet of conditional calls
11143         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
11144         allocate proper register if iCodes aren't temporary,
11145
11146 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
11147
11148         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
11149
11150 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
11151
11152         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
11153         is commented out
11154
11155 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11156
11157         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
11158         computed address is reused
11159         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
11160         multi-byte bitfields
11161
11162 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
11163
11164         * src/z80/gen.c: (genArrayInit): must check for pointers too
11165
11166 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
11167
11168         * support/regression/tests/zeropad.c: never meant to commit the
11169           nestedstruct test: removed, added check for GCC version
11170
11171 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
11172
11173         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
11174         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
11175         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
11176           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
11177           bugs 928906 and 954082 half-empty initializers
11178         * src/SDCCsymt.h,
11179         * src/SDCCsymt.c (getAllocSize): added for above fix
11180         * src/z80/gen.c (genArrayInit): fixed bug 741044
11181         * support/regression/tests/zeropad.c: added tests
11182
11183 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
11184
11185         * src/pic16/device.c (pic16_dump_section): corrected bug which
11186         caused some symbols of the libraries to be misplaced
11187
11188 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
11189
11190         * src/pic16/glue.c,
11191         * src/pic16/ralloc.h,
11192         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
11193         to fix conflict with pic port
11194
11195 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
11196
11197         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
11198         externs configuration variables,
11199         * src/pic16/ralloc.h,
11200         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
11201         prototype in header, commented out some debug messages
11202
11203 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
11204
11205         * src/pic16/glue.c,
11206         * src/pic16/main.c,
11207         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
11208         for gpasm COFF object generation. Thanks to D. Hawkins for
11209         his patch info
11210
11211 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11212
11213         * src/ds390/main.c,
11214         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
11215         Brock for spotting this)
11216         * src/ds390/gen.c (genEndFunction),
11217         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
11218         interrupt handler and critical. Disable push/pop optimizations when
11219         peephole optimizations disabled.
11220
11221 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
11222
11223         Updated pic16 library sources and headers.
11224         * device/lib/pic16/pic18f*/ ,
11225         * device/include/pic16/*.h: modified to handle structured SFR
11226         definitions
11227
11228 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
11229
11230         * src/port.h (PORT structure): added hook initPaths, now each
11231         port can declare its own default search paths,
11232         which can been seen with the --print-search-dirs option,
11233         see pic16 port for example,
11234         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
11235         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
11236         * (doPrintSearchDirs): NEW, replaces in a central manner the
11237         printing of search dirs which was split in set*Paths functions,
11238         * (main): added call to port->initPaths and doPrintSearchDirs,
11239         * src/avr/main.c,
11240         * src/ds390/main.c,
11241         * src/hc08/main.c,
11242         * src/izt/i186.c,
11243         * src/izt/tlcs900h.c,
11244         * src/mcs51/main.c,
11245         * src/pic/main.c,
11246         * src/pic16/main.c: modified port structures to reflect addition of
11247         initPaths hook,
11248
11249         * src/pic16/device.c (regCompare): registers are finally sorted by name,
11250         * (pic16_dump_section): for registers in same address reserve memory once,
11251         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
11252         to no_banksel,
11253         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
11254         result is greater in size than right or left,
11255         * (pic16_genUMult8X8_8): there are some cases where the result can
11256         be 16 bits size, so handle these,
11257         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
11258         * (pic16_outBitC): modified to emit pcodes,
11259         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
11260         or not,
11261         * (genDivOneByte): implemented algorithm to divide 8-bits,
11262         * (genCmp): uncommented goto, but issues still exist,
11263         * (genAnd): fixed a bug with variables >8bits,
11264         * (genPackBits): optimization added that uses BCF/BSF to change a
11265         single bit,
11266         * (genAssign): fixed bug when assigning floating point literals,
11267         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
11268         __sdcc_gsinit_startup label,
11269         * src/pic16/main.c (_pic16_init): removed search directory
11270         initialisations,
11271         * (_pic16_initPaths): NEW, used to initialise search directories,
11272         * (_hasNativeMulFor): support functions for all except char/int
11273         multiplication, and char division,
11274         * (PIC16_port struct): modified entry for native mul support,
11275         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
11276         no_banksel option,
11277         * (buildCallTree): call to register_usage is ifdef'ed out,
11278
11279 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11280
11281         * device/include/string.h: applied Stas Sergeev's patch to make this
11282         header file compatible with the preprocessor -Wundef option
11283         * src/SDCCmain.c (main): abort compilation if preprocessor reports
11284         failure (fixes bug #941458)
11285
11286 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11287
11288         * src/SDCCopt.c (killDeadCode): fixed bug #907733
11289         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
11290         that the variable, not the function, should be static
11291         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
11292         to be consistent with non-literal case
11293
11294 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11295
11296         * src/SDCCast.c (isConformingBody): fixed bug #949967
11297         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
11298         convilong): fixed bug #952086
11299
11300 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11301
11302         * src/SDCCmem.c (allocVariables): fixed bug #955321
11303
11304 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11305
11306         * src/hc08/main.c (_hc08_genAssemblerEnd),
11307         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
11308         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
11309         completely eliminated the use of a temporary file
11310         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
11311         when more than one file linked
11312         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
11313
11314 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11315
11316         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
11317         which fixes bug #543481
11318         * support/regression/tests/bug-751703.c: fixed comments left from a
11319         cut and paste error
11320         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
11321         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
11322         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
11323         scopes
11324         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
11325         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
11326         are now changed to underscores in moduleName
11327
11328 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11329
11330         * as/mcs51/lkmem.c: better fix for bug #954173
11331
11332 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
11333         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11334
11335         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
11336         * device/include/c8051f000.h,
11337         * device/include/c8051f120.h,
11338         * device/include/c8051f300.h,
11339         * device/include/c8051f310.h,
11340         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
11341         PWM16) and detab'ed
11342
11343 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11344
11345         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
11346         and mailing lists, doc'ed --no-peep-comments, removed reference
11347         to knoppix (newest version has no LyX/LaTeX), other minor changes
11348         * src/SDCCglue.c (glue): save 2 bytes stack space with
11349         option --main-return. The ljmp could probably be avoided too
11350
11351 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11352
11353         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
11354
11355 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11356
11357         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
11358         * src/SDCCopt.c (isLocalWithoutDef),
11359         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
11360         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
11361         (credit to Maarten Brock for patch #949363, on which this is based)
11362         * support/regression/tests/bug-751703.c: some test cases of extern used
11363         within inner scopes.
11364
11365 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11366
11367         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
11368         SPEC_STRUCT
11369         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
11370         struct definitions
11371         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
11372         dwWriteLabel): fix to create valid debugger symbols even when
11373         the module name has non-alphanumeric symbols in it
11374         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
11375         when a variable's allocation has been optimized away
11376
11377
11378 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11379
11380         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
11381         * src/hc08/main.c,
11382         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
11383         * src/mcs51/main.c,
11384         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
11385         * src/ds390/main.c,
11386         * src/z80/gen.c (z80_emitDebuggerSymbol),
11387         * src/z80/main.c,
11388         * src/pic/gen.c (pic14_emitDebuggerSymbol),
11389         * src/pic/main.c,
11390         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
11391         * src/pic16/main.c,
11392         * src/avr/gen.c (avr_emitDebuggerSymbol),
11393         * src/avr/main.c,
11394         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
11395         * src/xa51/main.c,
11396         * src/SDCCdebug.c (emitDebuggerSymbol),
11397         * src/SDCCdebug.h,
11398         * src/port.h: added a debugger struct to the port struct. Added a
11399         callback for defining debugger symbols
11400
11401         * src/SDCCast.c (createLabel),
11402         * src/SDCC.y (labeled_statement): mark all compiler generated labels
11403         with isitmp = 1
11404         * src/SDCCicode.h,
11405         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
11406         iCode back to the ast for the function
11407
11408         * src/hc08/ralloc.c (hc08_assignRegisters),
11409         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
11410         unneeded fields from the regs struct.
11411         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
11412         pushReg() & pullReg() functions instead of emitcode()
11413
11414         * src/hc08/gen.c (genLabel, genhc08Code),
11415         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
11416
11417         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
11418         debugger hooks
11419
11420         * src/hc08/gen.c (genEndFunction, genhc08Code),
11421         * src/hc08/gen.h,
11422         * src/mcs51/gen.c (genEndFunction, gen51Code),
11423         * src/mcs51/gen.h,
11424         * src/ds390/gen.c (genEndFunction, gen390Code),
11425         * src/ds390/gen.h,
11426         * src/z80/gen.c (genEndFunction, genZ80Code),
11427         * src/z80/gen.h,
11428         * src/z80/z80.h,
11429         * src/pic/gen.c (genEndFunction, genpic14Code),
11430         * src/pic/gen.h,
11431         * src/pic16/gen.c (genEndFunction, genpic16Code),
11432         * src/pic16/gen.h,
11433         * src/avr/gen.c (genEndFunction, genAVRCode),
11434         * src/avr/gen.h,
11435         * src/xa51/gen.c (genEndFunction, genXA51Code),
11436         * src/xa51/gen.h,
11437         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
11438         specific code to cdbFile.c and out of the backend code generators
11439
11440         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
11441         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
11442         starting address is now 0
11443
11444         * as/hc08/asm.h,
11445         * as/hc08/m08pst.c,
11446         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
11447         assembler directive for DWARF support
11448         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
11449
11450         * src/src.dsp,
11451         * src/Makefile.in,
11452         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
11453
11454 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11455
11456         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
11457         and inappropriate peephole optimization in jump tables
11458
11459 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11460
11461         * as/hc08/m08pst.c,
11462         * src/SDCCglue.c: sdccopt works for the hc08 port now
11463
11464 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
11465
11466         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
11467
11468 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11469
11470         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
11471
11472 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11473
11474         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
11475         rules
11476         * src/SDCCmain.c,
11477         * src/SDCCglobl.h,
11478         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
11479         comments from the peephole optimizer replacement rules
11480         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
11481         symbols
11482         * src/SDCCcse.c (updateSpillLocation),
11483         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
11484         equivalents
11485         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
11486         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
11487         objects far pointers
11488
11489 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11490
11491         * src/SDCCsymt.h: a missing part of my last change
11492         * src/pic/ralloc.c (regTypeNum),
11493         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
11494
11495 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11496
11497         * src/SDCCicode.h,
11498         * src/SDCCicode.c (aggrToPtrDclType),
11499         * src/SDCCptropt.h,
11500         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
11501         ptrPseudoSymConvert),
11502         * src/pic/ralloc.c (regTypeNum),
11503         * src/pic16/ralloc.c (regTypeNum),
11504         * src/hc08/ralloc.c (regTypeNum),
11505         * src/ds390/ralloc.c (regTypeNum),
11506         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
11507         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
11508
11509 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11510
11511         * link/z80/lkmain.c (afile),
11512         * as/hc08/lkmain.c (afile),
11513         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
11514         prevent a pointer problem when a filename has no directory and
11515         no extension specified.
11516
11517 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11518
11519         * link/z80/lkmain.c (afile): allow periods in directory names
11520         * link/z80/lkmain.c (afile),
11521         * as/mcs51/lkmain.c (afile),
11522         * as/hc08/lkmain.c (afile): allow linker script file to have an
11523         extension other than ".lnk"
11524         * link/z80/lklex.c (getfid),
11525         * link/z80/lkmain.c (parse),
11526         * as/mcs51/lklex.c (getfid),
11527         * as/mcs51/lkmain.c (parse),
11528         * as/hc08/lklex.c (getfid),
11529         * as/hc08/lkmain.c (parse): Support comments in the linker script
11530         file on lines by themselves and after filenames
11531
11532 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11533
11534         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
11535
11536 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11537
11538         * src/z80/peeph-z80.def: removed some peephole rules that don't
11539         work with multibyte arithmetic (fixed bug #937126)
11540         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
11541         to registers and not global variables
11542         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
11543         geniCodePreInc, geniCodePostDec, geniCodePreDec,
11544         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
11545         checking for assignments not internally generated (fixed bug #931895)
11546         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
11547         structure member (fixed bug #930072)
11548
11549 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11550
11551         * src/SDCCmain.c (linkEdit),
11552         * src/hc08/main.c (_hc08_parseOptions),
11553         * as/hc08/Makefile.in,
11554         * as/hc08/aslink.h,
11555         * as/hc08/asm.h,
11556         * as/hc08/m08pst.c,
11557         * as/hc08/lkrloc.c (relr, rele),
11558         * as/hc08/lkarea.c (lnkarea)
11559         * as/hc08/lkmain.c (afile, parse),
11560         * as/hc08/lkelf.c: support for ELF output
11561         * as/hc08/lks19.c (s19),
11562         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
11563
11564 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11565
11566         * as/mcs51/lkihx.c: Fixed bug #899105.
11567
11568 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11569
11570         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
11571         .dsp files from Unix to DOS.
11572
11573 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11574
11575         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
11576         function pointers; we have been compliant for several months now.
11577         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
11578         change that was accidently commented out
11579         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
11580         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
11581         bug #922319
11582
11583 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11584
11585         * src/hc08/gen.c: output of all of the internal debugging information
11586         is now controlled by the D() macro; it is disabled by default
11587
11588 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11589
11590         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
11591         harder to keep the same registers during a CAST iCode
11592         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
11593         long via int can be done in a single cast, if the signedness is
11594         correct.
11595         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
11596         putchar() in tinibios.c in ds390's library
11597
11598 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
11599
11600         * src/SDCCast.c (decorateType): fixed bug #898889,
11601         cast result of a literal complement too
11602         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
11603         fixed check for bitfields
11604
11605 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
11606
11607         * src/SDCCicode.c (geniCodeLogic): made it static,
11608         (geniCodeLogicAndOr): added in order to fix bug #905492,
11609         (ast2iCode): fixed bug #905492
11610         * support/regression/tests/bug-905492.c: added
11611         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
11612         (processParms): fixed bug #927659: don't copy parms, this will clear
11613         decorated flag
11614         * support/regression/tests/bug-927659.c: added
11615
11616 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
11617
11618         * src/SDCCast.c (addCast): don't cast float to char
11619         * device/lib/libsdcc.lib: added _memmove
11620
11621 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
11622
11623         * device/lib/large/Makefile: fixed parallel execution by
11624         replacing `make` by `$(MAKE)`
11625
11626 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11627
11628         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
11629         offsets (fixes bug #923936)
11630
11631 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
11632
11633         * device/lib/small/Makefile: fixed parallel execution by
11634         replacing `make` by `$(MAKE)`
11635
11636 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
11637
11638         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
11639
11640 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
11641
11642         * src/pic/gen.c (genCpl): multi-byte complements were not working.
11643         * src/regression/Makefile: Regression test was not running.
11644
11645 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
11646
11647         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
11648         complement if possible
11649         * src/SDCCval.c (valComplement),
11650         * src/SDCCicode.c (operandOperation): fixed complement of literal
11651         * support/regression/tests/onebyte.c (testComplement): added
11652
11653 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
11654
11655         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
11656         return an optimized tree; actually replace actParm with the new tree
11657         * src/SDCCast.h: added some parantheses to remove side effects
11658         * support/regression/tests/bug-920866.c
11659
11660 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
11661         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
11662         Bit operands were not being handled properly in the pic14 port.
11663         (now src/regression/add.c passes again).
11664
11665 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11666
11667         * src/SDCC.y (labeled_statement): case and default no longer require
11668         a following statement (RFE #893037)
11669
11670 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11671
11672         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
11673         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
11674         disabled (fixes bug #916294)
11675         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
11676         "mov a,acc"; patch provided by Lenny Story
11677         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
11678
11679 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11680
11681         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
11682         functions
11683         * src/ds390/gen.c (genFunction, genEndFunction),
11684         * src/ds390/ralloc.c (ds390_assignRegisters),
11685         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
11686         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
11687         pushed if there are parameters passed on the stack. Also, a cleaner
11688         way to decide if r0/r1 should be pushed/popped. (Together they fix
11689         bug #918693)
11690
11691 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11692
11693         * doc/sdccman.lyx,
11694         * device/lib/mcs51/crtpagesfr.asm,
11695         * device/lib/mcs51/crtxinit.asm,
11696         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
11697         to avoid confusion with Si Lab's SFRPAGE register.
11698
11699 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11700
11701         * src/SDCCglue.c (emitMaps): allow public sfr variables
11702         * src/SDCCglue.c (initialComments): include compiler build date
11703         with compiler version and put the timestamp of the generated
11704         assembly file on a serperate line to be less confusing.
11705         * src/port.h: added genInitStartup hook
11706         * src/avr/main.c,
11707         * src/ds390/main.c,
11708         * src/hc08/main.c,
11709         * src/pic/main.c,
11710         * src/pic16/main.c,
11711         * src/xa51/main.c,
11712         * src/z80/main.c: genInitStartup initialize as NULL (default to
11713         historical behaviour)
11714         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
11715         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
11716         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
11717         library instead of hard coding it into the compiler.
11718         * support/regression/ports/mcs51-stack-auto/spec.mk,
11719         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
11720         * device/lib/mcs51/Makefile,
11721         * device/lib/small/Makefile,
11722         * device/lib/large/Makefile,
11723         * device/lib/mcs51/crtpagesfr.asm,
11724         * device/lib/mcs51/crtstart.asm,
11725         * device/lib/mcs51/crtxclear.asm,
11726         * device/lib/mcs51/crtxinit.asm,
11727         * device/lib/mcs51/crtclear.asm,
11728         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
11729         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
11730         and into user configurable files.
11731         * device/lib/clean.mk: clean mcs51 directory too
11732         * support/regression/tests/longlit.c: added static to T1 declaration
11733         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
11734         accesses in the initialization code
11735
11736 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11737
11738         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
11739         OSCTRIMVAL as noted in bug #916008
11740
11741 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11742
11743         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
11744         in loops with multiple exits (reported as incorrect registers
11745         used by Martin Helmling in Sdcc-user list)
11746
11747 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11748
11749         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
11750         made ds390 register extensions look less like error messages
11751
11752 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11753
11754         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
11755         reported by Adam Wozniak in Sdcc-user list
11756
11757 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
11758
11759         * src/SDCCast.c (decorateType): fixed with bug and promotion in
11760         arithmetic optimizations, added debug output
11761
11762 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
11763
11764         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
11765         * sdcc.spec: updated and split sdcc into 3 rpms
11766         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
11767         needed for literals of LEFT_OP and '+'
11768         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
11769         introduced RESULT_TYPE_NOPROM
11770         (geniCodeMultiply): fixed logic for decision if mul is optimized to
11771         left shift
11772         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
11773         limited promotion to int only for '*'
11774         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
11775
11776 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
11777
11778         * src/pic16/gen.c (genSkip),
11779         (genc16bit2lit), (gencjneshort): commented out
11780         (is_LitOp): new helper function, checks operand type
11781         (genCmpEq): rewritten
11782
11783 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
11784
11785         * support/regression/tests/bug-908454.c: added
11786
11787 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
11788
11789         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
11790         * src/SDCCicode.c (usualBinaryConversions): op needs int type
11791         (geniCodeCast): cosmetic, don't preserve bit storage class
11792         (geniCodeLeftShift): added promotion
11793         (geniCodeLogic): fixed regression
11794         * src/SDCCsymt.c (computeTypeOr): accept bits too
11795         (compareType): 2nd part of fix for bug #908454, needed for bitfields
11796
11797 2004-03-07  Borut Razem <borut.razem AT siol.net>
11798
11799         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
11800
11801 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
11802
11803         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
11804         version of pic16_genPackRegisters which does not check if ic is a
11805         CAST operator,
11806         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
11807         function cause string1.c regression test fails
11808
11809 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
11810
11811         * sim/ucsim/configure.in,
11812         * sim/ucsim/configure,
11813         * sim/ucsim/doc/Makefile.in: use docdir
11814         * src/SDCC.y: fixed sbit atrributes
11815         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
11816         * src/SDCCast.c (decorateType): |^& need special promotion handling
11817         * src/SDCCast.h,
11818         * src/SDCCsymt.h: moved definition of RESULT_TYPE
11819         * src/SDCCsymt.h (computeType),
11820         * src/SDCCicode.c: computeType() needs op
11821         * src/SDCCsymt.c (checkTypeSanity),
11822         * doc/sddman.lyx: "plain" bitfields are unsigned
11823         * src/SDCCsymt.c (computeTypeOr): added
11824         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
11825         |^& ops
11826         * src/SDCCval.c (val*): computeType() needs op
11827         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
11828         * support/regression/tests/onebyte.c: added tests for |^&
11829
11830 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
11831
11832         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
11833         for writing icode into asm output.
11834
11835 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
11836
11837         * src/pic16/device.c: added some debug lines enabled
11838         with macro DEBUG_CHECK,
11839         * src/pic16/genarith.c: more debug in genPlus,
11840         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
11841         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
11842         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
11843         * (aopForSym): onStack symbols are re-placed in data memspace,
11844         and onStack flag is cleared,
11845         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
11846         copy temporary pcodeop,
11847         * (genPcall): added warning for not updating PCLATU,
11848         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
11849         always true for pic16 port,
11850         * (genMultOneWord): NEW, supports integer multiplication,
11851         * (genMult): modified to call genMultOneWord,
11852         * (ifxForOp): added warning when return NULL,
11853         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
11854         flag is set before call to operandFromSymbol for implicit
11855         added structures,
11856         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
11857         options.intlong_rent are set by default,
11858         * (_hasNativeMulFor): modified to allow port generation of integer
11859         multiplication,
11860         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
11861         set regtype to REG_SFR for all registers, restricting seting the
11862         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
11863
11864 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11865
11866         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
11867         more than 500 times in the regression tests
11868
11869 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11870
11871         * support/Util/SDCCerr.h,
11872         * support/Util/SDCCerr.c,
11873         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
11874         enumerator_list),
11875         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
11876         for symbol conflicts.
11877         * support/valdiags/tests/enum.c,
11878         * support/valdiags/tests/tentdecl.c,
11879         * support/valdiags/tests/struct.c: expect possible error messages
11880         referring to original symbol definitions.
11881         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
11882         * src/SDCCsymt.h,
11883         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
11884
11885 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
11886
11887         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
11888
11889 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
11890
11891         * src/pic16/ralloc.c (newReg): fixed bug #908929
11892
11893 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11894
11895         * src/ds390/gen.c: added missing #include "main.h"
11896
11897 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
11898
11899         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
11900         checking if symbol is already in set,
11901         * src/pic16/device.h: prototype for checkAddSym,
11902         * src/pic16/gen.c: (_G): added entry interruptvector,
11903         * (assignResultValue): removed some commented out lines,
11904         * (genFunction): check for ISR via sym->type, absolute section for
11905         interrupt code is created via a new pBlock, the goto instruction is
11906         placed now correctly at the interrupt vector position, changed all
11907         references from ivec to _G.interruptvector,
11908         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
11909         is the interrupt is a high priority one, same for return from ISR,
11910         * src/pic16/glue.c: changed all calls of addSetHead for publics and
11911         externs to calls of checkAddSym,
11912         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
11913         pic16_pcode_verbose flag is set,
11914         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
11915         * src/pic16/pcoderegs.c: message about how many registers are saved
11916         will only be emitted if pic16_pcode_verbose flag is set,
11917
11918 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11919
11920         * src/ds390/ralloc.h,
11921         * src/ds390/ralloc.c (ds390_regWithIdx),
11922         * src/ds390/gen.c (emitcode),
11923         * src/ds390/main.h,
11924         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
11925         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
11926         ds390operandCompare, getRegsRead, getRegsWritten,
11927         initializeAsmLineNode): customized instruction size calculation for
11928         ds390, started basis for some register optimizations
11929         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
11930         corresponding assembly output
11931         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
11932         missing push/pop of r0/r1. Optimized push/pops
11933
11934 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11935
11936         * src/mcs51/main.c (instructionSize): fixed ACALL size
11937         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
11938
11939 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
11940
11941         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
11942         the sorting of rlist with NULL elements
11943         * (print_idataType, print_idata): NEW to create idata sections
11944         * src/pic16/device.h: idataSymSet new variable
11945         * src/pic16/gen.c (genFunction): fixed some bugs in string
11946         comparing, improved the absolute section creation for ISRs,
11947         added FSR0L/FSR0H in registers that are saved in an ISR,
11948         * (genInline): fixed the processing of inline snippets,
11949         now they undergo no process by the peephole optimizer
11950         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
11951         are placed in idataSymSet,
11952         * (pic16emitStaticSeg): extern symbols are added in externs,
11953         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
11954         switching when aboslute variables are placed in access bank memory
11955         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
11956         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
11957         commented out with #if,
11958         * (pic16_packRegisters): reintroduce the check for CAST because some
11959         symbols are not correctly handled,
11960         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
11961         pCodeInstruction instead of pCode,
11962         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
11963         pCodeAsmDir definition,
11964         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
11965         directive, then the argument directive is emitted without the leading
11966         tab, hack for inline labels which must be in the first column,
11967         * (compareLabel,pic16_findNextInstruction),
11968         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
11969         * (insertBankSwitch): modified for the new pCodeAsmDir,
11970
11971 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11972         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
11973
11974         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
11975         instance,
11976         * (pushSide): commented out with #if,
11977         * (assignResultValue): fixed some typos in saving
11978         registers,
11979         * (genPcall): FIXED and sync'ed with genCall,
11980         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
11981         * (genNearPointerGet): fixed to handle some more cases,
11982         implementation scheme via table reads,
11983         * (genConstPointerGet): modified to access code memory correct,
11984         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
11985         and improved to handle some cases
11986         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
11987         instead of "RETLW" for init data
11988         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
11989         not IN_DIRSPACE, work around to reduce bank switching when aboslute
11990         variables are placed in access bank memory (<0x80 and >=0xf80),
11991         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
11992         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
11993         TBLWT_POSTDEC,TBLWT_PREINC
11994         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
11995         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
11996         directives
11997         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
11998         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
11999         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
12000         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
12001
12002 2004-02-29  Borut Razem <borut.razem AT siol.net>
12003
12004         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
12005         support/Util/findme.h, support/Util/system.h: enhance binary relative
12006         search for lib and include by using findProgramPath()
12007
12008 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12009
12010         * src/SDCCpeeph.h,
12011         * src/SDCCpeeph.c (pcDistance),
12012         * src/port.h,
12013         * src/mcs51/ralloc.h,
12014         * src/mcs51/ralloc.c (mcs51_regWithIdx),
12015         * src/mcs51/main.h,
12016         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
12017         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
12018         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
12019         size calculation port specific, started basis for some register
12020         optimizations
12021         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
12022         missing push/pop of r0/r1. Optimized push/pops
12023         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
12024         * device/lib/_modsint.c (_modsint),
12025         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
12026         and stack version so regression tests pass
12027
12028 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
12029
12030         * src/Makefile.in (dep): include SLIBOBJS in dependency check
12031         * src/SDCCast.c (decorateType): catch another small optimization
12032         with '?' operator
12033         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
12034         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
12035         modified to finally use computeType() all over SDCC,
12036         see Feature Request #877103
12037         * src/SDCCval.h: cosmetic
12038         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
12039         valCompare(); regression tested in muldiv.c
12040         * support/regression/tests/muldiv.c (testMod): mod sign follows
12041         dividend only
12042
12043 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
12044
12045         * src/SDCCast.c (decorateType): fixed bug #902362
12046         * doc/INSTALL.txt: fixed install instructions for win32
12047
12048 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
12049
12050         * device/include/Makefile.in (install): fixed by replacing spaces
12051         by tabs
12052         * doc/README.txt,
12053         * doc/INSTALL.txt: updated for release
12054         * doc/sdccman.lyx: added warning for --xstack being buggy
12055
12056 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
12057
12058         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
12059         to eliminate build warnings.
12060         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
12061
12062 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
12063            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12064
12065         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
12066         removed -penable-stack, added comment for stack pragma, added
12067         warning for not initializing the stack/frame registers, removed
12068         comment at interrupts section
12069
12070         Stack is made permanent, there is no ability to disable stack usage.
12071         * src/pic16/device.h,
12072         * src/pic16/device.c: removed all references to USE_STACK macro,
12073         * src/pic16/device.c (pic16_dump_section): when no elements in
12074         rlist, free rlist before return,
12075         * (pic16_dump_int_registers): NEW, internal registers are a new set
12076         of general purpose registers reused by each function,
12077         * (checkAddReg): returns 1 if registers is added to set,
12078         * (pic16_groupRegistersInSection): when a registers is of type
12079         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
12080         * src/pic16/device.h: memRange and Assigned Memory are deleted,
12081         SRCASECMP macro is moved here from device.c
12082         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
12083         PO_PCLATU, PO_PRODL, PO_PRODH,
12084         * (pic16_pCodeOpType, genMinus,
12085         changed compares to "a" register, with AOP_ACC,
12086         * (pic16_genPlus): fixed some bugs and indented properly,
12087         * (pic16_addSign): changed size to size+offset in the MOVWF
12088         instruction,
12089         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
12090         multiply 8-bit operand by literal, result is 8-bit,
12091         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
12092         multiply 2 8-bit operand, result is 8-bit,
12093         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
12094         genUMult8X*_16,
12095         * src/pic16/gen.c: changed accUse to contain WREG only,
12096         * (pic16_emitcomment): renamed to pic16_emitpcomment,
12097         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
12098         true, do not use immediate addressing any more unless sym is a
12099         pointer in codespace,
12100         * (aopForRemat): do not use immediate addressing when symbol not in
12101         codespace and when symbol's address is requested,
12102         * (aopOp): for-loop in if(sym->accUse) is modified for the new
12103         accUse size (= 1),
12104         * (aopGet): added case for AOP_ACC and don't return "accumulator
12105         bug" but WREG instead,
12106         * (popGetTempReg): pushes contents of temporary register in stack,
12107         * (popReleaseTempReg): pops contents of temporary register from
12108         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
12109         * (pic16_popGet): separated case AOP_ACC to return register WREG
12110         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
12111         or PO_IMMEDIATE and initializes their instance/offset appropriately,
12112         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
12113         the use of immediate pointers to certain cases only.
12114
12115         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
12116         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
12117         * (assignResultValue, genCall, genRet): modified to use the new
12118         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
12119         genPcall is still broken,
12120         * (genFunction): added code to create 'A' type pBlocks when
12121         interrupt functions are generated, code not extensively tested yet,
12122         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
12123         * (genEndFunction): modified so ISRs pop stored registers from stack,
12124         * (genMultOneByte): cleanup,
12125         * (AccRsh): added flag andmask, to and result with appropriate mask,
12126         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
12127         * (genDataPointerGet): fixed and reenabled its use,
12128         * (genNearDataPointerGet): bugs fixed,
12129         * (genDataPointerSet): bugs fixed,
12130         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
12131         pic16_DumpSymbol, pic16_DumpOp,
12132         * src/pic16/genutils.h: function prototypes for the above functions,
12133         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
12134         pointers,
12135         * (pic16emitRegularMap): many many many improvements, but needs a
12136         major cleanup,
12137         * src/pic16/main.c: enable_stack in pic16_options is removed,
12138         * (_pic16_parseOptions): removed command line options -penable-stack,
12139         * (_process_pragma): emit stack symbol only when stack pragma is
12140         processed,
12141         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
12142         redirected to FSR0L/FSR0H pair,
12143         * (pic16_get_op, pic16_get_op2): modifications and improvements,
12144         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
12145         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
12146         for immediates,
12147         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
12148         * (dumpPicOptype): NEW,
12149         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
12150         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
12151         with movff instruction,
12152         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
12153         added pic16_int_regs, some packRegsFor* functions are commented out,
12154         because produce errors,
12155         * src/pic16/NOTES: minor modifications
12156
12157 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12158
12159         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
12160         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
12161         --pack-iram.
12162         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
12163         * as/mcs51/lkaomf51.c: fixed bug #895763
12164
12165 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
12166
12167         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
12168
12169 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12170
12171         * doc/sdccman.lyx: added details about the HC08 storage classes and
12172         interrupts, fixed the register usage info for z80 & gbz80
12173
12174 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
12175
12176         * doc/sdccman.lyx: added more pic16 port documentation
12177         * device/include/pic16/: added header pic18fregs.h
12178
12179 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
12180
12181         * doc/sdccman.lyx: added Vangelis' contribution
12182
12183 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12184
12185         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
12186         extend to the next CALL or PCALL, not just to the next CALL.
12187
12188 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
12189
12190         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
12191
12192 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12193
12194         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
12195         bug #895752 and a better fix for bug #716790
12196
12197 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12198
12199         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
12200
12201 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12202
12203         * doc/sdccman.lyx: minor changes, minor changed
12204
12205 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
12206
12207         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
12208         which can't handle SDCC_NEWONEBYTEOPS,
12209         (geniCodeMultiply): removed conversion from mult to shift for pic14
12210         and pic16
12211
12212 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12213
12214         * src/hc08/gen.h,
12215         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
12216         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
12217         thus fixing bug #895406
12218
12219 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
12220
12221         * device/lib/_modsint.c,
12222         * device/lib/_modslong.c: sign follows divisor only
12223         * src/hc08/gen.c (genMultOneByte): if result size is 1,
12224         signs or signedness can be ignored
12225         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
12226         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
12227         added optimization for IFX,
12228         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
12229         arguments;
12230         reenabled optimization for IFX, which was removed on 2004-01-11
12231         * src/SDCCast.h: added return type IFX
12232         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
12233         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
12234         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
12235         SDCC_OLDONEBYTEOPS selects the old behaviour
12236         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
12237         changed again and commented promotion rule
12238         * src/SDCCval.c (valDiv): promotion no longer necessary
12239         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
12240         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
12241         rewritten
12242         * support/regression/tests/onebyte.c: added
12243
12244 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
12245
12246         * gen.c (genInline): reverted to old code for assemnling inline
12247         code because of bug reported James Chadd
12248
12249 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
12250
12251         * ralloc.h: missing declarations from previous patch,
12252         seems that patch for ralloc.h was never applied, fixed
12253
12254 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12255            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
12256
12257         * pcode.c,
12258         * pcode.h,
12259         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
12260         indirect addressing. Marked FSR0 as deprecated
12261         * gen.c (pointerCode): commented out, not needed now
12262         (pic16_popGet2p): new MOVFF helper function
12263         (genGenPointerGet),
12264         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
12265         (shiftRLong): removed duplicate debugging info
12266
12267 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12268
12269         * src/ds390/gen.c (genNearPointerGet),
12270         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
12271         optimization with bits, but not bitfields.
12272         * src/ds390/ralloc.c (packRegisters),
12273         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
12274
12275 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
12276
12277         * src/SDCCcse.c (algebraicOpts): copy operands before modification
12278
12279 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12280
12281         * src/SDCCsymt.h,
12282         * src/SDCCicode.c (operandFromSymbol),
12283         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
12284         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
12285         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
12286         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
12287         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
12288         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
12289         bug #892038
12290         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
12291         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
12292         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
12293         * src/SDCCsymt.c (newSymbol),
12294         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
12295         enumerator_list),
12296         * src/SDCCval.h,
12297         * src/SDCCval.c (newiList): fixed bug #885705
12298
12299 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12300
12301         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
12302         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
12303
12304 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12305
12306         * device/include/c8051f120.h,
12307         * device/include/c8051f300.h,
12308         * device/include/c8051f310.h: added/updated header files for Silicon
12309         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
12310         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
12311         in new section Submitting patches
12312
12313 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12314
12315         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
12316         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12317         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12318         genGenPointerSet),
12319         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
12320         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12321         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12322         genGenPointerSet),
12323         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
12324         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12325         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12326         genGenPointerSet),
12327         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
12328         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12329         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12330         genGenPointerSet): fixed bug #892400
12331         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
12332         to eliminate build warnings.
12333         * src/SDCCast.c (processParms),
12334         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
12335         fixed bug 751859
12336         * support/valdiag/valdiag.py: added GCC to the list of defines active
12337         when compiling with gcc
12338
12339 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12340
12341         * support/Util/SDCCerr.h,
12342         * support/Util/SDCCerr.c,
12343         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
12344         with an incomplete type (fixed bug #883734)
12345         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
12346
12347 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12348
12349         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
12350
12351 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12352
12353         * src/SDCCast.c (decorateType),
12354         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
12355         function pointer implementation
12356         * support/regression/tests/funptrs.c: added tests to verify both forms
12357         of function pointers work correctly. Added tests to verify parameters
12358         are passed in the correct order.
12359
12360 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
12361
12362         * device.c (regCompare): registers are sorted by ascending
12363         address and increasing size,
12364         * main.c (_pic16_finaliseOptions): removed the declaration
12365         of compiler macro MCU. Now a macro of the format pic18fxxxx
12366         will be defined from the command line
12367
12368 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12369             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
12370
12371         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
12372         PCOP_RLCF was overwritten!
12373         * gen.c (genSkip): commented out calls to pic16_emitcode,
12374         * (genCmpEQ): fixed "long" compares, only high word did get compared,
12375         * (genlshTwo),
12376         * (genRRC): added debugging info,
12377         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
12378         overwritten while shifting,
12379         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
12380         overwritten while shifting,
12381         * (AccLsh),
12382         * (AccRsh),
12383         * (shiftLLeftOrResult),
12384         * (shiftRLeftOrResult),
12385         * (shiftRLong),
12386         * (shiftLLong): Implemented with pic16_emitpcode
12387         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
12388         * (genLeftShift): Fixed bug, operand for shift by variable always
12389         was "and"ed with 0x0f,
12390         * (genLeftShiftLiteral),
12391         * (genrshTwo),
12392         * (genRightShiftLiteral): added debugging info,
12393         * (genrshFour): added comment,
12394         * (genRightShift): determined signedness from operand "left"
12395         instead of "result"
12396
12397 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12398
12399         * src/SDCCicode.c (geniCodeParms),
12400         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
12401         function pointers, fixed function pointer bugs #861242 and #861896
12402
12403 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12404
12405         * device/include/c8051f000.h,
12406         * device/include/c8051f120.h,
12407         * device/include/c8051f300.h: added header files for Silicon
12408         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
12409
12410 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
12411
12412         * src/SDCCast.c (processParams): added new type flow and restructured
12413         (gatherAutoInit): added new type flow
12414         (addCast): cosmetic changes
12415         (getLeftResultType): added new type flow for array indices, patch
12416         provided by Stas, see FR #877103
12417         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
12418         array index patch by Stas
12419         * src/SDCCast.h: added prototype getResultTypeFromType()
12420         * src/SDCCval.h,
12421         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
12422         * src/pic/glue.c (pic14emitStaticSeg),
12423         * src/pic16/glue.c (pic16emitStaticSeg),
12424         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
12425         for initialization of symbols
12426         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
12427         * support/Util/SDCCerr.h:
12428         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
12429         * .version: bumped version number to 2.3.8
12430         * device/include/Makefile.in (install),
12431         * doc/Makefile (install): changed to 'rm `find ...`' construct to
12432         avoid warnings
12433
12434 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
12435
12436         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
12437         Slade Rich fixed an optimization bug
12438         * src/pic/pcodepeep.c,
12439         * src/pic/pcoderegs.c
12440         * doc/Makefile (install): added test for directory
12441
12442 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12443
12444         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
12445         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
12446         * src/pic/ralloc.c (getRegPtr, getRegGpr),
12447         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
12448         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
12449         * as/mcs51/asexpr.c (term),
12450         * as/hc08/asexpr.c (term): fixed bug #887146
12451
12452 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12453
12454         * src/z80/gen.c (genMult): handle single byte result product
12455         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
12456         DUMMY_READ_VOLATILE (fixed bug #886367)
12457
12458 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
12459
12460         * support/regression/tests/libmullong.c: fixed logic, on little endian
12461         hosts we ended without a mullong_wrapper()
12462
12463 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12464
12465         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
12466         virus/worm forged address usage.
12467
12468 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
12469
12470         Fixed promotion, it should be done on AST level:
12471         * src/SDCCast.c (addCast): added promotion to int
12472         (decorateType): updated call to upCast()
12473         * src/SDCCicode.c (geniCodeLeftShift): removed call to
12474         usualUnaryConversions()
12475
12476 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
12477
12478         * support/regression/tests/literalop.c (mulWrapper): Added a
12479         wrapper to remove integer overflow warnings.
12480
12481         * support/regression/tests/float_trans.c: Made work on host.
12482
12483         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
12484         location of sz80.
12485
12486         * support/regression/generate-cases.py (main): Changed from inline
12487         to a main method.
12488
12489         * doc/Makefile (install): Changed to depth first to get rid of
12490         missing directory install warning.
12491
12492         * as/Makefile (install-doc): Made work on Mac.
12493
12494 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
12495
12496         * src/SDCCast.c: added an additional type flow in decorateType() of
12497         opposite direction, see feature request #860006; it's enabled at runtime
12498         by setting the environment variable SDCC_NEWTYPEFLOW
12499         * src/SDCCast.h: changed prototype of decorateType()
12500         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
12501         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
12502         'char' to 'int' can be omitted, if both operands are 'unsigned char';
12503         see feature request #877103
12504         * src/SDCCval.c: updated call of decorateType()
12505         (valBitwise): fixed bug #882876
12506         (valMinus): added promotion
12507         (valLogicAndOr): result is unsigned
12508         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
12509         * src/SDCCsymt.c (computeType),
12510         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
12511         must not cause an unsigned operation
12512         * src/pic/glue (pic14emitRegularMap),
12513         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
12514
12515 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
12516
12517         * src/pic/pcode.c (PCodeID): commented out left over debug code
12518
12519 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
12520
12521         * support/valdiag/tests/overflow.c: added shift tests
12522         * src/pic/device.c,
12523         * src/pic/gen.c,
12524         * src/pic/gen.h,
12525         * src/pic/glue.c,
12526         * src/pic/main.c,
12527         * src/pic/pcode.c,
12528         * src/pic/pcode.h,
12529         * src/pic/pcodepeep.c,
12530         * src/pic/pcoderegs.c,
12531         * src/pic/ralloc.c,
12532         * src/pic/ralloc.h: applied patch from Slade Rich;
12533         added support for multiple code pages and multiple RAM banks on the
12534         PIC 14 port. The ASM files now no longer simply assume all the
12535         code / RAM are in the same page / bank. This means the linker can
12536         safely allocate code/RAM of separate ASM files to different pages/banks.
12537         * doc/sdccman.lyx: added Slade's tips
12538         * src/mcs51/peeph.def: fixed bug #880768
12539
12540 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12541
12542         * src/hc08/ralloc.c (rematStr): fixed bug #879282
12543         * src/SDCCast.c (decorateType): fixed bug #880197
12544
12545 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
12546
12547         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
12548         getopt.h.
12549
12550         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
12551         strtof is not part of C89 and isn't included with Mac OS X.
12552
12553 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12554
12555         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
12556         shiftL2Left2Result): fixed bug #879326
12557         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
12558         (genMultOneByte): fixed bug in signed vs unsigned multiplication
12559         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
12560         address fetch for clr instruction
12561         * device/lib/hc08/_mulint.c: created optimized assembly version
12562         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
12563
12564 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
12565
12566         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
12567         proposed in FR #877103
12568
12569 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
12570
12571         * src/SDCCval.c (cheapestVal): added missing checks
12572         * src/SDCCicode.c (usualBinaryConversions): fixed condition
12573         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
12574
12575 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
12576
12577         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
12578         equal operands
12579
12580 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
12581
12582         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
12583         loaded with the linker search paths (-L arguments) and the libraries
12584         to be linked with the current source (-l arguments). Changes
12585         currently will affect only the pic16 port.
12586         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
12587         include path the port specific paths and port specific libraries,
12588         * gplink command now contains the $3 argument,
12589         * src/pic16/device.h,
12590         * src/pic16/device.c,: structure PIC_device is made public and
12591         renamed to PIC16_device, the same for variable Pics which is renamed
12592         to Pics16. Updated all references to them.
12593         * src/pic16/glue.c (pic16glue): corrected bug with code
12594         initialization which bypassed the variable initializations block.
12595
12596         * device/lib/pic16/Makefile.rules: removed --penable-stack from
12597         COMPILE_FLAGS and added the --nostdinc option
12598
12599 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12600
12601         * device/include/mc68hc908jb8.h: Register defs for another member
12602         of the hc08 family. Contributed by Bjorn Bringert - thanks!
12603
12604 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
12605
12606         Documenting changes from previous commits.
12607         * configure.in (version 1.56),
12608         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
12609         when generating output files to configure the pic16 library,
12610         but now I've commented it out, since gputils aren't installed in the
12611         SF compile farm, so library won't compile
12612
12613         * device/lib/Makefile.in (version 1.56): initially I've added in
12614         target 'all' the prerequestive 'model-pic16' so it compiled the
12615         pic16 library, but now I've commented it out for the same reasons
12616         above,
12617         * added targets 'model-pic16' and 'objects-pic16' to compile the
12618         library
12619         * added target 'port-specific-objects-pic16' to handle the
12620         generated libraries and copy them into the build/ directory
12621         * added target 'clean-intermediate-pic16' to clean intermediate
12622         files into pic16 directory
12623         * in target 'installdirs' added line to create directory pic16 in
12624         the installation path
12625
12626         * device/include/Makefile.in (version 1.11): in target 'install'
12627         added lines to copy all header files to installation path,
12628         * in target 'installdirs' added line create directory for pic16
12629         headers in the installation path
12630
12631 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
12632
12633         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
12634          a function call
12635
12636 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
12637
12638         * configure,
12639         * device/lib/configure.in,
12640         * device/lib/configure: fixed for autoconf 2.57
12641
12642 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12643
12644         * src/z80/main.c (_parseOptions): fixed the portmode= command line
12645         option so that it actually works. Made it specific to the z80, since
12646         the gbz80 doesn't have these kinds of I/O ports.
12647
12648 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12649
12650         * device/include/z180.h,
12651         * device/lib/_memcpy.c,
12652         * device/lib/_memmove.c,
12653         * device/lib/_mulint.c,
12654         * device/lib/ser_ir.c,
12655         * device/lib/ser_ir_cts_rts.c,
12656         * device/lib/_strcmp.c,
12657         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
12658         * src/z80/main.c (_process_pragma): add support for pragmas bank and
12659         portmode; added deprecation warning for bank= and protmode= forms.
12660         Also, guard against buffer overflow.
12661         * src/z80/gen.c (aopGet): generate better code for sfr banked read
12662
12663 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12664
12665         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
12666         changed interrupt vector table generation to only emit declared vectors.
12667         * device/include/Makefile.in: added missing backslash
12668         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
12669
12670 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
12671
12672         Mainly changes to support compilation of the device libraries
12673         * src/pic16/device.c: stack is allocated via symbol and not
12674         via literal number. The symbol is placed in the corresponding
12675         position of the data ram
12676         * (pic16_dump_section): relocatable and absolute uninitialized
12677         data are now emitted in sorted order to reduce section naming,
12678         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
12679         weren't marked as being in the access bank,
12680
12681 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
12682
12683         Added portion of GNU PIC Library under the directory
12684         device/include/pic16 and device/lib/pic16. These files
12685         contain the declarations of SFRs for the PIC18Fxx2 devices.
12686         The directory is initialized via configure from toplevel.
12687
12688 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
12689
12690         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
12691         the spilllocations to be compared correctly
12692
12693 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
12694
12695         * src/SDCCast.c (decorateType): fixed bug introduced today
12696
12697 2004-01-12  Borut Razem <borut.razem AT siol.net>
12698
12699         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
12700         doc/sdccman.lyx: upper case pragmas are deprecated
12701
12702 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
12703
12704         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
12705         in simpler and even better code
12706
12707 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
12708
12709         * src/SDCCicode.c (operandOperation): fixed bug #874819
12710         * src/SDCCast.c (decorateType): fixed
12711         char foo (unsigned long ul) { return ul > 0; }
12712
12713 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12714
12715         * doc/sdccman.lyx: Moved and added some sections, small changes
12716         all over. Telling LaTeX to be less strict with word spacing
12717         to better keep the right margin. Changed some notes about
12718         maintainance of the ports in section 3.2.1 - is it OK like this?
12719
12720 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
12721
12722         SDCC source changes:
12723         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
12724         convilong): modified to inform the pic16 port that builtin functions
12725         are external
12726
12727         PIC16 PORT specific changes:
12728         * src/pic16/device.c pic16_dump_equates() added,
12729         processor registers declared internally by the port are emitted in
12730         the translation as equates,
12731         * src/pic16/gen.c: inline code is passed unprocessed to the
12732         translation,
12733         * (pic16_popGetLit2): fnuction modified to take second operand as
12734         pCodeOp pointer and not as literal,
12735         * (popRegFromIdx): prefixed with pic16_,
12736         * (pic16_popCombine2): modified to receive already allocated pCode
12737         operands,
12738         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
12739         * (genFunction): initializes local stack frame and pushes on stack
12740         all the registers used by this function,
12741         * (genEndFunction): restores all registers from stack and restores
12742         stack frame,
12743         * src/pic16/glue.c (pic16emitRegularMap): various changes and
12744         improvements,
12745         * (pic16glue): changed the program startup sequence,
12746         * added new dbName code 'A' for functions placed in absolute section
12747         * src/pic16/main.c: added function attribute _naked,
12748         * added pragma 'code' to place a fnuction at an absolute address,
12749         * added command line arguments --debug-ralloc and --pcode-verbose,
12750         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
12751         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
12752         * (pic16_newpCodeOpLit2): modified to take the second operand as
12753         pCodeOp pointer,
12754         * (pic16_printpBlock): modified to emit each function in a separate
12755         section,
12756         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
12757         UPPER for immediate operands,
12758         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
12759         instruction,
12760         * src/pic16/peeph.def: all peepholes with movff are commented out,
12761         because there is a problem in the pcode peep optimizer,
12762         * src/pic16/ralloc.c: the register allocator can now reuse local
12763         function symbols for another function. This saves register usage.
12764         * src/pic16/ralloc.h: added flag isLocal in structure regs,
12765
12766         Added file src/pic16/NOTES with information about program writing on
12767         the current port version.
12768
12769 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12770
12771         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
12772         and peephole 252 (array access)
12773
12774 2004-01-09  Borut Razem <borut.razem AT siol.net>
12775
12776         * src/SDCCmain.c : fixed #872250: -l command line defined library
12777           files are scanned before standard library files
12778
12779 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12780
12781         * src/SDCCast.c (decorateType): fixed bug #874046
12782
12783 2004-01-09  Borut Razem <borut.razem AT siol.net>
12784
12785         * support/scripts/sdcc.nsi: remove previous installation
12786
12787 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12788
12789         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
12790         bytes for last interrupt vector (mcs51)
12791         * sdcc.spec: fixed typo
12792
12793 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12794
12795         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
12796         gen51Code): more efficient parameter receive for --model-large
12797         ("bug" #845294)
12798
12799 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12800
12801         * src/ds390/main.c,
12802         * src/z80/main.c: added missed needLinkerScript flags (more than
12803         one port structure defined in these file)
12804         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
12805         bug #795325
12806
12807 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
12808
12809         * src/SDCCmain.c: removed various references to DEFAULT_PORT
12810         * src/port.h: added flag needLinkerScript in port->linker
12811         structure to inform whether to create a .lnk file or not,
12812         * src/avr/main.c,
12813         * src/ds390/main.c,
12814         * src/hc08/main.c,
12815         * src/mcs51/main.c,
12816         * src/pic/main.c,
12817         * src/pic16/main.c,
12818         * src/xa51/main.c,
12819         * src/z80/main.c: changed appropriately to configure
12820         needLinkerScript flag
12821         * src/pic/gen.c,
12822         * src/pic16/gen.c (genAddrOf): fixed bug #863624
12823         * src/pic/glue.c: added variable udata_section_name to
12824         override default uninitialized data segment definition for
12825         devices only with SHAREBANK memory (reported from Erik Epetrich)
12826         * (pic14emitOverlay): modified to emit a commented overlay segment
12827         directive when no overlay data exist
12828         * (picglue): modified to emit uninitialized data segment
12829         according to udata_section_name
12830         * src/pic/main.c (_pic14_parseOptions): added command line
12831         options --udata-section-name=[name] to override default
12832         udata definition name
12833         * modified _linkCmd and _asmCmd to include compiler passed
12834         arguments via -W option
12835         * src/pic16/main.c: added $l in _asmCmd, changed extension for
12836         object file from '.rel' to '.o' in port->linker structure,
12837         changed size of fptr from 2 to 3 in port structure
12838
12839 2004-01-07  Borut Razem <borut.razem AT siol.net>
12840
12841         * support/scripts/sdcc.nsi: update PATH
12842         * support/scripts/sdcc.ico: craeted
12843
12844 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
12845
12846         * device/include/Makefile.in: fix install
12847         * doc/Makefile: fix install
12848
12849 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12850
12851         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
12852         in bug #860505
12853         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
12854         how the function variable allocation summary is displayed; also
12855         include information about variables allocated to the overlay
12856         segment
12857
12858 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12859
12860         * as/mcs51/lkmain.c: Help about -Y option
12861         * as/mcs51/lkarea.c: Fixed gcc warnings
12862
12863 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
12864
12865         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
12866         fixed warning
12867         * support/valdiag/tests/overflow.c: added
12868         * src/SDCCast.c (decorateType),
12869         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
12870         LEFT_OP (left shift)
12871
12872 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12873
12874         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
12875         (default behaviour).
12876
12877 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12878
12879         A python script to validate compiler diagnostic messages. It can be
12880         used to verify that sdcc complains about bad c source code and
12881         gives a good location of the error.
12882         * support/valdiag/Makefile,
12883         * support/valdiag/valdiag.py,
12884         * support/valdiag/tests/*
12885
12886 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12887
12888         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
12889         * src/SDCCsymt.c (newEnumType),
12890         * src/SDCCsymt.h
12891         * support/Util/SDCCerr.c,
12892         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
12893         enum related bugs.
12894         * support/regression/tests/enum.c: added test for enum values that
12895         require at least 2 bytes of storage.
12896
12897 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
12898
12899         * src/common.h: added ifndef/define/endif macros
12900         around the header file.
12901         Bug reported from Jesus Calvino-Fraga
12902
12903 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
12904
12905         * sdcc.spec: updated
12906         * device/include/Makefile.in: don't install CVS directories
12907         * device/lib/Makefile.in: added removal of CVS directories after install
12908         * doc/Makefile: fixed install, added local_icons
12909         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
12910         * src/mcs51/gen.c (genRightShift): fixed bug #870788
12911         * src/ds390/gen.c (genRightShift): fixed bug #870788
12912         * src/SDCCast.c (decorateType): fixed bug #870781
12913
12914 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
12915
12916         PIC16 port related changes:
12917         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
12918         added variable stackPos,
12919
12920         * gen.c: genCall, assignResultValue: added support for
12921         pushing/retrieving function parameters to/from stack,
12922         genFunction,genEndFunction: setup stack frame for the
12923         generated function,
12924         genAddrOf: will be changed according to bug 863624
12925
12926         * added files genutils.c and genutils.h which contain gen*
12927         debugged and optimised functions extracted from gen.c
12928
12929         * glue.c: added variable 'externs' which holds extern symbols,
12930         pic16emitRegularMap: is modified to properly handle relocatable
12931          symbols under the new scheme,
12932         pic16createInterruptVect: is modified
12933         pic16printPublics: is modified to emit 'global' assembler directives,
12934         added pic16_printExterns to print extern symbols,
12935         pic16glue: initializes stack/frame pointer in the beginning of
12936         the assembly output. Temporary hack, will be corrected later,
12937         because gplink yet does not support stack and SDCC does not
12938         yet support a type of crt0.o object to create the final binary.
12939
12940         * Removed many lines that contain 8051 legacy code.
12941         * The code is finally placed under a 'code' directive.
12942         * Added port specific options.
12943
12944         * _process_pragma: simplified since now we do not need *special*
12945         include file to define SFR registers. But a separate header
12946         will be needed. This will be developed later.
12947         * _pic16_parseOptions: added, parses port specific options:
12948         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
12949         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
12950         --preplace-udata-with=
12951
12952         * _pic16_setDefaultOptions: modified to initialize section names,
12953         but hack is temporarly out of order since it needs improvement.
12954         * _pic16_genAssemblerPreamble: configuration words are emitted by
12955         their address instead of their name. This part is incomplete and
12956         supports only the 18Fxx2 devices. Other devices will emit an error
12957         during assembly since they do not contain the same set of config
12958         registers
12959         * _pic16_genIVT: is modified,
12960
12961         * pcode.c: added definitions for some hardware registers that are needed
12962         for stack support
12963         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
12964         All PCI entries are updated. Now LFSR is supported.
12965         * Removed pic16_pciTRIS is mentioned by mdubuc in source
12966         * added pic16_newpCodeOpLit2 to support instructions with
12967         two literal arguments
12968         * pic16_pCode2str: corrected code that emits assembler instructions
12969         with two literal operands and those that have an access bit modifier
12970         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
12971         this fixes a bug which caused some labels to be lost, when an
12972         assembler directive was added, i.e. banksel,
12973         * pic16_FixRegisterBanking: improved logic that causes the insertion
12974         of bank switching,
12975         * InlineFunction: functions that are called once, are not any more
12976         inlined. This can be a port option in the future,
12977
12978         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
12979
12980         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
12981         hold the corresponding uninitialized symbols,
12982         * pic16_allocProcessorRegister: registers have explicit marked the
12983         accessBank field,
12984         * pic16_allocInternalRegister: registers are explicit marked as
12985         not used,
12986         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
12987         processing list, so bit registers were lost,
12988         *
12989
12990         * ralloc.h: added field 'accessBank' and original symbol operand
12991         in register definition,
12992         * removed the field isMapped from register definition,
12993
12994         ** Several functions have been removed from various sources:
12995         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
12996         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
12997         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
12998         pic16_assignRelocatableRegisters
12999
13000         ** others have been introduced:
13001         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
13002         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
13003
13004 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
13005
13006         * support/scripts/inc2h.pl: changed definition of BIT_AT
13007         to emit 'sbit at' instead of 'bit at'. This was a request.
13008
13009         PIC16 port related preliminary changes:
13010         * gen.c: prefixed function popRegFromString with
13011         pic16_ and all references to it corrected
13012         * pcode.c: all pic16_pc_* hardware registers prefixed
13013         with underscore (_),
13014         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
13015         * ralloc.c: newReg(): when register is REG_SFR then
13016         set address to rIdx,
13017         pic16_allocProcessorRegister(): marks register wasUsed=0
13018         pic16_writeUsedRegs(): added a call to assign processor
13019         registers via pic16_assignFixedRegisters
13020
13021 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13022
13023         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
13024         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
13025         variables in unused register banks.  Also the SSEG is placed
13026         wherever there is enough space for it, and IDATA can be anywhere
13027         in internal RAM.  For now compile using -Wl-Y[stack_size].
13028         The mem file is different for this option as well, since it
13029         makes no sense of talking about DSEG lenght.
13030
13031 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
13032
13033         * src/SDCClrange.c: fixed bug 869095 that caused segfault
13034         in certain cases, e.g. when ROM assignment, patch provided
13035         from Albert den Haan.
13036
13037 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
13038
13039         Many signedness and type propagation fixes:
13040         * src/SDCCicode.c: made geniCodeCast() static
13041         replaced SPEC_ by IS_ (cosmetic)
13042         (operandOperation): fixed div and mod operation
13043         (usualBinaryConversions): added support for promotion of char
13044         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
13045         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
13046         (geniCodeAdd): an array index will stay unsigned, even if promoted
13047         from char to int
13048         (geniCodeArray): ditto
13049         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
13050         * src/SDCCsymt.c (computeType): added more support for char;
13051         promotion of char is selectable by promoteCharToInt, fixed signedness
13052         for all cases
13053         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
13054         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
13055         * src/SDCCval (val*): replaced signedness calculation by
13056         computeType()
13057         rearranged if-branches (cosmetic)
13058         (valShift): added warning W_SHIFT_CHANGED
13059         (valCompare): fixed problem with different types
13060         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
13061         * support/regression/tests/literalop.c: added many cases
13062         * support/regression/tests/ast_constant_folding.c: changed finally to
13063         'unsigned int'
13064         * .version: new year, new version: 2.3.7
13065         * src/SDCCmain.c (main): applied patch #866468
13066         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
13067         provided by Scott Bronson
13068         * doc/sdccman.lyx: updated documentation for sdcdb
13069         updated and added chapter tips
13070
13071 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13072
13073         * src/SDCCsymt.h: missing from yesterday's commits
13074
13075 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13076
13077         * src/SDCC.y (struct_or_union_specifier),
13078         * support/Util/SDCCerr.c,
13079         * support/Util/SDCCerr.h: verify that struct & union tags are used
13080         as declared.
13081
13082 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13083
13084         * src/SDCCglobl.h: missing from yesterday's commits
13085
13086 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13087
13088         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
13089         sft_attributes, struct_declaration, parameter_declaration,
13090         type_name, start_block, declaration_list),
13091         * src/SDCC.lex (check_type): support redefinition of typedef names
13092
13093 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13094
13095         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
13096         aligned xdata arrays. Erik helped me with the if clause.
13097
13098 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13099
13100         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
13101         warning
13102
13103 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13104
13105         * src/SDCCast.h,
13106         * src/SDCCast.c (newAst_),
13107         * src/SDCCicode.h,
13108         * src/SDCCicode.c (ast2iCode, newiCode),
13109         * src/SDCCglobl.h,
13110         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
13111         expr, statement, expression_statement, selection_statement,
13112         iteration_statement, expr_opt, jump_statement): foundation for tracking
13113         sequence points
13114         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
13115         point code too)
13116
13117 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13118
13119         * support/Util/SDCCerr.c,
13120         * src/SDCCast.h,
13121         * src/SDCCast.c (createCase, createDefault, decorateType),
13122         * src/SDCClabel.c (labelUnreach),
13123         * src/SDCC.y (labeled_statement, jump_statement): More improvements
13124         to error messages.
13125         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
13126         (with thanks to Stas Sergeev)
13127         * device/include/time.h,
13128         * device/lib/time.c (CheckTime): suppress unreachable code warning
13129
13130 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13131
13132         * src/SDCCast.c (createIvalCharPtr),
13133         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
13134         bug #753752)
13135         * support/regression/tests/nullstring.c: tests for these two bugs
13136
13137 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13138
13139         * support/Util/SDCCerr.h,
13140         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
13141         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
13142         about storage class and 'at' used inside struct or union
13143         * src/SDCCBBlock.c (iCodeFromeBBlock),
13144         * src/SDCCcse.c (ifxOptimize),
13145         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
13146         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
13147         printIval, emitStaticSeg, emitOverlay),
13148         * src/SDCClabel.c (deleteIfx),
13149         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
13150         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
13151         gatherAutoInit, processParms),
13152         * support/Util/SDCCerr.h,
13153         * support/Util/SDCCerr.c (werrorfl): Support for better error location
13154         reporting for post-parse errors.
13155
13156 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13157
13158         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
13159         implicit casts via union; they don't work on big endian systems
13160         (possible fix for bug #861138)
13161
13162 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13163
13164         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
13165         * src/mcs51/main.c: fixed the fix for bug #737001
13166
13167 2003-12-15  Borut Razem <borut.razem AT siol.net>
13168
13169         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
13170
13171 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13172
13173         * support/makebin/makebin.c: put output in binary mode
13174
13175 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13176
13177         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
13178         xdata and data memory on startup. Set the environment variable
13179         SDCC_NOGENRAMCLEAR to disable this.
13180         * src/mcs51/peephole.def,
13181         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
13182         (allows non-interrupt and interrupt code to safely compete for a resource
13183         without the non-interrupt code having to disable interrupts)
13184
13185 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13186
13187         * src/SDCCicode.c (geniCodeAdd),
13188         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
13189         with valFromType if type might be a pointer and host is big endian).
13190         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
13191         types, not just integer types.
13192         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
13193         multiply defined with mismatching "at" address.
13194
13195 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13196
13197         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
13198         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
13199         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
13200         with embedded nulls (fixed bug #753752)
13201
13202 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13203
13204         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
13205         Apparently this did not see much testing (endless loop)
13206
13207 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13208
13209         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
13210
13211 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13212
13213         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
13214         gracefully handle NULL memmap pointers
13215
13216 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13217
13218         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
13219         instead of deleting the iCode when an operand is volatile
13220         * src/z80/gen.c (genDummyRead),
13221         * src/mcs51/gen.c (genDummyRead),
13222         * src/ds390/gen.c (genDummyRead),
13223         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
13224         not just IC_RIGHT
13225         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
13226         * src/SDCC.y: fixed bug #850420
13227
13228 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13229
13230         Applied z80 i/o port patch from Peter Townson and fixed some operators
13231         to better handle operands in A register.
13232         * device/include/z180.h
13233         * src/SDCC.y
13234         * src/SDCCglue.c
13235         * src/z80/gen.c
13236         * src/z80/gen.h
13237         * src/z80/main.c
13238         * src/z80/peeph-z80.def
13239         * src/z80/peeph.def
13240         * src/z80/z80.h
13241
13242 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13243
13244         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
13245
13246 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13247
13248         * device/lib/hc08/_mullong.c: Removed extra #endif
13249
13250 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13251
13252         * sim/ucsim/hc08.src/inst.cc,
13253         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
13254         carries from x to h
13255         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
13256         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
13257         * device/include/stdarg.h: fixed varargs for hc08
13258         * device/lib/Makefile.in,
13259         * device/lib/hc08/Makefile,
13260         * device/lib/hc08/_mulint.c,
13261         * device/lib/hc08/_mullong.c: fixed some endian problems
13262
13263 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13264
13265         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
13266         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
13267         * device/lib/_gptrget.c,
13268         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
13269
13270 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13271
13272         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
13273         * src/SDCCast.c (astErrors): fixed bug #846007
13274         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
13275
13276 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13277
13278         * src/SDCCast.c (decorateType): disabled a transformation I added in
13279         revision 1.188 (access to fields of a structure at an absolute address);
13280         it breaks with bitfields, extern declarations, and gcse analysis.
13281         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
13282         could be assigned through a pointer, so don't complain.
13283         * src/SDCCast.c (astErrors),
13284         * src/SDCCast.h,
13285         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
13286
13287 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
13288
13289         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
13290         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
13291         output of __config directives, since gpasm now supports them
13292         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
13293         pre-processor macro, i.e. -DMCU=p18f452
13294         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
13295         and modified to handle 'cast' icode similarly to '=' icode
13296         * src/pic16/device.h (typedef struct PIC_device): added field
13297         'extMIface' to indicate that chip has external memory interface
13298         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
13299         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
13300         18F8720
13301
13302 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13303
13304         * src/SDCC.y (pointer): fixed bug #846006
13305         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
13306         * src/SDCCast.c (decorateType): fixed bug #846009
13307         * src/ds390/peeph.def,
13308         * src/ds390/gen.c (genAnd, genOr),
13309         * src/mcs51/peeph.def,
13310         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
13311
13312 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13313
13314         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
13315         * src/SDCCdflow.c
13316         * src/SDCCcse.c
13317         * src/SDCCcse.h
13318         * src/SDCCBBlock.h
13319         * src/SDCCBBlock.c
13320
13321 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
13322
13323         fixed bug #845089
13324         * src/SDCCbitv.h,
13325         * src/SDCCbitv.c: added function to free a bitvector
13326         * src/SDCClrange.h,
13327         * src/SDCClrange.c: added function to recompute the liveranges
13328         * src/avr/ralloc.c,
13329         * src/ds390/ralloc.c,
13330         * src/hc08/ralloc.c,
13331         * src/mcs51/ralloc.c,
13332         * src/pic/ralloc.c,
13333         * src/pic16/ralloc.c,
13334         * src/xa51/ralloc.c,
13335         * src/z80/ralloc.c: recompute the liveranges after register packing
13336
13337 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
13338
13339         * src/SDCCloop.c (newInduction): fixed bug #845630
13340
13341 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13342
13343         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
13344         inadvertantly left behind from my 2003-11-12 change
13345
13346 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13347
13348         Updated headers I neglected to commit yesterday.
13349         * src/SDCClrange.h,
13350         * src/SDCCicode.h
13351
13352 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13353
13354         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
13355         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
13356         * src/SDCCopt.c (eBBlockFromiCode),
13357         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
13358         the creation of the key hash table from the sequencing so it can be used
13359         earlier (for some GCSE bug fixes still pending)
13360
13361 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13362
13363         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
13364         * support/regression/tests/addsub.c: testing genPlus shortcut
13365
13366 2003-11-15  Borut Razem <borut.razem AT siol.net>
13367
13368         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
13369
13370 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13371
13372         * src/SDCCcse.c (cseBBlock): fixed bug #527779
13373         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
13374         ordering is immaterial.
13375         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
13376
13377 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13378
13379         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
13380         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
13381         (SIGSEV) of bug #840381
13382         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
13383         unlink new file before rename if new and old filenames are the same)
13384
13385 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13386
13387         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
13388         uninitialized variables) for the mcs51. Set environment variable
13389         SDCC_GENRAMCLEAR to test.
13390         xdata initialization slightly shorter
13391
13392 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13393
13394         * src/SDCCsymt.h,
13395         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
13396         #838241 & 780691 (basicly the same bug)
13397         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
13398         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
13399
13400 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
13401
13402         * src/SDCCmain.c (linkEdit): "fix" #834252
13403
13404 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13405
13406         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
13407         * src/SDCCast.h,
13408         * src/SDCC.y: fixed bug #819403
13409
13410 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13411
13412         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
13413         the reentrant attribute.
13414         * src/hc08/gen.c (genPackBits): added missing stack readjustment
13415         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
13416         simulation
13417         * src/SDCCast.c (decorateType): fixed bug with storage class not being
13418         updated during pointer dereference; f.e. ~(((char *)1)*) was being
13419         erroneously reduced to a literal.
13420         * src/hc08/ralloc.c (packRegisters, rematStr),
13421         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
13422         some cases
13423
13424 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13425
13426         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
13427         * doc/sdccman.lyx: changed from 'article' to 'book'
13428         * doc/Makefile: readded test_suite_spec and cdbfileformat
13429
13430 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
13431
13432         * device/include/stdlib.h: include malloc.h to comply with ANSI
13433         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
13434
13435 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13436
13437         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
13438         * doc/clean.mk: also remove *.out files
13439         * doc/sdccman.lyx: some additions, larger top/bottom margins
13440
13441 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13442
13443         * src/SDCC.y: fixed bug #837365
13444         * support/regression/tests/bitopcse.c
13445         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
13446         a symbol (might be valop instead)
13447         * device/lib/Makefile.in: added errno.c to HC08SOURCES
13448         * device/lib/clean.mk: added hc08 to the cleaning list
13449
13450 2003-11-04  Borut Razem <borut.razem AT siol.net>
13451
13452         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
13453           made 2003-11-04
13454         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
13455           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
13456           malloc is declared in standard stdlib.h
13457
13458 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13459
13460         * device/lib/hc08/Makefile: need to clean .rel not .o files
13461         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
13462
13463 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13464
13465         * src/port.h,
13466         * src/hc08/main.c,
13467         * src/mcs51/main.c,
13468         * src/ds390/main.c,
13469         * src/z80/main.c,
13470         * src/avr/main.c,
13471         * src/pic/main.c,
13472         * src/pic16/main.c,
13473         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
13474         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
13475         tests (which uses the port's oclsExpense function)
13476         * src/SDCC.y,
13477         * src/SDCCast.c,
13478         * src/SDCCicode.c,
13479         * src/hc08/gen.c,
13480         * src/ds390/gen.c,
13481         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
13482
13483 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13484
13485         * src/SDCCcse.c (ifxOptimize),
13486         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
13487         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
13488         deleting the IFX iCode.
13489         * src/hc08/ralloc.c: reduced unneeded slocs
13490         * src/hc08/gen.c: fixed bug in asmopToBoolean
13491
13492 2003-11-04  Borut Razem <borut.razem AT siol.net>
13493
13494         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
13495           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
13496           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
13497           transferred to configure
13498
13499 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
13500
13501         Use headers defined in the C[++] standards:
13502         * sim/ucsim/gui.src/serio.src/fileio.cc
13503         * sim/ucsim/gui.src/serio.src/frontend.cc
13504         * sim/ucsim/gui.src/serio.src/main.cc
13505         * sim/ucsim/gui.src/serio.src/posix_signal.cc
13506         * support/Util/NewAlloc.c
13507         * as/hc08/lklibr.c
13508         * as/mcs51/lklibr.c
13509         * as/z80/aslist.c
13510         * as/z80/assym.c
13511
13512 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13513
13514         * Added MSVC projects for hc08 assembler and linker:
13515         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
13516         /as/hc08/link_hc08.dsp
13517
13518 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
13519
13520         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
13521
13522 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
13523
13524         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
13525
13526 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13527
13528         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
13529
13530 2003-10-31  Borut Razem <borut.razem AT siol.net>
13531
13532         * support/cpp2/cpplib.h,
13533           support/cpp2/cpplib.c,
13534           support/cpp2/cpplex.c,
13535           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
13536           to switch _asm block preprocessing on / off. Default is
13537           #pragma preproc_asm +
13538
13539 2003-10-31  Borut Razem <borut.razem AT siol.net>
13540
13541         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
13542           when outputting comment blocks (when executed with -C option) and
13543           _asm (SDCPP specific) blocks
13544
13545 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13546
13547         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
13548
13549 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
13550
13551         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
13552
13553 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
13554
13555         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
13556         * src/SDCCast.c (decorateType): fixed bug #832664
13557
13558 2003-10-31  Borut Razem <borut.razem AT siol.net>
13559
13560         * support/cpp2/cpplex.c: fixed for SDCPP:
13561           comments(when executed with -C option) and _asm blocks
13562           were included even if they where in skipped #if block.
13563           Applied solution from GCC cpp 3.3.2
13564
13565 2003-10-31  Borut Razem <borut.razem AT siol.net>
13566
13567         * src/SDCC.lex: sdcc now understands both formats:
13568           '# <line_number> <file_name>' and
13569           '#line <line_number> <file_name>'
13570         * support/cpp2/cppmain.c: sdcpp now generates the standard
13571           '# <line_number> <file_name>' instead of former
13572           '#line <line_number> <file_name>'
13573
13574 2003-10-30  Borut Razem <borut.razem AT siol.net>
13575
13576         * support/cpp2/cpphash.h,
13577         * support/cpp2/cpplib.h
13578         * support/cpp2/cpplex.c,
13579         * support/cpp2/cppmain.c,
13580         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
13581
13582 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13583
13584         Fixed a number of problems revealed by bug #827883.
13585         * src/SDCCloop.c (loopInvariants): Spill location of the
13586         result operand should be recomputed if extracted from
13587         a loop. Also, don't extract assignments of an iTemp
13588         from a literal.
13589         * src/SDCCast.c (isConformingBody): loop reversal should
13590         not occur if the control variable is involved with a
13591         relational operator.
13592
13593 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
13594
13595         * .version: bumped to 2.3.6 to reflect the big improvements
13596         made by Erik and Klaus. Thanks!
13597
13598 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
13599
13600         Replaced the livrange code.
13601         * src/SDCClrange.c: added new LR code
13602         * src/SDCCloop.c,
13603         * src/SDCCBBlock.h: removed remainig parts from old LR code
13604         * src/ds390/ralloc.c,
13605         * src/ds390/gen.c: minor fixes to make it work with new code
13606
13607 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13608
13609         * as/hc08/asm.h,
13610         * as/hc08/lkrloc.c,
13611         * src/hc08/gen.c,
13612         * src/hc08/ralloc.c: Fix various warnings related to the hc08
13613         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
13614         (tweaked fix for bug #818696)
13615
13616 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13617
13618         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
13619
13620 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13621
13622         * src/SDCCmain.c,
13623         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
13624         * src/mcs51/gen.c (gencjneshort),
13625         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
13626         more efficient (per Scott Bronson's suggestion)
13627
13628 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13629
13630         Extended the semantics of the critical keyword to include
13631         individual statements. See RFE #827755 and #799831
13632         * src/SDCC.y
13633         * src/SDCCicode.c
13634         * src/SDCCopt.c
13635         * src/SDCCast.c
13636         * support/Util/SDCCerr.c
13637         * support/Util/SDCCerr.h
13638         * src/mcs51/gen.c
13639         * src/ds390/gen.c
13640         * src/hc08/gen.c
13641
13642 2003-10-19  Borut Razem <borut.razem AT siol.net>
13643
13644         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
13645
13646 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13647
13648         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
13649         Fixed bug #818696
13650         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
13651         and predecrement operand is displayed
13652
13653 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
13654
13655         * src/SDCCval.c (valMinus): fixed bug #826041
13656
13657 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13658
13659         Some hc08 related updates that I missed earlier
13660         * sim/ucsim/stypes.h
13661         * support/regression/ports/hc08/spec.mk
13662
13663 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13664
13665         New target "hc08" for the Motorola 68hc08 family of micros
13666
13667         * configure
13668         * configure.in
13669         * Makefile
13670         * src/hc08/*
13671         * src/SDCCmain.c
13672         * src/port.h
13673         * sim/ucsim/hc08.src/*
13674         * sim/ucsim/configure.in
13675         * src/ucsim/configure
13676         * sim/ucsim/packages_in.mk
13677         * as/hc08/*
13678         * as/Makefile
13679         * device/include/mc68hc908qy.h
13680         * device/lib/hc08/*
13681         * device/lib/Makefile.in
13682         * support/regression/ports/hc08/*
13683         * support/regression/Makefile
13684
13685 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13686
13687         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
13688         regression test
13689         * src/ds390/gen.c (genCast): fixed bug #821957
13690
13691 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
13692
13693         * device/lib/logf.c: "fixed" overlay bug
13694         * support/regression/ports/host/spec.mk: added m library
13695         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
13696         * support/regression/tests/float_trans: added (for Eric)
13697
13698 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
13699
13700         * src/mcs51/gen.c (genCpl): fixed bug
13701         http://sf.net/mailarchive/message.php?msg_id=6263915
13702
13703 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
13704
13705         * src/SDCCast.c (decorateType): added extended constant folding
13706         * src/SDCCsymt.c (computeType): cleanup
13707         * src/SDCCval.c (valShift): minor optimization
13708         * support/regression/tests/ast_constant_folding.c: added
13709
13710 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13711
13712         * src/SDCCmain.c: removed some unintended changes
13713
13714 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13715
13716         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
13717         * src/z80/gen.c: fixed part of bug #817589
13718         * src/SDCCsymt.c (checkFunction): fixed bug #817895
13719
13720 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
13721
13722         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
13723         * src/SDCCcflow.c
13724         * src/SDCCcse.c
13725         * src/SDCCdflow.c
13726         * src/SDCClabel.c
13727         * src/SDCClrange.c
13728         * src/SDCCmem.c
13729         * src/SDCCopt.c
13730         * src/SDCCpeeph.c
13731         * src/SDCCset.c
13732         * src/avr/ralloc.c
13733         * src/ds390/ralloc.c
13734         * src/izt/ralloc.c
13735         * src/mcs51/ralloc.c
13736         * src/pic/ralloc.c
13737         * src/pic16/ralloc.c
13738         * src/xa51/ralloc.c
13739         * src/z80/ralloc.c
13740         * src/z80/gen.c: removed unused label "release:"
13741
13742 2003-10-06  Borut Razem <borut.razem AT siol.net>
13743
13744         * src/SDCC.lex: removed definition of unused variables
13745           save_optimize and save_options
13746
13747 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
13748
13749         * clean.mk: removed '=' in "-maxdepth=1"
13750         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
13751         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
13752
13753 2003-10-06  Borut Razem <borut.razem AT siol.net>
13754
13755         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
13756           my_unput() replaced by unput()
13757
13758 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
13759
13760         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
13761         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
13762         type-punned pointer will break strict-aliasing rules"
13763         Old LR behaviour is again default; Klaus' LR can be choosen by
13764         defining the environment variable LRKLAUS
13765         * src/SDCCBBlock.h
13766         * src/SDCCloop.c
13767         * src/SDCClrange.c
13768         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
13769         * clean.mk: fixed removal of files in bin/CVS/
13770         * device/lib/clean.mk: fixed removal of directories small and large
13771         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
13772         * src/SDCCicode.c,
13773         * src/SDCCval.c: removed superflous test for pedantic
13774
13775 2003-10-05  Borut Razem <borut.razem AT siol.net>
13776
13777         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
13778           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
13779           message "unmatched #pragma SAVE and #pragma RESTORE"
13780
13781 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13782
13783         * doc/sdccman.lyx: various additions and updates (interrupts, inline
13784           assembly, critical functions, atomic, nojtbound)
13785
13786 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
13787
13788         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
13789         * src/SDCCBBlock.h
13790         * src/SDCCloop.c
13791         * src/SDCCloop.h
13792         * src/SDCClrange.c
13793
13794 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13795
13796         * src/z80/gen.h,
13797         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13798         * src/mcs51/gen.h
13799         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13800         * src/ds390/gen.h
13801         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13802         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
13803         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
13804
13805 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13806
13807         * src/z80/gen.c (genRet): fixed bug #524753
13808         * src/z80/gen.c (genCast): fixed internal error on cast from
13809         pointer to long
13810         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
13811         fix for bug #477835 to the z80
13812         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
13813         for tracking iCodes in the peephole optimizer for z80
13814
13815 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13816
13817         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
13818         the other part of bug #814548
13819         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
13820
13821 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
13822
13823         * src/SDCCcse.c: fixed part of bug #814548
13824
13825 2003-09-28  Borut Razem <borut.razem AT siol.net>
13826
13827         * src/asm.c: rewrite of printILine() to use temporary file instead
13828           a pipe
13829         * src/xa51/main.c: commented out declaration of int rewinds
13830
13831 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13832
13833         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
13834
13835 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13836
13837         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
13838         * src/asm.c (printILine): Fixed bug #811015
13839
13840 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13841
13842         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
13843         freeing.
13844
13845 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13846
13847         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
13848         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
13849         to correctly handle general case of AOP_PAIRPTR
13850         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
13851
13852 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13853
13854         * src/mcs51/ralloc.c (fillGaps),
13855         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
13856         register positioning bug)
13857
13858 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
13859
13860         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
13861
13862 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13863
13864         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
13865         genCodePointerGet, genGenPointerGet, genFarPointerSet,
13866         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
13867         (ralloc doesn't intentionally do this now, but perhaps later)
13868         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
13869         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
13870         register positioning bugs (Fixed bug #762602 and #795325)
13871         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
13872         (Fixed bug #808779)
13873         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
13874         lines that --i-code-in-asm generates
13875
13876 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13877
13878         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
13879         trying to fclose a FILE* that was already closed.
13880
13881 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13882
13883         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
13884         of const struct should be treated as if const themselves)
13885
13886 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
13887
13888         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
13889
13890 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13891
13892         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
13893         Unix (/n) and DOS (/r/n) line terminations.
13894
13895 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13896
13897         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
13898         bug #613775
13899
13900 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13901
13902         * src/mcs51/gen.c (genFunction, genEndFunction),
13903         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
13904         and restore of EA so that stack offsets to parameters are
13905         correct when using both critical and reentrant/stack-auto.
13906         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
13907         size (can be triggered in error if sloc is shared between
13908         different sized objects)
13909         * device/include/float.h: fixed macros to explicitly use
13910         unsigned long where needed
13911
13912 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
13913
13914         Feature req. 799831: added code to allow nesting of critical functions
13915         * src/mcs51/gen.c (genFunction, genEndFunction)
13916         * src/ds390/gen.c (genFunction, genEndFunction)
13917
13918 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13919
13920         * src/SDCCsymt.c (sclsFromPtr),
13921         * src/SDCCsymt.h,
13922         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
13923         support for standard C idiom of memory mapped variables; for
13924         example, *((xdata int*)0x1234) = 1 is now internally equivalent
13925         to xdata int at 0x1234 tempvar = 1.
13926         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
13927         provided by Akiya ISHIDA
13928
13929 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
13930
13931         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
13932         * src/SDCCval.c (constVal): added reduction from int to char
13933         * src/SDCCval.c (valMult, valDiv): fixed sign handling
13934         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
13935         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
13936         to ignore the sign
13937         * support/regression/tests/shifts.c: fixed
13938
13939 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13940
13941         * src/z80/gen.c (genXor): Fixed bug #805445
13942
13943 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13944
13945         Fixed bug #621531 (const & volatile confusion in the type chain).
13946         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
13947         refer to the const or volatile state of the pointer itself.
13948
13949         * src/SDCCast.c
13950         * src/SDCCglue.c
13951         * src/SDCCicode.c
13952         * src/SDCCsymt.c
13953         * src/SDCCval.c
13954         * src/SDCC.y
13955         * src/SDCCsymt.h
13956         * src/pic/gen.c
13957         * src/pic/ralloc.c
13958         * src/pic16/gen.c
13959         * src/pic16/ralloc.c
13960         * support/regression/tests/const.c
13961
13962 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13963
13964         When checking for duplicated modules, use absolute paths
13965         instead of relative paths.  Files changed:
13966
13967         * as/mcs51/lklib.c
13968         * link/z80/lklib.c
13969
13970 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13971
13972         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
13973
13974 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13975
13976         * device/include/string.h: added size_t typedef, changed
13977         prototypes to use size_t, eliminated separate reentrant and
13978         non-reentrant declarations, added _memmove declaration
13979         * device/lib/_memcpy.c: changed to use size_t instead of int,
13980         changed /4 to >>2 to avoid division library call
13981         * device/lib/_memcmp.c,
13982         * device/lib/_memset.c,
13983         * device/lib/_strncat.c,
13984         * device/lib/_strncpy.c,
13985         * device/lib/_strncmp.c: changed to use size_t instead of int
13986         * device/lib/_memmove.c: new file (fixed bug #772294)
13987         * device/lib/Makefile.in: added _memmove.c
13988         * device/lib/z80/asm_strings.s: fixed bug #772290
13989         * support/regression/tests/bitfields.c: attempt to fix host assertion
13990         failure on amd64-unknown-linux2.2
13991
13992 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13993
13994         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
13995         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
13996         * as/z80/asmain.c (main): fixed bug #801766
13997
13998 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
13999
14000         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
14001         compilers
14002
14003 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14004
14005         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
14006         reported in bug #800609
14007
14008 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
14009
14010         * Top header beautifications in src/pic16 directory:
14011           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
14012           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
14013           pcoderegs.h, ralloc.c, ralloc.h
14014         * main.c: added top header and GPL license notice
14015         * pcode.c: fixed the if-conditional warning
14016
14017 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
14018
14019         * device/lib/_mullong.c: replaced int by short for gcc
14020
14021 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14022
14023         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
14024         and JUMPTABLE iCodes properly now (worked by accident before)
14025         * src/mcs51/gen.c (leftRightUseAcc),
14026         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
14027         iCode properly now. Use getSize instead of nRegs since a & b
14028         aren't part of the nRegs tally.
14029
14030 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
14031
14032         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
14033         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
14034           before instructions that use the _STATUS register
14035
14036 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
14037
14038         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
14039         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
14040         fetching of the pointer
14041         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
14042         copied from genNearPointerSet()
14043         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
14044         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
14045         If they pop r0/r1 they must be called in the opposite order than aopOp().
14046         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
14047         (resp. --stack-auto), prepared for --xstack
14048
14049 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14050
14051         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
14052
14053 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
14054
14055         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
14056         these ports have their own __sdcc_external_start()
14057
14058 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
14059
14060         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
14061         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
14062         type for bits was changed. It resulted in bit variables becoming
14063         global, which is not permitted in PIC 14 assembly output.
14064
14065 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14066
14067         * doc/sdccman.lyx: various additions and updates. Rearranged sections
14068
14069 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14070
14071         Z80 and MCS51 linkers complaint if a public symbol is defined
14072         in more than one library module:
14073
14074         * as/mcs51/lklib.c
14075         * link/z80/lklib.c
14076         * as/mcs51/Makefile.in
14077
14078 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14079
14080         A few small changes that speed up the peephole optimizer.
14081
14082         * src/SDCCpeeph.c
14083
14084 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14085
14086         Try to make the peephole optimizer smarter by maintaining
14087         an association between the assembly source code and the
14088         iCodes that originated them. Put this information to use
14089         with a new peephole rule condition "notVolatile" so that
14090         the rules can be aggressive yet still safe.
14091
14092         * src/SDCCpeeph.c
14093         * src/SDCCpeeph.h
14094         * src/mcs51/gen.c
14095         * src/mcs51/peeph.def
14096
14097 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14098
14099         Fixed bug #741761
14100
14101         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
14102         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
14103         if the left or right operand symbols have the accuse flag set.
14104
14105 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14106
14107         Changed the type of the result of the ! (NOT) operator to char;
14108         previously it returned the same type as the source. This allows
14109         us to eliminate all the genFloatNot functions (all of its target
14110         implementations were very buggy) since !float can use the same
14111         code as !long now.
14112
14113         * src/SDCCicode.c (ast2iCode): ! returns char
14114         * src/mcs51/gen.c (genNot, genNotFloat),
14115         * src/ds390/gen.c (genNot, genNotFloat),
14116         * src/z80/gen.c (genNot, genNotFloat),
14117         * src/pic/gen.c (genNot, genNotFloat),
14118         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
14119
14120 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
14121
14122         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
14123         1. Interrupt would not compile properly. Ensure PCLATH register is saved
14124            during interrupts. Ensure WSAVE is located at a shared bank address.
14125         2. Fixed page selection in some places
14126         3. Fixed BTFSS/C to where necessary use registers directly and not simply
14127            the registers name strings.
14128         4. Fixed "signed / unsigned compare" compiler warnings.
14129         5. The PIC port manages its own allocation of the general purpose
14130            registers, but makes no attempt to reuse them. As a result when
14131            compiling it soon runs out of general purpose registers. Some
14132            additional code was added to the files pcode.c and device.c to walk
14133            through the function call tree and rename the registers so that they
14134            get reused.
14135
14136         * src/pic/device.c
14137         * src/pic/gen.c
14138         * src/pic/glue.c
14139         * src/pic/pcode.c
14140         * src/pic/pcode.h
14141         * src/pic/ralloc.c
14142         * src/pic/ralloc.h
14143         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
14144         genPlus() & genMinus() when the result is the same as left or right
14145
14146 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14147
14148         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
14149
14150 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14151
14152         Made bitfield a distinct type from bit so that bitfields
14153         convert as per ANSI C and bits retain their traditional
14154         boolean style behaviour. Implemented bitfield support in
14155         the z80 port.
14156
14157         * src/SDCCsymt.h,
14158         * src/SDCCsymt.c,
14159         * src/SDCCast.c,
14160         * src/cdbFile.c,
14161         * src/mcs51/gen.c,
14162         * src/ds390/gen.c: bit v bitfield split
14163         * src/z80/gen.c: New support for bitfields
14164         * support/regression/tests/bitfields.c: reenabled z80,
14165         added more tests
14166
14167 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14168
14169         Rules 246.x, 247.x relate to bitfields, the others speed up
14170         access to xdata mapped I/O devices.
14171
14172         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
14173
14174 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14175
14176         Cleaned up genPackBits and genUnpackBits and added two helper
14177         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
14178         for literal assignments in genPackBits (thanks to Frieder for
14179         reminding me).
14180
14181         * src/mcs51/gen.c
14182         * src/ds390/gen.c
14183
14184 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14185
14186         Fixed bug #748310 (pointer to function type mishandled when the
14187         function name is omitted). Also fixed a SIGSEGV when a function
14188         attribute (reentrant, etc) is used on a non-function or on a
14189         function but misplaced before the parameter list.
14190
14191         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
14192         bug #748310
14193         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
14194         * support/Util/SDCCerr.h,
14195         * support/Util/SDCCerr.c: Added func attr misuse error msg
14196
14197 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
14198
14199         Fixed bug #787649 by anonymous
14200         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
14201         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
14202
14203 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14204
14205         Fixed numerous bitfield problems.
14206
14207         * src/SDCC.y: More bitfield related error checking
14208         * src/SDCCsymt.h,
14209         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
14210         * support/Util/SDCCerr.h,
14211         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
14212         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
14213         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
14214         * support/regression/tests/bitfields.c: tests added
14215
14216 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14217
14218         Made the constant following the "interrupt" keyword optional. If
14219         omitted, the function will not automatically be given an entry
14220         in the interrupt vector table (similar to #pragma NOIV, but
14221         less syntacticly kludgy). The interrupt number is also now
14222         range checked. Also fixed a bug in the high order bit example
14223         in the manual.
14224
14225         * src/SDCC.y
14226         * src/SDCCmem.c
14227         * src/SDCCglue.c
14228         * src/SDCCsymt.h
14229         * support/Util/SDCCerr.c
14230         * support/Util/SDCCerr.h
14231         * doc/sdccman.lyx
14232
14233 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
14234
14235         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
14236         * src/SDCCicode.c (operandOperation): rewritten some ops
14237         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
14238         * src/SDCCsymt.c (computeType): literals are handled the same way as any
14239         other type
14240         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
14241         be re-activated by defining REDUCE_LITERALS)
14242         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
14243         unsigned, but are signed by default
14244         * src/SDCCval.c (constVal): rearranged
14245         * src/SDCCval.c (valMod): preliminary fix
14246         * src/SDCCval.c (valCastLiteral): use TYPE_* types
14247         * support/regression/literalop.c: added, work in progress
14248
14249 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14250
14251         Generate warnings for useless declarations like "char data;"
14252         that don't do what new users expect.
14253
14254         * src/SDCC.y
14255         * support/Util/SDCCerr.h
14256         * support/Util/SDCCerr.c
14257
14258 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
14259
14260         * src/SDCCval.c (valMult): fix overflow detection of negative int
14261
14262 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14263
14264         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
14265
14266         Changes to support big endian targets:
14267
14268         * src/ports.h
14269         * src/SDCCglue.c
14270         * src/avr/main.c
14271         * src/ds390/main.c
14272         * src/izt/i186.c
14273         * src/mcs51/main.c
14274         * src/pic/main.c
14275         * src/pic16/main.c
14276         * src/xa51/main.c
14277         * src/z80/main.c
14278
14279 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
14280
14281         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
14282         * device/lib/time.c: fixed warning "integer overflow in expression"
14283
14284 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
14285
14286         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
14287         * src/SDCCval.c (constVal): changed default to signed; hex and octal
14288         constants are unsigned; added recognition of "u" flag for unsigned
14289         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
14290         * src/SDCCval.c (valDiv, valMod): fixed signdness
14291         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
14292         signedness of modulo, left and right shift
14293         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
14294         * support/Util/SDCCerr.h: added warning W_INT_OVL
14295         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
14296         * src/SDCCast.c (ast_print): improved output of constants
14297
14298 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14299
14300         Fixed some warnings when building with MSVC:
14301
14302         * as/mcs51/asdata.c
14303         * as/z80/asdata.c
14304         * as/mcs51/asm.h
14305         * as/z80/asm.h
14306         * link/z80/aslink.h
14307         * link/z80/lkdata.c
14308         * link/z80/lkeval.c
14309         * link/z80/lkgb.c
14310         * link/z80/lkihx.c
14311         * link/z80/lks19.c
14312         * link/z80/lksym.c
14313         * support/cpp2/cpplib.c
14314         * src/ds390/gen.c
14315         * src/mcs51/gen.c
14316
14317 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
14318
14319         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
14320
14321 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14322
14323         * support/librarian/clean.mk: Do not remove Makefile.
14324         * support/librarian/Makefile: added.
14325
14326 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14327
14328         Added librarian to MSVC build:
14329         * all.dsp
14330         * sdcc.dsw
14331         * support/librarian/librarian.dsp
14332
14333         'configure' not needed for librarian, removed:
14334         * support/librarian/configure
14335         * support/librarian/configure.in
14336         * support/librarian/config_in.h
14337         * support/librarian/Makefile.in
14338
14339         Hopefully these ones built the librarian and the rest of sdcc properly:
14340         * Makefile
14341         * Makefile.common.in
14342
14343         Messed up 'configure', so revert to previous version:
14344         * configure
14345         * configure.in
14346
14347 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
14348
14349         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
14350         there, while the mantissa of a double is "only" 53 bits wide.
14351
14352 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14353
14354         Adding sdcclib to the build.  MSVC project coming soon.
14355         Files added/changed:
14356
14357         * support/librarian/clean.mk
14358         * support/librarian/configure
14359         * support/librarian/configure.in
14360         * support/librarian/config_in.h
14361         * support/librarian/Makefile.bcc
14362         * support/librarian/Makefile.in
14363         * support/librarian/sdcclib.c
14364         * Makefile.bcc
14365         * Makefile
14366         * Makefile.common.in
14367         * configure
14368         * configure.in
14369
14370 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14371
14372         Linker now complaints if linked modules have conflicting options, for
14373         example, one compiled using --model-large and another one compiled with
14374         --model-small.  The following files were modified:
14375
14376         * as/mcs51/asdata.c
14377         * as/mcs51/aslink.h
14378         * as/mcs51/asm.h
14379         * as/mcs51/asmain.c
14380         * as/mcs51/asout.c
14381         * as/mcs51/i51pst.c
14382         * as/mcs51/lkdata.c
14383         * as/mcs51/lklibr.c
14384         * as/mcs51/lkmain.c
14385         * as/z80/asdata.c
14386         * as/z80/asm.h
14387         * as/z80/asmain.c
14388         * as/z80/asout.c
14389         * as/z80/z80pst.c
14390         * link/z80/aslink.h
14391         * link/z80/lkdata.c
14392         * link/z80/lklibr.c
14393         * link/z80/lkmain.c
14394         * src/SDCCglue.c
14395
14396 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14397
14398         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
14399         as/mcs51/lklibr.c: Generate a warning when a library is not found.
14400
14401 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
14402
14403         * src/z80/mappings.i: fix _mul[us][int,long] entries
14404
14405 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14406
14407         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
14408
14409 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
14410
14411         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
14412         * support/regression/tests/bitopcse.c: added
14413         fixed warning:
14414         * src/avr/gen.c:
14415         * src/pic/gen.c:
14416         * src/pic16/gen.c:
14417         * src/z80/gen.c:
14418         * src/xa51/gen.c:
14419
14420 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14421
14422         added support for new library format to z80, gbz80 linkers:
14423         *link/z80/aslink.h
14424         *link/z80/lklex.c
14425         *link/z80/lklib.c
14426         *link/z80/lklist.c
14427
14428 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
14429
14430         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
14431         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
14432
14433 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
14434
14435         added DUMMY_READ_VOLATILE:
14436         * src/SDCC.y:
14437         * src/avr/gen.c:
14438         * src/xa51/gen.c:
14439         * src/z80/gen.c:
14440         * src/pic/gen.c:
14441         * src/pic16/gen.c:
14442         * src/mcs51/gen.c:
14443         * src/ds390/gen.c:
14444         * src/SDCCcse.c (algebraicOpts): many improvements
14445         * src/SDCCcse.h: removed algebraicOpts()
14446         * src/SDCCicode.c (picDummyRead): added
14447
14448 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14449
14450         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
14451         "Insufficient space in data memory".
14452
14453 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14454
14455         * src/mcs51/gen.c: fixed bug #771358
14456         * src/z80/gen.c: fixed bug #759087
14457
14458 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
14459
14460         * src/pic16/glue.c: minor cleanup by Vangelis
14461
14462 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14463
14464         * device/include/regc515c.h: fixed #758477
14465         * device/lib/_gptrget.c: saving some cycles in generic pointer get
14466         * device/lib/_gptrput.c: saved a few bytes
14467         * my tab spacing is 8, yours too?)
14468         * device/lib/_ser.c: process RX bytes earlier than TX bytes
14469         * device/lib/serial.c: process RX bytes earlier than TX bytes
14470         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
14471
14472 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14473
14474         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
14475
14476 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14477
14478     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
14479
14480 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
14481
14482         * device/lib/Makefile.in: bad fix, reverted to 1.43
14483
14484 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
14485
14486         * device/lib/Makefile.in: added missing z80 object files
14487
14488 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
14489
14490         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
14491         pic16 progress by Vangelis:
14492         * src/SDCCglobl.h:
14493         * src/SDCCmain.c:
14494         * src/pic/Makefile:
14495         * src/pic:
14496         * pic/Makefile:
14497         * pic16/device.c:
14498         * pic16/device.h:
14499         * pic16/gen.c:
14500         * pic16/gen.h:
14501         * pic16/genarith.c:
14502         * pic16/glue.c:
14503         * pic16/main.c:
14504         * pic16/pcode.c:
14505         * pic16/pcode.h:
14506         * pic16/pcodepeep.c:
14507         * pic16/peeph.def:
14508
14509 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14510
14511     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
14512
14513 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14514
14515     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
14516     added gbz80 build to MSVC project.
14517     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
14518     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
14519     from 8051 stuff and setup so it links using a .lnk file.
14520
14521 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14522
14523     * support/librarian/sdcclib.c: sdcc librarian.
14524     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
14525     with sdcclib.
14526
14527 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14528
14529     * as/mcs51/lkmain.c: properly handle extensions in function afile.
14530
14531 2003-07-02  Borut Razem <borut.razem AT siol.net>
14532
14533         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
14534         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
14535         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
14536         src/xa51/main.c, src/z80/main.c:
14537         virtualization of glue() function: each port has it's own glue function,
14538         which is accessed by do_glue function pointer in PORT.general structure
14539
14540 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
14541
14542         * DS800C400 fun, improved ROM interface and tinibios.
14543
14544 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
14545
14546         * More support for DS80C400. Now includes beginning of interface to ROM.
14547
14548 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
14549
14550         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
14551
14552 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14553
14554         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
14555
14556 2003-06-19  Borut Razem <borut.razem AT siol.net>
14557
14558         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
14559
14560 2003-06-19  Borut Razem <borut.razem AT siol.net>
14561
14562         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
14563         fixed Z80 port - crt0.o: cannot open.
14564
14565 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
14566
14567         * support/Util/MySystem.c (merge_command): revert bad fix
14568
14569 2003-06-18  Borut Razem <borut.razem AT siol.net>
14570
14571         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
14572
14573 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14574
14575         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
14576         option --use-stdout sends errors to stdout instead of stderr.
14577
14578 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
14579
14580         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
14581
14582 2003-06-15  Borut Razem <borut.razem AT siol.net>
14583
14584         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
14585         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
14586         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
14587         fixed width array of pointers replaced with sets;
14588         multiple include and lib paths ared transferred to preprocessor and linker
14589         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
14590         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
14591         fixed width array of pointers
14592         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
14593         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
14594         fixupPath(), getPathDifference()
14595         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
14596         fixed width array of pointers
14597
14598 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
14599
14600         * src/pic16/ralloc.c: fix warnings
14601         * src/pic16/pcode.c: fix warning
14602
14603 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
14604
14605          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
14606         know all the details, but essentially this set of changes enable
14607         the pic16 port to generate movff instructions and generate assembler
14608         directives,
14609         * src/SDCCmain.c:
14610         * src/pic16/gen.c:
14611         * src/pic16/glue.c:
14612         * src/pic16/pcode.c:
14613         * src/pic16/device.c:
14614         * src/pic16/main.c:
14615         * src/pic16/pcode.h:
14616         * src/pic16/pcoderegs.c:
14617         * src/pic16/ralloc.c:
14618         * src/pic16/ralloc.h:
14619
14620 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14621
14622         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
14623         added option --vc, so sdcc errors and warnings are compatible with
14624         Microsoft Visual Studio.
14625
14626 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14627
14628         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
14629           device/lib/libfloat.lib: added atof function.
14630
14631 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
14632
14633         * doc/sdccman.lyx: updated to Lyx 1.3
14634         * doc/cdbfileformat.lyx: updated to Lyx 1.3
14635         * doc/test_suite_spec.lyx: updated to Lyx 1.3
14636         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
14637
14638 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
14639
14640         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
14641
14642 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14643
14644         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
14645           additions to the "related tools/documentation" section
14646
14647 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
14648
14649         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
14650
14651 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
14652
14653         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
14654         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
14655
14656 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
14657
14658         * doc/sdccman.lyx: fix double dash and other minor things
14659         * doc/Makefile: fix double dash
14660
14661 2003-05-28  Karl Bongers(patches from Martin Helmling)
14662         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
14663           condition and ignore commands.
14664
14665 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14666
14667         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
14668           is in parts still quite out of date, I did changes as far as I felt makes sense
14669           for a non-native english speaker.
14670           Please feel free to add to the manual or to correct my changes.
14671         * doc/Makefile: undid touching the date of intermediate tex files.
14672
14673 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14674
14675         * doc/sdccman.lyx: Manual has an index now
14676
14677 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
14678
14679         Finalize muluint/mulsint and mululong/mulslong merging:
14680         * device/lib/_mulint.c
14681         * device/lib/_mullong.c
14682         * device/lib/gbz80/mul.s
14683         * device/lib/gbz80/stubs.s
14684         * device/lib/z80/mul.s
14685         * device/lib/z80/stubs.s
14686         * src/SDCCsymt.c (initCSupport)
14687
14688 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14689
14690         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
14691         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
14692           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
14693           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
14694           instead of /Zm500.
14695
14696 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14697
14698         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
14699           the regression tests I'm not brave enough to enable 245.b, 245.c
14700         * doc/sdccman.lyx: added latex preamble for hyperref package.
14701           Using pdflatex this will give you a hyperlinked pdf file with
14702           bookmarks. (prepend '%' before /usepackage if this breaks something)
14703
14704 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14705
14706          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
14707
14708 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
14709
14710         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
14711
14712 2003-05-21    <johan AT balder>
14713
14714         * src/SDCCglue.c (printIval): fixed bug #739934
14715
14716 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
14717
14718         Applied patch from bug 737905 (renamed yylineo to mylineno):
14719         * src/altlex.c
14720         * src/SDCCast.c
14721         * src/SDCglobl.h
14722         * src/SDCC.lex
14723         * src/SDCCsymt.c
14724         * src/SDCCval.c
14725         * src/pic16/pcode.c: Cleaned warnings
14726         * src/pic16/pcodeflow.c: Cleaned warnings
14727         * src/pic16/pcoderegs.c: Cleaned warnings
14728
14729 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
14730
14731         * src/pic16/pcode.c: Cleaned warnings
14732         * src/pic16/pcodepeep.c: Cleaned warnings
14733         * src/pic16/ralloc.c: Cleaned warnings
14734
14735 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
14736
14737         * doc/sdccman.lyx: fixed bug 739745
14738         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
14739
14740 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
14741
14742         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
14743         it can be defined with CFLAGS when running configure
14744         * src/SDCCmain.c: fixed compiling + linking with object files
14745
14746 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
14747
14748         * configure.in: configure for pic16 port,
14749             added --disable-pic16-port
14750         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
14751         * src/SDCCmain.c: linkOptions is changed to set *,
14752             added if/endif conditional macros to remove options help
14753             messages from optionsTable when a port is not configured, added
14754             support for the PIc16 port in the ports table, when executing
14755             the compiler with no port specified on command line, a default
14756             port is selected with the new macro DEFAULT_PORT which is
14757             defined in port.h, in setDefaultOptions() linkOptions is removed
14758             from initialization assignment, since now it is a set,
14759             parseCmdLine uses setParseWithComma for linkOptions, in
14760             linkEdit() linkOptions are accessed with new function indexSet()
14761             which returns the i'th item of a set variable. See SDCCset.c, in
14762             linkEdit() when calling buildCmdLine(), added linkOptions as
14763             last argument. Now users can pass arguments to gplink via the
14764             -Wl option, main() uses pic16glue() to glue up pic16 programs
14765         * src/SDCCpeeph.c: various changes to support pic16
14766         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
14767             return the i'th item of the set
14768         * src/SDCCset.h: added function prototype for indexSet()
14769         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
14770         * src/clean.mk: added pic16 in CLEANALLPORTS variable
14771         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
14772             added macro DEFAULT_PORT
14773         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
14774         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
14775             generated
14776         * src/pic16/glue.c: commented out some error producing lines
14777         * src/pic16/main.c: __config directives are commented out to stop
14778             gpasm complaining and test the linkage with gplink, _linkCmd and
14779             _asmCmd changed to be more gplink and gpasm friendly
14780         * src/pic16/peeph.def: peep rule 3 is commented out, since it
14781             produced an error when parsed, peep rule 12 is added to utilize
14782             movff, but it is commented out since the pCode does not support
14783             yet a command with 2 address arguments
14784
14785 2003-05-18    <johan AT balder>
14786
14787         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
14788         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
14789 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
14790
14791         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
14792   Added feature to script commands from file.
14793
14794 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
14795
14796         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
14797         * src/SDCCutil.c: include ctype.h for win32
14798
14799 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
14800
14801         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
14802
14803 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
14804
14805         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
14806   Fixed so you can set breakpoints prior to run, run does not stop
14807   on entry now.  Add tbreak.  Other enhancements and fixes for use
14808   with ddd.
14809
14810 2003-05-12  Borut Razem <borut.razem AT siol.net>
14811
14812         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
14813
14814 2003-05-11  Borut Razem <borut.razem AT siol.net>
14815
14816         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
14817         the path of bin directory, so that PATH is the only env. variable, which has to be set
14818         in case of standard installation.
14819         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
14820         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
14821         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
14822
14823 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
14824
14825         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
14826         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
14827         temp files are in the port dir; clean the gen/test directory when
14828         generating new test.c
14829         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
14830         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
14831         * support/regression/tests/zeropad.c: added
14832
14833 2003-05-09    <johan AT balder>
14834
14835         * src/SDCCglue.c: fixed bug #597940
14836
14837 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
14838
14839         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
14840   cache sfr, optimize next,step, fix off by one sourceline,
14841   support ddd list function.
14842         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
14843
14844 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
14845
14846         * support/regression/HTMLgen.py: added compare_s2f()
14847         * support/regression/Makefile: redo 1.27
14848         * support/regression/generate-cases.py: redo 1.5
14849
14850 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
14851
14852         * support/regression/tests/float.c: workaround 33 bit hex constant
14853         * support/regression/tests/simplefloat.c: fix division for host
14854
14855 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
14856
14857         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
14858         that tame's the PIC's over-aggressive optimizer.
14859
14860 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14861
14862          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
14863          support for MSVC.
14864
14865 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
14866
14867         Initial support for DS80C400. "Hello world" runs on TINIm400
14868         (with polled I/O).
14869
14870 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
14871
14872          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
14873          * Some notes on ddd usage added in debugger/README
14874          Martin Helmling adding more features and fixes for ddd GUI debugger.
14875          Code added for nexti, stepi, up, down, and other adjustments.
14876
14877 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
14878
14879         * src/pic/pCodepeep.c non-wildcard asmops are now handled
14880         * src/pic/peeph.def Added two rules to optimize carry manipulation
14881         * src/pic/* removed debug printfs
14882
14883 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
14884
14885         * debugger/mcs51/cmd.c: added header newalloc.h
14886
14887 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
14888
14889         * as/Makefile: new EXEEXT
14890         * as/z80/Makefile: remove trailing slash of BUILDIR
14891         * as/z80/clean.mk: new EXEEXT
14892         * Makefile.common.in: add to CFLAGS (and others), don't replace it
14893         * support/cpp2/Makefile.in: new EXEEXT
14894         * src/pic/glue.c (pic14emitRegularMap): fixed warning
14895
14896 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
14897
14898         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
14899         EXEEXT was introduced to fix all related problems with targets
14900         "clean", "install" and "uninstall"; a couple of further flaws
14901         especially with "clean" have been fixed too
14902         * as/mcs51/Makefile.in
14903         * as/mcs51/clean.mk
14904         * as/z80/Makefile
14905         * Makefile
14906         * clean.mk
14907         * debugger/mcs51/Makefile.in
14908         * debugger/mcs51/clean.mk
14909         * link/z80/Makefile
14910         * link/z80/Makefile.in
14911         * link/z80/clean.mk
14912         * link/Makefile
14913         * packihx/Makefile.in
14914         * packihx/clean.mk
14915         * sim/ucsim/Makefile
14916         * sim/ucsim/clean.mk
14917         * sim/ucsim/avr.src/Makefile.in
14918         * sim/ucsim/avr.src/clean.mk
14919         * sim/ucsim/s51.src/Makefile.in
14920         * sim/ucsim/s51.src/clean.mk
14921         * sim/ucsim/xa.src/Makefile.in
14922         * sim/ucsim/xa.src/clean.mk
14923         * sim/ucsim/z80.src/Makefile.in
14924         * sim/ucsim/z80.src/clean.mk
14925         * sim/ucsim/main_in.mk
14926         * sim/ucsim/packages_in.mk
14927         * sim/ucsim/gui.src/Makefile.in
14928         * sim/ucsim/gui.src/serio.src/Makefile.in
14929         * sim/ucsim/gui.src/serio.src/clean.mk
14930         * src/Makefile.in
14931         * src/clean.mk
14932         * support/cpp2/Makefile.in
14933         * support/cpp2/clean.mk
14934         * support/makebin/Makefile
14935         * support/makebin/clean.mk
14936         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
14937         * doc/sdccman.lyx: --program-suffix no longer needed
14938
14939 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
14940
14941          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
14942          Martin Helmling added support for ddd GUI debugger.
14943          Code added to display assembly, set variables, and other commands
14944          to interface to ddd.
14945
14946 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
14947
14948         * as/Makefile: fix target clean
14949         * as/clean.mk: fix target clean
14950         * as/z80/clean.mk: fix target clean
14951
14952 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
14953
14954         * Makefile.common.in: added  AT EXEEXT AT
14955         * configure.in: removed all mingw32 stuff
14956         * configure: rebuilt from configure.in
14957         * doc/sdccman.lyx: updated section "installation"
14958         * support/scripts/sdcc_mingw32: adapted to configure
14959         * support/scripts/sdcc_cygwin_mingw32: added
14960
14961 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
14962
14963         * src/pic Added object file support for the PIC port
14964         * src/pic Applied patch from Craig Franklin (this started the object file support)
14965         * src/regression Updated the PIC regression tests for object files
14966
14967 2003-04-20  Borut Razem <borut.razem AT siol.net>
14968
14969         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
14970           lklex.c: In function `getfid':
14971           lklex.c:203: warning: array subscript has type `char'
14972         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
14973           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
14974         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
14975           stack handling macros
14976
14977 2003-04-19  Borut Razem <borut.razem AT siol.net>
14978
14979         * "handling space characters in file path" task:
14980         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
14981         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
14982         * support/Util/MySystem.h: make it self-sufficient
14983         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
14984           src/z80/main.c, sdcc/as/mcs51/lklex.c:
14985           handling space characters in file path
14986         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
14987           (it will be used by assemblers, which have their own includes, e.g. gpasm)
14988         * support/Util/MySystem.c: handling space characters in executable's path
14989
14990 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
14991
14992         * as/z80/Makefile: fix permanent rebuild of z80
14993         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
14994         * support/regression/tests/bitfields.c: added Johan's bitfields.c
14995
14996 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
14997
14998         * src/SDCCopt.c: add special case optimization to replace modulo by
14999           a power of two with a bitwise AND.
15000
15001 2003-04-18    <johan AT balder>
15002
15003         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
15004
15005 2003-04-17    <johan AT balder>
15006
15007         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
15008         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
15009
15010 2003-04-13  Borut Razem <borut.razem AT siol.net>
15011
15012         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
15013         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
15014           fixed mingw problem in adl_NORMALIZE_PATH
15015
15016 2003-04-12  Borut Razem <borut.razem AT siol.net>
15017
15018         * fixed "#pragma SAVE/RESTORE can not be nested":
15019         * src/SDCC.lex: reworked pragma handling functions
15020         * sdcc/src/SDCCglobl.h: reworked stack handling macros
15021         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
15022
15023 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
15024
15025         * src/SDCCutil.c (pathEquivalent): defined but not used
15026         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
15027         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
15028         * configure: rebuilt from configure.in
15029         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
15030         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
15031         * device/include/Makefile.in: replace sdcc_datadir
15032         * device/lib/Makefile.in: replace sdcc_datadir
15033         * Makefile.common.in: add LDFLAGS from configure
15034         * packihx/Makefile.in: use LDFLAGS
15035         * src/Makefile.in: use LDFLAGS
15036         * support/cpp2/Makefile.in: add LDFLAGS from configure
15037         * support/makebin/Makefile: use LDFLAGS
15038         * .version: bumped version number to 2.3.5
15039
15040 2003-04-12  Borut Razem <borut.razem AT siol.net>
15041
15042         * completed "different paths" task:
15043         * src/SDCCmacro.c: fixed bug in handling quotes
15044         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
15045         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
15046
15047 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
15048
15049         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
15050
15051 2003-04-11 kevin Vigor <kevin AT vigor.nu>
15052
15053         * ds390/gen.c ds390/peeph.def: fix bug 706781
15054
15055 2003-04-11  Borut Razem <borut.razem AT siol.net>
15056
15057         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
15058
15059 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
15060
15061         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
15062         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
15063          set - this bit used to not be set...).
15064         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
15065           bad code in PIC Port
15066         * src/regression/and2.c added to test bug 609268
15067         * src/regression/Makefile added and2.c to regression test
15068
15069
15070 2003-04-08    <johan AT CP255758-A>
15071
15072         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
15073         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
15074         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
15075
15076 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
15077
15078         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
15079         fix bug #487815
15080         * support/cpp2/Makefile.in: fix bug #487815
15081         * configure: rebuilt from configure.in
15082         * Makefile.common.in: docdir changed, new path suffixes
15083         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
15084         * sdcc_vc_in.h: reflect changes from sdccconf.h
15085         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
15086         * src/SDCCutil.h: remove BINDIR hack
15087         * doc/sdccman.lyx: update new path hierarchy
15088
15089 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15090
15091         * src/SDCCpeeph.c: added okToRemoveSLOC test
15092
15093 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15094
15095         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
15096
15097 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15098
15099         * src/SDCCpeeph.c: added labelIsReturnOnly test
15100         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
15101
15102 2003-04-05    <johan AT balder>
15103
15104         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
15105         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
15106         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
15107         * src/SDCCast.c: fixed a warning
15108         * src/SDCCast.h: fixed a warning
15109         * src/SDCCicode.c (operandFromAst): fixed a warning
15110
15111 2003-04-04    <johan AT balder>
15112
15113         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
15114         * src/SDCCast.c (decorateType): fixed bug #715076
15115         * src/SDCC.y: fixed bug #702907
15116
15117 2003-04-03    <johan AT balder>
15118
15119         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
15120         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
15121         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
15122         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
15123         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
15124
15125 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
15126
15127         * _decdptr.c: fix return values
15128         * _gptrget.c: fix return values
15129         * _gptrgetc.c: fix return values
15130         * _gptrput.c: fix return values
15131         * _mulint.c: fix return values
15132         * as/z80/Makefile: fix 'make -j' problem
15133
15134 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
15135
15136         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
15137         * configure.in: big cleanup, updated to autoconf 2.5x
15138         * configure: rebuilt from configure.in
15139         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
15140         * sdcc_vc_in.h: reflect changes from sdccconf.h
15141         * doc/Makefile: fixed a flaw in "make install"
15142
15143 2003-04-02    <johan AT balder>
15144
15145         * src/ds390/gen.c (genCmp): no comments
15146         * src/mcs51/gen.c (genCmp): no comments
15147         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
15148         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
15149
15150 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
15151
15152         * support/regression/generate-cases.py: place generated file in given sub directory
15153         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
15154         * support/regression/Makefile: improvements for 'make -j';
15155         side effect: it's simpler and faster now
15156
15157 2003-03-31  Borut Razem <borut.razem AT siol.net>
15158
15159         * src/z80/main.c: link-{port} and as-{port} defined without path
15160         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
15161
15162 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
15163
15164         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
15165
15166 2003-03-30  Borut Razem <borut.razem AT siol.net>
15167
15168         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
15169           changed type of list parameter to set
15170         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
15171         * src/port.h: changed type of do_assemble() parameter to set
15172         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
15173           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
15174           definition of "cppoutfilename" macro with NULL value in preProcess()
15175         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
15176         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
15177         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
15178           replaced with set *binPathSet
15179         * shash_add() deallocates the item, if allready exsists, before adding the new one
15180         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
15181
15182 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
15183
15184         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
15185           a nested for loop bug in the PIC port
15186         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
15187           for loops
15188
15189 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
15190
15191         * support/Util/dbuf.h: remove C++ stuff to make it portable
15192
15193 2003-03-28  Borut Razem <borut.razem AT siol.net>
15194
15195         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
15196           literal strings in stringLiteral()
15197         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
15198         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
15199           to the project
15200
15201 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
15202
15203         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
15204
15205 2003-03-26    <johan AT balder>
15206
15207         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
15208         * src/ds390/gen.c (saveRegisters): catched symbol abuse
15209         * src/SDCCast.c (decorateType): fixed " -v < 3"
15210
15211 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
15212
15213         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
15214         Added Lenny Story's debug infrastructure changes:
15215         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
15216         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
15217         * src/cdbFile.c: added
15218         * src/SDCCdebug.c: added
15219         * src/SDCCdebug.h: added
15220         * src/SDCCast.c (createFunction)
15221         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
15222         * src/SDCCmain.c (parseCmdLine, main)
15223         * src/SDCCmem.c (redoStackOffsets)
15224         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
15225         * src/SDCCsymt.h
15226         * src/common.h
15227         * src/avr/gen.c (genAVRCode)
15228         * src/ds390/gen.c (gen390Code)
15229         * src/mcs51/gen.c (gen51Code)
15230         * src/pic/gen.c (genpic14Code)
15231         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
15232         * src/xa51/gen.c (genXA51Code)
15233         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
15234
15235 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15236
15237         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
15238         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
15239
15240 2003-03-22    <johan AT balder>
15241
15242         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
15243
15244 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
15245
15246         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
15247         * doc/cdbfileformat.lyx: added, written by Lenny Story
15248         * doc/Makefile: added cdbfileformat.lyx
15249         * doc/clean.mk: added cdbfileformat.lyx
15250
15251 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
15252
15253         * src/mcs51/peeph.def: fix bug #705773
15254
15255 2003-03-20    <johan AT balder>
15256
15257         An sfr/sbit can have an "at #" AND an initializer
15258         * src/SDCCsymt.c (checkSClass):
15259         * src/SDCCmem.c (allocGlobal):
15260         * src/SDCCmem.c (allocLocal):
15261         * src/SDCCast.c (createBlock):
15262
15263 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
15264
15265         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
15266
15267 2003-03-16    <johan AT balder>
15268
15269         Undid the hackup of const and volatile, the problem is much bigger
15270         * src/SDCC.y:1.65
15271         * src/SDCCast.c:1.171
15272         * src/SDCCglue.c:1.138
15273         * src/SDCCicode.c:1.146
15274         * src/SDCCsymt.c:1.150
15275         * src/SDCCval.c:1.65
15276
15277 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
15278
15279         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
15280         * src/ds390/gen.c (genAddrOf): fixed bug #704087
15281
15282 2003-03-13    <johan AT balder>
15283
15284         Hackup const and volatile modifiers in type chains a bit:
15285         * src/SDCC.y:1.63
15286         * src/SDCCast.c:1.169
15287         * src/SDCCglue.c:1.136
15288         * src/SDCCicode.c:1.143
15289         * src/SDCCsymt.c1.146
15290         * src/SDCCsymt.h1.59
15291         * src/SDCCval.c:1.63
15292
15293 2003-03-12    <johan AT balder>
15294
15295         * src/SDCCBBlock.h: more LRH debugging junk
15296         * src/SDCCcflow.h: more LRH debugging junk
15297         * src/SDCCloop.c: more LRH debugging junk
15298         * src/SDCC.y (struct_declaration): fixed bug #697590
15299         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
15300         * src/ds390/gen.c (aopForRemat): fixed bug #700031
15301         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
15302
15303 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15304         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
15305         test function names must now match exactly).
15306         * src/SDCCcse.c: added special case in findCheaperOp to allow
15307         extending a short integer. Makes less awful code for bug 700121 test case.
15308
15309 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15310
15311         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
15312         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
15313
15314 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15315
15316         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
15317         actually called (operandsNotEqual() was called for all
15318         operandsNotEqualX tests).
15319
15320 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15321
15322         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
15323         with shorter literals. Fixes bug 700121.
15324
15325 2003-03-11    <johan AT balder>
15326
15327         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
15328
15329 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
15330
15331         * src/SDCCloop.c (mergeRegions): an evil beast is dead
15332         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
15333
15334 2003-03-10  Borut Razem <borut.razem AT siol.net>
15335
15336         * src/SDCCmain.c: pipe preprocessor's output
15337         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
15338         * sdcc_vc_in.h: define pclose as _pclose for WIN32
15339         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
15340         which closes all pipes in pipeSet set
15341         * src/SDCCset.c: free deleted item in function deleteSetItem()
15342         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
15343         moved from z80 to src subproject
15344         * .version: increased version number to 2.3.4
15345
15346 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
15347
15348         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
15349         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
15350         * support/regression/ports/xa51/spec.mk: fix typo
15351
15352 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
15353
15354         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
15355
15356 2003-03-09  Borut Razem <borut.razem AT siol.net>
15357
15358         * src/SDCCmain.c: pipe preprocessor's output
15359         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
15360         * sdcc_vc_in.h: define pclose as _pclose for WIN32
15361         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
15362         which closes all pipes in pipeSet set
15363         * src/SDCCset.c: free deleted item in function deleteSetItem()
15364         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
15365         moved from z80 to src subproject
15366
15367 2003-03-09  Borut Razem <borut.razem AT siol.net>
15368
15369         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
15370         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
15371         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
15372         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
15373         * src/SDCCglobl.h: unification of WIN32 native definitions
15374
15375 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15376
15377         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
15378
15379 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
15380
15381         * src/configure.in:   check for endianess (even while cross-compiling)
15382         * src/configure:      check for endianess (even while cross-compiling)
15383         * src/configure_in.h: check for endianess (even while cross-compiling)
15384         * src/avr/gen.c:        remove old endianess stuff
15385         * src/mcs51/gen.c:      remove old endianess stuff
15386         * src/ds390/gen.c:      remove old endianess stuff
15387         * src/pic/gen.c:        remove old endianess stuff
15388         * src/pic/genarith.c:   remove old endianess stuff
15389         * src/pic/glue.c:       fix endianess check
15390         * src/pic16/gen.c:      remove old endianess stuff
15391         * src/pic16/genarith.c: remove old endianess stuff
15392         * src/pic16/glue.c:     fix endianess check
15393         * src/xa51/gen.c:       remove old endianess stuff
15394         * src/z80/gen.c:        fix endianess check
15395         * src/SDCCglue.c:       fix endianess check
15396         * src/ds390/peeph.def: fix bug 700036
15397
15398 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
15399
15400         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
15401         * src/configure: find appropriate data-types on host for SDCC's int and long
15402         * src/configure.in: find appropriate data-types on host for SDCC's int and long
15403         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
15404         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
15405
15406 2003-03-07    <johan AT balder>
15407
15408         Just a big NOOP:
15409                 some minor cleanups before the big shot
15410                 OP_DEFS and OP_USES now use Kevin's protection
15411                 new option --nolabelopt
15412
15413         * src/SDCCBBlock.c:
15414         * src/SDCCast.c,:
15415         * src/SDCCcflow.c:
15416         * src/SDCCcse.c:
15417         * src/SDCCicode.c:
15418         * src/SDCCicode.h:
15419         * src/SDCClabel.c:
15420         * src/SDCCloop.c:
15421         * src/SDCCmain.c:
15422         * src/ds390/ralloc.c:
15423         * src/mcs51/ralloc.c:
15424         * src/pic/ralloc.c:
15425         * src/xa51/ralloc.c:
15426         * src/z80/ralloc.c:
15427
15428 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
15429
15430         * src/pic/pcode.c (get_op): fix 64 bit warnings
15431         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
15432         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
15433         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
15434         * support/regression/tests/malloc.c: fix 64 bit warnings
15435
15436 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
15437
15438         * src/mcs51/gen.c (genMinus): fixed bug 696436
15439
15440 2003-03-02  Borut Razem <borut.razem AT siol.net>
15441
15442         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
15443
15444 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
15445
15446         * configure.in: test for mkstemp
15447         * sdccconf_in.h: add HAVE_MKSTEMP
15448
15449 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
15450
15451         * device/include/ctype.h: removed warning while using --stack-auto
15452         * device/include/malloc.h: removed warning while using --stack-auto
15453         * device/include/string.h: removed warning while using --stack-auto
15454
15455 2003-02-23  Borut Razem <borut.razem AT siol.net>
15456
15457         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
15458         because NDEBUG is defined (see man assert)
15459         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
15460
15461 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15462
15463         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
15464         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
15465
15466 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15467
15468         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
15469         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
15470
15471 2003-02-18    <johan AT balder>
15472
15473         * as/mcs51/asmain.c (asmbl): module can start with a digit
15474         * as/z80/asmain.c (asmbl): module can start with a digit
15475
15476 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
15477
15478         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
15479         * src/asm.c: fix pipe() for Mingw32
15480
15481 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
15482
15483         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
15484         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
15485         make -V work again; --c1mode reads now from stdin
15486         * doc/sdccman.lyx: added --c1mode
15487         * support/Util/SDCCerr.c: new messages for c1 mode
15488         * support/Util/SDCCerr.h: new messages for c1 mode
15489         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
15490
15491 2003-02-15    <johan AT balder>
15492
15493         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
15494
15495 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
15496
15497         * doc/sdccman.lyx: Environment variables, -o and other minor things
15498
15499 2003-02-14    <johan AT balder>
15500
15501         * src/xa51/main.c: before anyone really tries to use it :)
15502
15503         * Install doc's in share/sdcc/doc
15504         * removed some obsolete files
15505         * Do a proper make distclean and uninstall
15506         M Makefile.common.in
15507         R sdccbuild.sh
15508         M as/Makefile
15509         M device/include/Makefile.in
15510         M device/lib/Makefile.in
15511         M doc/sdccman.lyx
15512         M link/Makefile
15513         M sim/ucsim/doc/Makefile.in
15514         M src/clean.mk
15515         R src/avr/peeph.rul
15516         R src/xa51/peeph.rul
15517         M support/cpp2/Makefile.in
15518         M support/makebin/Makefile
15519
15520
15521 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
15522
15523         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
15524
15525 2003-02-10  Borut Razem <borut.razem AT siol.net>
15526
15527         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
15528         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
15529         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
15530         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
15531         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
15532         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
15533         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
15534         src/z80/Makefile.bcc: Borland Makefile cleanup
15535         * as/z80/Makefile.bcc: Added Borland Makefile
15536         * support/cpp2/borland.h: Removed
15537
15538 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
15539
15540         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
15541         * src/SDCC.lex: new pragma NOIV
15542         * src/SDCCglobl.h: new pragma NOIV
15543         * src/SDCCmem.c: new pragma NOIV
15544
15545 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
15546
15547         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
15548
15549 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
15550
15551         * src/SDCCmain.c: signal handling is switched off by --debug
15552         * doc/Makefile: small fix for install; use clean.mk again
15553         * doc/clean.mk: clean *.pdf and *.html too
15554
15555 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
15556
15557         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
15558         * device/lib/printfl.c: fix a ds390 bug by making it portable
15559         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
15560         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
15561         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
15562         * debugger/mcs51/cmd.c: converted multi-line string literals
15563         * sim/ucsim/globals.cc: converted multi-line string literals
15564         * src/SDCCmain.c: introduced signal handler to remove temp files
15565         * doc/Makefile: small tweaks, implement clean
15566         * doc: removed generated files
15567
15568 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15569
15570         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
15571         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
15572         Address Record is not correctly generated for DS390."
15573
15574 2003-02-02  Borut Razem <borut.razem AT siol.net>
15575
15576         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
15577         * as/mcs51/asm.h: fixed compilation with Borland C
15578         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
15579         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
15580         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
15581         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
15582         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
15583         src/z80/Makefile.bcc: delete $(LIB) only if exist
15584         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
15585
15586 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
15587
15588         * device/include/malloc.h: introduced NULL
15589         * device/include/string.h: introduced NULL
15590         * device/include/stdlib.h: introduced NULL
15591         * device/lib/_memcpy.c: removed NULL
15592         * device/lib/_strcat.c: removed NULL
15593         * device/lib/_strchr.c: removed NULL
15594         * device/lib/_strcmp.c: removed NULL
15595         * device/lib/_strcpy.c: removed NULL
15596         * device/lib/_strcspn.c: removed NULL
15597         * device/lib/_strlen.c: removed NULL
15598         * device/lib/_strncat.c: removed NULL
15599         * device/lib/_strncmp.c: removed NULL
15600         * device/lib/_strncpy.c: removed NULL
15601         * device/lib/_strpbrk.c: removed NULL
15602         * device/lib/_strrchr.c: removed NULL
15603         * device/lib/_strspn.c: removed NULL
15604         * device/lib/_strstr.c: removed NULL
15605         * device/lib/_strtok.c: removed NULL
15606         * device/lib/malloc.c: removed NULL, include own header
15607
15608 2003-02-02    <johan AT balder>
15609
15610         * 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
15611         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
15612         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
15613         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
15614         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
15615         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
15616
15617 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15618
15619         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
15620         area 'DATA'"
15621
15622 2003-02-01    <johan AT balder>
15623
15624         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
15625
15626 2003-01-31    <johan AT CP255758-A>
15627
15628         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
15629
15630 2003-01-30    <johan AT balder>
15631
15632         * src/SDCCBBlock.c: automatic bug detection
15633         * src/SDCCicode.c: automatic bug detection
15634
15635 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15636
15637         * src/SDCCglobl.h:   now --xram-size 0 works
15638         * src/SDCCmain.c:    now --xram-size 0 works
15639
15640 2003-01-29    <johan AT balder>
15641
15642         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
15643
15644 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15645
15646         * as/mcs51/aslink.h: Added options --xram-size and --code-size
15647         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
15648         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
15649         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
15650         * src/SDCCglobl.h:   Added options --xram-size and --code-size
15651         * src/SDCCmain.c:    Added options --xram-size and --code-size
15652
15653 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
15654
15655         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
15656         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
15657
15658 2003-01-27    <johan AT balder>
15659
15660         * src/SDCC.y: fixed bug #613764
15661
15662 2003-01-26    <johan AT balder>
15663
15664         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
15665         * src/SDCCsymt.h: fixed bug #673374
15666         * src/SDCCglue.c: fixed bug #661910
15667         * src/SDCCast.c: fixed bug #458099 and 673374
15668
15669 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
15670
15671         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
15672         * as/mcs51/strcmpi.h: added
15673         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
15674         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
15675         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
15676         * as/mcs51/assym.c: strcmpi -> as_strcmpi
15677         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
15678         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
15679         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
15680         * as/mcs51/Makefile.aslink: new module strcmpi
15681         * as/mcs51/Makefile.asx8051: new module strcmpi
15682         * as/mcs51/Makefil.bcc: new module strcmpi
15683         * as/mcs51/Makefile.in: new module strcmpi
15684         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
15685
15686 2003-01-26    <johan AT balder>
15687
15688         * src/SDCCglue.c: reverted back to 1.124
15689         * src/SDCCast.c: reverted back to 1.156
15690         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
15691
15692 2003-01-25    <johan AT balder>
15693
15694         * src/SDCCglue.c: A better fix for bug #661910
15695         * src/SDCCast.c: A better fix for bug #661910
15696         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
15697
15698 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
15699
15700         * src/Makefile.in: remove spawn.o
15701         * src/SDCCmain.c: remove spawn.h
15702         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
15703         * src/spawn.c: removed
15704         * src/spawn.h: removed
15705         * support/regression/ports/ds390/spec.mk: link with -r
15706
15707 2003-01-24    <johan AT CP255758-A>
15708
15709         * src/ds390/gen.c (aopOp): fixed bug #667458
15710         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
15711         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
15712         (createIvalCharPtr): an ival doesn't always have a storage class anymore
15713
15714 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
15715
15716         * src/mcs51/peeph.def: better assembler identation by Frieder
15717         * src/mcs51/gen.c: better assembler identation by Frieder
15718
15719 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
15720
15721         * as/z80/string.h: removed for gcc 3.2
15722         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
15723         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
15724
15725 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
15726
15727         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
15728         * src/SDCCpeeph.c (replaceRule): fix bug #663503
15729         * support/regression/Makefile: separate temp files for ports
15730         * support/regression/generate-cases.py: separate temp files for ports
15731         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
15732         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
15733
15734 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
15735
15736         * moved tinitalk to device/examples/ds390
15737
15738 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
15739
15740         * as/mcs51/lkmem.c: rflag is for DS390
15741         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
15742         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
15743                          (linkEdit): move mem- and map-files the same way as ihx-files
15744         * src/z80/main.c (_setDefaultOptions): removed --generic
15745         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
15746         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
15747         * src/pic/glue.c (picglue): --c1mode works again
15748         * src/pic16/glue.c (pic16glue): --c1mode works again
15749         * src/asm.c (printCLine): fix #660034
15750
15751 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
15752
15753         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
15754         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
15755         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
15756         * as/mcs51/lkmem (summary): better fix for sp problem
15757         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
15758         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
15759         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
15760                                               remove --stack-after-data
15761
15762 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
15763
15764         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
15765         * src/SDCCutil.c (join): ugly bug: missing '\0'
15766         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
15767
15768 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
15769
15770         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
15771         * src/port.h: typo
15772         * src/pic/main.c (_asmCmd): gpasm supports -o
15773         * src/z80/main.c: more general macros
15774         * device/lib/Makefile.in: remove intermediate files
15775
15776 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
15777
15778         * .version: Bumped version number to 2.3.3
15779         * src/SDCCBBlock.c: new option -o
15780         * src/SDCCglobl.h: new option -o
15781         * src/SDCCglue.c: new option -o
15782         * src/SDCCmain.c: new option -o
15783         * src/asm.c: new option -o
15784         * src/ds390/main.c: new option -o
15785         * src/pic/glue.c: new option -o
15786         * src/pic/pcode.c: new option -o
15787         * src/pic/ralloc.c: new option -o
15788         * src/pic16/glue.c: new option -o
15789         * src/pic16/pcode.c: new option -o
15790         * src/pic16/ralloc.c: new option -o
15791         * src/z80/main.c: new option -o
15792         * device/lib/Makefile.in: use -o
15793         * support/regression/ports/ds390/spec.mk: use -o
15794         * support/regression/ports/gbz80/spec.mk: use -o
15795         * support/regression/ports/mcs51/spec.mk: use -o
15796         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
15797         * support/regression/ports/z80/spec.mk: use -o
15798         * support/regression/ports/ucz80/spec.mk: use -o
15799         * support/regression/ports/xa51/spec.mk: use -o
15800         * support/regression/fwk/lib/timeout.c: fix usage string
15801
15802 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
15803         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
15804
15805 2003-01-07    <johan AT balder>
15806
15807         * src/SDCCast.c (decorateType): fixed bug #600035
15808
15809 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
15810         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
15811         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
15812         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
15813         * src/pic/pcode.c: outcommented unused variable to remove warnings
15814         * src/pic/ralloc.c: outcommented unused variable to remove warnings
15815
15816 2003-01-06    <karl AT turbobit.com>
15817         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
15818    regression tests.
15819
15820 2003-01-06    <johan AT balder>
15821
15822         * src/SDCCicode.c: fixed array add
15823
15824 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
15825         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
15826         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
15827
15828 2003-01-04    <johan AT balder>
15829
15830         * src/SDCCval.c (getNelements): fixed the initialized array of structures
15831
15832 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15833         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
15834
15835 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
15836         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
15837         * support/regression/tests/bug-524697.c: fit mem usage into 8032
15838
15839 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
15840         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
15841
15842 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
15843         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
15844
15845 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
15846         * src/mcs51/main.c: removed {bindir}{sep} from aslink
15847
15848 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15849
15850     * in /sdcc/as/mcs51/ changed these files in order to create an
15851     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
15852     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
15853     following files to include the previous two files: aslink.dsp,
15854     Makefile.aslink, Makefile.bcc, and Makefile.in.
15855
15856     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
15857     .adb instead of .cdb
15858
15859 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15860
15861         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
15862         value from option --iram-size.
15863
15864 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15865
15866         * /sdcc/as/mcs51/lklist.c: added boundary check before using
15867         dram[] array.
15868
15869 2002-09-18    <wiml AT hhhh.org>
15870
15871         * SDCClrange.h: exposed setFromRange() and setToRange()
15872         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
15873           packRegsForAccUse() (bug 542397)
15874         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
15875           multiple times and emitting the fetch operations more than once
15876           added aopGetUsesAcc() function to allow binary operators to
15877           fetch their operands in the correct order; made genMinus() emit
15878           compact code for X = LITERAL - Y
15879
15880 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15881         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
15882         sprintf() in line 1267.
15883
15884 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15885         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
15886         like ports.
15887
15888 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15889         Changes to aslink (All the changes are marked with 'JCF'):
15890
15891         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
15892         summary().
15893
15894         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
15895         area BSEG.  Also moves, if possible, the DATA area down into the internal
15896         ram so more space is available.
15897
15898         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
15899         sflag.
15900
15901         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
15902         not bytes.  Function summary() which creates a memory usage summary
15903         file with extension .mem.  Reports of overlaping stack and small stack
15904         size.  If the space for the stack is less than 16 bytes aslink trows a
15905         warning.
15906
15907         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
15908         the 8051.  Option 'y' for memory summary output file.
15909
15910         Changes to sdcc (All the changes are marked with 'JCF'):
15911
15912         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
15913
15914         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
15915         overlaying area for it (uses RegBankUsed[4]).
15916
15917         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
15918         bank zero as used by default.  By default aslink locates the stack
15919         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
15920         the creation of the .mem file.  Delegates the allocation of data area
15921         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
15922         the begining of the stack area to aslink.
15923
15924         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
15925         glue() in SDCCglue.c creates an area for it.
15926
15927 2002-09-03  Borut Razem <borut.razem AT siol.net>
15928         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
15929         sdcc/src/pic/glue.c:
15930         introduced atexit() handler for teporay files removal in case of
15931         errors, assertions, ...
15932
15933 2002-08-29  Borut Razem <borut.razem AT siol.net>
15934         * sdcc/support/cpp2/auto-host_vc_in.h:
15935         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
15936         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
15937         Maybe there is a similar problem with BORLANDC? It should be checked!
15938
15939         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
15940         corrected improper use of assert: the assignment to clr variable was done inside the assert.
15941         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
15942         was not executed, and the compiler (cl) launched a warning:
15943         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
15944
15945 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
15946         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
15947
15948 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
15949         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
15950
15951         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
15952           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
15953           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
15954           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
15955           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
15956           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
15957           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
15958         - added Release configuration in VS projects
15959         - review of compiler an linker options
15960         - VC .exe files are generated in bin_vc directory, not to interfere
15961           with binaries generated from other projects (cygwin, mingw, bcc ...)
15962
15963         * sdcc/src/yacc.dsp: added
15964
15965         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
15966         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
15967         and insert the version number definitions from .version
15968
15969         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
15970
15971         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
15972         added - genarate auto-host.h using auto-host_vc_in.h as template
15973
15974         * sdcc/sdcc_vc.h,
15975         removed from CVS, generated automatically
15976
15977 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
15978         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
15979
15980 2002-08-11  Borut Razem <borut.razem AT siol.net>
15981         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
15982
15983 2002-08-10  Borut Razem <borut.razem AT siol.net>
15984         * src/SDCCmain.c (main):
15985         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
15986         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
15987         The consequence was that some temporary files were not removed.
15988
15989         * src/SDCCglue.c:
15990         unification of code in functions tempfilename() and tempfile():
15991         function tempnam() is defined in Visual Studio 6.0 and .NET
15992
15993         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
15994
15995         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
15996           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
15997         - removed compiler command line option /WX: Treats all warnings as errors
15998         - update a list of source files, included into the project
15999
16000         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
16001           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
16002         changed project type to Generic Project so that can be correcly converted to VS.NET project
16003
16004         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
16005
16006         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
16007
16008         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
16009
16010         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
16011         added return 0 statements after assert() to make compiler happy
16012
16013         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
16014         added newline in the def file to keep MSC compiler satisfied
16015
16016         * sdcc/src/z80/gen.c:
16017         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
16018           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
16019         - solved MSC error in function aopDump()
16020
16021         * sdcc_vc.h: define PREFIX as "\\sdcc"
16022
16023 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
16024         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
16025
16026 2002-06-22  Scott Dattalo <scott AT dattalo.com>
16027         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
16028         - Rewrote the register banking algorithm.
16029         - Added pCode live-range analysis to registers (for now, only non-used and
16030         singly-used registers optimized away)
16031
16032         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
16033
16034         * 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.
16035
16036 2002-05-10  Scott Dattalo <scott AT dattalo.com>
16037         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
16038
16039 2002-04-22  Michael Hope  <michaelh AT vroom>
16040
16041         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
16042
16043         * configure.in (DD_COPT): Added include support required for gbdk.
16044
16045         * .version: Bumped version number just to increase it.
16046
16047         * src/SDCCmain.c: Added -nostdinc to the default options.
16048
16049 2002-04-15  Michael Hope  <michaelh AT vroom>
16050
16051         * device/lib/z80/printf.c (sprintf): Added.
16052
16053         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
16054
16055         * src/z80/peeph.def: Added transpose redundent load rule.
16056
16057         * src/z80/main.c: Added force callee saves for jaune.
16058
16059         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
16060
16061         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
16062
16063 2002-03-28  Johan Knol  <johan AT balder>
16064
16065         * src/SDCCval.c: fixed bug #532436
16066
16067 2002-03-14  Scott Dattalo <scott AT dattalo.com>
16068         * /src/port.h:
16069         Added "char *Processor" field to the port structure.
16070
16071         * /src/SDCCmain.c:
16072         Added -p option. Allows port dependent processor to be specified.
16073
16074         * all ports:
16075         Initialized the new field char *Processor field to NULL in all ports
16076
16077         * /src/pic/*:
16078         Compiler generated registers for interrupt context saving
16079         were not getting allocated.
16080
16081 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
16082
16083         * /src/SDCCast.c:
16084         Fixed left shift. Will promote the left side of a left shift
16085         if a) left shifting more than size of operand or b) when assigned
16086         to something size > size of left side
16087
16088 2002-03-14  Scott Dattalo <scott AT dattalo.com>
16089         * src/pic/*
16090         tons of changes. Register allocation has been
16091         rewritten. Added customization for the various PICs. Flow
16092         analysis is restructured. ...
16093
16094         * src/pic/device.h:
16095         Added
16096
16097         * src/pic/device.c:
16098         Added. device.c is a PIC port hack to accomodate variations
16099         in PIC devices.
16100
16101 2002-03-13  Michael Hope  <michaelh AT vroom>
16102
16103         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
16104
16105 2002-03-04  johanknol  <johanknol AT manik>
16106
16107         * /src/SDCCval.c: fixed
16108
16109         const unsigned char arr[][2] = { { 0, 1 } };
16110         t18.c:1: error: Initializer element is not constant
16111
16112 2002-03-04  bela  <bela AT manik>
16113
16114         * /device/include/mcs51reg.h:
16115         ds89c420 register definition update
16116
16117 2002-03-03    <johan AT FRIJA>
16118
16119         * support/Util/SDCCerr.c: did something, but don't no why anymore
16120
16121         * support/regression/tests/bug-524691.c: made it a little less shy
16122
16123         * src/SDCCast.c (decorateType): fixed bug #524697
16124
16125         * src/SDCCast.c: made some lineno improvements
16126
16127         * src/SDCCval.c (getNelements): changed warning to error
16128
16129         * src/SDCCglue.c (printIvalArray): changed warning to error
16130
16131         * src/SDCCicode.c: fixed a warning for mingw
16132
16133         * src/SDCCast.c (decorateType): fixed the << promotion for ops
16134
16135         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
16136
16137 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
16138
16139         * src/ds390/peeph.def:
16140         Added some more peephole rules
16141
16142         * src/ds390/gen.c: Various fixes & enhancements
16143
16144         * src/SDCClrange.c, src/SDCClrange.h:
16145         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
16146
16147         * src/ds390/ralloc.c:
16148         various fixes & enhancements (ds390) specific
16149
16150         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
16151         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
16152         from rallocs.
16153
16154         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
16155
16156 2002-03-02    <johan AT FRIJA>
16157
16158         * src/SDCCast.c (decorateType): fixed bug #524708
16159
16160         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
16161
16162         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
16163
16164 2002-03-01  Michael Hope  <michaelh AT vroom>
16165
16166         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
16167
16168         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
16169
16170 2002-03-01    <johan AT FRIJA>
16171
16172         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
16173
16174         * src/SDCCast.c (decorateType): fixed bug #524209
16175
16176         * src/SDCCval.c (valNot): fixed bug #524195
16177
16178 2002-02-26    <johan AT balder>
16179
16180         * src/xa51/gen.c: fixed a warning
16181
16182         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
16183
16184         * src/SDCCast.c (decorateType): fixed bug #522534
16185
16186 2002-02-23    <johan AT balder>
16187
16188         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
16189
16190 2002-02-22    <johan AT balder>
16191
16192         * src/SDCCast.c: fixed bug #514865
16193
16194         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
16195
16196 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
16197
16198         * sdcc/src/SDCCloop.c:
16199         Previous fix was not good. basic blocks that have "break" or "return" are
16200         not really partof a loop , but live ranges used in these blocks should
16201         be live thru the entire loop, so set partOfLoop but don't add them to
16202         loop region
16203
16204 2002-02-21    <johan AT FRIJA>
16205
16206         * src/SDCCcse.c: fixed bug #514308
16207
16208 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
16209
16210         * src/SDCCloop.c:
16211         Fixed BUG #519583. If a conditional block ended in a return/break
16212         statement inside a loop, it was not being considered part of the loop.
16213
16214         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
16215
16216 2002-02-10  Karl Bongers <karl AT turbobit.com>
16217
16218         * debugger/*:
16219         Fixed up SDCDB debugger somewhat.  Updated debugger/README
16220         with lots of comments and notes.
16221
16222         * device/examples/test2.c:
16223         Fix bug, "red" variable not being initialized(compiler complained).
16224
16225         * device/examples/Makefile, examples/test3.c:
16226         Add Makefile in device/examples folder, compiles test3.c
16227         for use as a multiple module SDCDB test case.
16228
16229         * sim/ucsim/cmd.src/cmdset.cc:
16230         Took out debug printfs in ucsim "next" command.
16231
16232         * sim/ucsim/xa.src:
16233         Karl and Johan start ucsim XA support.  Most dissassembly working,
16234         about 75% emulation done(plenty of work remaining).
16235
16236         * sim/ucsim/z80.src:
16237         Add Z80 support to ucsim, add test-ucz80 regression test,
16238         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
16239         Notice z80 compiler fails on examples/test3.c/crc code.
16240
16241 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
16242
16243         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
16244         Added support for --parms-in-bank1
16245
16246         * src/ds390/peeph.def:
16247         added a few more peephole optimzations
16248
16249         * src/ds390/main.c:
16250         1) added __builtin_inp & __builtin_outp used to read in data of given length
16251            from a memory mapped port
16252         2) added __builtin_memcmp
16253         3) added __builtin_swapw swap bytes of a short
16254
16255         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
16256         1) handle multiple send & receives from register bank1
16257         2) ralloc can now allocate DPTR1 to some liveRanges
16258
16259         * src/SDCCsymt.c, src/SDCCsymt.h:
16260         changes to handle multiple sends & receives
16261
16262         * src/SDCCptropt.h:
16263         added some pointer arithmetic optimization
16264
16265         * src/SDCCptropt.c:
16266         added some pointer arithmetic optimizations but not stable yet so not
16267         called from anywhere (will get this working shortly)
16268
16269         * src/SDCCopt.c: fixed for multiple sends & receives
16270
16271         * src/SDCCmain.c:
16272         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
16273         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
16274            set preprocessor defines (depending on options)
16275
16276         * src/SDCCicode.c, src/SDCCicode.h:
16277         changes made to handle multiple sends & receives
16278
16279         * src/SDCCglobl.h:
16280         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
16281
16282         * src/SDCCcse.c, src/SDCCcse.h:
16283         added function findbackward def (to be used in upcoming optimization)
16284
16285         * src/SDCCcflow.c, src/SDCCcflow.h:
16286         added function returnAtEnd - to determine if a basic block terminates with
16287         a RETURN iCode
16288
16289         * src/SDCCast.c, src/SDCCast.h:
16290         added option parms-in-bank1
16291
16292         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
16293         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
16294         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
16295         adjusted for --parms-in-bank1 option
16296
16297         * device/include/string.h:
16298         donot redefine "reentrant" keyword
16299
16300         * device/include/ds80c390.h: Added some more SFRs
16301
16302 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
16303
16304         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
16305
16306 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
16307
16308         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
16309
16310 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
16311
16312         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
16313
16314 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
16315
16316         * Added --xram-movc option
16317
16318 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
16319
16320         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
16321
16322 2002-01-11  Johan Knol
16323
16324         * Added math lib of Jesus Calvino-Fraga
16325
16326 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
16327
16328         * src/SDCCmain.c (processFile): fix processing of ../../src.c
16329         * support/regression/Makefile: new target test-mcs51-stack-auto
16330         * support/regression/ports/mcs51-stack-auto/spec.mk: added
16331
16332 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
16333
16334         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
16335
16336 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
16337
16338         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
16339
16340 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
16341
16342         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
16343
16344         * src/SDCCglue.h: add definition for printIvalChar()
16345
16346 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
16347
16348         * src/SDCCast.c: fix #498138 by Johan
16349
16350         * src/SDCCglue.c: fix #498138 by Johan
16351
16352 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
16353
16354         * support/regression/Makefile: fix clean
16355
16356         * support/regression/ports/ds390/support.c: fix transmission of last character
16357
16358 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
16359
16360         * /sdcc/src/ds390/gen.c:
16361         a) improved computing address of stack variable
16362         b) took out some #if 0 code
16363         c) improved parmBytes adjustment
16364         d) improved genPlusIncr & genMinusIncr
16365         e) genCmp could generate bad code (when left assigned to DPTR)
16366         f) Fixed bug in hasInc
16367
16368         * /sdcc/src/ds390/ralloc.c:
16369         a) packRegsForSupport could mess up live information (Fixed)
16370         b) packRegsDPTRuse could be incorrect for left & right shift
16371
16372         * /sdcc/src/mcs51/ralloc.c:
16373         packRegsForSupport could mess up the live information (Fixed)
16374
16375         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
16376
16377         * /sdcc/src/SDCCast.c:
16378         can reverse a loop even if function call is present as long
16379         as the loop control variable is local & is not passed as parameter
16380
16381 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16382
16383         * /sdcc/ChangeLog: *** empty log message ***
16384
16385         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
16386         More builtin function additions for TININative
16387
16388         * /sdcc/src/ds390/ralloc.c:
16389         Had broken the regression testsuite
16390
16391         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
16392
16393         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
16394         Added funcattr hasStackParms will be set for reentrant functions when there
16395         are paramteres on the stack, this helps in minimizing frame pointer generation
16396         typeFromStr can handle function pointers now
16397
16398         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
16399         *** empty log message ***
16400
16401 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16402
16403         * /src/ds390/gen.c, /src/ds390/main.c:
16404         More builtin function additions for TININative
16405
16406         * /src/ds390/ralloc.c:
16407         Had broken the regression testsuite
16408
16409         * /src/SDCCast.c: Fixed a bug in dumptree
16410
16411         * /src/SDCCsymt.c, /src/SDCCsymt.h:
16412         Added funcattr hasStackParms will be set for reentrant functions when there
16413         are paramteres on the stack, this helps in minimizing frame pointer generation
16414         typeFromStr can handle function pointers now
16415
16416         * /doc/builtins.txt, /doc/TININative.txt:
16417         *** empty log message ***
16418
16419
16420 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16421
16422         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
16423         ALPHA version for -mTININative
16424
16425         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
16426         updated to reflect changes in the port structure
16427
16428         * /src/port.h:
16429         added function do_assemble (similar to do_link) if non-null this function
16430         will be called to do assembly (-mTININative) requires a multi command
16431         assembly
16432         added function genAssemblerEnd will be called to generate assembler Epilogue
16433
16434         * /src/SDCCsymt.c:
16435         added _JavaNative to debug info printing
16436
16437         * /src/SDCCmain.c: added option --tini-libid
16438         added port->do_assemble function (-mTININative) has a multi command assemble
16439
16440         * /src/SDCCglue.c: Disabled "constExpr" check
16441         added port->genAssemblerEnd function
16442
16443         * /src/SDCCglobl.h: Added option --tini-libid value
16444
16445         * /src/SDCCast.h:
16446         tookout optimizeCompare from the header (has no external references)
16447
16448         * /src/SDCCast.c: made one more function "static"
16449
16450 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
16451
16452         * src/z80/mappings.i: Added z80asm support.
16453
16454         * src/z80/main.c: Added z80asm support on --asm=z80asm
16455
16456         * src/z80/gen.c: Fixed asm portability issues.
16457
16458         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
16459
16460         * src/SDCCglue.c (printExterns): Added global/extern split.
16461
16462 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
16463
16464         * support/regression/Makefile: added test for mcs51 model large
16465
16466         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
16467
16468         * support/regression/ports/gbz80/spec.mk: added -mgbz80
16469
16470 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
16471
16472         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
16473
16474 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
16475
16476         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
16477
16478         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
16479
16480 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
16481
16482         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
16483
16484         * support/regression/tests/simplefloat.c: Port to mcs51.
16485
16486 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
16487         * support/regression/tests/bug-485362.c: Added.
16488
16489         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
16490
16491         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
16492
16493         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
16494
16495         * src/z80/gen.c (aopDump): Added a dump function.
16496
16497 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
16498         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
16499
16500         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
16501
16502         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
16503
16504         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
16505
16506         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
16507
16508         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
16509
16510         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
16511
16512         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
16513
16514         * support/regression/ports/ds390/support.c: Use tinibios.
16515
16516         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
16517
16518 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
16519
16520         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
16521         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
16522
16523         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
16524
16525         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
16526
16527 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
16528
16529         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
16530
16531         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
16532         (packRegsForIYUse): Created and optimised.
16533
16534 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
16535
16536         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
16537 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
16538
16539         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
16540
16541         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
16542
16543         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
16544
16545 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
16546
16547         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
16548
16549         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
16550
16551 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
16552
16553         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
16554
16555         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
16556
16557         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
16558
16559 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
16560
16561         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
16562         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
16563         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
16564
16565         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
16566
16567         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
16568         (genNotFloat): Added.
16569         (genUminusFloat): Added.
16570
16571         * device/lib/z80/Makefile: Added floating pt stubs.
16572
16573         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
16574
16575         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
16576
16577         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
16578
16579 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
16580
16581         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
16582
16583         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
16584
16585         * sdcc/support/regression/Makefile: Add port ds390.
16586
16587         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
16588
16589         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
16590
16591         * sdcc/support/regression/ports/ds390/spec.mk: Added.
16592
16593         * sdcc/support/regression/ports/ds390/support.c: Added.
16594
16595         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
16596
16597         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
16598
16599         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
16600
16601 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
16602
16603         * device/include/malloc.h: Added z80 and gbz80 support.
16604
16605         * device/lib/gbz80/heap.s: Added.
16606
16607         * device/lib/z80/heap.s: Added.
16608
16609         * device/lib/malloc.c: Added z80 and gbz80 support.
16610
16611         * support/regression/tests/malloc.c (testMalloc): Added.
16612
16613         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
16614
16615         * support/regression/tests/bug-478094.c: Added.
16616
16617         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
16618
16619 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
16620
16621         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
16622
16623         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
16624
16625         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
16626
16627         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
16628
16629         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
16630
16631 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
16632
16633         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
16634
16635 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
16636
16637         * support/regression/tests/bug-477927.c: Added.
16638
16639         * src/z80/peeph.def: Added minor rules.
16640
16641         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
16642
16643         * src/z80/peeph.def: Added jump optimisation modification.
16644
16645 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
16646
16647         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
16648
16649 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
16650
16651         * support/regression/tests/funptrs.c: Added.
16652
16653 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
16654
16655         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
16656
16657 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
16658
16659         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
16660
16661         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
16662
16663         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
16664         (movLeft2ResultLong): Created.
16665
16666         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
16667         (joinPushes): Added.  Joins two char pushes into a word push.
16668
16669 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
16670
16671         * support/cpp2/Makefile.in (install): Added creation of dest dir.
16672
16673         * support/makebin/Makefile (install): Added creation of dest dir.
16674
16675 2001-10-24 Karl Bongers <karl AT turbobit.com>
16676
16677         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
16678
16679 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
16680
16681         * src/z80/ralloc.c: Turned off faulty pack for one use.
16682
16683         * src/z80/peeph-gbz80.def: Removed redundent restart options.
16684
16685         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
16686
16687 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
16688
16689         * support/regression/Makefile: Improved clean
16690
16691         * support/regression/ports/gbz80/spec.mk: Added clean
16692
16693         * support/regression/ports/host/spec.mk: Added clean
16694
16695         * support/regression/ports/z80/spec.mk: Added clean
16696
16697         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
16698
16699         * support/regression/ports/mcs51/timeout.c: little improvements
16700
16701 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
16702
16703         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
16704
16705         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
16706
16707         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
16708
16709 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
16710
16711         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
16712
16713         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
16714
16715 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
16716         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
16717
16718         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
16719
16720         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
16721
16722         * src/mcs51/main.c (_linkCmd): Added bin path to command.
16723
16724         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
16725
16726         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
16727
16728         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
16729
16730         * support/regression/tests/longor.c: Added.
16731
16732 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
16733
16734         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
16735
16736         * as/mcs51/aslink.h: define PATH_MAX
16737
16738         * as/mcs51/asm.h: define PATH_MAX
16739
16740         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
16741
16742         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
16743
16744         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
16745
16746         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
16747
16748         * src/SDCCglobl.h: define PATH_MAX
16749
16750         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
16751
16752         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
16753
16754 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
16755
16756         * src/z80/gen.c (gencjneshort): Fixed
16757
16758         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
16759
16760 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
16761
16762         * support/regression/tests/bug-469671.c: Added.
16763
16764         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
16765
16766 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
16767
16768         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
16769
16770         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
16771
16772 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
16773
16774         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
16775
16776         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
16777
16778         * src/device/lib/_mullong.c : removed hint: nooverlay bug
16779
16780         * src/device/lib/_divuint.c : removed hint: nooverlay bug
16781
16782         * src/device/lib/_divulong.c: removed hint: nooverlay bug
16783
16784         * src/device/lib/_moduint.c : removed hint: nooverlay bug
16785
16786         * src/device/lib/_modulong.c: removed hint: nooverlay bug
16787
16788 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
16789
16790         * 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.
16791
16792         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
16793
16794         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
16795
16796 2001-10-07    <johan AT FRIJA>
16797
16798         * device/lib/gets.c (gets): fixed the return value.
16799
16800 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
16801         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
16802
16803         * 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.
16804
16805         * 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.
16806
16807         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
16808
16809         * src/pic/gen.c: Removed Safe_strdup.
16810
16811         * configure.in: Added option to enable libgc support.
16812
16813         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
16814         (bitVectUnion): Optimised.
16815         (bitVectIntersect): Optimised.
16816         (bitVectBitsInCommon): Optimised.
16817         (bitVectCplAnd): Optimised.
16818
16819         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
16820
16821 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16822
16823         * src/SDCCmain.c: distinguish between assembler debug and plain options
16824
16825         * src/avr/main.c:   remove standard assembler options
16826
16827         * src/ds390/main.c: remove standard assembler options
16828
16829         * src/mcs51/main.c: remove standard assembler options
16830
16831         * src/port.h: removed "PENDING" comment
16832
16833 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16834
16835         * src/device/lib/_mulint.c  : new, with assember functions
16836
16837         * src/device/lib/_mullong.c : new, with assember functions
16838
16839         * src/device/lib/_divuint.c : with assember functions
16840
16841         * src/device/lib/_divsint.c : with assember functions
16842
16843         * src/device/lib/_divulong.c: with assember functions
16844
16845         * src/device/lib/_divslong.c: with assember functions
16846
16847         * src/device/lib/_moduint.c : with assember functions
16848
16849         * src/device/lib/_modsint.c : with assember functions
16850
16851         * src/device/lib/_modulong.c: with assember functions
16852
16853         * src/device/lib/_modslong.c: with assember functions
16854
16855         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
16856
16857         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
16858
16859         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
16860                                       replaced _mululong.c and _mulslong.c by _mullong.c
16861
16862 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16863
16864         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
16865
16866 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
16867
16868         * src/SDCCglue.c: test, if win32api is available for MINGW
16869
16870 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
16871
16872         * src/SDCCsymt.c: no more _modifier in printTypeChain()
16873         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
16874         * support/regression/ports/gbz80/spec.mk: removed GENERIC
16875         * support/regression/ports/host/spec.mk: removed GENERIC
16876         * support/regression/ports/mcs51/spec.mk: removed GENERIC
16877         * support/regression/ports/z80/spec.mk: removed GENERIC
16878
16879 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
16880
16881         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
16882
16883         * support/regression/tests/bug-467035.c: Created.
16884
16885 2001-10-01    <johan AT FRIJA>
16886
16887         * src/SDCC.y: fixed bug #466586 part 1
16888
16889 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
16890
16891         * SDCCicode.c: z80 has no generic pointers
16892         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
16893
16894 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
16895
16896         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
16897
16898 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
16899
16900         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
16901
16902         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
16903
16904 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
16905
16906         * configure.in: Fixed up so that ucsim is only configured once.
16907
16908         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
16909
16910         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
16911         (getPathDifference): As above.
16912
16913         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
16914
16915         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
16916
16917 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
16918         * .version: Updated to 2.3.1
16919
16920         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
16921         Added copyright header.
16922
16923         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
16924         (assemble): Added support for macro based assembler commands.
16925         (linkEdit): Added support for macro based linker commands.
16926         (preProcess): Changed the pre-processor to use macros.
16927         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
16928         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
16929
16930         * device/lib/z80/crt0.s: Added module name for debugging.
16931
16932 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
16933
16934         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
16935
16936         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
16937
16938         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
16939
16940         * src/Makefile.in: Added SDCCmacro and SDCCutil
16941
16942 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
16943
16944         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
16945
16946 2001-09-16    <johan AT FRIJA>
16947
16948         * 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.
16949
16950 2001-09-15    <johan AT FRIJA>
16951
16952         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
16953         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
16954
16955 2001-09-11    <johan AT FRIJA>
16956
16957         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
16958
16959 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
16960
16961         * support/regression/tests/bug-460444.c: Added test case.
16962
16963         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
16964         (genCast): Added justification for all of the asserts.
16965
16966 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
16967
16968         * support/regression/support.c: _xdata replaced by xdata
16969
16970         * support/regression/spec.mk: removed _generic
16971
16972 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
16973
16974         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
16975
16976         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
16977         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
16978
16979         * src/z80/peeph.def: Added a rule to optimise shift then compare.
16980
16981         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
16982
16983         * support/regression/tests/bug-460010.c: Added test case.
16984
16985         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
16986
16987 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
16988
16989         * support/regression/Makefile: inter-port-clean adjusted for mcs51
16990
16991         * support/regression/testfwk.c: removed workaround for bug #436344
16992
16993         * support/regression/tests/bp.c: use less memory with mcs51
16994
16995         * support/regression/tests/bug-441448.c: use less memory
16996
16997         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
16998
16999         * support/regression/collate-results.py: typo
17000
17001 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
17002
17003         * support/regression/tests/fetchoverlap.c: Added new test case.
17004
17005         * support/regression/tests/bp.c: Added new test case.
17006
17007         * support/regression/tests/bug-448984.c: Added new test case.
17008
17009         * support/regression/tests/pow2shifts.c: Added new test case.
17010
17011         * src/z80/gen.c: Turned off the noise it normally generates for the release.
17012         (genlshTwo): Fixed right shift for count > 8.
17013
17014         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
17015
17016 2001-09-08    <johan AT FRIJA>
17017
17018         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
17019
17020 2001-09-07    <johan AT FRIJA>
17021
17022         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
17023
17024         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
17025
17026 2001-09-06    <johan AT FRIJA>
17027
17028         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
17029         * bernhard noted me at this: "() equals to (void)" (1.38)
17030
17031 2001-09-05    <johan AT FRIJA>
17032
17033         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
17034
17035 2001-09-04    <johan AT FRIJA>
17036
17037         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
17038
17039
17040 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
17041
17042         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
17043
17044 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
17045
17046         * link/z80/aslink.h: Fixed path for PATH_MAX
17047
17048 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
17049
17050         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
17051
17052         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
17053
17054         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
17055
17056         * 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.
17057
17058 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
17059
17060         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
17061         (genCmp): Fixed up genCmp for the GB with longs.
17062
17063         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
17064
17065         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
17066
17067         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
17068
17069         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
17070
17071 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
17072
17073         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
17074
17075 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
17076
17077         * 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.
17078
17079         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
17080
17081 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
17082
17083         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
17084
17085         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
17086
17087 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
17088
17089   * sim/ucsim/configure:    little improvement of Cygwin-detection
17090   * sim/ucsim/configure.in: little improvement of Cygwin-detection
17091   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
17092   * support/regression/tests/bug-221100.c: small changes for mcs51
17093   * support/regression/tests/bug-221168.c: small changes for mcs51
17094   * support/regression/tests/bug-227710.c: small changes for mcs51
17095   * support/regression/tests/staticinit.c: small changes for mcs51
17096   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
17097   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
17098   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
17099
17100 $Revision$