* device/lib/Makefile.in: allow whitespaces at the end of lines in
[fw/sdcc] / ChangeLog
1 2009-01-01 Borut Razem <borut.razem AT siol.net>
2
3         * as/link/asxxxx_config.h.in:
4           fixed warning: extra tokens at end of #endif directive
5         * src/z80/peep.c:
6           fixed warning: suggest parentheses around && within ||
7         * device/lib/Makefile.in: allow whitespaces at the end of lines in
8           ports.build, in order to make it work on cygwin - it seems to be a
9           bug in cygwin grep: CR is not treated as part of end-of-line
10
11 2008-12-31 Borut Razem <borut.razem AT siol.net>
12
13         * configure, configure.in, config.dsp, config_vc.awk,
14           as/link/asxxxx_config.h.in, as/link/hc08/lkelf.c, as/link/aslink.h,
15           as/link/hc08/Makefile.in, as/link/mcs51/Makefile.in:
16           introduced asxxxx_config.h.in
17
18 2008-12-30 Philipp Klaus Krause <pkk AT spth.de>
19
20         * src/z80/gen.c,
21           src/z80/peeph-z80.def:
22           Minor addition improvement.
23
24 2008-12-30 Raphael Neider <rneider AT web.de>
25
26         * as/link/hc08/lkelf.c, as/link/lkaomf51.c, as/link/lklibr.c,
27           as/link/z80/lkgb.c, debugger/mcs51/cmd.c, sim/ucsim/utils.cc,
28           src/SDCCasm.c, support/Util/dbuf_string.c, support/cpp/c-ppoutput.c,
29           support/cpp/libcpp/lex.c, support/cpp/libcpp/macro.c,
30           support/librarian/sdcclib.c, support/makebin/makebin.c:
31           partially revert changes from r5293..r5295
32
33 2008-12-29 Philipp Klaus Krause <pkk AT spth.de>
34
35         * src/z80/peeph-z80.def:
36           Minor peephole improvement.
37
38 2008-12-29 Raphael Neider <rneider AT web.de>
39
40         * src/pic/pcode.c (insertBankSel, FixRegisterBanking): emit
41           incorrectly discarded BANKSELs
42
43 2008-12-29 Philipp Klaus Krause <pkk AT spth.de>
44
45         * support/regression/tests/memory.c:
46           Added simple test for memset(), memcpy() and memmove()
47
48 2008-12-29 Borut Razem <borut.razem AT siol.net>
49
50         * sdcc/support/scripts/sdcc.nsi: removed $INSTDIR\lib\src\z80\*.c
51
52 2008-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
53
54         * src/mcs51/peeph.def (177.e): replaced notVolatile(%3) with
55           operandsNotRelated(%1 %3), had to change (a)r%1 to (a)%1 for this to work
56           (177.j): added new rule
57         * src/SDCCsymt.h: added RESULT_TYPE_GPTR
58         * src/SDCCast.c (processParms): use RESULT_TYPE_GPTR for generic ptr parms,
59           (decorateType CAST): propagate storage class to generic pointer results
60
61 2008-12-27 Philipp Klaus Krause <pkk AT spth.de>
62
63         * device/lib/z80/string.c,
64           device/lib/z80/printf.c,
65           device/lib/z80/mul.s:
66           z80 library cleanup
67         * src/z80/gen.c:
68           Fixed code generation bug exposed by builtin memcpy().
69
70 2008-12-27 Philipp Klaus Krause <pkk AT spth.de>
71
72         * device/lib/_memcpy.c:
73           fixed conflict with builtin memcpy()
74
75 2008-12-26 Borut Razem <borut.razem AT siol.net>
76
77         * support/librarian/sdcclib.c:
78           fixed bug 2466950: "sdcclib broken"
79           by removing fgets return value check
80
81 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
82         * src/z80/main.c,
83           src/z80/gen.c,
84           device/include/string.h: Implemented RFE #1914254
85
86 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
87         * device/lib/z80/Makefile.in,
88           device/lib/Makefile.in,
89           device/lib/z80/memmove.s: Implemented RFE #1914256
90
91 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
92
93         * src/z80/peeph-z80.def: fixed a bug in peephole 0zf
94         * src/z80/peep.c: improved checks for unused data
95         * src/z80/gen.c,
96           src/z80/main.c: Implemented RFE #1899189
97
98 2008-12-25 Borut Razem <borut.razem AT siol.net>
99
100         * support/regression/Makefile.in:
101           add -I$(INC_DIR) to SDCCFLAGS only if INC_DIR is defined
102
103 2008-12-25 Philipp Klaus Krause <pkk AT spth.de>
104
105         * src/z80/peeph-z80.def: minor peephole improvements
106
107 2008-12-21 Borut Razem <borut.razem AT siol.net>
108
109         * support/librarian/sdcclib.c: fixed build failure on Mac OS X
110           due to redefinition of symbol __assert
111           sdcclib.c:53:1:warning: "__assert" redefined
112           /Xcode2.5/SDKs/MacOSX10.4u.sdk/usr/include/assert.h:80:1:
113           warning: this is the location of the previous definition
114
115 2008-12-20 Raphael Neider <rneider AT web.de>
116
117         * debugger/mcs51/break.c, debugger/mcs51/cmd.c,
118           debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
119           support/cpp/libcpp/macro.c: fix format string errors
120
121         * sim/ucsim/s51.src/timer2.cc: add clarifying parens
122
123         * src/pic/device.c: partial rewrite using strtok,
124           quieten compiler warnings, adopt SDCC coding style
125
126         * as/link/hc08/lkelf.c, as/link/lkaomf51.c, as/link/lklibr.c,
127           as/link/z80/lkgb.c, as/z80/asout.c, debugger/mcs51/cmd.c,
128           sim/ucsim/utils.cc, src/SDCCasm.c, support/Util/dbuf_string.c,
129           support/cpp/c-ppoutput.c, support/cpp/libcpp/lex.c,
130           support/librarian/sdcclib.c, support/makebin/makebin.c:
131           quieten most compiler warnings
132
133         * sim/ucsim/avr.src/arith_inst.cc: quieten compiler warnings,
134           probably fix operator precedence bug
135
136         * doc/clean.mk: quieten rm if no .lyx is present
137
138 2008-12-19 Borut Razem <borut.razem AT siol.net>
139
140         * doc/sdccman.lyx, doc/random-notes.txt, doc/avr/avr_design.txt,
141           doc/TININative.txt, doc/macro-sys-design.txt, doc/libdoc.txt,
142           doc/README.txt, doc/test_suite_spec.lyx:
143           applied patch 2446381: Dcoumentation spelling correcitons
144           thanks to Steven Borley
145
146 2008-12-16 Raphael Neider <rneider AT web.de>
147
148         * device/include/pic/pic12f629.h,
149           device/include/pic/pic12f675.h,
150           device/lib/pic/libdev/pic12f629.c,
151           device/lib/pic/libdev/pic12f675.c: consolidated, added TRISIO bits
152
153 2008-12-14 Borut Razem <borut.razem AT siol.net>
154
155         * doc/sdccman.lyx, cdbfileformat.lyx, test_suite_spec.lyx:
156           converted to LyX 1.5.7 (\lyxformat 276) format
157
158 2008-12-07 Borut Razem <borut.razem AT siol.net>
159
160         * support/regression/tests/bitfields.c:
161           added test case for bug #2366757
162
163 2008-12-07 Raphael Neider <rneider AT web.de>
164
165         * src/pic16/glue.c (pic16_printIvalBitFields): prevent
166           NULL pointer dereference, closes #2366757
167
168 2008-11-25 Raphael Neider <rneider AT web.de>
169
170         * device/include/pic16/pic16devices.txt,
171           sdcc/src/pic16/device.c,
172           sdcc/src/pic16/device.h: implicitly disable XINST
173           whenever CONFIG4L is set via an additional optional
174           argument to the configword directive in pic16devices.txt
175
176 2008-11-24 Raphael Neider <rneider AT web.de>
177
178         * device/lib/pic16/configure.ac,
179           device/lib/pic16/Makefile.common: fixed quoting issues
180
181         * device/lib/pic16/configure,
182           device/lib/pic16/debug/Makefile.in,
183           device/lib/pic16/libc/Makefile.in,
184           device/lib/pic16/libdev/Makefile.in,
185           device/lib/pic16/libio/Makefile.in,
186           device/lib/pic16/libm/Makefile.in,
187           device/lib/pic16/libsdcc/Makefile.in,
188           device/lib/pic16/Makefile.in,
189           device/lib/pic16/startup/Makefile.in: regenerated
190
191         * src/pic16/main.c (_pic16_finaliseOptions): revert to
192           variant of r5216
193
194 2008-11-24 Raphael Neider <rneider AT web.de>
195
196         * src/pic16/main.c (_pic16_finaliseOptions): do not quote the
197           argument of --asm= or --link= to allow for
198           --asm="sh script --options", the user can double quote the
199           argument if needed: --asm="'c:/program files/gpasm' -q",
200           also fix some potential buffer overflows
201
202 2008-11-19 Borut Razem <borut.razem AT siol.net>
203
204         * doc/sdccman.lyx:
205           fixed 2314467: sdccman.lyx: fix "--" in command line parameters
206           thanks Mauro Giachero
207
208 2008-11-16 Borut Razem <borut.razem AT siol.net>
209
210         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.5
211         * doc/sdccman.lyx: documented fixed unnamed bit-field initialization
212
213 2008-11-15 Borut Razem <borut.razem AT siol.net>
214
215         * src/pic16/glue.c, src/SDCC.y, src/SDCCast.c, src/SDCCglue.c,
216           src/SDCCsymt.c, src/SDCCsymt.h:
217           fixed RFE #2291335 : Unnamed bit-field initialization
218         * support/regression/tests/bitfields.c:
219           added test case for RFE #2291335
220         * support/regression/tests/bug-1981238.c:
221           don't initialize unnamed bit-fields
222
223 2008-11-11 Raphael Neider <rneider AT web.de>
224
225         * device/include/pic16/pic18f25j10.h,
226           device/include/pic16/pic18f45j10.h: remove useless boilerplate
227
228         * device/include/pic16/adc.h,
229           device/lib/pic16/libio/adc/adcbusy.c,
230           device/lib/pic16/libio/adc/adcclose.c,
231           device/lib/pic16/libio/adc/adcconv.c,
232           device/lib/pic16/libio/adc/adcopen.c,
233           device/lib/pic16/libio/adc/adcread.c,
234           device/lib/pic16/libio/adc/adcsetch.c: generalized, documented,
235           and fixed ADC routines to work for more target devices,
236           incorporates patch #2036130 by Nick Materer
237
238 2008-11-10 Steven Borley <steven.borley AT partnerelectronics.com>
239
240         * device/include/ctype.h,
241         * device/include/ds400rom.h,
242         * device/include/ds80c390.h,
243         * device/include/float.h,
244         * device/include/math.h,
245         * device/include/serial.h,
246         * device/include/stdbool.h,
247         * device/include/tinibios.h: replaced non-C89 '//' with '/* */',
248           patch 2195343
249         * device/include/mcs51/C8051F336.h,
250         * device/include/mcs51/C8051T600.h,
251         * device/include/mcs51/C8051T610.h,
252         * device/include/mcs51/C8051T630.h: new, added, patch 2183334
253           (svn commit by Maarten Brock <sourceforge.brock AT dse.nl>)
254
255 2008-11-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
256
257         * device/include/mcs51/P89LPC922.h: fixed #2255989, thanks kubi57
258
259 2008-11-10 Raphael Neider <rneider AT web.de>
260
261         * device/lib/pic16/libdev/mkmk.sh: obey pics.all
262         * device/lib/pic16/libio/mkmk.sh: properly match whole lines in
263           .ignore files, fixes IO libs for 18f242, 18f252, 18f442, and 18f452
264           (patch by Nick Materer, #2253980)
265
266         * device/lib/pic16/libio/adc.ignore,
267           device/lib/pic16/libio/i2c.ignore,
268           device/lib/pic16/libio/usart.ignore,
269           device/lib/pic16/pics.all: updated to build more device libs
270
271         * device/lib/pic16/libdev/Makefile.am,
272           device/lib/pic16/libdev/Makefile.in,
273           device/lib/pic16/libio/Makefile.am,
274           device/lib/pic16/libio/Makefile.in: regenerated
275
276         * src/pic16/device.c (pic16_dump_usection): fixed output of multiple
277           names per memory location, applied SDCC style to more functions
278
279 2008-11-09 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
280
281         * device/include/mcs51/p89lpc933_4.h: new NXP header file
282         * device/include/mcs51/p89lpc935_6.h: new NXP header file
283         * device/include/mcs51/p89v66x.h: minor changes
284           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
285
286 2008-11-09 Raphael Neider <rneider AT web.de>
287
288         * device/include/pic/pic14devices.txt: fixed memory description for
289           12f629 and 12f675, closes #2236240
290
291 2008-11-06 Borut Razem <borut.razem AT siol.net>
292
293         * src/SDCCmain.c: #fixed bug 2224960: sdcc -MM no working correctly
294           pass system include paths with -isystem to sdcpp
295         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c: removed unneeded
296           functions (closePipes), (closeTmpFiles) and (rmTmpFiles)
297
298 2008-11-02 Raphael Neider <rneider AT web.de>
299
300         * doc/sdccman.lyx: updated the sections on the library build process
301           and on how to add support for new devices, and documented known
302           problems with the extended instruction set including a workaround
303
304 2008-11-01 Raphael Neider <rneider AT web.de>
305
306         * device/include/pic16/adc.h,
307           device/include/pic16/pic16devices.txt,
308           device/include/pic16/pic18f2410.h,
309           device/include/pic16/pic18f2510.h,
310           device/include/pic16/pic18f2515.h,
311           device/include/pic16/pic18f2610.h,
312           device/include/pic16/pic18f4410.h,
313           device/include/pic16/pic18f4510.h,
314           device/include/pic16/pic18f4515.h,
315           device/include/pic16/pic18f4610.h,
316           device/include/pic16/pic18fregs.h,
317           device/lib/pic16/libdev/Makefile.am,
318           device/lib/pic16/libdev/Makefile.in,
319           device/lib/pic16/libdev/pic18f2410.c,
320           device/lib/pic16/libdev/pic18f2510.c,
321           device/lib/pic16/libdev/pic18f2515.c,
322           device/lib/pic16/libdev/pic18f2610.c,
323           device/lib/pic16/libdev/pic18f4410.c,
324           device/lib/pic16/libdev/pic18f4510.c,
325           device/lib/pic16/libdev/pic18f4515.c,
326           device/lib/pic16/libdev/pic18f4610.c,
327           device/lib/pic16/libio/Makefile.am,
328           device/lib/pic16/libio/Makefile.in,
329           device/lib/pic16/pics.all: added support for 18f[24][456]10
330           and 18f[24]515 devices
331         * doc/sdccman.lyx: updated list of supported PIC16 devices
332
333         * src/pic/glue.c, src/pic/pcode.c, src/pic/pcodeflow.c,
334           src/pic16/glue.c, src/pic16/pcode.c, src/pic16/pcodeflow.c,
335           src/xa51/gen.c: avoid compiler warnings
336         * support/scripts/inc2h-pic16.pl: removed trailing whitespace
337
338 2008-10-22 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
339
340         * device/include/mcs51/p89v66x.h: NXP header file
341         * device/include/mcs51/p89c66x.h: fixed an SBIT definition
342           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
343
344 2008-10-14 Raphael Neider <rneider AT web.de>
345
346         * device/lib/pic16/libdev/Makefile.am,
347           device/lib/pic16/libio/Makefile.am: enable building libraries for
348           18f2321, 18f4321, 18f2523, 18f4620, 18f66j60, 18f66j65, 18f67j60,
349           18f86j60, 18f86j65, 18f87j60, 18f96j60, 18f96j65, and 18f97j60
350         * device/lib/pic16/libdev/Makefile.in,
351           device/lib/pic16/libio/Makefile.in: regenerated
352
353 2008-10-14 Raphael Neider <rneider AT web.de>
354
355         * device/include/pic16/pic18f2450.h,
356           device/include/pic16/pic18f4450.h,
357           device/lib/pic16/libdev/pic18f2450.c,
358           device/lib/pic16/libdev/pic18f4450.c,
359           device/include/pic16/adc.h,
360           device/include/pic16/pic16devices.txt,
361           device/include/pic16/pic18fregs.h,
362           device/lib/pic16/libdev/Makefile.am,
363           device/lib/pic16/libdev/Makefile.in,
364           device/lib/pic16/libio/Makefile.am,
365           device/lib/pic16/libio/Makefile.in,
366           device/lib/pic16/pics.all: added 18f2450 and 18f4450, closes #1844525
367
368         * device/lib/pic16/libsdcc/stack/stack.S: there is no need to pin the
369           stack to a fixed location, relax it to automatically work with all
370           but the smallest devices (256 byte RAM devices need #pragma stack)
371
372 2008-10-09 Maarten Brock <sourceforge.brock AT dse.nl>
373
374         * debugger/mcs51/break.c: bugfix from patch 1989966, thanks Risto Huotari
375         * debugger/mcs51/simi.c: bugfix from patch 1989972, thanks Risto Huotari
376         * device/lib/_strcspn.c: fixed bug 2140931
377
378 2008-10-06 Raphael Neider <rneider AT web.de>
379
380         * device/include/pic16/stdio.h,
381           device/lib/pic16/libc/stdio/putchar.c: putchar should not be
382           declared __naked for convenience, named all arguments
383         * device/lib/pic16/libc/stdio/strmgpsim.c,
384           device/lib/pic16/libc/stdio/strmmssp.c,
385           device/lib/pic16/libc/stdio/strmusart.c: cosmetic changes
386
387         * src/pic16/pcode.c (createReachingDefinitions): avoid segfault on
388           empty __naked functions,
389         * (pCodeLabelDestruct, pic16_unlinkpCode, pic16_pCodeUnlink): fix
390           corner cases (unlink first/last pCode in list), reuse more code
391
392 2008-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
393
394         * src/ds390/main.c (_ds390_genInitStartup): added
395         * src/SDCCpeeph.c (getPatternVar): new, added,
396           (labelInRange): fixed bug 2115959
397         * src/mcs51/peeph.def (rules 193.x to 198.x): check for labelInRange
398         * src/SDCCicode.h: added newiTempOperand
399         * src/SDCCcse.c (algebraicOpts): fixed bug for x*-1,
400           added optimizations for 0/x and x/-1, see also patch 2142900
401         * support/regression/tests/onebyte.c (testMul): added test cases
402
403 2008-09-20 Borut Razem <borut.razem AT siol.net>
404
405         * src/pic16/glue.c:
406           definition of absolute address symbols without initial value,
407           fixed SDCC crash "do not know how to intialize symbol"
408
409 2008-09-16 Maarten Brock <sourceforge.brock AT dse.nl>
410
411         * device/lib/z80/mul.s (__mulsuchar_rrx_s, __muluschar_rrx_s),
412         * device/lib/z80/div.s (__divsuchar_rrx_s, __modsuchar_rrx_s,
413           __divuschar_rrx_s, __moduschar_rrx_s): added mixed signedness versions
414         * device/lib/z80/stubs.s: added stubs for above functions
415         * src/SDCCopt.c (convilong),
416         * src/SDCCsymt.c (initCSupport): fixed bug 1900961
417         * src/SDCCsymt.h (__muldiv): enlarged for mixed signedness
418         * src/z80/main.c (_hasNativeMulFor): fixed bug, I think
419         * support/regression/tests/onebyte.c: enabled all tests for z80
420
421 2008-09-15 Borut Razem <borut.razem AT siol.net>
422
423         * device/include/pic16/stdio.h, device/lib/pic16/libc/stdio/streams.c,
424           device/lib/pic16/libc/stdio/printf.c,
425           device/lib/pic16/libc/stdio/strmusart.c,
426           device/lib/pic16/libc/stdio/printf_tiny.c,
427           device/lib/pic16/libc/stdio/sprintf.c,
428           device/lib/pic16/libc/stdio/strmgpsim.c,
429           device/lib/pic16/libc/stdio/putchar.c,
430           device/lib/pic16/libc/stdio/fprintf.c,
431           device/lib/pic16/libc/stdio/strmmssp.c,
432           device/device/lib/pic16/libc/stdio/vprintf.c,
433           device/lib/pic16/libc/stdio/printf_small.c,
434           device/lib/pic16/libc/stdio/vsprintf.c,
435           device/lib/pic16/libc/stdio/strmputchar.c,
436           device/lib/pic16/libc/Makefile.am,
437           device/lib/pic16/libc/Makefile.in:
438           *printf now returns int, puchar.c moved from stdlib to stdio,
439           *printf format parameter type changed from char * to const char *,
440           added GNU link excetion text to library source files,
441           applyed GNU coding style, removed useless svn ids,
442           added BINARY_SPECIFIER macro re-enables the use of the removed 'b'
443           binary specifier: "%b", "%hb" and "%lb"
444         * device/lib/pic16/libc/stdio/vfprintf.c:
445           applied patch #2044424: PIC16: vfprintf
446           thanks Mauro Giachero
447         * support/regression/tests/bug1057979.c:
448           removed old pic16 sprintf specifics
449         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.4
450         * doc/sdccman.lyx: documented 'b' binary format specifier removal
451
452 2008-09-15 Raphael Neider <rneider AT web.de>
453
454         * src/pic16/device.c (pic16_dump_usection): force udata sections
455           into the addressable range (0..0xFFF), workaround for a gpsim
456           bug preventing simulation of regtest bug1750318
457         * src/pic16/ralloc.c (deassignLRs): cosmetic changes,
458           (serialRegAssign): fixed regtest bug-971834,
459           (pic16_packRegisters): avoid null-pointer dereference
460
461 2008-09-14 Raphael Neider <rneider AT web.de>
462
463         * src/pic16/gen.c, src/pic16/ralloc.c: use
464           SYM_SPIL_LOC/SPIL_LOC macros, no functional changes
465         * src/pic16/ralloc.c (rematStr): reimplemented, fixes #1818857
466
467 2008-09-12 Borut Razem <borut.razem AT siol.net>
468
469         * support/regression/fwk/testfwk.h:
470           define pdata as data for pic16 target
471           thanks Mauro Giachero
472
473 2008-09-11 Borut Razem <borut.razem AT siol.net>
474
475         * support/regression/tests/bug-221100.c, support/regression/shifts.c,
476           support/regression/absolute.c:
477           applied patch #2105615: Some PIC16 testcase fixlets
478           thanks Mauro Giachero
479
480 2008-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
481
482         * src/z80/gen.c (genCmpGt, genCmpLt): fixed bug 2094505
483         * support/regression/tests/bug2094505.c: new, added
484
485 2008-09-07 Borut Razem <borut.razem AT siol.net>
486
487         * src/SDCCglue.c, src/SDCCast.c:
488           fixed throw of "excess elements" warning for char arrays
489         * support/regression/tests/nullstring.c:
490           disable warning about excess elements in array of chars initializer
491
492 2008-09-07 Maarten Brock <sourceforge.brock AT dse.nl>
493
494         * as/z80/aslist.c (lstsym): changed old K&R to ANSI
495         * src/SDCCicode.c (geniCodeCritical): fixed bug for hc08
496         * src/z80/gen.c (genCritical, genEndCritical): fixed bug 2077267
497         * support/regression/tests/bug2077267.c: new, added
498
499 2008-09-05 Raphael Neider <rneider AT web.de>
500
501         * configure.in, Makefile.common.in: add support for ccache,
502           remove spurious $VERSION output, detect doc-tools even without
503           --enable-doc to facilitate later manual doc-builds, minor cleanup
504         * configure: regenerated
505
506         * doc/Makefile.in: quieten pdflatex, makeindex, and latex2html,
507           avoid races in parallel VPATH builds
508         * doc/clean.mk: remove .lyx files in the builddir for VPATH builds
509         * doc/sdccman.lyx: mention --without-ccache configure option
510
511 2008-09-01 Raphael Neider <rneider AT web.de>
512
513         * src/pic16/gen.c (pic16_derefPtr): handle CPOINTERs as well
514         * (genConstPointerGet): fix reading bitfields from __code space
515         * src/pic16/glue.c (pic16_printIvalBitFields): correctly mask
516           bitfield initializers (fix regression test bug1856409.c)
517         * (pic16_printIvalCharPtr,pic16_printIvalPtr): generalized to support
518           arbitrary sizes
519
520 2008-08-31 Raphael Neider <rneider AT web.de>
521
522         * src/pic16/gen.c (genAssign): removed useless compiler output
523         * (genPointerGet,genPointerSet,genCast),
524           src/pic16/glue.c (pic16_printGPointerType):
525           also handle PPOINTERs just to avoid spurious asserts
526         * (pic16_printIvalType,pic16_printIvalBitFields):
527           generalized to arbitrary type/bitfield sizes, allows compilation of
528           regression test bug-1981238.c
529         * (pic16_printIvalChar): fix regression test structflexarray.c
530         * (pic16_printIvalArray): avoid SIGSEGV on uninitialized strings
531           in initialized structs and fix #1843745
532         * (pic16_printIvalStruct): always output initializers for all fields,
533           even those not explicitly given, fixes zeropad.c regression test
534         * (pic16_printIvalUnion): fix union initializers (bug1426356.c,
535           #2073635, #1567098, and #1485812)
536         * src/pic16/main.c (_pic16_keywords): remove unsupported 'pdata'
537
538 2008-08-31 Borut Razem <borut.razem AT siol.net>
539
540         * support/regression/tests/bug-895992.c,
541           support/regression/tests/onebyte.c:
542           enabled pic16 regression testing since the bugs
543           1511794: pic16: regression test bug-895992.c fails
544           1444425: onebyte.c regression tes fails on pic16
545           are fixed, probably by fixing
546           2048464: PIC16: fix genUminus - addresses not.c regression test
547         * src/SDCCsymt.c, src/SDCCglue.c,
548           support/regression/tests/bug-1981238.c:
549           applied patch 2076664: fix #1981238 + SIGSEGV in SDCCGlue.c
550           thanks to RvS
551
552 2008-08-30 Borut Razem <borut.razem AT siol.net>
553
554         * support/cpp/libcpp/files.c: SDCPP synchronized with GCC CPP
555           release version 4.3.2
556
557 2008-08-24 Raphael Neider <rneider AT web.de>
558
559         * device/lib/pic16/configure, device/lib/pic16/configure.ac:
560           always use the sdcc from the current build tree (ignore $CC from
561           the environment, fixes compile farm builds)
562         * device/lib/Makefile.in: rename .a into .lib for compatibility,
563           remove more build products from install directory
564         * sdcc/src/pic16/main.c (_pic16_linkEdit,_pic16_finaliseOptions)
565         * sdcc/support/scripts/sdcc.nsi: revert to .lib extension for libs
566
567 2008-08-24 Borut Razem <borut.razem AT siol.net>
568
569         * src/SDCC.y: applied patch
570           2050245: Fix # 1963382
571           for bug
572           1963382: Listing File - C file comment is incorrect
573           thanks to RvS
574
575 2008-08-23 Borut Razem <borut.razem AT siol.net>
576
577         * src/pic16/gen.c: applied patch
578           2048464: PIC16: fix genUminus - addresses not.c regression test
579           thanks Mauro Giachero
580
581 2008-08-22 Borut Razem <borut.razem AT siol.net>
582
583         * device/lib/pic16/configure, device/lib/pic16/configure.ac,
584           src/pic16/main.c: allow spaces in gpasm and gplink paths
585
586 2008-08-15 Philipp Klaus Krause <pkk AT spth.de>
587
588         * src/z80/peep.c,
589         * src/z80/peeph-z80.def: minor peephole improvement
590
591 2008-08-15 Raphael Neider <rneider AT web.de>
592
593         * src/z80/gen.c (_vemit2): suppress compiler warning
594
595         * src/pic/*.[ch]: make proper use of header files and avoid
596           ad-hoc extern declarations, mark module-local helpers 'static',
597           removed dead/replaced code, no functional changes
598         * src/pic16/pcode.c: disentangled from pic14 backend
599
600 2008-08-14 Philipp Klaus Krause <pkk AT spth.de>
601
602         * src/z80/gen.c: fixed #2051348
603         * support/regression/tests/bug-2051348.c: regression test for #2051348
604
605 2008-08-10 Raphael Neider <rneider AT web.de>
606
607         * configure.in,
608         * Makefile.common.in: export PACKAGE for $docdir,
609           fixes #1957036, avoid some "underquoted definition" warnings
610         * configure: regenerated
611
612 2008-08-10 Raphael Neider <rneider AT web.de>
613
614         * device/lib/pic16/**: build pic16 library using autotools for
615           improved dependency tracking
616
617         * device/lib/Makefile.in,
618         * src/pic16/main.c,
619         * support/scripts/sdcc.nsi: adapt to changes in filenames (s/.lib/.a/)
620
621 2008-08-10 Raphael Neider <rneider AT web.de>
622
623         * src/pic/pcode.c (ReuseReg): do not overlay the registers used for
624           local variables if --nooverlay is given, workaround for #2023121
625
626 2008-08-08 Raphael Neider <rneider AT web.de>
627
628         * src/pic16/genarith.c (genAddLit): fix structure access (#1888004)
629
630 2008-08-08 Raphael Neider <rneider AT web.de>
631
632         * src/pic/pcoderegs.c,
633         * src/pic/pcode.c,
634         * src/pic16/pcode.c: replace own SAFE_snprintf with common SNPRINTF
635
636 2008-08-07 Borut Razem <borut.razem AT siol.net>
637
638         * src/SDCCval.c, src/SDCCmain.c, src/SDCC.lex,
639           device/lib/pic/Makefile.rules, device/lib/ds390/Makefile.in,
640           device/lib/ds400/Makefile.in, device/lib/hc08/Makefile.in,
641           support/cpp/libcpp/lex.c,  doc/sdccman.lyx:
642           applied modified patch 2038174: Add support for binary constants v2
643           thanks Mauro Giachero
644         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.3
645
646 2008-08-04 Raphael Neider <rneider AT web.de>
647
648         * doc/sdccman.lyx,
649         * src/pic16/device.h,
650         * src/pic16/glue.c,
651         * src/pic16/main.c: enable --optimize-goto by default
652
653         * device/lib/pic16/Makefile.common.in: suppress removed option
654
655         * src/pic16/gen.c,
656         * src/pic16/genutils.c: avoid too long relative branches (#2031890)
657
658 2008-07-30 Borut Razem <borut.razem AT siol.net>
659
660         * src/pic16/device.c, src/pic16/glue.c, src/pic16/pcode.c:
661           applied patch 22032433: PIC16: fix constant strings,
662           thanks Mauro Giachero
663
664 2008-07-29 Borut Razem <borut.razem AT siol.net>
665
666         * src/pic16/gen.c: applied patches:
667           2030306: [1/3] PIC16: fix failing rotate.c tests on 16-bit variables,
668           2030307: [2/3] PIC16: fix failing rotate.c tests for 32-bit var (1),
669           2030310: [3/3] PIC16: fix failing rotate.c tests for 32-bit var (2),
670           thanks Mauro Giachero
671
672 2008-07-13 Philipp Klaus Krause <pkk AT spth.de>
673
674         * src/port.h: Fixed typo in comment
675
676 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
677
678         * src/z80/mappings.i: Implemented RFE #1919415
679         * src/z80/peeph-z80.def: Implemented RFE #1919415, #1861376,
680           #1880202, #1914434, prepared for RFE #1703943
681
682 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
683
684         * src/z80/peeph.def,
685         * src/z80/peeph-z80.def,
686         * src/z80/peeph-gbz80.def: separate Z80 from GBZ80 peepholes in
687           preparation for Z80 peephole improvements
688
689 2008-06-21 Raphael Neider <rneider AT web.de>
690
691         * device/include/pic16/pic18f66j60.h,
692         * device/include/pic16/pic18f66j65.h,
693         * device/include/pic16/pic18f67j60.h,
694         * device/include/pic16/pic18f86j60.h,
695         * device/include/pic16/pic18f86j65.h,
696         * device/include/pic16/pic18f87j60.h,
697         * device/include/pic16/pic18f96j60.h,
698         * device/include/pic16/pic18f96j65.h,
699         * device/include/pic16/pic18f97j60.h,
700         * device/lib/pic16/libdev/pic18f66j60.c,
701         * device/lib/pic16/libdev/pic18f66j65.c,
702         * device/lib/pic16/libdev/pic18f67j60.c,
703         * device/lib/pic16/libdev/pic18f86j60.c,
704         * device/lib/pic16/libdev/pic18f86j65.c,
705         * device/lib/pic16/libdev/pic18f87j60.c,
706         * device/lib/pic16/libdev/pic18f96j60.c,
707         * device/lib/pic16/libdev/pic18f96j65.c,
708         * device/lib/pic16/libdev/pic18f97j60.c,
709         * device/include/pic16/pic16devices.txt,
710         * device/include/pic16/pic18fregs.h,
711         * device/lib/pic16/pics.all: added new devices
712
713         * device/include/pic16/adc.h,
714         * device/lib/pic16/libio/adc/adcbusy.c,
715         * device/lib/pic16/libio/adc/adcopen.c,
716         * device/lib/pic16/libio/adc/adcsetch.c,
717         * device/lib/pic16/libio/i2c/i2copen.c,
718         * device/lib/pic16/libio/usart/uopen.c: adapted to new devices,
719           all changes from a patch by Anton Strobl
720
721 2008-06-12 Borut Razem <borut.razem AT siol.net>
722
723         * sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/bp.cc,
724           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
725           sim/ucsim/z80.src/z80cl.h, sim/ucsim/z80.src/z80.cc,
726           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
727           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
728           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/uc390.cc,
729           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/uc390cl.h,
730           sim/ucsim/avr.src/avrcl.h, sim/ucsim/avr.src/avr.cc:
731           fixed bug 1990586: s51 simulator, uc::disass() unimplemented
732           by applying the modified patch from Risto Huotari
733
734 2008-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
735
736         * .version,
737         * doc/sdccman.lyx: bumped sdcc version to 2.8.2
738         * src/ds390/gen.c (aopPutUsesAcc, genAddrOf): fixed bug 1015185
739         * src/mcs51/gen.c (genNearPointerGet, genNearPointerSet): fixed bug 1938300
740         * support/regression/tests/bug1938300.c: new, added
741
742 2008-06-03 Maarten Brock <sourceforge.brock AT dse.nl>
743
744         * device/include/asm/ds390/features.h,
745         * device/include/asm/mcs51/features.h,
746         * device/include/mcs51/regc515c.h: inserted LGPL notice
747
748 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
749
750         * device/lib/gbz80/div.s,
751         * device/lib/z80/div.s: fixed bug 1904314 by applying a modified part of
752           patch 1597883, Thanks Robert Ramey
753
754 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
755
756         * src/SDCCast.c (createIvalType, createIvalStruct, createIvalArray,
757           createIvalCharPtr, createIvalPtr, createIval),
758         * src/SDCCval.h
759         * src/SDCCval.c (convertIListToConstList, list2expr): handle incomplete
760           initializers for local auto variables
761         * support/regression/tests/zeropad.c: added testcase for auto initializers
762
763 2008-05-26 Raphael Neider <rneider AT web.de>
764
765         * device/lib/pic16/startup/crt0.c,
766         * device/lib/pic16/startup/crt0i.c,
767         * device/lib/pic16/startup/crt0iz.c: clean up, make use of access bank
768           explicit, fixed curr_entry loop for >= 256 initializer records,
769           removed debug code (write to 0xf7e)
770
771 2008-05-25 Raphael Neider <rneider AT web.de>
772
773         * device/include/pic/pic16f627a.h,
774         * device/include/pic/pic16f628a.h,
775         * device/include/pic/pic16f648a.h: added missing ports
776
777 2008-05-20 Maarten Brock <sourceforge.brock AT dse.nl>
778
779         * device/include/float.h: added __INFINITY
780         * device/lib/_fsadd.c: handle overflows
781         * device/lib/_fsmul.c,
782         * device/lib/_fsdiv.c: use __INFINITY
783         * device/lib/_fseq.c,
784         * device/lib/_fsneq.c: handle -0.0
785         * sim/ucsim/s51.src/uc89c51r.cc,
786         * sim/ucsim/s51.src/uc89c51rcl.h: fixed bug 1385430
787         * sim/ucsim/sim.src/hwcl.h: */* confuses VC
788         * src/mcs51/gen.c (genSend): fixed bug with --xstack
789         * support/regression/ports/mcs51-xstack-auto/spec.mk: print floats
790         * support/regression/tests/snprintf.c: test bug with --xstack
791
792 2008-05-19  Philipp Klaus Krause <pkk AT spth.de>
793
794         * src/SDCCpeeph.c (callFuncByName):
795           Support nested parenthesis in peephole function arguments (#1967300)
796
797 2008-05-19 Raphael Neider <rneider AT web.de>
798
799         * src/pic16/gen.c (pic16_emitpLabel,pic16_emitpLabelFORCE):
800           fixed duplicate labels (#1911325)
801
802 2008-05-19 Raphael Neider <rneider AT web.de>
803
804         * src/regression/empty.c: suppress warning
805         * src/regression/pointer1.c: enabled index_by_pointer()
806         * src/regression/inline.c: now works for pic16 as well
807
808         * src/pic16/device.c: include dbuf declarations
809         * src/pic16/device.h: removed obsolete prototypes
810
811         * src/pic16/gen.c, src/pic16/gen.h: moved generic pointer tags
812         * src/pic16/glue.c: made purely local functions static,
813           (pic16_printGPointerType, pic16_printIvalCharPtr,
814           pic16_printIvalFuncPtr, pic16_printIvalPtr): fixed initialized
815           generic pointers' tags (#1961866)
816
817         * src/pic16/pcode.c (assignValnums): optimize literal assignments
818
819 2008-05-19 Borut Razem <borut.razem AT siol.net>
820
821         * support/scripts/sdcc.nsi: remove uninstall.exe after uninstallation,
822           fixed typo, uninstall include/pic16/pic16devices.txt
823
824 2008-05-18 Borut Razem <borut.razem AT siol.net>
825
826         * support/Utils/dbuf_string.[ch]: added dbuf_chomp(),
827           the buffer is null terminated
828         * src/device/pic16.c:
829           applied modified patch 1965676: Patch for Win32 16 bit PIC
830         * sdcc_vc_in.h: defined YY_NO_UNISTD_H
831
832 2008-05-16 Maarten Brock <sourceforge.brock AT dse.nl>
833
834         * src/SDCC.lex (check_type),
835         * src/SDCC.y (type_specifier2 TYPE_NAME): fixed bug 1925942
836         * as/hc08/clean.mk,
837         * as/mcs51/clean.mk,
838         * as/z80/clean.mk: also clean *.dep
839         * device/lib/pic16/libsdcc/stack/Makefile,
840         * sim/ucsim/libtool: removed as they are rebuild by configure
841         * src/clean.mk: removed izt, so Makefile is not deleted for distclean
842
843 2008-05-13 Maarten Brock <sourceforge.brock AT dse.nl>
844
845         * src/SDCCast.c (fixupInline, createFunction): save currBlockno in
846           fixupInline instead of createFunction to fix bug 1864577
847           (inlineFindMaxBlockno): removed, use global blockNo
848         * src/SDCCglobl.h: added blockNo
849         * src/z80/peep.c,
850         * src/z80/peep.h: modified properties
851         * support/regression/tests/bug1864577.c: new, added
852
853 2008-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
854
855         * as/mcs51/asdata.c,
856         * as/mcs51/asm.h: added org_cnt
857         * as/mcs51/asmain.c (main, asmbl): fixed bug 1957716, changed old K&R to ANSI
858         * as/mcs51/asout.c: changed old K&R to ANSI
859         * as/mcs51/Makefile.in: use common identifiers
860         * as/hc08/asdata.c,
861         * as/hc08/asexpr.c,
862         * as/hc08/asm.h,
863         * as/hc08/asmain.c,
864         * as/hc08/asout.c,
865         * as/hc08/Makefile.bcc,
866         * as/hc08/Makefile.in: synchronized with as/mcs51/*
867         * sdcc_vc_in.h: added define __func__
868         * src/SDCCast.c (expandInlineFuncs): applied patch 1957148 to fix bug 1717305,
869           Thanks Ruud van Silfhout
870         * support/regression/tests/bug1717305.c: new, added
871
872 2008-05-05 Borut Razem <borut.razem AT siol.net>
873
874         * support/regression/Makefile.in,
875           support/regression/ports/ds390/spec.mk,
876           support/regression/ports/hc08/spec.mk,
877           support/regression/ports/mcs51-common/spec.mk,
878           support/regression/ports/pic14/spec.mk,
879           support/regression/ports/pic16/spec.mk,
880           support/regression/ports/ucz80/spec.mk,
881           support/regression/ports/z80/spec.mk:
882           added INC_DIR and LIBDIR paths
883         * src/ds390/gen.c: removed duplicated selicolon
884
885 2008-05-04 Borut Razem <borut.razem AT siol.net>
886
887         * support/regression/Makefile.in,
888           support/regression/fwk/lib/testfwk.c,
889           support/regression/ports/ds390/spec.mk,
890           support/regression/ports/hc08/spec.mk,
891           support/regression/ports/mcs51-common/spec.mk,
892           support/regression/ports/mcs51-large/spec.mk,
893           support/regression/ports/mcs51-medium/spec.mk,
894           support/regression/ports/mcs51-small/spec.mk,
895           support/regression/ports/mcs51-stack-auto/spec.mk,
896           support/regression/ports/mcs51-xstack-auto/spec.mk,
897           support/regression/ports/pic14/spec.mk,
898           support/regression/ports/pic16/spec.mk,
899           support/regression/ports/ucz80/spec.mk:
900           added possibility to define the sdcc binary directory SDCC_BIN_PATH
901           used to run regeression tests
902
903 2008-05-01 Raphael Neider <rneider AT web.de>
904
905         * doc/sdccman.lyx, support/scripts/inc2h-pic16.pl: updated list of
906           supported devices and instructions to add new ones
907
908 2008-05-01 Raphael Neider <rneider AT web.de>
909
910         * device/include/pic16/adc.h,
911           device/lib/pic16/libio/adc/adcbusy.c,
912           device/lib/pic16/libio/adc/adcopen.c,
913           device/lib/pic16/libio/adc/adcsetch.c: support old 18f242 and new
914           18f2455 style ADC devices, based on patch #1776197
915         * device/lib/pic16/libio/adc/adcclose.c,
916           device/lib/pic16/libio/adc/adcconv.c,
917           device/lib/pic16/libio/adc/adcread.c: cosmetic changes
918         * device/include/pic16/{pic18f2331.h,pic18f2431.h},
919           device/lib/pic16/libdev/{pic18f2331.c,pic18f2431.c}: reuse 18f4331
920         * device/include/pic16/pic18f4431.h,
921           device/lib/pic16/libdev/pic18f4431.c: remove outdated comments
922         * device/lib/pic16/libio/adc.ignore: forbid unhandled devices
923
924 2008-05-01 Raphael Neider <rneider AT web.de>
925
926         * src/pic16/device.h: removed unused field PIC16_device.sfrRange,
927           moved xinst flag into pic16_options_t
928         * src/pic16/device.c (default_device, pic16_list_devices,
929           pic16_find_device): removed references to sfrrange
930         * src/pic16/gen.c (genFunction),
931           src/pic16/glue.c (pic16initialComments),
932           src/pic16/main.c (pic16_optionsTable),
933           src/pic16/ralloc.c (newReg, pic16_writeUsedRegs): updated references
934           to xinst
935         * device/include/pic16/pic16devices.txt: removed sfrrange lines
936
937 2008-04-29 Raphael Neider <rneider AT web.de>
938
939         * src/pic16/devices.inc,
940           device/include/pic16/pic16devices.txt: replaced compiled-in list
941           of devices with a variant parsed at runtime
942         * src/pic16/device.c: added support for parsing pic16devices.txt,
943           clean up
944         * src/pic16/device.h: removed (now) unused fields from PIC_device
945         * src/pic16/main.c: removed #pragma maxram,
946           (_pic16_initPaths): removed bogus generation of search paths,
947           setup the port proper only after the search paths (for
948           pic16devices.txt) are set up,
949           (_pic16_finaliseOptions): moved processor dependant code here
950           from _pic16_initPaths(), clean up
951         * src/pic16/ralloc.c (pic16_init_stack),
952         * src/pic16/ralloc.h,
953         * src/pic16/pcode.c: clean up
954         * device/include/Makefile.in,
955           support/scripts/sdcc.nsi: also install/package pic16devices.txt
956         * support/scripts/inc2h-pic16.pl: updated instructions
957
958 2008-04-29 Raphael Neider <rneider AT web.de>
959
960         * device/include/pic16/{pic18f2480.h, pic18f2580.h, pic18f4423.h,
961           pic18f4480.h, pic18f4523.h, pic18f4580.h, pic18f6585.h, pic18f8585.h},
962           device/lib/pic16/libdev/{pic18f2480.c, pic18f2580.c, pic18f4423.c,
963           pic18f4480.c, pic18f4523.c, pic18f4580.c, pic18f6585.c, pic18f8585.c}:
964           added missing family members and 18f2480/2580/4480/4580 family
965         * device/include/pic16/{pic18f2423.h, pic18f2523.h}: use 18f4523.h
966         * device/include/pic16/pic18f2525.h: use 18f4620.h
967         * device/include/pic16/pic18f6680.h: use 18f8680.h
968         * device/include/pic16/pic18fregs.h,
969           device/lib/pic16/pics.all,
970           src/pic16/devices.inc: add new devices
971         * device/lib/pic16/libdev/{pic18f2423.c, pic18f2523.c}: use 18f4523.c
972         * device/lib/pic16/libdev/pic18f2525.c: use 18f4620.c
973         * device/lib/pic16/libdev/pic18f6680.c: uso 18f8680.c
974         * device/lib/pic16/libio/{adc.ignore, i2c.ignore, usart.ignore}:
975           prevent attempting to build the libio for some new devices
976
977 2008-04-29 Raphael Neider <rneider AT web.de>
978
979         * debugger/mcs51/Makefile.in: fixed paths to sources
980
981 2008-04-25 Borut Razem <borut.razem AT siol.net>
982
983         * as/link/lklibr.c: moved from as/link/z80/lklibr.c
984         * as/link/hc08/lklibr.c, as/link/mcs51/lklibr.c: deleted
985         * as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
986         * as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
987           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
988           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
989           as/link/z80/linkz80.dsp: lklibr.c moved
990         * doc/INSTALL.txt: binary archives in bz2 format
991         * support/cpp/auto-host_vc_in.h: CPP2 replaced with CPP
992
993 2008-04-23 Maarten Brock <sourceforge.brock AT dse.nl>
994
995         * src/SDCCglue.c (printIvalType, printIvalBitFields): fixed bug 1856409
996         * support/regression/tests/bug1856409.c: new, added
997
998 2008-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
999
1000         * src/z80/peep.c,
1001         * src/mcs51/peep.c: Use werror for error messages.
1002         * src/SDCCicode.c (geniCodeConditional),
1003         * src/SDCCsymt.c (structElemType): fixed bug 1839321
1004         * src/z80/Makefile.bcc,
1005         * src/z80/z80.dsp: added src/z80/peep.c/h
1006         * support/regression/tests/bug1839321.c: new, added
1007
1008 2008-04-20 Raphael Neider <rneider AT web.de>
1009
1010         * device/include/pic16/pic18f2455.h: added bitfields for port C
1011
1012 2008-04-20 Philipp Klaus Krause <pkk AT spth.de>
1013
1014         * src/z80/peep.c: Use werror for error messages.
1015
1016 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
1017
1018         * src/z80/peep.h (declaration of notUsed()),
1019         * src/z80/main.c (enabled notUsed() for z80 port, documented z80_port
1020           struct),
1021         * src/z80/z80.h (added dependency on peep.h),
1022         * src/z80/peep.c (definition of notUsed()): Implemented RFE #1880202
1023           for Z80.
1024
1025 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
1026
1027         * src/SDCCpeeph.c (added support for notUsed()),
1028         * src/mcs51/main.c (added dependency on peep.h, documented mcs51_port
1029           struct),
1030         * src/port.h (removed dependency on mcs51/peep.h, added declaration
1031           for notUsed()): Implemented generic (that is not port-specific) part
1032           of RFE #1880202.
1033
1034 2008-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
1035
1036         * as/link/mcs51/lkmem.c (summary2): fixed bug 1796077
1037         * device/lib/libsdcc.lib,
1038         * device/lib/Makefile.in,
1039         * support/regression/ports/mcs51-xstack-auto/spec.mk,
1040         * device/lib/calloc.c: renamed to _calloc.c
1041         * device/lib/free.c: renamed to _free.c
1042         * device/lib/malloc.c: renamed to _malloc.c
1043         * device/lib/realloc.c: renamed to _realloc.c
1044         * src/ds390/gen.c (aopGet, aopPut, genPlusBits, genDataPointerSet,
1045           genNearPointerSet, genPagedPointerSet): synchronized with mcs51/gen.c
1046         * src/ds390/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq, ifxForOp,
1047           genAnd, genOr, genXor, genIfx, gen390Code): fixed bug 1509084
1048         * src/mcs51/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq,
1049           ifxForOp, genAnd, genOr, genXor, genNearPointerGet,
1050           genPagedPointerGet, genFarPointerGet, genCodePointerGet,
1051           genGenPointerGet, genIfx, gen51Code): fixed bug 1509084
1052         * src/ds390/gen.c,
1053         * src/mcs51/gen.c: throughout cosmetic changes for syncing both
1054         * src/SDCCsymt.h: updated IS_OP_RUONLY, IS_OP_ACCUSE
1055         * support/regression/tests/bug1509084.c: new, added
1056
1057 2008-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
1058
1059         * device/include/mcs51/cc2510fx.h: added _XPAGE
1060         * device/include/mcs51/compiler.h: cosmetic changes
1061
1062 2008-03-31 Maarten Brock <sourceforge.brock AT dse.nl>
1063
1064         * sdcc.dsw: adapted for moved cpp2, added dependency for as_z80 on
1065           config
1066
1067 2008-03-31 Borut Razem <borut.razem AT siol.net>
1068
1069         * support/cpp2 renamed to support/cpp
1070         * support/cpp2/libiberty/filenames.h, support/cpp2/libiberty/hex.c,
1071           support/cpp2/libiberty/splay-tree.c,
1072           support/cpp2/libiberty/splay-tree.h, support/cpp2/libcpp/macro.c,
1073           support/cpp2/libcpp/directives.c,
1074           support/cpp2/libcpp/include/cpplib.h,
1075           support/cpp2/libcpp/include/symtab.h,
1076           support/cpp2/libcpp/include/line-map.h,
1077           support/cpp2/libcpp/line-map.c, support/cpp2/libcpp/files.c,
1078           support/cpp2/libcpp/init.c, support/cpp2/libcpp/traditional.c,
1079           support/cpp2/libcpp/expr.c, support/cpp2/libcpp/internal.h,
1080           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/system.h,
1081           support/cpp2/libcpp/charset.c: SDCPP synchronized with GCC CPP
1082           release version 4.3.0
1083         * configure.in, configure, Makefile.in, Makefile.bcc:
1084           adapted for moved cpp2
1085
1086 2008-03-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1087
1088         * device/include/hc08/mc68hc908jkjl.h: committed fix for bug #1929739,
1089           thanks Alejandro Pustowka <alejo_pustowka AT yahoo.com.mx>
1090
1091 2008-03-30 Maarten Brock <sourceforge.brock AT dse.nl>
1092
1093         * src/SDCCloop.c (loopInvariants): applied fix for bug 1717943, thanks
1094           Robert Larice
1095         * support/regression/tests/bug1717943.c: new, added
1096
1097 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1098
1099         * src/z80/gen.c (assignResultValue): Reverted reversal of order of
1100           bytewise return value assignments introduced in last commit.
1101
1102 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1103
1104         * src/z80/gen.c (emitDebug, assignResultValue, genPlus, genMinus,
1105           genMult, genJumpTab):
1106           Use 16-bit instructions for addition in some additional cases,
1107           implemented RFEs #1914251, #1914245, #1922090, #1921382, #1918323.
1108
1109 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1110
1111         * src/z80/ralloc.c (serialRegAssign, allocReg, tryAllocatingRegPair):
1112           Implemented RFE #1921450, changed some debug messages.
1113
1114 2008-03-30 Borut Razem <borut.razem AT siol.net>
1115
1116         * Small Device C Compiler 2.8.0 released
1117         * .version, doc/sdccman.lyx: changed sdcc version to 2.8.1
1118         * support/scripts/sdcc.nsi: added finish page; this version
1119           was used for 2.8.0 release
1120         * doc/knownbugs.html: removed; magically generated by the build
1121           process using gen_known_bugs.pl from now on
1122
1123 2008-03-23 Borut Razem <borut.razem AT siol.net>
1124
1125         * src/pic/gen.h: Q&D solution for the bug, found by Jim Paris
1126           and reverted it, since it was already fixed by Raphael ;-)
1127         * doc/knownbugs.html: updated for RC2
1128
1129 2008-03-22 Raphael Neider <rneider AT web.de>
1130
1131         * src/SDCCicode.c (getPtrType): avoid unnecessary extra assignments
1132           for PIC16 targets
1133
1134 2008-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
1135
1136         * src/mcs51/gen.c (adjustArithmeticResult): fixed bug 1839299
1137         * support/regression/tests/bug1839277.c: added related testBug1839299
1138
1139 2008-03-21 Maarten Brock <sourceforge.brock AT dse.nl>
1140
1141         * src/ds390/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign),
1142         * src/mcs51/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign):
1143           fixed bug 1839277
1144         * src/mcs51/gen.c: throughout only output hex constants
1145         * src/SDCCicode.c (getPtrType, geniCodeCast): fixed code size regression
1146         * support/regression/tests/bug1839277.c: new, added
1147
1148 2008-03-21 Philipp Klaus Krause <pkk AT spth.de>
1149
1150         * src/z80/ralloc.c (callFuncByName): Used // instead of /**/ to fix
1151           compilation warning about nested comments.
1152
1153 2008-03-20 Maarten Brock <sourceforge.brock AT dse.nl>
1154
1155         * src/SDCCsymt.c (comparePtrType): fixed bug 1921073
1156         * support/regression/tests/bug1921073.c: new, added
1157
1158 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
1159
1160         * src/z80/SDCCpeeph.c.c (callFuncByName):
1161           Commented function parameters.
1162
1163 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
1164
1165         * src/z80/ralloc.c (packRegsForAccUse2):
1166           disabled a broken accumulator packing optimization (fixed #1292721).
1167         * support/regression/tests/bug-1292721: Regression test for #1292721.
1168
1169 2008-03-16 Raphael Neider <rneider AT web.de>
1170
1171         * src/pic/gen.c (SetIrp,genNearPointerGet,genNearPointerSet):
1172           fixed code bloat regression using a variant of patch #1915618
1173
1174 2008-03-16 Borut Razem <borut.razem AT siol.net>
1175
1176         * support/scripts/sdcc.nsi: added section debugging macros, added SDCC
1177           icon, changed startup menu for release distribution, code cleaning,
1178           create url files instead links in startup menu
1179
1180 2008-03-16 Maarten Brock <sourceforge.brock AT dse.nl>
1181
1182         * src/SDCCcse.c (algebraicOpts): fixed bug 1579949
1183         * support/regression/tests/bug1579949.c: new, added
1184
1185 2008-03-14 Paul Stoffregen <paul AT pjrc.com>
1186
1187         * device/lib/printf_fast.c: fixed bug 1255403
1188
1189 2008-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
1190
1191         * doc/sdccman.lyx: enhanced paragraph about bankswitching for mcs51
1192         * src/cdbFile.c (cdbWriteBasicSymbol): fixed bug 1909409 for locals
1193
1194 2008-03-14 Borut Razem <borut.razem AT siol.net>
1195
1196         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated link-xx and aslink
1197           command line options
1198         * as/link/hc08/lkmain.c: converted tabs to spaces so that the usage
1199           is correctly displayed
1200         * as/link/z80/lkmain.c: usage line commented out
1201
1202 2008-03-13 Borut Razem <borut.razem AT siol.net>
1203
1204         * doc/sdccman.lyx: corrected to be able to convert to PDF,
1205           updated the list pf supported pic14 devices
1206
1207 2008-03-12 Maarten Brock <sourceforge.brock AT dse.nl>
1208
1209         * doc/sdccman.lyx: added paragraph about bankswitching for mcs51
1210
1211 2008-03-12 Borut Razem <borut.razem AT siol.net>
1212
1213         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated command line options,
1214           fixed documentation request #1718191
1215         * as/hc80/asmain.c, as/mcs51/asmain.c: added option -c to usage
1216         * doc/sdccman.lyx: added description of --no-std-crt0 gbz80
1217           command line option
1218
1219 2008-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
1220
1221         * src/SDCCast.c (isConformingBody): fixed bug 1505811, thanks Robert Larice
1222         * support/regression/tests/bug1505811.c: new, added
1223
1224 2008-03-09 Raphael Neider <rneider AT web.de>
1225
1226         * device/include/pic16/pic18f2620.h,
1227         * device/include/pic16/pic18f4620.h,
1228         * device/lib/pic16/libdev/pic18f2620.c,
1229         * device/lib/pic16/libdev/pic18f4525.c,
1230         * device/lib/pic16/libdev/pic18f4620.c: merged 18f2525/2620/4525/4620
1231           family to consistently use pic18f4620.[ch], fixes #1832562
1232
1233 2008-03-09 Borut Razem <borut.razem AT siol.net>
1234
1235         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
1236           changed sdcc version to 2.8.0
1237         * knownbugs.html: regenerated
1238         * support/scripts/gen_known_bugs.pl: added number of open bugs
1239
1240 2008-03-09 Raphael Neider <rneider AT web.de>
1241
1242         * src/pic16/gen.c (pic16_mov2w_volatile): NEW, read volatile operands,
1243           (genOr): read volatile operand even if the result is known,
1244           closes #1511838
1245           (genOr,genXor): removed unused legacy code,
1246           (genDummyRead): use pic16_mov2w_volatile()
1247
1248 2008-03-08 Borut Razem <borut.razem AT siol.net>
1249
1250         * src/SDCCglue.c: fixed bug #1864582: multiple definition of char
1251           cons w. --model-large
1252         * support/regression/staticinit.c: added regression test for bug
1253           #1864582
1254
1255 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1256
1257         * src/ds390/gen.c (pushSide, genPcall),
1258         * src/hc08/gen.c (pushSide, genPcall): synchronized with mcs51
1259         * src/mcs51/gen.c: cosmetic changes
1260         * support/regression/fwk/include/testfwk.h: added macro reentrant
1261         * support/regression/tests/bug1908493.c: new, added
1262
1263 2008-03-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1264
1265         * src/SDCCdebug.c:, as/link/lkaomf51.c: Fixed bug 1909409: Pdata in OMF file
1266
1267 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1268
1269         * src/mcs51/gen.c (pushSide, genPcall): fixed bug 1908493
1270         * src/SDCCmain.c (preProcess): removed -DSDCC_PARMS_IN_BANK1 because it is
1271           already set in ds390/main.c and mcs51/main.c
1272
1273 2008-03-07 Raphael Neider <rneider AT web.de>
1274
1275         * src/regression/init0.c: new test for initialized arrays of function
1276           pointers
1277         * src/regression/Makefile: made a bit more flexible, added init0.c
1278         * src/pic/glue.c (emitIvals): hacky fix for initializing from function
1279           pointers, closes #1427663
1280
1281 2008-03-05 Borut Razem <borut.razem AT siol.net>
1282
1283         * dos/sdccman.lyx: docummented predefined macros SDCC_REVISION,
1284           SDCC_PARMS_IN_BANK1, SDCC_FLOAT_REENT and SDCC_INT_LONG_REENT
1285
1286 2008-03-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1287
1288         * support/librarian/sdcclib.c:Added feature request 1908061:
1289           Synchronise sdcclib commands with ar.
1290
1291 2008-03-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1292
1293         * src/SDCCmain.c: added predefined macros SDCC_REVISION (RFE #1907229),
1294           and (depending on corresponding compiler option) SDCC_PARMS_IN_BANK1,
1295           SDCC_FLOAT_REENT, SDCC_INT_LONG_REENT
1296         * device/include/mcs51/compiler.h: removed umlauts, added double
1297           underscore
1298
1299 2008-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
1300
1301         * src/SDCCptropt.c (ptrPseudoSymConvert): fixed bug 1536762
1302         * support/regression/tests/bug1536762.c: new, added
1303         * src/SDCCutil.c,
1304         * src/SDCCutil.h: added getBuildDate()
1305         * src/SDCCmain.c (printVersionInfo),
1306         * src/SDCCglue.c (initialComments): use getBuildDate() instead of
1307           __DATE__
1308         * src/*/ralloc.c: removed IS_OP_RUONLY macro
1309         * src/ds390/ralloc.c (packRegisters),
1310         * src/mcs51/ralloc.c (packRegisters),
1311         * src/z80/ralloc.c (packRegisters): applied fix for bug 1618050, thanks
1312           Robert Larice
1313         * support/regression/tests/bug1618050.c: new, added
1314         * src/SDCCsymt.h: fixed typo in DECLSPEC2TXT
1315         * support/regression/fwk/include/testfwk.h,
1316         * support/regression/tests/bug1838000.c: moved _AUTOMEM and _STATMEM to
1317           testfwk.h
1318
1319 2008-03-04 Raphael Neider <rneider AT web.de>
1320
1321         * src/pic/gen.c: removed unused prototypes, prevent internal errors
1322           on accessing OP_SYM_TYPE(op)
1323         * src/pic/gen.h: removed unused prototype of genMinusDec()
1324         * src/pic/genarith.c (genMinus): cosmetic changes, rewritten to
1325           fix #1876953 (invalid subtraction code), removed unused code
1326
1327 2008-03-03 Raphael Neider <rneider AT web.de>
1328
1329         * src/pic/gen.c,
1330         * src/pic/gen.h,
1331         * src/pic/genarith.c,
1332         * src/pic/ralloc.c,
1333         * src/pic/ralloc.h: removed AOP_R0, AOP_R1, AOP_DPTR, AOP_DPTR2,
1334           AOP_ACC, and *_IDX and adjusted code, removed unused legacy code
1335
1336 2008-03-03 Raphael Neider <rneider AT web.de>
1337
1338         * src/pic/device.c (find_device): search user-specified paths first
1339           for pic14devices.txt, fixes #1900827
1340
1341 2008-03-02 Borut Razem <borut.razem AT siol.net>
1342
1343         * support/scripts/sdcc.nsi: fixed bug in IsNT, LogicLib-isation of
1344           AddToPath and RemoveFromPath
1345
1346 2008-03-01 Borut Razem <borut.razem AT siol.net>
1347
1348         * support/scripts/sdcc.nsi: reverted MULTIUSER page since it didn't
1349           work correctly, added debugging support if -DSDCC.DEBUG command line
1350           option is defined
1351
1352 2008-02-28 Borut Razem <borut.razem AT siol.net>
1353
1354         * doc/sdccman.lyx: cosmetic changes
1355
1356 2008-02-28 Maarten Brock <sourceforge.brock AT dse.nl>
1357
1358         * src/mcs51/ralloc.c (fillGaps): fixed bug 1839671
1359         * doc/sdccman.lyx: fixed unmeant removal of spaces
1360
1361 2008-02-27 Borut Razem <borut.razem AT siol.net>
1362
1363         * support/scripts/sdcc.nsi: corrected installation directory for
1364           current user installation mode
1365         * doc/README.txt: added Philipp Klaus Krause to the developers list
1366
1367 2008-02-27 Maarten Brock <sourceforge.brock AT dse.nl>
1368
1369         * src/mcs51/gen.c (genUnpackBits): don't generate ifxJump, instead
1370           return ifx condition
1371           (genNearPointerGet, genPagedPointerGet, genFarPointerGet,
1372           genCodePointerGet, genGenPointerGet): cleanup aop before generating
1373             ifxJump to fix bug 1838000
1374         * src/SDCCsymt.c (aggregateToPointer): fix problem for xstack
1375         * support/regression/tests/bug1838000.c: new, added
1376         * device/include/mcs51/cc1110.h: new, added, thanks to Pravin Angolkar
1377
1378 2008-02-26 Borut Razem <borut.razem AT siol.net>
1379
1380         * src/SDCCast.c, doc/sdccman.lyx: fixed RFE #1901171: inerger promotion
1381           of casted varargs
1382         * support/scripts/sdcc.nsi: added MULTIUSER page,
1383           NSIS upgraded to version 2.35
1384
1385 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1386
1387         * src/mcs51/ralloc.c (isSpiltOnStack): fixed bug 1565152
1388         * support/regression/tests/bug1565152.c: new, added
1389
1390 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1391
1392         * src/mcs51/gen.c (genPagedPointerSet): fixed bug 1670148
1393         * support/regression/ports/mcs51-xstack-auto/spec.mk: added expf.c
1394         * support/regression/tests/bug1670148.c: new, added
1395
1396 2008-02-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1397
1398         * device/include/mcs51/at89c51ed2.h: fixed bug 1901469.
1399
1400 2008-02-24 Borut Razem <borut.razem AT siol.net>
1401
1402         * src/SDCCast.c, src/SDCCast.h: fixed bug #1874922: explicit typecast
1403           is ineffective for unsigned char parameter
1404
1405 2008-02-24 Maarten Brock <sourceforge.brock AT dse.nl>
1406
1407         * src/SDCCast.c (expandInlineFuncs): fixed bug 1875869
1408         * src/SDCCglue.c (printIvalBitFields): fixed bug 1806631
1409         * support/regression/tests/bitopcse.c: removed hc08 exception, see testfwk.h
1410         * support/Util/MySystem.c (my_system): output errorcode when verbose
1411
1412 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
1413
1414         * src/z80/gen.c (genMult): Rewrote 8-bit multiplication by constant,
1415           implements #1898231
1416
1417 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
1418
1419         * device/lib/z80/mul.s: Rewrote __muluchar_rrx_s, to improve 8-bit mult.,
1420           implements #1896290
1421
1422 2008-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
1423
1424         * src/SDCCast.c (createIvalStruct): fixed bug 1466761
1425
1426 2008-02-21 Borut Razem <borut.razem AT siol.net>
1427
1428         * support/regression/Makefile.in,
1429           support/regression/ports/ds390/spec.mk,
1430           support/regression/ports/hc08/spec.mk,
1431           support/regression/ports/mcs51-common/spec.mk,
1432           support/regression/ports/pic14/spec.mk,
1433           support/regression/ports/pic16/spec.mk,
1434           support/regression/ports/ucz80/spec.mk,
1435           support/regression/ports/xa51/spec.mk:
1436           added CFLAGS when compiling timeout
1437
1438 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1439
1440         * support/regression/tests/bugs-1596270-1736867.c: Regression test for
1441           #1596270, #1736867
1442
1443 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
1444
1445         * src/SDCClrange.c (findPrevUse): fixed bug 1888147
1446         * support/regression/tests/bug1888147.c: new, added
1447
1448 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1449
1450         * src/z80/gen.c: fixed bugs #1596270, #1736867
1451
1452 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1453
1454         * src/z80/gen.c: fixed bug in register pair loading when swapping register
1455           contents, mostly fixes #1596270
1456
1457 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1458
1459         * src/z80/peeph.def,
1460         * src/z80/peeph-z80.def: moved peephole that breaks gbz80 to z80-specific
1461           peepholes, fixes #1806565
1462
1463 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
1464
1465         * src/SDCCpeeph.c (operandBaseName): added check for @Ri
1466         * src/mcs51/peeph.def (rule 177.c): added operandsNotRelated(%1 %3)
1467           fixes bug 1739475, thanks Robert Larice
1468           (rule 271): new, added
1469
1470 2008-02-18 Borut Razem <borut.razem AT siol.net>
1471
1472         * sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
1473
1474 2008-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
1475
1476         * src/SDCCmain.c (linkEdit): emit -z when using --debug for z80
1477
1478 2008-02-17 Raphael Neider <rneider AT web.de>
1479
1480         * src/pic16/genarith.c,
1481         * src/pic16/gen.c,
1482         * src/pic16/gen.h,
1483         * src/pic16/genutils.c: removed unused legacy code,
1484           removed unused fields from struct asmop and struct _G
1485
1486 2008-02-17 Raphael Neider <rneider AT web.de>
1487
1488         * src/pic16/gen.c (AccRsh): cosmetic changes,
1489           (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
1490           genRightShiftLiteral): fixed to work with SFRs as result by
1491           assigning only once to result,
1492           removed a lot of unused/excluded code fragments
1493
1494 2008-02-17 Raphael Neider <rneider AT web.de>
1495
1496         * device/include/pic/pic16f88.h,
1497         * device/include/pic/pic16f886.h,
1498         * device/include/pic/pic16f887.h: added TRISA6 and TRISA7
1499
1500 2008-02-17 Borut Razem <borut.razem AT siol.net>
1501
1502         * src/z80/peeph.def: applied patch
1503           #1893626: Optimize tail calls on Z80, thanks to Philipp Krause
1504         * src/z80/gen.c, src/z80/peeph.def: applied patch
1505           #1893510: Improve logical left shift on Z80, thanks to Philipp Krause
1506         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1507           sim/ucsim/s51.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
1508           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
1509           sim/ucsim/main_in.mk: renamed libutil.a to libucsimutil.a in order to
1510           enable compilation on Mac OS X 10.5 (Leopard) and XCode v3.0
1511
1512 2008-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
1513
1514         * as/link/mcs51/aslink.dsp: removed SDK define
1515         * as/link/z80/clean.mk: brought in sync with other ports
1516         * as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
1517         * as/hc08/Makefile.bcc,
1518         * as/mcs51/Makefile.bcc,
1519         * as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
1520         * src/z80/main.c (_setValues): use the now capitalized -Z,
1521           (z80_port, gbz80_port): generate debug information when asked
1522
1523 2008-02-16 Borut Razem <borut.razem AT siol.net>
1524
1525         * as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
1526           as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
1527           as/z80/Makefile.in. as/z80/Makefile.bcc:
1528           applied patch #1893393: patch for as-z80 and link-z80 to generate
1529           cdb, thanks to Armin Diehl
1530         * as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
1531           as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
1532           asnoice.c moved to as/asxxsrc/asnoice.c
1533         * src/z80/peeph-gbz80.def: applied patch
1534           #1880235: Z80 return peephole, thanks to Philipp Krause
1535
1536 2008-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
1537
1538         * .version,
1539         * doc/sdccman.lyx: bumped version to 2.7.5
1540         * src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583
1541
1542 2008-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
1543
1544         * device/include/pic16/stdlib.h,
1545         * device/lib/pic16/libc/stdlib/ltoa.c,
1546         * device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*
1547
1548 2008-02-13 Borut Razem <borut.razem AT siol.net>
1549
1550         * src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
1551         * src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
1552           src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
1553           src/SDCCopt.c,  src/SDCCval.c:
1554           fixed bug #1890273: SDCC Warning 154 shows wrong filename
1555
1556 2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
1557
1558         * src/SDCCsymt.c (compareType): fixed bug 1309013
1559
1560 2008-02-09 Borut Razem <borut.razem AT siol.net>
1561
1562         * src/SDCCval.c, src/SDCCval.h:
1563           code cleaning, added function constChrVal()
1564         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
1565           call constChrVal() instead constVal()
1566
1567 2008-02-01 Maarten Brock <sourceforge.brock AT dse.nl>
1568
1569         * src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
1570           of function pointer
1571         * src/SDCCerr.h,
1572         * src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
1573         * support/regression/tests/absolute.c: added TestStruct TestVar (see also
1574           bug 1859853)
1575
1576 2008-02-01 Raphael Neider <rneider AT web.de>
1577
1578         * device/include/pic/pic16f886.h,
1579         * device/include/pic/pic16f887.h: added RA6 and RA7
1580
1581 2008-01-24 Raphael Neider <rneider AT web.de>
1582
1583         * device/include/pic/pic16f88.h: added RA6 and RA7
1584         * device/lib/pic/libdev/disabled_pic16f886.c,
1585         * device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled
1586
1587         * src/pic16/devices.inc,
1588         * device/include/pic16/pic18f2423.h,
1589         * device/include/pic16/pic18f2523.h,
1590         * device/include/pic16/pic18fregs.h,
1591         * device/lib/pic16/pics.all
1592         * device/lib/pic16/libdev/pic18f2423.c,
1593         * device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
1594         * device/lib/pic16/libio/i2c.ignore,
1595         * device/lib/pic16/libio/usart.ignore,
1596         * device/lib/pic16/libio/adc.ignore: ignore new devices
1597
1598 2008-01-23 Maarten Brock <sourceforge.brock AT dse.nl>
1599
1600         * src/SDCCast.c (createRMW): fixed bug 1582651
1601
1602 2008-01-20 Borut Razem <borut.razem AT siol.net>
1603
1604         * src/SDCCcse.c: partially fixed enhancement request
1605           #1793872 - multiply by -1 not collapsed
1606         * support/regression/tests/arithcsi.c: added regression test
1607
1608 2008-01-19 Maarten Brock <sourceforge.brock AT dse.nl>
1609
1610         * as/mcs51/asx8051.dsp: removed define SDK
1611         * as/mcs51/i51mch.c (machine): fixed bug 1865114
1612         * device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
1613         * as/link/lklex.c,
1614         * as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
1615           cosmetic changes, brought more in sync, changed old K&R to ANSI
1616
1617 2008-01-13 Borut Razem <borut.razem AT siol.net>
1618
1619         * support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...
1620         * src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
1621
1622 2007-12-30 Borut Razem <borut.razem AT siol.net>
1623
1624         * src/pic16/gen.c: fixed implementation of bitwise operations for
1625           pic16 target
1626         * support/regression/tests/bitwise.c: added test cases
1627
1628 2007-12-29 Borut Razem <borut.razem AT siol.net>
1629
1630         * src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
1631         * src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
1632           src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
1633         * support/Util/dbuf_string.[ch]: added function dbuf_getline()
1634         * src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
1635           src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
1636           src/pic16/pcode.[ch]: added const qualifier
1637         * as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
1638           as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
1639           as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
1640           as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
1641         * as/asxxsrc/aslex.c: use dbuf_getline()
1642         * as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
1643           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
1644           as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
1645           as/z80/asm.h, as/z80/z80adr.c:
1646           changed type of ib and ip to const char *
1647
1648 2007-12-28 Borut Razem <borut.razem AT siol.net>
1649
1650         * as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
1651           introduced (readlin) - long lines are turuncated
1652         * as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
1653           as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
1654           as/z80/Makefile.in: moved aslex.c to asxxsrc
1655         * as/hc08/aslex.c, as/z80/aslex.c: deleted
1656         * as/hc08/asmain.c, as/mcs51/asmain.c:
1657           added missing initialization of a_addr field
1658         * support/regression/tests/long_asm_line.c: added regtest for long
1659           assembler line
1660
1661 2007-12-22 Borut Razem <borut.razem AT siol.net>
1662
1663         * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
1664
1665 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
1666
1667         * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
1668
1669 2007-12-16 Borut Razem <borut.razem AT siol.net>
1670
1671         * device/include/pic16/stdbool.h: removed, since already exists in
1672          device/include/; this also fixes bitopcse.c regression test for pic16
1673          target
1674         * support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
1675         * src/pic16/glue.c: fixed bug #1851855: generic static pointer
1676           dereference doesn't work; covered by regression test bug1399290
1677
1678 2007-12-05 Borut Razem <borut.razem AT siol.net>
1679
1680         * doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
1681           Adding new PIC16
1682
1683 2007-12-01 Borut Razem <borut.razem AT siol.net>
1684
1685         * sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
1686           corrected handling of the highest_valid_address
1687
1688 2007-11-17 Raphael Neider <rneider AT web.de>
1689
1690         * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
1691         * src/pic/glue.c (picglue): emit .file if --debug is given
1692
1693 2007-11-17 Raphael Neider <rneider AT web.de>
1694
1695         * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
1696         care when left or right operand resides in result, fixes #1830220
1697
1698 2007-11-17 Borut Razem <borut.razem AT siol.net>
1699
1700         * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
1701           #983491 - "Merge duplicate strings function is ineffective"
1702         * support/regression/tests/bug-983491.c: regtest disabled
1703         * as/asxxsrc: created
1704           as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
1705           as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
1706           as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
1707           as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
1708           as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
1709           as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
1710           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
1711           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
1712           as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
1713           as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
1714           as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
1715           as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
1716           created as/asxxsrc directory, assym.c and strcpi.c moved into it
1717
1718 2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
1719
1720         * device/include/stdarg.h: added and removed some casts
1721         * src/SDCCsymt.c (compareType): Fully check types between generic and
1722           non-generic pointers, also accept ptr-ptr to void-ptr assignments
1723
1724 2007-11-13 Borut Razem <borut.razem AT siol.net>
1725
1726         * support/regression/tests/bug-1817005.c:
1727           added regtest for bug #1817005 - as-z80 chokes on long labels
1728
1729 2007-11-12 Borut Razem <borut.razem AT siol.net>
1730
1731         * as/z80/asmain.c, as/z80/asm.h, as/z80/assym.c, as/z80/asdata.c,
1732           as/z80/asout.c, as/z80/aslist.c:
1733           fixed bug #1817005 - as-z80 chokes on long labels
1734
1735 2007-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
1736
1737         * as/hc08/asmain.c,
1738         * as/z80/asmain.c: cosmetic changes
1739         * as/hc08/alloc.h,
1740         * as/mcs51/alloc.h,
1741         * as/z80/alloc.h: removed
1742         * as/hc08/assym.c,
1743         * as/mcs51/assym.c: replaced alloc.h with stdlib.h
1744         * as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
1745         * as/link/hc08/Makefile.in,
1746         * as/link/mcs51/Makefile.in,
1747         * as/link/z80/Makefile.in: added -DUNIX to CFLAGS
1748         * as/link/lklex.c,
1749         * as/link/mcs51/lkarea.c,
1750         * as/link/mcs51/lkmain.c: cosmetic changes
1751         * as/link/hc08/lklibr.c,
1752         * as/link/z80/lklibr.c,
1753         * as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
1754           used cygwin_conv_to_full_posix_path,
1755           added warnings, cosmetic changes, brought more in sync
1756           changed old K&R into ANSI function declarations
1757         * as/link/z80/lklibr.c (loadAdb): added
1758         * as/link/z80/lkmain.c: removed -- option from usage text
1759
1760 2007-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
1761
1762         * src/mcs51/gen.c (outBitC): optimized for no result
1763
1764 2007-10-31 Borut Razem <borut.razem AT siol.net>
1765
1766         * src/SDCCsymt.c: fixed (hopeful properly) bug
1767           #1805702 - order of extern matters
1768         * support/regression/tests/bug-1805702.c: enabled regtest for bug
1769           #1805702
1770
1771 2007-10-29 Borut Razem <borut.razem AT siol.net>
1772
1773         * src/SDCCsymt.c: reverted bad fixed of bug #1805702
1774           - order of extern matters
1775         * support/regression/tests/bug-1805702.c: disabled regtest for bug
1776           #1805702
1777
1778 2007-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
1779
1780         * src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
1781           24bitMode, portIsDS390
1782         * src/mcs51/gen.c (genOr): optimized for RFE 1750727
1783         * src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
1784           (notVolatileVariable): also check sloc names,
1785           (callFuncByName): moved ftab[] out of function and sorted it by use
1786
1787 2007-10-28 Maarten Brock <sourceforge.brock AT dse.nl>
1788
1789         * device/include/stdarg.h: fixed bug in va_start macro for --xstack
1790         * src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
1791           aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
1792         * src/SDCCicode.c (geniCodeCast): fixed bug 880197
1793         * support/regression/tests/bug-880197.c: new, added
1794
1795 2007-10-28 Borut Razem <borut.razem AT siol.net>
1796
1797         * support/regression/Makefile.in,
1798           support/regression/ports/mcs51-large/spec.mk,
1799           support/regression/ports/mcs51-xstack-auto/spec.mk,
1800           support/regression/ports/mcs51-stack-auto/spec.mk,
1801           support/regression/ports/mcs51-medium/spec.mk,
1802           support/regression/ports/mcs51-common/spec.mk,
1803           support/regression/ports/mcs51-common/*,
1804           support/regression/ports/mcs51-small/*:
1805           mcs51 renamed to mcs51-common, created mcs51-small
1806         * src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
1807         * support/regression/tests/bug-1805702.c: added regtest for bug
1808           #1805702
1809
1810 2007-10-26 Maarten Brock <sourceforge.brock AT dse.nl>
1811
1812         * src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b,
1813           added new rules 265 - 270
1814         * support/regression/tests/bug1721024.c:new, added
1815         * support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
1816           introduced new test-mcs51 to run all mcs51 tests
1817
1818 2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
1819
1820         * support/regression/tests/bug1816470.c: new, added
1821
1822 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
1823
1824         * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
1825           propagate for *,+,- with float, fixed bug 1816470
1826           (decorateType): cast to resultTypeProp instead of resultType
1827
1828 2007-10-19 Borut Razem <borut.razem AT siol.net>
1829
1830         * src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
1831           function is ineffective" for pic16 tareget
1832         * support/scripts/listerr.c: corrected include path
1833         * device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
1834           adjacent memory
1835
1836 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
1837
1838         * support/regression/tests/using.c: new, added
1839         * support/regression/tests/vaargs.c: fixed and enabled test
1840
1841 2007-10-18 Borut Razem <borut.razem AT siol.net>
1842
1843         * src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
1844           is ineffective
1845         * support/regression/tests/bug-983491.c: added regtest for bug #983491
1846
1847 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
1848
1849         * doc/sdccman.lyx: documented option --Werror
1850         * src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
1851           RegBankUsed[] earlier
1852
1853 2007-10-14 Maarten Brock <sourceforge.brock AT dse.nl>
1854
1855         * device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
1856         * src/pic/glue.c,
1857         * src/SDCCval.c,
1858         * src/SDCCast.c,
1859         * src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
1860           AST_ULONG_VALUE
1861         * src/SDCCast.c (decorateType): improved optimization of tri-op
1862         * src/SDCCerr.c (vwerror, setWError),
1863         * src/SDCCerr.h,
1864         * src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
1865           warnings as errors, thanks Stas Sergeev for PATCH 1813211
1866
1867 2007-10-13 Maarten Brock <sourceforge.brock AT dse.nl>
1868
1869         * src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
1870         * src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
1871         * support/regression/tests/bug-223113.c,
1872         * support/regression/tests/bug-426632.c,
1873         * support/regression/tests/bug-468811.c,
1874         * support/regression/tests/bug-477835.c,
1875         * support/regression/tests/bug-478094.c,
1876         * support/regression/tests/bug-499644.c,
1877         * support/regression/tests/bug-524209.c,
1878         * support/regression/tests/bug-524211.c,
1879         * support/regression/tests/packcast.c,
1880         * support/regression/tests/structidx.c: added empty tests
1881         * support/regression/tests/bug-607243.c: enabled test
1882
1883 2007-10-06 Borut Razem <borut.razem AT siol.net>
1884
1885         * .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
1886            support of universal binaries on Mac OS X
1887
1888 2007-10-02 Borut Razem <borut.razem AT siol.net>
1889
1890         * src/SDCCval.h: unified double2ul macro for all platforms
1891         * src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
1892         * support/regression/tests/bitwise.c: added regtest for bug #1777758
1893
1894 2007-09-30 Borut Razem <borut.razem AT siol.net>
1895
1896         * src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
1897           platforms
1898         * sdcc_vc_in.h: enabled warnings
1899         * src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
1900           unsigned type, result still unsigned
1901         * src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
1902
1903 2007-09-28 Raphael Neider <rneider AT web.de>
1904
1905         * src/pic/device.c (find_device): prevent buffer underflow error
1906         * src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
1907           the just destroyed list entry
1908
1909 2007-09-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1910
1911         * doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks
1912           Alexander Neundorf
1913
1914 2007-09-18 Borut Razem <borut.razem AT siol.net>
1915
1916         * src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
1917          applied to unsigned type, result still unsigned
1918
1919 2007-09-17 Borut Razem <borut.razem AT siol.net>
1920
1921         * src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c,
1922           src/SDCCicode.c, src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c,
1923           src/SDCCval.h, src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c,
1924           src/mcs51/gen.c, src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c,
1925           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/genarith.c,
1926           src/pic16/genutils.c, src/pic16/glue.c, src/pic16/main.c,
1927           src/z80/gen.c, src/z80/ralloc.c:
1928           fixed bug #1739860 - sdcc does not work correctly on some platforms
1929           (not finished)
1930           introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()
1931
1932 2007-09-17 Raphael Neider <rneider AT web.de>
1933
1934         * src/pic16/device.c: reverted to previous version
1935         * device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q
1936
1937 2007-09-16 Raphael Neider <rneider AT web.de>
1938
1939         * src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
1940           as this raises a ton of gpasm warnings, just emit a second label
1941         * src/pic16/devices.inc,
1942         * device/lib/pic16/pics.all,
1943         * device/lib/pic16/libdev/pic18f2585.c,
1944         * device/lib/pic16/libdev/pic18f2680.c,
1945         * device/lib/pic16/libdev/pic18f2682.c,
1946         * device/lib/pic16/libdev/pic18f2685.c,
1947         * device/lib/pic16/libdev/pic18f4585.c,
1948         * device/lib/pic16/libdev/pic18f4680.c,
1949         * device/lib/pic16/libdev/pic18f4682.c,
1950         * device/lib/pic16/libdev/pic18f4685.c,
1951         * device/include/pic16/pic18f2585.h,
1952         * device/include/pic16/pic18f2680.h,
1953         * device/include/pic16/pic18f2682.h,
1954         * device/include/pic16/pic18f2685.h,
1955         * device/include/pic16/pic18f4585.h,
1956         * device/include/pic16/pic18f4680.h,
1957         * device/include/pic16/pic18f4682.h,
1958         * device/include/pic16/pic18f4685.h,
1959         * device/include/pic16/pic18fregs.h: added 18f2585, 18f2680,
1960           18f2682, 18f2685, 18f4585, 18f4680, 18f4682, 18f4685,
1961           patch contributed by Anton Strobl, applied with changes
1962
1963 2007-09-16 Raphael Neider <rneider AT web.de>
1964
1965         * device/include/pic16/pic18f2431.h,
1966         * device/include/pic16/pic18f25j10.h,
1967         * device/include/pic16/pic18f4431.h,
1968         * device/include/pic16/pic18f45j10.h: adopted common include style
1969         * device/include/pic16/pic18f1320.h,
1970         * device/include/pic16/pic18f2320.h,
1971         * device/include/pic16/pic18f2525.h,
1972         * device/include/pic16/pic18f4320.h,
1973         * device/include/pic16/pic18f4525.h: NEW, just include proper .h file
1974         * device/include/pic16/pic18fregs.h: prepared for automatic include
1975           file selection by having DEVICE.h for every DEVICE
1976         * device/lib/pic16/libdev/pic18f2320.c,
1977         * device/lib/pic16/libdev/pic18f4320.c: just include proper .c file
1978
1979         * device/lib/pic16/configure.in,
1980         * device/lib/pic16/configure: use rm -rf instead of rmdir
1981         * device/lib/pic16/Makefile.in: use RMDIR to remove build directories
1982         * device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast
1983
1984 2007-09-09 Borut Razem <borut.razem AT siol.net>
1985
1986         * src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
1987           distingush between i386 and ppc Mac OS X versions
1988
1989 2007-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
1990
1991         * src/mcs51/gen.c (genReceive): fixed bug 1788177
1992         * support/regression/tests/bug1788177.c: new, added
1993
1994 2007-09-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1995
1996         * doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
1997         * device/include/mcs51/lint.h added keyword __naked
1998
1999 2007-09-04 Maarten Brock <sourceforge.brock AT dse.nl>
2000
2001         * src/pic16/glue.c,
2002         * src/pic/glue.c,
2003         * src/SDCCmem.h: removed maxRegBank
2004         * src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
2005           RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
2006         * src/SDCCsymt.c (checkFunction): set RegBankUsed[] here
2007         * src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
2008           name and behaviour to handle banked functions
2009           (scan4op): and use it to fix bug 1786213
2010
2011 2007-09-03 Raphael Neider <rneider AT web.de>
2012
2013         * device/include/pic16/pic18f248.h,
2014         * device/include/pic16/pic18f258.h,
2015         * device/include/pic16/pic18f448.h,
2016         * device/lib/pic16/libdev/pic18f248.c,
2017         * device/lib/pic16/libdev/pic18f258.c,
2018         * device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
2019           added T0CONbits, fixes #1786891
2020
2021 2007-08-29 Maarten Brock <sourceforge.brock AT dse.nl>
2022
2023         * src/ds390/gen.c (genFarPointerSet),
2024         * src/hc08/ralloc.c (packRegisters),
2025         * src/mcs51/ralloc.c (packRegisters),
2026         * src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
2027           bug 1750318
2028         * src/SDCCicode.h: POINTER_SET can be true for literals too
2029         * support/regression/tests/bug1750318.c: new, added
2030
2031 2007-08-23 Borut Razem <borut.razem AT siol.net>
2032
2033         * debugger/mcs51/sdcdb.c: fixed compilation with older readline
2034           library versions without the completition functionality
2035
2036 2007-08-22 Raphael Neider <rneider AT web.de>
2037
2038         * device/include/pic16/pic18f1220.h,
2039         * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
2040
2041 2007-08-12 Borut Razem <borut.razem AT siol.net>
2042
2043         * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
2044
2045 2007-08-11 Borut Razem <borut.razem AT siol.net>
2046
2047         * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
2048           src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
2049           support/Util/SDCCerr.[ch] moved to src
2050         * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
2051           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
2052           device/examples/ds390/tinitalk/tinitalk.dsp,
2053           device/examples/serialcomm/windows/serialcomm.dsp,
2054           support/librarian/librarian.dsp:
2055           removed linking of unused odbc32.lib and odbccp32.lib
2056         * support/scripts/winres.h:
2057           added for compilation with Visual C++ 2005 Express Edition
2058
2059 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2060
2061         * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
2062           and CKCON1.
2063
2064 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2065
2066         * sdccconf_in.h: update the endian test so that SPARC Solaris
2067           does not throw syntax errors
2068
2069 2007-08-06 Borut Razem <borut.razem AT siol.net>
2070
2071         * doc/sdccman.lyx: removed two index entries which prevented the
2072           generation of sdcc doc archive
2073
2074 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2075
2076         * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
2077           instead of lyx 1.5.0.
2078
2079 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2080
2081         * device/include/hc08/mc68hc908apxx.h: new header contributed by
2082           Lucas Loizaga, with minor modifications. Thanks!
2083
2084 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2085
2086         * doc/sdccman.lyx: Documented --acall-ajmp and described new features
2087           in sdcclib.
2088
2089 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2090
2091         * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
2092           src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
2093           with acall/ajmp.
2094
2095 2007-07-22 Borut Razem <borut.razem AT siol.net>
2096
2097         * configure.in, configure: re-introduced .version
2098         * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
2099           the version reverted to 2.7.0
2100
2101 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
2102
2103         * configure.in,
2104         * doc/sdccman.lyx: bumped version to 2.7.3
2105         * device/include/mcs51/compiler.h: fixed elif->else
2106         * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
2107         * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
2108           (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
2109            enable accuse for bit operands
2110         * src/SDCCmain.c (printVersionInfo),
2111         * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
2112           environment descriptor
2113         * src/SDCCutil.h: added getBuildEnvironment
2114         * src/SDCCglue.c (initialComments): use getBuildEnvironment
2115         * support/regression/tests/bug1464657.c: enabled test test_Peephole251
2116         * support/regression/tests/bug-408972.c: enabled test leftShiftLong
2117         * support/regression/tests/bug1348008.c,
2118         * support/regression/tests/bug1496419.c,
2119         * support/regression/tests/bug1503067.c,
2120         * support/regression/tests/preproc.c: added empty tests
2121
2122 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
2123
2124         * support/regression/tests/bug1678803.c: new, added
2125
2126 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
2127
2128         * as/link/aslink.h,
2129         * as/link/hc08/lkihx.c,
2130         * as/link/hc08/lkrloc.c,
2131         * as/link/mcs51/lkihx.c,
2132         * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
2133           ihxExtendedLinearAddress
2134         * as/link/mcs51/lkrloc.c (relr),
2135         * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
2136           acall/ajmp, see bug 830513
2137
2138 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
2139
2140         * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
2141           (cseBBlock): remember aggr2ptr has been used
2142         * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
2143           (geniCodeAssign): fixed bug 868103
2144         * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
2145           added operandSize prototype
2146         * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
2147           (genDataPointerSet): use max of size of right and result,
2148           (gencjne): added parameter useCarry for optimization,
2149           (genCmpEq): use carry if appropriate,
2150           (genXor): check if operand already in carry
2151         * support/regression/tests/bug-868103.c: enabled test
2152
2153 2007-07-12 Raphael Neider <rneider AT web.de>
2154
2155         * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
2156
2157 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
2158
2159         * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
2160           from Robert Larice, thanks
2161         * support/regression/tests/bitopcse.c,
2162         * support/regression/tests/bitvars.c,
2163         * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
2164         * support/regression/tests/bug-927659.c: enabled test for z80
2165         * support/regression/tests/bug1738367.c: added extra tests by Frieder
2166         * support/regression/tests/bug1745717.c: new, added
2167         * support/regression/tests/literalop.c,
2168         * support/regression/tests/nullstring.c: removed storage definitions that
2169           are now in testfwk.h
2170
2171 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
2172
2173         * device/include/stdbool.h: do not define __bool_true_false_are_defined
2174           and bool for targets that do not fully support it.
2175         * support/regression/tests/bug1546986.c,
2176         * support/regression/tests/bug1723128.c,
2177         * support/regression/tests/bug1734654.c,
2178         * support/regression/tests/bug1738367.c,
2179         * support/regression/tests/constantRange.c: only use bool if allowed
2180
2181 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
2182
2183         * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
2184           Larice, also handle function pointers
2185         * support/regression/tests/bug1749275.c: new, added
2186
2187 2007-07-03 Borut Razem <borut.razem AT siol.net>
2188
2189         * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
2190           src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
2191           #1746528: SDCC should ignore ':' in inline assembler comments
2192         * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
2193
2194 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
2195
2196         * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
2197         * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
2198
2199 2007-06-29 Borut Razem <borut.razem AT siol.net>
2200
2201         * src/SDCCmain.c: fixed bug
2202           #1744746: SDCC #4867: broken option --xram-size
2203
2204 2007-06-28 Borut Razem <borut.razem AT siol.net>
2205
2206         * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
2207           find out the endianess of host machine for ucsim
2208
2209 2007-06-27 Borut Razem <borut.razem AT siol.net>
2210
2211         * support/regression/generate-cases.py: corrected the file name
2212           in warning
2213         * configure.in, configure, sdccconf_in.h: find out the endianess of
2214           host machine
2215         * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
2216           negative size
2217
2218 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
2219
2220         * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
2221
2222 2007-06-26 Borut Razem <borut.razem AT siol.net>
2223
2224         * support/regression/generate-cases.py: display warning if function
2225           list is empty; implemented more flexible rule for detection of
2226           testing functions, allowing return type 'void' in the same line as
2227           the function name in the function definition
2228         * support/regression/tests/bug-1654060.c: corrected test
2229         * support/librarian/sdcclib.c: fixed warning:
2230           format '%s' expects type 'char *', but argument 2 has type 'int'
2231
2232 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2233
2234         * support/librarian/sdcclib.c: Added feature Requests [1510635]
2235           Multiple infiles for sdcclib.
2236
2237 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2238
2239         * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
2240           bug 1731741
2241
2242 2007-06-18 Borut Razem <borut.razem AT siol.net>
2243
2244         * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
2245           how to handle comments, so they have to be removed by the
2246           preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
2247         * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
2248           src/pic16/main.c, src/pic/main.c, src/z80/main.c,
2249           support/Util/SDCCerr.c, support/Util/SDCCerr.h:
2250           table driven option hadling
2251
2252 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
2253
2254         * src/SDCCast.c (decorateType),
2255         * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
2256           iCode to ast level to fix bug 1738367
2257         * support/regression/tests/bug1738367.c: new, added
2258
2259 2007-06-15 Raphael Neider <rneider AT web.de>
2260
2261         * src/pic16/devices.inc,
2262         * device/lib/pic16/pics.all,
2263         * device/include/pic16/pic18fregs.h,
2264         * device/include/pic16/pic18f[24][45]20.h,
2265         * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
2266           18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
2267         * device/lib/pic16/Makefile.in: faster cleanup
2268
2269 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2270
2271         * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
2272
2273 2007-06-13 Raphael Neider <rneider AT web.de>
2274
2275         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
2276
2277 2007-06-12 Raphael Neider <rneider AT web.de>
2278
2279         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
2280           suppress bit defines if NO_BIT_DEFINES is #define'd
2281         * device/include/pic/pic*.h: recreated all headers to include
2282           conditional bit defines
2283         * device/include/pic/pic16f886.h,
2284         * device/include/pic/pic16f887.h: fixed based on newer .inc file
2285         * device/include/pic/recreate.sh: script to recreate the complete
2286           device library files based on the currently supported devices
2287
2288 2007-06-12 Borut Razem <borut.razem AT siol.net>
2289
2290         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
2291           support/regression/Makefile.in, support/scripts/build.mak,
2292           support/scripts/Makefile.snapshot:
2293           use new svn URL scheme
2294         * doc/sdccman.lyx: SDCC Wiki moved to
2295           http://sdcc.wiki.sourceforge.net/
2296
2297 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2298
2299         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
2300         * support/regression/tests/bug1734654.c: added
2301
2302 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
2303
2304         * src/SDCCast.c (decorateType): optimized '?' for equal operands
2305         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
2306           with literal operands
2307
2308 2007-06-10 Borut Razem <borut.razem AT siol.net>
2309
2310         * as/link/z80/lklibr.c: fixed mingw build warning
2311           lklibr.c:575: warning: implicit declaration of function 'tolower'
2312         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
2313           src/z80/main.c: move target specific options from src/SDCCmain.c
2314           to src/<target>/main.c
2315
2316 2007-06-09 Borut Razem <borut.razem AT siol.net>
2317
2318         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
2319           removed unused swap_sense; removed outBitCLong, replaced with outBitC
2320         * support/regression/tests/bug-1294691.c: added
2321
2322 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
2323
2324         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
2325           can also be static, fixes bug 1733438
2326         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
2327           have absolute address too
2328           (computeType): added optimization for 'cond ? true : false'
2329         * support/regression/tests/absolute.c: added test for static absolute var
2330
2331 2007-06-08 Raphael Neider <rneider AT web.de>
2332
2333         * src/regression/Makefile: suppress parallel builds, allow easy
2334           switching between pic14/pic16 ports
2335         * src/regression/picregs.h: added pic14/16 header file switch
2336         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
2337           inline.c,nestfor.c,string1.c}: include "picregs.h"
2338
2339 2007-06-07 Borut Razem <borut.razem AT siol.net>
2340
2341         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
2342           permanent solution to suppress GCC 4.2.0 c++ warning:
2343           deprecated conversion from string constant to `char *'
2344           use 'const char *' where ever required
2345         * support/regression/generate-cases.py: implemented more flexible rule
2346           for detection of testing functions, allowing white-spaces surrounding
2347           the function name and the 'void' parameter.
2348         * support/regression/tests/constantRange.c,
2349           support/regression/tests/scott-compare3.c: fixed failing regression
2350           tests, uncovered by implementation of more flexible rule for detection
2351           of testing functions
2352
2353 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
2354
2355         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
2356
2357 2007-06-04 Borut Razem <borut.razem AT siol.net>
2358
2359         * configure.in, configure, config_vc.awk: sdcc version number is now
2360           stored in configure.in; removed .version
2361         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
2362           doc/INSTALL.txt: version bumped to 2.7.2
2363         * sim/ucsim/configure.in, sim/ucsim/configure:
2364           use "read" to read from .version
2365
2366 2007-06-03 Borut Razem <borut.razem AT siol.net>
2367
2368         * */Makefile.in: removed annoying warning:
2369           Makefile:xx: Makefile.dep: No such file or directory
2370
2371 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
2372
2373         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
2374           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
2375         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
2376         * src/SDCCast.c (resultTypePropagate): propagate for '!',
2377           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
2378           bugfix: only use newBoolLink for bit result type
2379         * src/SDCCicode.c (geniCodeLogic): added param tree,
2380           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
2381           (geniCodeLogicAndOr): use IS_BIT,
2382           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
2383           (ast2iCode): added tree param to geniCodeLogic for comparisons
2384         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
2385         * support/regression/tests/bug1723128.c: added test NotZero
2386
2387 2007-06-01 Borut Razem <borut.razem AT siol.net>
2388
2389         * SDCPP synchronized with GCC CPP release version 4.2.0,
2390           currently the latest release:
2391         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2392           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
2393           support/cpp2/cppdefault.h, support/cpp2/except.h,
2394           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
2395           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
2396           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
2397           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
2398           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
2399           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
2400           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
2401           support/cpp2/opts.h, support/cpp2/output.h,
2402           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
2403           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
2404           support/cpp2/system.h, support/cpp2/version.c,
2405           support/cpp2/Makefile.in: modified
2406         * support/cpp2/opts-common.c: added
2407         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
2408         * device/lib/pic16/libdev/pic18f[24]5j10.c:
2409           search for included source file in local directory
2410         * sim/ucsim/configure, sim/ucsim/configure.in:
2411           temporary solution to suppress GCC 4.2.0 c++ warning:
2412           deprecated conversion from string constant to `char *'
2413
2414 2007-06-01 Raphael Neider <rneider AT web.de>
2415
2416         * device/lib/pic/libdev/pic12f683.c,
2417         * device/include/pic/pic12f683.h: added GPIO bits
2418
2419 2007-06-01 Raphael Neider <rneider AT web.de>
2420
2421         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
2422           quotation marks, clarified role of PIC14 vs. PIC16 ports
2423         * src/pic16/devices.inc,
2424         * device/include/pic16/pic18fregs.h,
2425         * device/include/pic16/pic18f[24][45]j10.h,
2426         * device/lib/pic16/pics.all,
2427         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
2428           18f24j10, 18f25j10, 18f44j10, and 18f45j10
2429         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
2430           for new devices as they are not yet supported by gputils
2431
2432 2007-05-31 Borut Razem <borut.razem AT siol.net>
2433
2434         * Small Device C Compiler 2.7.0 released
2435         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
2436           changed sdcc version to 2.7.1
2437         * support/scripts/sdcc.nsi: added How to create WIN32 release
2438           setup.exe package
2439
2440 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
2441
2442         * doc/sdccman.lyx: documented initialization and allocation of absolute
2443           variables, bit parameter passing, the need for function pointers to be
2444           reentrant and alpha quality support of inline and retrict
2445
2446 2007-05-26 Borut Razem <borut.razem AT siol.net>
2447
2448         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
2449           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
2450         * docs/knownbugs.html: updated
2451
2452 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
2453
2454         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
2455           thanks Jan Waclawek
2456         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
2457           AOP_CRY and ruonly
2458           (gencjneshort): optimized when left is AOP_DIR
2459         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
2460           initializing unions in a struct/array
2461         * support/regression/fwk/include/testfwk.h: added defines for data, near
2462           and far for host and z80
2463         * support/regression/tests/bug1723128.c: new, added
2464
2465 2007-05-22 Borut Razem <borut.razem AT siol.net>
2466
2467         * doc/knownbugs.html: updated
2468
2469 2007-05-21 Raphael Neider <rneider AT web.de>
2470
2471         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
2472           error message instead
2473         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
2474
2475 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
2476
2477         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
2478
2479 2007-05-21 Raphael Neider <rneider AT web.de>
2480
2481         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
2482           closes #1722392
2483         * src/regression/gpsim_assert.h,
2484         * src/regression/Makefile,
2485         * src/regression/pcodeopt.c: regression test for the above fix
2486
2487 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
2488
2489         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
2490           jumps to self, fixed bug 1717281
2491
2492 2007-05-10 Borut Razem <borut.razem AT siol.net>
2493
2494         * support/scripts/gen_known_bugs.pl: cosmetic fix
2495         * doc/knownbugs.html: generated by gen_known_bugs.pl
2496
2497 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2498
2499         * src/SDCCast.c (createFunction): also generate non-inlined version of
2500           function for functions declared as "static inline"
2501         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
2502           function can be inlined after non-inlined version generated.
2503
2504 2007-05-10 Borut Razem <borut.razem AT siol.net>
2505
2506         * support/scripts/gen_known_bugs.pl: added script
2507           which generates knownbugs.html
2508
2509 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
2510
2511         * doc/knownbugs.html: updated for release 2.7.0
2512
2513 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2514
2515         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
2516
2517 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
2518
2519         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
2520           (throughout): updated generating comments
2521         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
2522           (throughout): updated generating comments
2523         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
2524           rule instead of at the second, or it might skip lines when removing the
2525           complete match
2526         * support/regression/tests/bug1714204.c: changed test to foo
2527
2528 2007-05-08 Borut Razem <borut.razem AT siol.net>
2529
2530         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
2531           thanks to SDCC Distributed Compile Farm members,
2532           added Z80 and GBZ80 command line options
2533         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
2534
2535 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
2536
2537         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
2538         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
2539         * support/regression/tests/longlit.c: modified to be tested at all and
2540           to pass the actual test
2541
2542 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2543
2544         * device/include/mcs51/uPSD33xx.h: Added.
2545
2546 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
2547
2548         * device/lib/_gptrput.c,
2549         * device/lib/_gptrget.c: removed old code,
2550          (_gptrgetWord),
2551         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
2552         * support/regression/tests/bug1714204.c: new, added
2553
2554 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2555
2556         * support/regression/tests/regtrack.c: test was never executed
2557           because of the regression test being picky about white spaces.
2558         * device/lib/mcs51/crtclear.asm: added comment
2559
2560 2007-05-06 Raphael Neider <rneider AT web.de>
2561
2562         * device/lib/pic/Makefile.rules,
2563         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
2564           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
2565
2566 2007-05-06 Raphael Neider <rneider AT web.de>
2567
2568         * src/pic16/device.h,
2569         * src/pic16/main.h,
2570         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
2571           _pic16_setDefaultOptions): removed/reordered command-line args
2572         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
2573           devices, regrouped command line args, environment variables),
2574           clarified sone points, added sections on how to add devices to the
2575           PIC14/PIC16 ports
2576
2577 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
2578
2579         * src/z80/peeph.def: fixed bug in rule 2
2580
2581 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
2582
2583         * src/port.h: added TARGET_MCS51_LIKE
2584         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
2585           take advantage of it too
2586         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
2587           (shiftR2Left2Result): Optimized: don't check shifting by 0
2588         * src/z80/peeph-z80.def,
2589         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
2590           modifications, see patch 1700823
2591         * src/mcs51/peep.c (): fixed bug 1712928
2592         * support/regression/tests/bug1712928.c: new, added
2593
2594 2007-05-05 Borut Razem <borut.razem AT siol.net>
2595
2596         * device/lib/pic16/Makefile.common.in,
2597           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
2598           removed bash dependencies
2599
2600 2007-05-01 Borut Razem <borut.razem AT siol.net>
2601
2602         * src/SDCCicode.c:
2603           fixed bug #1710507: --i-code-in-asm makes compile fail
2604           all iCode comments are now one liners
2605         * src/mcs51/gen.c: fixed memory leak
2606
2607 2007-05-01 Raphael Neider <rneider AT web.de>
2608
2609         * device/lib/pic/libdev/*.c
2610         * device/include/pic/*.h: regenerated all device libs from updated
2611           .inc files
2612         * support/scripts/inc2h.pl: documented usage, now uses strict to
2613           catch more bugs
2614
2615 2007-04-30 Borut Razem <borut.razem AT siol.net>
2616
2617         * doc/sdccman.lyx:
2618           fixed bug #1669175: Problem with space in output paths
2619           documented how to use paths with spaces for Windows users
2620
2621 2007-04-29 Borut Razem <borut.razem AT siol.net>
2622
2623         * Fixed svn:eol-style and svn:keywords properties
2624         * src/SDCCval.c: fixed bug
2625           #1592871: Segfault with "large" const arrays of characters
2626           replaced recursion with iteration
2627         * Removed svn:executable property from non-executable files
2628
2629 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
2630
2631         * src/mcs51/gen.c (genRet): fixed bug 1707003
2632
2633 2007-04-27 Raphael Neider <rneider AT web.de>
2634
2635         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
2636           createReachingDefinitions,assignValnums,pic16_destructDF,
2637           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
2638           prevent NULL pointer dereferences
2639         * device/lib/pic/libdev/pic16f886.c,
2640         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
2641           prevent building them, gputils do not really support them yet
2642
2643 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2644
2645         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
2646           helps printf_small. 32 bytes more __idata mem.
2647
2648 2007-04-27 Raphael Neider <rneider AT web.de>
2649
2650         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
2651           return early when pb or pb->pcHead is NULL (patch #1708427)
2652         * src/regression/empty.c,
2653         * src/regression/Makefile: added test with empty functions
2654         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
2655
2656 2007-04-27 Borut Razem <borut.razem AT siol.net>
2657
2658         * src/SDCCast.c: fixed feature request
2659           #1547512: Redundant strings linked when using sizeof("abc")
2660
2661 2007-04-23 Borut Razem <borut.razem AT siol.net>
2662
2663         * doc/sdccman.lyx, src/SDCCmain.c:
2664           peep-hole comments are generated only if --fverbose-asm option is
2665           specified and --no-peep-comments is not, as proposed by Frieder.
2666         * support/regression/Makefile.in: compile regression tests with
2667           --fverbose-asm option so one can "grep" whether a new (or an old)
2668           peephole is (still) applied; requested by Frieder.
2669
2670 2007-04-23 Kevin Buettner <kevin AT buettner.to>
2671
2672         * device/include/pic/pic16f886.h,
2673         * device/include/pic/pic16f887.h,
2674         * device/lib/pic/libdev/pic16f886.c,
2675         * device/lib/pic/libdev/pic16f887.c,
2676         * device/include/pic/pic14devices.txt,
2677         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
2678
2679 2007-04-23 Kevin Buettner <kevin AT buettner.to>
2680
2681         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
2682           fixes #1704666
2683
2684 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2685
2686         * device/lib/_memset.c: assembler version for mcs51
2687
2688 2007-04-22 Borut Razem <borut.razem AT siol.net>
2689
2690         * support/scripts/listerr.c: program to create the list of errors and
2691           warnings list from - added
2692         * doc/sdccman.lyx: removed the note
2693           "For list of warnings and corresponding codes, see err_warn.txt"
2694         * src/SDCCsymt.c: fixed bug #1699804:
2695           Bug with some uses of sizeof(static local array) (MCS51)
2696         * support/regression/tests/bug-1699804.c: added
2697
2698 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
2699
2700         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
2701           (main): added option -i,
2702           (asmbl, case S_INCL): use search_path_fopen,
2703           mostly from patch 1579668 by Peter Miller, thanks
2704         * src/z80/main.c: fixed typo --callee-saves-bc
2705         * device/include/mcs51/compiler.h: added sfrword for Tasking
2706
2707 2007-04-20 Borut Razem <borut.razem AT siol.net>
2708
2709         * src/z80/main.c: replaced reserved keyword asm with asmblr
2710
2711 2007-04-19 Borut Razem <borut.razem AT siol.net>
2712
2713         * src/port.h: use const pointers to strings
2714         * src/SDCCargs.h: declared getStringArg() and getIntArg()
2715         * src/pic16/main.c: include SDCCargs.h
2716         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
2717           const char, since the strings are dynamically allocated
2718         * src/SDCCmain.c: options.code_seg and options.const_seg are
2719           dynamically allocated; check port specific command line options
2720           before the general ones
2721         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
2722
2723 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
2724
2725         * device/include/ds400rom.h,
2726         * device/lib/ds390/lcd390.c,
2727         * device/lib/ds390/memcpyx.c,
2728         * device/lib/ds390/rtc390.c,
2729         * device/lib/ds400/ds400rom.c,
2730         * device/lib/ds400/memcpyx.c,
2731         * device/lib/hc08/_ret.c: more replacements of keywords with their
2732           double underscore equivalents
2733         * device/lib/ds390/Makefile.in,
2734         * device/lib/ds400/Makefile.in,
2735         * device/lib/gbz80/Makefile.in,
2736         * device/lib/hc08/Makefile.in,
2737         * device/lib/mcs51/Makefile.in,
2738         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
2739
2740 2007-04-17 Borut Razem <borut.razem AT siol.net>
2741
2742         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
2743           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
2744           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
2745           to --fverbose-asm, to be gcc'ish
2746
2747 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
2748
2749         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
2750
2751 2007-04-17 Borut Razem <borut.razem AT siol.net>
2752
2753         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
2754         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
2755           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
2756           with their double underscore equivalent
2757
2758 2007-04-14 Borut Razem <borut.razem AT siol.net>
2759
2760         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
2761           source"
2762
2763 2007-04-13 Borut Razem <borut.razem AT siol.net>
2764
2765         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
2766           C99 standard
2767         * device/examples/serialcomm/windows/serial.[ch],
2768           device/examples/serialcomm/windows/test_serialcomm.cpp:
2769           updated by Bela Torok
2770         * device/examples/serialcomm/windows/serialcomm.dsw,
2771           device/examples/serialcomm/windows/serialcomm.dsp: added
2772
2773 2007-04-13 Jan Waclawek <wek AT efton.sk>
2774
2775         * doc/sdccman.lyx: additions and changes at various places
2776           (submitted as #1697136).
2777           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
2778
2779 2007-04-10 Borut Razem <borut.razem AT siol.net>
2780
2781         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
2782           LyX file format changed to 245
2783         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
2784           "FreeWare" replaced with "free open source"
2785
2786 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
2787
2788         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
2789
2790 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
2791
2792         * device/include/pic16/pic18fregs.h,
2793         * device/lib/_bp.c,
2794         * device/lib/_decdptr.c,
2795         * device/lib/_divsint.c,
2796         * device/lib/_divslong.c,
2797         * device/lib/_divuint.c,
2798         * device/lib/_divulong.c,
2799         * device/lib/_fs2schar.c,
2800         * device/lib/_fs2sint.c,
2801         * device/lib/_fs2slong.c,
2802         * device/lib/_fs2uchar.c,
2803         * device/lib/_fs2uint.c,
2804         * device/lib/_fs2ulong.c,
2805         * device/lib/_fsadd.c,
2806         * device/lib/_fscmp.c,
2807         * device/lib/_fsdiv.c,
2808         * device/lib/_fseq.c,
2809         * device/lib/_fsget1arg.c,
2810         * device/lib/_fsget2args.c,
2811         * device/lib/_fsgt.c,
2812         * device/lib/_fslt.c,
2813         * device/lib/_fsmul.c,
2814         * device/lib/_fsneq.c,
2815         * device/lib/_fsnormalize.c,
2816         * device/lib/_fsreturnval.c,
2817         * device/lib/_fsrshift.c,
2818         * device/lib/_fssub.c,
2819         * device/lib/_fsswapargs.c,
2820         * device/lib/_gptrget.c,
2821         * device/lib/_gptrgetc.c,
2822         * device/lib/_gptrput.c,
2823         * device/lib/_logexpf.c,
2824         * device/lib/_modsint.c,
2825         * device/lib/_modslong.c,
2826         * device/lib/_moduint.c,
2827         * device/lib/_modulong.c,
2828         * device/lib/_mulint.c,
2829         * device/lib/_mullong.c,
2830         * device/lib/_schar2fs.c,
2831         * device/lib/_ser.c,
2832         * device/lib/_setjmp.c,
2833         * device/lib/_sint2fs.c,
2834         * device/lib/_slong2fs.c,
2835         * device/lib/_spx.c,
2836         * device/lib/_uchar2fs.c,
2837         * device/lib/_uint2fs.c,
2838         * device/lib/_ulong2fs.c,
2839         * device/lib/asincosf.c,
2840         * device/lib/atanf.c,
2841         * device/lib/calloc.c,
2842         * device/lib/ds390/tinibios.c,
2843         * device/lib/ds400/tinibios.c,
2844         * device/lib/expf.c,
2845         * device/lib/free.c,
2846         * device/lib/hc08/_mulint.c,
2847         * device/lib/logf.c,
2848         * device/lib/malloc.c,
2849         * device/lib/printf_fast.c,
2850         * device/lib/printf_tiny.c,
2851         * device/lib/printfl.c,
2852         * device/lib/realloc.c,
2853         * device/lib/ser_ir.c,
2854         * device/lib/serial.c,
2855         * support/regression/tests/libmullong.c: replaced all special keywords
2856           with their double underscore equivalent
2857         * support/regression/ports/mcs51-xstack-auto/spec.mk,
2858         * device/lib/Makefile.in: compile libs with --std-c99 instead of
2859           --std-sdcc99
2860         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
2861           (genRet): if the bit-symbol is ruonly it already is in the carry
2862         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
2863         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
2864         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
2865           type UCHAR if dest is not bit
2866
2867 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
2868
2869         * device/include/math.h,
2870         * device/lib/cotf.c,
2871         * device/lib/expf.c,
2872         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
2873
2874 2007-04-01 Borut Razem <borut.razem AT siol.net>
2875
2876         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
2877           fixed bug #1692042: input buffer overflow...scanner uses REJECT
2878         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
2879           gcc_unreachable() called internal_error()...
2880
2881 2007-03-30 Raphael Neider <rneider AT web.de>
2882
2883         * src/pic/ralloc.c (isData): suppress garbage debug output
2884
2885 2007-03-28 Borut Razem <borut.razem AT siol.net>
2886
2887         * doc/sdccman.lyx:
2888           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
2889           is developed, built and used worldwide, and the word "night" doesn't
2890           make any sense.
2891
2892 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
2893
2894         * device/include/mcs51/C8051F360.h: new, added
2895         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
2896
2897 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2898
2899         * src/SDCC.y (declaration_specifiers, function_specifier),
2900         * support/Util/SDCCerr.c,
2901         * support/Util/SDCCerr.h,
2902         * src/SDCCsymt.h,
2903         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
2904           inline keyword
2905         * src/SDCCmem.c (deallocParms),
2906         * src/SDCCast.c: support for function inlining, not quite complete
2907         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
2908           'restrict' qualifier
2909
2910 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
2911
2912         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
2913           (saveRBank, unsaveRBank): don't save bits,
2914           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
2915         * support/regression/tests/bug1535242.c: new, added
2916         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
2917           thanks Alexey Shamrin <shamrin AT gmail.com>,
2918           made assert.h header ANSI compliant (added a check for NDEBUG macro,
2919           removed header guard)
2920         * .version,
2921         * sdcc.spec: bumped version to 2.6.5
2922         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
2923
2924 2007-03-22 Borut Razem <borut.razem AT siol.net>
2925
2926         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
2927           fixed bug #1653671: sdcdb integration into ddd is broken
2928
2929 2007-03-22 Raphael Neider <rneider AT web.de>
2930
2931         * src/pic/gen.c (popGetExternal): augmented to also create references
2932           to external variables (not only labels),
2933           (genCall): comment on plan to reduce PAGESEL overhead,
2934           (genFunction, genEndFunction): also save/restore FSR around interrupt
2935           handling code, removed lots of unused code
2936           (genDivOneByte): release acquired temp register
2937         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
2938           of popGetExternal
2939         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
2940           for registers that need to be saved during interrupts (FSR, STATUS,
2941           PCLATH; W needs special handling), currently only FSR is used
2942
2943 2007-03-22 Raphael Neider <rneider AT web.de>
2944
2945         * device/include/pic/pic14devices.txt: 16f688 has only one config word
2946
2947 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2948
2949         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
2950
2951 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
2952
2953         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
2954
2955 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
2956
2957         * as/link/aslink.h: added LKOBJEXT
2958         * as/link/hc08/link_hc08.dsp,
2959         * as/link/hc08/Makefile.bcc,
2960         * as/link/hc08/Makefile.in,
2961         * as/link/mcs51/aslink.dsp,
2962         * as/link/mcs51/Makefile.bcc,
2963         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
2964         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
2965         * as/link/lkaomf51.c: merged and moved
2966         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
2967         * as/link/z80/lkdata.c,
2968         * as/link/lkdata.c: merged and moved
2969         * as/link/hc08/lkmain.c,
2970         * as/link/mcs51/lkmain.c: cosmetic changes
2971         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
2972         * as/link/lklex.c: use LKOBJEXT
2973         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
2974           ANSI-fied functions, removed bubble-sorts
2975         * as/link/z80/lksym.c           as/link/lksym.c: merged,
2976           ANSI-fied functions
2977         * as/link/z80/linkgbz80.dsp,
2978         * as/link/z80/linkz80.dsp,
2979         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
2980           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
2981         * as/link/z80/lkhead.c,
2982         * as/link/z80/lklex.c: deleted
2983         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
2984         * as/link/z80/lkmain.c: added copyfile()
2985
2986 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2987
2988         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
2989
2990 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2991
2992         * device/lib/_strlen.c: assembler version for mcs51
2993
2994 2007-03-13 Raphael Neider <rneider AT web.de>
2995
2996         * device/include/pic16/pic18f2221.h,
2997         * device/include/pic16/pic18f2321.h,
2998         * device/include/pic16/pic18f2331.h,
2999         * device/include/pic16/pic18f4221.h,
3000         * device/include/pic16/pic18f4321.h,
3001         * device/include/pic16/pic18f4331.h: fixed config byte location names
3002         * support/scripts/inc2h-pic16.pl: removed debug output, emit
3003           consistently named config byte locations
3004
3005 2007-03-13 Borut Razem <borut.razem AT siol.net>
3006
3007         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
3008           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
3009           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
3010           as/link/z80/Makefile.in, as/z80/Makefile.in:
3011           introduced LDFLAGS
3012
3013 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3014
3015         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
3016         * device/lib/printf_large.c: pointer was converted to generic
3017         pointer for mcs51 models other than model-small (Maarten noticed)
3018
3019 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3020
3021         * device/include/mcs51/ADuC84x.h: Added.
3022
3023 2007-03-10 Borut Razem <borut.razem AT siol.net>
3024
3025         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
3026           fixed RFE #1624219: double backslashes in filenames;
3027           functions hexEscape(), octalEscape() and copyStr() moved from
3028           SDCCval.c to SDCCutil.c and made them glovbally available
3029
3030 2007-03-09 Borut Razem <borut.razem AT siol.net>
3031
3032         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
3033           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
3034           1673361: Missaligned comments in output files
3035
3036 2007-03-09 Raphael Neider <rneider AT web.de>
3037
3038         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
3039
3040 2007-03-09 Raphael Neider <rneider AT web.de>
3041
3042         * src/pic/gen.c,
3043         * src/pic/glue.c,
3044         * src/pic/ralloc.c: suppress undesired debug output
3045         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
3046
3047 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3048
3049         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
3050
3051 2007-03-07 Borut Razem <borut.razem AT siol.net>
3052
3053         * device/lib/pic16/libdev/pic18f[24][34]31.c:
3054           search include files in the current directory
3055
3056 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
3057
3058         * src/SDCCglue.c (emitMaps, glue),
3059         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
3060           absolute xdata
3061         * support/regression/tests/absolute.c: added xdata test
3062
3063 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
3064
3065         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
3066           added condition to macro, fixes bug 1666080
3067
3068 2007-03-02 Raphael Neider <rneider AT web.de>
3069
3070         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
3071
3072 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3073
3074         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
3075         be cleared. Unconditionally set __XPAGE
3076         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
3077
3078 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3079
3080         * src/SDCCglobl.h,
3081         * src/SDCCmain.c,
3082         * src/mcs51/gen.c,
3083         * src/mcs51/rtrack.c,
3084         * src/ds390/gen.c,
3085         * doc/sdccman.lyx: added --no-gen-comments
3086         * src/mcs51/peeph.def: added 192.b, disabled 185
3087
3088 2007-02-25 Raphael Neider <rneider AT web.de>
3089
3090         * src/pic16/gen.c (genCast): fixed typo
3091         * device/lib/pic16/Makefile.subdir: only install existing files
3092         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
3093
3094 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
3095
3096         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
3097         * device/lib/mcs51/crtclear.asm,
3098         * device/lib/mcs51/crtxclear.asm: renumbered labels
3099         * device/lib/mcs51/Makefile.in: added crtcall.asm
3100         * doc/sdccman.lyx: documented mcs51 crt* library startup code
3101         * src/mcs51/gen.c (movc): removed,
3102           (aopGet, genPlusBits): clear a after loading the carry (possibly from
3103             acc.x or psw.x),
3104           (toCarry, genSend, genRet): added function toCarry,
3105           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
3106           (assignBit, genAssign, genCast): added function assignBit
3107         * src/mcs51/Makefile.bcc: added rtrack.c
3108         * src/mcs51/ralloc.h: made valueKnown a bitfield
3109         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
3110           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
3111           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
3112         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
3113         * src/z80/gen.c: added AOP_IS_PAIRPTR,
3114           (_pop): only pop valid pairs, see gencjneshort,
3115           (gencjneshort): return pair that still needs to be popped, restructured,
3116           (gencjne, genCmpEq): call _pop
3117
3118 2007-02-23 Raphael Neider <rneider AT web.de>
3119
3120         * device/include/pic/pic14devices.txt: 16f684 has only one config word
3121
3122 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3123
3124         * device/include/mcs51/P89LPC925.h: Added.
3125
3126 2007-02-18 Raphael Neider <rneider AT web.de>
3127
3128         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
3129
3130 2007-02-17 Borut Razem <borut.razem AT siol.net>
3131
3132         * support/cpp2/directives.c, support/cpp2/version.c:
3133           synchronized with GCC CPP 4.1.2
3134
3135 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3136
3137         * src/mcs51/rtrack.h,
3138         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
3139           by checking the strings passed by emitcode() to the assembler.
3140           Feel free to change. This in part addresses RFE #482179.
3141           Set environment variable SDCC_RTRACK to enable.
3142         * src/mcs51/gen.c: inserted hooks
3143         * src/mcs51/ralloc.h: added two members to struct regs
3144         * support/regression/tests/regtrack.c: added
3145
3146 2007-02-14 Borut Razem <borut.razem AT siol.net>
3147
3148         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
3149         * Makefile.in: applied patch from Makefile related part of
3150           #1469393: Compiler does not initialize static data
3151
3152 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
3153
3154         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
3155           for better fix of bug 1273984, compiles pic16 rand.c
3156
3157 2007-02-12 Borut Razem <borut.razem AT siol.net>
3158
3159         * src/pic16/main.c: fixed pic16 standard library directory bug
3160
3161 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
3162
3163         * src/hc08/gen.c (genSwap): fix swap regression test
3164
3165 2007-02-10 Borut Razem <borut.razem AT siol.net>
3166
3167         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
3168           with same scope
3169         * support/regression/tests/bug-1654060.c: added regression test for
3170           #1654060
3171
3172 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
3173
3174         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
3175         bit moves in return statement
3176
3177 2007-02-09 Borut Razem <borut.razem AT siol.net>
3178
3179         * src/SDCC.y: fixed bug #1654060 typedef within function causes
3180           syntax error
3181
3182 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
3183
3184         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
3185         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
3186
3187 2007-02-07 Raphael Neider <rneider AT web.de>
3188
3189         * src/pic16/devices.inc,
3190         * device/include/pic16/pic18fregs.h,
3191         * device/include/pic16/pic18f[24][34]31.h,
3192         * device/lib/pic16/libdev/pic18f[24][34]31.c,
3193         * device/lib/pic16/pics.all: added 18f[24][34]31 family
3194         * device/lib/pic16/libio/i2c.ignore: do not build i2c
3195
3196 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
3197
3198         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
3199           can this have lived here for so many years?
3200         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
3201           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
3202         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
3203
3204 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
3205
3206         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
3207         appended by loop induction must be at the very end of the eBBlock
3208
3209 2007-02-05 Kevin Vigor
3210
3211         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
3212
3213 2007-02-05 Borut Razem <borut.razem AT siol.net>
3214
3215         * support/regression/fwk/lib/timeout.c: native WIN32 port,
3216           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
3217
3218 2007-02-03 Borut Razem <borut.razem AT siol.net>
3219
3220         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
3221           applied patch #1646602 option to set default signedness of char to
3222           unsigned, added -funsigned-char command line option,
3223           thanks to Gunther Jehle
3224         * device/lib/Makefile.in: added the -f option to rm so it doesn't
3225           prompt for file deletion a few hundred times (especially the
3226           subversion files, which have ro permissions so it asks for
3227           confirmation), thanks to Simon McAuliffe;
3228           added {} + option to find in order to remove multiple files from a
3229           single rm commad
3230
3231 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3232
3233         * device/include/mcs51/SST89x5xRDx.h: Added.
3234
3235 2007-02-02 Raphael Neider <rneider AT web.de>
3236
3237         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
3238         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
3239
3240 2007-02-01 Raphael Neider <rneider AT web.de>
3241
3242         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
3243           config words again
3244
3245 2007-01-31 Borut Razem <borut.razem AT siol.net>
3246
3247         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
3248           if compiled with GCC. Thanks to Raphael Neider
3249
3250 2007-01-31 Raphael Neider <rneider AT web.de>
3251
3252         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
3253             operand names, handles name and (name + n) for all n,
3254           (sameBank): restructured, also check bank allocation policy,
3255         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
3256           (pic14_operandsAllocatedInSameBank): check whether to operands
3257             will be allocated into the same bank (i.e., section) to reduce
3258             BANKSEL overhead, queried from pcode.c:sameBank,
3259           (pic14printLocals): reintroduced clustering registers into a single
3260             section: all compiler generated symbols will now reside in one
3261             bank (per file), reducing BANKSEL overhead and code size,
3262           (showAllMemmaps): use local dbuf where possible
3263
3264 2007-01-29 Raphael Neider <rneider AT web.de>
3265
3266         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
3267           (call_libraryfunc): retrieve/create symbol and mark as used,
3268           (genFunction): mark defined functions as non-extern and add again
3269            to code memmap for later output
3270         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
3271           (pic14printLocals): reworked for new symbol emission,
3272           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
3273           showAllMemmaps): reworked symbol output using dbufs, added handling
3274             of string literals (still incomplete),
3275           (picglue): removed symbol emission, moved into showAllMemmaps,
3276           (emitSymbolSet): new workhorse for symbol output,
3277           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
3278
3279 2007-01-29 Borut Razem <borut.razem AT siol.net>
3280
3281         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
3282           component contains the extension separator.
3283
3284 2007-01-28 Borut Razem <borut.razem AT siol.net>
3285
3286         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
3287           on WIN32
3288         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
3289           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
3290           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
3291           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
3292           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
3293           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
3294           src/z80/gen.c, support/Util/MySystem.c:
3295           accept slash and backslash as directory separator on WIN32 and
3296           Cygwin ports
3297
3298 2007-01-28 Raphael Neider <rneider AT web.de>
3299
3300         * src/pic16/devices.inc,
3301         * device/include/pic16/pic18f[24][23]21.h,
3302         * device/include/pic16/pic18fregs.h,
3303         * device/lib/pic16/libdev/pic18f[24][23]21.c,
3304         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
3305         * device/lib/pic16/libio/adc.ignore,
3306         * device/lib/pic16/libio/i2c.ignore,
3307         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
3308           family, as gputils do not yet support the devices
3309         * device/lib/pic16/Makefile.subdir: ignore errors on install
3310         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
3311           headers and libraries from gputils .inc files
3312
3313 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
3314
3315         * doc/sdccman.lyx: add printf_fast_f precision limitation note
3316
3317 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
3318
3319         * doc/sdccman.lyx: add printf benchmarks
3320
3321 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
3322
3323         * device/lib/printf_fast.c: fix %c, char promoted to int
3324         * device/lib/printf_tiny.c: fix %c, char promoted to int
3325
3326 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
3327
3328         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
3329
3330 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3331
3332         * support/regression/tests/swap.c: 64 bit hosts failed
3333         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
3334
3335 2007-01-25 Raphael Neider <rneider AT web.de>
3336
3337         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
3338           based on absolute register address, patch by Alex Blond
3339
3340 2007-01-22 Raphael Neider <rneider AT web.de>
3341
3342         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
3343           emitted, do not emit them again...
3344
3345 2007-01-22 Raphael Neider <rneider AT web.de>
3346
3347         * src/regression/bank1.c, src/regression/compare6.c,
3348           src/regression/add.c: cosmetic changes
3349         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
3350         * src/pic/gen.c: fixed global zero and one,
3351           (aopForSym): removed unued code,
3352           (aopGet): assert aop is defined, check and use `index' of
3353             pCodeImmd operands (fixes #1630908),
3354         * src/pic/pcode.c (get_op): added output of generic pointer tag,
3355           (register_reassign): prevent accidental register unification,
3356           (ReuseReg): cosmetic changes (also above)
3357         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
3358           pic14emitStaticSeg): do not emit initialized data,
3359           (printIval*): replaced with working versions,
3360           (pic14createInterruptVect,picglue): use idata for initialized data,
3361             now init data should work in all modules (not only main()),
3362         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
3363
3364 2007-01-21 Borut Razem <borut.razem AT siol.net>
3365
3366         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
3367           use -fPIC or -fpic if they are supported and not ignored
3368         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
3369         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
3370
3371 2007-01-20 Borut Razem <borut.razem AT siol.net>
3372
3373         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
3374           implemented RFE #1470316: allow "$" in variable names
3375
3376 2007-01-20 Raphael Neider <rneider AT web.de>
3377
3378         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
3379
3380 2007-01-20 Raphael Neider <rneider AT web.de>
3381
3382         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
3383         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
3384         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
3385         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
3386           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
3387         * device/lib/pic/libdev/pic*.c,
3388         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
3389         * device/lib/pic/libdev/Makefile.in: show progress
3390
3391 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
3392
3393         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
3394         * support/scripts/sdcc_cygwin_mingw32,
3395         * support/scripts/sdcc_mingw32,
3396         * support/scripts/build.mak: replaced --datadir by --datarootdir for
3397         conformance with autoconf 2.6
3398
3399 2007-01-19 Raphael Neider <rneider AT web.de>
3400
3401         * src/pic/device.c (register_map): fixed list construction
3402         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
3403           (genMod): removed case for genModbits,
3404           (genModbits): removed as now unused/unimplemented
3405         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
3406
3407 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3408
3409         * support/regression/tests/swap.c: added in response to #1638622
3410         * doc/sdccman.lyx: synced version, minor changes
3411
3412 2007-01-18 Borut Razem <borut.razem AT siol.net>
3413
3414         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
3415           thanks to Gunther Jehle
3416         * src/asm.c: don't die if the file drfined in #line couldn't be opened
3417         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
3418           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
3419           use filename in lineno instead.
3420         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
3421           print the file name in ast_print()
3422
3423 2007-01-18 Borut Razem <borut.razem AT siol.net>
3424
3425         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
3426           defined in MSVC
3427         * src/SDCC.lex: stringLiteral() returns const char pointer,
3428           EOF detection in stringLiteral(), fixed asmbuf memory leak,
3429           fixed column counting
3430         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
3431           accept const char pointer as parameter
3432         * src/SDCCdwarf2.c: corrected buffer size
3433
3434 2007-01-17 Borut Razem <borut.razem AT siol.net>
3435
3436         * support/Util/dbuf_string.c: fixed for amd64
3437
3438 2007-01-15 Borut Razem <borut.razem AT siol.net>
3439
3440         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
3441           removed terminal symbol ELIPSIS, since it was never generated by the
3442           lexer and it was wrongly used in parameter_identifier_list rule
3443
3444 2007-01-15 Raphael Neider <rneider AT web.de>
3445
3446         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
3447             code page and data banking description
3448         * src/pic/genarith.c,
3449         * src/pic/gen.h: removed bit arithmetic functions,
3450             updated exit(1) to exit(EXIT_FAILURE)
3451         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
3452         * device/include/pic16/pic18f2455.h,
3453         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
3454             TRISD and TRISE, fixed/added some bit names
3455         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
3456         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
3457             updated pic18f2455.{c,h} instead of duplicating them
3458
3459 2007-01-14 Borut Razem <borut.razem AT siol.net>
3460
3461         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
3462           Cannot debug files that contain spaces in the path name
3463           by converting spaces in asm file name to underscores
3464
3465 2007-01-13 Borut Razem <borut.razem AT siol.net>
3466
3467         * doc/sdccman.lyx: fixed format errors
3468
3469 2007-01-10 Borut Razem <borut.razem AT siol.net>
3470
3471         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
3472           codeseg/constseg #pragma fail
3473         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
3474         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
3475           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
3476           suppoprt/cpp2/sdcpp.[ch]: house cleaning
3477
3478 2007-01-09 Borut Razem <borut.razem AT siol.net>
3479
3480         * get rid of diagnistic.[ch], pretty-print.[ch],
3481           c-pretty-print.[ch], ... used just for error, warning, ...
3482           message formatting
3483         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
3484           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
3485           suppoprt/cpp2/pretty-print.[ch]:
3486           removed
3487         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
3488           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
3489           suppoprt/cpp2/sdcpp.dsp:
3490           changed
3491
3492 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
3493
3494         * device/lib/printf_large.c (output_float): removed recursion,
3495           use smaller buffer on stack for mcs51,
3496           fixed bug printing 1.96
3497         * support/regression/tests/snprintf.c: added test
3498
3499 2007-01-07 Borut Razem <borut.razem AT siol.net>
3500
3501         * use dynamic memory buffers instead temporary files
3502         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
3503           added
3504         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
3505           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
3506           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
3507           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
3508           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
3509           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
3510           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
3511           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
3512           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
3513           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
3514           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
3515           support/Util/dbuf.c, support/Util/dbuf.h:
3516           modified
3517         * .version, sdcc.spec: bumped version to 2.6.4
3518
3519 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
3520
3521         * src/port.h: added TARGET_Z80_LIKE macro
3522         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
3523           output PSEG location if --xram-loc or --xstack-loc was used
3524         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
3525
3526 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
3527
3528         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
3529         * as/as_z80.dsp,   as/z80/as_z80.dsp,
3530         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
3531         * sdcc.dsw: moved project files into subdir
3532         * as/hc08/as_hc08.dsp,
3533         * as/hc08/Makefile.bcc,
3534         * as/hc08/Makefile.in,
3535         * as/mcs51/Makefile.bcc,
3536         * as/mcs51/Makefile.in,
3537         * as/z80/Makefile.bcc,
3538         * as/z80/Makefile.in,
3539         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
3540         * as/hc08/asm.h,
3541         * as/mcs51/asm.h,
3542         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
3543         * as/hc08/asmain.c,
3544         * as/hc08/assym.c,
3545         * as/mcs51/asmain.c,
3546         * as/mcs51/assym.c,
3547         * as/z80/assym.c: removed include "strcmpi.h"
3548         * as/hc08/strcmpi.c,
3549         * as/hc08/strcmpi.h,
3550         * as/mcs51/strcmpi.c,
3551         * as/mcs51/strcmpi.h,
3552         * support/Util/strcmpi.c,
3553         * support/Util/strcmpi.h: removed files
3554         * as/strcmpi.c: added as_strncmpi()
3555
3556 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3557
3558         * sdcc.dsw: Added some dependencies on project config.dsp
3559
3560 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
3561
3562         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
3563           with [di]ram_start to fix a regresion
3564
3565 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
3566
3567         * configure.in: added missing mcs51 in status output
3568         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
3569         directory
3570         * debugger/mcs51/clean.mk (distclean): remove config.h
3571         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
3572         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
3573         options.h, s-options-h and options.c
3574         * support/cpp2/clean.mk: unused, removed
3575         * Makefile.common.in,
3576         * main_in.mk,
3577         * as/Makefile.in,
3578         * as/hc08/Makefile.in,
3579         * as/hc08/clean.mk,
3580         * as/mcs51/Makefile.in,
3581         * as/mcs51/clean.mk,
3582         * as/z80/clean.mk,
3583         * as/z80/conf.mk,
3584         * as/z80/Makefile.in,
3585         * as/z80/clean.mk,
3586         * as/link/Makefile.in,
3587         * as/link/hc08/Makefile.in,
3588         * as/link/hc08/clean.mk,
3589         * as/link/mcs51/Makefile.in,
3590         * as/link/mcs51/clean.mk,
3591         * as/link/z80/Makefile.in,
3592         * as/link/z80/clean.mk,
3593         * as/link/z80/conf.mk,
3594         * debugger/mcs51/Makefile.in,
3595         * debugger/mcs51/clean.mk,
3596         * device/include/Makefile.in,
3597         * device/lib/Makefile.in,
3598         * device/lib/mcs51/Makefile.in,
3599         * device/lib/pic/Makefile.in,
3600         * device/lib/pic/Makefile.common.in,
3601         * device/lib/pic/Makefile.subdir,
3602         * device/lib/pic/Makefile.rules,
3603         * device/lib/pic16/libio/Makefile.in,
3604         * device/lib/pic16/Makefile.subdir,
3605         * device/lib/pic16/libdev/Makefile.in,
3606         * device/lib/pic16/Makefile.rules,
3607         * device/lib/pic16/Makefile.common.in,
3608         * sim/ucsim/avr.src/Makefile.in,
3609         * sim/ucsim/main_in.mk,
3610         * sim/ucsim/cmd.src/Makefile.in,
3611         * sim/ucsim/doc/Makefile.in,
3612         * sim/ucsim/gui.src/Makefile.in,
3613         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
3614         * sim/ucsim/gui.src/serio.src/Makefile.in,
3615         * sim/ucsim/hc08.src/Makefile.in,
3616         * sim/ucsim/libltdl/Makefile.in,
3617         * sim/ucsim/s51.src/Makefile.in,
3618         * sim/ucsim/sim.src/Makefile.in,
3619         * sim/ucsim/sim.src/conf.mk,
3620         * sim/ucsim/xa.src/Makefile.in,
3621         * sim/ucsim/z80.src/Makefile.in,
3622         * src/Makefile.in,
3623         * src/clean.mk,
3624         * src/port.mk,
3625         * support/cpp2/Makefile.in,
3626         * support/librarian/Makefile.in,
3627         * support/librarian/clean.mk,
3628         * support/makebin/Makefile.in,
3629         * support/makebin/clean.mk,
3630         * support/packihx/Makefile.in,
3631         * support/regression/Makefile.in,
3632         * support/regression/ports/ds390/spec.mk,
3633         * support/regression/ports/gbz80/spec.mk,
3634         * support/regression/ports/hc08/spec.mk,
3635         * support/regression/ports/mcs51/spec.mk,
3636         * support/regression/ports/mcs51-large/spec.mk,
3637         * support/regression/ports/mcs51-medium/spec.mk,
3638         * support/regression/ports/mcs51-xstack-auto/spec.mk,
3639         * support/regression/ports/pic14/spec.mk,
3640         * support/regression/ports/pic16/spec.mk,
3641         * support/regression/ports/mcs51-stack-auto/spec.mk,
3642         * support/regression/ports/ucz80/spec.mk,
3643         * support/regression/ports/xa51/spec.mk,
3644         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
3645         adding a slash after $(top_builddir) and/or adding @datarootdir@
3646         * configure.in,
3647         * debugger/mcs51/configure.in,
3648         * device/lib/pic/configure.in,
3649         * device/lib/pic16/configure.in,
3650         * sim/ucsim/configure.in,
3651         * support/cpp2/configure.in,
3652         * support/packihx/configure.in: changed AC_PREREQ to 2.60
3653         * configure,
3654         * debugger/mcs51/configure,
3655         * device/lib/pic/configure,
3656         * device/lib/pic16/configure,
3657         * sim/ucsim/configure,
3658         * support/cpp2/configure,
3659         * support/packihx/configure: generated with autoconf 2.60
3660
3661 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
3662
3663         * as/link/hc08/lkihx.c (newArea),
3664         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
3665
3666 2007-01-02 Borut Razem <borut.razem AT siol.net>
3667
3668         * doc/sdccman.lyx: documented #pragma sdcc_hash
3669         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
3670           initialized to 0
3671         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
3672
3673 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
3674
3675         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
3676         empty 'while'-loop to work correctly, see regression test 'while.c'
3677         * support/regression/tests/while.c: added
3678
3679 2007-01-01 Borut Razem <borut.razem AT siol.net>
3680
3681         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
3682           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
3683           support/cpp2/libcpp/sdcpp.c:
3684           sdcpp specific pragma/directive/option handling moved to sdcpp.c
3685         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
3686         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
3687
3688 2006-12-31 Borut Razem <borut.razem AT siol.net>
3689
3690         * SDCPP synchronized with GCC CPP release version 4.1.1,
3691           currently the latest release:
3692         * support/cpp2/libcpp, support/cpp2/libcpp/include,
3693           support/cpp2/libcpp/include/cpp-id-data.h
3694           support/cpp2/libiberty/fopen_unlocked.c
3695           support/cpp2/libiberty/md5.c
3696           support/cpp2/md5.h
3697           support/cpp2/opt-functions.awk
3698           support/cpp2/opt-gather.awk
3699           support/cpp2/optc-gen.awk
3700           support/cpp2/opth-gen.awk:
3701           added
3702         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
3703           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
3704           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
3705           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
3706           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
3707           support/cpp2/diagnostic.h, support/cpp2/except.h,
3708           support/cpp2/hwint.h, support/cpp2/input.h,
3709           support/cpp2/intl.h, support/cpp2/move-if-change,
3710           support/cpp2/opts.c, support/cpp2/opts.h,
3711           support/cpp2/output.h, support/cpp2/prefix.c,
3712           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
3713           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
3714           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
3715           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
3716           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
3717           support/cpp2/version.c:
3718           modified
3719         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
3720           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
3721           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
3722           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
3723           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
3724           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
3725           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
3726           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
3727           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
3728           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
3729           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
3730           moved
3731         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
3732           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
3733           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
3734           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
3735           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
3736           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
3737           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
3738           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
3739           support/cpp2/hashtable.h, support/cpp2/line-map.c,
3740           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
3741           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
3742           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
3743           support/cpp2/system.h:
3744           deleted / moved
3745
3746 2006-12-31 Borut Razem <borut.razem AT siol.net>
3747
3748         * configure.in, configure: fixed bug #1538756: configure dies if bison
3749           and flex are not installed, 2nd try
3750
3751 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
3752
3753         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
3754         400.x for better code in RFE 899102
3755
3756 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
3757
3758         * src/SDCCpeeph.c (deadMove),
3759         * src/port.h,
3760         * src/mcs51/peep.h: renamed 'op' by 'reg'
3761         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
3762         (scan4op): small change for removeDeadMove(), added support for
3763         'callee saves' and/or PACLL function calls,
3764         (removeDeadMove): added, removes superflous 'mov r%1,%2',
3765         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
3766         left in new dispatcher mcs51DeadMove()
3767         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
3768         removeDeadMove()
3769         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
3770
3771 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3772
3773         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
3774           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
3775
3776 2006-12-30 Borut Razem <borut.razem AT siol.net>
3777
3778         * support/cpp2/spacs.h: deleted from svn
3779         * configure.in, configure: fixed bug #1538756: configure dies if bison
3780           and flex are not installed
3781
3782 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
3783
3784         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
3785           with this z80 passes printf float test when enabled
3786         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
3787
3788 2006-12-28 Borut Razem <borut.razem AT siol.net>
3789
3790         * support/cpp2/config.in, support/cpp2/configure.in,
3791           support/cpp2/configure, support/cpp2/Makefile.in:
3792           fix for the solaris build
3793
3794 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3795
3796         * src/SDCC.y (type_specifier2, pointer),
3797         * src/SDCCsymt.h,
3798         * src/SDCCsymt.c (mergeSpec, checkSClass),
3799         * support/Util/SDCCerr.c,
3800         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
3801         * support/valdiag/valdiag.py: Allow test cases to specify
3802           required language standard
3803         * support/valdiag/tests/restrict.c: New file to test restrict keyword
3804         * support/valdiag/tests/tentdecl.c: Supress empty source file error
3805
3806 2006-12-27 Borut Razem <borut.razem AT siol.net>
3807
3808         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
3809         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
3810           mbchar removed
3811         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
3812           fixed for borland C
3813         * support/cpp2/libiberty/Makefile.bcc: updated
3814         * src/pic16/main.c: fixed #pragma udata handling
3815         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
3816
3817 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
3818
3819         * src/SDCCpeeph.c: made labelHashEntry global,
3820         made pcDistance, FBYNAME static,
3821         (pcDistance): made static, use isComment and isLabel,
3822         (deadMove): added,
3823         (getLabelRef): added, extracted from labelRefCount(),
3824         (labelRefCount): use new getLabelRef(),
3825         (callFuncByName): made static, added deadMove,
3826         use isComment and isLabel,
3827         (newPeepRule): made static, set isLabel,
3828         (isLabelDefinition): added parameter isPeepRule to allow '%' in
3829         labels from peephole rules,
3830         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
3831         when isComment or isLabel is set
3832         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
3833         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
3834         to make them global
3835         * src/mcs51/peep.h: added
3836         * src/mcs51/peep.c: added, implements mcs51DeadMove()
3837         * src/port.h: added peep->deadMove to port structure
3838         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
3839         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
3840         deadMove, finally removed no. 1 and 2
3841         * src/mcs51/gen.c,
3842         * src/pic/gen.c,
3843         * src/z80/gen.c,
3844         * src/z80/ralloc.c,
3845         * src/pic16/gen.c,
3846         * src/ds390/gen.c,
3847         * src/hc08/gen.c: mark lines with isComment or isLabel
3848         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
3849         * .version,
3850         * sdcc.spec: bumped version to 2.6.3
3851
3852 2006-12-26 Borut Razem <borut.razem AT siol.net>
3853
3854         * support/cpp2/Makefile.in: added dependency on options.h
3855         * configure: regenerated
3856         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
3857         * support/cpp2/Makefile.in: added vasprintf.c
3858
3859 2006-12-25 Borut Razem <borut.razem AT siol.net>
3860
3861         * SDCPP synchronized with GCC CPP release version 3.4.6,
3862           the latest release before 4.x:
3863         * support/cpp2/Makefile.in, support/cpp2/config.h,
3864           support/cpp2/configure, support/cpp2/configure.in,
3865           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
3866           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
3867           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
3868           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
3869           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
3870           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
3871           support/cpp2/cpptrad.c, support/cpp2/except.h,
3872           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
3873           support/cpp2/hwint.h, support/cpp2/intl.h,
3874           support/cpp2/line-map.c, support/cpp2/line-map.h,
3875           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
3876           support/cpp2/output.h, support/cpp2/prefix.c,
3877           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
3878           support/cpp2/system.h, support/cpp2/version.c:
3879           modified
3880         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
3881           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
3882           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
3883           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
3884           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
3885           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
3886           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
3887           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
3888           support/cpp2/move-if-change, support/cpp2/opts.c,
3889           support/cpp2/opts.h, support/cpp2/opts.sh,
3890           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
3891           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
3892           support/cpp2/win32, support/cpp2/win32/dirent.c,
3893           support/cpp2/win32/dirent.h:
3894           added
3895         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
3896         * support/cpp2/sdcpp.h: renamed from sdcc.h
3897         * sdcppinit.c: deleted
3898
3899 2006-12-23 Borut Razem <borut.razem AT siol.net>
3900
3901         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
3902           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
3903           preproc.c: an other try to fix bug #982435: introduced
3904           -pedantic-parse-number command line option and pedantic_parse_number
3905           pragma
3906
3907 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
3908
3909         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
3910            BSEG handling,
3911           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
3912            corrected overlayed areax addresses, warn about memory overlaps
3913         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
3914         * src/avr/main.c,
3915         * src/ds390/main.c,
3916         * src/hc08/main.c,
3917         * src/mcs51/main.c,
3918         * src/pic16/main.c,
3919         * src/pic/main.c,
3920         * src/xa51/main.c,
3921         * src/z80/main.c,
3922         * src/port.h: added xabs_name and iabs_name
3923         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
3924           (glue, emitMaps): create and emit maps d_abs and i_abs
3925         * src/SDCCglue.h: cosmetic changes
3926         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
3927         * src/SDCCmem.h,
3928         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
3929           (allocDefault): put absolute, initialized globals in them
3930         * support/regression/tests/absolute.c: added absolute bdata test
3931         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
3932
3933 2006-12-20 Borut Razem <borut.razem AT siol.net>
3934
3935         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
3936         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
3937           added regression test for bug #982435
3938
3939 2006-12-18 Borut Razem <borut.razem AT siol.net>
3940
3941         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
3942         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
3943           small cosmetic changes
3944         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
3945         * support/regression/tests/bug-1351710.c: added regression test
3946
3947 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3948
3949         * doc/sdccman.lyx: added the long missed iCode table
3950           "<where is figure II?>", added links to wiki
3951
3952 2006-12-17 Borut Razem <borut.razem AT siol.net>
3953
3954         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
3955           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
3956           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
3957           unified table driven pragma handling, pragma argument type checking
3958         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
3959           current one - version 1.1.3
3960         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
3961
3962 2006-12-13 Raphael Neider <rneider AT web.de>
3963
3964         * src/pic/device.h: removed AssignedMemory structure and macros
3965         * src/pic/device.c: removed global finalMapping (linker assigns
3966             memory locations),
3967           (register_map): add SFRs to remembered memRanges
3968           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
3969           assignFixedRegisters,assignRelocatableRegisters): removed,
3970           (setMaxRAM,validAddress): adapted accordingly,
3971           (pic14_hasSharebank,pic14_getSharedStack): only report and use
3972             reasonably sized sharebanks,
3973         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
3974           (allDefsOutOfRange): removed unused code,
3975         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
3976             handling
3977         * src/pic/pcode.c (register_reassign): removed recursion warning,
3978             fired far too often,
3979         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
3980             to use existing pic14_stringInSet() to avoid duplicate symbols,
3981             tidied up the code a bit,
3982           (pic14printLocals): added in symmetry to printExterns, replaces
3983             writeUsedRegs more or less,
3984           (picglue): call new pic14_printLocals(),
3985         * device/include/pic/pic*.h: removed #pragma memmap directives,
3986             information gathered from include/pic/pic14devices.txt
3987         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
3988
3989 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
3990
3991         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
3992
3993 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3994
3995         * device/include/mcs51/cc2430.h: fixed missing ';'
3996
3997 2006-12-10 Raphael Neider <rneider AT web.de>
3998
3999         * device/lib/pic16/libc/stdio/vfprintf.c,
4000         * device/lib/pic16/libc/stdio/printf_small.c,
4001         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
4002           char arguments, as char varargs are cast to int by the caller,
4003           hopefully fixes #1604915 (other device libraries are still affected)
4004
4005 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4006
4007         * src/mcs51/ralloc.c (packRegsForAssign),
4008         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
4009
4010 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
4011
4012         * device/include/malloc.h: removed init_dynamic_memory
4013         * device/lib/malloc.c: made init_dynamic_memory static and automatically
4014           call it once from malloc. Also use _sdcc_heap[] from _heap.c
4015         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
4016         * device/lib/libsdcc.lib,
4017         * device/lib/Makefile.in,
4018         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
4019         * doc/sdccman.lyx: documented use of new _heap.c
4020         * support/regression/tests/malloc.c: removed init_dynamic_memory
4021         * src/cdbFile.c(spacesToUnderscores): new function,
4022           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
4023           1068030
4024         * device/include/tinibios.h: removed defines for putchar and getchar
4025         * device/lib/ds390/Makefile.in: added putchar.c
4026         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
4027
4028 2006-12-09 Borut Razem <borut.razem AT siol.net>
4029
4030         * support/cpp2/sdcc.h: prevent multiple inclusion
4031         * support/cpp2/options.h: deleted
4032
4033 2006-12-08 Borut Razem <borut.razem AT siol.net>
4034
4035         * support/cpp2/sdcc.h: removed x*alloc() macros
4036         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
4037         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
4038           support/cpp2/sdcpp.sdc: x*alloc files added to the project
4039         * support/cpp2/system.h: moved #include "sdcc.h"
4040         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
4041           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
4042           added
4043         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
4044           -funsigned-char options
4045         * support/cpp2/sdcppmain.c: fixed bug 1611411
4046
4047 2006-12-07 Borut Razem <borut.razem AT siol.net>
4048
4049         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
4050           directive
4051
4052 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
4053
4054         * src/SDCCsymt.c (addDecl): fixed bug 1609244
4055         * src/SDCCmain.c (linkEdit): fixed bug 1609279
4056         * doc/sdccman.lyx,
4057         * .version: bumped to 2.6.2 because a) it's been a while
4058           b) the linker sources have moved c) the preprocessor is upgraded
4059
4060 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4061
4062         * support/regression/tests/snprintf.c: some checks
4063         * lib/src/printf_large.c: %bc: read char instead of int from stack
4064
4065 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
4066
4067         * device/include/mcs51/cc2430.h: inserted _XPAGE
4068
4069 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4070
4071         * device/include/mcs51/cc2430.h: added
4072
4073 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
4074
4075         * device/include/asm/default/features.h,
4076         * device/include/asm/ds390/features.h,
4077         * device/include/mcs51/at89s53.h,
4078         * device/include/ser.h,
4079         * device/include/ser_ir.h,
4080         * device/include/serial.h: changed keywords to double underscore variants,
4081           fixes bug 1590261 some more, thanks Steven Borley
4082
4083 2006-12-01 Raphael Neider <rneider AT web.de>
4084
4085         * src/pic/pcode.c (register_reassign): do not crash on recursive code
4086           but emit warning (recursion is not supported for pic14)
4087
4088 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4089
4090         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
4091         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
4092
4093 2006-11-30 Raphael Neider <rneider AT web.de>
4094
4095         * src/pic/device.c (dump_sfr): always emit symbols
4096         * src/pic/glue.c (pic14printPublics): fixed typo
4097
4098 2006-11-30 Raphael Neider <rneider AT web.de>
4099
4100         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
4101           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
4102           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
4103            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
4104            a sharebank, use a non-shared bank for the stack if none available
4105         * src/pic/device.h (struct memRange): added linked list next field,
4106           added prototypes for above functions
4107         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
4108           (typeRegWithIdx): accept fixed and unfixed stack registers
4109         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
4110           the stack, handle shared and banked stack (except for WSAVE),
4111           (insertBankSel): removed useless optimization (will never fire),
4112           (FixRegisterBanking): added optimization for devices with only one
4113           possibly aliased bank of memory, like 16f84
4114         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
4115           devices have no SHAREBANK in the linker script
4116         * device/include/pic/pic14devices.txt: documented memmap
4117         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
4118
4119 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4120
4121         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
4122           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
4123           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
4124           genhc08Code): switched most of the D (debug) macros to DD (detailed
4125           debug) macros to better control clutter in the generated .asm file.
4126         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
4127           genRightShift): fixed bug with non-constant bit shift stored to
4128           a volatile result (SF Open Discussion forum thread #1616749).
4129           Single byte case is not yet optimized.
4130
4131 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
4132
4133         * device/include/asm/mcs51/features.h,
4134         * device/include/malloc.h,
4135         * device/include/stdio.h: changed keywords to double underscore variants,
4136           fixes bug 1590261
4137
4138 2006-11-27 Borut Razem <borut.razem AT siol.net>
4139
4140         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
4141           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
4142           support/cpp2/output.h, support/cpp2/cppinit.c,
4143           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
4144           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
4145           support/cpp2/cppdefault.c, support/cpp2/system.h,
4146           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
4147           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
4148           support/cpp2/prefix.c, support/cpp2/except.h,
4149           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
4150           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
4151           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
4152           support/cpp2/version.c, support/cpp2/cppmain.c,
4153           support/cpp2/version.h, support/cpp2/hashtable.c,
4154           support/cpp2/cpperror.c:
4155           synchronized with GCC CPP release version 3.3.6,
4156           the latest where cppmain.c still exists.
4157         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
4158           support/cpp2/sdcppinit.c: added
4159
4160 2006-11-27 Borut Razem <borut.razem AT siol.net>
4161
4162         * support/cpp2/cpplex.c:
4163           fixed _asm ... _endasm handling bug, introduce with GCC CPP
4164           synchronization
4165         * support/cpp2/cpplib.c: removed definitions of unused variables
4166
4167 2006-11-26 Borut Razem <borut.razem AT siol.net>
4168
4169         * support/cpp2/libiberty.h: commented out x*alloc() declarations
4170           since they are redefined by macros in support/cpp2/sdcc.h
4171         * support/cpp2/sdcc.h: x*alloc macro redefinition
4172
4173 2006-11-25 Borut Razem <borut.razem AT siol.net>
4174
4175         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
4176           support/cpp2/configure, support/cpp2/Makefile.in,
4177           support/cpp2/cppfiles.c, support/cpp2/output.h,
4178           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
4179           support/cpp2/config.h, support/cpp2/cpplib.h,
4180           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
4181           support/cpp2/cppdefault.c, support/cpp2/config.in,
4182           support/cpp2/system.h, support/cpp2/cpplex.c,
4183           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
4184           support/cpp2/cppdefault.h, support/cpp2/prefix.c
4185           support/cpp2/hwint.h, support/cpp2/mbchar.h,
4186           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
4187           support/cpp2/configure.in, support/cpp2/intl.h,
4188           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
4189           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
4190           support/cpp2/version.c, support/cpp2/cppmain.c,
4191           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
4192           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
4193           support/cpp2/cpperror.c,
4194           support/cpp2/libiberty/safe-ctype.c,
4195           support/cpp2/libiberty/safe-ctype.h,
4196           support/cpp2/libiberty/splay-tree.c,
4197           support/cpp2/libiberty/obstack.c,
4198           support/cpp2/libiberty/lbasename.c,
4199           support/cpp2/libiberty/splay-tree.h,
4200           support/cpp2/libiberty/obstack.h:
4201           synchronized with GCC CPP release version 3.2.3,
4202           the latest before integration of cpp into gcc
4203         * support/cpp2/except.h, support/cpp2/line-map.c,
4204           support/cpp2/line-map.h,
4205           support/cpp2/libiberty/hex.c,
4206           support/cpp2/libiberty/concat.c,
4207           support/cpp2/libiberty/filenames.h: added
4208         * support/cpp2/intl.c: deleted
4209
4210 2006-11-24 Borut Razem <borut.razem AT siol.net>
4211
4212         * src/SDCC.y: enabled compilation of empty source file
4213         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
4214           "ISO C forbids an empty source file"
4215         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
4216           if all the code is ifdefed out.
4217
4218 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4219
4220         * src/hc08/gen.c (genPcall): fix for bug #1601032
4221
4222 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
4223
4224         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
4225         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
4226         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
4227         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
4228         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
4229         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
4230         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
4231         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
4232         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
4233         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
4234         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
4235         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
4236         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
4237         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
4238         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
4239           Renamed to all upper case as per the standard set by SiLabs
4240
4241 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
4242
4243         * device/include/mcs51/C8051F520.h: new, added
4244         * device/include/mcs51/compiler.h: added link about predefined macros
4245
4246 2006-11-23 Raphael Neider <rneider AT web.de>
4247
4248         * src/regression/Makefile: add -L path to fresh library
4249         * src/regression/simulate: emphasize FAILED output
4250         * src/regression/create_stc: output _failures from gpsim
4251         * src/regression/compare4.c,
4252         * src/regression/rotate6.c: fixed char literals,
4253           all compile, all run =8-D
4254
4255         * src/pic/pcode.h: added isPCASMDIR macro
4256         * src/pic/gen.c (genAnd): fixed bit offset
4257         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
4258           packBits): unified register numbering schemes,
4259           (newReg): do not insert stack registers into hash table,
4260           (initStack): unpinned pseudo stack, simplified,
4261           (typeRegWithIdx): fixed retrieval of stack registers,
4262         * src/pic/pcode.c (addpCodeComment,sameBank): added,
4263           (pCodeReplace): removed invalid assertion,
4264           (insertPCodeInstruction): fixed newly added labels,
4265           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
4266           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
4267           DumpFlow): removed unsed (broken?) code,
4268           (insertBankSel): prevent STATUS from being BANKSELed,
4269           (FixRegisterBanking): rewritten from scratch, implemented generic
4270             optimizations (suppress BANKSELs to same register and to registers
4271             present in all banks),
4272           (AnalyzeBanking): update flow after BANKSELection
4273
4274         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
4275             sharebank, let linker place it, mark STKxx symbols as emitted
4276
4277 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4278
4279         * src/regression/arrays.c,
4280         * src/regression/bank1.c,
4281         * src/regression/bool2.c,
4282         * src/regression/compare7.c,
4283         * src/regression/compare8.c,
4284         * src/regression/compare9.c,
4285         * src/regression/compare10.c,
4286         * src/regression/configword.c,
4287         * src/regression/for.c,
4288         * src/regression/mult1.c,
4289         * src/regression/pointer1.c,
4290         * src/regression/rotate6.c,
4291         * src/regression/string1.c,
4292         * src/regression/struct1.c,
4293         * src/regression/Makefile: make PIC14 regression tests run again
4294           (3 fail, 6 won't compile)
4295
4296 2006-11-21 Raphael Neider <rneider AT web.de>
4297
4298         * device/include/pic16/pic18f4550.h,
4299         * device/include/pic16/pic18f4455.h,
4300         * device/lib/pic16/libdev/pic18f4550.c,
4301         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
4302         * configure.in: removed superfluous closing bracket
4303
4304 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4305
4306         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
4307           always positive.
4308
4309 2006-11-21 Raphael Neider <rneider AT web.de>
4310
4311         * src/pic/device.{c,h}: added pic14_getPIC()
4312         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
4313           (genAnd): added PIC code for one case, fixes #1597044
4314         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
4315           SFRs that are present in all banks (e.g., STATUS)
4316
4317 2006-11-20 Raphael Neider <rneider AT web.de>
4318
4319         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
4320           INCFSZ/INCFSZW and declared them as changing Z bit,
4321           (insertPCodeInstruction): correctly invert the above instructions,
4322           fixes #1599333,
4323           (DoBankSelect): don't panic on po_immediates
4324
4325 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4326
4327         * as/link/aslink.h,
4328         * as/link/mcs51/lkihx.c (newArea),
4329         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
4330         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
4331
4332 2006-11-11 Raphael Neider <rneider AT web.de>
4333
4334         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
4335           bitfield symbols, fixes #1579535 (once more...).
4336
4337 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4338
4339         * support/regression/generate-cases.py,
4340         * support/regression/fwk/include/testfwk.h,
4341         * support/regression/fwk/lib/testfwk.c: used code pointers,
4342           (about 50kByte less code generated for mcs51)
4343
4344 2006-11-06 Borut Razem <borut.razem AT siol.net>
4345
4346         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4347           debugger/mcs51/configure: fixed failed check because the function
4348           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
4349           who submitted the patch for gpsim.
4350         * debugger/mcs51/configure.in: removed the result message
4351         * debugger/mcs51/Makefile.in: fixed the config.status warning
4352           "... seems to ignore the --datarootdir setting"
4353
4354 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
4355
4356         * device/include/mcs51/c8051f020.h,
4357         * device/include/mcs51/c8051f040.h,
4358         * device/include/mcs51/c8051f060.h,
4359         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
4360         * src/z80/gen.c (gencjneshort),
4361         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
4362
4363 2006-10-31 Borut Razem <borut.razem AT siol.net>
4364
4365         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4366           debugger/mcs51/configure: get readline version
4367
4368 2006-10-30 Borut Razem <borut.razem AT siol.net>
4369
4370         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
4371         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4372           debugger/mcs51/configure: locate readline even when cross compiling
4373         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
4374
4375 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4376
4377         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
4378           serial port.
4379
4380 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
4381
4382         * device/include/malloc.h,
4383         * device/lib/calloc.c,
4384         * device/lib/free.c,
4385         * device/lib/malloc.c,
4386         * device/lib/realloc.c: moved definition of struct into sources
4387         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
4388
4389 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
4390
4391         * as/asx8051.dsp: corrected output directories
4392         * as/link/hc08: new directory for hc08 linker
4393         * as/hc08/aslink.h,             as/link/aslink.h,
4394         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
4395         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
4396         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
4397         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
4398         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
4399         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
4400         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
4401         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
4402         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
4403         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
4404         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
4405         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
4406         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
4407         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
4408         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
4409         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
4410         * as/link/hc08/conf.mk,
4411         * configure,
4412         * configure.in,
4413         * Makefile.in,
4414         * sdcc.dsw: moved hc08 linker to as/link/hc08
4415         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
4416         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
4417         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
4418         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
4419         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
4420         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
4421         * as/link/mcs51/aslink.dsp,
4422         * as/link/mcs51/Makefile.in: factored out the common files
4423         * as/hc08/lkstore.c: deleted, use the one already in as/link/
4424         * as/clean.mk: extra cleaning common files
4425         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
4426         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
4427         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
4428
4429 2006-10-29 Raphael Neider <rneider AT web.de>
4430
4431         * src/pic/ralloc.c (newReg): create aliases for registers with
4432           multiple names to fix #1579535 and #1584001,
4433           (regWithIdx,dirregWithName): resolve aliases on lookup
4434         * src/pic/pcode.c (DoBankSelect): die with error message on failing
4435           bankselect
4436         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
4437           to prevent build errors on small devices
4438
4439 2006-10-28 Raphael Neider <rneider AT web.de>
4440
4441         * src/pic/gen.c (genFunction,genCall): drop "same code page"
4442           assumption within interrupt handlers, fixes #1584940
4443         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
4444           "emitted" to avoid emitting them again in udata
4445
4446 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4447
4448         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
4449         Removed.
4450
4451 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4452
4453         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
4454         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
4455         on/off CR to CRLF conversion.
4456
4457 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4458
4459         * doc/sdccman.lyx: updated IRQ section
4460
4461 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4462
4463         * device/lib/serial_io.c: removed
4464         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
4465         replacements for serial_io.c
4466
4467 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
4468
4469         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
4470
4471 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4472
4473         * device/lib/serial_io.c: Default putchar() and getchar() for
4474           mcs51 uses serial port.
4475
4476 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
4477
4478         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
4479
4480 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4481
4482         * support/regression/ports/mcs51/support.c: smaller
4483         _sdcc_external_startup()
4484         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
4485
4486 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
4487
4488         * device/lib/gbz80/crt0.s,
4489         * device/lib/gbz80/crt0_rle.s,
4490         * device/lib/gbz80/div.s,
4491         * device/lib/gbz80/fstubs.s,
4492         * device/lib/gbz80/heap.s,
4493         * device/lib/gbz80/mul.s,
4494         * device/lib/gbz80/putchar.s,
4495         * device/lib/gbz80/stubs.s,
4496         * device/lib/z80/crt0.s,
4497         * device/lib/z80/crt0_rle.s,
4498         * device/lib/z80/div.s,
4499         * device/lib/z80/fstubs.s,
4500         * device/lib/z80/heap.s,
4501         * device/lib/z80/mul.s,
4502         * device/lib/z80/putchar.s,
4503         * device/lib/z80/stubs.s: reverted, I was mistaken
4504
4505 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4506
4507         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
4508         * support/regression/ports/mcs51/support.c: removed race
4509         condition on TI in _putchar allowing to use serial port mode 0
4510
4511 2006-10-20 Borut Razem <borut.razem AT siol.net>
4512
4513         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
4514
4515 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
4516
4517         * device/lib/gbz80/crt0.s,
4518         * device/lib/gbz80/crt0_rle.s,
4519         * device/lib/gbz80/div.s,
4520         * device/lib/gbz80/fstubs.s,
4521         * device/lib/gbz80/heap.s,
4522         * device/lib/gbz80/mul.s,
4523         * device/lib/gbz80/putchar.s,
4524         * device/lib/gbz80/stubs.s,
4525         * device/lib/z80/crt0.s,
4526         * device/lib/z80/crt0_rle.s,
4527         * device/lib/z80/div.s,
4528         * device/lib/z80/fstubs.s,
4529         * device/lib/z80/heap.s,
4530         * device/lib/z80/mul.s,
4531         * device/lib/z80/putchar.s,
4532         * device/lib/z80/stubs.s: removed all leading underscores from area names
4533
4534 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
4535
4536         * support/regression/ports/mcs51/support.c: use highest baudrate so the
4537           regression tests are not waiting in the simulator for simulated
4538           transmission of debug output
4539
4540 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4541
4542         * device/lib/printf_large.c: slightly smaller
4543         * doc/sdccman.lyx: do not use spaces within html links
4544
4545 2006-10-16 Borut Razem <borut.razem AT siol.net>
4546
4547         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
4548           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
4549           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
4550           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
4551           debugger/mcs51/configure:
4552           [ 1185668 ] add gnu readline support to sdcdb - enabled
4553
4554 2006-10-16 Raphael Neider <rneider AT web.de>
4555
4556         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
4557           fixes #1577882, removes close to all banking optimizations
4558
4559 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
4560
4561         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
4562           variables in code memory
4563         * support/regression/tests/absolute.c: added test for this
4564
4565 2006-10-15 Raphael Neider <rneider AT web.de>
4566
4567         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
4568           devices,
4569           (BankSelect): emit BANKSEL before touching linker-placed regs,
4570           fixes #1570934
4571
4572 2006-10-10 Raphael Neider <rneider AT web.de>
4573
4574         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
4575         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
4576         * src/pic/main.c (_pic14_parseOptions),
4577         * src/pic/main.h: mostly reverted to previous state, now use results
4578             from SDCCmain.c's argument parsing
4579
4580 2006-10-10 Borut Razem <borut.razem AT siol.net>
4581
4582         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
4583           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
4584           [ 1185668 ] add gnu readline support to sdcdb -
4585           prepared for READLINE, not enabled yet,
4586           thanks to <tal.bav AT gmail.com>
4587
4588 2006-10-10 Raphael Neider <rneider AT web.de>
4589
4590         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
4591         * src/pic16/devices.inc,
4592         * device/include/pic16 (pic18f[24]620.h),
4593         * device/include/pic18fregs.h,
4594         * device/lib/pic16/pics.all,
4595         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
4596             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
4597             Gary Plumbridge and Anton Strobl
4598
4599 2006-10-10 Raphael Neider <rneider AT web.de>
4600
4601         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
4602           --stack-siz=NUM options to configure the argument passing stack
4603         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
4604         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
4605           (pic14_getSharebankSize): obey --stack-siz=NUM,
4606           (pic14_getSharebankAddress): obey --stack-loc=NUM
4607
4608 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4609
4610         * doc/sdccman.lyx: added to the manual
4611         * doc/figures/ddd_example.png: added (neither pdflatex nor
4612         most browsers seem to like the .eps file)
4613
4614 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
4615
4616         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
4617         to /tmp and /var/tmp acc. LSB
4618         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
4619         RESULT_TYPE_IFX
4620         * support/regression/tests/onebyte.c: added test
4621
4622 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4623
4624         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
4625
4626 2006-10-05 Borut Razem <borut.razem AT siol.net>
4627
4628         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
4629           thanks to dfulab:
4630           - sdcc.dsw: changed property eol-style to CRLF
4631           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
4632
4633 2006-10-04 Raphael Neider <rneider AT web.de>
4634
4635         * device/include/pic/{pic16f84.h,pic16f84a.h},
4636         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
4637           from patch #1522504, thanks to Robas Teodor
4638
4639 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
4640
4641         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
4642           fixes bug 1566015
4643
4644 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
4645
4646         * src/pic16/glue.c (pic16emitMaps),
4647         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
4648         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
4649         * device/lib/pic16/libc/string/memcpypgm2ram.c,
4650         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
4651           Philipp Krause
4652         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
4653         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
4654
4655 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4656
4657         * support/librarian/sdcclib.c: Added option -l.
4658         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
4659           usage totals.
4660         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
4661           using Windows command prompt.
4662
4663 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
4664
4665         * device/lib/libsdcc.lib: added module rand
4666         * src/ds390/ralloc.c (rematStr),
4667         * src/hc08/ralloc.c (rematStr),
4668         * src/mcs51/ralloc.c (rematStr),
4669         * src/z80/ralloc.c (rematStr): made output more consistent
4670         * src/mcs51/gen.c: cosmetic changes
4671
4672 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
4673
4674         * src/port.h: added mem.cabs_name to PORT
4675         * src/ds390/main.c,
4676         * src/hc08/main.c,
4677         * src/mcs51/main.c,
4678         * src/pic16/main.c,
4679         * src/pic/main.c,
4680         * src/xa51/main.c,
4681         * src/z80/main.c: added cabs_name initializers
4682         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
4683           constants
4684           (emitMaps): emit absolutes in code memory into cabs_name
4685         * src/SDCCmem.c,
4686         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
4687         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
4688         * support/regression/fwk/include/testfwk.h: added define for at
4689         * support/regression/tests/absolute.c: added, new
4690
4691 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
4692
4693         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
4694           optimizations, see also patch 887161 by Stas Sergeev
4695         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
4696           to be necessary anymore,
4697           (102, 103, 104, 127): renamed all occurances of bp to _bp
4698
4699 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
4700
4701         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
4702           thanks Weston T. Schmidt for patch 1555221
4703         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
4704         * src/SDCCicode.c(geniCodeMultiply): small optimization
4705
4706 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
4707
4708         * device/include/stdlib.h: added rand prototypes
4709         * device/lib/rand.c: new, added
4710         * device/lib/Makefile.in: added rand.c
4711         * src/z80/peeph.def,
4712         * src/z80/peeph-gbz80.def,
4713         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
4714
4715 2006-09-20 Raphael Neider <rneider AT web.de>
4716
4717         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
4718
4719 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
4720
4721         * as/link/aslink.h: cosmetic changes
4722         * as/link/mcs51/Makefile.in,
4723         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
4724
4725 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
4726
4727         * as/link/aslink.h,
4728         * as/link/mcs51/aslink.h,
4729         * as/link/z80/aslink.h: merged and moved to as/link/
4730         * as/link/lkstore.c,
4731         * as/link/mcs51/lkstore.c: moved to as/link/
4732         * as/link/clean.mk: remove *.o
4733         * as/link/mcs51/alloc.h: deleted
4734         * as/link/mcs51/lkarea.c: added lnksect prototype
4735         * as/link/mcs51/lkdata.c,
4736         * as/link/mcs51/lklex.c,
4737         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
4738         * as/link/mcs51/lkmem.c,
4739         * as/link/mcs51/lknoice.c: removed include strcmpi.h
4740         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
4741         * as/link/mcs51/aslink.dsp,
4742         * as/link/mcs51/Makefile.aslink,
4743         * as/link/mcs51/Makefile.bcc,
4744         * as/link/mcs51/Makefile.in: updated for moved files
4745         * as/link/z80/lkarea.c,
4746         * as/link/z80/lkhead.c,
4747         * as/link/z80/lklex.c,
4748         * as/link/z80/lklibr.c,
4749         * as/link/z80/lklist.c,
4750         * as/link/z80/lkmain.c,
4751         * as/link/z80/lkrloc.c,
4752         * as/link/z80/lksym.c: synced with mcs51
4753         * as/link/z80/lkdata.c,
4754         * as/link/z80/lkeval.c,
4755         * as/link/z80/lkihx.c,
4756         * as/link/z80/lks19.c: cosmetic changes
4757         * as/link/z80/Makefile.in,
4758         * as/link/z80/linkgbz80.dsp,
4759         * as/link/z80/linkz80.dsp: updated for moved files
4760
4761 2006-09-16 Borut Razem <borut.razem AT siol.net>
4762
4763         * debugger/mcs51/sdcdb.c: partially fixed
4764           [ 1203664 ] sdcdb fails to open files w. two "." periods
4765         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
4766           debugger/mcs51/symtab.h: fixed indenting
4767         * configure.in, configure: up to date with latest Maarten's changes
4768
4769 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
4770
4771         as/link/mcs51
4772         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
4773         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
4774         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
4775         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
4776         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
4777         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
4778         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
4779         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
4780         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
4781         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
4782         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
4783         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
4784         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
4785         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
4786         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
4787         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
4788         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
4789         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
4790         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
4791         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
4792         as/link/mcs51/alloc.h,
4793         as/link/mcs51/clean.mk,
4794         as/link/mcs51/conf.mk,
4795         as/link/mcs51/Makefile.bcc,
4796         as/link/mcs51/Makefile.in,
4797         as/link/mcs51/readme.390,
4798         as/link/mcs51/strcmpi.c,
4799         as/link/mcs51/strcmpi.h,
4800         as/mcs51/clean.mk,
4801         as/mcs51/Makefile.bcc,
4802         as/mcs51/Makefile.in,
4803         configure,
4804         Makefile.in,
4805         sdcc.dsw: moved mcs51 linker to as/link/mcs51
4806
4807 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
4808
4809         * as/link,
4810         * as/link/Makefile.in,
4811         * as/link/z80/linkgbz80.dsp,
4812         * as/link/z80/linkz80.dsp,
4813         * configure,
4814         * link,
4815         * link/clean.mk,
4816         * link/Makefile.in,
4817         * link/README,
4818         * link/z80,
4819         * link/z80/aslink.h,
4820         * link/z80/clean.mk,
4821         * link/z80/conf.mk,
4822         * link/z80/linkgbz80.dsp,
4823         * link/z80/linkz80.dsp,
4824         * link/z80/lkarea.c,
4825         * link/z80/lkdata.c,
4826         * link/z80/lkeval.c,
4827         * link/z80/lkgb.c,
4828         * link/z80/lkgg.c,
4829         * link/z80/lkhead.c,
4830         * link/z80/lkihx.c,
4831         * link/z80/lklex.c,
4832         * link/z80/lklibr.c,
4833         * link/z80/lklist.c,
4834         * link/z80/lkmain.c,
4835         * link/z80/lkrloc.c,
4836         * link/z80/lks19.c,
4837         * link/z80/lksym.c,
4838         * link/z80/Makefile.in,
4839         * Makefile.in,
4840         * sdcc.dsw: moved link/ to as/link/
4841
4842 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
4843
4844         * as/mcs51/i51mch.c (machine): fixed warning
4845
4846 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
4847
4848         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
4849
4850 2006-09-09 Borut Razem <borut.razem AT siol.net>
4851
4852         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
4853           sdcdb WIN32 native port
4854         * src/clean.mk: fixed
4855
4856 2006-09-08 Borut Razem <borut.razem AT siol.net>
4857
4858         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
4859
4860 2006-09-08 Raphael Neider <rneider AT web.de>
4861
4862         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
4863         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
4864             to gplink to disable processor mismatch warning and to allow
4865             the use of devices with only aliased (shared) memory banks,
4866           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
4867
4868 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4869
4870         * doc/sdccman.lyx: Some re-formating plus example on using
4871           #pragma preproc_asm +/-
4872
4873 2006-09-07 Borut Razem <borut.razem AT siol.net>
4874
4875         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
4876           section
4877
4878 2006-09-06 Borut Razem <borut.razem AT siol.net>
4879
4880         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
4881           line at sdcc.nsi:153
4882         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
4883
4884 2006-09-05 Borut Razem <borut.razem AT siol.net>
4885
4886         * configure.in, configure: support for winsock2
4887         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
4888           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
4889           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
4890           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
4891           debugger/mcs51/symtab.h: sdcdb WIN32 native port
4892
4893 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
4894
4895         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
4896           and OP_DEFS
4897         * support/regression/tests/bug1551947.c: new, added
4898         * src/SDCCsymt.h: strings are char* not byte*
4899
4900 2006-09-05 Raphael Neider <rneider AT web.de>
4901
4902         * device/lib/pic16/libdev/pic18f4550.c,
4903           device/include/pic16/pic18f4550.h: added PORTD/TRISD
4904             declarations/definitions from patch #1520949
4905
4906 2006-09-05 Raphael Neider <rneider AT web.de>
4907
4908         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
4909           byte-aligned bitfields, fixes #1539278
4910
4911 2006-09-05 Raphael Neider <rneider AT web.de>
4912
4913         * src/pic/gen.c (genReceive): skip unreferenced arguments,
4914           fixes #1544120
4915
4916 2006-09-04 Borut Razem <borut.razem AT siol.net>
4917
4918         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
4919         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
4920           -mno-cygwin is a part of the compiler name
4921         * support/scripts/sdcc_mingw32: don't disable ucsim
4922
4923 2006-09-03 Borut Razem <borut.razem AT siol.net>
4924
4925         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
4926         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
4927
4928 2006-09-03 Raphael Neider <rneider AT web.de>
4929
4930         * src/pic/ralloc.c,
4931         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
4932           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
4933           fixes #1550049
4934
4935 2006-09-01 Borut Razem <borut.razem AT siol.net>
4936
4937         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
4938           to make ppc-osx happy
4939
4940 2006-08-31 Borut Razem <borut.razem AT siol.net>
4941
4942         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
4943         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
4944         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
4945         * support/regression/ports/ds390/spec.mk,
4946           support/regression/ports/mcs51/spec.mk,
4947           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
4948           To run regression tests in mingw environment:
4949           make DEV_NULL=NUL CC=gcc
4950
4951 2006-08-30 Borut Razem <borut.razem AT siol.net>
4952
4953         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
4954           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
4955           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
4956           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
4957           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
4958           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
4959           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
4960           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
4961           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
4962           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
4963           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
4964           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
4965           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
4966           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
4967           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
4968           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
4969           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
4970           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
4971           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
4972           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
4973           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
4974           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
4975           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
4976           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
4977           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
4978           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
4979           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
4980           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
4981           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
4982           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
4983           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
4984           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
4985           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
4986           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
4987           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
4988           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
4989           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4990           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
4991           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
4992           ucsim WIN32 native port
4993
4994 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4995
4996         * doc/sdccman.lyx: added note on dynamic memory heap initialization
4997
4998 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4999
5000         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
5001         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
5002
5003 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
5004
5005         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
5006         * support/regression/tests/bug1546986.c: new, added
5007         * as/mcs51/.cvsignore,
5008         * debugger/mcs51/.cvsignore,
5009         * src/.cvsignore: deleted
5010
5011 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5012
5013         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
5014           definitions)
5015
5016 2006-08-20 Borut Razem <borut.razem AT siol.net>
5017
5018         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
5019           removed cl_listen_console::match(), cl_console::match(),
5020           restructured cl_commander::proc_input()
5021
5022 2006-08-16 Borut Razem <borut.razem AT siol.net>
5023
5024         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
5025           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
5026           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
5027
5028 2006-08-14 Borut Razem <borut.razem AT siol.net>
5029
5030         * support/regression/Makefile.in,
5031           support/regression/ports/pic14/gpsim.cmd,
5032           support/regression/ports/pic14/spec.mk,
5033           support/regression/ports/pic14/support.c:
5034           added pic14 regression test
5035
5036 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
5037
5038         * as/doc/asxhtm.html: documented changed ABS behaviour
5039         * as/doc/README: fixed some typos
5040
5041 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
5042
5043         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
5044           not defined on host
5045
5046 2006-08-12 Borut Razem <borut.razem AT siol.net>
5047
5048         * support/regression/fwk/include/testfwk.h,
5049           support/regression/fwk/lib/testfwk.c,
5050           support/regression/generate-cases.py,
5051           support/regression/Makefile.in:
5052           regression test framework does not depend on function pointers and
5053           variable arguments
5054
5055 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
5056
5057         * device/include/stddef.h: c temporary hack to fix bug 1518273
5058
5059 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5060
5061         * device/include/mcs51/cc2510fx.h: added
5062         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
5063           to projects.
5064
5065 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
5066
5067         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
5068         * as/z80/Makefile.in: added strcmpi.c
5069         * as/z80/z80adr.c: added upper case registers and lower case conditionals
5070         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
5071
5072 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
5073
5074         * device/lib/gbz80/asm_strings.s,
5075         * device/lib/gbz80/crt0_rle.s,
5076         * device/lib/gbz80/div.s,
5077         * device/lib/gbz80/mul.s,
5078         * device/lib/gbz80/shift.s,
5079         * device/lib/z80/asm_strings.s,
5080         * device/lib/z80/crt0_rle.s,
5081         * device/lib/z80/div.s,
5082         * device/lib/z80/mul.s,
5083         * device/lib/z80/shift.s: changed to all lower case menmonics except the
5084           flags which are all upper case
5085
5086 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
5087
5088         * as/z80/asm.h: made CASE_SENSITIVE 1
5089         * link/z80/aslink.h: made CASE_SENSITIVE 1
5090         * src/z80/gen.c (throughout): made all conditionals upper case
5091         * support/regression/tests/bug1503067.c: new
5092
5093 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
5094
5095         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
5096           (shiftIntoPair): added case 2 for PAIR_IY,
5097           (setupToPreserveCarry): replaced parameters with iCode and check if
5098            PAIR_DE is in use to fix bug 1399290,
5099           (genPlus, genMinus): updated call to setupToPreserveCarry
5100         * support/regression/tests/bug1399290.c: new
5101
5102 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
5103
5104         * device/lib/Makefile.in (Z80SOURCES): enabled float support
5105         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
5106         * src/ds390/gen.c (shiftRLong),
5107         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
5108         * src/mcs51/gen.c (sameReg): changed to sameByte,
5109           (xch_a_aopGet): new,
5110           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
5111            shiftRLong): fixed bug 1533966
5112         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
5113           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
5114         * support/regression/Makefile.in: disabled z80, enabled ucz80
5115         * support/regression/tests/float_trans.c: enabled test for z80 and host
5116         * support/regression/tests/shifts2.c: new, for testing bug 1533966
5117
5118 2006-08-01 Borut Razem <borut.razem AT siol.net>
5119
5120         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
5121           comparison is always false due to limited range of data type
5122           on PPC64 machine (openpower-linux1) where "char = unsigned char"
5123
5124 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
5125
5126         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
5127         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
5128         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
5129         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
5130
5131 2006-07-31 Borut Razem <borut.razem AT siol.net>
5132
5133         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
5134           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
5135           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
5136           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
5137           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
5138           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
5139           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
5140           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
5141           enable ucsim mingw compilation. Serial port is disabled,
5142           since it uses termios.h API, which is not available on native
5143           WIN32
5144
5145 2006-07-31 Borut Razem <borut.razem AT siol.net>
5146
5147         * Small Device C Compiler 2.6.0 released
5148         * support/scripts/sdcc.nsi: added FULL_DOC option
5149         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
5150
5151 2006-07-28 Borut Razem <borut.razem AT siol.net>
5152
5153         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
5154         * doc/INSTALL.txt: updated
5155
5156 2006-07-27 Borut Razem <borut.razem AT siol.net>
5157
5158         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
5159           device/lib/pic/libdev/Makefile.in: fixed bug
5160           [ 1438354 ] pic libsdcc: distclean doesn't work
5161         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
5162           device/lib/pic16/libio/Makefile.in: fixed bug
5163           [ 1438344 ] pic16 lib: clean doesn't work properly
5164         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
5165
5166 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
5167
5168         * device/lib/pic/libsdcc/fsdiv.c,
5169         * device/lib/pic/libsdcc/fsmul.c,
5170         * device/lib/pic16/libsdcc/float/fsdiv.c,
5171         * device/lib/pic16/libsdcc/float/fsmul.c,
5172         * device/lib/_fsdiv.c,
5173         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
5174         * support/regression/tests/bug1520966.c: added
5175         * doc/knownbugs.html: removed [ 1520966 ] from the list
5176
5177 2006-07-25 Borut Razem <borut.razem AT siol.net>
5178
5179         * configure.in, configure, sdccconf_in.h: fixed bug
5180           [ 1519095 ] regression test onebyte.c fails on ppc64 host
5181         * doc/knownbugs.html: removed [ 1519095 ] from the list
5182
5183 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
5184
5185         * doc/knownbugs.html: added, contains list of known bugs at release
5186         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
5187
5188 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
5189
5190         * device/include/mcs51/compiler.h: added SFRX for xdata based special
5191           function registers and corrected defaults with additional warning
5192         * device/lib/malloc.c: cosmetic changes
5193         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
5194         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
5195           (fillGaps): and used it
5196
5197 2006-07-20 Raphael Neider <rneider AT web.de>
5198
5199         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
5200           output unless SDCCPICDEBUG is set
5201         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
5202           output if SILENT is set
5203
5204 2006-07-11 Borut Razem <borut.razem AT siol.net>
5205
5206         * doc/README.txt: updated
5207
5208 2006-07-10 Borut Razem <borut.razem AT siol.net>
5209
5210         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
5211           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
5212           in WIN32 installation
5213         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
5214           release candidate 1
5215
5216 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
5217
5218         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
5219         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
5220
5221 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
5222
5223         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
5224
5225 2006-07-06 Borut Razem <borut.razem AT siol.net>
5226
5227         * support/regression/tests/bitfields.c:
5228           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
5229         * support/regression/tests/constantRange.c:
5230           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
5231
5232 2006-07-04 Borut Razem <borut.razem AT siol.net>
5233
5234         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
5235           src/port.mk,
5236           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
5237           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
5238           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
5239           reverted changes from 2006-07-03
5240         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
5241         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
5242           added CPPFLAGS, used by the host port
5243
5244 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
5245
5246         * support/regression/valdiag/tests/switch.c,
5247         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
5248         * support/regression/tests/libmullong.c: fixed for host
5249         * support/regression/ports/host/spec.mk: disable all warnings for host,
5250         SDCC runs with --less-pedantic too
5251
5252 2006-07-03 Borut Razem <borut.razem AT siol.net>
5253
5254         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
5255           defined CPPFLAGS
5256         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
5257         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
5258           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
5259           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
5260           include ../port.mk
5261         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
5262           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5263           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
5264           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
5265
5266 2006-07-02 Raphael Neider <rneider AT web.de>
5267
5268         * src/pic16/devices.inc,
5269         * device/include/pic16/pic18fregs.h,
5270         * device/include/pic16/pic18f4550.h,
5271         * device/lib/pic16/pics.all,
5272         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
5273
5274 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
5275
5276         * as/hc08/lkaomf51.c (OutputName),
5277         * as/mcs51/lkaomf51.c (OutputName),
5278         * as/z80/asmain.c (asmbl),
5279         * src/ds390/main.c (asmLineNodeFromLineNode),
5280         * src/hc08/ralloc.c (hc08_assignRegisters),
5281         * src/mcs51/main.c (asmLineNodeFromLineNode),
5282         * src/xa51/ralloc.c (checkRegMask),
5283         * src/xa51/gen.c (emitcode),
5284         * src/z80/gen.c (_emit2),
5285         * src/SDCCast.c (searchLitOp),
5286         * src/SDCCglobl.h,
5287         * support/packihx/packihx.c,
5288         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
5289         * src/ds390/gen.c (aopPutUsesAcc),
5290         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
5291         * support/regression/tests/libmullong.c (mullong_wrapper),
5292         * src/SDCCsymt.c (powof2),
5293         * src/SDCCast.c,
5294         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
5295         * src/SDCCsymt.h: added TYPE_TARGET_*
5296         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
5297         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
5298         SDCCast because 1) header problems 2) this is the right place
5299         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
5300         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
5301         prototype
5302
5303 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
5304
5305         * src/SDCCicode.h: removed buggy semicolon in unused macro
5306         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
5307         search for previous definiton of auto symbols too,
5308         (findPrevUse): fixed logic of emitWarnings
5309
5310 2006-06-26 Raphael Neider <rneider AT web.de>
5311
5312         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
5313           PCLATH and PCLATU on interrupts, potentially fixes #1505141
5314
5315 2006-06-25 Raphael Neider <rneider AT web.de>
5316
5317         * device/lib/pic/libm: NEW, added math library functions
5318         * device/lib/pic/libsdcc: NEW; added float support functions
5319         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
5320         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
5321           NEW, added math related headers
5322         * device/include/asm/pic/features.h: NEW
5323         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
5324           (popGet): allow larger offsets for AOP_PCODE,
5325           (genDataPointerSet): handle literals explicitly, more debug output,
5326           (genAssign): fixed for float using aopLiteral ;-)
5327         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
5328           GOTO initialisation routine
5329         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
5330           flag on registers, fixes #1469043 (local variables do not work)
5331         * src/pic/main.c (_pic14_do_link),
5332         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
5333           available
5334
5335 2006-06-25 Borut Razem <borut.razem AT siol.net>
5336
5337         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
5338           characters printed (not including the trailing '\0' used to end
5339           output to strings). Problem detected in regression test bug-927659.c.
5340           NOTE: printf() family functions should return int instead
5341           unsigned int!
5342         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
5343           specifier are printed as themselves
5344         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
5345           support flags, width and precision specifiers
5346
5347 2006-06-24 Borut Razem <borut.razem AT siol.net>
5348
5349         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
5350           to the list of sdcc tagrets not supporting bit type
5351         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
5352           testfor pic16 due to bug:
5353           [ 1511794 ] pic16: regression test bug-895992.c fails
5354
5355 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
5356
5357         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
5358         * src/SDCCglue.c (initPointer), fixed bug 1496419
5359         * support/regression/tests/bug1496419.c: new, added
5360
5361 2006-06-22 Borut Razem <borut.razem AT siol.net>
5362
5363         * support/regression/ports/pic16/support.c: use gpsim usart module from
5364           libgpsim_modules library
5365
5366 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5367
5368         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
5369         IP0H to IPH0.
5370
5371 2006-06-19 Raphael Neider <rneider AT web.de>
5372
5373         * src/pic/glue.h,src/pic16/glue.h: added prototypes
5374         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
5375           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
5376           (pic14printExterns,pic14printPublics,pic16printPublics,
5377           pic16_printExterns): use new functions to emit symbols
5378           (picglue,pic16glue): emit publics before emitting externs
5379         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
5380           locally defined functions to avoid bug #1443651
5381         * support/regression/tests/bug-716242.c: removed pic16 workaround
5382         * support/regression/ports/pic16/spec.mk: ignore errors during build
5383
5384 2006-06-19 Raphael Neider <rneider AT web.de>
5385
5386         * src/pic/glue.h: added pic14aopLiteral prototype
5387         * src/pic/glue.c (pic14aopLiteral): return unsigned int
5388         * src/pic/gen.c: removed stdint.h dependency
5389           (aopGet): use Safe_strdup()
5390           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
5391           (genDataPointerSet): use pic14aopLiteral()
5392         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
5393           for pic16; thanks to Bernhard and Maarten
5394
5395 2006-06-18 Borut Razem <borut.razem AT siol.net>
5396
5397         * support/regression/tests/structflexarray.c: flexible array members
5398           not supported by gcc < 3
5399         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
5400           GUI tool by default
5401         * src/pic/gen.c: don't include [p]strdin.h on solaris
5402         * support/Util/pstdint.h: addad svn attributes
5403         * support/regression/tests/constantRange.c,
5404           support/regression/tests/rotate.c: include inttypes.h instead
5405           stdint.h on solaris, addad svn attributes
5406
5407 2006-06-18 Raphael Neider <rneider AT web.de>
5408
5409         * src/SDCCsymt.c (initCSupport): change return type of divschar to
5410           int for PIC16
5411         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
5412           (pic16_genMinusBits): simplified sign-extension
5413           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
5414             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
5415             adjusted to correctly handle mixed-signed operands, disabled
5416             now unused multiplciation routines
5417         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
5418           (assignResultValue): added argument denoting the size of the result
5419             as returned by the function (fixes upcasts in assigning from
5420             function calls: char foo(); int i = foo();)
5421           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
5422             function result to assignResultValue
5423           (genMult): disabled inlined multiplication code
5424           (genDiv): augmented to also handle the modulus operator, fixed to
5425             handle mixed-signed operands correctly
5426           (genMod): simply call genDiv, disabled unused code
5427           (genAssign): fixed missing (sign-)extension on result
5428         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
5429             valid char operands, allow signed operands for native code, added
5430             division and modulo operator handling
5431         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
5432
5433         As a consequence, onebyte.c (if split into two files) and muldiv.c
5434         pass regression tests.
5435
5436 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5437
5438         * doc/Makefile.in: two runs of makeindex seem needed to get
5439         correct page references in the index of sdccman.pdf
5440         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
5441
5442 2006-06-17 Borut Razem <borut.razem AT siol.net>
5443
5444         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
5445
5446 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5447
5448         * doc/sdccman.lyx: updated, added (porting source code, debugging),
5449         mentioned ec2drv and paulmon
5450
5451 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
5452
5453         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
5454           consecutive abs areas
5455           (find_empty_space, allocate_space): added map to handle codemap or
5456            xdatamap,
5457           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
5458            absolute idata and xdata
5459         * as/mcs51/lkmem.c (summary2): updated legend
5460
5461 2006-06-16 Raphael Neider <rneider AT web.de>
5462
5463         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
5464
5465 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
5466
5467         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
5468           1208515
5469         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
5470
5471 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
5472
5473         * src/port.h (struct PORT): added field gp_tags, to hold the tag
5474         value of generic pointers,
5475         * src/avr/main.c,
5476           src/ds390/main.c,
5477           src/hc08/main.c,
5478           src/izt/i186.c,
5479           src/izt/tlcs900h.c,
5480           src/mcs51/main.c,
5481           src/pic/main.c,
5482           src/pic16/main.c,
5483           src/xa51/main.c,
5484           src/z80/main.c: PORT structure, added elements for gp_tags field,
5485         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
5486         fields in the PORT structure of each port,
5487         * src/SDCCast.c (decorateType): allow processing of generic pointers
5488         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
5489         S_FIXED symbols
5490
5491 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
5492
5493         * link/z80/lkgb.c,
5494         * link/z80/lkgg.c,
5495         * src/pic16/gen.c,
5496         * src/pic16/main.c,
5497         * src/pic16/pcode.c,
5498         * src/pic/main.c,
5499         * src/pic/pcoderegs.c,
5500         * src/SDCCicode.c,
5501         * src/SDCCmain.c,
5502         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
5503           bug 1504689 on minGW
5504
5505 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5506
5507         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
5508
5509 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
5510
5511         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
5512
5513 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
5514
5515         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
5516           for optimization
5517
5518 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
5519
5520         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
5521         to a char variable. Fixed bug #1504211
5522         * device/include/pic16/adc.h,
5523         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
5524         and fixed bug #1364390
5525
5526 2006-06-10 Borut Razem <borut.razem AT siol.net>
5527
5528         * CVSROOT: removed the CVS left-over
5529
5530 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
5531
5532         * as/hc08/asmain.c (asexit),
5533         * as/hc08/lkmain.c (lkexit),
5534         * as/mcs51/asmain.c (asexit),
5535         * as/mcs51/lkmain.c (lkexit),
5536         * src/SDCCglue.c (DEFSETFUNC),
5537         * src/SDCCmain.c (linkEdit, assemble),
5538         * support/librarian/sdcclib.c (AddRel),
5539           replaced unlink() by standard C remove()
5540         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
5541         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
5542           gatherImplicitVariables): new, added to fix bug 608752,
5543           (createFunction): added gatherImplicitVariables()
5544         * src/SDCCast.h: added createRMW prototype
5545         * src/SDCCsymt.h (struct symbol): added infertype
5546         * support/regression/tests/bug608752.c: new, added
5547
5548 2006-06-10 Raphael Neider <rneider AT web.de>
5549
5550         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
5551           multibyte dummy reads (fixes #1503234)
5552
5553 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
5554
5555         * device/include/mcs51/compiler.h: new, added header file to enable
5556           creating common sfr definition header files for different compilers
5557
5558 2006-06-05 Raphael Neider <rneider AT web.de>
5559
5560         * src/pic16/{pcode.h,genarith.c}:
5561           introduced pCodeOp combining any two pCodeOps (previously only
5562           two register operands could be combined), removed pcop2 from
5563           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
5564         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
5565         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
5566           rewritten to use new PO_TWO_OPS
5567         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
5568         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
5569           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
5570           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
5571           (pic16_get_op): embraced return arg to allow #define return(x),
5572             added new case for combined opcodes
5573           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
5574           (pic16_pCode2str,pic16_getRegFrompCodeOp,
5575            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
5576
5577 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
5578
5579         * src/SDCCval.c (checkConstantRange): added
5580         * src/SDCCval.h: added checkConstantRange
5581         * support/Util/SDCCerr.c,
5582         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
5583         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
5584         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
5585         * src/SDCCast.c (decorateType): added checkConstantRange,
5586         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
5587         can be emitted with the correct always true/false warning,
5588         added optimization for double '!';
5589         result of decorateType() must be assigned back to the tree, because
5590         decorateType() can change the tree
5591         * src/SDCCicode.c (geniCodeLogic),
5592         (geniCodeAssign): replaced new checkConstantRange, added warnings,
5593         (checkConstantRange): removed, it was only a fragment which never
5594         emitted a warning
5595         * src/SDCCsymt.c (computeType): fixed promotion for
5596         "-1 < (unsigned bit) b"
5597         * src/pic/ralloc.c (packRegsForAssign),
5598         * src/pic16/ralloc.c (packRegsForAssign),
5599         * src/hc08/ralloc.c (packRegsForAssign),
5600         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
5601         from mcs51
5602         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
5603         * support/regression/tests/constantRange.c: added
5604         * support/valdiag/tests/constantRange.c: added
5605         * support/valdiag/valdiag.py: added -DPORT_HOST=1
5606
5607 2006-06-02 Borut Razem <borut.razem AT siol.net>
5608
5609         * support/regression/ports/pic16/support.c: increase stack size
5610           to 255 bytes
5611         * support/regression/Makefile.in: sort tests by name so that the
5612           resutlts can be compared on different machines / platforms
5613
5614 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
5615
5616         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
5617         * src/ds390/gen.c (emitLabel): new, added,
5618           (genDjnz): fixed stack overflow bug,
5619           (throughout): cosmetic changes to sync with mcs51/gen.c,
5620           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
5621         * src/mcs51/gen.c (genEndFunction): small optimization,
5622           (throughout): cosmetic changes to sync with ds390/gen.c
5623
5624 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
5625
5626         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
5627           (_print_format): fixed printing pointers
5628         * src/mcs51/gen.c (emitLabel, movb): new, added,
5629           (genAssign): small optimization,
5630           (genDjnz): fixed stack overflow bug,
5631           (throughout): replaced sprintf with SNPRINTF,
5632           replaced mcs51_regWithIdx with REG_WITH_INDEX,
5633           replaced emitcode("mov", "b,...") with MOVB(...),
5634           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
5635           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
5636         * src/mcs51/peeph.def: added rules 140 and 264
5637         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
5638           so they may get optimized into registers
5639
5640 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
5641
5642         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
5643           immediately when encountered,
5644           (printUsage): always use stderr even on windows
5645
5646 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
5647
5648         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
5649         (processParms): fixed bug #1247551
5650         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
5651         parseCmdLine, main): print '--version' to stdout,
5652         print 'help' to stdout if --help is given,
5653         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
5654         arguments are given; fixed --help
5655
5656 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
5657
5658         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
5659         * support/regression/tests/bug-1493710.c: added
5660
5661 2006-05-27 Borut Razem <borut.razem AT siol.net>
5662
5663         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
5664           static instead auto
5665         * support/regression/ports/pic16/support.c: increase stack size
5666           from default 64 bytes to 128 bytes
5667         * support/regression/tests/staticinit.c,
5668           support/regression/tests/float.c: regression tests fully enabled
5669           for pic16 port by putting the initialized data arrays into the code
5670           section
5671         * support/regression/ports/pic16/spec.mk: don't link default libraries.
5672           This was changed by mistake in the previous version.
5673
5674 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
5675
5676         * src/pic16/gen.c (genFunction, genEndFunction): some
5677         beautifications, fixed bug with falsely restoring FSR2 in large
5678         stack model, thanks to Beau E. Cox for reporting the bug
5679
5680 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
5681
5682         * debugger/mcs51/break.c,
5683         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
5684           use %p to print pointers, made address variables unsigned
5685         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
5686         * debugger/mcs51/symtab.c (parseSymbol): must return something
5687         * src/mcs51/gen.c (aopForSym): small optimization,
5688            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
5689           (freeAsmop): added missing break,
5690           (aopPut): removed parameter bvolatile, determine it inside the function,
5691           (saveRegisters, unsaveRegisters): small optimization,
5692           (genIpush): removed pointless check,
5693           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
5694           replaced sprintf with SNPRINTF,
5695           replaced strcpy with strncpyz,
5696           updated aopPut calls,
5697           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
5698         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
5699
5700 2006-05-24 Borut Razem <borut.razem AT siol.net>
5701
5702         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
5703           modification of test for the pic16 port, put the array to the code
5704           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
5705
5706 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5707
5708         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
5709         * support/Util/pstdint.h: added
5710
5711 2006-05-22 Borut Razem <borut.razem AT siol.net>
5712
5713         * src/regression/Makefile: removed bool2.c test, added -q linker option
5714         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
5715           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
5716           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
5717           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
5718           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
5719           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
5720           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
5721           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
5722           define SUPPORT_BIT_TYPES 0, removed unused bit variables
5723
5724 2006-05-22 Raphael Neider <rneider AT web.de>
5725
5726         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
5727           bug #1492360 (problematic due to generic pointers, see code)
5728
5729 2006-05-22 Borut Razem <borut.razem AT siol.net>
5730
5731         * support/regression/ports/pic16/specs.mk: removed stack size linker
5732           directive
5733         * support/regression/tests/array.c,
5734           support/regression/tests/bitopcse.c,
5735           support/regression/tests/bug-908454.c,
5736           support/regression/tests/malloc.c: modified for pic16 regression test
5737         * support/regression/tests/bitfields.c:
5738           pic16 - excluded bitfileds of size > 8
5739         * support/regression/tests/bp.c: pic16 - reduced data size
5740         * support/regression/tests/bug-221100.c: pic16 - reduced data size
5741         * support/regression/tests/bug-460010.c:
5742           pic16 - used the absolute address the fits in memory
5743         * support/regression/tests/bug-716242.c:
5744           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
5745         * support/regression/tests/float.c:
5746           pic16 - excluded - data size too big
5747         * support/regression/tests/onebyte.c:
5748           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
5749         * support/regression/tests/shifts.c:
5750           pic16 - function names probably have to differ in first X characters
5751           (gpasm limitation?)
5752         * support/regression/tests/staticinit.c:
5753           pic16 - excluded some tests due error: no target memory available for
5754           section ".idata"
5755
5756 2006-05-22 Borut Razem <borut.razem AT siol.net>
5757
5758         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
5759           second try. Thanks Stas Sergeev once more.
5760
5761 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
5762
5763         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
5764           (genLeftShift, genRightShift): fixed bug 1491627
5765         * src/hc08/peeph.def (rules 7, 8.x): added
5766         * support/regression/tests/shifts.c (ShiftLeftByParam,
5767           ShiftRightByParam, testShiftByParam): added to test variable shifting
5768
5769 2006-05-20 Raphael Neider <rneider AT web.de>
5770
5771         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
5772         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
5773           (allocReg): add only new registers to dynAllocRegs,
5774           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
5775             #1489055, #1445850, and probably #1483693
5776
5777 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
5778
5779         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
5780         bug in for-loop that didn't emit the last of CONFIG and ID registers
5781
5782 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
5783
5784         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
5785           with offset
5786         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
5787           1489016, 1434401 and 1490124
5788         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
5789           1489016, 1434401 and 1490124
5790
5791 2006-05-17 Borut Razem <borut.razem AT siol.net>
5792
5793         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
5794           thanks Stas Sergeev
5795
5796 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5797
5798         * device/include/mcs51/P89c51RD2.h,
5799         * device/include/mcs51/P89LPC901.h,
5800         * device/include/mcs51/P89LPC922.h,
5801         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
5802
5803 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
5804
5805         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
5806         to fix missing stack pragma in compiled binary object file,
5807
5808 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
5809
5810         * support/packihx/configure.in,
5811         * support/packihx/configure: removed warning, autoconf >= 2.5x can
5812         determine sizeof basic types even while cross compiling
5813
5814 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
5815
5816         * src/avr/gen.c (aopop),
5817         * src/ds390/gen.c (aopOp),
5818         * src/hc08/gen.c (aopOp),
5819         * src/mcs51/gen.c (aopop),
5820         * src/pic16/gen.c (pic16_aopOp),
5821         * src/pic/gen.c (aopOp),
5822         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
5823         if size of operand is smaller than spill location
5824
5825 2006-05-12 Borut Razem <borut.razem AT siol.net>
5826
5827         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
5828           have to have CR/LF line endings even if they are checked out on *nix
5829           or on WIN32 in cygwin binmode
5830
5831 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
5832
5833         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
5834         * device/include/ds80c390.h: added sfr16 definitions
5835         * src/ds390/gen.c,
5836         * src/ds390/gen.h,
5837         * src/ds390/main.c,
5838         * src/ds390/ralloc.c,
5839         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
5840           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
5841           bit returning functions
5842         * support/regression/tests/sfr16.c: enabled test on ds390
5843
5844 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5845
5846         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
5847         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
5848
5849 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
5850
5851         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
5852         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
5853           (cl_address_space constructor): removed expensive initialization,
5854           (cl_address_space::get_cell): extended for late initialization,
5855           (cl_address_space::*): use late initialization,
5856           (cl_address_decoder::activate): removed expensive initialization,
5857           This reduced regression test running time by 25%
5858
5859 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
5860
5861         * packihx/,
5862         * configure.in,
5863         * configure,
5864         * sdcc.dsw,
5865         * Makefile.bcc,
5866         * Makefile.in,
5867         * support/packihx/Makefile.in,
5868         * support/packihx/clean.mk,
5869         * support/packihx/Makefile.bcc,
5870         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
5871
5872 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5873
5874         * src/SDCCval.c (valNot): fix for regression test failure
5875           of not.c on big endian hosts
5876
5877 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
5878
5879         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
5880
5881 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5882
5883         * device/lib/mcs51/Makefile.in: changed string comparison operator
5884           to = for POSIX compliance; == is bash extension
5885
5886 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
5887
5888         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
5889           kosmonaut_pirx
5890
5891 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
5892
5893         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
5894         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
5895         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
5896         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
5897         bug report #1478657,
5898
5899 2006-05-05 Borut Razem <borut.razem AT siol.net>
5900
5901         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
5902           making the html
5903
5904 2006-05-02 Borut Razem <borut.razem AT siol.net>
5905
5906         * doc/Makefile.in: removed *.ind dependency since there is no rule to
5907           create *.ind, which made make to fail if invoked with -j 2
5908
5909 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
5910
5911         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
5912           Hubert Sack for patch 1479782
5913
5914 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
5915
5916         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
5917
5918 2006-05-01 Raphael Neider <rneider AT web.de>
5919
5920         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
5921           (create_pic): store only prefix-free device name,
5922           (init_pic): check for device names with "16" prefix,
5923           (list_valid_pics),
5924         * src/pic/device.h (struct PIC_device),
5925         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
5926             stored device name,
5927         * device/include/pic/pic12f{635,675,629,683}.h,
5928         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
5929         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
5930         * device/include/pic/pic16f505.h,
5931         * device/lib/pic/libdev/pic16f505.c: removed
5932         * device/include/pic/pic14devices.txt: added support for pic12f
5933             devices, removed unsupported non 16-bit devices
5934             [above changes provided by patch from Zik Saleeba]
5935         * src/pic/*, src/pic16/*, device/include/pic16/*,
5936           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
5937
5938 2006-05-01 Borut Razem <borut.razem AT siol.net>
5939
5940         * configure.in, configure, doc/Makefile.in:
5941           sync with nightly build makefile - latex, dvipdf and dvips
5942           not needed any more
5943
5944 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
5945
5946         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
5947         in the library source
5948
5949 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
5950
5951         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
5952
5953 2006-04-28 Raphael Neider <rneider AT web.de>
5954
5955         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
5956         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
5957           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
5958         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
5959
5960 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
5961
5962         * device/lib/pic/libdev/Makefile.in,
5963         * device/lib/hc08/Makefile.in,
5964         * device/lib/gbz80/Makefile.in,
5965         * device/lib/z80/Makefile.in,
5966         * device/lib/ds390/Makefile.in,
5967         * device/lib/ds400/Makefile.in: added srcdir to include search path,
5968         thanks to Borut for the bug report
5969         * configure.in,
5970         * configure: always create doc/Makefile independent from --enable-doc
5971         * Makefile.in: always install from directory doc independent from
5972         --enable-doc
5973         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
5974         removed
5975         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
5976         * doc/Makefile.in: install *.txt if present
5977         * device/include/Makefile.in (install): added installation of pic/*.inc
5978         and pic/*.txt files again, they were erroneously removed
5979
5980 2006-04-28 Raphael Neider <rneider AT web.de>
5981
5982         * src/pic/{gen.c,main.h,pcode.c},
5983         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
5984             concerning signedness with casts
5985
5986 2006-04-28 Raphael Neider <rneider AT web.de>
5987
5988         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
5989             definition of an interrupt handler,
5990         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
5991             interrupt handler stuff from picglue() to separate routine,
5992           (picglue): enabled definition of intr handlers in files w/o main()
5993
5994 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5995
5996         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
5997           compilation with MSVC 2005 Express Edition (VC8)
5998
5999 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
6000
6001         * device/lib/Makefile: fixed build of gbz80 lib
6002
6003 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
6004
6005         * support/regression/tests/bug-460010.c,
6006         * support/regression/tests/bug-524691.c,
6007         * support/regression/tests/bug-716242.c: removed conditional defines
6008           that are already in testfwk.h
6009
6010 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
6011
6012         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
6013           (AccAXRsh1): added, shift right by 1,
6014           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
6015            AccAXLrl1
6016         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
6017
6018 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
6019
6020         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
6021         remove cast to same type
6022         * src/SDCCast.c (decorateType): fix for RFE 1475742,
6023         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
6024         * as/z80/Makefile,
6025         * link/z80/Makefile: removed, they have moved to
6026         Makefile.in files
6027         * configure,
6028         * configure.in: replaced duplicate message about ucsim by missing sdcpp
6029         * install-sh: fix bug #1204398 by setting umask 0022
6030         * device/lib/Makefile: separate build of z80 and gbz80 lib
6031
6032 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
6033
6034         Enabled VPATH feature: changed nearly all Makefiles (149 files).
6035         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
6036
6037         One basic decision: e.g. src/clean.mk includes further files. In order
6038         to make this work there are two solutions:
6039         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
6040           run configure on them. This way they can use
6041           'include $(srcdir)/port-clean.mk'
6042         - always include clean.mk by the Makefile at the same level. To avoid
6043           that `make clean` tries to include and build Makefile.dep the
6044           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
6045           implemented, because now even `make uninstall` doesn't create
6046           Makefile.in. clean.mk could be eliminated by pasting it in
6047           Makefile.in.
6048
6049         * debugger/mcs51/Makefile.in: build own objects from library sources
6050         (SLIB, SDCC) in current directory
6051
6052         * configure, configure.in: renamed --disable-device-lib-build in
6053         --disable-device-lib; added --enable-doc, the required tools are
6054         searched by configure; added result message; the toolchain for the
6055         belonging ports are now only built, if the port is enabled.
6056
6057         * support/regression/*: all output is written in directory gen, because
6058         the fwk and ports directories don't livet in the build tree using vpath
6059
6060         * doc/sdccman.lyx: renamed --disable-device-lib-build to
6061         --disable-device-lib, added --enable-doc, added section VPATH
6062
6063         * sim/ucsim/configure.in,
6064         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
6065         z80 are enabled by default
6066
6067 2006-04-24 Raphael Neider <rneider AT web.de>
6068
6069         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
6070             to config word, "pic14_"-prefixed some extern functions
6071           (pic14_emitConfigWord): emit __config directive(s) if assignment to
6072             config word has been found
6073         * src/pic/device.h: added prototypes
6074         * src/pic/pcode.c: added "pic14_"-prefix where needed
6075         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
6076             fixup
6077         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
6078             words,
6079           (pic14emitRegularMap): ignore config words,
6080           (pic14createInterruptVect): moved generating __config directives away
6081           (picglue): have __config directives emitted
6082
6083 2006-04-24 Borut Razem <borut.razem AT siol.net>
6084
6085         * doc/Makefile: sync with nightly build makefile
6086
6087 2006-04-24 Raphael Neider <rneider AT web.de>
6088
6089         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
6090             registers that have not been assigned proper liveranges,
6091             fixes #1469504 and #1474602,
6092           (pCodeRegOptimizeRegUsage): fixed typo in comment
6093
6094 2006-04-24 Borut Razem <borut.razem AT siol.net>
6095
6096         * device/examples/main8051.c: deleted - it was removed from CVS
6097           24.mar.2000 and after that modified 18.feb.2001, so it reappered
6098           after the transition to Subversion
6099         * src/SDCCalloc.h: deleted - it was removed  from CVS
6100           3.feb.2001 and after that modified 18.feb.2001, so it reappered
6101           after the transition to Subversion
6102         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
6103           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
6104           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
6105           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
6106
6107 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
6108
6109         * as/asx8051.dsp: added mcs51/strcmpi.h
6110         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
6111         * as/hc08/aslink.h: updated lnksect prototype
6112         * as/hc08/asm.h,
6113         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
6114         * as/hc08/asmain.c,
6115         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
6116           (newdot): handle A_ABS
6117         * as/hc08/asout.c,
6118         * as/mcs51/asout.c (outarea): output address
6119         * as/hc08/lkaomf51.c,
6120         * as/mcs51/lkaomf51.c: disabled unused array UsageType
6121         * as/hc08/m08pst.c,
6122         * as/mcs51/i51pst.c,
6123         * as/z80/z80pst.c: "ABS" is not A_OVR
6124         * as/hc08/lkarea.c (newarea): read a_addr,
6125           (lnkarea): added codemap array, sort absolute areas to the front,
6126            combine all GSINITx/GSFINAL,
6127           (find_empty_space, allocate_space): new functions,
6128           (lnksect): return next address, handle absolute sections
6129         * as/mcs51/lkarea.c (newarea): read a_addr,
6130           lnksect2 prototype changed,
6131           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
6132           (find_empty_space, allocate_space): new, factored out of lnksect2,
6133           (lnksect2): return next address, handle absolute sections
6134         * as/hc08/lkhead.c,
6135         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
6136         * as/hc08/lklibr.c (addfile, fndsym),
6137         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
6138           index out of range and detect both '\' and '/'
6139         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
6140         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
6141           regression tests (ds390 cannot return bool yet)
6142         * doc/sdccman.lyx: changed version number, document changed --no-peep,
6143           document critical interrupts on z80, document changed SDCC define
6144         * src/asm.c (_asxxxx_mapping): fixed .org directive,
6145           (_a390_mapping): added .org directive
6146         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
6147           (genMultOneByte): fixed warnings
6148         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
6149           ones
6150         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
6151         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
6152           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
6153         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
6154         * src/pic16/main.c: removed newReg prototype
6155         * src/pic16/pcode.c,
6156         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
6157           warnings
6158         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
6159           ones
6160         * src/pic16/ralloc.c
6161         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
6162           to fix warnings
6163         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
6164           from short to PIC_OPTYPE
6165         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
6166         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
6167           optype from short to PIC_OPTYPE
6168         * src/port.h: made int_size unsigned to fix warnings
6169         * src/SDCC.y: fixed warning on MSVC
6170         * src/SDCCicode.c (getArraySizePtr): return unsigned int
6171         * src/SDCCopt.c (convertToFcall): fixed warnings
6172         * src/SDCCsymt.h: removed double prototype for genSymName
6173         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
6174           offset int to fix warnings
6175
6176 2006-04-22 Borut Razem <borut.razem AT siol.net>
6177
6178         * doc/sdccman.lyx, */Makefile, */Makefile.in:
6179           references to CVS replaced with Subversion
6180
6181 2006-04-21 Borut Razem <borut.razem AT siol.net>
6182
6183         * doc/sdccman.lyx, */Makefile, */Makefile.in:
6184           references to CVS replaced with Subversion
6185
6186 2006-04-19 Borut Razem <borut.razem AT siol.net>
6187
6188         * src/version.awk: adapted for svn
6189         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
6190           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
6191           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
6192           /binutils-avr/etc/*.vi, *.jin: removed all properties
6193           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
6194
6195 2006-04-19 Borut Razem <borut.razem AT siol.net>
6196
6197         * CVS to Subversion migration completed
6198
6199 2006-04-18 Borut Razem <borut.razem AT siol.net>
6200
6201         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}/lib/pic/*.o,
6202           ${DEV_ROOT}/lib/src/pic/libdev/*.S, ${DEV_ROOT}/lib/src/pic/libdev/*.inc
6203
6204 2006-04-17 Borut Razem <borut.razem AT siol.net>
6205
6206         * device/include/Makefile.in: added pic/*.inc to the installation
6207
6208 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
6209
6210         * support/regression/collate-results.py: fixed output in case of
6211         a valdiag error
6212         * support/regression/generate-cases.py: fixed splitting of pathnames
6213         with dots
6214         * as/hc08/lklibr.c (addfile),
6215         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
6216
6217 2006-04-11 Raphael Neider <rneider AT web.de>
6218
6219         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
6220         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
6221         * src/pic16/pcode.c (assignValnums): fixed #1460578
6222
6223 2006-04-11 Raphael Neider <rneider AT web.de>
6224
6225         * device/lib/pic/libdev/*.c,
6226         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
6227           fixes #1468739, enables compilation in --std-c99 mode
6228         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
6229
6230 2006-04-11 Raphael Neider <rneider AT web.de>
6231
6232         * src/pic/device.c (find_device): removed debug output
6233           (list_valid_pics): enabled verbose listing of supported devices
6234         * device/include/stdbool.h: define bool as char for pic14/16 as well
6235
6236 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6237
6238         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
6239
6240 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6241
6242         * .version: bumped version to 2.5.6
6243         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
6244
6245 2006-04-06 Raphael Neider <rneider AT web.de>
6246
6247         * .version: bumped version to 2.5.6 (pic14 ABI changed)
6248         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
6249         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
6250           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
6251             pic14_constructAbsMap
6252           (pic14printPublics): declare absolute global symbols as global
6253           (pic14createInterruptVect),
6254         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
6255           (newReg): assume new registers unused, use correct name in
6256             hashtable (reg->name instead of name), more debugLog output
6257         * src/pic/device.h (PIC_device): added fields for verbose output
6258         * src/pic/device.c: moved device definition to pic14devices.txt,
6259             added routines for runtime parsing of pic14devices.txt,
6260             added support for second config word
6261         * src/pic/main.c (_process_pragma): removed #pragma maxram,
6262           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
6263           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
6264           (_pic14_parseOptions): moved pCodeInitRegisters here
6265           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
6266         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
6267           (pCodeInitRegisters): rewrapped comments, perpared new approach to
6268             handling the pseudo stack
6269         * device/lib/Makefile.in: ignore failures in objects-pic16,
6270         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
6271         * device/lib/pic/NEWS: document new dependency on picXXX.lib
6272         * device/lib/pic/Makefile.subdir,
6273         * device/lib/pic16/Makefile.subdir: improved clean rules
6274         * device/lib/pic/libdev/: NEW, pic14 device libraries
6275         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
6276         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
6277         * device/include/Makefile.in: create subdir and install pic14 headers
6278         * device/include/pic/p16f_common.inc: removed unused declarations
6279         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
6280             PICs from inc2h.pl v1.6,
6281             replaced BIT_AT macros with struct declarations
6282         * device/include/pic/pic14devices.txt: definition of supported devices,
6283             all above improvements contributed by Zik Saleeba, thanks
6284         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
6285         * support/scripts/sdcc.nsi: also install pic14 device libraries and
6286             headers
6287
6288 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6289
6290         * device/include/mcs51/c8051f410.h: added interrupt numbers,
6291         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
6292           thanks to Charles Olds
6293
6294 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6295
6296         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
6297
6298 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6299
6300         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
6301         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
6302         * support/regression/bug1464657.c: added, new test
6303
6304 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6305
6306         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
6307           version number
6308
6309 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6310
6311         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
6312           --no-peep and --peep-file <file> are used don't use default rules but
6313           do use the <file>
6314
6315 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6316
6317         * src/mcs51/gen.c (genCall): fixed bug 1457608
6318
6319 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6320
6321         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
6322         changes seem to cause (trigger?) problems with the build system.
6323
6324 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
6325
6326         * src/SDCCpeeph.c (operandsLiteral): new, added,
6327           (callFuncByName): inserted operandsLiteral
6328         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
6329
6330 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6331
6332         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
6333         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
6334
6335 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
6336
6337         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
6338           implemented patch 1120823 Thanks to Willy De la Court (normal
6339           interrupts need an interrupt number now if they are made critical),
6340           and enabled nesting of critical functions though not for gbz80
6341           (genCritical, genEndCritical): added functions
6342           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
6343         * src/z80/mappings.i: added "ei" to all mappings
6344
6345 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6346
6347         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
6348         submitted by the Debian SDCC maintainer Aurelien Jarno:
6349         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
6350         archive with gcc 4.1 on mips and wrote the patch"
6351
6352 2006-03-16 Raphael Neider <rneider AT web.de>
6353
6354         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
6355           the left operand is shorter than the result (c* = lit-c* + int),
6356           fixes bug #1450796
6357         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
6358           OP_SYMBOL
6359
6360 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6361
6362         * src/.version: increased version number to 2.5.5
6363         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
6364         linking is done manually in pic16 port's _linkEdit,
6365         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
6366         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
6367         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
6368         allocate asmop as AOP_ACC,
6369         (aopForRemat): added parameter 'bool result' in function declaration,
6370         (pic16_aopGet): return AOP_ACC when accessing WREG,
6371         (pic16_popGetTempReg): minor modification,
6372         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
6373         'pic16_allocWithIdx',
6374         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
6375         calling function in absolute addresses,
6376         (genAssign): take into account AOP_ACC asmop,
6377         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
6378         * src/pic16/pcoderegs.c: some debug functions and lines added,
6379         * src/pic16/ralloc.c (decodeRegType): added but commented out,
6380         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
6381         register too,
6382         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
6383         call to allocReg, not by manually allocating a new one,
6384         (pic16_assignRegisters): now before going through the register
6385         allocating functions mark all registers as free. This eliminates some
6386         side effects resulting from peephole parser done earlier in the backbone
6387
6388 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
6389
6390         * src/SDCCicode.c (geniCodeLogic),
6391         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
6392
6393 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
6394
6395         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
6396           (genSend): bugfix, do not allocate and free twice,
6397           (shiftRLong): handle partially overlapping aops
6398         * support/regression/tests/bitopcse.c: fixed warning redefined idata
6399
6400 2006-03-08 Borut Razem <borut.razem AT siol.net>
6401
6402         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
6403           for pic16
6404
6405 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
6406
6407         * support/regression/tests/bug1409955.c: new, added
6408         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
6409         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
6410           (aopForSym, aopOp): increment asmop.allocated if reused,
6411           (freeAsmop): decrement asmop.allocated and check for zero instead of
6412           using asmop.freed,
6413           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
6414           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
6415            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
6416            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
6417            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
6418            genSignedRightShift, genRightShift, genDataPointerGet,
6419            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
6420            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
6421             in reverse order from allocation,
6422           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
6423             added swappedLR to keep track
6424         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
6425           pdata & code for GCC, z80, gbz80 & hc08
6426         * support/regression/tests/zeropad.c: moved defines to testfwk.h
6427
6428 2006-03-08 Raphael Neider <rneider AT web.de>
6429
6430         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
6431
6432 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
6433
6434         * device/include/mcs51/c8051f410.h: new SiLabs mcu
6435         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
6436         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
6437
6438 2006-03-06 Borut Razem <borut.razem AT siol.net>
6439
6440         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
6441           made the linker quiet
6442
6443 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
6444
6445         * src/pic16/gen.c (genPcall): fixed bug #1443644
6446         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
6447         which dumps before the function entry point a data byte which represents
6448         the number of the local variables used by the specified function, added
6449         'xinst' for initial support for Extended Instruction Support,
6450         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
6451         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
6452         port->fun_prefix anymore (may change later),
6453         (genFunction, genEndFunction): do not store/restore local registers for
6454         _main (this should take care the --main-return command line option in
6455         the future),
6456         (genOr): removed some legacy pic-port instructions,
6457         * src/pic16/genarith.c (genAddLit): re-enabled old code because
6458         performing operations with SFR's causes data to be written more than
6459         once to each SFR. Perhaps SFRs should be handled in special cases...
6460         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
6461         pcode.h
6462         * src/pic16/main.c (_process_pragma): stack bound checking did not take
6463         into account for stack starting position,
6464         (struct OPTIONS pic16_optionsTable): added command line argument
6465         --extended or -y for Extended Instruction Support,
6466         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
6467         (deassignLRs): *** perhaps the most important change, old 'for' code
6468         (commented out for reference), didn't account for some registers which
6469         were left marked 'not free' after a pointer operation. The change
6470         reduces register usage a lot in some cases
6471
6472 2006-03-04 Borut Razem <borut.razem AT siol.net>
6473
6474         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
6475           _clean
6476         * support/regression/tests/bug-524697.c: decreased array size for
6477           mcs51 to fit into the internal RAM
6478         * support/regression/Makefile.in: a little bit more verbose
6479
6480 2006-03-03 Borut Razem <borut.razem AT siol.net>
6481
6482         * support/regression/fwk/lib/testfwk.c,
6483           support/regression/fwk/include/testfwk.h: introduced function
6484           _prints(), nonrecursive _printn(), call _initEmu() from main()
6485         * support/regression/ports/gbz80/support.asm,
6486           support/regression/ports/ucz80/support.asm,
6487           support/regression/ports/z80/support.asm,
6488           support/regression/ports/ds390/support.c,
6489           support/regression/ports/hc08/support.c,
6490           support/regression/ports/host/support.c,
6491           support/regression/ports/mcs51/support.c,
6492           support/regression/ports/xa51/support.c: added empty _initEmu()
6493           function
6494         * support/regression/ports/pic16/gpsim.cmd,
6495           support/regression/ports/pic16/spec.mk,
6496           support/regression/ports/pic16/support.c,
6497           support/regression/Makefile.in: added pic16 regression test
6498
6499 2006-03-01 Raphael Neider <rneider AT web.de>
6500
6501         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
6502           genConstPointerGet): use safe way of generating MOVFF to cover
6503             literals as well as registers, fixes bug #1440527
6504         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
6505             dereference
6506           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
6507             more correctly, fixes bug #1232186
6508           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
6509         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
6510             gplink guess the correct processor in more cases, applied patch
6511             from Till Riedel attached to and fixing bug #1436552
6512
6513 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6514
6515         * support/regression/tests/array.c: added, contains check for #1434401
6516         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
6517
6518 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
6519
6520         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
6521         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
6522         * device/include/mcs51/c8051f326.h,
6523         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
6524         * device/include/mcs51/c8051f000.h,
6525         * device/include/mcs51/c8051f018.h,
6526         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
6527           PCON_IDLE,PCON_STOP and added sfr16 definitions
6528
6529 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
6530
6531         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
6532           genGetWord): fixed bug 1409955
6533
6534 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
6535
6536         * device/include/hc08/mc68hc908gp32.h,
6537         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
6538
6539 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
6540
6541         * src/SDCCast.c (constExprValue): return NULL if not a value
6542         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
6543         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
6544         * support/regression/tests/bitfields.c: enabled signed bitfield for all
6545
6546 2006-02-13 Borut Razem <borut.razem AT siol.net>
6547
6548         * src/regression/ptrarg.c: added, fails due to bug #1430967
6549         * src/regression/Makefile: ptrarg.c added, ...
6550
6551 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
6552
6553         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
6554         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
6555
6556 2006-02-11 Borut Razem <borut.razem AT siol.net>
6557
6558         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
6559           print "Processor: xxx" message to stdout only if --verbose
6560
6561 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
6562
6563         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
6564         * support/regression/tests/bug1426356.c: added
6565         * support/regression/tests/bitfields.c: removed 2 tests
6566
6567 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
6568
6569         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
6570         * device/include/mcs51/c8051f330.h,
6571         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
6572           PCON_IDLE,PCON_STOP and added sfr16 definitions
6573         * device/lib/_divsint.c,
6574         * device/lib/_divuint.c,
6575         * device/lib/_divulong.c,
6576         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
6577           register bank bug for small stackauto
6578
6579 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
6580
6581         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
6582
6583 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
6584
6585         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
6586         * all.dsp: corrected several bin paths
6587         * device/include/mcs51/c8051f120.h,
6588         * device/include/mcs51/c8051f300.h,
6589         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
6590           to PCON_IDLE,PCON_STOP
6591         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
6592         * device/lib/printf_large.c (output_float): fixed bug 1388703
6593         * support/regression/tests/bug1057979.c: added test for bug 1388703
6594
6595 2006-02-08 Raphael Neider <rneider AT web.de>
6596
6597         * src/pic/pcode.c (pciTRIS): fixed typo,
6598           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
6599           (LinkFlow): fixed handling of flows that end in a call,
6600           (ReuseReg): perform safety check earlier
6601         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
6602             to work with flows at the beginning of a pBlock,
6603             fixes #1426557 (Symbol not previously defined),
6604           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
6605             usage information
6606           (RemoveUnusedRegisters): update register usage info
6607         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
6608             created, reuse existing ones instead
6609         * src/pic/gen.c (genPcall): fixed #1424719
6610
6611 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
6612
6613         * link/z80/lkmain.c,
6614         * link/z80/lklex.c,
6615         * link/z80/lkdata.c,
6616         * link/z80/aslink.h: fixed build on current cygwin:
6617         replaced getline() by lk_getline()
6618
6619 2006-02-01 Borut Razem <borut.razem AT siol.net>
6620
6621         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
6622           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
6623           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
6624           src/regression/bool1.c, src/regression/bool2.c,
6625           src/regression/bool3.c, src/regression/call1.c,
6626           src/regression/compare.c, src/regression/compare10.c,
6627           src/regression/compare2.c, src/regression/compare3.c,
6628           src/regression/compare4.c, src/regression/compare5.c,
6629           src/regression/compare6.c, src/regression/compare7.c,
6630           src/regression/compare8.c, src/regression/compare9.c,
6631           src/regression/configword.c, src/regression/for.c,
6632           src/regression/inline.c, src/regression/mult1.c,
6633           src/regression/nestfor.c, src/regression/or1.c,
6634           src/regression/pointer1.c, src/regression/ptrfunc.c,
6635           src/regression/rotate1.c, src/regression/rotate2.c,
6636           src/regression/rotate3.c, src/regression/rotate4.c,
6637           src/regression/rotate5.c, src/regression/rotate6.c,
6638           src/regression/rotate7.c, src/regression/string1.c,
6639           src/regression/struct1.c, src/regression/sub.c,
6640           src/regression/sub2.c, src/regression/switch1.c,
6641           src/regression/while.c, src/regression/xor.c,
6642           src/regression/create_stc, src/regression/simulate,
6643           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
6644           regression tests
6645         * src/regression/gpsim_assert.h: added
6646
6647 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
6648
6649         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
6650         ((void (code *) (void)) 0) ();
6651         * as/hc08/aslex.c,
6652         * as/hc08/aslink.h,
6653         * as/hc08/asm.h,
6654         * as/hc08/asmain.c,
6655         * as/hc08/lkdata.c,
6656         * as/hc08/lklex.c,
6657         * as/hc08/lkmain.c,
6658         * as/mcs51/aslex.c,
6659         * as/mcs51/aslink.h,
6660         * as/mcs51/asm.h,
6661         * as/mcs51/asmain.c,
6662         * as/mcs51/lkdata.c,
6663         * as/mcs51/lklex.c,
6664         * as/mcs51/lkmain.c,
6665         * as/z80/aslex.c,
6666         * as/z80/asm.h,
6667         * as/z80/asmain.c: fixed build on current cygwin:
6668         replaced getline() by as_getline()
6669
6670 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
6671
6672         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
6673         declarator in the symbol chain
6674         * src/SDCCsymt.h,
6675         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
6676         parameter list for function pointers
6677         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
6678         * support/regression/tests/bug-716242.c: added
6679
6680 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
6681
6682         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
6683         offset if possible
6684         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
6685
6686 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
6687
6688         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
6689         inifinitely recurseable, added static
6690         * support/regression/tests/bug-1408066.c: added
6691
6692 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
6693
6694         * src/SDCCicode.h,
6695         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
6696         renamed, added possibility to create "postLoopLbl"-labels
6697         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
6698         newiTempLoopHeaderLabel
6699         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
6700         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
6701         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
6702         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
6703         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
6704         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
6705         (basicInduction): fixed bug #136564, made static,
6706         (loopInduction): changed parameter of basicInduction, made static,
6707         (addPostLoopBlock): added
6708         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
6709         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
6710         findLoopEndSeq
6711         * support/regression/tests/bug-136564.c: added
6712         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
6713         --std-sdcc99 to LIBSDCCFLAGS
6714
6715 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
6716
6717         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
6718         while loop
6719         * support/regression/tests/bug-1406131.c: added
6720
6721 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
6722
6723         * src/SDCCast.c (decorateType): fix promotion of unary minus
6724         * src/SDCCsymt.c (computeType): beautified
6725         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
6726         (valUnaryPM, valComplement): fix sign and promotion,
6727         (valNot): ANSI: result type is int (SDCC: unsigned char)
6728         * support/regression/tests/uminus.c: speedup by removing superflous
6729         test case 'int'
6730         * support/regression/tests/onebyte.c: added promotion and signedness
6731         tests for unary minus
6732         * support/regressions/tests/bug-477927.c: disable warning about
6733         uninitialized variables
6734         * support/regression/tests/not.c: added
6735
6736 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
6737
6738         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
6739         * src/mcs51/gen.c (gen51Code): show final register usage after
6740         fillGaps in asm with --i-code-in-asm
6741         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
6742         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
6743         incUsed, rliveClear, adjustIChain): made static,
6744         (setFromRange): excluded because it's unused,
6745         (findPrevUseSym, markWholeLoop): added,
6746         (findPrevUse): rewritten; fixes bug 895992; now a complete search
6747         through all branches of predecessors enables sdcc to emit the warning
6748         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
6749         (rlivePoint): made static, added parameter emitWarnings which is only
6750         true during the first run out of two,
6751         (findRecursiveSucc, findRecursivePred): removed,
6752         (computeLiveRanges): made static, added parameter emitWarnings,
6753         (dumpIcRlive): added for debugging only
6754         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
6755         removed prototype of setFromRange()
6756         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
6757         in call of computeLiveRanges()
6758         * support/regression/tests/bug-895992.c: added
6759         * support/regression/tests/bug-971834.c: added
6760         * support/valdiag/tests/bug-895992.c: added
6761         * support/valdiag/tests/bug-971834.c: added
6762
6763 2005-12-18 Raphael Neider <rneider AT web.de>
6764
6765         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
6766           (genUnpackBits): improved code for direct operands,
6767           (genPackBits): improved code for literal assignment to bitfields
6768             and for direct destination operands (no FSR indirection),
6769             prevented redundant AND, fixes #1362800,
6770           (AccLsh): added parameter to disable masking of the result
6771         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
6772           skip instructions with side-effects (like incfsz),
6773           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
6774         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
6775         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
6776           fixes #1375263
6777
6778 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
6779
6780         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
6781         volatile variables as spill location
6782
6783 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
6784
6785         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
6786         replacing literals
6787         * support/regression/tests/bug-1376320.c: added
6788
6789 2005-12-08 Raphael Neider <rneider AT web.de>
6790
6791         * src/pic/device.c: renamed is_shared to pic14_is_shared
6792         * src/pic/gen.c (genIfx): re-enabled handling of sbits
6793         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
6794           (is_valid_identifier): added for above workaround
6795
6796 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
6797
6798         * device/lib/Makefile.in: fixed to enable port-specific-objects
6799         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
6800           char, thanks Hubert Sack
6801         * doc/sdccman.lyx: documented --xstack-loc,
6802           elaborated a bit more on interrupts and pitfalls,
6803           removed "setjmp/longjmp unsupported",
6804           documented some unsupported C99 features
6805         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
6806         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
6807           if, thanks Hubert Sack
6808         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
6809         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
6810           make make_library
6811         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
6812           regression tests can report resource usage (rfe 700441)
6813         * support/regression/collate-results.py: report resource usage
6814         * support/regression/ports/ds390/spec.mk,
6815         * support/regression/ports/hc08/spec.mk,
6816         * support/regression/ports/mcs51/spec.mk,
6817         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
6818         * support/regression/ports/ds390/uCsim.cmd,
6819         * support/regression/ports/hc08/uCsim.cmd,
6820         * support/regression/ports/mcs51/uCsim.cmd,
6821         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
6822         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
6823           library, use the default one
6824         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
6825           building the library
6826
6827 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
6828
6829         * config.dsp: added dependency on .version and configure_vc.awk
6830         * device/include/setjmp.h: updated for --stack-auto and --xstack
6831         * device/include/mcs51/at89c51snd1c.h: corrected line endings
6832         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
6833         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
6834         * device/lib/libsdcc.lib: added _setjmp
6835         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
6836           (decorateType): fixed bug 1372851,
6837           (optimizeGetHbit): fixed warning
6838         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
6839           array initialisation
6840         * support/regression/tests/bug1057979.c: added test for bug 1358192
6841         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
6842
6843 2005-12-03 Borut Razem <borut.razem AT siol.net>
6844
6845         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
6846           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
6847
6848 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
6849
6850         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
6851         createIval): implement symbol independant "flexible array member",
6852         (createIvalCharPtr): implemented flexible array initialisation with a
6853         string
6854         * src/SDCCsymt.c (copyStruct): removed,
6855         (getSize): fixed misleading comment,
6856         (getAllocSize): removed, the additional allocation size is now in
6857         sym->flexArrayLength,
6858         (checkStructFlexArray): new, syntax checks for flexible array members,
6859         (compStructSize): added syntax checks for "flexible array members"
6860         (copyStruct): removed,
6861         (copyLinkChain): removed inefficient fix for bug 770487
6862         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
6863         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
6864         symbol->flexArrayLength
6865         * src/SDCCerr.c,
6866         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
6867         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
6868         * support/regression/tests/structflexarray.c: added
6869         * support/valdiag/tests/structflexiblearray.c: added
6870
6871 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
6872
6873         * src/SDCCast.c (decorateType): fixed bug 1368489
6874         * support/Util/SDCCerr.c,
6875         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
6876
6877 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6878
6879         * device/include/mcs51/at89c51snd1c.h: added file submitted by
6880           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
6881
6882 2005-11-27 Borut Razem <borut.razem AT siol.net>
6883
6884         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
6885           support/cpp2/mkdeps.h: added command line option
6886           -obj-ext=<extension> to SDCPP to define object file externion, used
6887           for generation of make dependencies (-M)
6888         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
6889
6890 2005-11-26 Borut Razem <borut.razem AT siol.net>
6891
6892         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
6893           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
6894           added pic and pic16 libraries
6895
6896 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6897
6898         * device/include/float.h: Corrected typo in prototype of __fsgt
6899
6900 2005-11-25 Borut Razem <borut.razem AT siol.net>
6901
6902         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
6903           added creation of model-mcs51-stack-auto libraries
6904
6905 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
6906
6907         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
6908         and fields-list too
6909         * src/SDCCast.c (createIvalArray): removed obsolete comment
6910
6911 2005-11-24 Borut Razem <borut.razem AT siol.net>
6912
6913         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
6914           added missing device/lib/mcs51/crt*.asm sources
6915
6916 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
6917
6918         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
6919
6920 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
6921
6922         * device/lib/_fs2schar.c,
6923         * device/lib/_fs2sint.c,
6924         * device/lib/_fs2slong.c: optimized inline asm
6925
6926 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6927
6928         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
6929           Better handling of floats between -1.0 and 0.0.
6930
6931 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6932
6933         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
6934           (the missing "if"s prohibited removal of redundant labels)
6935
6936 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6937
6938         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
6939           Properly convert floats between -1.0 and 0.0 to long, int, and char
6940           types (max integer value of negative floats tends to zero).
6941         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
6942           Removed changes made so to work properly with floats between
6943           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
6944           and _fs2char.c
6945
6946 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
6947
6948         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
6949         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
6950         (genCast) cosmetic change
6951         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
6952         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
6953         from mcs51
6954         * support/regression/tests/bitfields (testSignedBitfields): added
6955
6956 2005-11-18 Borut Razem <borut.razem AT siol.net>
6957
6958         * sdcc/device/lib/Makefile.in: remove all unnecessary files
6959         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
6960           introduced SILENT option to make building of pic16 libraries less
6961
6962 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6963
6964         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
6965           Now they work properly with floats between -1.0 and 0.0
6966         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
6967
6968 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
6969
6970         * src/SDCCicode.c (printOperand): added missing else
6971
6972 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
6973
6974         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
6975         reformatted for better readability
6976         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
6977         signed bitfields
6978
6979 2005-11-17 Borut Razem <borut.razem AT siol.net>
6980
6981         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
6982           introduced SILENT option to make building of pic16 libraries less
6983           verbose - used for nightly snapshot build
6984         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
6985           available on Win32 platforms.
6986         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
6987           medium, large, pic and pic16
6988
6989 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6990
6991         * device/lib/printf_large.c: Temporary patch for bug 1358192:
6992           printf("%f"...) sets fraction to zero.
6993
6994 2005-11-16 Raphael Neider <rneider AT web.de>
6995
6996         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
6997           fixes #1357221
6998         * src/pic/gen.c (genIfx): implemented for CARRY bit
6999         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
7000           to generic pointers, fixes #1357332,
7001           (pic16_movLit2f): NEW,
7002           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
7003
7004 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
7005
7006         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
7007
7008 2005-11-11 Raphael Neider <rneider AT web.de>
7009
7010         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
7011         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
7012           compute pointer's type from operand,
7013           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
7014           improved single bit reads, fixes bug #1353379
7015
7016 2005-11-09 Borut Razem <borut.razem AT siol.net>
7017
7018         * support/scripts/sdcc.nsi: added lib/pic to the package
7019
7020 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
7021
7022         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
7023
7024 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
7025
7026         * support/regression/tests/bug1348008.c: added
7027         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
7028         * support/regression/tests/bug1337835.c: updated comment
7029
7030 2005-11-06 Borut Razem <borut.razem AT siol.net>
7031
7032         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
7033           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
7034           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
7035           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
7036           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
7037           dynamic construction of cl_error_class and derivates - 2.nd try
7038
7039 2005-11-05 Borut Razem <borut.razem AT siol.net>
7040
7041         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
7042           bug, which caused Bus Errors on sparc solaris
7043
7044 2005-11-04 Borut Razem <borut.razem AT siol.net>
7045
7046         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
7047           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
7048           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
7049           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
7050           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
7051           and derivates to resolve the initialization problem on OSX
7052
7053 2005-11-02 Borut Razem <borut.razem AT siol.net>
7054
7055         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
7056           corrected typo - #include <winsock2.h>
7057
7058 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
7059
7060         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
7061           (_asxxxx_mapping): added org directive for future enhancements
7062
7063 2005-11-01 Borut Razem <borut.razem AT siol.net>
7064
7065         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
7066           enabled sockets on WIN32
7067         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
7068
7069 2005-10-31 Borut Razem <borut.razem AT siol.net>
7070
7071         * support/regression/generate-cases.py: escape backslashes in {testcase}:
7072           WIN32 backslash path delimiters should be escaped when used in C strings
7073         * support/regression/tests/bitfields.c: exclude failing assertions for
7074           __CYGWIN32__ and __MINGW32__ hosts
7075
7076 2005-10-30 Borut Razem <borut.razem AT siol.net>
7077
7078         * src/SDCCutil.c: corrected double comparison typo
7079
7080 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
7081
7082         * device/lib/medium/Makefile: added for new memory model medium
7083         * device/include/asm/mcs51/features.h: updated for medium/pdata
7084         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
7085           added Multiply & Accumulate sbit's and MAC0_PAGE define
7086         * device/include/mcs51/c8051f300.h: added sfr16 definitions
7087         * device/include/mcs51/c8051f310.h: added sfr16 definitions
7088         * device/lib/_mullong.c: update for medium model
7089         * device/lib/incl.mk: added medium model
7090         * doc/sdccman.lyx: documented medium model
7091         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
7092         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
7093         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
7094         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
7095           (allocParms): set SCLS and OCLS to pdata for medium model
7096         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
7097           for pdata,
7098           (powof2): return <0 if not power of 2
7099         * src/avr/gen.c (genBitWise): use updated powof2
7100         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
7101           (shiftR2Left2Result): small optimization in setup, save acc when storing,
7102           (shiftLLeftOrResult): use B if necessary
7103         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
7104         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
7105         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
7106         * support/regression/Makefile.in: added test-mcs51-medium
7107         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
7108
7109 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
7110
7111         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
7112         specifier unsigned
7113         * device/lib/time.c (mktime): fixed bug 1334315
7114
7115 2005-10-28 Raphael Neider <rneider AT web.de>
7116
7117         * device/include/pic/p16f_common.inc: added common declarations
7118         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
7119
7120 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
7121
7122         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
7123           (aopPutUsesAcc): added to predict accumulator use,
7124           (assignResultValue): save acc if necessary,
7125           (genMinusDec): store result if indirectly addressed,
7126           (genDivOneByte):  save acc if necessary,
7127           (movLeft2Result): bugfix if left already in acc,
7128           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
7129             attention to accumulator use (esp. pdata),
7130           (genReceive): receive pdata correctly
7131         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
7132         * src/SDCCicode.h: added isOperandInPagedSpace prototype
7133
7134 2005-10-27 Raphael Neider <rneider AT web.de>
7135
7136         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
7137
7138 2005-10-27 Raphael Neider <rneider AT web.de>
7139
7140         * .version: changed version to 2.5.4
7141         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
7142         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
7143           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
7144             arithmetics support routines
7145         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
7146         * device/lib/Makefile.in: also create installdir for pic
7147
7148         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
7149           pic14 port as well
7150         * src/pic/device.c (dump_sfr): rewritten to delegate register
7151           placement to the linker (use `extern sym' rather than sym EQU addr),
7152           (validAddress): fixed to check last specified address
7153         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
7154           (popGetLit): truncate literal value to 8 bit,
7155           (popGet): moved assert to more appropriate place
7156           (popGetExternal): create pCode operand from and mark the according
7157             symbol as being `extern'
7158           (popGetAddr): added sanity check on immediate's offset, provide
7159             GPOINTER tag on demand
7160           (aopPut): fixed for immediates,
7161           (mov2w_op): move operand's address or contents to WREG (depending on
7162             operand type), safer variant of mov2w,
7163           (movwf,call_libraryfunc): NEW, handy abbreviations,
7164           (get_argument_pcop,get_return_val_pcop,pass_argument,
7165           get_returnvalue): interface for accessing function parameters and
7166             return values,
7167           (assignResultValuei,genRet): use new parameter/return value interface
7168           (pic14_getDataSize): back to old version handling generic pointers,
7169           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
7170             provided implementation and/or fixed old one,
7171           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
7172             calls, removed legacy 8051 reference code
7173           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
7174           (loadSignToC): NEW, move the operands sign bit to CARRY,
7175           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
7176             genRightShiftSigned, accepts negative shift counts,
7177           (setup_fsr): load FSR and adjust IRP (indirect memory access),
7178           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
7179             generic pointers, __data pointers and __code pointers,
7180           (genUnpackBits,genPackBits): rewritten to work with generic pointers
7181             and signed bitfields, limit bitfields to 8 bit,
7182           (genDataPointerGet): fixed number of bytes read,
7183           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
7184           (genPointerGet,genPointerSet): fixed handling of __code pointers,
7185             pointers to constant data are no longer assumed to point to __code
7186             space, removed invalid pointer types,
7187           (bitpatternFromVal): retrieve the PICs representation of an integer
7188             or float literal,
7189           (genDataPointerSet): fixed assigning to po_immediate operands,
7190           (genGenPointerSet): implemented as library call,
7191           (genIfx): fixed incorrect condition,
7192           (genAddrOf): limit generic pointers' addresses to 2 bytes,
7193             provide GPOINTER tag according to destination's storage class,
7194           (genCast): added code to handle casting to generic pointers, added
7195             sign-/zero extension of the result
7196           (aop_isLitLike,op_isLitLike): fixed handling of immediates
7197         * src/pic/gen.h: added macros to access IRP bit in STATUS register
7198         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
7199           extend the result
7200         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
7201           address/register resides in the shared banks
7202           (emitSymbolToFile): improved to handle global and `pinned' symbols,
7203             put all variables into separate sections (have the linker arrange
7204             them)
7205           (picglue): put init code and interrupt handlers in separate sections
7206         * src/pic/main.c: added port specific options table, modified to PORT
7207           structure to make GPOINTERs 3 byte, added pic14_options
7208           (_pic14_do_link): private linking routine (update paths to libraries,
7209             add libsdcc.lib by default)
7210         * src/pic/main.h: declare pic14_options
7211         * src/pic/pcode.c: fixed instructions i/o relations,
7212           (RegCond): reverted to correct version,
7213           (newpCodeOpLit): truncate literals to 8 bit,
7214           (genericPrint): added debug output,
7215           (getRegFromInstruction): fixed for various operand types, simplified
7216           (BuildFlow): fixed broken handling of isntructions with labels
7217           (LinkFlow): start at last instruction in flow (skip trailing comments),
7218             pass the flow on to the next instruction after CALL
7219           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
7220           (insertPCodeInstruction): fixed inserting after a skip instruction,
7221           (DoBankSelect): fixed for labeled instructions
7222           (OptimizepBlock): honor --nopeep switch
7223           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
7224         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
7225         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
7226           (pCodeOptime2pCodes): allow disabling this optimization via
7227             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
7228             but is still buggy), started implementation of a dataflow based
7229             pCode optimization (CSE + dead code elimination)
7230           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
7231         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
7232           names are independant of the stack location and therefore portable across
7233           devices
7234
7235 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
7236
7237         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
7238           (selectSpil): fixed bug 1337835 by not spilling bit variables
7239         * support/regression/tests/bug1337835.c: added test for this bug
7240         * src/mcs51/peeph.def: restart after rule 3.c,
7241           addded rules 263.x to optimize loading constants
7242
7243 2005-10-26 Raphael Neider <rneider AT web.de>
7244
7245         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
7246         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
7247           (genAssign): emit warning when casting literals to generic pointer
7248             type, also applies when taking the address of a fixed variable,
7249           (genCast): improved casting to generic pointers
7250         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
7251           extern variables, added verbose error message
7252         * device/include/pic16/{string.h,errno.h}: added #pragma library c
7253
7254 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
7255
7256         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
7257         carry must be complemented too
7258         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
7259         could be emitted by genMinus
7260         * src/SDCCval.c (constVal): fixed bug 1305065
7261
7262 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
7263
7264         * src/SDCCast.c (addCast): added promotion for bit variables
7265         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
7266         promotion casts + optimisation
7267         (optimizeGetWord): fix warning 'i' might be used uninitialized
7268         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
7269         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
7270
7271 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
7272
7273         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
7274         all chars are promoted to int; promotion should be handled in SDCCast.c
7275
7276 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7277
7278         * device/lib/_strcmp.c: Fixed bug 1326457
7279
7280 2005-10-11 Raphael Neider <rneider AT web.de>
7281
7282         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
7283         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
7284
7285 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
7286
7287         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
7288         * support/regression/tests/sfr16.c: added test for the sfr32 bug
7289
7290 2005-10-04 Raphael Neider <rneider AT web.de>
7291
7292         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
7293           device/lib/pic16/pics.all: added pic18f1320
7294         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
7295
7296 2005-09-30 Raphael Neider <rneider AT web.de>
7297
7298         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
7299         * src/pic16/devices.inc: NEW, provides device descriptions
7300         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
7301
7302 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
7303
7304         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
7305           GETHBIT
7306
7307 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
7308
7309         * doc/sdccman.lyx: updated Highest Order Bit documentation,
7310           documented Any Order Bit, Higher Order Byte and Higher Order Word
7311         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
7312         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
7313           (optimizeGetAbit): new, to get any bit, not only the high bit,
7314           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
7315           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
7316           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
7317           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
7318             RIGHT_OP: also try GETBYTE, GETWORD optimization,
7319             GETABIT, GETBYTE, GETWORD: decorate them,
7320           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
7321           (ast_print): added GETABIT, GETBYTE, GETWORD
7322         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
7323         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
7324           (geniCodeBinary): new generic binary icode,
7325           (ast2iCode): added GETABIT, GETBYTE, GETWORD
7326         * src/port.h: updated comment for PORT.hasExtBitOp
7327         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
7328           (genGetByte): new, to get a single byte,
7329           (genGetWord): new, to get a word from a long,
7330           (gen51Code): added GETABIT, GETBYTE, GETWORD
7331         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
7332
7333 2005-09-23 Raphael Neider <rneider AT web.de>
7334
7335         * configure.in, configure: have device/lib/pic configured
7336         * device/lib/Makefile.in: added model-pic14
7337         * device/lib/clean.mk: added pic/ to clean rule
7338         * device/lib/pic: added rudimentary pic14 library providing support
7339           functions for multiplication/division/generic pointer access
7340         * src/SDCCopt.c (convilong): mark support functions as extern
7341           for pic14 port as well
7342         * src/pic/gen.c (genMult): added assertions,
7343           (genpic14Code): emit warning on unhandled iCodes
7344         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
7345         * src/pic/pcode.c (pCodeOpCopy),
7346         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
7347           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
7348           SFR_REGISTER}), made safe for future extensions
7349         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
7350           instructions even if preceeded by SKIP instructions (also remove
7351           them); removed unused code
7352         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
7353           prevents leaving parts of the structure uninitialized after copying
7354
7355 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
7356
7357         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
7358           ago by me
7359         * support/regression/tests/addsub.c: added test for the bug
7360
7361 2005-09-21 Raphael Neider <rneider AT web.de>
7362
7363         * device/include/pic16/pic18f1220.h,
7364           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
7365         * device/lib/pic16/Makefile.rules: added missing opening paren
7366         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
7367           are provided in genutils.c,
7368           (genUminusFloat,genUminus,genCmpEq): added asserts on different
7369           operand/result sizes,
7370           (genCmp): assert on NULL pointers first, then check deref'ed values
7371         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
7372           result size
7373
7374 2005-09-18 Raphael Neider <rneider AT web.de>
7375
7376         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
7377           as these are now unused,
7378           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
7379         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
7380           local, avoids uninitialized pointer dereference on r->name
7381         * src/pic16/ralloc.c (newReg): fixed indentation
7382
7383 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
7384
7385         * src/SDCCval.c (constVal): fixed bug 730366
7386         * support/Util/SDCCerr.c,
7387         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
7388
7389 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
7390
7391         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
7392
7393 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
7394
7395         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
7396
7397 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7398
7399         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
7400           (hex2dec): made hex_digit unsigned char, removed ascii dependance
7401         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
7402           (hex2dec): made hex_digit unsigned char, removed ascii dependance
7403         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
7404         * packihx/packihx.c (hexDigit): made c unsigned char
7405         * as/mcs51/lklibr.c (fndsym),
7406         * link/z80/lkgb.c (gb),
7407         * link/z80/lklibr.c (fndsym),
7408         * link/z80/lkrloc.c (relr),
7409         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
7410         * src/SDCC.lex (checkCurrFile, process_pragma),
7411         * src/SDCCglue.c (spacesToUnderscores),
7412         * src/SDCCmain.c (setParseWithComma, processFile),
7413         * src/asm.c (tvsprintf, printCLine),
7414         * src/avr/gen.c (emitcode, aopPut),
7415         * src/ds390/gen.c (emitcode),
7416         * src/hc08/gen.c (emitcode, emitinline),
7417         * src/mcs51/gen.c (emitcode, genInline),
7418         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
7419           tokenizeLineNode),
7420         * src/pic/ralloc.c (debugLog),
7421         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
7422           tokenizeLineNode),
7423         * src/pic16/ralloc.c (debugLog),
7424         * src/z80/main.c (_process_pragma):
7425            made all ctype.h function calls safe
7426         * src/SDCCopt.c: include math.h for fabs
7427         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
7428           and used them throughout the code to make ctype.h function calls safe
7429         * src/ds390/main.c (asmLineNodeFromLineNode),
7430         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
7431         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
7432            unsigned char*
7433         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
7434           (newpCodeAsmDir): made ctype.h function calls safe
7435         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
7436           pic16_emitcode):  made lbp unsigned char*
7437         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
7438           (pic16_newpCodeAsmDir): made ctype.h function calls safe
7439         * src/xa51/gen.c (emitcode),
7440         * src/z80/gen.c (_emit2): made lbp unsigned char*
7441         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
7442            char*
7443
7444 2005-09-05 Raphael Neider <rneider AT web.de>
7445
7446         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
7447           access bank splitpoint
7448
7449 2005-09-05 Raphael Neider <rneider AT web.de>
7450
7451         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
7452
7453 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
7454
7455         * .version: changed to version 2.5.3
7456         * doc/sdccman.lyx: changed version to 2.5.3,
7457           documented --codeseg and --constseg and pragma codeseg and constseg,
7458           documented bit parameters (reentrant) and bit returning
7459         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
7460            currFunc->recvSize, but is this ok for all ports?
7461           (ast2iCode): result of ~ on unsigned char must be cast to int for
7462            bool to work
7463         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
7464           function pointers in bit space
7465         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
7466           (processFuncArgs): call port.reg_parm() with reentrancy info
7467         * src/port.h,
7468         * src/avr/main.c,
7469         * src/ds390/main.c,
7470         * src/hc08/main.c,
7471         * src/pic/main.c,
7472         * src/pic16/main.c,
7473         * src/xa51/main.c,
7474         * src/z80/main.c: port.reg_parm prototype extended with
7475           "bool reentrant" parameter
7476         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
7477           options.stackAuto for allocating bit register parameters
7478         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
7479           (genSend): set BitBankUsed if it is,
7480           (selectRegBank): factored out of genCall for use in genPcall,
7481           (genCall): removed redundant dtype assignmen, use selectRegBank,
7482           (genPcall): handle returning in Carry properly, save in F0 if needed,
7483           (genReceive): handle bit register parameters
7484         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
7485           (mcs51_assignRegisters): enable bit registers for all reentrant
7486            functions and don't set BitBankUsed unconditionally
7487         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
7488         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
7489         * support/regression/tests/funptrs.c: added tests for BOOL and for return
7490
7491 2005-08-27 Borut Razem <borut.razem AT siol.net>
7492
7493         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
7494         ppc-osx (Darwin) does not support -u option. It seems that it is
7495         supported only on Linux - GNU cp
7496
7497 2005-08-25 Borut Razem <borut.razem AT siol.net>
7498
7499         * sim/ucsim/gui.src/serio.src/Makefile.in,
7500           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
7501           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
7502           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
7503           install and strip, since the strip at /usr/ccs/bin should be used
7504           on solaris
7505
7506 2005-08-24 Borut Razem <borut.razem AT siol.net>
7507
7508         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
7509
7510 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
7511
7512         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
7513         ffffffffu
7514
7515 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
7516
7517         * as/mcs51/aslink.h: completed lkrloc.c prototypes
7518         * as/mcs51/lkmain.c (link_main): fixed warning
7519         * device/include/stdbool.h: ds390 has no advanced bit support yet
7520         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
7521         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
7522         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
7523           and updated their macros
7524         * src/SDCCval.c (constVal): updated comment for renamed b_long
7525
7526 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
7527
7528         * as/mcs51/asdata.c: changed ctype['['] to BINOP
7529         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
7530           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
7531           (oprio): set priority for '['
7532         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
7533            and adb_24_bit
7534         * as/mcs51/asm.h: added defines R_BIT and S_BIT
7535         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
7536         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
7537         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
7538           added overlayable BIT_BANK area
7539         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
7540           (summary2): explain 'T' in legenda
7541         * as/mcs51/lkrloc.c: replaced old K&R style,
7542           (relr): added R_BIT processing,
7543           (errmsg): added "Bit-addressable relocation error",
7544           (adb_bit): added for converting from byte- to bit-addressable space,
7545           (adb_24_bit): added for converting from byte- to bit-addressable space
7546         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
7547            used in reentrant functions now even as return value
7548         * device/lib/_gptrput.c (_gptrput): removed obsolete code
7549         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
7550           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
7551         * src/SDCCglobl.h: added indicator BitBankUsed
7552         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
7553            the bit registers b0-b7
7554         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
7555           (geniCodeCast): fixed bug 1263853,
7556           (geniCodeLogicAndOr): put result in bool or char,
7557           (geniCodeReceive): added parameter func for accessing the return type,
7558           (geniCodeFunctionBody): pass func to geniCodeReceive
7559         * src/SDCCmain.c: added indicator BitBankUsed
7560         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
7561         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
7562           (checkSClass): don't put automatic bool/bit on stack,
7563           (checkFunction): removed check on function cannot return bit
7564         * src/SDCCsymt.h: added newBoolLink prototype
7565         * src/mcs51/gen.c (rb1regs): added bit registers,
7566           (movc): created for assigning to carry,
7567           (pushReg, popReg): created for pushing registers,
7568           (sameRegs): check both AOP_REG and AOP_CRY types,
7569           (aopOp): handle bit registers,
7570           (aopPut): optimization no self-assign,
7571           (saveRegisters): push reg->base (bits) only once for bit registers,
7572            and use pushReg,
7573           (unsaveRegisters): pop reg->base only once and use popReg,
7574           (assignResultValue): added parameter func and return in carry for bits,
7575           (genIpush): optimization no reload in A if not changed,
7576           (genSend): bit parameters in reentrant functions are passed in bit
7577            registers by first assigning to bits in B, then save registers and
7578            copy B to bits,
7579           (genCall): handle returning in Carry properly, save it in F0 if needed,
7580           (genPcall): updated assignResultValue call, this is not safe yet for bit
7581            returning function !!!
7582           (genFunction): don't generate equ's for bit registers and use pushReg,
7583           (genEndFunction): take care of bit returning functions and use popReg,
7584           (genRet): return bit in Carry,
7585           (genIfx): optimize bit registers and other directly addressable bits,
7586           (genReceive): updated assignResultValue call
7587         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
7588           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
7589            registers when using stack-auto
7590         * src/mcs51/ralloc.c (_G): added allBitregs,
7591           (regs8051): added the bit registers,
7592           (createStackSpil): use macro IS_BIT,
7593           (getRegBit): added to allocate a bit register, else spill,
7594           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
7595           (updateRegUsage): factored out to ease stepping while debugging,
7596           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
7597            also allocate bit registers,
7598           (fillGaps): handle bit registers,
7599           (findAllBitregs): added to create bit vector with all bit registers,
7600           (mcs51_allBitregs): returns this bit vector,
7601           (mcs51_assignRegisters): when using stack-auto use bit registers for
7602            passing parameters and creating local variables
7603         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
7604
7605 2005-08-22 Borut Razem <borut.razem AT siol.net>
7606
7607         * device/lib/Makefile.in: replaced find option -or with -o
7608           to make it run on solaris
7609
7610 2005-08-22 Raphael Neider <rneider AT web.de>
7611
7612         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
7613           fixes #1265442 (crash on Solaris)
7614
7615 2005-08-20 Borut Razem <borut.razem AT siol.net>
7616
7617         * configure, configure.in: added tests for libsocket and libnsl libraries,
7618           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
7619           from support/regression/Makefile.in
7620         * support/regression/Makefile.in: added
7621         * device/lib/pic16/Makefile.common.in: force make to use bash shell
7622         * sim/ucsim/libtool: regenerated on sparc-solaris
7623         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
7624           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
7625           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
7626           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
7627           sparc-solaris, which doesn't use GNU ld linker
7628         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
7629         * as/Makefile: find on sparc-solaris does not support -maxdepth option
7630
7631 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
7632
7633         * src/mcs51/peeph.def: updated comments
7634
7635 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7636
7637         * device/lib/_gptrget.c,
7638         * device/lib/_gptrput.c: slightly shorter
7639         * doc/sdccman.lyx: incremented version
7640         * src/mcs51/peeph.def: moved peephole comments to the line of first
7641           change to better keep line correlation, reanimated 186.e
7642         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
7643
7644 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
7645
7646         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
7647           David Saxton with quotes around file name.
7648
7649 2005-08-15 Borut Razem <borut.razem AT siol.net>
7650
7651         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
7652           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
7653           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
7654           make tests run on x86_64 platform
7655
7656 2005-08-13 Raphael Neider <rneider AT web.de>
7657
7658         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
7659           as it might be executed DURING a build (parallel make is wonderful)
7660
7661 2005-08-13 Raphael Neider <rneider AT web.de>
7662
7663         * device/lib/Makefile.in (port-specific-objects-pic16):
7664           revert to cp $(PORT)/bin/*.* $(PORTDIR)
7665         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
7666           dependency
7667         * device/lib/pic16/Makefile.rules: build subdirs before creating
7668           the library, removed builddir rule, create $(builddir) early in
7669           recurse rule, use empty recurse rule for leaf directories
7670         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
7671           mkdir errors (race condition), removed duplicate suffix "hex"
7672           from clean rules
7673         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
7674         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
7675           prevents mkdir -p from aborting on Alpha
7676
7677 2005-08-12 Raphael Neider <rneider AT web.de>
7678
7679         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
7680           db-statements in order to allow for arrays of pointers in code
7681           sections to be placed without interspersed 0-padding, fixes
7682           bug #1256215
7683         * (emitStatistics): fixed division by zero for pic18f1220
7684         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
7685           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
7686         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
7687         * (pic16_pCodeConstString): keep track of already emitted string
7688           literals to prevent "duplicate definitions of symbol _str_NR"
7689         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
7690           debug message
7691         * device/lib/Makefile.in: ignore failing PIC16 library builds
7692         * device/lib/pic16/Makefile: do not build if gputils are missing
7693         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
7694
7695 2005-08-10 Raphael Neider <rneider AT web.de>
7696
7697         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
7698           my last commit)
7699
7700 2005-08-10 Raphael Neider <rneider AT web.de>
7701
7702         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
7703           Rokas' patch to add the new fixed point type "__fixed16x16"
7704         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
7705           functions for __fixed16x16 arithmetics
7706         * device/lib/pic16: reimplemented the build system to support
7707           a separate build directory, better handling of libio (create
7708           the library in a separate subdir for each architecture) and
7709           easier configuration (centralized in Makefile.common)
7710
7711 2005-08-07 Raphael Neider <rneider AT web.de>
7712
7713         * src/pic16/gen.c (genrshTwo): fixed sign extension
7714         * src/pic16/device.c: added pic18f2320, 4220 and 4320
7715         * device/include/pic16/pic18f2220.h: changed some bit definitions,
7716           added T0CONbits
7717         * device/include/pic16/pic18f4220.h: NEW, header for
7718           pic18f4220 and pic18f4320
7719         * device/include/pic16/pic18fregs.h: added new devices,
7720           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
7721         * device/include/pic16/signal.h: resolved name clashes
7722           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
7723           to also allow testing for interrupt enable bits, added
7724           comments on how to use the macros
7725         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
7726         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
7727           register definitions for the devices
7728         * device/lib/pic16/pics.all: added new devices
7729         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
7730           allocated memory
7731         * device/lib/pic16/libc/stdlib/memfree: do not count
7732           the block header as free memory
7733         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
7734           simplified and added missing end-of-blocklist-marker
7735           (reported by Peter Onion, fixes #1252814)
7736         * (_mergeHeapBlock): fixed loop condition
7737         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
7738           len==0, restructured code
7739         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
7740           up a bit, reduced bitfield accesses, prevent endless loops
7741           in case of heap corruption
7742         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
7743           "unreferenced arguments/must return a value" warnings
7744         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
7745           replaced BAUDREG with SPBRG
7746         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
7747           device/lib/pic16/debug/gstack/gstack.c: replaced
7748           _naked, _asm, _endasm with __naked, __asm, __endasm
7749
7750 2005-08-05 Raphael Neider <rneider AT web.de>
7751
7752         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
7753           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
7754
7755 2005-08-05 Borut Razem <borut.razem AT siol.net>
7756
7757         * device/lib/Makefile.in: added missing ';'
7758         * configure: removed ^M characters
7759
7760 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7761
7762         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
7763           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
7764           License
7765
7766 2005-08-04 Borut Razem <borut.razem AT siol.net>
7767
7768         * configure.in: pic16 libraries build 2nd try - enable running
7769           configure in device/lib/pic16
7770         * configure: regenerated from configure.in
7771         * device/lib/Makefile.in: create $(PORT)/bin directory
7772
7773 2005-08-03 Raphael Neider <rneider AT web.de>
7774
7775         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
7776           to get/set values via pointers
7777         * (genUnpackBits,genPackBits): changed detection of
7778           ptr->bitfield vs. sym.bitfield, fixed access via generic
7779           pointers, removed dead (wrong) code for multibyte bitfields
7780         * (genNearPointerGet, genGenPointerGet): removed useless code,
7781           fixed bitfield detection, fixes #1250594
7782         * (genNearPointerSet): removed useless code
7783         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
7784           and introduced macro pic16_emitpcode that conditionally emits
7785           the origin of the following pCode (useful for debugging SDCC)
7786         * src/pic16/pcode.c: changed (and disabled) some debug outputs
7787         * (createDefmap): fixed handling of LFSR for --optimize-df
7788
7789 2005-08-02 Borut Razem <borut.razem AT siol.net>
7790
7791         * device/lib/Makefile.in: pic16 libraries build enabled since
7792           gputils-0.13.2 are now localy installed at sourceforge's compile farm
7793
7794 2005-08-02 Raphael Neider <rneider AT web.de>
7795
7796         * src/pic16/gen.c (genPackBits): removed deprecated warning
7797         * (genGenPointerSet): fixed bitfield detection
7798
7799 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7800
7801         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
7802
7803 2005-07-31 Raphael Neider <rneider AT web.de>
7804
7805         * device/lib/pic16/libdev/pic18f458.c,
7806           device/include/pic16/pic18f458.h: added missing T0CONbits
7807
7808 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
7809
7810         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
7811
7812 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
7813
7814         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
7815
7816 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7817
7818         * device/include/mcs51/at89c51ed2.h: added.
7819
7820 2005-07-23 Raphael Neider <rneider AT web.de>
7821
7822         * src/pic/gen.h: added emitpcode macro for debugging
7823         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
7824           and replace by macro adding debug information on demand
7825         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
7826         * (gencjne): tried to fix; replaced with correct (slower) code
7827         * (gen{Unp,P}ackBits): fixed single bit access
7828         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
7829         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
7830           previous instruction
7831         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
7832           register has to be handled with care (forbidding movement
7833           of assignments/uses, removing assignments completely, ...)
7834         * (pCodeOptime2pCodes): make use of regIsSpecial
7835         * added lots of debugging output (commented out)
7836         * src/pic/rallloc.c (deassignLRs): prevent operand registers
7837           from being reused as result UNLESS it is known to work
7838
7839 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
7840
7841         * support/Util/dbuf.h: include <stddef.h> for size_t
7842         * .version: changed to version 2.5.2
7843
7844 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7845
7846         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
7847
7848 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7849
7850         * src/hc08/gen.c (genMinus): fixed bug #1241835,
7851           (genModOneByte): removed needless psha/pula
7852
7853 2005-07-22 Raphael Neider <rneider AT web.de>
7854
7855         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
7856           have PIC14 handled like PIC16, fixes broken pic14 linker calls
7857         * src/pic/gen.c (resolveIfx): do not "invent" labels
7858         * (genSkipc): changed to positive logic
7859         * (genSkipCond): removed as no longer needed
7860         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
7861           backport from PIC16
7862         * (genLeftShift): check operands are in different registers
7863         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
7864           INCF does not update CARRY...
7865         * src/pic/main.c: fixed _linkCmd
7866         * src/pic/pcode.c (unlinkpCode): added inactive code
7867         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
7868           alive (do not assign result and operand overlapping registers)
7869
7870 2005-07-22 Raphael Neider <rneider AT web.de>
7871
7872         * src/pic/device.c (dump_sfr): replaced register declaration with
7873           call to emitSymbolToFile() to avoid duplicate symbols
7874         * (assignRelocatableRegisters): do not declare external symbols
7875         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
7876           right (take size of type, not etype)
7877         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
7878         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
7879         * (packRegsForAccUse): disabled assignment of WREG as
7880           the result reg to prevent occurence of just fixed #1235003,
7881           fixes #1242954
7882         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
7883           symbols (avoids duplicate symbols in .asm file)
7884         * (pic14emitRegularMap): use emitSymbolToFile()
7885         * src/pic/gen.c (aopOp): fixed spillLocation handling
7886         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
7887         * (genDataPointerSet): removed unneccessary variables/output
7888
7889 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
7890
7891         * as/mcs51/lkarea.c: enlarged codemap for banked memory
7892         * device/lib/mcs51/crtbank.asm: added # to 0x0F
7893
7894 2005-07-21 Raphael Neider <rneider AT web.de>
7895
7896         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
7897           architecture cannot handle them efficiently, fixes bug #1235003
7898         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
7899           check for empty sets before using them (fixes bug #1232190)
7900
7901 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
7902
7903         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
7904           (lnksect2): generate warnings for memory overlap
7905         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
7906           constseg to set the name of these segments so you can instruct the linker
7907           to place them in banks
7908         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
7909         * src/SDCCglobl.h: added MODEL_HUGE to enum,
7910           added code_seg and const_seg to options
7911         * src/SDCCglue.c (emitMaps): use options.const_seg,
7912           (createInterruptVect): put interrupt vectors in segment HOME,
7913           (glue): put HOME before static segment and put the main glue in HOME,
7914           (glue): use options.code_seg
7915         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
7916         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
7917           these segments so you can instruct the linker to place them in banks
7918           (linkEdit): use code_loc for HOME segment which should be the first
7919           segment in code memory now
7920         * src/SDCCmem.c: fixed more stuff like bug 1238386
7921         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
7922           (changePointer): don't change function pointers to code pointers for
7923           banked functions,
7924           (compareType): added exceptional check for banked function pointers
7925         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
7926         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
7927           after static in code memory
7928         * src/mcs51/gen.c: added aopLiteralLong prototype,
7929           (aopForSym): use getSize for functions,
7930           (genCall): generate banked calls over one trampoline __sdcc_banked_call
7931           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
7932           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
7933           the segment,
7934           (genPcall): use call for literal function pointers and generate banked
7935           calls over the one trampoline so there's only one place for the user to
7936           modify according to his/hers hardware,
7937           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
7938           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
7939         * src/mcs51/main.c: added keyword banked,
7940           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
7941         * support/Util/SDCCerr.c,
7942         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
7943           needed for passing the bank and address to the trampoline
7944         * device/lib/mcs51/crtbank.asm: added for bankswitching
7945         * device/lib/mcs51/Makefile: added crtbank
7946
7947 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7948
7949         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
7950           for fields at offset 0 of a struct or union as reported
7951           on 2005-07-07 in the developer mailing list.
7952
7953 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
7954
7955         * src/SDCCmem.c: fixed bug 1238386
7956
7957 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7958
7959         * src/mcs51/peeph.def: added labelrefcounting for peepholes
7960           (patch #1144962), added peephole 300, enabled 259.x
7961         * doc/sdccman.lyx: removed screenshot and provided link instead
7962
7963 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7964
7965         * doc/sdccman.lyx: added section about debugging with ddd
7966         * doc/figures/ddd_example.eps: screenshot of debugging session
7967
7968 2005-07-04 Raphael Neider <rneider AT web.de>
7969
7970         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
7971           like CODE pointers, fixes #1115683
7972         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
7973           call, fixes bugs #1232211, #1228110,
7974           fixed wrong casts to pCodeFlow from pCodeInstructions
7975
7976 2005-07-04 Raphael Neider <rneider AT web.de>
7977
7978         * src/pic/gen.c (popGet): changed assert to allow for
7979           bit operands
7980         * (popGetAddr): changed signature to provide
7981           an additional index, patched all call sites
7982         * (genCmpEq): handle literal-like operands correctly
7983         * (genAddrOf): added sanity checks on __code/__data pointers
7984         * (genAssign): added handling of symbols from __code section
7985         * (gencjne): do not generate code for comparisons whose result
7986           is neither stored nor used, fixes bug #1171114
7987         * (AccLsh, AccRsh): operate on operand instead of WREG
7988         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
7989           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
7990           by known count
7991         * rewrote complete shift-by-literal logic, commented unused
7992           functions out
7993         * (genConstPointerGet): get multiple bytes (if result size > 1),
7994           fixed handling of non-immediate addresses
7995         * (genPointerGet): handle CODE pointers like CONST pointers
7996         * (genpic14Code): insert C-SRC lines as Cource-pCodes
7997         * ({aop,op}_isLitLike): NEW, single place to decide whether an
7998           operand is to be treated as a literal or not
7999         * (mov2w,genPcall,genCmpEq),
8000           src/pic/genarith.c: use aop_isLitLike() to decide between
8001           literal/register contents
8002         * (addSign): added missing offset
8003         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
8004           only emit comment in debug-mode,
8005           use {aop,op}_isLitLike throughout the file
8006         * src/pic/glue.c: fix initializers for pointers (work in progress)
8007         * src/pic/pcode.c (get_op): honor index on _const symbols
8008         * ({reset,dump}pCodeStatistics): NEW, estimate code size
8009         * (dumppBlock): added pCode size estimation
8010         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
8011           check for IS_SYMOP before OP_SYMBOL'ing
8012         * fixed indentation, compacted switch-statements
8013         * (allocReg): find free register and allocate it instead of
8014           allocating new registers all the time
8015         * (deassignLRs): prevent POINTER_GET's from being assigned the same
8016           registers as its operands (necessary only for multibyte GETs)
8017
8018 2005-07-01 Raphael Neider <rneider AT web.de>
8019
8020         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
8021           debugging .asm-output macros FENTRY + FEXIT
8022         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
8023           way... I wonder...
8024         * (emitpComment): NEW, printf to pCode
8025         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
8026           offset handling
8027         * (popGetAddr): NEW, variant of popGet to access an immediates
8028           high(er) bytes instead of the n'th byte of memory they reference,
8029           replaced popGet with popGetAddr where neccessary
8030         * (genDataPointerGet): reactivated and fixed implementation
8031         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
8032           accesses
8033         * (genDataPointerSet): fixed multibyte assignments
8034         * (genpic14Code): fixed --i-code-in-asm handling
8035         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
8036         * (genPlus): fixed index-out-of-bounds error
8037         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
8038         * src/pic/ralloc.c: added debugging output macro FENTRY2
8039         * (spillThis): fixed indentation, enbraced for-body for clarity
8040         * (rematStr): commented out as now unused
8041         * (regTypeNum): commented out special spill case (overwrites
8042           arbitrary values)
8043         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
8044
8045 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
8046
8047         * doc/sdccman.lyx: documented sfr16/sfr32,
8048           added example for using storage class with function pointers
8049         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
8050
8051 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
8052
8053         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
8054         * device/lib/_itoa.c,
8055         * device/lib/_ltoa.c: optimized codesize
8056         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
8057           but don't know how to suppress the double warning.
8058         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
8059         * support/Util/SDCCerr.c,
8060         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
8061
8062 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
8063
8064         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
8065           fixed old K&R prototypes
8066         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
8067         * device/lib/_gptrget.c,
8068         * device/lib/_gptrgetc.c,
8069         * device/lib/_gptrput.c: changed versions for new memory indicator values,
8070           also new versions for small generic pointers and banked generic pointers
8071         * src/port.h: added const_name
8072         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
8073         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
8074         * src/SDCCcse.c (findPrevIc): check all associative operators
8075         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
8076         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
8077         * src/SDCCmem.c: updated comments,
8078           set far-space to 0 for pdata, results in optimized code
8079         * src/SDCCmem.h: added macro CONST_NAME
8080         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
8081           moving the info into the highest bits, see also gptrget/gptrput
8082         * src/src.dsp: added sdcc.ico to project files
8083         * src/avr/gen.c (genCast): fixed bug 0x%d
8084         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
8085         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
8086           relation between ptr_type and DCL_TYPE,
8087           (genCast): fixed bug 0x%d
8088         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
8089           (CODE)" for const_name
8090         * src/hc08/gen.c (genCast): fixed bug 0x%d
8091         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
8092           (hc08_port): added "CONST (CODE)" for const_name
8093         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
8094           (aopForRemat, adjustArithmeticResult): disconnected direct relation
8095           between ptr_type and DCL_TYPE,
8096           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
8097           operand* and took AOP() inside function so sfr-ness can be checked,
8098           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
8099           new prototype,
8100           (genFunction, genEndFunction): optimized stack setup,
8101           (genMinus): optimized for literals with ending zeroes (in bytes),
8102           (genCast): fixed bug 0x%d
8103         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
8104           (mcs51_port): added "CONST (CODE)" for const_name
8105         * src/mcs51/peeph.def: made rule 226 more generic
8106         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
8107         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
8108         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
8109         * src/z80/main.c (z80_port): added NULL for const_name,
8110           (gbz80_port): added NULL for const_name
8111         * support/regression/tests/bug663539.c,
8112         * support/regression/tests/sfr16.c: new tests
8113
8114 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8115
8116         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
8117
8118 2005-06-24 Raphael Neider <rneider AT web.de>
8119
8120         * device/lib/pic16/libdev/pic18f[68][567]20.c:
8121           corrected typos...
8122         * device/include/pic16/signal.h: added USBIF
8123           and SIG_USB
8124
8125 2005-06-24 Raphael Neider <rneider AT web.de>
8126
8127         * device/lib/pic16/libdev/pic18f2455.c,
8128           device/include/pic16/pic18f2455.h: NEW
8129         * device/include/pic16/pic18fregs.h,
8130           device/lib/pic16/pics.all,
8131           src/pic16/device.c: added 18f2455
8132         * device/lib/pic16/libdev/pic18f[68][567]20.c,
8133           device/include/pic16/{pic18f[68][567].h,usart.h}:
8134           replaced MULTIPLE_USARTS define with more relaible
8135           compatibility sfrs (for USART access)
8136
8137 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
8138
8139         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
8140           and the output asm file line is printed on two lines.
8141
8142 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8143
8144         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
8145           BGT, BLE, BHI, and BLS instructions
8146         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
8147           genCmpEq): removed
8148         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
8149           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
8150           fixes bug #1216342
8151         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
8152
8153 2005-06-15 Raphael Neider <rneider AT web.de>
8154
8155         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
8156         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
8157         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
8158           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
8159           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
8160
8161 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8162
8163         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
8164           Marcel Telka in bug #1215704
8165
8166 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
8167
8168         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
8169           located in shared memory bank.
8170
8171 2005-05-31 Raphael Neider <rneider AT web.de>
8172
8173         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
8174           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
8175           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
8176
8177 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
8178
8179         * device/lib/_strncpy.c: fixed the fix
8180
8181 2005-05-26 Raphael Neider <rneider AT web.de>
8182
8183         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
8184           initializers with \0, bug #1208187
8185         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
8186           intializers with \0, bug #1208187
8187
8188 2005-05-26 Raphael Neider <rneider AT web.de>
8189
8190         * src/pic16/glue.c (pic16_printIvalChar): fixed string
8191           initializers with \0, bug #1208187
8192         * src/pic16/main.c (_process_pragma): added sanity checks
8193           for stack position and size, emit warnings when appropriate
8194
8195 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
8196
8197         * device/lib/_strncpy.c: fixed not filling with \0
8198
8199 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8200
8201         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
8202           createFunction),
8203         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
8204           compound_statement),
8205         * src/SDCCsymt.h,
8206         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
8207
8208 2005-05-24 Raphael Neider <rneider AT web.de>
8209
8210         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
8211
8212 2005-05-24 Raphael Neider <rneider AT web.de>
8213
8214         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
8215           TRISE definitions, closes bug #1162453
8216
8217 2005-05-22 Raphael Neider <rneider AT web.de>
8218
8219         * src/pic16/main.c (_process_pragma): check for missing
8220           arguments to pragmas code and udata
8221         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
8222           consistency fixes to match other headers (thanks to Jim Paris)
8223         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
8224
8225 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
8226
8227         * src/SDCCicode.c (isOperandEqual): fixed missing ;
8228
8229 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
8230
8231         * support/regression/tests/bug1198642.c: new test
8232         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
8233         * src/SDCCcse.c (findPrevIc): added comment, please have a look
8234         * support/scripts/resource.h,
8235         * support/scripts/resource.rc,
8236         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
8237         * support/scripts/sdcc.ico: added 32x32 icon
8238
8239 2005-05-18 Raphael Neider <rneider AT web.de>
8240
8241         * device/lib/pic16/libdev/pic18f*.c,
8242         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
8243           keywords to "__sfr" and "__at (X)"
8244         * device/include/pic16/pic18fregs.h: added pic18f4520
8245         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
8246           #1203088 (MPLAB compatibility)
8247
8248 2005-05-17 Raphael Neider <rneider AT web.de>
8249
8250         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
8251         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
8252         * device/lib/pic16/pics.all: added new devices
8253         * src/pic16/device.c: added support for pic18f4520
8254
8255 2005-05-16 Raphael Neider <rneider AT web.de>
8256         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
8257         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
8258         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
8259           convenience function for bit access
8260
8261 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
8262
8263         * device/lib/printf_large.c: fixed bug 1193299
8264         * support/regression/tests/bug1057979.c: added test %3.3s
8265
8266 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8267
8268         * device/include/mcs51/8051.h,
8269         * device/include/mcs51/8052.h: made parseable with lint
8270         * device/include/mcs51/lint.h: added include file for (sp)lint
8271         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
8272         * doc/cdbfileformat.lyx,
8273         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
8274
8275 2005-05-14 Raphael Neider <rneider AT web.de>
8276
8277         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
8278         * device/lib/pic16/libc/stdlib/itoa.c (new)
8279         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
8280         * device/lib/pic16/libio/Makefile: exclude subdir according to
8281           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
8282         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
8283         * src/pic16/gen.c (genFunction): prevent annoying warning
8284         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
8285           nameclashes on BeOS
8286         * support/cpp2/cppmain.c (cpp_output_string): new
8287         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
8288           fixes bug 1116802
8289
8290 2005-05-13 Borut Razem <borut.razem AT siol.net>
8291
8292         * src/SDCCmain.c (linkEdit): fixed bug 1195202
8293
8294 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8295
8296         * .version: changed to version 2.5.1; back to bleeding edge development
8297
8298 2005-05-11 Borut Razem <borut.razem AT siol.net>
8299
8300         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
8301           generate PDF version 1.3 documents
8302
8303 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8304
8305         * .version: changed to version 2.5.0
8306
8307 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8308
8309         * doc/sdccman.lyx: updated weblinks, index and smaller updates
8310
8311 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8312
8313         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
8314         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
8315         well as many smaller updates.
8316         * .version: changed to version 2.5.0-pre1
8317
8318 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8319
8320         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
8321
8322 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
8323
8324         * support/regression/tests/bug1185672.c: added
8325         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
8326           bug 1185672
8327         * src/mcs51/gen.c (genCall): added comments, made it look safer
8328         * src/mcs51/gen.c (genEndFunction): simplified
8329
8330 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
8331
8332         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
8333
8334 2005-04-14 Borut Razem <borut.razem AT siol.net>
8335
8336         * fixed bug 1045046 - SIGSEGV with really simple code?:
8337           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
8338           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
8339
8340 2005-04-14 Borut Razem <borut.razem AT siol.net>
8341
8342         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
8343           src/pic16/device.h: temporarily disabled experimental #inline pragma
8344           for 2.5.0 release
8345
8346 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
8347
8348         * device/include/z80/stdio.h,
8349         * device/include/z80/string.h: removed these highly incomplete files so
8350           SDCC can use the default ones in device/include/
8351
8352 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8353
8354         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
8355         gcc warning.
8356         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
8357         fix sdcpp warnings.
8358
8359 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
8360
8361         * device/include/malloc.h: removed redundant __reentrant prototypes
8362         * device/lib/_mullong.c: added working xstack variant in asm (C version
8363           doesn't pass regression tests)
8364         * device/lib/bpx.c: used __data and made bpx char for mcs51
8365         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
8366           (createFunction): fixed bug with xstackPtr
8367         * src/SDCCcse.c: corrected comments
8368         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
8369           (killDeadCode, eBBlockFromiCode): removed unused code
8370         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
8371           corrected comments
8372         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
8373           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
8374           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
8375           (genModOneByte): fixed warning in MSVC
8376         * src/mcs51/main.c (): added comments
8377         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
8378
8379 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
8380
8381         * src/SDCCmain.c (linkEdit): oops, changed one line too many
8382
8383 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
8384
8385         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
8386
8387 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
8388
8389         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
8390         characters arrays of larger size than the declared one.
8391
8392 2005-04-10 Borut Razem <borut.razem AT siol.net>
8393
8394         * src/pic/gen.c (genInline),
8395           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
8396           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
8397           (findNextInstruction), (findPrevInstruction),
8398           (findInstructionUsingLabel),
8399           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
8400         * src/pic/pcode.c (findLabel): added missing '\n'
8401         * src/src.dsp: added SDCCdwarf2.c to the project
8402
8403 2005-04-09 Borut Razem <borut.razem AT siol.net>
8404
8405         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
8406
8407 2005-04-08 Raphael Neider <rneider AT web.de>
8408
8409         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
8410           into the chain after a given one) and mergeDefmapSymbols (combine
8411           defmap entries for each symbol per pcode)
8412         * (createDefmap): have defmap entries merged in the end
8413         * (defmapReplaceSymRef): split defmap entries covering two accesses to
8414           a symbol before replacing one access type's symbol, merge symbols in
8415           the end (replacement symbol might already have an entry)
8416         * (assignValnums): keep reference to written WREG intact
8417
8418 2005-04-08 Raphael Neider <rneider AT web.de>
8419
8420         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
8421           Alpha)
8422
8423 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
8424
8425         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
8426         bytes
8427
8428 2005-04-07 Raphael Neider <rneider AT web.de>
8429
8430         * device/include/pic16/usart.h: added compatibility defines for
8431           devices with more than one USART
8432         * device/include/pic16/pic18f[68][567]20.h: activated above defines
8433
8434 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8435
8436         * device/lib/Makefile.in: updated for port specific include
8437
8438 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8439
8440         * support/regression/ports/mcs51/spec.mk: added mcs51 include
8441
8442 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8443
8444         * device/include/8051.h,
8445         * device/include/8052.h,
8446         * device/include/at89S8252.h,
8447         * device/include/at89c55.h,
8448         * device/include/at89x051.h,
8449         * device/include/at89x51.h,
8450         * device/include/at89x52.h,
8451         * device/include/mcs51reg.h,
8452         * device/include/reg51.h,
8453         * device/include/reg764.h,
8454         * device/include/regc515c.h,
8455         * device/include/sab80515.h: (re)moved these 12 files
8456         * device/include/mcs51/8051.h,
8457         * device/include/mcs51/8052.h,
8458         * device/include/mcs51/at89S8252.h,
8459         * device/include/mcs51/at89c55.h,
8460         * device/include/mcs51/at89x051.h,
8461         * device/include/mcs51/at89x51.h,
8462         * device/include/mcs51/at89x52.h,
8463         * device/include/mcs51/mcs51reg.h,
8464         * device/include/mcs51/reg51.h,
8465         * device/include/mcs51/reg764.h,
8466         * device/include/mcs51/regc515c.h,
8467         * device/include/mcs51/sab80515.h: and added them here
8468
8469 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
8470
8471         * device/include/stdarg.h: changed SDCC specific keywords to double
8472           underlined form.
8473         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
8474           mcs51 and ds390.
8475         * device/include/hc08/mc68hc908gp32.h,
8476         * device/include/hc08/mc68hc908jb8.h,
8477         * device/include/hc08/mc68hc908jkjl.h,
8478         * device/include/hc08/mc68hc908qy.h: fixed comments
8479         * device/include/mcs51/README: updated
8480         * device/include/mcs51/c8051f120.h: added PINRSF
8481         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
8482         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
8483           amidst code. Also inline is not supported.
8484
8485 2005-04-06 Raphael Neider <rneider AT web.de>
8486
8487         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
8488         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
8489           callers stack/frame pointers
8490
8491 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
8492
8493         * device/include/pic16/usart.h: added, missing in previous commit,
8494         * device/include/pic16/adc.h: fixed typo,
8495         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
8496         commit,
8497         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
8498         <p18fxxx.inc>
8499         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
8500         uninitialized because a bug appears with gplink
8501         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
8502         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
8503         complains for unrecognised option
8504
8505 2005-04-05 Raphael Neider <rneider AT web.de>
8506
8507         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
8508           structs as well (using memcpy)
8509         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
8510           on ISRs (GOTO has no label)
8511         * src/pic16/device.h: added OF_OPTIMIZE_DF
8512         * src/pic16/main.c: added compiler switch --optimize-df to enable the
8513           new data flow analysis/optimization
8514         * src/pic16/pcode.c: added (prototypes for and implementation of)
8515           dataflow analysis functions, fixed pCodeInstructions' inCond and
8516           outCond values, made RCALL a branch instruction
8517         * (pic16_unlinkpCode): keep C line if possible
8518         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
8519           C line moved if possible
8520         * (pic16_getRegFrompCodeOp): NEW, improved version of...
8521         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
8522           to use new pic16_getRegFrompCodeOp (works for more SFRs)
8523         * (pic16_BuildFlow): fixed skip instructions with label (did not start
8524           new flow)
8525         * (pic16_getJumptabpCode): NEW, needed in...
8526         * (LinkFlow): fixed handling of jumptables, calls and conditional
8527           branches
8528         * (pic16_InsertCommentAfter): NEW
8529         * (pic16_pCodeReplace): made verbose and flow preserving
8530         * (AnalyzeFlow): added call to data flow analysis
8531         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
8532         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
8533         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
8534
8535 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8536
8537         * src/SDCCast.c (decorateType): fixed bug #1105626
8538
8539 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
8540
8541         * device/include/asm/pic16/features.h,
8542         * pic18f*.h headers,
8543         * device/include/pic16/adc.h,
8544         * device/include/pic16/delay.h,
8545         * device/include/pic16/i2c.h,
8546         * device/include/pic16/malloc.h,
8547         * device/include/pic16/stdio.h,
8548         * device/include/pic16/stdlib.h,
8549         * device/include/pic16/string.h,
8550         * device/lib/pic16/libc/stdio/printf_tiny.c,
8551         * device/lib/pic16/libc/stdio/printf_small.c,
8552         * device/lib/pic16/libc/stdio/strmgpsim.c,
8553         * device/lib/pic16/libc/stdio/strmmssp.c,
8554         * device/lib/pic16/libc/stdio/strmusart.c,
8555         * device/lib/pic16/libc/stdio/vfprintf.c,
8556         * device/lib/pic16/libc/stdlib/ltoa.c,
8557         * device/lib/pic16/libc/stdlib/putchar.c,
8558         * device/lib/pic16/libc/stdlib/x_ftoa.c,
8559         * device/lib/pic16/libc/stdlib/memchrpgm.c,
8560         * device/lib/pic16/libc/stdlib/memchrram.c,
8561         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
8562         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
8563         * device/lib/pic16/libio/adc/adcbusy.c,
8564         * device/lib/pic16/libio/adc/adcread.c,
8565         * device/lib/pic16/libio/adc/adcsetch.c,
8566         * device/lib/pic16/libio/usart/ubaud.c,
8567         * device/lib/pic16/libio/usart/ubusy.c,
8568         * device/lib/pic16/libio/usart/udrdy.c,
8569         * device/lib/pic16/libio/usart/uopen.c,
8570         * device/lib/pic16/libio/usart/uputc.c,
8571         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
8572         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
8573         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
8574         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
8575         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
8576         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
8577         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
8578         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
8579         specific keywords to double underlined form,
8580         * device/lib/pic16/libc/Makefile.rules,
8581         * device/lib/pic16/libsdcc/Makefile.rules,
8582         * device/lib/pic16/libm/Makefile,
8583         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
8584         to compile with C standard set in Makefile.common
8585         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
8586         rand.c and crc.c in compilation process,
8587         * device/lib/pic16/libsdcc/int/divuint.c,
8588         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
8589         `c' from signed to unsigned,
8590         * device/lib/pic16/startup/crt0.c,
8591         * device/lib/pic16/startup/crt0i.c,
8592         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
8593         keywords to double underlined form, bug fixes in _do_cinit function
8594         which prevented the correct initialization of the .idata segment,
8595         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
8596         core to enter a infinite loop
8597         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
8598
8599 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8600
8601         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
8602
8603 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8604
8605         * device/include/Makefile.in: add support for hc08 subdirectory
8606         * device/include/hc08/: new subdirectory
8607         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
8608         Lucas Loizaga, thanks!
8609         * device/include/hc08/mc68hc908qy.h,
8610         * device/include/hc08/mc68hc908gp32.h,
8611         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
8612         their own directory. Changed internal macro names to use the compiler
8613         reserved namespace. Changed SDCC specific keywords to double
8614         underlined form.
8615         * device/include/math.h,
8616         * device/include/malloc.h,
8617         * device/include/stdarg.h,
8618         * device/include/stdbool.h
8619         * device/include/string.h,
8620         * device/include/tinibios.h,
8621         * device/include/ds400rom.h,
8622         * device/include/8051.h,
8623         * device/include/8052.h,
8624         * device/include/80c51xa.h,
8625         * device/include/at89c55.h,
8626         * device/include/at89S8252.h,
8627         * device/include/at89x51.h,
8628         * device/include/at89x52.h,
8629         * device/include/ds80c390.h,
8630         * device/include/reg764.h,
8631         * device/include/regc515c.h,
8632         * device/include/sab80515.h,
8633         * device/include/mcs51/c8051f000.h,
8634         * device/include/mcs51/c8051f018.h,
8635         * device/include/mcs51/c8051f020.h,
8636         * device/include/mcs51/c8051f040.h,
8637         * device/include/mcs51/c8051f060.h,
8638         * device/include/mcs51/c8051f120.h,
8639         * device/include/mcs51/c8051f300.h,
8640         * device/include/mcs51/c8051f310.h,
8641         * device/include/mcs51/c8051f320.h,
8642         * device/include/mcs51/c8051f330.h,
8643         * device/include/mcs51/c8051f350.h,
8644         * device/include/z180.h: Changed SDCC specific keywords to double
8645         underlined form.
8646
8647 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
8648
8649         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
8650         18F4455,
8651         * (pic16_assignConfigWordValue): disable testing of configuration
8652         register value with config mask,
8653         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
8654         function with port->fun_prefix,
8655         * (genFunction): when generating a naked interrupt function never
8656         create an absolute segment placed in interrupt vector address, place
8657         the actual interrupt function at IVA instead, when an interrupt
8658         function is generated with unspecified interrupt then do not create
8659         the absolute section,
8660         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
8661         code for generating a call to generic pointer get/put function with
8662         a call to function pic16_callGenericPointer(),
8663         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
8664         the call to the generic pointer get/put functions with prefixing the
8665         function name with port->fun_prefix,
8666         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
8667         * src/pic16/main.c (_process_pragma): prefix function with
8668         port->fun_prefix,
8669         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
8670         calling assembler, old 18Fxxxx macro is deprecated,
8671         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
8672         PC_ASMDIR in while condition,
8673         * (findInstruction): add PC_ASMDIR in while condition,
8674         * (buildCallTree): prefix main with port->fun_prefix,
8675         * (pic16_pCode2str): fixed bug that didn't emit the memory access
8676         identifier for variable with banked access in instructions BTFSS,
8677         BTFSC, BCF, BSF, BTG
8678         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
8679         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
8680         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
8681         perform optimization when enviroment variable NO_REG_OPT is set,
8682         * (insideLRBlock): NEW, return 1 if register is inside an
8683         INF_LOCALREGS block,
8684         * (RemoveRegFromLRBlock): remove a register that is completely
8685         eliminated by register optimization, but it is still left in local
8686         register store/restore in/from stack block,
8687         * (Remove2pcodes): after removing register, check to see if it
8688         should be removed from local register store/restore in/from stack
8689         block,
8690         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
8691         DUMMY_READ_VOLATILE,
8692
8693         * device/include/pic16/adc.h: minor prototype modifications and
8694         update,
8695         * device/include/pic16/malloc.h: added GPL notice various
8696         modifications,
8697         * device/include/pic16/stdint.h: NEW, standard header for ints
8698         * device/include/pic16/delay.h: NEW, header for delay functions,
8699         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
8700         delay1mtcy,
8701         * device/include/pic16/signal.h: NEW, header providing helper macros
8702         for implementing signal handlers,
8703         * device/include/pic16/stdio.h: added prototypes for functions,
8704         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
8705         prototypes for stdin and stdout, added macro PUTCHAR to
8706         automatically implement putchar function prototype,
8707         * device/include/pic16/usart.h: modified and updated USART library,
8708         * device/lib/pic16/libio/adc/,
8709         * device/lib/pic16/libio/i2c: some modifications to improve library
8710         performance,
8711         * device/lib/pic16/libc/stdio/: modifications for the new printf*
8712         family of functions,
8713         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
8714         family of functions and other sources,
8715         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
8716         of the PIC18Fxx[28] devices,
8717         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
8718         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
8719         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
8720         _do_cinit function, because the previous failed when local variables
8721         where not placed in the same memory bank,
8722         * device/lib/pic16/libsdcc/char/: various modifications to improve
8723         library performance,
8724         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
8725         information on the new functions of the c library and more...
8726
8727 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8728
8729         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
8730
8731 2005-03-26 Raphael Neider <rneider AT web.de>
8732
8733         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
8734           if condition == CARRY)
8735         * (genCmp): adapted to new genSkipc semantics
8736         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
8737           on rIfx (genCmp was broken)
8738
8739 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8740
8741         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
8742         * src/z80/main.c (_keywords[]),
8743         * src/SDCCglobal.h (struct options),
8744         * src/SDCC.y,
8745         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
8746         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
8747         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
8748         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
8749         always available in leading double underscore form. The C99 support is
8750         mostly missing, but it's a start.
8751         * support/regression/tests/bug-227710.c: fixed nonconforming use of
8752         reserved identifier "__data".
8753
8754 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
8755
8756         * src/mcs51/peeph.def: fixed bug 1170013
8757
8758 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
8759
8760         * device/include/mcs51reg.h: fixed bug 842007
8761
8762 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8763
8764         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
8765         last time.
8766
8767 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8768
8769         * src/port.h (struct PORT),
8770         * src/avr/ralloc.c (avr_assignRegisters),
8771         * src/avr/main.c,
8772         * src/ds390/ralloc.c (ds390_assignRegisters),
8773         * src/ds390/main.c,
8774         * src/hc08/ralloc.c (hc08_assignRegisters),
8775         * src/hc08/main.c,
8776         * src/mcs51/ralloc.c (mcs51_assignRegisters),
8777         * src/mcs51/main.c,
8778         * src/pic/ralloc.c (pic14_assignRegisters),
8779         * src/pic/main.c,
8780         * src/pic16/ralloc.c (pic16_assignRegisters),
8781         * src/pic16/main.c,
8782         * src/xa51/ralloc.c (xa51_assignRegisters),
8783         * src/xa51/main.c,
8784         * src/z80/ralloc.c (z80_assignRegisters),
8785         * src/z80/ralloc.h,
8786         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
8787         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
8788         * src/SDCCcse.h,
8789         * src/SDCCdflow.c (computeDataFlow),
8790         * src/SDCCdflow.h,
8791         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
8792         * src/SDCCloop.h,
8793         * src/SDCCcflow.c (*),
8794         * src/SDCCcflow.h,
8795         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
8796         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
8797         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
8798         immedDom() returning wrong block; probably fixes bug #1160833)
8799
8800 2005-03-20 Borut Razem <borut.razem AT siol.net>
8801
8802         * support/scripts/inc2h.pl: WIN32 port
8803
8804 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
8805
8806         * device/lib/makefile.in: added abs.c and labs.c
8807
8808 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
8809
8810         * device/include/stdint.h: added
8811         * device/lib/abs.c: added
8812         * device/lib/labs.c: added
8813         * device/include/stdlib.h: added abs() and labs() prototypes
8814         * device/lib/libsdcc.lib: added abs and labs
8815         * device/include/float.h,
8816         * device/lib/_fsmul.c,
8817         * device/lib/printf_fast.c,
8818         * device/lib/printf_tiny.c: updated comments
8819
8820 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8821
8822         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
8823         bug #1164313
8824
8825 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8826
8827         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
8828         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
8829
8830 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
8831
8832         * device/lib/printf_large.c: removed inline assembly for portability and
8833           readability. Use printf_fast if speed or size are more important.
8834         * src/pic16/gen.c: removed conditions around use of DEBUGpc
8835         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
8836
8837 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
8838
8839         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
8840         prevent compiler warning
8841
8842 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
8843
8844         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
8845         moved to level 0 and declared as static. Also they are explicit
8846         placed in access bank. This was necessery because some times they
8847         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
8848         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
8849         optimizations. Currently only compare to unsigned char is implemented,
8850         * src/pic16/gen.c: added fReturnIdx array,
8851         * (struct resolvedIfx) is moved to gen.h and made public,
8852         * (struct _G): added sregsAlloc and sregsAllocSet fields,
8853         * (aopForSym): added an optimization to directly store in stack of
8854         the operand of a SEND iCode,
8855         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
8856         but as registers instead (AOP_REG) using the fReturnIdx array,
8857         * (pic16_freeAsmop): remove the freed register from the
8858         _G.sregsAlloc field,
8859         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
8860         a compare of 'WREG',
8861         * (pic16_popGetTempRegCond): changed function prototype, now
8862         function takes also a bitVector argument v which holds the current
8863         set of registers that are allocated for stack access by aopForSym,
8864         registers allocated in aopForSym for accessing stack symbols are not
8865         any more part of the functions usedRegs field,
8866         * (genCall): some times aopOp is called for a stack variable to be
8867         send, aopForSym might perform the push, if this is true make sure
8868         that genCall doesn't push the variable twice by testing _G.resDirect,
8869         * (genFunction): changed testing for unspecified interrupt number
8870         from 256 to INTNO_UNSPEC,
8871         * modified selection scheme of frame pointer generation. Previously
8872         if function did use local registers a frame pointer was generated,
8873         now a frame pointer is generated only if function has arguments
8874         (that need PLUSW2 register access), or has stack arguments, or the
8875         compiler is not instructed to omit the frame pointer,
8876         * (genEndFunction): before restoring local registers that were saved
8877         in the function preamble, also restore the registers that *might*
8878         have been allocated for stack access,
8879         * (genRet): removed some old comments,
8880         * (genCmp, the active (RN's) version): added a call to the
8881         pic16_genCmp_special function to perform the compare with a more
8882         robust and optimized way,
8883         * (genInline): a feature has been added in inline code generation,
8884         which allows a wildcard variable substitution when writing inline
8885         assembly. Code is incomplete and experimental therefore undocumented,
8886         * (genCast): changed order of aopOp for result and right to allow
8887         aopForSym to directly load the result if possible,
8888         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
8889         perform an optimized compare on some selected special occasions,
8890         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
8891         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
8892         generate an IVT any more,
8893         * src/pic16/main.c (pic16_optionsTable): added command line option
8894         --optimize-cmp,
8895         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
8896         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
8897         macros,
8898         * src/pic16/NOTES: Raphael Neider added in list of active developers
8899         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
8900         jumptable_end to prevent bug #,
8901         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
8902         inCond and outCond fields,
8903         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
8904         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
8905         turn off register spilling,
8906         * (packRegsForOneUse): synced with other ports' versions although it
8907         is not used currently,
8908         * (pic16_packRegisters): added an optimization while reading
8909         structure bitfields, some registers may be saved (malloc code is
8910         decreased by 80 bytes)
8911
8912 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
8913
8914         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
8915         left is a bitfield, if yes, then don't optimize assignment. Perhaps
8916         this can be optimized more?
8917
8918 2005-03-10 Raphael Neider <rneider AT web.de>
8919
8920         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
8921           genNearPointerGet): (hopefully) fixed access to bitfields via
8922           pointers (p->bitN = x; and x = p->bitN; failed)
8923
8924 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
8925
8926         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
8927
8928 2005-03-09 Raphael Neider <rneider AT web.de>
8929
8930         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
8931
8932 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
8933
8934         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
8935         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
8936           (regTypeNum): set REG_BIT type if necessary
8937         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
8938         * support/regression/tests/critical.c: check bug 1144613
8939
8940 2005-03-02 Raphael Neider <rneider AT web.de>
8941
8942         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
8943
8944 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8945
8946         * src/avr/ralloc.c (serialRegAssign),
8947         * src/ds390/ralloc.c (serialRegAssign),
8948         * src/hc08/ralloc.c (serialRegAssign),
8949         * src/mcs51/ralloc.c (serialRegAssign),
8950         * src/pic/ralloc.c (serialRegAssign),
8951         * src/pic16/ralloc.c (serialRegAssign),
8952         * src/xa51/ralloc.c (serialRegAssign),
8953         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
8954
8955 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
8956
8957         * src/SDCCast.c (decorateType): fixed bug 1124787
8958
8959 2005-02-20 Hubert Sack <sack AT digiplan.de>
8960         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8961
8962         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
8963         patch #1121755
8964
8965 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8966
8967         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
8968         to keep the correct label reference count when adding/removing references
8969         to labels. A peephole file using this is appended to patch #1144962.
8970
8971 2005-02-14 Raphael Neider <rneider AT web.de>
8972
8973         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
8974         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
8975         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
8976           retrievals of result operand's value on assignment
8977
8978 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
8979
8980         * device/include/pic16/string.h: modified prototype for memccpy()
8981         to memccpy(void *, void *, char, size_t)
8982         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
8983         check whether to omit frame pointer or not,
8984         * (genInline): convert all occurences of "\n" to LF in inline
8985         assembler blocks, this helps formatting the inline text,
8986         * (pic16_loadFSR0): modified prototype,
8987         * (genNearPointerGet, genNearPointerSet): reorganization of code,
8988         removed some 8051 legacy code,
8989         * (genPackBits): enabled handling bitfields exceeding one byte in size,
8990         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
8991         before allocating temporary registers in functions,
8992
8993 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
8994
8995         * support/regression/tests/bitvars.c: corrected the "fix"
8996
8997 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
8998
8999         * support/regression/tests/bitvars.c,
9000         * support/regression/tests/bitwise.c,
9001         * support/regression/tests/rotate.c: "fixed" problems on Alpha
9002
9003 2005-02-10 Raphael Neider <rneider AT web.de>
9004
9005         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
9006           different size for Alpha
9007         * src/pic16/gen.c (genCmpEq) : improved compare with 0
9008
9009 2005-02-09 Raphael Neider <rneider AT web.de>
9010
9011         * src/SDCC.lex(doPragma) : save and restore warning options as well
9012           (also added new stack plus clone- and copyAndFreeSDCCERRG())
9013         * have #pragma less_pedantic set the errorlevel to WARNING
9014           (fixes #1117001)
9015         * (cloneOptimize) : fixed wrong malloc's size
9016         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
9017           facilitate correct handling of #pragma (save|restore)
9018
9019 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
9020
9021         * src/mcs51/gen.c: removed non-standard C nameless struct/union
9022
9023 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
9024
9025         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
9026
9027 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
9028
9029         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
9030
9031 2005-02-02 Raphael Neider <rneider AT web.de>
9032
9033         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
9034         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
9035         * (pic16_storeForReturn): fixed to allow returning function pointers
9036         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
9037         * device/include/pic16/{stddef.h,stdbool.h}: added
9038
9039 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
9040
9041         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
9042
9043 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
9044
9045         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
9046         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
9047          appeared to be required
9048
9049 2005-01-31 Borut Razem <borut.razem AT siol.net>
9050
9051         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
9052           include/mcs51 and include/z80 directories to the package
9053
9054 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9055
9056         * src/hc08/gen.c (genFunction): fixed bug #1112752
9057
9058 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9059
9060         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
9061
9062 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9063
9064         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
9065
9066 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
9067
9068         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
9069
9070 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
9071
9072         * device/include/c8051fxxx.h: removed these 6 files
9073         * device/include/mcs51/c8051fxxx.h: added these 11 new files
9074
9075 2005-01-26 Raphael Neider <rneider AT web.de>
9076
9077         * src/pic16/gen.c (genAssign): fixed assignment from longs
9078           in codespace (were cut to three bytes)
9079         * (genDummyRead): implemented (except for CODESPACE...),
9080           fixed bug #1108575
9081         * src/pic16/glue.c (emitStatistics): beautified
9082         * device/lib/pic16/libm/Makefile: added include path
9083
9084 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9085
9086         * src/z80/gen.c (aopPut): fixed bug #1103902
9087
9088 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9089
9090         * device/lib/expf.c: fixed bug #1095792
9091
9092 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
9093
9094         * device/lib/pic16/libm: added Math library sources
9095
9096 2005-01-24 Raphael Neider <rneider AT web.de>
9097
9098         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
9099           to enable upcast to pCodeOpReg2 (there is no type tag to
9100           differenciate the two and pic16_popGet2p cast into PCOR2)
9101         * src/pic16/main.c (_process_pragma): fixed another malloc bug
9102           (sizeof(sectNames) changed to sizeof(sectName))
9103           Both patches fix segfaults under MinGW.
9104
9105 2005-01-23 Raphael Neider <rneider AT web.de>
9106
9107         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
9108           Safe_[mc]?alloc()'ed variables
9109         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
9110           of (byte sized) temporaries (assign them to WREG for now)
9111         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
9112           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
9113           this might fix SIGSEGVs on MinGW...
9114         * src/SDCCopt.c (killDeadCode): restored original behaviour
9115           (volatile operands might get thrown away though)
9116
9117 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
9118
9119         * src/pic16/gen.c: fixed bug #1106975,
9120         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
9121         pointer update, INTCON is saved, global interrupts are disabled and
9122         restored after updateing TOS.
9123         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
9124         * added function attribute 'shadowregs' to take advantage of shadow
9125         registers,
9126         * added function attribute 'wparam' as an alternative to the wparam
9127         pragma,
9128         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
9129         user declares a non-ISR function as 'shadowregs',
9130         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
9131
9132 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
9133
9134         * .version: bumped version number to 2.4.8
9135         * device/lib/pic16/pics.all: list of PIC18F devices supported by
9136         pic16 port,
9137         * device/lib/pic16/libio/i2c/: I2C module support library,
9138         * device/include/pic16/i2c.h: I2C support library header,
9139         * device/lib/pic16/libc/stdio/: standard IO support sources,
9140         * (printf_small.c): printf_small() source, supports float print,
9141         * (printf_tiny.c): printf_tiny() source, does not support floats,
9142         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
9143         enable global optimizations for entire library source, other
9144         Makefiles in the source tree are also modified to reflect this,
9145         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
9146         function,
9147         * doc/sdccman.lyx: updated to reflect new changes,
9148         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
9149         sym->onStack if-case,
9150         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
9151         sbit, idata, _idata, xdata, _xdata,
9152         * added pragma library, to link an external library, (see doc),
9153         * removed command line options, --pomit-config-words, --pomit-ivt,
9154         --pleave-reset-vector,
9155         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
9156         when calling assembler to reflect memory model used, also define
9157         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
9158         reflect stack model used,
9159         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
9160         on stack return NULL,
9161
9162 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
9163
9164         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
9165           of the operands is volatile. Fixes #1020220
9166
9167 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
9168
9169         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
9170         * (OptimizeRegUsage): make sure that there is really no other flow where
9171           the first pCode is used
9172
9173 2005-01-22 Raphael Neider <rneider AT web.de>
9174
9175         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
9176           to fix #1106967 (pCode->seq are not set up correctly)
9177
9178 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9179
9180         * src/SDCCglue.c (glue): make sure code area is declared before the
9181         static initialization area.
9182
9183 2005-01-21 Raphael Neider <rneider AT web.de>
9184
9185         * device/lib/Makefile.in: fixed test for pic16 install dir
9186         * device/lib/pic16/*/Makefile*: modified compile flags to enable
9187           optimizations
9188         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
9189           added --optimize-goto compiler switch and pragma wparam documentation
9190         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
9191         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
9192           and PRODH closing bug #1071770 (peephole optimizer)
9193
9194 2005-01-19 Raphael Neider <rneider AT web.de>
9195
9196         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
9197           cmdLine buffers (used when calling sdcpp...) are large enough
9198           (MAX_PATH=256 truncates arguments leading to system halts when
9199           used in MinGW...)
9200         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
9201         * (genUminus): rewritten to for efficiency
9202         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
9203           used uninitialized in some cases)
9204         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
9205           copy the third byte from the int -- now assumes 0x80 (data memory)
9206         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
9207           operands (genAddLit expects the iCode's operands to swapped as
9208           well), fixed leftover bytes (crashed for short left operands)
9209         * (pic16_genMinusDec): performance improvements, removed false
9210           PIC14 emitSKPNCs
9211         * (pic16_genMinus): fixed to cope with differently sized operands
9212         * src/pic16/glue.c (pic16_glue): added new banksel optimization
9213           for --obanksel > 1
9214         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
9215         * src/pic16/graph.[ch]: implementation of directed graphs, used by
9216           new banksel optimization
9217         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
9218           analysis for temporary registers (segfaults...)
9219         * src/pic16/peeph.def: added rule
9220
9221 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
9222
9223         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
9224         which converts a float number to its ASCII representation
9225         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
9226         functions to convert the fractional and integer part of a float to ASCII,
9227         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
9228         realloc.c): added _MALLOC_SPEC to explicit place variables in data
9229         ram
9230         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
9231         _STATMEM macros,
9232         * device/include/pic16/adc.h: added GPL info,
9233         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
9234         a pCodeOp as tested operand,
9235         * (genNearPointerGet): optimized bit testing, does not use
9236         intermediate register for bit value, test directly instead with
9237         BTFSS, BTFSC, works only for single bits,
9238         * (genpic16Code): dump the name of the iCode in the asm,
9239         * src/pic16/ralloc.c (decodeOp): removed static declaration and
9240         renamed to pic16_decodeOp,
9241         * (serialRegAssign): do not allocate a temporary register for iCode
9242         sequences that test a single bit for 1/0
9243
9244 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
9245
9246         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
9247         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
9248         access stack and frame pointers. They are initially assigned to
9249         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
9250         accessing SFRs. Updated all occurences of modification of stack or
9251         frame pointer in gen.c and pcode.c,
9252         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
9253         assigning of a literal value to pointers,
9254         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
9255         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
9256         selected
9257
9258 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
9259
9260         * doc/sdccman.lyx: update documentation about stack pragma, added
9261         some info for stack memory models
9262
9263 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9264
9265         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
9266
9267 2005-01-08 Raphael Neider <rneider AT web.de>
9268
9269         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
9270           udata sections to fix bug #1097823
9271
9272 2005-01-05 Raphael Neider <rneider AT web.de>
9273
9274         * src/pic16/gen.c (genGenericShift): added handling of differently
9275           sized left operand and result
9276
9277 2005-01-04 Raphael Neider <rneider AT web.de>
9278
9279         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
9280         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
9281           to hold the condition bit)
9282         * added new version of genCmp (old code available via #define)
9283         * added new version of genShiftLeft/genShiftRight in a generic
9284           way, now supports shifting by negative values
9285         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
9286           shiftCount (expected by genGenericShift)
9287         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
9288         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
9289           dump
9290         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
9291           is an invalid literal too...)
9292
9293 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
9294
9295         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
9296         from Raphael Neider,
9297         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
9298         for 8-bit literals. This fixes some literal operands which are sign
9299         extended to 16-bits ints when instruction needs only 8-bits.
9300
9301 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
9302
9303         * device/lib/logf.c: added mcs51 assembly version
9304         * device/lib/expf.c: added mcs51 assembly version
9305         * device/lib/_logexpf.c: new shared asm code for expf and logf
9306         * device/include/math.h: add defines for assembly math library
9307         * device/lib/Makefile.in: build new _logexpf.c
9308         * device/lib/libfloat.lib: use new _logexpf.c
9309
9310 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
9311
9312         * src/pic/device.c
9313         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
9314           device types which have less than 0x7f registers.
9315
9316 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
9317
9318         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
9319
9320 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
9321
9322         * device/lib/printf_fast.c: only build on supported arch.
9323         * device/lib/printf_tiny.c: only build on supported arch.
9324         * device/lib/printf_fast_f.c: only build if asm float lib
9325         * device/lib/_fsget1arg.c: only build if asm float lib
9326         * device/lib/_fsget2args.c: only build if asm float lib
9327         * device/lib/_fsnormalize.c: only build if asm float lib
9328         * device/lib/_fsreturnval.c: only build if asm float lib
9329         * device/lib/_fsrshift.c: only build if asm float lib
9330         * device/lib/_fsswapargs.c: only build if asm float lib
9331         * device/include/stdio.h: don't provide print_fast,
9332           print_fast_f, print_tiny prototypes if --xstack used
9333
9334 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
9335
9336         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
9337         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
9338           to the SOURCES
9339
9340 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
9341
9342         * device/lib/printf_fast_f.c: same as printf_fast, but
9343           with floating point enabled
9344         * device/lib/printf_fast.c: minor tweaks
9345         * device/include/stdio.h: add printf_fast_f
9346
9347 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
9348
9349         * src/SDCCmain.c: make --float-reent default for mcs51
9350         * device/lib/_fsadd.c: added mcs51 assembly version
9351         * device/lib/_fssub.c: added mcs51 assembly version
9352         * device/lib/_fsmul.c: added mcs51 assembly version
9353         * device/lib/_fsdiv.c: added mcs51 assembly version
9354         * device/lib/_fseq.c: added mcs51 assembly version
9355         * device/lib/_fsneq.c: added mcs51 assembly version
9356         * device/lib/_fsgt.c: added mcs51 assembly version
9357         * device/lib/_fslt.c: added mcs51 assembly version
9358         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
9359         * device/lib/Makefile.in: add _fscmp to build
9360         * device/lib/libfloat.lib: add _fscmp to build
9361
9362 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
9363
9364         * device/lib/_fs2slong.c: added mcs51 assembly version
9365         * device/lib/_fs2sint.c: added mcs51 assembly version
9366         * device/lib/_fs2schar.c: added mcs51 assembly version
9367         * device/lib/_fs2ulong.c: added mcs51 assembly version
9368         * device/lib/_fs2uint.c: added mcs51 assembly version
9369         * device/lib/_fs2uchar.c: added mcs51 assembly version
9370         * device/lib/_slong2fs.c: added mcs51 assembly version
9371         * device/lib/_sint2fs.c: added mcs51 assembly version
9372         * device/lib/_schar2fs.c: added mcs51 assembly version
9373         * device/lib/_ulong2fs.c: added mcs51 assembly version
9374         * device/lib/_uint2fs.c: added mcs51 assembly version
9375         * device/lib/_uchar2fs.c: added mcs51 assembly version
9376         * device/include/float.h: added #define to select asm vs c
9377
9378 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
9379
9380         * device/lib/printf_fast.c: improvements to float output
9381         * device/include/float.h: add defines for assembly float library
9382         * device/lib/_fsget1arg.c: receive 1 float arg
9383         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
9384         * device/lib/_fsnormalize.c: normalize a float
9385         * device/lib/_fsreturnval.c: return float, various helper routines
9386         * device/lib/_fsrshift.c: right shift a float's mantissa
9387         * device/lib/_fsswapargs.c: swap 2 floats
9388         * device/lib/Makefile.in: build these 6 new files for mcs51
9389         * device/lib/libfloat.lib: add these 6 files to the library
9390
9391 2004-12-26 Borut Razem <borut.razem AT siol.net>
9392
9393         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
9394           built by gcc 3.4.2
9395
9396 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
9397
9398         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
9399           and fully reentrant and register bank neutral.
9400         * device/lib/printf_fast.c: added float (not enabled by default),
9401           added compact/slower integer (also not enabled by default),
9402           improved size/speed of fast integer code, other minor changes
9403         * device/include/stdio.h, device/lib/Makefile.in,
9404           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
9405
9406 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
9407
9408         * src/pic16/pcode.c: declaring variables other than at the start of a
9409           block is not supported in C by VC6.
9410
9411 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
9412
9413         * applied a previous patch from Raphael Neider that wasn't included
9414         in the previous commits, which fixes infinite loops within jumptable
9415         improvements,
9416         * made some fixes that previous patches introduced
9417
9418 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
9419
9420         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
9421         that fixes an issue with AOP_PCODE asmop's offset,
9422         * (pic16_popCopyReg): update instance field too,
9423         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
9424         function of pic port,
9425         * (genCmp, genAnd, genAssign),
9426         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
9427
9428 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
9429
9430         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
9431         variables initial values to idata section,
9432         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
9433         variables in some functions. This utilizes parmBytes field of iCode
9434         structure to hold the offset of the variable in stack. (might be
9435         able to use the stack field too?)
9436         * applied patch from Raphael Neider # ### , # ###
9437         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
9438         variable initial values in idata section,
9439         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
9440         for static variables with initial value
9441         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
9442         applied fix in while loop from Raphael Neider.
9443
9444 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
9445
9446         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
9447         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
9448         * src/ds390/ralloc.c (serialRegAssign): spill bits
9449         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
9450         * support/Util/SDCCerr.c,
9451         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
9452         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
9453         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
9454
9455 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
9456
9457         * device/include/sdcc-lib.h: inserted LGPL, added includes
9458           asm/ds390/features.h and asm/mcs51/features.h
9459         * device/include/asm/default/features.h,
9460         * device/include/asm/gbz80/features.h,
9461         * device/include/asm/z80/features.h: added empty _AUTOMEM
9462           and _STATMEM
9463         * device/include/asm/ds390/features.h,
9464         * device/include/asm/mcs51/features.h: added files with defines for
9465           _AUTOMEM and _STATMEM indicating automatic and static storage class
9466         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
9467         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
9468         * src/SDCCicode.c (geniCodeCast),
9469         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
9470         * src/SDCCloop.c (loopInduction): removed unused variable lr
9471         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
9472           to convertToFcall to include char modulo (RFE 1065037), added check
9473           if left operand is unsigned and use abs of literal value
9474         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
9475           as it doesn't work after conversion from peephole.def to peephole.rul
9476         * src/mcs51/gen.c (toBoolean): added check for size,
9477           (genModOneByte): optimized code for signed char modulo a literal
9478           power of 2 (thanks to Hubert Sack),
9479           (genRRC): removed unnecessary "clr c",
9480           (genRLC): replaced "add a,acc" with cheaper "rlc a"
9481         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
9482           jump optimization,
9483           swapped rules 256.c and 256.d,
9484           extended 256.d by using new multiple checks (thanks Erik),
9485           added rules 256.e and 256.f,
9486           updated rule 261.a and 261.b to new generated code
9487         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
9488
9489 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9490
9491         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
9492           induction related bugs, including first part of bug #1074377
9493
9494 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
9495
9496         * applied patch from bug-report #1076292,
9497         * applied patches for genAnd and Goto-optimizations for Raphael
9498         Neider,
9499         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
9500         dump a less iCode information,
9501         * src/pic16/device.h (pic16_options_t): added field debgen,
9502         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
9503         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
9504         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
9505         puclic,
9506         * (various functions): added macros FENTRY and FENTRY2 to functions,
9507         to emit function prologue,
9508         * (various functions): fixed indentation,
9509         * (genNearPointerGet): fixed loading of FSR0,
9510         * (genPackBits): applied patch from Raphael Neider to fix updating
9511         of FSR0 and touching only the modified bits,
9512         * src/pic16/genarith.c (various functions): added macros FENTRY to
9513         emit function prologue in comments,
9514         * src/pic16/pcode.h: added functions debugf2, debugf3,
9515         * src/pic16/ralloc.c: partial fix for packForPush caused
9516         segmentation fault,
9517
9518 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9519
9520         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
9521           <stsp AT users.sourceforge.net> with reversed byte order
9522         * support/regression/tests/rotate.c: added (ds390 skips some tests)
9523
9524 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9525
9526         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
9527           bug #1074377
9528         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
9529         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
9530
9531 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
9532
9533         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
9534
9535 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9536
9537         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
9538           conditions,
9539           (setFromConditionArgs): friendly operand parser for peephole rules,
9540           (operandBaseName, operandsNotRelated): new peephole condition
9541           "operandsNotRelated" -- similar to "operandsNotSame", but takes
9542           architecture specific register naming into account, handles n-way
9543           comparisons, and supports quoted literals
9544         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
9545
9546 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9547
9548         * src/mcs51/peeph.def: fixed bug #1076940
9549
9550 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
9551
9552         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
9553
9554 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9555
9556         Adding support for replacing ljmps with sjmps in jumptables
9557         generated for switch statements. For now you need to set the
9558         environment variable SDCC_SJMP_JUMPTABLE to enable this.
9559         Now 4 algorithms for mcs51 jumptable generation are used:
9560         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
9561         addresses loaded pc-relative for up to 112 cases and stack-pushing
9562         target addresses loaded with offset from dptr for up to 256 cases.
9563
9564         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
9565         * src/mcs51/main.c: adapted constants for switch table generation
9566         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
9567
9568 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
9569
9570         * device/lib/printf_large.c (_print_format): fixed bug 1073386
9571         * support/regression/tests/bug1057979.c: added test for bug 1073386
9572
9573 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
9574
9575         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
9576         compilers
9577
9578 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
9579
9580         * src/pic16/device.h,
9581         * src/pic16/genarith.c,
9582         * src/pic16/glue.c,
9583         * src/pic16/main.c,
9584         * src/pic16/pcode.c: applied patches #1068154 and #1070213
9585
9586 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
9587
9588         Large cummulative patch for pic16 port.
9589         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
9590         to call when a stack overflow occurs,
9591         * (malloc.h): added CVS Id tag,
9592         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
9593         variable,
9594         * added libc directory. The current version of LibC contains string
9595         functions, ctype functions and macros and some functions of the
9596         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
9597         be extensively tested in the future. Standard disclaimer here.
9598         Library is not automatically build yet. But one can build it by
9599         invoking 'make' inside the libc directory.
9600         * added ADC library under libio. Preliminary version yet.
9601
9602         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
9603         * src/pic16/gen.c (aopForRemat): asmop size is filled by
9604         aopForRemat() now and not by pic16_aopOp(),
9605         * (pic16_popGetTempReg): removed warning messgae when allocating
9606         temporary registers, its a buggy feature and will be removed,
9607         * (pic16_popGet): set register instance field in AOP_CRY,
9608         * (pic16_outBitC): fixed for results in size greater than 1,
9609         * (genUminusFloat): fixed for pic16, ported code from mcs51,
9610         * (pic16_storeForReturn): optimized return of 0,
9611         * (genCmp): experimental code for new genCmp which uses PIC18's
9612         special compare&skip instructions. Initial tests fail some times
9613         with variables grater than 1 byte in size, so new code is disabled,
9614         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
9615         a single bit,
9616         * (genCast): began a fix to optimize the casting of a bit to another
9617         bit, now assigning a bitfield to another bitfield will fail, sorry,
9618         * src/pic16/main.c: disabled the use of lr-support feature,
9619         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
9620         * added some function prototypes, added function _debugf prototype,
9621         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
9622         bits with offset (case PO_GPR_BIT),
9623         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
9624         command line,
9625         * (isBankInstruction): modified to return 0 for no banking instruction,
9626         and 1 for banking instruction,
9627         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
9628         caused stop processing pCodes after a inline assembly block,
9629         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
9630         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
9631         registers when it shouldn't,
9632         * src/pic16/ralloc.c (allocReg): add preliminary support for
9633         supporting a limited set of temporary registers,
9634
9635 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9636
9637         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
9638           genDataPointerSet): ensure assignments always copy in MSB to LSB
9639           order,
9640           (loadRegFromAop): recognize CLRH optimization,
9641           (genFunction): optimize RECEIVE iCodes in reentrant functions
9642
9643 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9644
9645         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
9646           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
9647           selected.
9648         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
9649         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
9650           contiguous with data
9651
9652 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9653
9654         * device/lib/_gptrget.c (_gptrget),
9655         * device/lib/_gptrgetc.c (_gptrgetc),
9656         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
9657           instead of sjmp to ret
9658         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
9659           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
9660
9661 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
9662
9663         * .version: bumped version to 2.4.7
9664         * device/lib/_gptrget.c (_gptrget): is now _naked
9665         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
9666         * device/lib/_gptrput.c (_gptrput): is now _naked
9667         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
9668           (createFunction): fixed xstack
9669         * src/SDCCglue.c (emitMaps): set allocation required for bit area
9670         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
9671           or bit either,
9672           (geniCodeCritical): store original interrupt state in an iTemp bit
9673           var unless stack-auto
9674         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
9675         * src/SDCCmain.c (setIncludePath): added include/target to search path
9676         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
9677         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
9678           prototype,
9679           (processFuncArgs): put bit vars in bit area
9680         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
9681           unsaveRBank): fixed xstack,
9682           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
9683           (genFunction, genEndFunction): fixed xstack,
9684           (genAssign): optimization don't walk backwards through mem
9685         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
9686         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
9687         * support/regression/Makefile: also make library (for stack-auto) when
9688           making "all" and added "test-mcs51-xstack-auto"
9689         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
9690         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
9691         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
9692         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
9693         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
9694           make-library by MAKE_LIBRARY
9695         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
9696           regression tests for xstack
9697         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
9698         * support/regression/tests/critical.c: test for critical on mcs51
9699
9700 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9701
9702         * support/regression/ports/ucz80/spec.mk: use include and lib files from
9703           built version of sdcc instead of installed version
9704
9705 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
9706
9707         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
9708         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
9709           vprintf.c now
9710         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
9711         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
9712           WARNING: remove device/lib/build/z80/printf.o by hand when
9713           updating from previous build!
9714         * device/lib/z80/printf.c: updated comment
9715         * support/regression/tests/bug1057979.c: test all ports now
9716         * support/regression/tests/bug1065458.c: file added
9717
9718 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9719
9720         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
9721           *_start and *_end symbols for static functions
9722
9723 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
9724
9725         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
9726           and search crt0.o in all library paths,
9727           (setIncludePath): proper handling of --nostdinc,
9728           (setLibPath): proper handling of --nostdlib
9729         * support/regression/Makefile,
9730         * support/regression/ports/ds390/spec.mk,
9731         * support/regression/ports/gbz80/spec.mk,
9732         * support/regression/ports/hc08/spec.mk,
9733         * support/regression/ports/mcs51/spec.mk,
9734         * support/regression/ports/mcs51-large/spec.mk,
9735         * support/regression/ports/mcs51-stack-auto/spec.mk,
9736         * support/regression/ports/z80/spec.mk: use include and lib files from
9737           built version of sdcc instead of installed version
9738         * doc/sdccman.lyx: fixed typo in --nostdinc
9739
9740 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
9741
9742         * src/pic/pcode.c,
9743         * src/pic/device.c,
9744         * src/pic/ralloc.c,
9745         * src/pic/gen.c : added support to generate code for struct bit fields.
9746
9747 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
9748
9749         * as/xa51/xa_version.h,
9750         * device/include/errno.h,
9751         * device/include/regc515c.h,
9752         * device/lib/_itoa.c,
9753         * device/lib/_ltoa.c,
9754         * device/lib/ser_ir_cts_rts.c,
9755         * sim/ucsim/xa.src/glob.cc,
9756         * sim/ucsim/xa.src/inst_gen.cc,
9757         * sim/ucsim/xa.src/xa_bit.cc,
9758         * sim/ucsim/xa.src/xa_sfr.cc,
9759         * sim/ucsim/z80.src/inst_dd.cc,
9760         * sim/ucsim/z80.src/inst_fdcb.cc,
9761         * support/scripts/keil2sdcc.pl,
9762         * src/pic16/pic16.dsp,
9763         * src/pic16/pic16a.dsp: corrected cvs line endings
9764         * device/lib/printf_large.c: fixed bug 1057979
9765         * src/pic16/gen.c: fixed non-C standard code
9766         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
9767         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
9768         * support/regression/ports/mcs51/support.c: reload T1 asap
9769         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
9770           pdata use and clear idata startup behaviour
9771         * support/regression/tests/bug1057979.c: added
9772
9773 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
9774
9775         * device/examples/ds390/ow390/ad26.h,
9776         * device/examples/ds390/ow390/cnt1d.h,
9777         * device/examples/ds390/ow390/crcutil.c,
9778         * device/examples/ds390/ow390/ownet.h,
9779         * device/examples/ds390/ow390/owsesu.c,
9780         * device/examples/ds390/ow390/swt12.h,
9781         * device/examples/ds390/ow390/swtoper.c,
9782         * device/examples/ds390/ow390/temp10.h,
9783         * device/examples/ds390/ow390/thermodl.c,
9784         * device/examples/ds390/tinitalk/tinitalk.dsp,
9785         * device/examples/ds390/tinitalk/tinitalk.dsw,
9786         * device/examples/mcs51/clock/hw.h,
9787         * device/examples/mcs51/simple2/go.bat,
9788         * device/examples/serialcomm/windows/serial.h,
9789         * device/examples/xa51/dummy.c,
9790         * device/examples/xa51/hello.c,
9791         * device/include/80c51xa.h,
9792         * device/include/at89x051.h: corrected cvs line endings
9793
9794 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
9795
9796         * src/pic16/main.c (options): added command line --gstack, to trace
9797         stack over/under flows,
9798         * added pragma 'wparam' to allow passing first byte of function
9799         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
9800         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
9801         call to __gstack_test function and sets up the symbol as extern,
9802         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
9803         * popaop): added call to pic16_testStackOverflow,
9804         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
9805         wparamList list,
9806         * (genCall, genPcall): now all parameters are passed via stack
9807         except in functions that are pass to wparam pragma in which WREG is
9808         used too,
9809         * (genPcall): REENTRANT flag is checked to see if variable prototype
9810         contains reentrant keyword, don't call a non-reentrant function, via
9811         a reentrant function pointer or vice versa, functions are never
9812         passed via WREG,
9813         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
9814         D.Winkler,
9815         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
9816         SIGSEGV when accessing a NULL register stucture,
9817         * (pic16_printGPointerType): modified to handle UPPER modifier for
9818         function initializers, changed prototype of function to simpler one,
9819         * (pic16_printIvalFuncPtr): check to see if function is already
9820         added in externs list,
9821         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
9822         optimized a move from W to SFR with a move to the same register
9823         later after a CALL,
9824         * device/lib/pic16/debug: NEW directory, contains debug features
9825         which are enabled when linking with libdebug.lib, currently command
9826         line option --gstack enables stack pointer tracing for over/under
9827         flow, corresponding sources are in debug/gstack
9828
9829 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
9830
9831         * doc/sdccman.lyx: updated SDCC version,
9832         * (PIC16 port): update list of command line options,
9833         * src/pic16/device.h (structure pic16_options_t): added field gstack
9834         to enable stack overflow tracing on push/pops,
9835         * src/pic16/device.c (statistics structure): added statistics
9836         structure,
9837         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
9838         pic16_dump_int_registers): increase statistics counters for each
9839         * variable which is encountered
9840         * (pic16_dump_usection): emit each .udata variable to its own udata
9841         section,
9842         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
9843         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
9844         parameters via stack, otherwise use old scheme,
9845         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
9846         assembler output file,
9847         * src/pic16/main.c: added command line options --gstack to enable
9848         push/pop tracing for stack overflow,
9849         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
9850         instructions): added size of each instruction,
9851         * (pic16_countInstruction): estimate size of instructions in
9852         the_pFile list, inline assembly blocks are not counted,
9853         * (pic16_FixRegisterBanking): trace previous register usage, when
9854         banksel optimizations is greater than 0, don't emit a redudant
9855         banksel directive,
9856
9857 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
9858
9859         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
9860         * src/pic16/ralloc.c : applied same fix for pic16.
9861         * src/pic/gen.c : tidied it up a little.
9862
9863 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9864
9865         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
9866         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
9867
9868 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9869
9870         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
9871
9872 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9873
9874         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
9875         non-reentrant function __modsint in the interrupt function (thus
9876         corrupting math operations during serial I/O)
9877         * device/lib/ser_ir.c: as above, changed buffersize
9878         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
9879         256.c,d for zeroing
9880         * doc/Makefile: added option -t for rsync
9881
9882 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9883
9884         * src/SDCCast.h (struct ast),
9885         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
9886
9887 2004-10-20 Borut Razem <borut.razem AT siol.net>
9888
9889         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
9890         package
9891
9892 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
9893
9894         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
9895         makefile targets,
9896         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
9897         support functions to replace long sequences of MOVFF's from access
9898         bank registers to stack and vice versa,
9899         * src/pic16/device.h: added new field opt_flags, where optimization
9900         flags can be set to enable certain features,
9901         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
9902         * pBlock, (genFunction, genEndFunction): surroung loop for
9903         saving/loading used registers in stack with PC_INFO pCodes,
9904         INF_LREGS. Code in between can then be optimized by pCode optimizer
9905         to support function calls,
9906         * (genDataPointerSet): fixed bug which loaded float fields in
9907         structures with corrupt data,
9908         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
9909         in a standard way debug info on stderr. Feature used for developing
9910         and debugging only,
9911         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
9912         obsolete chunks of code,
9913         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
9914         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
9915         * pic16/src/pcode.c (pic16_newpCodeInfo,
9916         * (pic16_newpCodeOpLocalRegs),
9917         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
9918         feature,
9919         * (pic16_pCodeConstString): printing of the initial value of a
9920         symbol as a comment is inhibited since parsing was already done by
9921         copyStr and output is corrupt,
9922         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
9923
9924 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9925
9926         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
9927
9928 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
9929
9930         * as/mcs51/lkarea.c: removed old K&R style,
9931           (lnksect): changed check on boundary error,
9932           (lnksect2): changed check on boundary error,
9933           (lnksect2): extend XSTK to end of page if size = 1
9934         * as/mcs51/lkmain.c: removed old K&R style,
9935           (Areas51): create l_IRAM symbol
9936         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
9937         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
9938           model-mcs51-stack-auto, added model-mcs51-xstack-auto
9939         * device/lib/_mullong.c: added version to be compiled with xstack
9940         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
9941         * device/lib/mcs51/crtxclear.asm: clear pdata as well
9942         * device/lib/mcs51/crtxstack.asm: fixed comment
9943         * src/SDCCglue.c: maxInterrupts defaults to 0,
9944           (emitMaps): added pdata,
9945           (createInterruptVect): (re)moved default,
9946           (glue): added pdata,
9947           (glue): moved __start__xstack to XSTK with default size 1
9948         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
9949           and options.float_rent when options.stackAuto is set,
9950           (linkEdit): only write XDATA_NAME if provided on command line
9951         * src/SDCCmem.h,
9952         * src/SDCCmem.c: added pdata
9953         * src/port.h: added pdata_name to PORT
9954         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
9955           (saveRegisters, unsaveRegisters): removed usage of B,
9956           (genMinus): fixed accumulator clash,
9957           (genJumpTab): added comment, this needs another look
9958         * src/mcs51/gen.c: added check for "B in use" paranoia,
9959           added pushB() and popB()
9960         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
9961           chance
9962         * src/avr/main.c,
9963         * src/ds390/main.c,
9964         * src/hc08/main.c,
9965         * src/mcs51/main.c,
9966         * src/pic/main.c,
9967         * src/pic16/main.c,
9968         * src/xa51/main.c,
9969         * src/z80/main.c: (reset_regparms) made void parameter explicit and
9970           added PSEG (PAG,XDATA) or NULL to port specifier
9971         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
9972         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
9973           (_mcs51_genInitStartup): removed __start__xstack equ,
9974           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
9975         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
9976         * src/z80/gen.c (_rleAppend): fixed warnings
9977         * support/regression/tests/zeropad.c: added pdata test
9978         * .version: bumped to 2.4.6
9979
9980 2004-10-17 Borut Razem <borut.razem AT siol.net>
9981
9982         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
9983         as a part of nightly build
9984
9985 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
9986
9987         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
9988         WREG holds the first byte function parameters,
9989         * (aopForSym): take special case for symbols which are in FARSPACE
9990         but in CODESPACE too,
9991         * (assignResultValue): modified to take into account _G.useWreg,
9992         * (genCall): don't use wreg for parameter passing when function is
9993         declared as reentrant, too, added optimization INCF to stack
9994         pointer when stack parameter count is 1,
9995         * (genFunction, genEndFunction): refurnished and fixed to not using
9996         wreg for passing parameters when function has varargs or is
9997         reentrant, fixed bug with symbol name compare for generating
9998         functions in absolute address,
9999         * (pic16_storeForReturn): refurnished,
10000         * (genCmp): began writing a new version of the function, not ready
10001         yet, therefore it is disabled,
10002         * (genAssign): do not read code memory when assigning a function to
10003         a pointer function,
10004         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
10005         array of characters, not pointer,
10006         * (pic16initialComments): in debug mode emit an .ident directive for
10007         the assembler,
10008         * (_process_pragma): emit a new warning type (internal to pic16)
10009         when setting stack to default length, emit a similar warning when
10010         placing a function at absolute address and address is not word aligned
10011         * (_pic16_parseOptions): added 'return TRUE' statement,
10012         * (_pic16_linkEdit): if compiling a source, then add the source's
10013         file object, first in the list of objects to link,
10014
10015 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
10016
10017         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
10018         * src/pic/main.c : removed VC warning.
10019         * src/pic/gen.c : changed comment.
10020
10021 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
10022
10023         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
10024         reference to a deprecated symbol _GPTRREG was causing failure to
10025         link. Thanks G. M. Gallant for the info.
10026
10027 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
10028
10029         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
10030         comments for Bugs item #954788.
10031
10032 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
10033
10034         * src/pic16/device.c (pic16_dump_gsection,
10035         * pic16_groupRegistersInSection): handle symbols declared to be in
10036         access bank differently,
10037         * src/pic16/gen.c (struct _G): added field resDirect,
10038         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
10039         send values read from stack directly to result and don't allocate
10040         temporary values,
10041         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
10042         same registers,
10043         * (pic16_sameRegsOfs): NEW,
10044         * (freeAsmop): if _G.resDirect is set then do not mark registers as
10045         free because they were not allocated from temporary pool,
10046         * pic16_popRegFromString): workaround to fix a problem with
10047         allocating variables twice or never,
10048         * (genGenPointerGet): using PRODL instead of FSR0H,
10049         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
10050         instead of FSR0H,
10051         * (genAssign): take advantage of the _G.resDirect flag,
10052         * (genCast): around line 11844, use mov2f instead of directly
10053         MOVFF'ing between operands to account for literal values,
10054         * src/pic16/genutils.c: some new debug functions for gpsim have been
10055         added,
10056         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
10057         float with integer part only,
10058         * src/pic16/main.c (_process_pragma): handle pragma udata access to
10059         place variables in access bank
10060         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
10061         updated sources to reflect recent changes in gen.c
10062
10063 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
10064
10065         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
10066         sources that searched for headers in installation path, now the
10067         device/include/pic16 is used,
10068         * src/pic16/glue.c (pic16glue),
10069         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
10070         .line directives if not in debug mode, this suppresses assembler's
10071         warnings for ignored directives
10072
10073 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
10074
10075         * src/port.h: made reset_regparms prototype void parameter explicit.
10076         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
10077         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
10078         * doc/sdccman.lyx: documented warning disabling and how to use
10079           printf_large to make it print floats.
10080         * device/include/stdbool.h: NEW
10081         * device/lib/_atof.c,
10082         * device/lib/_divuint.c,
10083         * device/lib/_divulong.c,
10084         * device/lib/expf.c,
10085         * device/lib/printf_large.c,
10086         * device/lib/sincosf.c,
10087         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
10088         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
10089           a completely reentrant lib.
10090
10091 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
10092
10093         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
10094         * device/include/pic16/stdio.h: fixed bug with colon
10095
10096 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
10097
10098         * device/include/pic16/stdio.h,
10099         * device/include/pic16/stdlib.h,
10100         * device/include/pic16/math.h: NEW
10101         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
10102         declared as _naked to reduce overhead
10103         * device/lib/Makefile.in (target port-specific-objects-pic16):
10104         changed * to *.* so to ignore the CVS directory,
10105         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
10106         stacked variables back in stack,
10107         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
10108         corruption
10109
10110 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
10111
10112         * .version: bumped version number to 2.4.5
10113         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
10114         * support/Util/SDCCerr.c (messages structure): added entry for
10115         W_POSSBUG2
10116
10117         Large cumulative patch for pic16 port and libraries.
10118         * device/include/pic16/sdcc-lib.h,
10119         * device/include/pic16/stdarg.h,
10120         * device/include/asm/pic16/features.h,
10121         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
10122         * device/include/pic16/float.h: changes reentrant keyword with
10123         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
10124         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
10125         updated target build-libraries to include objects from gptr,
10126         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
10127         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
10128         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
10129         all function headings,
10130         * src/SDCCmain.c: added global parameter userIncDirsSet,
10131         * (parseCmdLine): when option -I is encountered add directory to
10132         userIncDirsSet too,
10133         * src/version.awk: added space between control and long,
10134         * src/pic16/NOTES: added some notes for the port,
10135         * src/pic16/gen.c: added prototype for mov2fp function,
10136         * (fReturnpic16[]): properly named return value registers,
10137         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
10138         * (aopForSym): added code to handle symbols with onStack flag set,
10139         symbols onStack are allocated PTRSIZE bytes,
10140         * (aopFreeAsmop): handles special case where asmops are stack objects,
10141         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
10142         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
10143         added argument lock to trace flaws in allocating temporary registers
10144         when developing port,
10145         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
10146         * (pic16_popRegFromString): reenabled allocating a direct register
10147         from string,
10148         * (assignResultValue): various beautifications,
10149         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
10150         referenced function argument,
10151         * (genIpush): reenabled to allow stacked arguments, handles only
10152         ic->parmPush iCodes,
10153         * (genCall, genPcall): major changes to allow for variable argument
10154         functions, fixed a bug with falsely restoring stack pointer after
10155         returning from call,
10156         * (genFunction): pending code for critical function,
10157         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
10158         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
10159         * (genNearPointerGet): fixed bug with indirect reading, was always
10160         reading from INDF0
10161         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
10162         pointers,
10163         * (genAddrOf): rewrote code to take address of a stacked function parameter
10164         * (genCast): fixed casting to generic pointer type,
10165         * src/pic16/gen.h: added AOP_STA,
10166         * (struct asmop): added field stk,
10167         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
10168         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
10169         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
10170         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
10171         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
10172         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
10173         generic pointers,
10174         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
10175         and library paths,
10176         * (pic16_port structure): generic pointer size is set to 3,
10177         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
10178         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
10179         compiler warning,
10180         * src/pic16/ralloc.c (allocReg): prevent allocating register when
10181         operand is an iTemp,
10182
10183 2004-09-24 Martin Helmling <mh AT octo-soft.de>
10184
10185         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
10186         * debugger/mcs51/simi.c: addapt new syntax of s51
10187
10188 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
10189
10190         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
10191         * src/pic16/pcode.c: commented out some calls to free() in order to
10192         fix bug #989576,
10193
10194 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10195
10196         * src/SDCCicode.h,
10197         * src/SDCCicode.c (isiCodeInFunctionCall),
10198         * src/avr/ralloc.c (selectSpil),
10199         * src/pic/ralloc.c (selectSpil),
10200         * src/pic16/ralloc.c (selectSpil),
10201         * src/ds390/ralloc.c (selectSpil),
10202         * src/hc08/ralloc.c (selectSpil),
10203         * src/xa51/ralloc.c (selectSpil),
10204         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
10205         stack in the middle of a function call sequence (fixes bug #1020268)
10206         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
10207         costs associated with the minimum switch case.
10208
10209 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10210
10211         * src/SDCC.lex: fixed bug #1030549
10212
10213 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10214
10215         * src/SDCCcse.h (struct cseDef),
10216         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
10217         over a function call if the CSE is derived from a symbol whose
10218         address has been taken (fixes bug #1029883)
10219         * support/regression/tests/bug-1029883: a new regression test for
10220         this bug
10221
10222 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10223
10224         * src/hc08/gen.c (emitinline): fixed bug #1029778
10225         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
10226         to a cast object is no longer a syntax error ("fixes" bug #1030006,
10227         and starts toward RFE #905167)
10228
10229 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
10230
10231         * src/pic16/gen.c (mov2f): New function to move an operand to
10232         another without considering if it is a literal or a register,
10233         * (pic16_sameRegs): don't check if they are both AOP_REG,
10234         * (AccRsh): removed andmask=0 lines,
10235         * (genLeftShift): duplicated to be improved in future versions,
10236         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
10237         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
10238         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
10239         * (pic16initMnemonics): added initialization for POC_INFSNZW,
10240         * (insertBankSwitch): fixed inserting banksel directives algorithm
10241         for instructions that follow a skip instruction, this fixes a report
10242         for broken subtraction code generation,
10243         * src/pic16/ralloc.c (deassignLRs): do not free register if current
10244         iCode is a left op, just in case result and right share the same
10245         registers
10246
10247 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10248
10249         * src/hc08/main.c,
10250         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
10251         preservation of HX
10252         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
10253         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
10254         on 2004-09-12; it was buggy
10255
10256 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
10257
10258         * src/SDCCsymt.h: removed RESULT_CHECK
10259         * src/SDCCast.c,
10260         * src/SDCCglue.c,
10261         * src/SDCCval.c,
10262         * src/pic/glue.c,
10263         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
10264
10265 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
10266
10267         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
10268         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
10269         configuration values no more rejected by compiler, they are assigned
10270         to configuration registers with a warning message instead,
10271         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
10272         the for-loop so last conf register is emitted too,
10273         * (_pic16_initPaths): link library libsdcc.lib by default,
10274         * (_hasNativeMulFor): modified test for multiplication according to
10275         Raphael Neider's remarks. Integer multiplication is also done with
10276         support functions,
10277         * device/include/pic16/pic18fregs.h: corrected type error in while
10278         testing and including 18f6720 header file
10279
10280 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
10281
10282         * src/pic16/device.h (pic16_options): removed field use_crt,
10283         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
10284         until an optimization to handle single bits is added,
10285         * (pic16_loadFSR0): moved before genUnpackBits,
10286         * (genAnd): some white lines removed,
10287         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
10288         leave_reset flags in pic16_options when using crt modules,
10289
10290 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
10291
10292         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
10293           for bugs 898889 & 979599. Also used some safer print instructions.
10294
10295 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
10296
10297         * src/pic16/device.h (pic16_options_t): added field use_crt,
10298         crt_name, no_crt,
10299         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
10300         catch a probable future bug,
10301         * src/pic16/gen.c: aopIdx function commented out,
10302         * (genAssign): commented out old code which used aopIdx,
10303         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
10304         code, added if conditionals to take into account the --use-crt
10305         command line options,
10306         * src/pic16/main.c (pic16_optionsTable): added new command line
10307         options, --use-crt= and --no-crt,
10308         * (_pic16_linkEdit): now the proper crt object is added in the
10309         linker command line except than when --no-crt is specified,
10310         * src/pic16/pcode.c,
10311         * src/pic16/pcode.h: added some structures and functions for a new
10312         optimization scheme to compansate for instruction overhead between
10313         same iCodes, this scheme is currently under development and is not
10314         working in any way,
10315         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
10316         to && operator,
10317         * device/lib/pic16/startup/crt0i.c,
10318         * device/lib/pic16/startup/crt0iz.c: added global char variable
10319         __uflags to force the generation of an idata section
10320
10321 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
10322
10323         * doc/Makefile,
10324         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
10325         * doc/sdccman.lyx: updated sdcc version to 2.4.4
10326
10327 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10328
10329         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
10330         Frieder) and clarified the default code optimization mode
10331
10332 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10333
10334         * src/SDCC.lex (doPragma, process_pragma),
10335         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
10336         "opt_code_size", and "opt_code_balanced"
10337         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
10338         regrouped options by category, added support for category headers
10339         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
10340         and "--opt-code-size"
10341         * doc/sdccman.lyx: documented these new options and pragmas
10342         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
10343         preference into account
10344
10345 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
10346
10347         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
10348           geniCodePreDec): Fixed bug 904237 by generating a warning
10349         * src/SDCCerr.h,
10350         * src/SDCCerr.c: added warning W_SIZEOF_VOID
10351
10352 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
10353
10354         * src/pic/device.c : When no max ram set validate full memory range.
10355         * src/pic/pcode.c,
10356         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
10357
10358 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
10359
10360         * device/lib/_gptrget.c,
10361         * device/lib/_gptrput.c: updated comment
10362         * device/lib/calloc.c,
10363         * device/lib/free.c,
10364         * device/lib/malloc.c,
10365         * device/lib/realloc.c: added LGPL, made them reentrant-safe
10366         * src/SDCCcse.c (cseBBlock),
10367         * src/SDCCicode.c (printOperand, geniCodeArray),
10368         * src/SDCCicode.h (struct operand): fixed bug 868103
10369         * support/regression/tests/bug-868103.c: added
10370         * src/SDCCast.c (searchLitOp),
10371         * src/SDCCcse.h (struct cseDef),
10372         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
10373         * src/SDCCicode.h (struct operand),
10374         * src/SDCCsymt.h (struct sym_link),
10375         * src/avr/gen.c (hasInc),
10376         * src/ds390/gen.c (hasInc),
10377         * src/hc08/gen.c (genPlusIncr, hasInc),
10378         * src/mcs51/gen.c (hasInc),
10379         * src/pic16/glue.c (pic16_printIvalChar),
10380         * src/pic16/ralloc.c (regWithIdx),
10381         * src/xa51/gen.c (hasInc) : removed warnings
10382         * src/SDCCast.c (createBlock): added comment ???
10383         * src/hc08/ralloc.c: updated comments
10384
10385 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10386
10387         * doc/sdccman.lyx: updated section on switch statements, added
10388         section about semaphore locking
10389         * doc/Makefile: added option -info for latex2html
10390         * device/lib/_gptrget.c,
10391         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
10392
10393 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
10394
10395         * src/pic/device.h,
10396         * src/pic/device.c,
10397         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
10398          maxram is less than 0x100.
10399
10400 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
10401
10402         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
10403
10404 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10405
10406         * src/port.h,
10407         * src/mcs51/main.c,
10408         * src/ds390/main.c,
10409         * src/z80/main.c,
10410         * src/hc08/main.c,
10411         * src/pic/main.c,
10412         * src/pic16/main.c,
10413         * src/avr/main.c,
10414         * src/xa51/main.c
10415         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
10416         a jump table is the best form for a switch statement, including
10417         automatic insertion of missing cases to make the case range
10418         continuous. Developed in collaboration with Frieder Ferlemann.
10419
10420 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10421
10422         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
10423         accumulator result if it needs sign extension
10424
10425 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10426
10427         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
10428
10429 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10430
10431         * device/lib/gbz80/printf.c,
10432         * device/lib/z80/printf.c: removed define for NULL
10433
10434 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10435
10436         * as/xa51/xa_link.c,
10437         * device/examples/ds390/ow390/ad26.c,
10438         * device/examples/ds390/ow390/cnt1d.c,
10439         * device/examples/ds390/ow390/counter.c,
10440         * device/examples/ds390/ow390/ds2480.h,
10441         * device/examples/ds390/ow390/ds2480ut.c,
10442         * device/examples/ds390/ow390/findtype.c,
10443         * device/examples/ds390/ow390/gethumd.c,
10444         * device/examples/ds390/ow390/owllu.c,
10445         * device/examples/ds390/ow390/ownetu.c,
10446         * device/examples/ds390/ow390/swt12.c,
10447         * device/examples/ds390/ow390/swtloop.c,
10448         * device/examples/ds390/ow390/temp.c,
10449         * device/examples/ds390/ow390/temp10.c,
10450         * device/examples/ds390/ow390/thermo21.c,
10451         * device/examples/ds390/ow390/tinilnk.c,
10452         * device/examples/ds390/ow390/tstfind.c,
10453         * device/examples/serialcomm/windows/serial.cpp,
10454         * device/examples/serialcomm/windows/test_serialcomm.cpp,
10455         * device/include/reg51.h: fixed line endings for cvs
10456
10457 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10458
10459         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
10460         packRegsForAccUse, packRegisters): new accumulator register
10461         packing algorithm
10462         * support/regression/ports/hc08/support.c (_putchar): suppress
10463         warning of unused variable
10464         * src/SDCCicode.c: added SWAP entry to codeTable
10465
10466 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
10467
10468         * device/lib/sprintf.c: forgot to add this file before previous commit
10469
10470 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
10471
10472         * src/pic16/gen.c (genPackBits): added operand right in function
10473         parameters, load result directly if p_type is POINTER (that is
10474         called by genNearPointerSet)
10475         * (genUnPackBits): added operand left in function parameters,
10476         * (genNearPointerGet, genNearPointerSet): prevent the loading of
10477         FSR0 if accessing bitfields,
10478
10479 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
10480
10481         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
10482           _print_format; updated printf, sprintf, vsprintf
10483         * device/include/asm/default/features.h: corrected comment/define
10484         * device/lib/Makefile.in: added sprintf.c
10485         * device/lib/libsdcc.lib: added sprintf module
10486         * device/lib/printf_large.c,
10487         * device/lib/vprintf.c,
10488         * device/lib/sprintf.c: totally refactored printf_large and vprintf
10489           into these 3 files
10490         * support/regression/Makefile: changed ALL_PORTS into a usefull default
10491         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
10492         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
10493           hc08 test
10494         * support/regression/tests/zeropad.c: define idata as data for hc08
10495
10496 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10497
10498         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
10499         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
10500         labels are referenced at least once (even if a reference is not found)
10501         * src/hc08/gen.c (emitcode): set isComment flag for comments
10502         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
10503         loads), rules 6a..6b (optimize jumps to return)
10504
10505 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10506
10507         * device/lib/acosf.c (acosf),
10508         * device/lib/asinf.c (asinf),
10509         * device/lib/atanf.c (atanf),
10510         * device/lib/ceilf.c (ceilf),
10511         * device/lib/cosf.c (cosf),
10512         * device/lib/coshf.c (coshf),
10513         * device/lib/cotf.c (cotf),
10514         * device/lib/fabsf.c (fabsf),
10515         * device/lib/floorf.c (floorf),
10516         * device/lib/log10f.c (log10f),
10517         * device/lib/logf.c (logf),
10518         * device/lib/sinf.c (sinf),
10519         * device/lib/sinhf.c (sinhf),
10520         * device/lib/sqrtf.c (sqrtf),
10521         * device/lib/tanf.c (tanf),
10522         * device/lib/tanhf.c (tanhf),
10523         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
10524         replaced all instances of "reentrant" in the library functions
10525         defined in math.h with this macro.
10526         * support/regression/tests/float_trans.c: reenabled test for hc08
10527
10528 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
10529
10530         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
10531         erroneously deleted
10532
10533 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10534
10535         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
10536         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
10537         multi-byte volatile operands are used
10538         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
10539         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
10540         initialization to area GSINIT0 so that it would always precede
10541         any static initializers in GSINIT
10542         * support/regression/tests/zeropad.c: fixed idata define for hc08
10543         * support/regression/tests/bug-927659.c,
10544         * support/regression/tests/float_trans.c: disabled tests for hc08
10545         pending missing library routines
10546         * .version: increased version number to 2.4.4 - hc08 port now passes
10547         regression tests
10548
10549
10550 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
10551
10552         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
10553         * Makefile.common.in,
10554         * as/Makefile,
10555         * as/hc08/Makefile.in,
10556         * as/mcs51/Makefile.in,
10557         * as/z80/Makefile.in,
10558         * debugger/mcs51/Makefile.in,
10559         * device/include/Makefile.in,
10560         * device/lib/Makefile.in,
10561         * doc/Makefile,
10562         * link/Makefile,
10563         * link/z80/Makefile.in,
10564         * packihx/Makefile.in,
10565         * sim/ucsim/main_in.mk,
10566         * sim/ucsim/avr.src/Makefile.in,
10567         * sim/ucsim/doc/Makefile.in,
10568         * sim/ucsim/gui.src/serio.src/Makefile.in,
10569         * sim/ucsim/hc08.src/Makefile.in,
10570         * sim/ucsim/s51.src/Makefile.in,
10571         * sim/ucsim/xa.src/Makefile.in,
10572         * sim/ucsim/z80.src/Makefile.in,
10573         * src/Makefile.in,
10574         * support/cpp2/Makefile.in,
10575         * support/librarian/Makefile,
10576         * support/makebin/Makefile: added DESTDIR to the install path proposed
10577         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
10578         * doc/sdccman.lyx: added DESTDIR documentation
10579
10580 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
10581
10582         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
10583         instruction for interrupt handlers, use fast returns when returning
10584         from high priority interrupts
10585
10586 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10587
10588         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
10589         code generation
10590         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
10591         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
10592         bugs, ported much of Bernhard's code from mcs51
10593         * src/mcs51/gen.c (genSend),
10594         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
10595         than one when calling a reentrant function
10596         * device/lib/_mullong.c: defined an alternate struct layout for big
10597         endian ports (hc08)
10598
10599 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10600
10601         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
10602         test
10603
10604 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10605
10606         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
10607         are sane and complete before asking the port its prefered parameter
10608         passing method (fixes bug #1017633)
10609         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
10610         and _ret3
10611
10612 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10613
10614         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
10615         problem in bitfields >= 8 bits.
10616
10617 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10618
10619         * src/SDCCsymt.c: undid changes that were not meant to be committed
10620
10621 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10622
10623         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
10624
10625 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10626
10627         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
10628           copied and wrong bit got inverted
10629
10630 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10631
10632         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
10633         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
10634         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
10635         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
10636         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
10637         assignments to bitfields at known addresses
10638         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
10639         reads from bitfields at known addresses
10640         * src/hc08/ralloc.c (packRegisters),
10641         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
10642         genhc08Code): optimize pointer get values used as conditionals
10643         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
10644         and branch
10645
10646 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10647
10648         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
10649         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
10650         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
10651         as conditionals
10652
10653 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10654
10655         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
10656
10657 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10658
10659         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
10660         related problems
10661
10662 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
10663
10664         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
10665
10666 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10667
10668         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
10669         mcs51 port
10670
10671 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
10672
10673         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
10674
10675 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10676
10677         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
10678         cases use more compact code.
10679
10680 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
10681
10682         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
10683
10684 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10685
10686         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
10687
10688 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10689
10690         * src/SDCCsymt.h,
10691         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
10692         parameter of changePointer() from symbol* to sym_link*
10693         * src/SDCCast.c (decorateType): call changePointer() for CAST op
10694         * src/SDCCsymt.c (compareType): void* type is castable to other
10695         pointers, but not necesarily an exact match.
10696         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
10697         is no longer blindly treated as an exact match.
10698         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
10699
10700 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
10701
10702         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
10703
10704 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
10705
10706         * src/pic/gen.c,
10707         * src/pic/pcode.c,
10708         * src/pic/ralloc.h,
10709         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
10710
10711 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
10712
10713         * src/pic/device.c,
10714         * src/pic/device.h,
10715         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
10716
10717 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10718
10719         * src/mcs51/gen.c (emitcode): fixed bug #992819
10720
10721 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
10722
10723         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
10724           there's no need to make it worse
10725
10726 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10727
10728         * src/mcs51/ralloc.c (deassignLR),
10729         * src/ds390/ralloc.c (deassignLR),
10730         * src/hc08/ralloc.c (deassignLR),
10731         * src/z80/ralloc.c (deassignLR),
10732         * src/pic/ralloc.c (deassignLR),
10733         * src/pic16/ralloc.c (deassignLR),
10734         * src/avr/ralloc.c (deassignLR),
10735         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
10736         rlivePoint): fixed another part of bug #971834
10737
10738 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10739
10740         * src/z80/main.c: enabled "critical" keyword
10741         * src/z80/mappings.i,
10742         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
10743         functions (fixes bug #979646)
10744         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
10745
10746 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10747
10748         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
10749           such as c:\mydir.
10750
10751 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
10752
10753         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
10754           doesn't disable too much optimizations
10755
10756 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
10757
10758         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
10759
10760 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
10761
10762         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
10763
10764 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
10765
10766         * src/pic/gen.c tidied up tabs
10767         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
10768         * src/pic/main.c tidied up tabs
10769         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
10770         * src/pic/pcoderegs.c tidied up tabs
10771         * src/pic/ralloc.c tidied up tabs
10772
10773 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
10774
10775         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
10776         to S_FIXED for pic16 port and when symbol is not in level 0,
10777         allocate for S_REGISTER storage class and pic16 port, too,
10778         * src/pic16/device.h: prototype for checkSym,
10779         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
10780         * (pic16_assignConfigWordValue): test the value and the mask to
10781         validate that the value is suitable for the configuration word,
10782         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
10783         collect extern declared symbols, don't emit symbol twice, check
10784         first if symbol is in publics set first,
10785         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
10786         * added command line '--fstack' which enables an experimental
10787         feature for stack access, too buggy to be used yet...
10788         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
10789         * (pic16_allocDirReg): when register has storage class S_REGISTER
10790         allocate in pic16_dynAccessRegs,
10791         * device/include/pic16/pic18f????.h: modified configuration word
10792         naming convention, words started as CONFIG0H but should be CONFIG1H
10793
10794 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
10795
10796         * device/include/mcs51reg.h: fixed bug 970993
10797
10798 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
10799
10800         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
10801         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
10802         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
10803         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
10804         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
10805         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
10806           error/warning numbers,
10807           added function setWarningDisabled()
10808         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
10809         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
10810           _memcmp.c _memmove.c calloc.c realloc.c free.c
10811         * support/regression/tests/malloc.c: added tests for new functionality
10812         * support/regression/tests/zeropad.c: added tests for truncated initializers
10813           and initialized char arrays starting with '\x0'
10814         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
10815
10816 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
10817
10818         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
10819
10820 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10821
10822         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
10823         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
10824         peephole 177.e. Thanks to anonymous
10825
10826 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
10827
10828         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
10829         function isn't used in the source but referenced as a
10830         variable initializer then declare it as extern in .asm file
10831
10832 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
10833
10834         * .version: increased version number to 2.4.3
10835
10836         Adding version extension according to ChangeLog CVS revision
10837         * src/Makefile.in (target all): added dependency 'version.h'
10838         * (rule version.h): added rule to create version.h from ChangeLog,
10839         * (rule dep): added dependency version.h,
10840         * src/version.awk: AWK script to create version.h
10841         * src/SDCCdwarf2.c (dwWriteModule),
10842         * src/SDCCglue.c (initialComments),
10843         * src/SDCCmain.c (printVersionInfo): modified to write after
10844         version string the version extension number,
10845         * src/SDCCutil.c: included "version.h"
10846         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
10847         number,
10848         * src/SDCCutil.h: added prototype for getBuildNumber
10849
10850         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
10851         includeDirsSet, too,
10852         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
10853         const char [] is found in function prototype...
10854
10855         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
10856         moving to WREG with source is already in WREG,
10857         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
10858         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
10859         * (aopForSym): stack'ed symbols are partially supported, added
10860         if-clause to support symbols in FARSPACE,
10861         * (sameRegs): added test for AOP_ACC to see if registers are same,
10862         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
10863         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
10864         * (pic16_popRegFromString): will not allocate a new register if it
10865         doesn't find one by name, bug may have introduced...
10866         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
10867         * (genIpush): revived to use pic16 port's stack,
10868         * (genAddrOf): added incomplete case for stack'ed operand,
10869         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
10870         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
10871         can handle multibyte operands,
10872         * src/pic16/glue.c (pic16_printIval*): some debug info added,
10873         * (pic16initialComments): added message for MPLAB compatibility
10874         mode enabled,
10875         * src/pic16/main.h: prototype for pic16_mplab_comp,
10876         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
10877         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
10878         * (_pic16_linkEdit): NEW, handles link stage, transferred here
10879         because of increased complexity of procedure,
10880         * (_process_pragma): stack pragma changed to format 'stack pos len',
10881         emit symbol '_stack_end' to conform with gplink,
10882         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
10883         to search for register,
10884         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
10885         PO_GPR_REGISTER,
10886         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
10887         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
10888         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
10889         case for PO_GPR_REGISTER,
10890         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
10891         dies, the new era is ahead !...
10892         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
10893         pic16_dynInternalRegs,
10894         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
10895         * (pic16_allocDirReg): minor optimizations and bug fixes,
10896         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
10897
10898         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
10899         load stack and frame pointer with address of 'stack_end' symbol
10900
10901 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
10902
10903         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
10904         without source code but only variable initializers
10905
10906 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
10907
10908         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
10909         external are not declared as extern to reduce overhead while linking
10910
10911 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
10912
10913         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
10914
10915 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
10916
10917         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
10918           Yee Keat for the patch
10919         * src/SDCCast.c (decorateType): fixed bug #979599
10920         * src/ds390/gen.h: removed local fReturnSizeDS390
10921         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
10922         * src/ds390/gen.c (genAnd, genOr, genXor),
10923         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
10924
10925 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
10926
10927         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
10928         add relFilesSet to $3, manipulate $2 to handle linking of object
10929         files without source files in command line,
10930         * device/include/pic16 (all headers): added ID location macros,
10931         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
10932         entries for ID location bytes,
10933         * (pic16_assignIdByteValue): NEW,
10934         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
10935         added field dumpcalltree to pic16_options_t,
10936         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
10937         is used instead of pic16_Gstack_base_addr, check if (ifx) before
10938         emitting rFalseIfx label after check_carry label,
10939         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
10940         pic16_emitDIRegs), NEW
10941         * (pic16glue): dump .calltree file when option --calltree found,
10942         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
10943         * (_pic16_genAssemblerPreamble): emit ID locations after
10944         configuration registers,
10945         * (pic16_linkCmd): modifications of the link command,
10946         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
10947         * (pic16_pCodeInitRegisters): don't init stack registers,
10948         * (pic16_findPrevInstruction): fixed bug,
10949         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
10950         bug with immediate registers,
10951         * (buildCallTree): traces stack push and pop,
10952         * (pct2): dump also stack usage for each function,
10953         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
10954         * (pic16_allocDirReg): various modifications,
10955         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
10956         fixed to 1,
10957
10958 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
10959
10960         * src/pic16/pcode.c: removed buggy double colon
10961
10962 2004-07-01 Borut Razem <borut.razem AT siol.net>
10963
10964         * support/scripts/sdcc.nsi: added include/pic16 to setup
10965
10966 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
10967
10968         * device/lib/Makefile.in: fixed bug in target objects-pic16,
10969         * device/lib/pic16/Makefile: prefixed with dash (-) command under
10970         target 'clean',
10971         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
10972         specific command line arguments. Also added sample lkr script
10973         for placing a variable at a specific memory bank.
10974         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
10975         at a specific memory bank,
10976         * (pic16_dump_isection): fixed bug which caused string literals to
10977         be omitted when dumping idata section,
10978         * (pic16_groupRegistersInSection): added code to handle registers
10979         in specific memory banks,
10980         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
10981         public, all references are renamed too,
10982         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
10983         AOP_DPTR2,
10984         * (pic16_storeForReturn): added case to handle when dest is WREG,
10985         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
10986         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
10987         pic16_rel_udata, check to see if that register is marked as being
10988         a member of a specific memory bank,
10989         * (pic16_printIvalCharPtr): added code to add string literals either
10990         to code or the idata sections,
10991         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
10992         also accept the 'udata' pragma,
10993         * src/pic16/main.h: new structure types sectName and sectSym
10994         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
10995         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
10996         * (pic16_findPrevInstruction): fixed, it returned nothing,
10997         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
10998         instruction combinations,
10999         * (pic16_FixRegisterBanking): heavily reorganised,
11000         * (pic16_AnalyzeBanking): if generating banksel directives is
11001         disabled, then don't call FixRegisterBanking at all,
11002         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
11003         completely removed,
11004         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
11005
11006 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
11007
11008         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
11009         Phuah Yee Keat <yk.phuah AT nestac.com>
11010
11011 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
11012
11013         * src/pic16/glue.c (pic16createInterruptVect): function now emits
11014         correctly the IVT even if it is relocated to some other location
11015
11016 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
11017
11018         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
11019         * device/include/pic16/pic18f2220.h: NEW,
11020         * device/lib/pic16/libdev/pic18f2220.c: NEW,
11021         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
11022         * src/pic16/device.c (struct Pics16): added info for 18f2220,
11023         * src/pic16/device.h (struct pic16_options): added ivt_loc and
11024         nodefaultlibs, ivt_loc is the location of the interrupt vector
11025         table, and nodefaultlibs signs that default libraries should not be
11026         linked in link stage,
11027         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
11028         according to --ivt-loc argument,
11029         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
11030         when pragma stack is found,
11031
11032 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11033
11034         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
11035         256 (range check), 257 (do while), 258.a-f (bit banging
11036         f.e. on 3-wire SPI bus)
11037
11038 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11039
11040         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
11041         variables used exclusively within a loop
11042
11043 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
11044
11045         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
11046
11047 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11048
11049         * src/SDCClrange.c (computeClash): fixed bug #971834
11050
11051 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11052
11053         * src/mcs51/gen.c (genCmp): fixed bug #975903
11054         * src/hc08/gen.c (operandsEqu),
11055         * src/ds390/gen.c (operandsEqu),
11056         * src/z80/gen.c (operandsEqu),
11057         * src/pic/gen.c (operandsEqu),
11058         * src/pic16/gen.c (operandsEqu),
11059         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
11060         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
11061
11062 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11063
11064         * src/SDCCcse.c (cseBBlock): fixed bug #966963
11065
11066 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
11067
11068         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
11069         default case in switch statement,
11070         * glue.c (pic16_initPointer): expr is initialised via decoarteType
11071         to eliminate problem with initialisation of pointers, but problem
11072         still exists,
11073         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
11074         * (emitStaticSegment): removed various lines emitting debug info,
11075         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
11076         added processor registers for utilizing EEPROM,
11077         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
11078         configurable and set 8
11079
11080 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
11081
11082         * .version: increased version number to 2.4.2,
11083
11084         Cumulative patch for pic16 port
11085         * src/pic16/device.c: changed scheme to dump initial values for
11086         variables in idata segment, all print_idata* functions were removed,
11087         now the pic16_printIval* will be called,
11088         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
11089         * _pic16_printPointerType, pic16_printPointerType,
11090         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
11091         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
11092         NEW, similar to the respective functions in SDCCglue.c,
11093         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
11094         way, emitting hex bytes,
11095         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
11096
11097 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11098
11099         * src/avr/ralloc.c (serialRegAssign),
11100         * src/xa51/ralloc.c (serialRegAssign),
11101         * src/pic/ralloc.c (serialRegAssign),
11102         * src/pic16/ralloc.c (serialRegAssign),
11103         * src/hc08/ralloc.c (serialRegAssign),
11104         * src/z80/ralloc.c (serialRegAssign),
11105         * src/ds390/ralloc.c (serialRegAssign),
11106         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
11107
11108 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11109
11110         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
11111         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
11112
11113 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
11114
11115         Cumulative patch for pic16 port:
11116         * src/pic16/device.h (typedef PIC16_device) modified fields for
11117         defining microcontrollers,
11118         * src/pic16/device.c: added new info for all devices in Pics16 array,
11119         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
11120         to be optimised out by the pCode optimiser,
11121         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
11122         specially, bug reported by G.M. Gallant,
11123         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
11124         as force'd so that cannot be optimised out by pCode optimiser,
11125         * src/pic16/pcode.c,
11126         * src/pic16/pcodepeeph.c,
11127         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
11128         they are disabled by default, but can be enabled explicit with
11129         command argument --denable-peeps, for testing,
11130         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
11131         --pomit-ivt in COMPILE_FLAGS
11132
11133 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
11134
11135         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
11136           compilation on MSVC
11137
11138 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
11139
11140         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
11141
11142 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11143
11144         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
11145         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
11146
11147 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
11148
11149         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
11150         would only assign 0x300001 register.
11151
11152 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
11153
11154         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
11155         in COMPILE_FLAGS. Thanks to G. Gallant for report.
11156
11157 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11158
11159         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
11160         for ds80c400
11161         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
11162         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
11163         added peephole 254 (left shift), 255 (jump table)
11164
11165 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
11166
11167         * device/lib/Makefile.in: removed comment line with model-pic16,
11168         * (target port-specific-objects-pic16): the libraries and objects
11169         are copied to the build directory form the device/lib/pic16/bin
11170         directory
11171
11172         Cumulative patch concerning pic16 port:
11173         * library directory has been re-organized,
11174         * added support for PIC18F1220,
11175         * added headers and library sources for chips 18f1220,18f6520,
11176         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
11177
11178         * configuration registers setting has changed, now each supported
11179         device has a complete description of the registers it uses,
11180         * all initialisations are moved to idata sections, these section
11181         can be absolute or relocatable,
11182         * fixed initialisation of codespace variables,
11183         * fixed warning about PCLATU and gpsim,
11184         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
11185         * (genAssign): use table reads when assigning from variables in codespace,
11186         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
11187         char/int variables placed in codespace,
11188         * (pic16_emitConfigRegs): NEW, emits a list with configuration
11189         registers set in .asm file, no need for --pomit-config-words anymore,
11190         * (pic16glue): some 8051 legacy segments are commented out
11191         (to be removed completely),
11192         * added support for alternative assembler and linker with --asm=
11193         and --link= command line arguments,
11194         * peepholes are disabled automatically in the port, no need to
11195         specify on command line,
11196         * port supports natively char/int/long multiplication, but converts
11197         all divisions to support functions,
11198         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
11199         to the file set in variable $2,
11200         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
11201         strings in ASCII format and not in hex,
11202         * ralloc.c (serialRegAssign): added a triplet of conditional calls
11203         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
11204         allocate proper register if iCodes aren't temporary,
11205
11206 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
11207
11208         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
11209
11210 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
11211
11212         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
11213         is commented out
11214
11215 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11216
11217         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
11218         computed address is reused
11219         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
11220         multi-byte bitfields
11221
11222 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
11223
11224         * src/z80/gen.c: (genArrayInit): must check for pointers too
11225
11226 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
11227
11228         * support/regression/tests/zeropad.c: never meant to commit the
11229           nestedstruct test: removed, added check for GCC version
11230
11231 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
11232
11233         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
11234         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
11235         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
11236           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
11237           bugs 928906 and 954082 half-empty initializers
11238         * src/SDCCsymt.h,
11239         * src/SDCCsymt.c (getAllocSize): added for above fix
11240         * src/z80/gen.c (genArrayInit): fixed bug 741044
11241         * support/regression/tests/zeropad.c: added tests
11242
11243 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
11244
11245         * src/pic16/device.c (pic16_dump_section): corrected bug which
11246         caused some symbols of the libraries to be misplaced
11247
11248 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
11249
11250         * src/pic16/glue.c,
11251         * src/pic16/ralloc.h,
11252         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
11253         to fix conflict with pic port
11254
11255 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
11256
11257         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
11258         externs configuration variables,
11259         * src/pic16/ralloc.h,
11260         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
11261         prototype in header, commented out some debug messages
11262
11263 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
11264
11265         * src/pic16/glue.c,
11266         * src/pic16/main.c,
11267         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
11268         for gpasm COFF object generation. Thanks to D. Hawkins for
11269         his patch info
11270
11271 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11272
11273         * src/ds390/main.c,
11274         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
11275         Brock for spotting this)
11276         * src/ds390/gen.c (genEndFunction),
11277         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
11278         interrupt handler and critical. Disable push/pop optimizations when
11279         peephole optimizations disabled.
11280
11281 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
11282
11283         Updated pic16 library sources and headers.
11284         * device/lib/pic16/pic18f*/ ,
11285         * device/include/pic16/*.h: modified to handle structured SFR
11286         definitions
11287
11288 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
11289
11290         * src/port.h (PORT structure): added hook initPaths, now each
11291         port can declare its own default search paths,
11292         which can been seen with the --print-search-dirs option,
11293         see pic16 port for example,
11294         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
11295         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
11296         * (doPrintSearchDirs): NEW, replaces in a central manner the
11297         printing of search dirs which was split in set*Paths functions,
11298         * (main): added call to port->initPaths and doPrintSearchDirs,
11299         * src/avr/main.c,
11300         * src/ds390/main.c,
11301         * src/hc08/main.c,
11302         * src/izt/i186.c,
11303         * src/izt/tlcs900h.c,
11304         * src/mcs51/main.c,
11305         * src/pic/main.c,
11306         * src/pic16/main.c: modified port structures to reflect addition of
11307         initPaths hook,
11308
11309         * src/pic16/device.c (regCompare): registers are finally sorted by name,
11310         * (pic16_dump_section): for registers in same address reserve memory once,
11311         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
11312         to no_banksel,
11313         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
11314         result is greater in size than right or left,
11315         * (pic16_genUMult8X8_8): there are some cases where the result can
11316         be 16 bits size, so handle these,
11317         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
11318         * (pic16_outBitC): modified to emit pcodes,
11319         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
11320         or not,
11321         * (genDivOneByte): implemented algorithm to divide 8-bits,
11322         * (genCmp): uncommented goto, but issues still exist,
11323         * (genAnd): fixed a bug with variables >8bits,
11324         * (genPackBits): optimization added that uses BCF/BSF to change a
11325         single bit,
11326         * (genAssign): fixed bug when assigning floating point literals,
11327         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
11328         __sdcc_gsinit_startup label,
11329         * src/pic16/main.c (_pic16_init): removed search directory
11330         initialisations,
11331         * (_pic16_initPaths): NEW, used to initialise search directories,
11332         * (_hasNativeMulFor): support functions for all except char/int
11333         multiplication, and char division,
11334         * (PIC16_port struct): modified entry for native mul support,
11335         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
11336         no_banksel option,
11337         * (buildCallTree): call to register_usage is ifdef'ed out,
11338
11339 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11340
11341         * device/include/string.h: applied Stas Sergeev's patch to make this
11342         header file compatible with the preprocessor -Wundef option
11343         * src/SDCCmain.c (main): abort compilation if preprocessor reports
11344         failure (fixes bug #941458)
11345
11346 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11347
11348         * src/SDCCopt.c (killDeadCode): fixed bug #907733
11349         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
11350         that the variable, not the function, should be static
11351         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
11352         to be consistent with non-literal case
11353
11354 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11355
11356         * src/SDCCast.c (isConformingBody): fixed bug #949967
11357         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
11358         convilong): fixed bug #952086
11359
11360 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11361
11362         * src/SDCCmem.c (allocVariables): fixed bug #955321
11363
11364 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11365
11366         * src/hc08/main.c (_hc08_genAssemblerEnd),
11367         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
11368         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
11369         completely eliminated the use of a temporary file
11370         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
11371         when more than one file linked
11372         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
11373
11374 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11375
11376         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
11377         which fixes bug #543481
11378         * support/regression/tests/bug-751703.c: fixed comments left from a
11379         cut and paste error
11380         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
11381         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
11382         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
11383         scopes
11384         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
11385         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
11386         are now changed to underscores in moduleName
11387
11388 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11389
11390         * as/mcs51/lkmem.c: better fix for bug #954173
11391
11392 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
11393         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11394
11395         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
11396         * device/include/c8051f000.h,
11397         * device/include/c8051f120.h,
11398         * device/include/c8051f300.h,
11399         * device/include/c8051f310.h,
11400         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
11401         PWM16) and detab'ed
11402
11403 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11404
11405         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
11406         and mailing lists, doc'ed --no-peep-comments, removed reference
11407         to knoppix (newest version has no LyX/LaTeX), other minor changes
11408         * src/SDCCglue.c (glue): save 2 bytes stack space with
11409         option --main-return. The ljmp could probably be avoided too
11410
11411 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11412
11413         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
11414
11415 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11416
11417         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
11418         * src/SDCCopt.c (isLocalWithoutDef),
11419         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
11420         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
11421         (credit to Maarten Brock for patch #949363, on which this is based)
11422         * support/regression/tests/bug-751703.c: some test cases of extern used
11423         within inner scopes.
11424
11425 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11426
11427         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
11428         SPEC_STRUCT
11429         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
11430         struct definitions
11431         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
11432         dwWriteLabel): fix to create valid debugger symbols even when
11433         the module name has non-alphanumeric symbols in it
11434         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
11435         when a variable's allocation has been optimized away
11436
11437
11438 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11439
11440         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
11441         * src/hc08/main.c,
11442         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
11443         * src/mcs51/main.c,
11444         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
11445         * src/ds390/main.c,
11446         * src/z80/gen.c (z80_emitDebuggerSymbol),
11447         * src/z80/main.c,
11448         * src/pic/gen.c (pic14_emitDebuggerSymbol),
11449         * src/pic/main.c,
11450         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
11451         * src/pic16/main.c,
11452         * src/avr/gen.c (avr_emitDebuggerSymbol),
11453         * src/avr/main.c,
11454         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
11455         * src/xa51/main.c,
11456         * src/SDCCdebug.c (emitDebuggerSymbol),
11457         * src/SDCCdebug.h,
11458         * src/port.h: added a debugger struct to the port struct. Added a
11459         callback for defining debugger symbols
11460
11461         * src/SDCCast.c (createLabel),
11462         * src/SDCC.y (labeled_statement): mark all compiler generated labels
11463         with isitmp = 1
11464         * src/SDCCicode.h,
11465         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
11466         iCode back to the ast for the function
11467
11468         * src/hc08/ralloc.c (hc08_assignRegisters),
11469         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
11470         unneeded fields from the regs struct.
11471         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
11472         pushReg() & pullReg() functions instead of emitcode()
11473
11474         * src/hc08/gen.c (genLabel, genhc08Code),
11475         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
11476
11477         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
11478         debugger hooks
11479
11480         * src/hc08/gen.c (genEndFunction, genhc08Code),
11481         * src/hc08/gen.h,
11482         * src/mcs51/gen.c (genEndFunction, gen51Code),
11483         * src/mcs51/gen.h,
11484         * src/ds390/gen.c (genEndFunction, gen390Code),
11485         * src/ds390/gen.h,
11486         * src/z80/gen.c (genEndFunction, genZ80Code),
11487         * src/z80/gen.h,
11488         * src/z80/z80.h,
11489         * src/pic/gen.c (genEndFunction, genpic14Code),
11490         * src/pic/gen.h,
11491         * src/pic16/gen.c (genEndFunction, genpic16Code),
11492         * src/pic16/gen.h,
11493         * src/avr/gen.c (genEndFunction, genAVRCode),
11494         * src/avr/gen.h,
11495         * src/xa51/gen.c (genEndFunction, genXA51Code),
11496         * src/xa51/gen.h,
11497         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
11498         specific code to cdbFile.c and out of the backend code generators
11499
11500         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
11501         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
11502         starting address is now 0
11503
11504         * as/hc08/asm.h,
11505         * as/hc08/m08pst.c,
11506         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
11507         assembler directive for DWARF support
11508         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
11509
11510         * src/src.dsp,
11511         * src/Makefile.in,
11512         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
11513
11514 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11515
11516         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
11517         and inappropriate peephole optimization in jump tables
11518
11519 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11520
11521         * as/hc08/m08pst.c,
11522         * src/SDCCglue.c: sdccopt works for the hc08 port now
11523
11524 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
11525
11526         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
11527
11528 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11529
11530         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
11531
11532 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11533
11534         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
11535         rules
11536         * src/SDCCmain.c,
11537         * src/SDCCglobl.h,
11538         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
11539         comments from the peephole optimizer replacement rules
11540         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
11541         symbols
11542         * src/SDCCcse.c (updateSpillLocation),
11543         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
11544         equivalents
11545         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
11546         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
11547         objects far pointers
11548
11549 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11550
11551         * src/SDCCsymt.h: a missing part of my last change
11552         * src/pic/ralloc.c (regTypeNum),
11553         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
11554
11555 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11556
11557         * src/SDCCicode.h,
11558         * src/SDCCicode.c (aggrToPtrDclType),
11559         * src/SDCCptropt.h,
11560         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
11561         ptrPseudoSymConvert),
11562         * src/pic/ralloc.c (regTypeNum),
11563         * src/pic16/ralloc.c (regTypeNum),
11564         * src/hc08/ralloc.c (regTypeNum),
11565         * src/ds390/ralloc.c (regTypeNum),
11566         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
11567         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
11568
11569 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11570
11571         * link/z80/lkmain.c (afile),
11572         * as/hc08/lkmain.c (afile),
11573         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
11574         prevent a pointer problem when a filename has no directory and
11575         no extension specified.
11576
11577 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11578
11579         * link/z80/lkmain.c (afile): allow periods in directory names
11580         * link/z80/lkmain.c (afile),
11581         * as/mcs51/lkmain.c (afile),
11582         * as/hc08/lkmain.c (afile): allow linker script file to have an
11583         extension other than ".lnk"
11584         * link/z80/lklex.c (getfid),
11585         * link/z80/lkmain.c (parse),
11586         * as/mcs51/lklex.c (getfid),
11587         * as/mcs51/lkmain.c (parse),
11588         * as/hc08/lklex.c (getfid),
11589         * as/hc08/lkmain.c (parse): Support comments in the linker script
11590         file on lines by themselves and after filenames
11591
11592 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11593
11594         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
11595
11596 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11597
11598         * src/z80/peeph-z80.def: removed some peephole rules that don't
11599         work with multibyte arithmetic (fixed bug #937126)
11600         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
11601         to registers and not global variables
11602         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
11603         geniCodePreInc, geniCodePostDec, geniCodePreDec,
11604         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
11605         checking for assignments not internally generated (fixed bug #931895)
11606         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
11607         structure member (fixed bug #930072)
11608
11609 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11610
11611         * src/SDCCmain.c (linkEdit),
11612         * src/hc08/main.c (_hc08_parseOptions),
11613         * as/hc08/Makefile.in,
11614         * as/hc08/aslink.h,
11615         * as/hc08/asm.h,
11616         * as/hc08/m08pst.c,
11617         * as/hc08/lkrloc.c (relr, rele),
11618         * as/hc08/lkarea.c (lnkarea)
11619         * as/hc08/lkmain.c (afile, parse),
11620         * as/hc08/lkelf.c: support for ELF output
11621         * as/hc08/lks19.c (s19),
11622         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
11623
11624 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11625
11626         * as/mcs51/lkihx.c: Fixed bug #899105.
11627
11628 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11629
11630         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
11631         .dsp files from Unix to DOS.
11632
11633 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11634
11635         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
11636         function pointers; we have been compliant for several months now.
11637         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
11638         change that was accidently commented out
11639         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
11640         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
11641         bug #922319
11642
11643 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11644
11645         * src/hc08/gen.c: output of all of the internal debugging information
11646         is now controlled by the D() macro; it is disabled by default
11647
11648 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11649
11650         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
11651         harder to keep the same registers during a CAST iCode
11652         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
11653         long via int can be done in a single cast, if the signedness is
11654         correct.
11655         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
11656         putchar() in tinibios.c in ds390's library
11657
11658 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
11659
11660         * src/SDCCast.c (decorateType): fixed bug #898889,
11661         cast result of a literal complement too
11662         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
11663         fixed check for bitfields
11664
11665 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
11666
11667         * src/SDCCicode.c (geniCodeLogic): made it static,
11668         (geniCodeLogicAndOr): added in order to fix bug #905492,
11669         (ast2iCode): fixed bug #905492
11670         * support/regression/tests/bug-905492.c: added
11671         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
11672         (processParms): fixed bug #927659: don't copy parms, this will clear
11673         decorated flag
11674         * support/regression/tests/bug-927659.c: added
11675
11676 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
11677
11678         * src/SDCCast.c (addCast): don't cast float to char
11679         * device/lib/libsdcc.lib: added _memmove
11680
11681 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
11682
11683         * device/lib/large/Makefile: fixed parallel execution by
11684         replacing `make` by `$(MAKE)`
11685
11686 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11687
11688         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
11689         offsets (fixes bug #923936)
11690
11691 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
11692
11693         * device/lib/small/Makefile: fixed parallel execution by
11694         replacing `make` by `$(MAKE)`
11695
11696 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
11697
11698         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
11699
11700 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
11701
11702         * src/pic/gen.c (genCpl): multi-byte complements were not working.
11703         * src/regression/Makefile: Regression test was not running.
11704
11705 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
11706
11707         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
11708         complement if possible
11709         * src/SDCCval.c (valComplement),
11710         * src/SDCCicode.c (operandOperation): fixed complement of literal
11711         * support/regression/tests/onebyte.c (testComplement): added
11712
11713 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
11714
11715         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
11716         return an optimized tree; actually replace actParm with the new tree
11717         * src/SDCCast.h: added some parantheses to remove side effects
11718         * support/regression/tests/bug-920866.c
11719
11720 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
11721         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
11722         Bit operands were not being handled properly in the pic14 port.
11723         (now src/regression/add.c passes again).
11724
11725 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11726
11727         * src/SDCC.y (labeled_statement): case and default no longer require
11728         a following statement (RFE #893037)
11729
11730 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11731
11732         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
11733         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
11734         disabled (fixes bug #916294)
11735         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
11736         "mov a,acc"; patch provided by Lenny Story
11737         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
11738
11739 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11740
11741         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
11742         functions
11743         * src/ds390/gen.c (genFunction, genEndFunction),
11744         * src/ds390/ralloc.c (ds390_assignRegisters),
11745         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
11746         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
11747         pushed if there are parameters passed on the stack. Also, a cleaner
11748         way to decide if r0/r1 should be pushed/popped. (Together they fix
11749         bug #918693)
11750
11751 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11752
11753         * doc/sdccman.lyx,
11754         * device/lib/mcs51/crtpagesfr.asm,
11755         * device/lib/mcs51/crtxinit.asm,
11756         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
11757         to avoid confusion with Si Lab's SFRPAGE register.
11758
11759 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11760
11761         * src/SDCCglue.c (emitMaps): allow public sfr variables
11762         * src/SDCCglue.c (initialComments): include compiler build date
11763         with compiler version and put the timestamp of the generated
11764         assembly file on a serperate line to be less confusing.
11765         * src/port.h: added genInitStartup hook
11766         * src/avr/main.c,
11767         * src/ds390/main.c,
11768         * src/hc08/main.c,
11769         * src/pic/main.c,
11770         * src/pic16/main.c,
11771         * src/xa51/main.c,
11772         * src/z80/main.c: genInitStartup initialize as NULL (default to
11773         historical behaviour)
11774         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
11775         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
11776         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
11777         library instead of hard coding it into the compiler.
11778         * support/regression/ports/mcs51-stack-auto/spec.mk,
11779         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
11780         * device/lib/mcs51/Makefile,
11781         * device/lib/small/Makefile,
11782         * device/lib/large/Makefile,
11783         * device/lib/mcs51/crtpagesfr.asm,
11784         * device/lib/mcs51/crtstart.asm,
11785         * device/lib/mcs51/crtxclear.asm,
11786         * device/lib/mcs51/crtxinit.asm,
11787         * device/lib/mcs51/crtclear.asm,
11788         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
11789         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
11790         and into user configurable files.
11791         * device/lib/clean.mk: clean mcs51 directory too
11792         * support/regression/tests/longlit.c: added static to T1 declaration
11793         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
11794         accesses in the initialization code
11795
11796 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11797
11798         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
11799         OSCTRIMVAL as noted in bug #916008
11800
11801 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11802
11803         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
11804         in loops with multiple exits (reported as incorrect registers
11805         used by Martin Helmling in Sdcc-user list)
11806
11807 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11808
11809         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
11810         made ds390 register extensions look less like error messages
11811
11812 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11813
11814         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
11815         reported by Adam Wozniak in Sdcc-user list
11816
11817 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
11818
11819         * src/SDCCast.c (decorateType): fixed with bug and promotion in
11820         arithmetic optimizations, added debug output
11821
11822 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
11823
11824         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
11825         * sdcc.spec: updated and split sdcc into 3 rpms
11826         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
11827         needed for literals of LEFT_OP and '+'
11828         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
11829         introduced RESULT_TYPE_NOPROM
11830         (geniCodeMultiply): fixed logic for decision if mul is optimized to
11831         left shift
11832         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
11833         limited promotion to int only for '*'
11834         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
11835
11836 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
11837
11838         * src/pic16/gen.c (genSkip),
11839         (genc16bit2lit), (gencjneshort): commented out
11840         (is_LitOp): new helper function, checks operand type
11841         (genCmpEq): rewritten
11842
11843 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
11844
11845         * support/regression/tests/bug-908454.c: added
11846
11847 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
11848
11849         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
11850         * src/SDCCicode.c (usualBinaryConversions): op needs int type
11851         (geniCodeCast): cosmetic, don't preserve bit storage class
11852         (geniCodeLeftShift): added promotion
11853         (geniCodeLogic): fixed regression
11854         * src/SDCCsymt.c (computeTypeOr): accept bits too
11855         (compareType): 2nd part of fix for bug #908454, needed for bitfields
11856
11857 2004-03-07  Borut Razem <borut.razem AT siol.net>
11858
11859         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
11860
11861 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
11862
11863         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
11864         version of pic16_genPackRegisters which does not check if ic is a
11865         CAST operator,
11866         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
11867         function cause string1.c regression test fails
11868
11869 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
11870
11871         * sim/ucsim/configure.in,
11872         * sim/ucsim/configure,
11873         * sim/ucsim/doc/Makefile.in: use docdir
11874         * src/SDCC.y: fixed sbit atrributes
11875         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
11876         * src/SDCCast.c (decorateType): |^& need special promotion handling
11877         * src/SDCCast.h,
11878         * src/SDCCsymt.h: moved definition of RESULT_TYPE
11879         * src/SDCCsymt.h (computeType),
11880         * src/SDCCicode.c: computeType() needs op
11881         * src/SDCCsymt.c (checkTypeSanity),
11882         * doc/sddman.lyx: "plain" bitfields are unsigned
11883         * src/SDCCsymt.c (computeTypeOr): added
11884         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
11885         |^& ops
11886         * src/SDCCval.c (val*): computeType() needs op
11887         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
11888         * support/regression/tests/onebyte.c: added tests for |^&
11889
11890 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
11891
11892         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
11893         for writing icode into asm output.
11894
11895 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
11896
11897         * src/pic16/device.c: added some debug lines enabled
11898         with macro DEBUG_CHECK,
11899         * src/pic16/genarith.c: more debug in genPlus,
11900         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
11901         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
11902         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
11903         * (aopForSym): onStack symbols are re-placed in data memspace,
11904         and onStack flag is cleared,
11905         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
11906         copy temporary pcodeop,
11907         * (genPcall): added warning for not updating PCLATU,
11908         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
11909         always true for pic16 port,
11910         * (genMultOneWord): NEW, supports integer multiplication,
11911         * (genMult): modified to call genMultOneWord,
11912         * (ifxForOp): added warning when return NULL,
11913         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
11914         flag is set before call to operandFromSymbol for implicit
11915         added structures,
11916         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
11917         options.intlong_rent are set by default,
11918         * (_hasNativeMulFor): modified to allow port generation of integer
11919         multiplication,
11920         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
11921         set regtype to REG_SFR for all registers, restricting seting the
11922         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
11923
11924 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11925
11926         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
11927         more than 500 times in the regression tests
11928
11929 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11930
11931         * support/Util/SDCCerr.h,
11932         * support/Util/SDCCerr.c,
11933         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
11934         enumerator_list),
11935         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
11936         for symbol conflicts.
11937         * support/valdiags/tests/enum.c,
11938         * support/valdiags/tests/tentdecl.c,
11939         * support/valdiags/tests/struct.c: expect possible error messages
11940         referring to original symbol definitions.
11941         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
11942         * src/SDCCsymt.h,
11943         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
11944
11945 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
11946
11947         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
11948
11949 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
11950
11951         * src/pic16/ralloc.c (newReg): fixed bug #908929
11952
11953 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11954
11955         * src/ds390/gen.c: added missing #include "main.h"
11956
11957 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
11958
11959         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
11960         checking if symbol is already in set,
11961         * src/pic16/device.h: prototype for checkAddSym,
11962         * src/pic16/gen.c: (_G): added entry interruptvector,
11963         * (assignResultValue): removed some commented out lines,
11964         * (genFunction): check for ISR via sym->type, absolute section for
11965         interrupt code is created via a new pBlock, the goto instruction is
11966         placed now correctly at the interrupt vector position, changed all
11967         references from ivec to _G.interruptvector,
11968         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
11969         is the interrupt is a high priority one, same for return from ISR,
11970         * src/pic16/glue.c: changed all calls of addSetHead for publics and
11971         externs to calls of checkAddSym,
11972         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
11973         pic16_pcode_verbose flag is set,
11974         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
11975         * src/pic16/pcoderegs.c: message about how many registers are saved
11976         will only be emitted if pic16_pcode_verbose flag is set,
11977
11978 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11979
11980         * src/ds390/ralloc.h,
11981         * src/ds390/ralloc.c (ds390_regWithIdx),
11982         * src/ds390/gen.c (emitcode),
11983         * src/ds390/main.h,
11984         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
11985         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
11986         ds390operandCompare, getRegsRead, getRegsWritten,
11987         initializeAsmLineNode): customized instruction size calculation for
11988         ds390, started basis for some register optimizations
11989         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
11990         corresponding assembly output
11991         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
11992         missing push/pop of r0/r1. Optimized push/pops
11993
11994 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11995
11996         * src/mcs51/main.c (instructionSize): fixed ACALL size
11997         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
11998
11999 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
12000
12001         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
12002         the sorting of rlist with NULL elements
12003         * (print_idataType, print_idata): NEW to create idata sections
12004         * src/pic16/device.h: idataSymSet new variable
12005         * src/pic16/gen.c (genFunction): fixed some bugs in string
12006         comparing, improved the absolute section creation for ISRs,
12007         added FSR0L/FSR0H in registers that are saved in an ISR,
12008         * (genInline): fixed the processing of inline snippets,
12009         now they undergo no process by the peephole optimizer
12010         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
12011         are placed in idataSymSet,
12012         * (pic16emitStaticSeg): extern symbols are added in externs,
12013         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
12014         switching when aboslute variables are placed in access bank memory
12015         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
12016         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
12017         commented out with #if,
12018         * (pic16_packRegisters): reintroduce the check for CAST because some
12019         symbols are not correctly handled,
12020         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
12021         pCodeInstruction instead of pCode,
12022         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
12023         pCodeAsmDir definition,
12024         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
12025         directive, then the argument directive is emitted without the leading
12026         tab, hack for inline labels which must be in the first column,
12027         * (compareLabel,pic16_findNextInstruction),
12028         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
12029         * (insertBankSwitch): modified for the new pCodeAsmDir,
12030
12031 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12032         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
12033
12034         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
12035         instance,
12036         * (pushSide): commented out with #if,
12037         * (assignResultValue): fixed some typos in saving
12038         registers,
12039         * (genPcall): FIXED and sync'ed with genCall,
12040         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
12041         * (genNearPointerGet): fixed to handle some more cases,
12042         implementation scheme via table reads,
12043         * (genConstPointerGet): modified to access code memory correct,
12044         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
12045         and improved to handle some cases
12046         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
12047         instead of "RETLW" for init data
12048         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
12049         not IN_DIRSPACE, work around to reduce bank switching when aboslute
12050         variables are placed in access bank memory (<0x80 and >=0xf80),
12051         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
12052         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
12053         TBLWT_POSTDEC,TBLWT_PREINC
12054         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
12055         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
12056         directives
12057         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
12058         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
12059         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
12060         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
12061
12062 2004-02-29  Borut Razem <borut.razem AT siol.net>
12063
12064         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
12065         support/Util/findme.h, support/Util/system.h: enhance binary relative
12066         search for lib and include by using findProgramPath()
12067
12068 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12069
12070         * src/SDCCpeeph.h,
12071         * src/SDCCpeeph.c (pcDistance),
12072         * src/port.h,
12073         * src/mcs51/ralloc.h,
12074         * src/mcs51/ralloc.c (mcs51_regWithIdx),
12075         * src/mcs51/main.h,
12076         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
12077         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
12078         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
12079         size calculation port specific, started basis for some register
12080         optimizations
12081         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
12082         missing push/pop of r0/r1. Optimized push/pops
12083         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
12084         * device/lib/_modsint.c (_modsint),
12085         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
12086         and stack version so regression tests pass
12087
12088 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
12089
12090         * src/Makefile.in (dep): include SLIBOBJS in dependency check
12091         * src/SDCCast.c (decorateType): catch another small optimization
12092         with '?' operator
12093         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
12094         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
12095         modified to finally use computeType() all over SDCC,
12096         see Feature Request #877103
12097         * src/SDCCval.h: cosmetic
12098         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
12099         valCompare(); regression tested in muldiv.c
12100         * support/regression/tests/muldiv.c (testMod): mod sign follows
12101         dividend only
12102
12103 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
12104
12105         * src/SDCCast.c (decorateType): fixed bug #902362
12106         * doc/INSTALL.txt: fixed install instructions for win32
12107
12108 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
12109
12110         * device/include/Makefile.in (install): fixed by replacing spaces
12111         by tabs
12112         * doc/README.txt,
12113         * doc/INSTALL.txt: updated for release
12114         * doc/sdccman.lyx: added warning for --xstack being buggy
12115
12116 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
12117
12118         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
12119         to eliminate build warnings.
12120         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
12121
12122 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
12123            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12124
12125         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
12126         removed -penable-stack, added comment for stack pragma, added
12127         warning for not initializing the stack/frame registers, removed
12128         comment at interrupts section
12129
12130         Stack is made permanent, there is no ability to disable stack usage.
12131         * src/pic16/device.h,
12132         * src/pic16/device.c: removed all references to USE_STACK macro,
12133         * src/pic16/device.c (pic16_dump_section): when no elements in
12134         rlist, free rlist before return,
12135         * (pic16_dump_int_registers): NEW, internal registers are a new set
12136         of general purpose registers reused by each function,
12137         * (checkAddReg): returns 1 if registers is added to set,
12138         * (pic16_groupRegistersInSection): when a registers is of type
12139         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
12140         * src/pic16/device.h: memRange and Assigned Memory are deleted,
12141         SRCASECMP macro is moved here from device.c
12142         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
12143         PO_PCLATU, PO_PRODL, PO_PRODH,
12144         * (pic16_pCodeOpType, genMinus,
12145         changed compares to "a" register, with AOP_ACC,
12146         * (pic16_genPlus): fixed some bugs and indented properly,
12147         * (pic16_addSign): changed size to size+offset in the MOVWF
12148         instruction,
12149         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
12150         multiply 8-bit operand by literal, result is 8-bit,
12151         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
12152         multiply 2 8-bit operand, result is 8-bit,
12153         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
12154         genUMult8X*_16,
12155         * src/pic16/gen.c: changed accUse to contain WREG only,
12156         * (pic16_emitcomment): renamed to pic16_emitpcomment,
12157         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
12158         true, do not use immediate addressing any more unless sym is a
12159         pointer in codespace,
12160         * (aopForRemat): do not use immediate addressing when symbol not in
12161         codespace and when symbol's address is requested,
12162         * (aopOp): for-loop in if(sym->accUse) is modified for the new
12163         accUse size (= 1),
12164         * (aopGet): added case for AOP_ACC and don't return "accumulator
12165         bug" but WREG instead,
12166         * (popGetTempReg): pushes contents of temporary register in stack,
12167         * (popReleaseTempReg): pops contents of temporary register from
12168         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
12169         * (pic16_popGet): separated case AOP_ACC to return register WREG
12170         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
12171         or PO_IMMEDIATE and initializes their instance/offset appropriately,
12172         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
12173         the use of immediate pointers to certain cases only.
12174
12175         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
12176         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
12177         * (assignResultValue, genCall, genRet): modified to use the new
12178         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
12179         genPcall is still broken,
12180         * (genFunction): added code to create 'A' type pBlocks when
12181         interrupt functions are generated, code not extensively tested yet,
12182         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
12183         * (genEndFunction): modified so ISRs pop stored registers from stack,
12184         * (genMultOneByte): cleanup,
12185         * (AccRsh): added flag andmask, to and result with appropriate mask,
12186         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
12187         * (genDataPointerGet): fixed and reenabled its use,
12188         * (genNearDataPointerGet): bugs fixed,
12189         * (genDataPointerSet): bugs fixed,
12190         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
12191         pic16_DumpSymbol, pic16_DumpOp,
12192         * src/pic16/genutils.h: function prototypes for the above functions,
12193         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
12194         pointers,
12195         * (pic16emitRegularMap): many many many improvements, but needs a
12196         major cleanup,
12197         * src/pic16/main.c: enable_stack in pic16_options is removed,
12198         * (_pic16_parseOptions): removed command line options -penable-stack,
12199         * (_process_pragma): emit stack symbol only when stack pragma is
12200         processed,
12201         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
12202         redirected to FSR0L/FSR0H pair,
12203         * (pic16_get_op, pic16_get_op2): modifications and improvements,
12204         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
12205         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
12206         for immediates,
12207         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
12208         * (dumpPicOptype): NEW,
12209         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
12210         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
12211         with movff instruction,
12212         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
12213         added pic16_int_regs, some packRegsFor* functions are commented out,
12214         because produce errors,
12215         * src/pic16/NOTES: minor modifications
12216
12217 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12218
12219         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
12220         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
12221         --pack-iram.
12222         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
12223         * as/mcs51/lkaomf51.c: fixed bug #895763
12224
12225 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
12226
12227         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
12228
12229 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12230
12231         * doc/sdccman.lyx: added details about the HC08 storage classes and
12232         interrupts, fixed the register usage info for z80 & gbz80
12233
12234 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
12235
12236         * doc/sdccman.lyx: added more pic16 port documentation
12237         * device/include/pic16/: added header pic18fregs.h
12238
12239 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
12240
12241         * doc/sdccman.lyx: added Vangelis' contribution
12242
12243 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12244
12245         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
12246         extend to the next CALL or PCALL, not just to the next CALL.
12247
12248 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
12249
12250         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
12251
12252 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12253
12254         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
12255         bug #895752 and a better fix for bug #716790
12256
12257 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12258
12259         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
12260
12261 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12262
12263         * doc/sdccman.lyx: minor changes, minor changed
12264
12265 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
12266
12267         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
12268         which can't handle SDCC_NEWONEBYTEOPS,
12269         (geniCodeMultiply): removed conversion from mult to shift for pic14
12270         and pic16
12271
12272 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12273
12274         * src/hc08/gen.h,
12275         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
12276         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
12277         thus fixing bug #895406
12278
12279 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
12280
12281         * device/lib/_modsint.c,
12282         * device/lib/_modslong.c: sign follows divisor only
12283         * src/hc08/gen.c (genMultOneByte): if result size is 1,
12284         signs or signedness can be ignored
12285         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
12286         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
12287         added optimization for IFX,
12288         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
12289         arguments;
12290         reenabled optimization for IFX, which was removed on 2004-01-11
12291         * src/SDCCast.h: added return type IFX
12292         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
12293         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
12294         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
12295         SDCC_OLDONEBYTEOPS selects the old behaviour
12296         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
12297         changed again and commented promotion rule
12298         * src/SDCCval.c (valDiv): promotion no longer necessary
12299         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
12300         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
12301         rewritten
12302         * support/regression/tests/onebyte.c: added
12303
12304 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
12305
12306         * gen.c (genInline): reverted to old code for assemnling inline
12307         code because of bug reported James Chadd
12308
12309 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
12310
12311         * ralloc.h: missing declarations from previous patch,
12312         seems that patch for ralloc.h was never applied, fixed
12313
12314 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12315            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
12316
12317         * pcode.c,
12318         * pcode.h,
12319         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
12320         indirect addressing. Marked FSR0 as deprecated
12321         * gen.c (pointerCode): commented out, not needed now
12322         (pic16_popGet2p): new MOVFF helper function
12323         (genGenPointerGet),
12324         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
12325         (shiftRLong): removed duplicate debugging info
12326
12327 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12328
12329         * src/ds390/gen.c (genNearPointerGet),
12330         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
12331         optimization with bits, but not bitfields.
12332         * src/ds390/ralloc.c (packRegisters),
12333         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
12334
12335 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
12336
12337         * src/SDCCcse.c (algebraicOpts): copy operands before modification
12338
12339 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12340
12341         * src/SDCCsymt.h,
12342         * src/SDCCicode.c (operandFromSymbol),
12343         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
12344         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
12345         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
12346         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
12347         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
12348         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
12349         bug #892038
12350         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
12351         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
12352         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
12353         * src/SDCCsymt.c (newSymbol),
12354         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
12355         enumerator_list),
12356         * src/SDCCval.h,
12357         * src/SDCCval.c (newiList): fixed bug #885705
12358
12359 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12360
12361         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
12362         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
12363
12364 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12365
12366         * device/include/c8051f120.h,
12367         * device/include/c8051f300.h,
12368         * device/include/c8051f310.h: added/updated header files for Silicon
12369         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
12370         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
12371         in new section Submitting patches
12372
12373 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12374
12375         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
12376         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12377         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12378         genGenPointerSet),
12379         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
12380         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12381         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12382         genGenPointerSet),
12383         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
12384         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12385         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12386         genGenPointerSet),
12387         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
12388         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12389         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12390         genGenPointerSet): fixed bug #892400
12391         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
12392         to eliminate build warnings.
12393         * src/SDCCast.c (processParms),
12394         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
12395         fixed bug 751859
12396         * support/valdiag/valdiag.py: added GCC to the list of defines active
12397         when compiling with gcc
12398
12399 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12400
12401         * support/Util/SDCCerr.h,
12402         * support/Util/SDCCerr.c,
12403         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
12404         with an incomplete type (fixed bug #883734)
12405         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
12406
12407 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12408
12409         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
12410
12411 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12412
12413         * src/SDCCast.c (decorateType),
12414         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
12415         function pointer implementation
12416         * support/regression/tests/funptrs.c: added tests to verify both forms
12417         of function pointers work correctly. Added tests to verify parameters
12418         are passed in the correct order.
12419
12420 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
12421
12422         * device.c (regCompare): registers are sorted by ascending
12423         address and increasing size,
12424         * main.c (_pic16_finaliseOptions): removed the declaration
12425         of compiler macro MCU. Now a macro of the format pic18fxxxx
12426         will be defined from the command line
12427
12428 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12429             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
12430
12431         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
12432         PCOP_RLCF was overwritten!
12433         * gen.c (genSkip): commented out calls to pic16_emitcode,
12434         * (genCmpEQ): fixed "long" compares, only high word did get compared,
12435         * (genlshTwo),
12436         * (genRRC): added debugging info,
12437         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
12438         overwritten while shifting,
12439         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
12440         overwritten while shifting,
12441         * (AccLsh),
12442         * (AccRsh),
12443         * (shiftLLeftOrResult),
12444         * (shiftRLeftOrResult),
12445         * (shiftRLong),
12446         * (shiftLLong): Implemented with pic16_emitpcode
12447         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
12448         * (genLeftShift): Fixed bug, operand for shift by variable always
12449         was "and"ed with 0x0f,
12450         * (genLeftShiftLiteral),
12451         * (genrshTwo),
12452         * (genRightShiftLiteral): added debugging info,
12453         * (genrshFour): added comment,
12454         * (genRightShift): determined signedness from operand "left"
12455         instead of "result"
12456
12457 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12458
12459         * src/SDCCicode.c (geniCodeParms),
12460         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
12461         function pointers, fixed function pointer bugs #861242 and #861896
12462
12463 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12464
12465         * device/include/c8051f000.h,
12466         * device/include/c8051f120.h,
12467         * device/include/c8051f300.h: added header files for Silicon
12468         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
12469
12470 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
12471
12472         * src/SDCCast.c (processParams): added new type flow and restructured
12473         (gatherAutoInit): added new type flow
12474         (addCast): cosmetic changes
12475         (getLeftResultType): added new type flow for array indices, patch
12476         provided by Stas, see FR #877103
12477         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
12478         array index patch by Stas
12479         * src/SDCCast.h: added prototype getResultTypeFromType()
12480         * src/SDCCval.h,
12481         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
12482         * src/pic/glue.c (pic14emitStaticSeg),
12483         * src/pic16/glue.c (pic16emitStaticSeg),
12484         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
12485         for initialization of symbols
12486         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
12487         * support/Util/SDCCerr.h:
12488         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
12489         * .version: bumped version number to 2.3.8
12490         * device/include/Makefile.in (install),
12491         * doc/Makefile (install): changed to 'rm `find ...`' construct to
12492         avoid warnings
12493
12494 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
12495
12496         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
12497         Slade Rich fixed an optimization bug
12498         * src/pic/pcodepeep.c,
12499         * src/pic/pcoderegs.c
12500         * doc/Makefile (install): added test for directory
12501
12502 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12503
12504         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
12505         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
12506         * src/pic/ralloc.c (getRegPtr, getRegGpr),
12507         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
12508         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
12509         * as/mcs51/asexpr.c (term),
12510         * as/hc08/asexpr.c (term): fixed bug #887146
12511
12512 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12513
12514         * src/z80/gen.c (genMult): handle single byte result product
12515         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
12516         DUMMY_READ_VOLATILE (fixed bug #886367)
12517
12518 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
12519
12520         * support/regression/tests/libmullong.c: fixed logic, on little endian
12521         hosts we ended without a mullong_wrapper()
12522
12523 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12524
12525         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
12526         virus/worm forged address usage.
12527
12528 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
12529
12530         Fixed promotion, it should be done on AST level:
12531         * src/SDCCast.c (addCast): added promotion to int
12532         (decorateType): updated call to upCast()
12533         * src/SDCCicode.c (geniCodeLeftShift): removed call to
12534         usualUnaryConversions()
12535
12536 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
12537
12538         * support/regression/tests/literalop.c (mulWrapper): Added a
12539         wrapper to remove integer overflow warnings.
12540
12541         * support/regression/tests/float_trans.c: Made work on host.
12542
12543         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
12544         location of sz80.
12545
12546         * support/regression/generate-cases.py (main): Changed from inline
12547         to a main method.
12548
12549         * doc/Makefile (install): Changed to depth first to get rid of
12550         missing directory install warning.
12551
12552         * as/Makefile (install-doc): Made work on Mac.
12553
12554 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
12555
12556         * src/SDCCast.c: added an additional type flow in decorateType() of
12557         opposite direction, see feature request #860006; it's enabled at runtime
12558         by setting the environment variable SDCC_NEWTYPEFLOW
12559         * src/SDCCast.h: changed prototype of decorateType()
12560         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
12561         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
12562         'char' to 'int' can be omitted, if both operands are 'unsigned char';
12563         see feature request #877103
12564         * src/SDCCval.c: updated call of decorateType()
12565         (valBitwise): fixed bug #882876
12566         (valMinus): added promotion
12567         (valLogicAndOr): result is unsigned
12568         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
12569         * src/SDCCsymt.c (computeType),
12570         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
12571         must not cause an unsigned operation
12572         * src/pic/glue (pic14emitRegularMap),
12573         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
12574
12575 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
12576
12577         * src/pic/pcode.c (PCodeID): commented out left over debug code
12578
12579 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
12580
12581         * support/valdiag/tests/overflow.c: added shift tests
12582         * src/pic/device.c,
12583         * src/pic/gen.c,
12584         * src/pic/gen.h,
12585         * src/pic/glue.c,
12586         * src/pic/main.c,
12587         * src/pic/pcode.c,
12588         * src/pic/pcode.h,
12589         * src/pic/pcodepeep.c,
12590         * src/pic/pcoderegs.c,
12591         * src/pic/ralloc.c,
12592         * src/pic/ralloc.h: applied patch from Slade Rich;
12593         added support for multiple code pages and multiple RAM banks on the
12594         PIC 14 port. The ASM files now no longer simply assume all the
12595         code / RAM are in the same page / bank. This means the linker can
12596         safely allocate code/RAM of separate ASM files to different pages/banks.
12597         * doc/sdccman.lyx: added Slade's tips
12598         * src/mcs51/peeph.def: fixed bug #880768
12599
12600 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12601
12602         * src/hc08/ralloc.c (rematStr): fixed bug #879282
12603         * src/SDCCast.c (decorateType): fixed bug #880197
12604
12605 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
12606
12607         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
12608         getopt.h.
12609
12610         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
12611         strtof is not part of C89 and isn't included with Mac OS X.
12612
12613 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12614
12615         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
12616         shiftL2Left2Result): fixed bug #879326
12617         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
12618         (genMultOneByte): fixed bug in signed vs unsigned multiplication
12619         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
12620         address fetch for clr instruction
12621         * device/lib/hc08/_mulint.c: created optimized assembly version
12622         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
12623
12624 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
12625
12626         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
12627         proposed in FR #877103
12628
12629 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
12630
12631         * src/SDCCval.c (cheapestVal): added missing checks
12632         * src/SDCCicode.c (usualBinaryConversions): fixed condition
12633         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
12634
12635 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
12636
12637         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
12638         equal operands
12639
12640 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
12641
12642         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
12643         loaded with the linker search paths (-L arguments) and the libraries
12644         to be linked with the current source (-l arguments). Changes
12645         currently will affect only the pic16 port.
12646         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
12647         include path the port specific paths and port specific libraries,
12648         * gplink command now contains the $3 argument,
12649         * src/pic16/device.h,
12650         * src/pic16/device.c,: structure PIC_device is made public and
12651         renamed to PIC16_device, the same for variable Pics which is renamed
12652         to Pics16. Updated all references to them.
12653         * src/pic16/glue.c (pic16glue): corrected bug with code
12654         initialization which bypassed the variable initializations block.
12655
12656         * device/lib/pic16/Makefile.rules: removed --penable-stack from
12657         COMPILE_FLAGS and added the --nostdinc option
12658
12659 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12660
12661         * device/include/mc68hc908jb8.h: Register defs for another member
12662         of the hc08 family. Contributed by Bjorn Bringert - thanks!
12663
12664 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
12665
12666         Documenting changes from previous commits.
12667         * configure.in (version 1.56),
12668         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
12669         when generating output files to configure the pic16 library,
12670         but now I've commented it out, since gputils aren't installed in the
12671         SF compile farm, so library won't compile
12672
12673         * device/lib/Makefile.in (version 1.56): initially I've added in
12674         target 'all' the prerequestive 'model-pic16' so it compiled the
12675         pic16 library, but now I've commented it out for the same reasons
12676         above,
12677         * added targets 'model-pic16' and 'objects-pic16' to compile the
12678         library
12679         * added target 'port-specific-objects-pic16' to handle the
12680         generated libraries and copy them into the build/ directory
12681         * added target 'clean-intermediate-pic16' to clean intermediate
12682         files into pic16 directory
12683         * in target 'installdirs' added line to create directory pic16 in
12684         the installation path
12685
12686         * device/include/Makefile.in (version 1.11): in target 'install'
12687         added lines to copy all header files to installation path,
12688         * in target 'installdirs' added line create directory for pic16
12689         headers in the installation path
12690
12691 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
12692
12693         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
12694          a function call
12695
12696 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
12697
12698         * configure,
12699         * device/lib/configure.in,
12700         * device/lib/configure: fixed for autoconf 2.57
12701
12702 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12703
12704         * src/z80/main.c (_parseOptions): fixed the portmode= command line
12705         option so that it actually works. Made it specific to the z80, since
12706         the gbz80 doesn't have these kinds of I/O ports.
12707
12708 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12709
12710         * device/include/z180.h,
12711         * device/lib/_memcpy.c,
12712         * device/lib/_memmove.c,
12713         * device/lib/_mulint.c,
12714         * device/lib/ser_ir.c,
12715         * device/lib/ser_ir_cts_rts.c,
12716         * device/lib/_strcmp.c,
12717         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
12718         * src/z80/main.c (_process_pragma): add support for pragmas bank and
12719         portmode; added deprecation warning for bank= and protmode= forms.
12720         Also, guard against buffer overflow.
12721         * src/z80/gen.c (aopGet): generate better code for sfr banked read
12722
12723 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12724
12725         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
12726         changed interrupt vector table generation to only emit declared vectors.
12727         * device/include/Makefile.in: added missing backslash
12728         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
12729
12730 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
12731
12732         Mainly changes to support compilation of the device libraries
12733         * src/pic16/device.c: stack is allocated via symbol and not
12734         via literal number. The symbol is placed in the corresponding
12735         position of the data ram
12736         * (pic16_dump_section): relocatable and absolute uninitialized
12737         data are now emitted in sorted order to reduce section naming,
12738         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
12739         weren't marked as being in the access bank,
12740
12741 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
12742
12743         Added portion of GNU PIC Library under the directory
12744         device/include/pic16 and device/lib/pic16. These files
12745         contain the declarations of SFRs for the PIC18Fxx2 devices.
12746         The directory is initialized via configure from toplevel.
12747
12748 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
12749
12750         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
12751         the spilllocations to be compared correctly
12752
12753 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
12754
12755         * src/SDCCast.c (decorateType): fixed bug introduced today
12756
12757 2004-01-12  Borut Razem <borut.razem AT siol.net>
12758
12759         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
12760         doc/sdccman.lyx: upper case pragmas are deprecated
12761
12762 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
12763
12764         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
12765         in simpler and even better code
12766
12767 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
12768
12769         * src/SDCCicode.c (operandOperation): fixed bug #874819
12770         * src/SDCCast.c (decorateType): fixed
12771         char foo (unsigned long ul) { return ul > 0; }
12772
12773 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12774
12775         * doc/sdccman.lyx: Moved and added some sections, small changes
12776         all over. Telling LaTeX to be less strict with word spacing
12777         to better keep the right margin. Changed some notes about
12778         maintainance of the ports in section 3.2.1 - is it OK like this?
12779
12780 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
12781
12782         SDCC source changes:
12783         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
12784         convilong): modified to inform the pic16 port that builtin functions
12785         are external
12786
12787         PIC16 PORT specific changes:
12788         * src/pic16/device.c pic16_dump_equates() added,
12789         processor registers declared internally by the port are emitted in
12790         the translation as equates,
12791         * src/pic16/gen.c: inline code is passed unprocessed to the
12792         translation,
12793         * (pic16_popGetLit2): fnuction modified to take second operand as
12794         pCodeOp pointer and not as literal,
12795         * (popRegFromIdx): prefixed with pic16_,
12796         * (pic16_popCombine2): modified to receive already allocated pCode
12797         operands,
12798         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
12799         * (genFunction): initializes local stack frame and pushes on stack
12800         all the registers used by this function,
12801         * (genEndFunction): restores all registers from stack and restores
12802         stack frame,
12803         * src/pic16/glue.c (pic16emitRegularMap): various changes and
12804         improvements,
12805         * (pic16glue): changed the program startup sequence,
12806         * added new dbName code 'A' for functions placed in absolute section
12807         * src/pic16/main.c: added function attribute _naked,
12808         * added pragma 'code' to place a fnuction at an absolute address,
12809         * added command line arguments --debug-ralloc and --pcode-verbose,
12810         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
12811         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
12812         * (pic16_newpCodeOpLit2): modified to take the second operand as
12813         pCodeOp pointer,
12814         * (pic16_printpBlock): modified to emit each function in a separate
12815         section,
12816         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
12817         UPPER for immediate operands,
12818         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
12819         instruction,
12820         * src/pic16/peeph.def: all peepholes with movff are commented out,
12821         because there is a problem in the pcode peep optimizer,
12822         * src/pic16/ralloc.c: the register allocator can now reuse local
12823         function symbols for another function. This saves register usage.
12824         * src/pic16/ralloc.h: added flag isLocal in structure regs,
12825
12826         Added file src/pic16/NOTES with information about program writing on
12827         the current port version.
12828
12829 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12830
12831         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
12832         and peephole 252 (array access)
12833
12834 2004-01-09  Borut Razem <borut.razem AT siol.net>
12835
12836         * src/SDCCmain.c : fixed #872250: -l command line defined library
12837           files are scanned before standard library files
12838
12839 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12840
12841         * src/SDCCast.c (decorateType): fixed bug #874046
12842
12843 2004-01-09  Borut Razem <borut.razem AT siol.net>
12844
12845         * support/scripts/sdcc.nsi: remove previous installation
12846
12847 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12848
12849         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
12850         bytes for last interrupt vector (mcs51)
12851         * sdcc.spec: fixed typo
12852
12853 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12854
12855         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
12856         gen51Code): more efficient parameter receive for --model-large
12857         ("bug" #845294)
12858
12859 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12860
12861         * src/ds390/main.c,
12862         * src/z80/main.c: added missed needLinkerScript flags (more than
12863         one port structure defined in these file)
12864         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
12865         bug #795325
12866
12867 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
12868
12869         * src/SDCCmain.c: removed various references to DEFAULT_PORT
12870         * src/port.h: added flag needLinkerScript in port->linker
12871         structure to inform whether to create a .lnk file or not,
12872         * src/avr/main.c,
12873         * src/ds390/main.c,
12874         * src/hc08/main.c,
12875         * src/mcs51/main.c,
12876         * src/pic/main.c,
12877         * src/pic16/main.c,
12878         * src/xa51/main.c,
12879         * src/z80/main.c: changed appropriately to configure
12880         needLinkerScript flag
12881         * src/pic/gen.c,
12882         * src/pic16/gen.c (genAddrOf): fixed bug #863624
12883         * src/pic/glue.c: added variable udata_section_name to
12884         override default uninitialized data segment definition for
12885         devices only with SHAREBANK memory (reported from Erik Epetrich)
12886         * (pic14emitOverlay): modified to emit a commented overlay segment
12887         directive when no overlay data exist
12888         * (picglue): modified to emit uninitialized data segment
12889         according to udata_section_name
12890         * src/pic/main.c (_pic14_parseOptions): added command line
12891         options --udata-section-name=[name] to override default
12892         udata definition name
12893         * modified _linkCmd and _asmCmd to include compiler passed
12894         arguments via -W option
12895         * src/pic16/main.c: added $l in _asmCmd, changed extension for
12896         object file from '.rel' to '.o' in port->linker structure,
12897         changed size of fptr from 2 to 3 in port structure
12898
12899 2004-01-07  Borut Razem <borut.razem AT siol.net>
12900
12901         * support/scripts/sdcc.nsi: update PATH
12902         * support/scripts/sdcc.ico: craeted
12903
12904 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
12905
12906         * device/include/Makefile.in: fix install
12907         * doc/Makefile: fix install
12908
12909 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12910
12911         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
12912         in bug #860505
12913         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
12914         how the function variable allocation summary is displayed; also
12915         include information about variables allocated to the overlay
12916         segment
12917
12918 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12919
12920         * as/mcs51/lkmain.c: Help about -Y option
12921         * as/mcs51/lkarea.c: Fixed gcc warnings
12922
12923 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
12924
12925         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
12926         fixed warning
12927         * support/valdiag/tests/overflow.c: added
12928         * src/SDCCast.c (decorateType),
12929         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
12930         LEFT_OP (left shift)
12931
12932 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12933
12934         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
12935         (default behaviour).
12936
12937 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12938
12939         A python script to validate compiler diagnostic messages. It can be
12940         used to verify that sdcc complains about bad c source code and
12941         gives a good location of the error.
12942         * support/valdiag/Makefile,
12943         * support/valdiag/valdiag.py,
12944         * support/valdiag/tests/*
12945
12946 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12947
12948         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
12949         * src/SDCCsymt.c (newEnumType),
12950         * src/SDCCsymt.h
12951         * support/Util/SDCCerr.c,
12952         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
12953         enum related bugs.
12954         * support/regression/tests/enum.c: added test for enum values that
12955         require at least 2 bytes of storage.
12956
12957 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
12958
12959         * src/common.h: added ifndef/define/endif macros
12960         around the header file.
12961         Bug reported from Jesus Calvino-Fraga
12962
12963 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
12964
12965         * sdcc.spec: updated
12966         * device/include/Makefile.in: don't install CVS directories
12967         * device/lib/Makefile.in: added removal of CVS directories after install
12968         * doc/Makefile: fixed install, added local_icons
12969         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
12970         * src/mcs51/gen.c (genRightShift): fixed bug #870788
12971         * src/ds390/gen.c (genRightShift): fixed bug #870788
12972         * src/SDCCast.c (decorateType): fixed bug #870781
12973
12974 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
12975
12976         PIC16 port related changes:
12977         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
12978         added variable stackPos,
12979
12980         * gen.c: genCall, assignResultValue: added support for
12981         pushing/retrieving function parameters to/from stack,
12982         genFunction,genEndFunction: setup stack frame for the
12983         generated function,
12984         genAddrOf: will be changed according to bug 863624
12985
12986         * added files genutils.c and genutils.h which contain gen*
12987         debugged and optimised functions extracted from gen.c
12988
12989         * glue.c: added variable 'externs' which holds extern symbols,
12990         pic16emitRegularMap: is modified to properly handle relocatable
12991          symbols under the new scheme,
12992         pic16createInterruptVect: is modified
12993         pic16printPublics: is modified to emit 'global' assembler directives,
12994         added pic16_printExterns to print extern symbols,
12995         pic16glue: initializes stack/frame pointer in the beginning of
12996         the assembly output. Temporary hack, will be corrected later,
12997         because gplink yet does not support stack and SDCC does not
12998         yet support a type of crt0.o object to create the final binary.
12999
13000         * Removed many lines that contain 8051 legacy code.
13001         * The code is finally placed under a 'code' directive.
13002         * Added port specific options.
13003
13004         * _process_pragma: simplified since now we do not need *special*
13005         include file to define SFR registers. But a separate header
13006         will be needed. This will be developed later.
13007         * _pic16_parseOptions: added, parses port specific options:
13008         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
13009         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
13010         --preplace-udata-with=
13011
13012         * _pic16_setDefaultOptions: modified to initialize section names,
13013         but hack is temporarly out of order since it needs improvement.
13014         * _pic16_genAssemblerPreamble: configuration words are emitted by
13015         their address instead of their name. This part is incomplete and
13016         supports only the 18Fxx2 devices. Other devices will emit an error
13017         during assembly since they do not contain the same set of config
13018         registers
13019         * _pic16_genIVT: is modified,
13020
13021         * pcode.c: added definitions for some hardware registers that are needed
13022         for stack support
13023         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
13024         All PCI entries are updated. Now LFSR is supported.
13025         * Removed pic16_pciTRIS is mentioned by mdubuc in source
13026         * added pic16_newpCodeOpLit2 to support instructions with
13027         two literal arguments
13028         * pic16_pCode2str: corrected code that emits assembler instructions
13029         with two literal operands and those that have an access bit modifier
13030         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
13031         this fixes a bug which caused some labels to be lost, when an
13032         assembler directive was added, i.e. banksel,
13033         * pic16_FixRegisterBanking: improved logic that causes the insertion
13034         of bank switching,
13035         * InlineFunction: functions that are called once, are not any more
13036         inlined. This can be a port option in the future,
13037
13038         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
13039
13040         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
13041         hold the corresponding uninitialized symbols,
13042         * pic16_allocProcessorRegister: registers have explicit marked the
13043         accessBank field,
13044         * pic16_allocInternalRegister: registers are explicit marked as
13045         not used,
13046         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
13047         processing list, so bit registers were lost,
13048         *
13049
13050         * ralloc.h: added field 'accessBank' and original symbol operand
13051         in register definition,
13052         * removed the field isMapped from register definition,
13053
13054         ** Several functions have been removed from various sources:
13055         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
13056         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
13057         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
13058         pic16_assignRelocatableRegisters
13059
13060         ** others have been introduced:
13061         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
13062         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
13063
13064 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
13065
13066         * support/scripts/inc2h.pl: changed definition of BIT_AT
13067         to emit 'sbit at' instead of 'bit at'. This was a request.
13068
13069         PIC16 port related preliminary changes:
13070         * gen.c: prefixed function popRegFromString with
13071         pic16_ and all references to it corrected
13072         * pcode.c: all pic16_pc_* hardware registers prefixed
13073         with underscore (_),
13074         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
13075         * ralloc.c: newReg(): when register is REG_SFR then
13076         set address to rIdx,
13077         pic16_allocProcessorRegister(): marks register wasUsed=0
13078         pic16_writeUsedRegs(): added a call to assign processor
13079         registers via pic16_assignFixedRegisters
13080
13081 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13082
13083         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
13084         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
13085         variables in unused register banks.  Also the SSEG is placed
13086         wherever there is enough space for it, and IDATA can be anywhere
13087         in internal RAM.  For now compile using -Wl-Y[stack_size].
13088         The mem file is different for this option as well, since it
13089         makes no sense of talking about DSEG lenght.
13090
13091 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
13092
13093         * src/SDCClrange.c: fixed bug 869095 that caused segfault
13094         in certain cases, e.g. when ROM assignment, patch provided
13095         from Albert den Haan.
13096
13097 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
13098
13099         Many signedness and type propagation fixes:
13100         * src/SDCCicode.c: made geniCodeCast() static
13101         replaced SPEC_ by IS_ (cosmetic)
13102         (operandOperation): fixed div and mod operation
13103         (usualBinaryConversions): added support for promotion of char
13104         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
13105         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
13106         (geniCodeAdd): an array index will stay unsigned, even if promoted
13107         from char to int
13108         (geniCodeArray): ditto
13109         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
13110         * src/SDCCsymt.c (computeType): added more support for char;
13111         promotion of char is selectable by promoteCharToInt, fixed signedness
13112         for all cases
13113         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
13114         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
13115         * src/SDCCval (val*): replaced signedness calculation by
13116         computeType()
13117         rearranged if-branches (cosmetic)
13118         (valShift): added warning W_SHIFT_CHANGED
13119         (valCompare): fixed problem with different types
13120         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
13121         * support/regression/tests/literalop.c: added many cases
13122         * support/regression/tests/ast_constant_folding.c: changed finally to
13123         'unsigned int'
13124         * .version: new year, new version: 2.3.7
13125         * src/SDCCmain.c (main): applied patch #866468
13126         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
13127         provided by Scott Bronson
13128         * doc/sdccman.lyx: updated documentation for sdcdb
13129         updated and added chapter tips
13130
13131 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13132
13133         * src/SDCCsymt.h: missing from yesterday's commits
13134
13135 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13136
13137         * src/SDCC.y (struct_or_union_specifier),
13138         * support/Util/SDCCerr.c,
13139         * support/Util/SDCCerr.h: verify that struct & union tags are used
13140         as declared.
13141
13142 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13143
13144         * src/SDCCglobl.h: missing from yesterday's commits
13145
13146 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13147
13148         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
13149         sft_attributes, struct_declaration, parameter_declaration,
13150         type_name, start_block, declaration_list),
13151         * src/SDCC.lex (check_type): support redefinition of typedef names
13152
13153 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13154
13155         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
13156         aligned xdata arrays. Erik helped me with the if clause.
13157
13158 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13159
13160         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
13161         warning
13162
13163 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13164
13165         * src/SDCCast.h,
13166         * src/SDCCast.c (newAst_),
13167         * src/SDCCicode.h,
13168         * src/SDCCicode.c (ast2iCode, newiCode),
13169         * src/SDCCglobl.h,
13170         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
13171         expr, statement, expression_statement, selection_statement,
13172         iteration_statement, expr_opt, jump_statement): foundation for tracking
13173         sequence points
13174         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
13175         point code too)
13176
13177 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13178
13179         * support/Util/SDCCerr.c,
13180         * src/SDCCast.h,
13181         * src/SDCCast.c (createCase, createDefault, decorateType),
13182         * src/SDCClabel.c (labelUnreach),
13183         * src/SDCC.y (labeled_statement, jump_statement): More improvements
13184         to error messages.
13185         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
13186         (with thanks to Stas Sergeev)
13187         * device/include/time.h,
13188         * device/lib/time.c (CheckTime): suppress unreachable code warning
13189
13190 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13191
13192         * src/SDCCast.c (createIvalCharPtr),
13193         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
13194         bug #753752)
13195         * support/regression/tests/nullstring.c: tests for these two bugs
13196
13197 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13198
13199         * support/Util/SDCCerr.h,
13200         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
13201         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
13202         about storage class and 'at' used inside struct or union
13203         * src/SDCCBBlock.c (iCodeFromeBBlock),
13204         * src/SDCCcse.c (ifxOptimize),
13205         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
13206         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
13207         printIval, emitStaticSeg, emitOverlay),
13208         * src/SDCClabel.c (deleteIfx),
13209         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
13210         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
13211         gatherAutoInit, processParms),
13212         * support/Util/SDCCerr.h,
13213         * support/Util/SDCCerr.c (werrorfl): Support for better error location
13214         reporting for post-parse errors.
13215
13216 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13217
13218         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
13219         implicit casts via union; they don't work on big endian systems
13220         (possible fix for bug #861138)
13221
13222 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13223
13224         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
13225         * src/mcs51/main.c: fixed the fix for bug #737001
13226
13227 2003-12-15  Borut Razem <borut.razem AT siol.net>
13228
13229         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
13230
13231 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13232
13233         * support/makebin/makebin.c: put output in binary mode
13234
13235 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13236
13237         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
13238         xdata and data memory on startup. Set the environment variable
13239         SDCC_NOGENRAMCLEAR to disable this.
13240         * src/mcs51/peephole.def,
13241         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
13242         (allows non-interrupt and interrupt code to safely compete for a resource
13243         without the non-interrupt code having to disable interrupts)
13244
13245 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13246
13247         * src/SDCCicode.c (geniCodeAdd),
13248         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
13249         with valFromType if type might be a pointer and host is big endian).
13250         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
13251         types, not just integer types.
13252         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
13253         multiply defined with mismatching "at" address.
13254
13255 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13256
13257         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
13258         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
13259         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
13260         with embedded nulls (fixed bug #753752)
13261
13262 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13263
13264         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
13265         Apparently this did not see much testing (endless loop)
13266
13267 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13268
13269         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
13270
13271 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13272
13273         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
13274         gracefully handle NULL memmap pointers
13275
13276 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13277
13278         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
13279         instead of deleting the iCode when an operand is volatile
13280         * src/z80/gen.c (genDummyRead),
13281         * src/mcs51/gen.c (genDummyRead),
13282         * src/ds390/gen.c (genDummyRead),
13283         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
13284         not just IC_RIGHT
13285         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
13286         * src/SDCC.y: fixed bug #850420
13287
13288 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13289
13290         Applied z80 i/o port patch from Peter Townson and fixed some operators
13291         to better handle operands in A register.
13292         * device/include/z180.h
13293         * src/SDCC.y
13294         * src/SDCCglue.c
13295         * src/z80/gen.c
13296         * src/z80/gen.h
13297         * src/z80/main.c
13298         * src/z80/peeph-z80.def
13299         * src/z80/peeph.def
13300         * src/z80/z80.h
13301
13302 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13303
13304         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
13305
13306 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13307
13308         * device/lib/hc08/_mullong.c: Removed extra #endif
13309
13310 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13311
13312         * sim/ucsim/hc08.src/inst.cc,
13313         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
13314         carries from x to h
13315         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
13316         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
13317         * device/include/stdarg.h: fixed varargs for hc08
13318         * device/lib/Makefile.in,
13319         * device/lib/hc08/Makefile,
13320         * device/lib/hc08/_mulint.c,
13321         * device/lib/hc08/_mullong.c: fixed some endian problems
13322
13323 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13324
13325         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
13326         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
13327         * device/lib/_gptrget.c,
13328         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
13329
13330 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13331
13332         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
13333         * src/SDCCast.c (astErrors): fixed bug #846007
13334         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
13335
13336 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13337
13338         * src/SDCCast.c (decorateType): disabled a transformation I added in
13339         revision 1.188 (access to fields of a structure at an absolute address);
13340         it breaks with bitfields, extern declarations, and gcse analysis.
13341         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
13342         could be assigned through a pointer, so don't complain.
13343         * src/SDCCast.c (astErrors),
13344         * src/SDCCast.h,
13345         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
13346
13347 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
13348
13349         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
13350         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
13351         output of __config directives, since gpasm now supports them
13352         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
13353         pre-processor macro, i.e. -DMCU=p18f452
13354         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
13355         and modified to handle 'cast' icode similarly to '=' icode
13356         * src/pic16/device.h (typedef struct PIC_device): added field
13357         'extMIface' to indicate that chip has external memory interface
13358         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
13359         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
13360         18F8720
13361
13362 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13363
13364         * src/SDCC.y (pointer): fixed bug #846006
13365         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
13366         * src/SDCCast.c (decorateType): fixed bug #846009
13367         * src/ds390/peeph.def,
13368         * src/ds390/gen.c (genAnd, genOr),
13369         * src/mcs51/peeph.def,
13370         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
13371
13372 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13373
13374         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
13375         * src/SDCCdflow.c
13376         * src/SDCCcse.c
13377         * src/SDCCcse.h
13378         * src/SDCCBBlock.h
13379         * src/SDCCBBlock.c
13380
13381 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
13382
13383         fixed bug #845089
13384         * src/SDCCbitv.h,
13385         * src/SDCCbitv.c: added function to free a bitvector
13386         * src/SDCClrange.h,
13387         * src/SDCClrange.c: added function to recompute the liveranges
13388         * src/avr/ralloc.c,
13389         * src/ds390/ralloc.c,
13390         * src/hc08/ralloc.c,
13391         * src/mcs51/ralloc.c,
13392         * src/pic/ralloc.c,
13393         * src/pic16/ralloc.c,
13394         * src/xa51/ralloc.c,
13395         * src/z80/ralloc.c: recompute the liveranges after register packing
13396
13397 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
13398
13399         * src/SDCCloop.c (newInduction): fixed bug #845630
13400
13401 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13402
13403         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
13404         inadvertantly left behind from my 2003-11-12 change
13405
13406 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13407
13408         Updated headers I neglected to commit yesterday.
13409         * src/SDCClrange.h,
13410         * src/SDCCicode.h
13411
13412 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13413
13414         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
13415         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
13416         * src/SDCCopt.c (eBBlockFromiCode),
13417         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
13418         the creation of the key hash table from the sequencing so it can be used
13419         earlier (for some GCSE bug fixes still pending)
13420
13421 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13422
13423         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
13424         * support/regression/tests/addsub.c: testing genPlus shortcut
13425
13426 2003-11-15  Borut Razem <borut.razem AT siol.net>
13427
13428         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
13429
13430 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13431
13432         * src/SDCCcse.c (cseBBlock): fixed bug #527779
13433         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
13434         ordering is immaterial.
13435         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
13436
13437 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13438
13439         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
13440         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
13441         (SIGSEV) of bug #840381
13442         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
13443         unlink new file before rename if new and old filenames are the same)
13444
13445 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13446
13447         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
13448         uninitialized variables) for the mcs51. Set environment variable
13449         SDCC_GENRAMCLEAR to test.
13450         xdata initialization slightly shorter
13451
13452 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13453
13454         * src/SDCCsymt.h,
13455         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
13456         #838241 & 780691 (basicly the same bug)
13457         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
13458         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
13459
13460 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
13461
13462         * src/SDCCmain.c (linkEdit): "fix" #834252
13463
13464 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13465
13466         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
13467         * src/SDCCast.h,
13468         * src/SDCC.y: fixed bug #819403
13469
13470 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13471
13472         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
13473         the reentrant attribute.
13474         * src/hc08/gen.c (genPackBits): added missing stack readjustment
13475         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
13476         simulation
13477         * src/SDCCast.c (decorateType): fixed bug with storage class not being
13478         updated during pointer dereference; f.e. ~(((char *)1)*) was being
13479         erroneously reduced to a literal.
13480         * src/hc08/ralloc.c (packRegisters, rematStr),
13481         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
13482         some cases
13483
13484 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13485
13486         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
13487         * doc/sdccman.lyx: changed from 'article' to 'book'
13488         * doc/Makefile: readded test_suite_spec and cdbfileformat
13489
13490 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
13491
13492         * device/include/stdlib.h: include malloc.h to comply with ANSI
13493         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
13494
13495 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13496
13497         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
13498         * doc/clean.mk: also remove *.out files
13499         * doc/sdccman.lyx: some additions, larger top/bottom margins
13500
13501 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13502
13503         * src/SDCC.y: fixed bug #837365
13504         * support/regression/tests/bitopcse.c
13505         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
13506         a symbol (might be valop instead)
13507         * device/lib/Makefile.in: added errno.c to HC08SOURCES
13508         * device/lib/clean.mk: added hc08 to the cleaning list
13509
13510 2003-11-04  Borut Razem <borut.razem AT siol.net>
13511
13512         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
13513           made 2003-11-04
13514         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
13515           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
13516           malloc is declared in standard stdlib.h
13517
13518 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13519
13520         * device/lib/hc08/Makefile: need to clean .rel not .o files
13521         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
13522
13523 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13524
13525         * src/port.h,
13526         * src/hc08/main.c,
13527         * src/mcs51/main.c,
13528         * src/ds390/main.c,
13529         * src/z80/main.c,
13530         * src/avr/main.c,
13531         * src/pic/main.c,
13532         * src/pic16/main.c,
13533         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
13534         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
13535         tests (which uses the port's oclsExpense function)
13536         * src/SDCC.y,
13537         * src/SDCCast.c,
13538         * src/SDCCicode.c,
13539         * src/hc08/gen.c,
13540         * src/ds390/gen.c,
13541         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
13542
13543 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13544
13545         * src/SDCCcse.c (ifxOptimize),
13546         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
13547         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
13548         deleting the IFX iCode.
13549         * src/hc08/ralloc.c: reduced unneeded slocs
13550         * src/hc08/gen.c: fixed bug in asmopToBoolean
13551
13552 2003-11-04  Borut Razem <borut.razem AT siol.net>
13553
13554         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
13555           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
13556           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
13557           transferred to configure
13558
13559 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
13560
13561         Use headers defined in the C[++] standards:
13562         * sim/ucsim/gui.src/serio.src/fileio.cc
13563         * sim/ucsim/gui.src/serio.src/frontend.cc
13564         * sim/ucsim/gui.src/serio.src/main.cc
13565         * sim/ucsim/gui.src/serio.src/posix_signal.cc
13566         * support/Util/NewAlloc.c
13567         * as/hc08/lklibr.c
13568         * as/mcs51/lklibr.c
13569         * as/z80/aslist.c
13570         * as/z80/assym.c
13571
13572 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13573
13574         * Added MSVC projects for hc08 assembler and linker:
13575         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
13576         /as/hc08/link_hc08.dsp
13577
13578 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
13579
13580         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
13581
13582 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
13583
13584         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
13585
13586 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13587
13588         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
13589
13590 2003-10-31  Borut Razem <borut.razem AT siol.net>
13591
13592         * support/cpp2/cpplib.h,
13593           support/cpp2/cpplib.c,
13594           support/cpp2/cpplex.c,
13595           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
13596           to switch _asm block preprocessing on / off. Default is
13597           #pragma preproc_asm +
13598
13599 2003-10-31  Borut Razem <borut.razem AT siol.net>
13600
13601         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
13602           when outputting comment blocks (when executed with -C option) and
13603           _asm (SDCPP specific) blocks
13604
13605 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13606
13607         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
13608
13609 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
13610
13611         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
13612
13613 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
13614
13615         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
13616         * src/SDCCast.c (decorateType): fixed bug #832664
13617
13618 2003-10-31  Borut Razem <borut.razem AT siol.net>
13619
13620         * support/cpp2/cpplex.c: fixed for SDCPP:
13621           comments(when executed with -C option) and _asm blocks
13622           were included even if they where in skipped #if block.
13623           Applied solution from GCC cpp 3.3.2
13624
13625 2003-10-31  Borut Razem <borut.razem AT siol.net>
13626
13627         * src/SDCC.lex: sdcc now understands both formats:
13628           '# <line_number> <file_name>' and
13629           '#line <line_number> <file_name>'
13630         * support/cpp2/cppmain.c: sdcpp now generates the standard
13631           '# <line_number> <file_name>' instead of former
13632           '#line <line_number> <file_name>'
13633
13634 2003-10-30  Borut Razem <borut.razem AT siol.net>
13635
13636         * support/cpp2/cpphash.h,
13637         * support/cpp2/cpplib.h
13638         * support/cpp2/cpplex.c,
13639         * support/cpp2/cppmain.c,
13640         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
13641
13642 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13643
13644         Fixed a number of problems revealed by bug #827883.
13645         * src/SDCCloop.c (loopInvariants): Spill location of the
13646         result operand should be recomputed if extracted from
13647         a loop. Also, don't extract assignments of an iTemp
13648         from a literal.
13649         * src/SDCCast.c (isConformingBody): loop reversal should
13650         not occur if the control variable is involved with a
13651         relational operator.
13652
13653 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
13654
13655         * .version: bumped to 2.3.6 to reflect the big improvements
13656         made by Erik and Klaus. Thanks!
13657
13658 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
13659
13660         Replaced the livrange code.
13661         * src/SDCClrange.c: added new LR code
13662         * src/SDCCloop.c,
13663         * src/SDCCBBlock.h: removed remainig parts from old LR code
13664         * src/ds390/ralloc.c,
13665         * src/ds390/gen.c: minor fixes to make it work with new code
13666
13667 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13668
13669         * as/hc08/asm.h,
13670         * as/hc08/lkrloc.c,
13671         * src/hc08/gen.c,
13672         * src/hc08/ralloc.c: Fix various warnings related to the hc08
13673         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
13674         (tweaked fix for bug #818696)
13675
13676 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13677
13678         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
13679
13680 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13681
13682         * src/SDCCmain.c,
13683         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
13684         * src/mcs51/gen.c (gencjneshort),
13685         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
13686         more efficient (per Scott Bronson's suggestion)
13687
13688 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13689
13690         Extended the semantics of the critical keyword to include
13691         individual statements. See RFE #827755 and #799831
13692         * src/SDCC.y
13693         * src/SDCCicode.c
13694         * src/SDCCopt.c
13695         * src/SDCCast.c
13696         * support/Util/SDCCerr.c
13697         * support/Util/SDCCerr.h
13698         * src/mcs51/gen.c
13699         * src/ds390/gen.c
13700         * src/hc08/gen.c
13701
13702 2003-10-19  Borut Razem <borut.razem AT siol.net>
13703
13704         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
13705
13706 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13707
13708         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
13709         Fixed bug #818696
13710         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
13711         and predecrement operand is displayed
13712
13713 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
13714
13715         * src/SDCCval.c (valMinus): fixed bug #826041
13716
13717 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13718
13719         Some hc08 related updates that I missed earlier
13720         * sim/ucsim/stypes.h
13721         * support/regression/ports/hc08/spec.mk
13722
13723 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13724
13725         New target "hc08" for the Motorola 68hc08 family of micros
13726
13727         * configure
13728         * configure.in
13729         * Makefile
13730         * src/hc08/*
13731         * src/SDCCmain.c
13732         * src/port.h
13733         * sim/ucsim/hc08.src/*
13734         * sim/ucsim/configure.in
13735         * src/ucsim/configure
13736         * sim/ucsim/packages_in.mk
13737         * as/hc08/*
13738         * as/Makefile
13739         * device/include/mc68hc908qy.h
13740         * device/lib/hc08/*
13741         * device/lib/Makefile.in
13742         * support/regression/ports/hc08/*
13743         * support/regression/Makefile
13744
13745 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13746
13747         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
13748         regression test
13749         * src/ds390/gen.c (genCast): fixed bug #821957
13750
13751 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
13752
13753         * device/lib/logf.c: "fixed" overlay bug
13754         * support/regression/ports/host/spec.mk: added m library
13755         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
13756         * support/regression/tests/float_trans: added (for Eric)
13757
13758 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
13759
13760         * src/mcs51/gen.c (genCpl): fixed bug
13761         http://sf.net/mailarchive/message.php?msg_id=6263915
13762
13763 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
13764
13765         * src/SDCCast.c (decorateType): added extended constant folding
13766         * src/SDCCsymt.c (computeType): cleanup
13767         * src/SDCCval.c (valShift): minor optimization
13768         * support/regression/tests/ast_constant_folding.c: added
13769
13770 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13771
13772         * src/SDCCmain.c: removed some unintended changes
13773
13774 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13775
13776         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
13777         * src/z80/gen.c: fixed part of bug #817589
13778         * src/SDCCsymt.c (checkFunction): fixed bug #817895
13779
13780 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
13781
13782         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
13783         * src/SDCCcflow.c
13784         * src/SDCCcse.c
13785         * src/SDCCdflow.c
13786         * src/SDCClabel.c
13787         * src/SDCClrange.c
13788         * src/SDCCmem.c
13789         * src/SDCCopt.c
13790         * src/SDCCpeeph.c
13791         * src/SDCCset.c
13792         * src/avr/ralloc.c
13793         * src/ds390/ralloc.c
13794         * src/izt/ralloc.c
13795         * src/mcs51/ralloc.c
13796         * src/pic/ralloc.c
13797         * src/pic16/ralloc.c
13798         * src/xa51/ralloc.c
13799         * src/z80/ralloc.c
13800         * src/z80/gen.c: removed unused label "release:"
13801
13802 2003-10-06  Borut Razem <borut.razem AT siol.net>
13803
13804         * src/SDCC.lex: removed definition of unused variables
13805           save_optimize and save_options
13806
13807 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
13808
13809         * clean.mk: removed '=' in "-maxdepth=1"
13810         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
13811         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
13812
13813 2003-10-06  Borut Razem <borut.razem AT siol.net>
13814
13815         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
13816           my_unput() replaced by unput()
13817
13818 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
13819
13820         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
13821         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
13822         type-punned pointer will break strict-aliasing rules"
13823         Old LR behaviour is again default; Klaus' LR can be choosen by
13824         defining the environment variable LRKLAUS
13825         * src/SDCCBBlock.h
13826         * src/SDCCloop.c
13827         * src/SDCClrange.c
13828         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
13829         * clean.mk: fixed removal of files in bin/CVS/
13830         * device/lib/clean.mk: fixed removal of directories small and large
13831         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
13832         * src/SDCCicode.c,
13833         * src/SDCCval.c: removed superflous test for pedantic
13834
13835 2003-10-05  Borut Razem <borut.razem AT siol.net>
13836
13837         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
13838           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
13839           message "unmatched #pragma SAVE and #pragma RESTORE"
13840
13841 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13842
13843         * doc/sdccman.lyx: various additions and updates (interrupts, inline
13844           assembly, critical functions, atomic, nojtbound)
13845
13846 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
13847
13848         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
13849         * src/SDCCBBlock.h
13850         * src/SDCCloop.c
13851         * src/SDCCloop.h
13852         * src/SDCClrange.c
13853
13854 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13855
13856         * src/z80/gen.h,
13857         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13858         * src/mcs51/gen.h
13859         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13860         * src/ds390/gen.h
13861         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13862         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
13863         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
13864
13865 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13866
13867         * src/z80/gen.c (genRet): fixed bug #524753
13868         * src/z80/gen.c (genCast): fixed internal error on cast from
13869         pointer to long
13870         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
13871         fix for bug #477835 to the z80
13872         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
13873         for tracking iCodes in the peephole optimizer for z80
13874
13875 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13876
13877         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
13878         the other part of bug #814548
13879         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
13880
13881 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
13882
13883         * src/SDCCcse.c: fixed part of bug #814548
13884
13885 2003-09-28  Borut Razem <borut.razem AT siol.net>
13886
13887         * src/asm.c: rewrite of printILine() to use temporary file instead
13888           a pipe
13889         * src/xa51/main.c: commented out declaration of int rewinds
13890
13891 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13892
13893         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
13894
13895 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13896
13897         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
13898         * src/asm.c (printILine): Fixed bug #811015
13899
13900 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13901
13902         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
13903         freeing.
13904
13905 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13906
13907         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
13908         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
13909         to correctly handle general case of AOP_PAIRPTR
13910         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
13911
13912 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13913
13914         * src/mcs51/ralloc.c (fillGaps),
13915         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
13916         register positioning bug)
13917
13918 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
13919
13920         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
13921
13922 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13923
13924         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
13925         genCodePointerGet, genGenPointerGet, genFarPointerSet,
13926         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
13927         (ralloc doesn't intentionally do this now, but perhaps later)
13928         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
13929         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
13930         register positioning bugs (Fixed bug #762602 and #795325)
13931         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
13932         (Fixed bug #808779)
13933         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
13934         lines that --i-code-in-asm generates
13935
13936 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13937
13938         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
13939         trying to fclose a FILE* that was already closed.
13940
13941 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13942
13943         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
13944         of const struct should be treated as if const themselves)
13945
13946 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
13947
13948         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
13949
13950 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13951
13952         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
13953         Unix (/n) and DOS (/r/n) line terminations.
13954
13955 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13956
13957         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
13958         bug #613775
13959
13960 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13961
13962         * src/mcs51/gen.c (genFunction, genEndFunction),
13963         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
13964         and restore of EA so that stack offsets to parameters are
13965         correct when using both critical and reentrant/stack-auto.
13966         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
13967         size (can be triggered in error if sloc is shared between
13968         different sized objects)
13969         * device/include/float.h: fixed macros to explicitly use
13970         unsigned long where needed
13971
13972 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
13973
13974         Feature req. 799831: added code to allow nesting of critical functions
13975         * src/mcs51/gen.c (genFunction, genEndFunction)
13976         * src/ds390/gen.c (genFunction, genEndFunction)
13977
13978 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13979
13980         * src/SDCCsymt.c (sclsFromPtr),
13981         * src/SDCCsymt.h,
13982         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
13983         support for standard C idiom of memory mapped variables; for
13984         example, *((xdata int*)0x1234) = 1 is now internally equivalent
13985         to xdata int at 0x1234 tempvar = 1.
13986         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
13987         provided by Akiya ISHIDA
13988
13989 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
13990
13991         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
13992         * src/SDCCval.c (constVal): added reduction from int to char
13993         * src/SDCCval.c (valMult, valDiv): fixed sign handling
13994         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
13995         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
13996         to ignore the sign
13997         * support/regression/tests/shifts.c: fixed
13998
13999 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14000
14001         * src/z80/gen.c (genXor): Fixed bug #805445
14002
14003 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14004
14005         Fixed bug #621531 (const & volatile confusion in the type chain).
14006         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
14007         refer to the const or volatile state of the pointer itself.
14008
14009         * src/SDCCast.c
14010         * src/SDCCglue.c
14011         * src/SDCCicode.c
14012         * src/SDCCsymt.c
14013         * src/SDCCval.c
14014         * src/SDCC.y
14015         * src/SDCCsymt.h
14016         * src/pic/gen.c
14017         * src/pic/ralloc.c
14018         * src/pic16/gen.c
14019         * src/pic16/ralloc.c
14020         * support/regression/tests/const.c
14021
14022 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14023
14024         When checking for duplicated modules, use absolute paths
14025         instead of relative paths.  Files changed:
14026
14027         * as/mcs51/lklib.c
14028         * link/z80/lklib.c
14029
14030 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14031
14032         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
14033
14034 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14035
14036         * device/include/string.h: added size_t typedef, changed
14037         prototypes to use size_t, eliminated separate reentrant and
14038         non-reentrant declarations, added _memmove declaration
14039         * device/lib/_memcpy.c: changed to use size_t instead of int,
14040         changed /4 to >>2 to avoid division library call
14041         * device/lib/_memcmp.c,
14042         * device/lib/_memset.c,
14043         * device/lib/_strncat.c,
14044         * device/lib/_strncpy.c,
14045         * device/lib/_strncmp.c: changed to use size_t instead of int
14046         * device/lib/_memmove.c: new file (fixed bug #772294)
14047         * device/lib/Makefile.in: added _memmove.c
14048         * device/lib/z80/asm_strings.s: fixed bug #772290
14049         * support/regression/tests/bitfields.c: attempt to fix host assertion
14050         failure on amd64-unknown-linux2.2
14051
14052 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14053
14054         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
14055         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
14056         * as/z80/asmain.c (main): fixed bug #801766
14057
14058 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
14059
14060         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
14061         compilers
14062
14063 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14064
14065         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
14066         reported in bug #800609
14067
14068 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
14069
14070         * Top header beautifications in src/pic16 directory:
14071           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
14072           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
14073           pcoderegs.h, ralloc.c, ralloc.h
14074         * main.c: added top header and GPL license notice
14075         * pcode.c: fixed the if-conditional warning
14076
14077 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
14078
14079         * device/lib/_mullong.c: replaced int by short for gcc
14080
14081 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14082
14083         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
14084         and JUMPTABLE iCodes properly now (worked by accident before)
14085         * src/mcs51/gen.c (leftRightUseAcc),
14086         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
14087         iCode properly now. Use getSize instead of nRegs since a & b
14088         aren't part of the nRegs tally.
14089
14090 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
14091
14092         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
14093         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
14094           before instructions that use the _STATUS register
14095
14096 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
14097
14098         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
14099         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
14100         fetching of the pointer
14101         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
14102         copied from genNearPointerSet()
14103         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
14104         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
14105         If they pop r0/r1 they must be called in the opposite order than aopOp().
14106         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
14107         (resp. --stack-auto), prepared for --xstack
14108
14109 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14110
14111         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
14112
14113 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
14114
14115         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
14116         these ports have their own __sdcc_external_start()
14117
14118 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
14119
14120         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
14121         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
14122         type for bits was changed. It resulted in bit variables becoming
14123         global, which is not permitted in PIC 14 assembly output.
14124
14125 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14126
14127         * doc/sdccman.lyx: various additions and updates. Rearranged sections
14128
14129 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14130
14131         Z80 and MCS51 linkers complaint if a public symbol is defined
14132         in more than one library module:
14133
14134         * as/mcs51/lklib.c
14135         * link/z80/lklib.c
14136         * as/mcs51/Makefile.in
14137
14138 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14139
14140         A few small changes that speed up the peephole optimizer.
14141
14142         * src/SDCCpeeph.c
14143
14144 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14145
14146         Try to make the peephole optimizer smarter by maintaining
14147         an association between the assembly source code and the
14148         iCodes that originated them. Put this information to use
14149         with a new peephole rule condition "notVolatile" so that
14150         the rules can be aggressive yet still safe.
14151
14152         * src/SDCCpeeph.c
14153         * src/SDCCpeeph.h
14154         * src/mcs51/gen.c
14155         * src/mcs51/peeph.def
14156
14157 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14158
14159         Fixed bug #741761
14160
14161         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
14162         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
14163         if the left or right operand symbols have the accuse flag set.
14164
14165 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14166
14167         Changed the type of the result of the ! (NOT) operator to char;
14168         previously it returned the same type as the source. This allows
14169         us to eliminate all the genFloatNot functions (all of its target
14170         implementations were very buggy) since !float can use the same
14171         code as !long now.
14172
14173         * src/SDCCicode.c (ast2iCode): ! returns char
14174         * src/mcs51/gen.c (genNot, genNotFloat),
14175         * src/ds390/gen.c (genNot, genNotFloat),
14176         * src/z80/gen.c (genNot, genNotFloat),
14177         * src/pic/gen.c (genNot, genNotFloat),
14178         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
14179
14180 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
14181
14182         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
14183         1. Interrupt would not compile properly. Ensure PCLATH register is saved
14184            during interrupts. Ensure WSAVE is located at a shared bank address.
14185         2. Fixed page selection in some places
14186         3. Fixed BTFSS/C to where necessary use registers directly and not simply
14187            the registers name strings.
14188         4. Fixed "signed / unsigned compare" compiler warnings.
14189         5. The PIC port manages its own allocation of the general purpose
14190            registers, but makes no attempt to reuse them. As a result when
14191            compiling it soon runs out of general purpose registers. Some
14192            additional code was added to the files pcode.c and device.c to walk
14193            through the function call tree and rename the registers so that they
14194            get reused.
14195
14196         * src/pic/device.c
14197         * src/pic/gen.c
14198         * src/pic/glue.c
14199         * src/pic/pcode.c
14200         * src/pic/pcode.h
14201         * src/pic/ralloc.c
14202         * src/pic/ralloc.h
14203         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
14204         genPlus() & genMinus() when the result is the same as left or right
14205
14206 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14207
14208         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
14209
14210 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14211
14212         Made bitfield a distinct type from bit so that bitfields
14213         convert as per ANSI C and bits retain their traditional
14214         boolean style behaviour. Implemented bitfield support in
14215         the z80 port.
14216
14217         * src/SDCCsymt.h,
14218         * src/SDCCsymt.c,
14219         * src/SDCCast.c,
14220         * src/cdbFile.c,
14221         * src/mcs51/gen.c,
14222         * src/ds390/gen.c: bit v bitfield split
14223         * src/z80/gen.c: New support for bitfields
14224         * support/regression/tests/bitfields.c: reenabled z80,
14225         added more tests
14226
14227 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14228
14229         Rules 246.x, 247.x relate to bitfields, the others speed up
14230         access to xdata mapped I/O devices.
14231
14232         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
14233
14234 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14235
14236         Cleaned up genPackBits and genUnpackBits and added two helper
14237         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
14238         for literal assignments in genPackBits (thanks to Frieder for
14239         reminding me).
14240
14241         * src/mcs51/gen.c
14242         * src/ds390/gen.c
14243
14244 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14245
14246         Fixed bug #748310 (pointer to function type mishandled when the
14247         function name is omitted). Also fixed a SIGSEGV when a function
14248         attribute (reentrant, etc) is used on a non-function or on a
14249         function but misplaced before the parameter list.
14250
14251         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
14252         bug #748310
14253         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
14254         * support/Util/SDCCerr.h,
14255         * support/Util/SDCCerr.c: Added func attr misuse error msg
14256
14257 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
14258
14259         Fixed bug #787649 by anonymous
14260         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
14261         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
14262
14263 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14264
14265         Fixed numerous bitfield problems.
14266
14267         * src/SDCC.y: More bitfield related error checking
14268         * src/SDCCsymt.h,
14269         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
14270         * support/Util/SDCCerr.h,
14271         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
14272         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
14273         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
14274         * support/regression/tests/bitfields.c: tests added
14275
14276 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14277
14278         Made the constant following the "interrupt" keyword optional. If
14279         omitted, the function will not automatically be given an entry
14280         in the interrupt vector table (similar to #pragma NOIV, but
14281         less syntacticly kludgy). The interrupt number is also now
14282         range checked. Also fixed a bug in the high order bit example
14283         in the manual.
14284
14285         * src/SDCC.y
14286         * src/SDCCmem.c
14287         * src/SDCCglue.c
14288         * src/SDCCsymt.h
14289         * support/Util/SDCCerr.c
14290         * support/Util/SDCCerr.h
14291         * doc/sdccman.lyx
14292
14293 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
14294
14295         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
14296         * src/SDCCicode.c (operandOperation): rewritten some ops
14297         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
14298         * src/SDCCsymt.c (computeType): literals are handled the same way as any
14299         other type
14300         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
14301         be re-activated by defining REDUCE_LITERALS)
14302         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
14303         unsigned, but are signed by default
14304         * src/SDCCval.c (constVal): rearranged
14305         * src/SDCCval.c (valMod): preliminary fix
14306         * src/SDCCval.c (valCastLiteral): use TYPE_* types
14307         * support/regression/literalop.c: added, work in progress
14308
14309 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14310
14311         Generate warnings for useless declarations like "char data;"
14312         that don't do what new users expect.
14313
14314         * src/SDCC.y
14315         * support/Util/SDCCerr.h
14316         * support/Util/SDCCerr.c
14317
14318 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
14319
14320         * src/SDCCval.c (valMult): fix overflow detection of negative int
14321
14322 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14323
14324         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
14325
14326         Changes to support big endian targets:
14327
14328         * src/ports.h
14329         * src/SDCCglue.c
14330         * src/avr/main.c
14331         * src/ds390/main.c
14332         * src/izt/i186.c
14333         * src/mcs51/main.c
14334         * src/pic/main.c
14335         * src/pic16/main.c
14336         * src/xa51/main.c
14337         * src/z80/main.c
14338
14339 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
14340
14341         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
14342         * device/lib/time.c: fixed warning "integer overflow in expression"
14343
14344 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
14345
14346         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
14347         * src/SDCCval.c (constVal): changed default to signed; hex and octal
14348         constants are unsigned; added recognition of "u" flag for unsigned
14349         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
14350         * src/SDCCval.c (valDiv, valMod): fixed signdness
14351         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
14352         signedness of modulo, left and right shift
14353         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
14354         * support/Util/SDCCerr.h: added warning W_INT_OVL
14355         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
14356         * src/SDCCast.c (ast_print): improved output of constants
14357
14358 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14359
14360         Fixed some warnings when building with MSVC:
14361
14362         * as/mcs51/asdata.c
14363         * as/z80/asdata.c
14364         * as/mcs51/asm.h
14365         * as/z80/asm.h
14366         * link/z80/aslink.h
14367         * link/z80/lkdata.c
14368         * link/z80/lkeval.c
14369         * link/z80/lkgb.c
14370         * link/z80/lkihx.c
14371         * link/z80/lks19.c
14372         * link/z80/lksym.c
14373         * support/cpp2/cpplib.c
14374         * src/ds390/gen.c
14375         * src/mcs51/gen.c
14376
14377 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
14378
14379         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
14380
14381 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14382
14383         * support/librarian/clean.mk: Do not remove Makefile.
14384         * support/librarian/Makefile: added.
14385
14386 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14387
14388         Added librarian to MSVC build:
14389         * all.dsp
14390         * sdcc.dsw
14391         * support/librarian/librarian.dsp
14392
14393         'configure' not needed for librarian, removed:
14394         * support/librarian/configure
14395         * support/librarian/configure.in
14396         * support/librarian/config_in.h
14397         * support/librarian/Makefile.in
14398
14399         Hopefully these ones built the librarian and the rest of sdcc properly:
14400         * Makefile
14401         * Makefile.common.in
14402
14403         Messed up 'configure', so revert to previous version:
14404         * configure
14405         * configure.in
14406
14407 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
14408
14409         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
14410         there, while the mantissa of a double is "only" 53 bits wide.
14411
14412 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14413
14414         Adding sdcclib to the build.  MSVC project coming soon.
14415         Files added/changed:
14416
14417         * support/librarian/clean.mk
14418         * support/librarian/configure
14419         * support/librarian/configure.in
14420         * support/librarian/config_in.h
14421         * support/librarian/Makefile.bcc
14422         * support/librarian/Makefile.in
14423         * support/librarian/sdcclib.c
14424         * Makefile.bcc
14425         * Makefile
14426         * Makefile.common.in
14427         * configure
14428         * configure.in
14429
14430 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14431
14432         Linker now complaints if linked modules have conflicting options, for
14433         example, one compiled using --model-large and another one compiled with
14434         --model-small.  The following files were modified:
14435
14436         * as/mcs51/asdata.c
14437         * as/mcs51/aslink.h
14438         * as/mcs51/asm.h
14439         * as/mcs51/asmain.c
14440         * as/mcs51/asout.c
14441         * as/mcs51/i51pst.c
14442         * as/mcs51/lkdata.c
14443         * as/mcs51/lklibr.c
14444         * as/mcs51/lkmain.c
14445         * as/z80/asdata.c
14446         * as/z80/asm.h
14447         * as/z80/asmain.c
14448         * as/z80/asout.c
14449         * as/z80/z80pst.c
14450         * link/z80/aslink.h
14451         * link/z80/lkdata.c
14452         * link/z80/lklibr.c
14453         * link/z80/lkmain.c
14454         * src/SDCCglue.c
14455
14456 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14457
14458         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
14459         as/mcs51/lklibr.c: Generate a warning when a library is not found.
14460
14461 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
14462
14463         * src/z80/mappings.i: fix _mul[us][int,long] entries
14464
14465 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14466
14467         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
14468
14469 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
14470
14471         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
14472         * support/regression/tests/bitopcse.c: added
14473         fixed warning:
14474         * src/avr/gen.c:
14475         * src/pic/gen.c:
14476         * src/pic16/gen.c:
14477         * src/z80/gen.c:
14478         * src/xa51/gen.c:
14479
14480 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14481
14482         added support for new library format to z80, gbz80 linkers:
14483         *link/z80/aslink.h
14484         *link/z80/lklex.c
14485         *link/z80/lklib.c
14486         *link/z80/lklist.c
14487
14488 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
14489
14490         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
14491         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
14492
14493 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
14494
14495         added DUMMY_READ_VOLATILE:
14496         * src/SDCC.y:
14497         * src/avr/gen.c:
14498         * src/xa51/gen.c:
14499         * src/z80/gen.c:
14500         * src/pic/gen.c:
14501         * src/pic16/gen.c:
14502         * src/mcs51/gen.c:
14503         * src/ds390/gen.c:
14504         * src/SDCCcse.c (algebraicOpts): many improvements
14505         * src/SDCCcse.h: removed algebraicOpts()
14506         * src/SDCCicode.c (picDummyRead): added
14507
14508 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14509
14510         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
14511         "Insufficient space in data memory".
14512
14513 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14514
14515         * src/mcs51/gen.c: fixed bug #771358
14516         * src/z80/gen.c: fixed bug #759087
14517
14518 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
14519
14520         * src/pic16/glue.c: minor cleanup by Vangelis
14521
14522 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14523
14524         * device/include/regc515c.h: fixed #758477
14525         * device/lib/_gptrget.c: saving some cycles in generic pointer get
14526         * device/lib/_gptrput.c: saved a few bytes
14527         * my tab spacing is 8, yours too?)
14528         * device/lib/_ser.c: process RX bytes earlier than TX bytes
14529         * device/lib/serial.c: process RX bytes earlier than TX bytes
14530         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
14531
14532 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14533
14534         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
14535
14536 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14537
14538     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
14539
14540 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
14541
14542         * device/lib/Makefile.in: bad fix, reverted to 1.43
14543
14544 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
14545
14546         * device/lib/Makefile.in: added missing z80 object files
14547
14548 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
14549
14550         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
14551         pic16 progress by Vangelis:
14552         * src/SDCCglobl.h:
14553         * src/SDCCmain.c:
14554         * src/pic/Makefile:
14555         * src/pic:
14556         * pic/Makefile:
14557         * pic16/device.c:
14558         * pic16/device.h:
14559         * pic16/gen.c:
14560         * pic16/gen.h:
14561         * pic16/genarith.c:
14562         * pic16/glue.c:
14563         * pic16/main.c:
14564         * pic16/pcode.c:
14565         * pic16/pcode.h:
14566         * pic16/pcodepeep.c:
14567         * pic16/peeph.def:
14568
14569 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14570
14571     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
14572
14573 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14574
14575     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
14576     added gbz80 build to MSVC project.
14577     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
14578     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
14579     from 8051 stuff and setup so it links using a .lnk file.
14580
14581 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14582
14583     * support/librarian/sdcclib.c: sdcc librarian.
14584     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
14585     with sdcclib.
14586
14587 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14588
14589     * as/mcs51/lkmain.c: properly handle extensions in function afile.
14590
14591 2003-07-02  Borut Razem <borut.razem AT siol.net>
14592
14593         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
14594         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
14595         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
14596         src/xa51/main.c, src/z80/main.c:
14597         virtualization of glue() function: each port has it's own glue function,
14598         which is accessed by do_glue function pointer in PORT.general structure
14599
14600 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
14601
14602         * DS800C400 fun, improved ROM interface and tinibios.
14603
14604 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
14605
14606         * More support for DS80C400. Now includes beginning of interface to ROM.
14607
14608 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
14609
14610         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
14611
14612 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14613
14614         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
14615
14616 2003-06-19  Borut Razem <borut.razem AT siol.net>
14617
14618         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
14619
14620 2003-06-19  Borut Razem <borut.razem AT siol.net>
14621
14622         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
14623         fixed Z80 port - crt0.o: cannot open.
14624
14625 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
14626
14627         * support/Util/MySystem.c (merge_command): revert bad fix
14628
14629 2003-06-18  Borut Razem <borut.razem AT siol.net>
14630
14631         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
14632
14633 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14634
14635         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
14636         option --use-stdout sends errors to stdout instead of stderr.
14637
14638 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
14639
14640         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
14641
14642 2003-06-15  Borut Razem <borut.razem AT siol.net>
14643
14644         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
14645         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
14646         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
14647         fixed width array of pointers replaced with sets;
14648         multiple include and lib paths ared transferred to preprocessor and linker
14649         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
14650         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
14651         fixed width array of pointers
14652         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
14653         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
14654         fixupPath(), getPathDifference()
14655         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
14656         fixed width array of pointers
14657
14658 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
14659
14660         * src/pic16/ralloc.c: fix warnings
14661         * src/pic16/pcode.c: fix warning
14662
14663 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
14664
14665          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
14666         know all the details, but essentially this set of changes enable
14667         the pic16 port to generate movff instructions and generate assembler
14668         directives,
14669         * src/SDCCmain.c:
14670         * src/pic16/gen.c:
14671         * src/pic16/glue.c:
14672         * src/pic16/pcode.c:
14673         * src/pic16/device.c:
14674         * src/pic16/main.c:
14675         * src/pic16/pcode.h:
14676         * src/pic16/pcoderegs.c:
14677         * src/pic16/ralloc.c:
14678         * src/pic16/ralloc.h:
14679
14680 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14681
14682         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
14683         added option --vc, so sdcc errors and warnings are compatible with
14684         Microsoft Visual Studio.
14685
14686 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14687
14688         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
14689           device/lib/libfloat.lib: added atof function.
14690
14691 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
14692
14693         * doc/sdccman.lyx: updated to Lyx 1.3
14694         * doc/cdbfileformat.lyx: updated to Lyx 1.3
14695         * doc/test_suite_spec.lyx: updated to Lyx 1.3
14696         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
14697
14698 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
14699
14700         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
14701
14702 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14703
14704         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
14705           additions to the "related tools/documentation" section
14706
14707 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
14708
14709         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
14710
14711 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
14712
14713         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
14714         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
14715
14716 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
14717
14718         * doc/sdccman.lyx: fix double dash and other minor things
14719         * doc/Makefile: fix double dash
14720
14721 2003-05-28  Karl Bongers(patches from Martin Helmling)
14722         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
14723           condition and ignore commands.
14724
14725 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14726
14727         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
14728           is in parts still quite out of date, I did changes as far as I felt makes sense
14729           for a non-native english speaker.
14730           Please feel free to add to the manual or to correct my changes.
14731         * doc/Makefile: undid touching the date of intermediate tex files.
14732
14733 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14734
14735         * doc/sdccman.lyx: Manual has an index now
14736
14737 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
14738
14739         Finalize muluint/mulsint and mululong/mulslong merging:
14740         * device/lib/_mulint.c
14741         * device/lib/_mullong.c
14742         * device/lib/gbz80/mul.s
14743         * device/lib/gbz80/stubs.s
14744         * device/lib/z80/mul.s
14745         * device/lib/z80/stubs.s
14746         * src/SDCCsymt.c (initCSupport)
14747
14748 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14749
14750         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
14751         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
14752           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
14753           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
14754           instead of /Zm500.
14755
14756 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14757
14758         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
14759           the regression tests I'm not brave enough to enable 245.b, 245.c
14760         * doc/sdccman.lyx: added latex preamble for hyperref package.
14761           Using pdflatex this will give you a hyperlinked pdf file with
14762           bookmarks. (prepend '%' before /usepackage if this breaks something)
14763
14764 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14765
14766          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
14767
14768 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
14769
14770         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
14771
14772 2003-05-21    <johan AT balder>
14773
14774         * src/SDCCglue.c (printIval): fixed bug #739934
14775
14776 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
14777
14778         Applied patch from bug 737905 (renamed yylineo to mylineno):
14779         * src/altlex.c
14780         * src/SDCCast.c
14781         * src/SDCglobl.h
14782         * src/SDCC.lex
14783         * src/SDCCsymt.c
14784         * src/SDCCval.c
14785         * src/pic16/pcode.c: Cleaned warnings
14786         * src/pic16/pcodeflow.c: Cleaned warnings
14787         * src/pic16/pcoderegs.c: Cleaned warnings
14788
14789 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
14790
14791         * src/pic16/pcode.c: Cleaned warnings
14792         * src/pic16/pcodepeep.c: Cleaned warnings
14793         * src/pic16/ralloc.c: Cleaned warnings
14794
14795 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
14796
14797         * doc/sdccman.lyx: fixed bug 739745
14798         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
14799
14800 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
14801
14802         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
14803         it can be defined with CFLAGS when running configure
14804         * src/SDCCmain.c: fixed compiling + linking with object files
14805
14806 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
14807
14808         * configure.in: configure for pic16 port,
14809             added --disable-pic16-port
14810         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
14811         * src/SDCCmain.c: linkOptions is changed to set *,
14812             added if/endif conditional macros to remove options help
14813             messages from optionsTable when a port is not configured, added
14814             support for the PIc16 port in the ports table, when executing
14815             the compiler with no port specified on command line, a default
14816             port is selected with the new macro DEFAULT_PORT which is
14817             defined in port.h, in setDefaultOptions() linkOptions is removed
14818             from initialization assignment, since now it is a set,
14819             parseCmdLine uses setParseWithComma for linkOptions, in
14820             linkEdit() linkOptions are accessed with new function indexSet()
14821             which returns the i'th item of a set variable. See SDCCset.c, in
14822             linkEdit() when calling buildCmdLine(), added linkOptions as
14823             last argument. Now users can pass arguments to gplink via the
14824             -Wl option, main() uses pic16glue() to glue up pic16 programs
14825         * src/SDCCpeeph.c: various changes to support pic16
14826         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
14827             return the i'th item of the set
14828         * src/SDCCset.h: added function prototype for indexSet()
14829         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
14830         * src/clean.mk: added pic16 in CLEANALLPORTS variable
14831         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
14832             added macro DEFAULT_PORT
14833         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
14834         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
14835             generated
14836         * src/pic16/glue.c: commented out some error producing lines
14837         * src/pic16/main.c: __config directives are commented out to stop
14838             gpasm complaining and test the linkage with gplink, _linkCmd and
14839             _asmCmd changed to be more gplink and gpasm friendly
14840         * src/pic16/peeph.def: peep rule 3 is commented out, since it
14841             produced an error when parsed, peep rule 12 is added to utilize
14842             movff, but it is commented out since the pCode does not support
14843             yet a command with 2 address arguments
14844
14845 2003-05-18    <johan AT balder>
14846
14847         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
14848         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
14849 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
14850
14851         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
14852   Added feature to script commands from file.
14853
14854 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
14855
14856         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
14857         * src/SDCCutil.c: include ctype.h for win32
14858
14859 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
14860
14861         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
14862
14863 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
14864
14865         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
14866   Fixed so you can set breakpoints prior to run, run does not stop
14867   on entry now.  Add tbreak.  Other enhancements and fixes for use
14868   with ddd.
14869
14870 2003-05-12  Borut Razem <borut.razem AT siol.net>
14871
14872         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
14873
14874 2003-05-11  Borut Razem <borut.razem AT siol.net>
14875
14876         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
14877         the path of bin directory, so that PATH is the only env. variable, which has to be set
14878         in case of standard installation.
14879         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
14880         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
14881         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
14882
14883 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
14884
14885         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
14886         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
14887         temp files are in the port dir; clean the gen/test directory when
14888         generating new test.c
14889         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
14890         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
14891         * support/regression/tests/zeropad.c: added
14892
14893 2003-05-09    <johan AT balder>
14894
14895         * src/SDCCglue.c: fixed bug #597940
14896
14897 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
14898
14899         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
14900   cache sfr, optimize next,step, fix off by one sourceline,
14901   support ddd list function.
14902         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
14903
14904 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
14905
14906         * support/regression/HTMLgen.py: added compare_s2f()
14907         * support/regression/Makefile: redo 1.27
14908         * support/regression/generate-cases.py: redo 1.5
14909
14910 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
14911
14912         * support/regression/tests/float.c: workaround 33 bit hex constant
14913         * support/regression/tests/simplefloat.c: fix division for host
14914
14915 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
14916
14917         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
14918         that tame's the PIC's over-aggressive optimizer.
14919
14920 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14921
14922          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
14923          support for MSVC.
14924
14925 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
14926
14927         Initial support for DS80C400. "Hello world" runs on TINIm400
14928         (with polled I/O).
14929
14930 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
14931
14932          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
14933          * Some notes on ddd usage added in debugger/README
14934          Martin Helmling adding more features and fixes for ddd GUI debugger.
14935          Code added for nexti, stepi, up, down, and other adjustments.
14936
14937 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
14938
14939         * src/pic/pCodepeep.c non-wildcard asmops are now handled
14940         * src/pic/peeph.def Added two rules to optimize carry manipulation
14941         * src/pic/* removed debug printfs
14942
14943 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
14944
14945         * debugger/mcs51/cmd.c: added header newalloc.h
14946
14947 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
14948
14949         * as/Makefile: new EXEEXT
14950         * as/z80/Makefile: remove trailing slash of BUILDIR
14951         * as/z80/clean.mk: new EXEEXT
14952         * Makefile.common.in: add to CFLAGS (and others), don't replace it
14953         * support/cpp2/Makefile.in: new EXEEXT
14954         * src/pic/glue.c (pic14emitRegularMap): fixed warning
14955
14956 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
14957
14958         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
14959         EXEEXT was introduced to fix all related problems with targets
14960         "clean", "install" and "uninstall"; a couple of further flaws
14961         especially with "clean" have been fixed too
14962         * as/mcs51/Makefile.in
14963         * as/mcs51/clean.mk
14964         * as/z80/Makefile
14965         * Makefile
14966         * clean.mk
14967         * debugger/mcs51/Makefile.in
14968         * debugger/mcs51/clean.mk
14969         * link/z80/Makefile
14970         * link/z80/Makefile.in
14971         * link/z80/clean.mk
14972         * link/Makefile
14973         * packihx/Makefile.in
14974         * packihx/clean.mk
14975         * sim/ucsim/Makefile
14976         * sim/ucsim/clean.mk
14977         * sim/ucsim/avr.src/Makefile.in
14978         * sim/ucsim/avr.src/clean.mk
14979         * sim/ucsim/s51.src/Makefile.in
14980         * sim/ucsim/s51.src/clean.mk
14981         * sim/ucsim/xa.src/Makefile.in
14982         * sim/ucsim/xa.src/clean.mk
14983         * sim/ucsim/z80.src/Makefile.in
14984         * sim/ucsim/z80.src/clean.mk
14985         * sim/ucsim/main_in.mk
14986         * sim/ucsim/packages_in.mk
14987         * sim/ucsim/gui.src/Makefile.in
14988         * sim/ucsim/gui.src/serio.src/Makefile.in
14989         * sim/ucsim/gui.src/serio.src/clean.mk
14990         * src/Makefile.in
14991         * src/clean.mk
14992         * support/cpp2/Makefile.in
14993         * support/cpp2/clean.mk
14994         * support/makebin/Makefile
14995         * support/makebin/clean.mk
14996         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
14997         * doc/sdccman.lyx: --program-suffix no longer needed
14998
14999 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
15000
15001          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
15002          Martin Helmling added support for ddd GUI debugger.
15003          Code added to display assembly, set variables, and other commands
15004          to interface to ddd.
15005
15006 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
15007
15008         * as/Makefile: fix target clean
15009         * as/clean.mk: fix target clean
15010         * as/z80/clean.mk: fix target clean
15011
15012 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
15013
15014         * Makefile.common.in: added  AT EXEEXT AT
15015         * configure.in: removed all mingw32 stuff
15016         * configure: rebuilt from configure.in
15017         * doc/sdccman.lyx: updated section "installation"
15018         * support/scripts/sdcc_mingw32: adapted to configure
15019         * support/scripts/sdcc_cygwin_mingw32: added
15020
15021 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
15022
15023         * src/pic Added object file support for the PIC port
15024         * src/pic Applied patch from Craig Franklin (this started the object file support)
15025         * src/regression Updated the PIC regression tests for object files
15026
15027 2003-04-20  Borut Razem <borut.razem AT siol.net>
15028
15029         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
15030           lklex.c: In function `getfid':
15031           lklex.c:203: warning: array subscript has type `char'
15032         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
15033           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
15034         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
15035           stack handling macros
15036
15037 2003-04-19  Borut Razem <borut.razem AT siol.net>
15038
15039         * "handling space characters in file path" task:
15040         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
15041         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
15042         * support/Util/MySystem.h: make it self-sufficient
15043         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
15044           src/z80/main.c, sdcc/as/mcs51/lklex.c:
15045           handling space characters in file path
15046         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
15047           (it will be used by assemblers, which have their own includes, e.g. gpasm)
15048         * support/Util/MySystem.c: handling space characters in executable's path
15049
15050 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
15051
15052         * as/z80/Makefile: fix permanent rebuild of z80
15053         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
15054         * support/regression/tests/bitfields.c: added Johan's bitfields.c
15055
15056 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
15057
15058         * src/SDCCopt.c: add special case optimization to replace modulo by
15059           a power of two with a bitwise AND.
15060
15061 2003-04-18    <johan AT balder>
15062
15063         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
15064
15065 2003-04-17    <johan AT balder>
15066
15067         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
15068         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
15069
15070 2003-04-13  Borut Razem <borut.razem AT siol.net>
15071
15072         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
15073         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
15074           fixed mingw problem in adl_NORMALIZE_PATH
15075
15076 2003-04-12  Borut Razem <borut.razem AT siol.net>
15077
15078         * fixed "#pragma SAVE/RESTORE can not be nested":
15079         * src/SDCC.lex: reworked pragma handling functions
15080         * sdcc/src/SDCCglobl.h: reworked stack handling macros
15081         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
15082
15083 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
15084
15085         * src/SDCCutil.c (pathEquivalent): defined but not used
15086         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
15087         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
15088         * configure: rebuilt from configure.in
15089         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
15090         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
15091         * device/include/Makefile.in: replace sdcc_datadir
15092         * device/lib/Makefile.in: replace sdcc_datadir
15093         * Makefile.common.in: add LDFLAGS from configure
15094         * packihx/Makefile.in: use LDFLAGS
15095         * src/Makefile.in: use LDFLAGS
15096         * support/cpp2/Makefile.in: add LDFLAGS from configure
15097         * support/makebin/Makefile: use LDFLAGS
15098         * .version: bumped version number to 2.3.5
15099
15100 2003-04-12  Borut Razem <borut.razem AT siol.net>
15101
15102         * completed "different paths" task:
15103         * src/SDCCmacro.c: fixed bug in handling quotes
15104         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
15105         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
15106
15107 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
15108
15109         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
15110
15111 2003-04-11 kevin Vigor <kevin AT vigor.nu>
15112
15113         * ds390/gen.c ds390/peeph.def: fix bug 706781
15114
15115 2003-04-11  Borut Razem <borut.razem AT siol.net>
15116
15117         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
15118
15119 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
15120
15121         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
15122         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
15123          set - this bit used to not be set...).
15124         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
15125           bad code in PIC Port
15126         * src/regression/and2.c added to test bug 609268
15127         * src/regression/Makefile added and2.c to regression test
15128
15129
15130 2003-04-08    <johan AT CP255758-A>
15131
15132         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
15133         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
15134         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
15135
15136 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
15137
15138         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
15139         fix bug #487815
15140         * support/cpp2/Makefile.in: fix bug #487815
15141         * configure: rebuilt from configure.in
15142         * Makefile.common.in: docdir changed, new path suffixes
15143         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
15144         * sdcc_vc_in.h: reflect changes from sdccconf.h
15145         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
15146         * src/SDCCutil.h: remove BINDIR hack
15147         * doc/sdccman.lyx: update new path hierarchy
15148
15149 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15150
15151         * src/SDCCpeeph.c: added okToRemoveSLOC test
15152
15153 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15154
15155         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
15156
15157 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15158
15159         * src/SDCCpeeph.c: added labelIsReturnOnly test
15160         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
15161
15162 2003-04-05    <johan AT balder>
15163
15164         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
15165         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
15166         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
15167         * src/SDCCast.c: fixed a warning
15168         * src/SDCCast.h: fixed a warning
15169         * src/SDCCicode.c (operandFromAst): fixed a warning
15170
15171 2003-04-04    <johan AT balder>
15172
15173         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
15174         * src/SDCCast.c (decorateType): fixed bug #715076
15175         * src/SDCC.y: fixed bug #702907
15176
15177 2003-04-03    <johan AT balder>
15178
15179         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
15180         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
15181         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
15182         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
15183         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
15184
15185 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
15186
15187         * _decdptr.c: fix return values
15188         * _gptrget.c: fix return values
15189         * _gptrgetc.c: fix return values
15190         * _gptrput.c: fix return values
15191         * _mulint.c: fix return values
15192         * as/z80/Makefile: fix 'make -j' problem
15193
15194 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
15195
15196         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
15197         * configure.in: big cleanup, updated to autoconf 2.5x
15198         * configure: rebuilt from configure.in
15199         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
15200         * sdcc_vc_in.h: reflect changes from sdccconf.h
15201         * doc/Makefile: fixed a flaw in "make install"
15202
15203 2003-04-02    <johan AT balder>
15204
15205         * src/ds390/gen.c (genCmp): no comments
15206         * src/mcs51/gen.c (genCmp): no comments
15207         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
15208         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
15209
15210 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
15211
15212         * support/regression/generate-cases.py: place generated file in given sub directory
15213         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
15214         * support/regression/Makefile: improvements for 'make -j';
15215         side effect: it's simpler and faster now
15216
15217 2003-03-31  Borut Razem <borut.razem AT siol.net>
15218
15219         * src/z80/main.c: link-{port} and as-{port} defined without path
15220         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
15221
15222 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
15223
15224         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
15225
15226 2003-03-30  Borut Razem <borut.razem AT siol.net>
15227
15228         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
15229           changed type of list parameter to set
15230         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
15231         * src/port.h: changed type of do_assemble() parameter to set
15232         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
15233           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
15234           definition of "cppoutfilename" macro with NULL value in preProcess()
15235         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
15236         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
15237         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
15238           replaced with set *binPathSet
15239         * shash_add() deallocates the item, if allready exsists, before adding the new one
15240         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
15241
15242 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
15243
15244         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
15245           a nested for loop bug in the PIC port
15246         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
15247           for loops
15248
15249 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
15250
15251         * support/Util/dbuf.h: remove C++ stuff to make it portable
15252
15253 2003-03-28  Borut Razem <borut.razem AT siol.net>
15254
15255         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
15256           literal strings in stringLiteral()
15257         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
15258         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
15259           to the project
15260
15261 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
15262
15263         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
15264
15265 2003-03-26    <johan AT balder>
15266
15267         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
15268         * src/ds390/gen.c (saveRegisters): catched symbol abuse
15269         * src/SDCCast.c (decorateType): fixed " -v < 3"
15270
15271 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
15272
15273         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
15274         Added Lenny Story's debug infrastructure changes:
15275         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
15276         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
15277         * src/cdbFile.c: added
15278         * src/SDCCdebug.c: added
15279         * src/SDCCdebug.h: added
15280         * src/SDCCast.c (createFunction)
15281         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
15282         * src/SDCCmain.c (parseCmdLine, main)
15283         * src/SDCCmem.c (redoStackOffsets)
15284         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
15285         * src/SDCCsymt.h
15286         * src/common.h
15287         * src/avr/gen.c (genAVRCode)
15288         * src/ds390/gen.c (gen390Code)
15289         * src/mcs51/gen.c (gen51Code)
15290         * src/pic/gen.c (genpic14Code)
15291         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
15292         * src/xa51/gen.c (genXA51Code)
15293         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
15294
15295 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15296
15297         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
15298         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
15299
15300 2003-03-22    <johan AT balder>
15301
15302         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
15303
15304 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
15305
15306         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
15307         * doc/cdbfileformat.lyx: added, written by Lenny Story
15308         * doc/Makefile: added cdbfileformat.lyx
15309         * doc/clean.mk: added cdbfileformat.lyx
15310
15311 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
15312
15313         * src/mcs51/peeph.def: fix bug #705773
15314
15315 2003-03-20    <johan AT balder>
15316
15317         An sfr/sbit can have an "at #" AND an initializer
15318         * src/SDCCsymt.c (checkSClass):
15319         * src/SDCCmem.c (allocGlobal):
15320         * src/SDCCmem.c (allocLocal):
15321         * src/SDCCast.c (createBlock):
15322
15323 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
15324
15325         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
15326
15327 2003-03-16    <johan AT balder>
15328
15329         Undid the hackup of const and volatile, the problem is much bigger
15330         * src/SDCC.y:1.65
15331         * src/SDCCast.c:1.171
15332         * src/SDCCglue.c:1.138
15333         * src/SDCCicode.c:1.146
15334         * src/SDCCsymt.c:1.150
15335         * src/SDCCval.c:1.65
15336
15337 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
15338
15339         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
15340         * src/ds390/gen.c (genAddrOf): fixed bug #704087
15341
15342 2003-03-13    <johan AT balder>
15343
15344         Hackup const and volatile modifiers in type chains a bit:
15345         * src/SDCC.y:1.63
15346         * src/SDCCast.c:1.169
15347         * src/SDCCglue.c:1.136
15348         * src/SDCCicode.c:1.143
15349         * src/SDCCsymt.c1.146
15350         * src/SDCCsymt.h1.59
15351         * src/SDCCval.c:1.63
15352
15353 2003-03-12    <johan AT balder>
15354
15355         * src/SDCCBBlock.h: more LRH debugging junk
15356         * src/SDCCcflow.h: more LRH debugging junk
15357         * src/SDCCloop.c: more LRH debugging junk
15358         * src/SDCC.y (struct_declaration): fixed bug #697590
15359         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
15360         * src/ds390/gen.c (aopForRemat): fixed bug #700031
15361         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
15362
15363 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15364         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
15365         test function names must now match exactly).
15366         * src/SDCCcse.c: added special case in findCheaperOp to allow
15367         extending a short integer. Makes less awful code for bug 700121 test case.
15368
15369 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15370
15371         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
15372         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
15373
15374 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15375
15376         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
15377         actually called (operandsNotEqual() was called for all
15378         operandsNotEqualX tests).
15379
15380 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15381
15382         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
15383         with shorter literals. Fixes bug 700121.
15384
15385 2003-03-11    <johan AT balder>
15386
15387         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
15388
15389 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
15390
15391         * src/SDCCloop.c (mergeRegions): an evil beast is dead
15392         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
15393
15394 2003-03-10  Borut Razem <borut.razem AT siol.net>
15395
15396         * src/SDCCmain.c: pipe preprocessor's output
15397         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
15398         * sdcc_vc_in.h: define pclose as _pclose for WIN32
15399         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
15400         which closes all pipes in pipeSet set
15401         * src/SDCCset.c: free deleted item in function deleteSetItem()
15402         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
15403         moved from z80 to src subproject
15404         * .version: increased version number to 2.3.4
15405
15406 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
15407
15408         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
15409         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
15410         * support/regression/ports/xa51/spec.mk: fix typo
15411
15412 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
15413
15414         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
15415
15416 2003-03-09  Borut Razem <borut.razem AT siol.net>
15417
15418         * src/SDCCmain.c: pipe preprocessor's output
15419         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
15420         * sdcc_vc_in.h: define pclose as _pclose for WIN32
15421         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
15422         which closes all pipes in pipeSet set
15423         * src/SDCCset.c: free deleted item in function deleteSetItem()
15424         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
15425         moved from z80 to src subproject
15426
15427 2003-03-09  Borut Razem <borut.razem AT siol.net>
15428
15429         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
15430         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
15431         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
15432         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
15433         * src/SDCCglobl.h: unification of WIN32 native definitions
15434
15435 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15436
15437         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
15438
15439 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
15440
15441         * src/configure.in:   check for endianess (even while cross-compiling)
15442         * src/configure:      check for endianess (even while cross-compiling)
15443         * src/configure_in.h: check for endianess (even while cross-compiling)
15444         * src/avr/gen.c:        remove old endianess stuff
15445         * src/mcs51/gen.c:      remove old endianess stuff
15446         * src/ds390/gen.c:      remove old endianess stuff
15447         * src/pic/gen.c:        remove old endianess stuff
15448         * src/pic/genarith.c:   remove old endianess stuff
15449         * src/pic/glue.c:       fix endianess check
15450         * src/pic16/gen.c:      remove old endianess stuff
15451         * src/pic16/genarith.c: remove old endianess stuff
15452         * src/pic16/glue.c:     fix endianess check
15453         * src/xa51/gen.c:       remove old endianess stuff
15454         * src/z80/gen.c:        fix endianess check
15455         * src/SDCCglue.c:       fix endianess check
15456         * src/ds390/peeph.def: fix bug 700036
15457
15458 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
15459
15460         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
15461         * src/configure: find appropriate data-types on host for SDCC's int and long
15462         * src/configure.in: find appropriate data-types on host for SDCC's int and long
15463         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
15464         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
15465
15466 2003-03-07    <johan AT balder>
15467
15468         Just a big NOOP:
15469                 some minor cleanups before the big shot
15470                 OP_DEFS and OP_USES now use Kevin's protection
15471                 new option --nolabelopt
15472
15473         * src/SDCCBBlock.c:
15474         * src/SDCCast.c,:
15475         * src/SDCCcflow.c:
15476         * src/SDCCcse.c:
15477         * src/SDCCicode.c:
15478         * src/SDCCicode.h:
15479         * src/SDCClabel.c:
15480         * src/SDCCloop.c:
15481         * src/SDCCmain.c:
15482         * src/ds390/ralloc.c:
15483         * src/mcs51/ralloc.c:
15484         * src/pic/ralloc.c:
15485         * src/xa51/ralloc.c:
15486         * src/z80/ralloc.c:
15487
15488 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
15489
15490         * src/pic/pcode.c (get_op): fix 64 bit warnings
15491         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
15492         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
15493         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
15494         * support/regression/tests/malloc.c: fix 64 bit warnings
15495
15496 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
15497
15498         * src/mcs51/gen.c (genMinus): fixed bug 696436
15499
15500 2003-03-02  Borut Razem <borut.razem AT siol.net>
15501
15502         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
15503
15504 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
15505
15506         * configure.in: test for mkstemp
15507         * sdccconf_in.h: add HAVE_MKSTEMP
15508
15509 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
15510
15511         * device/include/ctype.h: removed warning while using --stack-auto
15512         * device/include/malloc.h: removed warning while using --stack-auto
15513         * device/include/string.h: removed warning while using --stack-auto
15514
15515 2003-02-23  Borut Razem <borut.razem AT siol.net>
15516
15517         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
15518         because NDEBUG is defined (see man assert)
15519         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
15520
15521 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15522
15523         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
15524         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
15525
15526 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15527
15528         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
15529         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
15530
15531 2003-02-18    <johan AT balder>
15532
15533         * as/mcs51/asmain.c (asmbl): module can start with a digit
15534         * as/z80/asmain.c (asmbl): module can start with a digit
15535
15536 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
15537
15538         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
15539         * src/asm.c: fix pipe() for Mingw32
15540
15541 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
15542
15543         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
15544         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
15545         make -V work again; --c1mode reads now from stdin
15546         * doc/sdccman.lyx: added --c1mode
15547         * support/Util/SDCCerr.c: new messages for c1 mode
15548         * support/Util/SDCCerr.h: new messages for c1 mode
15549         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
15550
15551 2003-02-15    <johan AT balder>
15552
15553         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
15554
15555 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
15556
15557         * doc/sdccman.lyx: Environment variables, -o and other minor things
15558
15559 2003-02-14    <johan AT balder>
15560
15561         * src/xa51/main.c: before anyone really tries to use it :)
15562
15563         * Install doc's in share/sdcc/doc
15564         * removed some obsolete files
15565         * Do a proper make distclean and uninstall
15566         M Makefile.common.in
15567         R sdccbuild.sh
15568         M as/Makefile
15569         M device/include/Makefile.in
15570         M device/lib/Makefile.in
15571         M doc/sdccman.lyx
15572         M link/Makefile
15573         M sim/ucsim/doc/Makefile.in
15574         M src/clean.mk
15575         R src/avr/peeph.rul
15576         R src/xa51/peeph.rul
15577         M support/cpp2/Makefile.in
15578         M support/makebin/Makefile
15579
15580
15581 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
15582
15583         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
15584
15585 2003-02-10  Borut Razem <borut.razem AT siol.net>
15586
15587         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
15588         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
15589         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
15590         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
15591         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
15592         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
15593         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
15594         src/z80/Makefile.bcc: Borland Makefile cleanup
15595         * as/z80/Makefile.bcc: Added Borland Makefile
15596         * support/cpp2/borland.h: Removed
15597
15598 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
15599
15600         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
15601         * src/SDCC.lex: new pragma NOIV
15602         * src/SDCCglobl.h: new pragma NOIV
15603         * src/SDCCmem.c: new pragma NOIV
15604
15605 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
15606
15607         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
15608
15609 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
15610
15611         * src/SDCCmain.c: signal handling is switched off by --debug
15612         * doc/Makefile: small fix for install; use clean.mk again
15613         * doc/clean.mk: clean *.pdf and *.html too
15614
15615 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
15616
15617         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
15618         * device/lib/printfl.c: fix a ds390 bug by making it portable
15619         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
15620         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
15621         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
15622         * debugger/mcs51/cmd.c: converted multi-line string literals
15623         * sim/ucsim/globals.cc: converted multi-line string literals
15624         * src/SDCCmain.c: introduced signal handler to remove temp files
15625         * doc/Makefile: small tweaks, implement clean
15626         * doc: removed generated files
15627
15628 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15629
15630         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
15631         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
15632         Address Record is not correctly generated for DS390."
15633
15634 2003-02-02  Borut Razem <borut.razem AT siol.net>
15635
15636         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
15637         * as/mcs51/asm.h: fixed compilation with Borland C
15638         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
15639         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
15640         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
15641         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
15642         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
15643         src/z80/Makefile.bcc: delete $(LIB) only if exist
15644         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
15645
15646 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
15647
15648         * device/include/malloc.h: introduced NULL
15649         * device/include/string.h: introduced NULL
15650         * device/include/stdlib.h: introduced NULL
15651         * device/lib/_memcpy.c: removed NULL
15652         * device/lib/_strcat.c: removed NULL
15653         * device/lib/_strchr.c: removed NULL
15654         * device/lib/_strcmp.c: removed NULL
15655         * device/lib/_strcpy.c: removed NULL
15656         * device/lib/_strcspn.c: removed NULL
15657         * device/lib/_strlen.c: removed NULL
15658         * device/lib/_strncat.c: removed NULL
15659         * device/lib/_strncmp.c: removed NULL
15660         * device/lib/_strncpy.c: removed NULL
15661         * device/lib/_strpbrk.c: removed NULL
15662         * device/lib/_strrchr.c: removed NULL
15663         * device/lib/_strspn.c: removed NULL
15664         * device/lib/_strstr.c: removed NULL
15665         * device/lib/_strtok.c: removed NULL
15666         * device/lib/malloc.c: removed NULL, include own header
15667
15668 2003-02-02    <johan AT balder>
15669
15670         * 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
15671         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
15672         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
15673         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
15674         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
15675         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
15676
15677 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15678
15679         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
15680         area 'DATA'"
15681
15682 2003-02-01    <johan AT balder>
15683
15684         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
15685
15686 2003-01-31    <johan AT CP255758-A>
15687
15688         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
15689
15690 2003-01-30    <johan AT balder>
15691
15692         * src/SDCCBBlock.c: automatic bug detection
15693         * src/SDCCicode.c: automatic bug detection
15694
15695 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15696
15697         * src/SDCCglobl.h:   now --xram-size 0 works
15698         * src/SDCCmain.c:    now --xram-size 0 works
15699
15700 2003-01-29    <johan AT balder>
15701
15702         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
15703
15704 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15705
15706         * as/mcs51/aslink.h: Added options --xram-size and --code-size
15707         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
15708         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
15709         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
15710         * src/SDCCglobl.h:   Added options --xram-size and --code-size
15711         * src/SDCCmain.c:    Added options --xram-size and --code-size
15712
15713 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
15714
15715         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
15716         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
15717
15718 2003-01-27    <johan AT balder>
15719
15720         * src/SDCC.y: fixed bug #613764
15721
15722 2003-01-26    <johan AT balder>
15723
15724         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
15725         * src/SDCCsymt.h: fixed bug #673374
15726         * src/SDCCglue.c: fixed bug #661910
15727         * src/SDCCast.c: fixed bug #458099 and 673374
15728
15729 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
15730
15731         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
15732         * as/mcs51/strcmpi.h: added
15733         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
15734         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
15735         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
15736         * as/mcs51/assym.c: strcmpi -> as_strcmpi
15737         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
15738         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
15739         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
15740         * as/mcs51/Makefile.aslink: new module strcmpi
15741         * as/mcs51/Makefile.asx8051: new module strcmpi
15742         * as/mcs51/Makefil.bcc: new module strcmpi
15743         * as/mcs51/Makefile.in: new module strcmpi
15744         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
15745
15746 2003-01-26    <johan AT balder>
15747
15748         * src/SDCCglue.c: reverted back to 1.124
15749         * src/SDCCast.c: reverted back to 1.156
15750         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
15751
15752 2003-01-25    <johan AT balder>
15753
15754         * src/SDCCglue.c: A better fix for bug #661910
15755         * src/SDCCast.c: A better fix for bug #661910
15756         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
15757
15758 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
15759
15760         * src/Makefile.in: remove spawn.o
15761         * src/SDCCmain.c: remove spawn.h
15762         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
15763         * src/spawn.c: removed
15764         * src/spawn.h: removed
15765         * support/regression/ports/ds390/spec.mk: link with -r
15766
15767 2003-01-24    <johan AT CP255758-A>
15768
15769         * src/ds390/gen.c (aopOp): fixed bug #667458
15770         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
15771         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
15772         (createIvalCharPtr): an ival doesn't always have a storage class anymore
15773
15774 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
15775
15776         * src/mcs51/peeph.def: better assembler identation by Frieder
15777         * src/mcs51/gen.c: better assembler identation by Frieder
15778
15779 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
15780
15781         * as/z80/string.h: removed for gcc 3.2
15782         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
15783         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
15784
15785 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
15786
15787         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
15788         * src/SDCCpeeph.c (replaceRule): fix bug #663503
15789         * support/regression/Makefile: separate temp files for ports
15790         * support/regression/generate-cases.py: separate temp files for ports
15791         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
15792         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
15793
15794 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
15795
15796         * moved tinitalk to device/examples/ds390
15797
15798 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
15799
15800         * as/mcs51/lkmem.c: rflag is for DS390
15801         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
15802         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
15803                          (linkEdit): move mem- and map-files the same way as ihx-files
15804         * src/z80/main.c (_setDefaultOptions): removed --generic
15805         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
15806         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
15807         * src/pic/glue.c (picglue): --c1mode works again
15808         * src/pic16/glue.c (pic16glue): --c1mode works again
15809         * src/asm.c (printCLine): fix #660034
15810
15811 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
15812
15813         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
15814         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
15815         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
15816         * as/mcs51/lkmem (summary): better fix for sp problem
15817         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
15818         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
15819         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
15820                                               remove --stack-after-data
15821
15822 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
15823
15824         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
15825         * src/SDCCutil.c (join): ugly bug: missing '\0'
15826         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
15827
15828 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
15829
15830         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
15831         * src/port.h: typo
15832         * src/pic/main.c (_asmCmd): gpasm supports -o
15833         * src/z80/main.c: more general macros
15834         * device/lib/Makefile.in: remove intermediate files
15835
15836 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
15837
15838         * .version: Bumped version number to 2.3.3
15839         * src/SDCCBBlock.c: new option -o
15840         * src/SDCCglobl.h: new option -o
15841         * src/SDCCglue.c: new option -o
15842         * src/SDCCmain.c: new option -o
15843         * src/asm.c: new option -o
15844         * src/ds390/main.c: new option -o
15845         * src/pic/glue.c: new option -o
15846         * src/pic/pcode.c: new option -o
15847         * src/pic/ralloc.c: new option -o
15848         * src/pic16/glue.c: new option -o
15849         * src/pic16/pcode.c: new option -o
15850         * src/pic16/ralloc.c: new option -o
15851         * src/z80/main.c: new option -o
15852         * device/lib/Makefile.in: use -o
15853         * support/regression/ports/ds390/spec.mk: use -o
15854         * support/regression/ports/gbz80/spec.mk: use -o
15855         * support/regression/ports/mcs51/spec.mk: use -o
15856         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
15857         * support/regression/ports/z80/spec.mk: use -o
15858         * support/regression/ports/ucz80/spec.mk: use -o
15859         * support/regression/ports/xa51/spec.mk: use -o
15860         * support/regression/fwk/lib/timeout.c: fix usage string
15861
15862 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
15863         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
15864
15865 2003-01-07    <johan AT balder>
15866
15867         * src/SDCCast.c (decorateType): fixed bug #600035
15868
15869 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
15870         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
15871         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
15872         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
15873         * src/pic/pcode.c: outcommented unused variable to remove warnings
15874         * src/pic/ralloc.c: outcommented unused variable to remove warnings
15875
15876 2003-01-06    <karl AT turbobit.com>
15877         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
15878    regression tests.
15879
15880 2003-01-06    <johan AT balder>
15881
15882         * src/SDCCicode.c: fixed array add
15883
15884 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
15885         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
15886         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
15887
15888 2003-01-04    <johan AT balder>
15889
15890         * src/SDCCval.c (getNelements): fixed the initialized array of structures
15891
15892 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15893         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
15894
15895 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
15896         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
15897         * support/regression/tests/bug-524697.c: fit mem usage into 8032
15898
15899 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
15900         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
15901
15902 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
15903         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
15904
15905 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
15906         * src/mcs51/main.c: removed {bindir}{sep} from aslink
15907
15908 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15909
15910     * in /sdcc/as/mcs51/ changed these files in order to create an
15911     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
15912     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
15913     following files to include the previous two files: aslink.dsp,
15914     Makefile.aslink, Makefile.bcc, and Makefile.in.
15915
15916     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
15917     .adb instead of .cdb
15918
15919 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15920
15921         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
15922         value from option --iram-size.
15923
15924 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15925
15926         * /sdcc/as/mcs51/lklist.c: added boundary check before using
15927         dram[] array.
15928
15929 2002-09-18    <wiml AT hhhh.org>
15930
15931         * SDCClrange.h: exposed setFromRange() and setToRange()
15932         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
15933           packRegsForAccUse() (bug 542397)
15934         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
15935           multiple times and emitting the fetch operations more than once
15936           added aopGetUsesAcc() function to allow binary operators to
15937           fetch their operands in the correct order; made genMinus() emit
15938           compact code for X = LITERAL - Y
15939
15940 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15941         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
15942         sprintf() in line 1267.
15943
15944 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15945         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
15946         like ports.
15947
15948 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15949         Changes to aslink (All the changes are marked with 'JCF'):
15950
15951         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
15952         summary().
15953
15954         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
15955         area BSEG.  Also moves, if possible, the DATA area down into the internal
15956         ram so more space is available.
15957
15958         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
15959         sflag.
15960
15961         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
15962         not bytes.  Function summary() which creates a memory usage summary
15963         file with extension .mem.  Reports of overlaping stack and small stack
15964         size.  If the space for the stack is less than 16 bytes aslink trows a
15965         warning.
15966
15967         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
15968         the 8051.  Option 'y' for memory summary output file.
15969
15970         Changes to sdcc (All the changes are marked with 'JCF'):
15971
15972         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
15973
15974         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
15975         overlaying area for it (uses RegBankUsed[4]).
15976
15977         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
15978         bank zero as used by default.  By default aslink locates the stack
15979         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
15980         the creation of the .mem file.  Delegates the allocation of data area
15981         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
15982         the begining of the stack area to aslink.
15983
15984         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
15985         glue() in SDCCglue.c creates an area for it.
15986
15987 2002-09-03  Borut Razem <borut.razem AT siol.net>
15988         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
15989         sdcc/src/pic/glue.c:
15990         introduced atexit() handler for teporay files removal in case of
15991         errors, assertions, ...
15992
15993 2002-08-29  Borut Razem <borut.razem AT siol.net>
15994         * sdcc/support/cpp2/auto-host_vc_in.h:
15995         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
15996         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
15997         Maybe there is a similar problem with BORLANDC? It should be checked!
15998
15999         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
16000         corrected improper use of assert: the assignment to clr variable was done inside the assert.
16001         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
16002         was not executed, and the compiler (cl) launched a warning:
16003         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
16004
16005 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
16006         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
16007
16008 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
16009         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
16010
16011         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
16012           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
16013           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
16014           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
16015           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
16016           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
16017           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
16018         - added Release configuration in VS projects
16019         - review of compiler an linker options
16020         - VC .exe files are generated in bin_vc directory, not to interfere
16021           with binaries generated from other projects (cygwin, mingw, bcc ...)
16022
16023         * sdcc/src/yacc.dsp: added
16024
16025         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
16026         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
16027         and insert the version number definitions from .version
16028
16029         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
16030
16031         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
16032         added - genarate auto-host.h using auto-host_vc_in.h as template
16033
16034         * sdcc/sdcc_vc.h,
16035         removed from CVS, generated automatically
16036
16037 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
16038         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
16039
16040 2002-08-11  Borut Razem <borut.razem AT siol.net>
16041         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
16042
16043 2002-08-10  Borut Razem <borut.razem AT siol.net>
16044         * src/SDCCmain.c (main):
16045         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
16046         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
16047         The consequence was that some temporary files were not removed.
16048
16049         * src/SDCCglue.c:
16050         unification of code in functions tempfilename() and tempfile():
16051         function tempnam() is defined in Visual Studio 6.0 and .NET
16052
16053         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
16054
16055         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
16056           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
16057         - removed compiler command line option /WX: Treats all warnings as errors
16058         - update a list of source files, included into the project
16059
16060         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
16061           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
16062         changed project type to Generic Project so that can be correcly converted to VS.NET project
16063
16064         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
16065
16066         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
16067
16068         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
16069
16070         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
16071         added return 0 statements after assert() to make compiler happy
16072
16073         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
16074         added newline in the def file to keep MSC compiler satisfied
16075
16076         * sdcc/src/z80/gen.c:
16077         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
16078           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
16079         - solved MSC error in function aopDump()
16080
16081         * sdcc_vc.h: define PREFIX as "\\sdcc"
16082
16083 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
16084         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
16085
16086 2002-06-22  Scott Dattalo <scott AT dattalo.com>
16087         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
16088         - Rewrote the register banking algorithm.
16089         - Added pCode live-range analysis to registers (for now, only non-used and
16090         singly-used registers optimized away)
16091
16092         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
16093
16094         * 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.
16095
16096 2002-05-10  Scott Dattalo <scott AT dattalo.com>
16097         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
16098
16099 2002-04-22  Michael Hope  <michaelh AT vroom>
16100
16101         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
16102
16103         * configure.in (DD_COPT): Added include support required for gbdk.
16104
16105         * .version: Bumped version number just to increase it.
16106
16107         * src/SDCCmain.c: Added -nostdinc to the default options.
16108
16109 2002-04-15  Michael Hope  <michaelh AT vroom>
16110
16111         * device/lib/z80/printf.c (sprintf): Added.
16112
16113         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
16114
16115         * src/z80/peeph.def: Added transpose redundent load rule.
16116
16117         * src/z80/main.c: Added force callee saves for jaune.
16118
16119         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
16120
16121         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
16122
16123 2002-03-28  Johan Knol  <johan AT balder>
16124
16125         * src/SDCCval.c: fixed bug #532436
16126
16127 2002-03-14  Scott Dattalo <scott AT dattalo.com>
16128         * /src/port.h:
16129         Added "char *Processor" field to the port structure.
16130
16131         * /src/SDCCmain.c:
16132         Added -p option. Allows port dependent processor to be specified.
16133
16134         * all ports:
16135         Initialized the new field char *Processor field to NULL in all ports
16136
16137         * /src/pic/*:
16138         Compiler generated registers for interrupt context saving
16139         were not getting allocated.
16140
16141 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
16142
16143         * /src/SDCCast.c:
16144         Fixed left shift. Will promote the left side of a left shift
16145         if a) left shifting more than size of operand or b) when assigned
16146         to something size > size of left side
16147
16148 2002-03-14  Scott Dattalo <scott AT dattalo.com>
16149         * src/pic/*
16150         tons of changes. Register allocation has been
16151         rewritten. Added customization for the various PICs. Flow
16152         analysis is restructured. ...
16153
16154         * src/pic/device.h:
16155         Added
16156
16157         * src/pic/device.c:
16158         Added. device.c is a PIC port hack to accomodate variations
16159         in PIC devices.
16160
16161 2002-03-13  Michael Hope  <michaelh AT vroom>
16162
16163         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
16164
16165 2002-03-04  johanknol  <johanknol AT manik>
16166
16167         * /src/SDCCval.c: fixed
16168
16169         const unsigned char arr[][2] = { { 0, 1 } };
16170         t18.c:1: error: Initializer element is not constant
16171
16172 2002-03-04  bela  <bela AT manik>
16173
16174         * /device/include/mcs51reg.h:
16175         ds89c420 register definition update
16176
16177 2002-03-03    <johan AT FRIJA>
16178
16179         * support/Util/SDCCerr.c: did something, but don't no why anymore
16180
16181         * support/regression/tests/bug-524691.c: made it a little less shy
16182
16183         * src/SDCCast.c (decorateType): fixed bug #524697
16184
16185         * src/SDCCast.c: made some lineno improvements
16186
16187         * src/SDCCval.c (getNelements): changed warning to error
16188
16189         * src/SDCCglue.c (printIvalArray): changed warning to error
16190
16191         * src/SDCCicode.c: fixed a warning for mingw
16192
16193         * src/SDCCast.c (decorateType): fixed the << promotion for ops
16194
16195         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
16196
16197 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
16198
16199         * src/ds390/peeph.def:
16200         Added some more peephole rules
16201
16202         * src/ds390/gen.c: Various fixes & enhancements
16203
16204         * src/SDCClrange.c, src/SDCClrange.h:
16205         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
16206
16207         * src/ds390/ralloc.c:
16208         various fixes & enhancements (ds390) specific
16209
16210         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
16211         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
16212         from rallocs.
16213
16214         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
16215
16216 2002-03-02    <johan AT FRIJA>
16217
16218         * src/SDCCast.c (decorateType): fixed bug #524708
16219
16220         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
16221
16222         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
16223
16224 2002-03-01  Michael Hope  <michaelh AT vroom>
16225
16226         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
16227
16228         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
16229
16230 2002-03-01    <johan AT FRIJA>
16231
16232         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
16233
16234         * src/SDCCast.c (decorateType): fixed bug #524209
16235
16236         * src/SDCCval.c (valNot): fixed bug #524195
16237
16238 2002-02-26    <johan AT balder>
16239
16240         * src/xa51/gen.c: fixed a warning
16241
16242         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
16243
16244         * src/SDCCast.c (decorateType): fixed bug #522534
16245
16246 2002-02-23    <johan AT balder>
16247
16248         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
16249
16250 2002-02-22    <johan AT balder>
16251
16252         * src/SDCCast.c: fixed bug #514865
16253
16254         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
16255
16256 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
16257
16258         * sdcc/src/SDCCloop.c:
16259         Previous fix was not good. basic blocks that have "break" or "return" are
16260         not really partof a loop , but live ranges used in these blocks should
16261         be live thru the entire loop, so set partOfLoop but don't add them to
16262         loop region
16263
16264 2002-02-21    <johan AT FRIJA>
16265
16266         * src/SDCCcse.c: fixed bug #514308
16267
16268 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
16269
16270         * src/SDCCloop.c:
16271         Fixed BUG #519583. If a conditional block ended in a return/break
16272         statement inside a loop, it was not being considered part of the loop.
16273
16274         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
16275
16276 2002-02-10  Karl Bongers <karl AT turbobit.com>
16277
16278         * debugger/*:
16279         Fixed up SDCDB debugger somewhat.  Updated debugger/README
16280         with lots of comments and notes.
16281
16282         * device/examples/test2.c:
16283         Fix bug, "red" variable not being initialized(compiler complained).
16284
16285         * device/examples/Makefile, examples/test3.c:
16286         Add Makefile in device/examples folder, compiles test3.c
16287         for use as a multiple module SDCDB test case.
16288
16289         * sim/ucsim/cmd.src/cmdset.cc:
16290         Took out debug printfs in ucsim "next" command.
16291
16292         * sim/ucsim/xa.src:
16293         Karl and Johan start ucsim XA support.  Most dissassembly working,
16294         about 75% emulation done(plenty of work remaining).
16295
16296         * sim/ucsim/z80.src:
16297         Add Z80 support to ucsim, add test-ucz80 regression test,
16298         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
16299         Notice z80 compiler fails on examples/test3.c/crc code.
16300
16301 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
16302
16303         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
16304         Added support for --parms-in-bank1
16305
16306         * src/ds390/peeph.def:
16307         added a few more peephole optimzations
16308
16309         * src/ds390/main.c:
16310         1) added __builtin_inp & __builtin_outp used to read in data of given length
16311            from a memory mapped port
16312         2) added __builtin_memcmp
16313         3) added __builtin_swapw swap bytes of a short
16314
16315         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
16316         1) handle multiple send & receives from register bank1
16317         2) ralloc can now allocate DPTR1 to some liveRanges
16318
16319         * src/SDCCsymt.c, src/SDCCsymt.h:
16320         changes to handle multiple sends & receives
16321
16322         * src/SDCCptropt.h:
16323         added some pointer arithmetic optimization
16324
16325         * src/SDCCptropt.c:
16326         added some pointer arithmetic optimizations but not stable yet so not
16327         called from anywhere (will get this working shortly)
16328
16329         * src/SDCCopt.c: fixed for multiple sends & receives
16330
16331         * src/SDCCmain.c:
16332         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
16333         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
16334            set preprocessor defines (depending on options)
16335
16336         * src/SDCCicode.c, src/SDCCicode.h:
16337         changes made to handle multiple sends & receives
16338
16339         * src/SDCCglobl.h:
16340         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
16341
16342         * src/SDCCcse.c, src/SDCCcse.h:
16343         added function findbackward def (to be used in upcoming optimization)
16344
16345         * src/SDCCcflow.c, src/SDCCcflow.h:
16346         added function returnAtEnd - to determine if a basic block terminates with
16347         a RETURN iCode
16348
16349         * src/SDCCast.c, src/SDCCast.h:
16350         added option parms-in-bank1
16351
16352         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
16353         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
16354         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
16355         adjusted for --parms-in-bank1 option
16356
16357         * device/include/string.h:
16358         donot redefine "reentrant" keyword
16359
16360         * device/include/ds80c390.h: Added some more SFRs
16361
16362 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
16363
16364         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
16365
16366 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
16367
16368         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
16369
16370 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
16371
16372         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
16373
16374 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
16375
16376         * Added --xram-movc option
16377
16378 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
16379
16380         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
16381
16382 2002-01-11  Johan Knol
16383
16384         * Added math lib of Jesus Calvino-Fraga
16385
16386 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
16387
16388         * src/SDCCmain.c (processFile): fix processing of ../../src.c
16389         * support/regression/Makefile: new target test-mcs51-stack-auto
16390         * support/regression/ports/mcs51-stack-auto/spec.mk: added
16391
16392 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
16393
16394         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
16395
16396 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
16397
16398         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
16399
16400 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
16401
16402         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
16403
16404         * src/SDCCglue.h: add definition for printIvalChar()
16405
16406 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
16407
16408         * src/SDCCast.c: fix #498138 by Johan
16409
16410         * src/SDCCglue.c: fix #498138 by Johan
16411
16412 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
16413
16414         * support/regression/Makefile: fix clean
16415
16416         * support/regression/ports/ds390/support.c: fix transmission of last character
16417
16418 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
16419
16420         * /sdcc/src/ds390/gen.c:
16421         a) improved computing address of stack variable
16422         b) took out some #if 0 code
16423         c) improved parmBytes adjustment
16424         d) improved genPlusIncr & genMinusIncr
16425         e) genCmp could generate bad code (when left assigned to DPTR)
16426         f) Fixed bug in hasInc
16427
16428         * /sdcc/src/ds390/ralloc.c:
16429         a) packRegsForSupport could mess up live information (Fixed)
16430         b) packRegsDPTRuse could be incorrect for left & right shift
16431
16432         * /sdcc/src/mcs51/ralloc.c:
16433         packRegsForSupport could mess up the live information (Fixed)
16434
16435         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
16436
16437         * /sdcc/src/SDCCast.c:
16438         can reverse a loop even if function call is present as long
16439         as the loop control variable is local & is not passed as parameter
16440
16441 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16442
16443         * /sdcc/ChangeLog: *** empty log message ***
16444
16445         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
16446         More builtin function additions for TININative
16447
16448         * /sdcc/src/ds390/ralloc.c:
16449         Had broken the regression testsuite
16450
16451         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
16452
16453         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
16454         Added funcattr hasStackParms will be set for reentrant functions when there
16455         are paramteres on the stack, this helps in minimizing frame pointer generation
16456         typeFromStr can handle function pointers now
16457
16458         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
16459         *** empty log message ***
16460
16461 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16462
16463         * /src/ds390/gen.c, /src/ds390/main.c:
16464         More builtin function additions for TININative
16465
16466         * /src/ds390/ralloc.c:
16467         Had broken the regression testsuite
16468
16469         * /src/SDCCast.c: Fixed a bug in dumptree
16470
16471         * /src/SDCCsymt.c, /src/SDCCsymt.h:
16472         Added funcattr hasStackParms will be set for reentrant functions when there
16473         are paramteres on the stack, this helps in minimizing frame pointer generation
16474         typeFromStr can handle function pointers now
16475
16476         * /doc/builtins.txt, /doc/TININative.txt:
16477         *** empty log message ***
16478
16479
16480 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16481
16482         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
16483         ALPHA version for -mTININative
16484
16485         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
16486         updated to reflect changes in the port structure
16487
16488         * /src/port.h:
16489         added function do_assemble (similar to do_link) if non-null this function
16490         will be called to do assembly (-mTININative) requires a multi command
16491         assembly
16492         added function genAssemblerEnd will be called to generate assembler Epilogue
16493
16494         * /src/SDCCsymt.c:
16495         added _JavaNative to debug info printing
16496
16497         * /src/SDCCmain.c: added option --tini-libid
16498         added port->do_assemble function (-mTININative) has a multi command assemble
16499
16500         * /src/SDCCglue.c: Disabled "constExpr" check
16501         added port->genAssemblerEnd function
16502
16503         * /src/SDCCglobl.h: Added option --tini-libid value
16504
16505         * /src/SDCCast.h:
16506         tookout optimizeCompare from the header (has no external references)
16507
16508         * /src/SDCCast.c: made one more function "static"
16509
16510 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
16511
16512         * src/z80/mappings.i: Added z80asm support.
16513
16514         * src/z80/main.c: Added z80asm support on --asm=z80asm
16515
16516         * src/z80/gen.c: Fixed asm portability issues.
16517
16518         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
16519
16520         * src/SDCCglue.c (printExterns): Added global/extern split.
16521
16522 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
16523
16524         * support/regression/Makefile: added test for mcs51 model large
16525
16526         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
16527
16528         * support/regression/ports/gbz80/spec.mk: added -mgbz80
16529
16530 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
16531
16532         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
16533
16534 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
16535
16536         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
16537
16538         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
16539
16540 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
16541
16542         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
16543
16544         * support/regression/tests/simplefloat.c: Port to mcs51.
16545
16546 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
16547         * support/regression/tests/bug-485362.c: Added.
16548
16549         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
16550
16551         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
16552
16553         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
16554
16555         * src/z80/gen.c (aopDump): Added a dump function.
16556
16557 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
16558         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
16559
16560         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
16561
16562         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
16563
16564         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
16565
16566         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
16567
16568         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
16569
16570         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
16571
16572         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
16573
16574         * support/regression/ports/ds390/support.c: Use tinibios.
16575
16576         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
16577
16578 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
16579
16580         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
16581         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
16582
16583         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
16584
16585         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
16586
16587 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
16588
16589         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
16590
16591         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
16592         (packRegsForIYUse): Created and optimised.
16593
16594 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
16595
16596         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
16597 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
16598
16599         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
16600
16601         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
16602
16603         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
16604
16605 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
16606
16607         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
16608
16609         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
16610
16611 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
16612
16613         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
16614
16615         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
16616
16617         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
16618
16619 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
16620
16621         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
16622         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
16623         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
16624
16625         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
16626
16627         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
16628         (genNotFloat): Added.
16629         (genUminusFloat): Added.
16630
16631         * device/lib/z80/Makefile: Added floating pt stubs.
16632
16633         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
16634
16635         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
16636
16637         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
16638
16639 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
16640
16641         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
16642
16643         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
16644
16645         * sdcc/support/regression/Makefile: Add port ds390.
16646
16647         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
16648
16649         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
16650
16651         * sdcc/support/regression/ports/ds390/spec.mk: Added.
16652
16653         * sdcc/support/regression/ports/ds390/support.c: Added.
16654
16655         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
16656
16657         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
16658
16659         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
16660
16661 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
16662
16663         * device/include/malloc.h: Added z80 and gbz80 support.
16664
16665         * device/lib/gbz80/heap.s: Added.
16666
16667         * device/lib/z80/heap.s: Added.
16668
16669         * device/lib/malloc.c: Added z80 and gbz80 support.
16670
16671         * support/regression/tests/malloc.c (testMalloc): Added.
16672
16673         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
16674
16675         * support/regression/tests/bug-478094.c: Added.
16676
16677         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
16678
16679 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
16680
16681         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
16682
16683         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
16684
16685         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
16686
16687         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
16688
16689         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
16690
16691 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
16692
16693         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
16694
16695 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
16696
16697         * support/regression/tests/bug-477927.c: Added.
16698
16699         * src/z80/peeph.def: Added minor rules.
16700
16701         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
16702
16703         * src/z80/peeph.def: Added jump optimisation modification.
16704
16705 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
16706
16707         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
16708
16709 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
16710
16711         * support/regression/tests/funptrs.c: Added.
16712
16713 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
16714
16715         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
16716
16717 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
16718
16719         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
16720
16721         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
16722
16723         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
16724         (movLeft2ResultLong): Created.
16725
16726         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
16727         (joinPushes): Added.  Joins two char pushes into a word push.
16728
16729 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
16730
16731         * support/cpp2/Makefile.in (install): Added creation of dest dir.
16732
16733         * support/makebin/Makefile (install): Added creation of dest dir.
16734
16735 2001-10-24 Karl Bongers <karl AT turbobit.com>
16736
16737         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
16738
16739 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
16740
16741         * src/z80/ralloc.c: Turned off faulty pack for one use.
16742
16743         * src/z80/peeph-gbz80.def: Removed redundent restart options.
16744
16745         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
16746
16747 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
16748
16749         * support/regression/Makefile: Improved clean
16750
16751         * support/regression/ports/gbz80/spec.mk: Added clean
16752
16753         * support/regression/ports/host/spec.mk: Added clean
16754
16755         * support/regression/ports/z80/spec.mk: Added clean
16756
16757         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
16758
16759         * support/regression/ports/mcs51/timeout.c: little improvements
16760
16761 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
16762
16763         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
16764
16765         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
16766
16767         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
16768
16769 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
16770
16771         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
16772
16773         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
16774
16775 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
16776         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
16777
16778         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
16779
16780         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
16781
16782         * src/mcs51/main.c (_linkCmd): Added bin path to command.
16783
16784         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
16785
16786         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
16787
16788         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
16789
16790         * support/regression/tests/longor.c: Added.
16791
16792 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
16793
16794         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
16795
16796         * as/mcs51/aslink.h: define PATH_MAX
16797
16798         * as/mcs51/asm.h: define PATH_MAX
16799
16800         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
16801
16802         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
16803
16804         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
16805
16806         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
16807
16808         * src/SDCCglobl.h: define PATH_MAX
16809
16810         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
16811
16812         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
16813
16814 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
16815
16816         * src/z80/gen.c (gencjneshort): Fixed
16817
16818         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
16819
16820 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
16821
16822         * support/regression/tests/bug-469671.c: Added.
16823
16824         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
16825
16826 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
16827
16828         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
16829
16830         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
16831
16832 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
16833
16834         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
16835
16836         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
16837
16838         * src/device/lib/_mullong.c : removed hint: nooverlay bug
16839
16840         * src/device/lib/_divuint.c : removed hint: nooverlay bug
16841
16842         * src/device/lib/_divulong.c: removed hint: nooverlay bug
16843
16844         * src/device/lib/_moduint.c : removed hint: nooverlay bug
16845
16846         * src/device/lib/_modulong.c: removed hint: nooverlay bug
16847
16848 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
16849
16850         * 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.
16851
16852         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
16853
16854         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
16855
16856 2001-10-07    <johan AT FRIJA>
16857
16858         * device/lib/gets.c (gets): fixed the return value.
16859
16860 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
16861         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
16862
16863         * 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.
16864
16865         * 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.
16866
16867         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
16868
16869         * src/pic/gen.c: Removed Safe_strdup.
16870
16871         * configure.in: Added option to enable libgc support.
16872
16873         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
16874         (bitVectUnion): Optimised.
16875         (bitVectIntersect): Optimised.
16876         (bitVectBitsInCommon): Optimised.
16877         (bitVectCplAnd): Optimised.
16878
16879         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
16880
16881 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16882
16883         * src/SDCCmain.c: distinguish between assembler debug and plain options
16884
16885         * src/avr/main.c:   remove standard assembler options
16886
16887         * src/ds390/main.c: remove standard assembler options
16888
16889         * src/mcs51/main.c: remove standard assembler options
16890
16891         * src/port.h: removed "PENDING" comment
16892
16893 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16894
16895         * src/device/lib/_mulint.c  : new, with assember functions
16896
16897         * src/device/lib/_mullong.c : new, with assember functions
16898
16899         * src/device/lib/_divuint.c : with assember functions
16900
16901         * src/device/lib/_divsint.c : with assember functions
16902
16903         * src/device/lib/_divulong.c: with assember functions
16904
16905         * src/device/lib/_divslong.c: with assember functions
16906
16907         * src/device/lib/_moduint.c : with assember functions
16908
16909         * src/device/lib/_modsint.c : with assember functions
16910
16911         * src/device/lib/_modulong.c: with assember functions
16912
16913         * src/device/lib/_modslong.c: with assember functions
16914
16915         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
16916
16917         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
16918
16919         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
16920                                       replaced _mululong.c and _mulslong.c by _mullong.c
16921
16922 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16923
16924         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
16925
16926 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
16927
16928         * src/SDCCglue.c: test, if win32api is available for MINGW
16929
16930 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
16931
16932         * src/SDCCsymt.c: no more _modifier in printTypeChain()
16933         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
16934         * support/regression/ports/gbz80/spec.mk: removed GENERIC
16935         * support/regression/ports/host/spec.mk: removed GENERIC
16936         * support/regression/ports/mcs51/spec.mk: removed GENERIC
16937         * support/regression/ports/z80/spec.mk: removed GENERIC
16938
16939 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
16940
16941         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
16942
16943         * support/regression/tests/bug-467035.c: Created.
16944
16945 2001-10-01    <johan AT FRIJA>
16946
16947         * src/SDCC.y: fixed bug #466586 part 1
16948
16949 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
16950
16951         * SDCCicode.c: z80 has no generic pointers
16952         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
16953
16954 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
16955
16956         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
16957
16958 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
16959
16960         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
16961
16962         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
16963
16964 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
16965
16966         * configure.in: Fixed up so that ucsim is only configured once.
16967
16968         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
16969
16970         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
16971         (getPathDifference): As above.
16972
16973         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
16974
16975         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
16976
16977 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
16978         * .version: Updated to 2.3.1
16979
16980         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
16981         Added copyright header.
16982
16983         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
16984         (assemble): Added support for macro based assembler commands.
16985         (linkEdit): Added support for macro based linker commands.
16986         (preProcess): Changed the pre-processor to use macros.
16987         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
16988         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
16989
16990         * device/lib/z80/crt0.s: Added module name for debugging.
16991
16992 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
16993
16994         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
16995
16996         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
16997
16998         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
16999
17000         * src/Makefile.in: Added SDCCmacro and SDCCutil
17001
17002 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
17003
17004         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
17005
17006 2001-09-16    <johan AT FRIJA>
17007
17008         * 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.
17009
17010 2001-09-15    <johan AT FRIJA>
17011
17012         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
17013         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
17014
17015 2001-09-11    <johan AT FRIJA>
17016
17017         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
17018
17019 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
17020
17021         * support/regression/tests/bug-460444.c: Added test case.
17022
17023         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
17024         (genCast): Added justification for all of the asserts.
17025
17026 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
17027
17028         * support/regression/support.c: _xdata replaced by xdata
17029
17030         * support/regression/spec.mk: removed _generic
17031
17032 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
17033
17034         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
17035
17036         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
17037         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
17038
17039         * src/z80/peeph.def: Added a rule to optimise shift then compare.
17040
17041         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
17042
17043         * support/regression/tests/bug-460010.c: Added test case.
17044
17045         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
17046
17047 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
17048
17049         * support/regression/Makefile: inter-port-clean adjusted for mcs51
17050
17051         * support/regression/testfwk.c: removed workaround for bug #436344
17052
17053         * support/regression/tests/bp.c: use less memory with mcs51
17054
17055         * support/regression/tests/bug-441448.c: use less memory
17056
17057         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
17058
17059         * support/regression/collate-results.py: typo
17060
17061 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
17062
17063         * support/regression/tests/fetchoverlap.c: Added new test case.
17064
17065         * support/regression/tests/bp.c: Added new test case.
17066
17067         * support/regression/tests/bug-448984.c: Added new test case.
17068
17069         * support/regression/tests/pow2shifts.c: Added new test case.
17070
17071         * src/z80/gen.c: Turned off the noise it normally generates for the release.
17072         (genlshTwo): Fixed right shift for count > 8.
17073
17074         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
17075
17076 2001-09-08    <johan AT FRIJA>
17077
17078         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
17079
17080 2001-09-07    <johan AT FRIJA>
17081
17082         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
17083
17084         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
17085
17086 2001-09-06    <johan AT FRIJA>
17087
17088         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
17089         * bernhard noted me at this: "() equals to (void)" (1.38)
17090
17091 2001-09-05    <johan AT FRIJA>
17092
17093         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
17094
17095 2001-09-04    <johan AT FRIJA>
17096
17097         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
17098
17099
17100 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
17101
17102         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
17103
17104 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
17105
17106         * link/z80/aslink.h: Fixed path for PATH_MAX
17107
17108 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
17109
17110         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
17111
17112         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
17113
17114         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
17115
17116         * 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.
17117
17118 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
17119
17120         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
17121         (genCmp): Fixed up genCmp for the GB with longs.
17122
17123         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
17124
17125         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
17126
17127         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
17128
17129         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
17130
17131 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
17132
17133         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
17134
17135 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
17136
17137         * 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.
17138
17139         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
17140
17141 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
17142
17143         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
17144
17145         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
17146
17147 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
17148
17149   * sim/ucsim/configure:    little improvement of Cygwin-detection
17150   * sim/ucsim/configure.in: little improvement of Cygwin-detection
17151   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
17152   * support/regression/tests/bug-221100.c: small changes for mcs51
17153   * support/regression/tests/bug-221168.c: small changes for mcs51
17154   * support/regression/tests/bug-227710.c: small changes for mcs51
17155   * support/regression/tests/staticinit.c: small changes for mcs51
17156   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
17157   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
17158   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
17159
17160 $Revision$