* configure.in,
[fw/sdcc] / ChangeLog
1 2008-08-10 Raphael Neider <rneider AT web.de>
2
3         * configure.in,
4         * Makefile.common.in: export PACKAGE for $docdir,
5           fixes #1957036, avoid some "underquoted definition" warnings
6         * configure: regenerated
7
8 2008-08-10 Raphael Neider <rneider AT web.de>
9
10         * device/lib/pic16/**: build pic16 library using autotools for
11           improved dependency tracking
12
13         * device/lib/Makefile.in,
14         * src/pic16/main.c,
15         * support/scripts/sdcc.nsi: adapt to changes in filenames (s/.lib/.a/)
16
17 2008-08-10 Raphael Neider <rneider AT web.de>
18
19         * src/pic/pcode.c (ReuseReg): do not overlay the registers used for
20           local variables if --nooverlay is given, workaround for #2023121
21
22 2008-08-08 Raphael Neider <rneider AT web.de>
23
24         * src/pic16/genarith.c (genAddLit): fix structure access (#1888004)
25
26 2008-08-08 Raphael Neider <rneider AT web.de>
27
28         * src/pic/pcoderegs.c,
29         * src/pic/pcode.c,
30         * src/pic16/pcode.c: replace own SAFE_snprintf with common SNPRINTF
31
32 2008-08-07 Borut Razem <borut.razem AT siol.net>
33
34         * src/SDCCval.c, src/SDCCmain.c, src/SDCC.lex,
35           device/lib/pic/Makefile.rules, device/lib/ds390/Makefile.in,
36           device/lib/ds400/Makefile.in, device/lib/hc08/Makefile.in,
37           support/cpp/libcpp/lex.c,  doc/sdccman.lyx:
38           applied modified patch 2038174: Add support for binary constants v2
39           thanks Mauro Giachero
40         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.3
41
42 2008-08-04 Raphael Neider <rneider AT web.de>
43
44         * doc/sdccman.lyx,
45         * src/pic16/device.h,
46         * src/pic16/glue.c,
47         * src/pic16/main.c: enable --optimize-goto by default
48
49         * device/lib/pic16/Makefile.common.in: suppress removed option
50
51         * src/pic16/gen.c,
52         * src/pic16/genutils.c: avoid too long relative branches (#2031890)
53
54 2008-07-30 Borut Razem <borut.razem AT siol.net>
55
56         * src/pic16/device.c, src/pic16/glue.c, src/pic16/pcode.c:
57           applied patch 22032433: PIC16: fix constant strings,
58           thanks Mauro Giachero
59
60 2008-07-29 Borut Razem <borut.razem AT siol.net>
61
62         * src/pic16/gen.c: applied patches:
63           2030306: [1/3] PIC16: fix failing rotate.c tests on 16-bit variables,
64           2030307: [2/3] PIC16: fix failing rotate.c tests for 32-bit var (1),
65           2030310: [3/3] PIC16: fix failing rotate.c tests for 32-bit var (2),
66           thanks Mauro Giachero
67
68 2008-07-13 Philipp Klaus Krause <pkk AT spth.de>
69         * src/port.h: Fixed typo in comment
70
71 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
72         * src/z80/mappings.i: Implemented RFE #1919415
73         * src/z80/peeph-z80.def: Implemented RFE #1919415, #1861376,
74           #1880202, #1914434, prepared for RFE #1703943
75
76 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
77
78         * src/z80/peeph.def,
79         * src/z80/peeph-z80.def,
80         * src/z80/peeph-gbz80.def: separate Z80 from GBZ80 peepholes in
81           preparation for Z80 peephole improvements
82
83 2008-06-21 Raphael Neider <rneider AT web.de>
84
85         * device/include/pic16/pic18f66j60.h,
86         * device/include/pic16/pic18f66j65.h,
87         * device/include/pic16/pic18f67j60.h,
88         * device/include/pic16/pic18f86j60.h,
89         * device/include/pic16/pic18f86j65.h,
90         * device/include/pic16/pic18f87j60.h,
91         * device/include/pic16/pic18f96j60.h,
92         * device/include/pic16/pic18f96j65.h,
93         * device/include/pic16/pic18f97j60.h,
94         * device/lib/pic16/libdev/pic18f66j60.c,
95         * device/lib/pic16/libdev/pic18f66j65.c,
96         * device/lib/pic16/libdev/pic18f67j60.c,
97         * device/lib/pic16/libdev/pic18f86j60.c,
98         * device/lib/pic16/libdev/pic18f86j65.c,
99         * device/lib/pic16/libdev/pic18f87j60.c,
100         * device/lib/pic16/libdev/pic18f96j60.c,
101         * device/lib/pic16/libdev/pic18f96j65.c,
102         * device/lib/pic16/libdev/pic18f97j60.c,
103         * device/include/pic16/pic16devices.txt,
104         * device/include/pic16/pic18fregs.h,
105         * device/lib/pic16/pics.all: added new devices
106
107         * device/include/pic16/adc.h,
108         * device/lib/pic16/libio/adc/adcbusy.c,
109         * device/lib/pic16/libio/adc/adcopen.c,
110         * device/lib/pic16/libio/adc/adcsetch.c,
111         * device/lib/pic16/libio/i2c/i2copen.c,
112         * device/lib/pic16/libio/usart/uopen.c: adapted to new devices,
113           all changes from a patch by Anton Strobl
114
115 2008-06-12 Borut Razem <borut.razem AT siol.net>
116
117         * sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/bp.cc,
118           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
119           sim/ucsim/z80.src/z80cl.h, sim/ucsim/z80.src/z80.cc,
120           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
121           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
122           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/uc390.cc,
123           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/uc390cl.h,
124           sim/ucsim/avr.src/avrcl.h, sim/ucsim/avr.src/avr.cc:
125           fixed bug 1990586: s51 simulator, uc::disass() unimplemented
126           by applying the modified patch from Risto Huotari
127
128 2008-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
129
130         * .version,
131         * doc/sdccman.lyx: bumped sdcc version to 2.8.2
132         * src/ds390/gen.c (aopPutUsesAcc, genAddrOf): fixed bug 1015185
133         * src/mcs51/gen.c (genNearPointerGet, genNearPointerSet): fixed bug 1938300
134         * support/regression/tests/bug1938300.c: new, added
135
136 2008-06-03 Maarten Brock <sourceforge.brock AT dse.nl>
137
138         * device/include/asm/ds390/features.h,
139         * device/include/asm/mcs51/features.h,
140         * device/include/mcs51/regc515c.h: inserted LGPL notice
141
142 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
143
144         * device/lib/gbz80/div.s,
145         * device/lib/z80/div.s: fixed bug 1904314 by applying a modified part of
146           patch 1597883, Thanks Robert Ramey
147
148 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
149
150         * src/SDCCast.c (createIvalType, createIvalStruct, createIvalArray,
151           createIvalCharPtr, createIvalPtr, createIval),
152         * src/SDCCval.h
153         * src/SDCCval.c (convertIListToConstList, list2expr): handle incomplete
154           initializers for local auto variables
155         * support/regression/tests/zeropad.c: added testcase for auto initializers
156
157 2008-05-26 Raphael Neider <rneider AT web.de>
158
159         * device/lib/pic16/startup/crt0.c,
160         * device/lib/pic16/startup/crt0i.c,
161         * device/lib/pic16/startup/crt0iz.c: clean up, make use of access bank
162           explicit, fixed curr_entry loop for >= 256 initializer records,
163           removed debug code (write to 0xf7e)
164
165 2008-05-25 Raphael Neider <rneider AT web.de>
166
167         * device/include/pic/pic16f627a.h,
168         * device/include/pic/pic16f628a.h,
169         * device/include/pic/pic16f648a.h: added missing ports
170
171 2008-05-20 Maarten Brock <sourceforge.brock AT dse.nl>
172
173         * device/include/float.h: added __INFINITY
174         * device/lib/_fsadd.c: handle overflows
175         * device/lib/_fsmul.c,
176         * device/lib/_fsdiv.c: use __INFINITY
177         * device/lib/_fseq.c,
178         * device/lib/_fsneq.c: handle -0.0
179         * sim/ucsim/s51.src/uc89c51r.cc,
180         * sim/ucsim/s51.src/uc89c51rcl.h: fixed bug 1385430
181         * sim/ucsim/sim.src/hwcl.h: */* confuses VC
182         * src/mcs51/gen.c (genSend): fixed bug with --xstack
183         * support/regression/ports/mcs51-xstack-auto/spec.mk: print floats
184         * support/regression/tests/snprintf.c: test bug with --xstack
185
186 2008-05-19  Philipp Klaus Krause <pkk AT spth.de>
187
188         * src/SDCCpeeph.c (callFuncByName):
189           Support nested parenthesis in peephole function arguments (#1967300)
190
191 2008-05-19 Raphael Neider <rneider AT web.de>
192
193         * src/pic16/gen.c (pic16_emitpLabel,pic16_emitpLabelFORCE):
194           fixed duplicate labels (#1911325)
195
196 2008-05-19 Raphael Neider <rneider AT web.de>
197
198         * src/regression/empty.c: suppress warning
199         * src/regression/pointer1.c: enabled index_by_pointer()
200         * src/regression/inline.c: now works for pic16 as well
201
202         * src/pic16/device.c: include dbuf declarations
203         * src/pic16/device.h: removed obsolete prototypes
204
205         * src/pic16/gen.c, src/pic16/gen.h: moved generic pointer tags
206         * src/pic16/glue.c: made purely local functions static,
207           (pic16_printGPointerType, pic16_printIvalCharPtr,
208           pic16_printIvalFuncPtr, pic16_printIvalPtr): fixed initialized
209           generic pointers' tags (#1961866)
210
211         * src/pic16/pcode.c (assignValnums): optimize literal assignments
212
213 2008-05-19 Borut Razem <borut.razem AT siol.net>
214
215         * support/scripts/sdcc.nsi: remove uninstall.exe after uninstallation,
216           fixed typo, uninstall include/pic16/pic16devices.txt
217
218 2008-05-18 Borut Razem <borut.razem AT siol.net>
219
220         * support/Utils/dbuf_string.[ch]: added dbuf_chomp(),
221           the buffer is null terminated
222         * src/device/pic16.c:
223           applied modified patch 1965676: Patch for Win32 16 bit PIC
224         * sdcc_vc_in.h: defined YY_NO_UNISTD_H
225
226 2008-05-16 Maarten Brock <sourceforge.brock AT dse.nl>
227
228         * src/SDCC.lex (check_type),
229         * src/SDCC.y (type_specifier2 TYPE_NAME): fixed bug 1925942
230         * as/hc08/clean.mk,
231         * as/mcs51/clean.mk,
232         * as/z80/clean.mk: also clean *.dep
233         * device/lib/pic16/libsdcc/stack/Makefile,
234         * sim/ucsim/libtool: removed as they are rebuild by configure
235         * src/clean.mk: removed izt, so Makefile is not deleted for distclean
236
237 2008-05-13 Maarten Brock <sourceforge.brock AT dse.nl>
238
239         * src/SDCCast.c (fixupInline, createFunction): save currBlockno in
240           fixupInline instead of createFunction to fix bug 1864577
241           (inlineFindMaxBlockno): removed, use global blockNo
242         * src/SDCCglobl.h: added blockNo
243         * src/z80/peep.c,
244         * src/z80/peep.h: modified properties
245         * support/regression/tests/bug1864577.c: new, added
246
247 2008-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
248
249         * as/mcs51/asdata.c,
250         * as/mcs51/asm.h: added org_cnt
251         * as/mcs51/asmain.c (main, asmbl): fixed bug 1957716, changed old K&R to ANSI
252         * as/mcs51/asout.c: changed old K&R to ANSI
253         * as/mcs51/Makefile.in: use common identifiers
254         * as/hc08/asdata.c,
255         * as/hc08/asexpr.c,
256         * as/hc08/asm.h,
257         * as/hc08/asmain.c,
258         * as/hc08/asout.c,
259         * as/hc08/Makefile.bcc,
260         * as/hc08/Makefile.in: synchronized with as/mcs51/*
261         * sdcc_vc_in.h: added define __func__
262         * src/SDCCast.c (expandInlineFuncs): applied patch 1957148 to fix bug 1717305,
263           Thanks Ruud van Silfhout
264         * support/regression/tests/bug1717305.c: new, added
265
266 2008-05-05 Borut Razem <borut.razem AT siol.net>
267
268         * support/regression/Makefile.in,
269           support/regression/ports/ds390/spec.mk,
270           support/regression/ports/hc08/spec.mk,
271           support/regression/ports/mcs51-common/spec.mk,
272           support/regression/ports/pic14/spec.mk,
273           support/regression/ports/pic16/spec.mk,
274           support/regression/ports/ucz80/spec.mk,
275           support/regression/ports/z80/spec.mk:
276           added INC_DIR and LIBDIR paths
277         * src/ds390/gen.c: removed duplicated selicolon
278
279 2008-05-04 Borut Razem <borut.razem AT siol.net>
280
281         * support/regression/Makefile.in,
282           support/regression/fwk/lib/testfwk.c,
283           support/regression/ports/ds390/spec.mk,
284           support/regression/ports/hc08/spec.mk,
285           support/regression/ports/mcs51-common/spec.mk,
286           support/regression/ports/mcs51-large/spec.mk,
287           support/regression/ports/mcs51-medium/spec.mk,
288           support/regression/ports/mcs51-small/spec.mk,
289           support/regression/ports/mcs51-stack-auto/spec.mk,
290           support/regression/ports/mcs51-xstack-auto/spec.mk,
291           support/regression/ports/pic14/spec.mk,
292           support/regression/ports/pic16/spec.mk,
293           support/regression/ports/ucz80/spec.mk:
294           added possibility to define the sdcc binary directory SDCC_BIN_PATH
295           used to run regeression tests
296
297 2008-05-01 Raphael Neider <rneider AT web.de>
298
299         * doc/sdccman.lyx, support/scripts/inc2h-pic16.pl: updated list of
300           supported devices and instructions to add new ones
301
302 2008-05-01 Raphael Neider <rneider AT web.de>
303
304         * device/include/pic16/adc.h,
305           device/lib/pic16/libio/adc/adcbusy.c,
306           device/lib/pic16/libio/adc/adcopen.c,
307           device/lib/pic16/libio/adc/adcsetch.c: support old 18f242 and new
308           18f2455 style ADC devices, based on patch #1776197
309         * device/lib/pic16/libio/adc/adcclose.c,
310           device/lib/pic16/libio/adc/adcconv.c,
311           device/lib/pic16/libio/adc/adcread.c: cosmetic changes
312         * device/include/pic16/{pic18f2331.h,pic18f2431.h},
313           device/lib/pic16/libdev/{pic18f2331.c,pic18f2431.c}: reuse 18f4331
314         * device/include/pic16/pic18f4431.h,
315           device/lib/pic16/libdev/pic18f4431.c: remove outdated comments
316         * device/lib/pic16/libio/adc.ignore: forbid unhandled devices
317
318 2008-05-01 Raphael Neider <rneider AT web.de>
319
320         * src/pic16/device.h: removed unused field PIC16_device.sfrRange,
321           moved xinst flag into pic16_options_t
322         * src/pic16/device.c (default_device, pic16_list_devices,
323           pic16_find_device): removed references to sfrrange
324         * src/pic16/gen.c (genFunction),
325           src/pic16/glue.c (pic16initialComments),
326           src/pic16/main.c (pic16_optionsTable),
327           src/pic16/ralloc.c (newReg, pic16_writeUsedRegs): updated references
328           to xinst
329         * device/include/pic16/pic16devices.txt: removed sfrrange lines
330
331 2008-04-29 Raphael Neider <rneider AT web.de>
332
333         * src/pic16/devices.inc,
334           device/include/pic16/pic16devices.txt: replaced compiled-in list
335           of devices with a variant parsed at runtime
336         * src/pic16/device.c: added support for parsing pic16devices.txt,
337           clean up
338         * src/pic16/device.h: removed (now) unused fields from PIC_device
339         * src/pic16/main.c: removed #pragma maxram,
340           (_pic16_initPaths): removed bogus generation of search paths,
341           setup the port proper only after the search paths (for
342           pic16devices.txt) are set up,
343           (_pic16_finaliseOptions): moved processor dependant code here
344           from _pic16_initPaths(), clean up
345         * src/pic16/ralloc.c (pic16_init_stack),
346         * src/pic16/ralloc.h,
347         * src/pic16/pcode.c: clean up
348         * device/include/Makefile.in,
349           support/scripts/sdcc.nsi: also install/package pic16devices.txt
350         * support/scripts/inc2h-pic16.pl: updated instructions
351
352 2008-04-29 Raphael Neider <rneider AT web.de>
353
354         * device/include/pic16/{pic18f2480.h, pic18f2580.h, pic18f4423.h,
355           pic18f4480.h, pic18f4523.h, pic18f4580.h, pic18f6585.h, pic18f8585.h},
356           device/lib/pic16/libdev/{pic18f2480.c, pic18f2580.c, pic18f4423.c,
357           pic18f4480.c, pic18f4523.c, pic18f4580.c, pic18f6585.c, pic18f8585.c}:
358           added missing family members and 18f2480/2580/4480/4580 family
359         * device/include/pic16/{pic18f2423.h, pic18f2523.h}: use 18f4523.h
360         * device/include/pic16/pic18f2525.h: use 18f4620.h
361         * device/include/pic16/pic18f6680.h: use 18f8680.h
362         * device/include/pic16/pic18fregs.h,
363           device/lib/pic16/pics.all,
364           src/pic16/devices.inc: add new devices
365         * device/lib/pic16/libdev/{pic18f2423.c, pic18f2523.c}: use 18f4523.c
366         * device/lib/pic16/libdev/pic18f2525.c: use 18f4620.c
367         * device/lib/pic16/libdev/pic18f6680.c: uso 18f8680.c
368         * device/lib/pic16/libio/{adc.ignore, i2c.ignore, usart.ignore}:
369           prevent attempting to build the libio for some new devices
370
371 2008-04-29 Raphael Neider <rneider AT web.de>
372
373         * debugger/mcs51/Makefile.in: fixed paths to sources
374
375 2008-04-25 Borut Razem <borut.razem AT siol.net>
376
377         * as/link/lklibr.c: moved from as/link/z80/lklibr.c
378         * as/link/hc08/lklibr.c, as/link/mcs51/lklibr.c: deleted
379         * as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
380         * as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
381           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
382           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
383           as/link/z80/linkz80.dsp: lklibr.c moved
384         * doc/INSTALL.txt: binary archives in bz2 format
385         * support/cpp/auto-host_vc_in.h: CPP2 replaced with CPP
386
387 2008-04-23 Maarten Brock <sourceforge.brock AT dse.nl>
388
389         * src/SDCCglue.c (printIvalType, printIvalBitFields): fixed bug 1856409
390         * support/regression/tests/bug1856409.c: new, added
391
392 2008-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
393
394         * src/z80/peep.c,
395         * src/mcs51/peep.c: Use werror for error messages.
396         * src/SDCCicode.c (geniCodeConditional),
397         * src/SDCCsymt.c (structElemType): fixed bug 1839321
398         * src/z80/Makefile.bcc,
399         * src/z80/z80.dsp: added src/z80/peep.c/h
400         * support/regression/tests/bug1839321.c: new, added
401
402 2008-04-20 Raphael Neider <rneider AT web.de>
403
404         * device/include/pic16/pic18f2455.h: added bitfields for port C
405
406 2008-04-20 Philipp Klaus Krause <pkk AT spth.de>
407
408         * src/z80/peep.c: Use werror for error messages.
409
410 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
411
412         * src/z80/peep.h (declaration of notUsed()),
413         * src/z80/main.c (enabled notUsed() for z80 port, documented z80_port
414           struct),
415         * src/z80/z80.h (added dependency on peep.h),
416         * src/z80/peep.c (definition of notUsed()): Implemented RFE #1880202
417           for Z80.
418
419 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
420
421         * src/SDCCpeeph.c (added support for notUsed()),
422         * src/mcs51/main.c (added dependency on peep.h, documented mcs51_port
423           struct),
424         * src/port.h (removed dependency on mcs51/peep.h, added declaration
425           for notUsed()): Implemented generic (that is not port-specific) part
426           of RFE #1880202.
427
428 2008-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
429
430         * as/link/mcs51/lkmem.c (summary2): fixed bug 1796077
431         * device/lib/libsdcc.lib,
432         * device/lib/Makefile.in,
433         * support/regression/ports/mcs51-xstack-auto/spec.mk,
434         * device/lib/calloc.c: renamed to _calloc.c
435         * device/lib/free.c: renamed to _free.c
436         * device/lib/malloc.c: renamed to _malloc.c
437         * device/lib/realloc.c: renamed to _realloc.c
438         * src/ds390/gen.c (aopGet, aopPut, genPlusBits, genDataPointerSet,
439           genNearPointerSet, genPagedPointerSet): synchronized with mcs51/gen.c
440         * src/ds390/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq, ifxForOp,
441           genAnd, genOr, genXor, genIfx, gen390Code): fixed bug 1509084
442         * src/mcs51/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq,
443           ifxForOp, genAnd, genOr, genXor, genNearPointerGet,
444           genPagedPointerGet, genFarPointerGet, genCodePointerGet,
445           genGenPointerGet, genIfx, gen51Code): fixed bug 1509084
446         * src/ds390/gen.c,
447         * src/mcs51/gen.c: throughout cosmetic changes for syncing both
448         * src/SDCCsymt.h: updated IS_OP_RUONLY, IS_OP_ACCUSE
449         * support/regression/tests/bug1509084.c: new, added
450
451 2008-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
452
453         * device/include/mcs51/cc2510fx.h: added _XPAGE
454         * device/include/mcs51/compiler.h: cosmetic changes
455
456 2008-03-31 Maarten Brock <sourceforge.brock AT dse.nl>
457
458         * sdcc.dsw: adapted for moved cpp2, added dependency for as_z80 on
459           config
460
461 2008-03-31 Borut Razem <borut.razem AT siol.net>
462
463         * support/cpp2 renamed to support/cpp
464         * support/cpp2/libiberty/filenames.h, support/cpp2/libiberty/hex.c,
465           support/cpp2/libiberty/splay-tree.c,
466           support/cpp2/libiberty/splay-tree.h, support/cpp2/libcpp/macro.c,
467           support/cpp2/libcpp/directives.c,
468           support/cpp2/libcpp/include/cpplib.h,
469           support/cpp2/libcpp/include/symtab.h,
470           support/cpp2/libcpp/include/line-map.h,
471           support/cpp2/libcpp/line-map.c, support/cpp2/libcpp/files.c,
472           support/cpp2/libcpp/init.c, support/cpp2/libcpp/traditional.c,
473           support/cpp2/libcpp/expr.c, support/cpp2/libcpp/internal.h,
474           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/system.h,
475           support/cpp2/libcpp/charset.c: SDCPP synchronized with GCC CPP
476           release version 4.3.0
477         * configure.in, configure, Makefile.in, Makefile.bcc:
478           adapted for moved cpp2
479
480 2008-03-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
481
482         * device/include/hc08/mc68hc908jkjl.h: committed fix for bug #1929739,
483           thanks Alejandro Pustowka <alejo_pustowka AT yahoo.com.mx>
484
485 2008-03-30 Maarten Brock <sourceforge.brock AT dse.nl>
486
487         * src/SDCCloop.c (loopInvariants): applied fix for bug 1717943, thanks
488           Robert Larice
489         * support/regression/tests/bug1717943.c: new, added
490
491 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
492
493         * src/z80/gen.c (assignResultValue): Reverted reversal of order of
494           bytewise return value assignments introduced in last commit.
495
496 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
497
498         * src/z80/gen.c (emitDebug, assignResultValue, genPlus, genMinus,
499           genMult, genJumpTab):
500           Use 16-bit instructions for addition in some additional cases,
501           implemented RFEs #1914251, #1914245, #1922090, #1921382, #1918323.
502
503 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
504
505         * src/z80/ralloc.c (serialRegAssign, allocReg, tryAllocatingRegPair):
506           Implemented RFE #1921450, changed some debug messages.
507
508 2008-03-30 Borut Razem <borut.razem AT siol.net>
509
510         * Small Device C Compiler 2.8.0 released
511         * .version, doc/sdccman.lyx: changed sdcc version to 2.8.1
512         * support/scripts/sdcc.nsi: added finish page; this version
513           was used for 2.8.0 release
514         * doc/knownbugs.html: removed; magically generated by the build
515           process using gen_known_bugs.pl from now on
516
517 2008-03-23 Borut Razem <borut.razem AT siol.net>
518
519         * src/pic/gen.h: Q&D solution for the bug, found by Jim Paris
520           and reverted it, since it was already fixed by Raphael ;-)
521         * doc/knownbugs.html: updated for RC2
522
523 2008-03-22 Raphael Neider <rneider AT web.de>
524
525         * src/SDCCicode.c (getPtrType): avoid unnecessary extra assignments
526           for PIC16 targets
527
528 2008-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
529
530         * src/mcs51/gen.c (adjustArithmeticResult): fixed bug 1839299
531         * support/regression/tests/bug1839277.c: added related testBug1839299
532
533 2008-03-21 Maarten Brock <sourceforge.brock AT dse.nl>
534
535         * src/ds390/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign),
536         * src/mcs51/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign):
537           fixed bug 1839277
538         * src/mcs51/gen.c: throughout only output hex constants
539         * src/SDCCicode.c (getPtrType, geniCodeCast): fixed code size regression
540         * support/regression/tests/bug1839277.c: new, added
541
542 2008-03-21 Philipp Klaus Krause <pkk AT spth.de>
543
544         * src/z80/ralloc.c (callFuncByName): Used // instead of /**/ to fix
545           compilation warning about nested comments.
546
547 2008-03-20 Maarten Brock <sourceforge.brock AT dse.nl>
548
549         * src/SDCCsymt.c (comparePtrType): fixed bug 1921073
550         * support/regression/tests/bug1921073.c: new, added
551
552 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
553
554         * src/z80/SDCCpeeph.c.c (callFuncByName):
555           Commented function parameters.
556
557 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
558
559         * src/z80/ralloc.c (packRegsForAccUse2):
560           disabled a broken accumulator packing optimization (fixed #1292721).
561         * support/regression/tests/bug-1292721: Regression test for #1292721.
562
563 2008-03-16 Raphael Neider <rneider AT web.de>
564
565         * src/pic/gen.c (SetIrp,genNearPointerGet,genNearPointerSet):
566           fixed code bloat regression using a variant of patch #1915618
567
568 2008-03-16 Borut Razem <borut.razem AT siol.net>
569
570         * support/scripts/sdcc.nsi: added section debugging macros, added SDCC
571           icon, changed startup menu for release distribution, code cleaning,
572           create url files instead links in startup menu
573
574 2008-03-16 Maarten Brock <sourceforge.brock AT dse.nl>
575
576         * src/SDCCcse.c (algebraicOpts): fixed bug 1579949
577         * support/regression/tests/bug1579949.c: new, added
578
579 2008-03-14 Paul Stoffregen <paul AT pjrc.com>
580
581         * device/lib/printf_fast.c: fixed bug 1255403
582
583 2008-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
584
585         * doc/sdccman.lyx: enhanced paragraph about bankswitching for mcs51
586         * src/cdbFile.c (cdbWriteBasicSymbol): fixed bug 1909409 for locals
587
588 2008-03-14 Borut Razem <borut.razem AT siol.net>
589
590         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated link-xx and aslink
591           command line options
592         * as/link/hc08/lkmain.c: converted tabs to spaces so that the usage
593           is correctly displayed
594         * as/link/z80/lkmain.c: usage line commented out
595
596 2008-03-13 Borut Razem <borut.razem AT siol.net>
597
598         * doc/sdccman.lyx: corrected to be able to convert to PDF,
599           updated the list pf supported pic14 devices
600
601 2008-03-12 Maarten Brock <sourceforge.brock AT dse.nl>
602
603         * doc/sdccman.lyx: added paragraph about bankswitching for mcs51
604
605 2008-03-12 Borut Razem <borut.razem AT siol.net>
606
607         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated command line options,
608           fixed documentation request #1718191
609         * as/hc80/asmain.c, as/mcs51/asmain.c: added option -c to usage
610         * doc/sdccman.lyx: added description of --no-std-crt0 gbz80
611           command line option
612
613 2008-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
614
615         * src/SDCCast.c (isConformingBody): fixed bug 1505811, thanks Robert Larice
616         * support/regression/tests/bug1505811.c: new, added
617
618 2008-03-09 Raphael Neider <rneider AT web.de>
619
620         * device/include/pic16/pic18f2620.h,
621         * device/include/pic16/pic18f4620.h,
622         * device/lib/pic16/libdev/pic18f2620.c,
623         * device/lib/pic16/libdev/pic18f4525.c,
624         * device/lib/pic16/libdev/pic18f4620.c: merged 18f2525/2620/4525/4620
625           family to consistently use pic18f4620.[ch], fixes #1832562
626
627 2008-03-09 Borut Razem <borut.razem AT siol.net>
628
629         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
630           changed sdcc version to 2.8.0
631         * knownbugs.html: regenerated
632         * support/scripts/gen_known_bugs.pl: added number of open bugs
633
634 2008-03-09 Raphael Neider <rneider AT web.de>
635
636         * src/pic16/gen.c (pic16_mov2w_volatile): NEW, read volatile operands,
637           (genOr): read volatile operand even if the result is known,
638           closes #1511838
639           (genOr,genXor): removed unused legacy code,
640           (genDummyRead): use pic16_mov2w_volatile()
641
642 2008-03-08 Borut Razem <borut.razem AT siol.net>
643
644         * src/SDCCglue.c: fixed bug #1864582: multiple definition of char
645           cons w. --model-large
646         * support/regression/staticinit.c: added regression test for bug
647           #1864582
648
649 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
650
651         * src/ds390/gen.c (pushSide, genPcall),
652         * src/hc08/gen.c (pushSide, genPcall): synchronized with mcs51
653         * src/mcs51/gen.c: cosmetic changes
654         * support/regression/fwk/include/testfwk.h: added macro reentrant
655         * support/regression/tests/bug1908493.c: new, added
656
657 2008-03-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
658
659         * src/SDCCdebug.c:, as/link/lkaomf51.c: Fixed bug 1909409: Pdata in OMF file
660
661 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
662
663         * src/mcs51/gen.c (pushSide, genPcall): fixed bug 1908493
664         * src/SDCCmain.c (preProcess): removed -DSDCC_PARMS_IN_BANK1 because it is
665           already set in ds390/main.c and mcs51/main.c
666
667 2008-03-07 Raphael Neider <rneider AT web.de>
668
669         * src/regression/init0.c: new test for initialized arrays of function
670           pointers
671         * src/regression/Makefile: made a bit more flexible, added init0.c
672         * src/pic/glue.c (emitIvals): hacky fix for initializing from function
673           pointers, closes #1427663
674
675 2008-03-05 Borut Razem <borut.razem AT siol.net>
676
677         * dos/sdccman.lyx: docummented predefined macros SDCC_REVISION,
678           SDCC_PARMS_IN_BANK1, SDCC_FLOAT_REENT and SDCC_INT_LONG_REENT
679
680 2008-03-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
681
682         * support/librarian/sdcclib.c:Added feature request 1908061:
683           Synchronise sdcclib commands with ar.
684
685 2008-03-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
686
687         * src/SDCCmain.c: added predefined macros SDCC_REVISION (RFE #1907229),
688           and (depending on corresponding compiler option) SDCC_PARMS_IN_BANK1,
689           SDCC_FLOAT_REENT, SDCC_INT_LONG_REENT
690         * device/include/mcs51/compiler.h: removed umlauts, added double
691           underscore
692
693 2008-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
694
695         * src/SDCCptropt.c (ptrPseudoSymConvert): fixed bug 1536762
696         * support/regression/tests/bug1536762.c: new, added
697         * src/SDCCutil.c,
698         * src/SDCCutil.h: added getBuildDate()
699         * src/SDCCmain.c (printVersionInfo),
700         * src/SDCCglue.c (initialComments): use getBuildDate() instead of
701           __DATE__
702         * src/*/ralloc.c: removed IS_OP_RUONLY macro
703         * src/ds390/ralloc.c (packRegisters),
704         * src/mcs51/ralloc.c (packRegisters),
705         * src/z80/ralloc.c (packRegisters): applied fix for bug 1618050, thanks
706           Robert Larice
707         * support/regression/tests/bug1618050.c: new, added
708         * src/SDCCsymt.h: fixed typo in DECLSPEC2TXT
709         * support/regression/fwk/include/testfwk.h,
710         * support/regression/tests/bug1838000.c: moved _AUTOMEM and _STATMEM to
711           testfwk.h
712
713 2008-03-04 Raphael Neider <rneider AT web.de>
714
715         * src/pic/gen.c: removed unused prototypes, prevent internal errors
716           on accessing OP_SYM_TYPE(op)
717         * src/pic/gen.h: removed unused prototype of genMinusDec()
718         * src/pic/genarith.c (genMinus): cosmetic changes, rewritten to
719           fix #1876953 (invalid subtraction code), removed unused code
720
721 2008-03-03 Raphael Neider <rneider AT web.de>
722
723         * src/pic/gen.c,
724         * src/pic/gen.h,
725         * src/pic/genarith.c,
726         * src/pic/ralloc.c,
727         * src/pic/ralloc.h: removed AOP_R0, AOP_R1, AOP_DPTR, AOP_DPTR2,
728           AOP_ACC, and *_IDX and adjusted code, removed unused legacy code
729
730 2008-03-03 Raphael Neider <rneider AT web.de>
731
732         * src/pic/device.c (find_device): search user-specified paths first
733           for pic14devices.txt, fixes #1900827
734
735 2008-03-02 Borut Razem <borut.razem AT siol.net>
736
737         * support/scripts/sdcc.nsi: fixed bug in IsNT, LogicLib-isation of
738           AddToPath and RemoveFromPath
739
740 2008-03-01 Borut Razem <borut.razem AT siol.net>
741
742         * support/scripts/sdcc.nsi: reverted MULTIUSER page since it didn't
743           work correctly, added debugging support if -DSDCC.DEBUG command line
744           option is defined
745
746 2008-02-28 Borut Razem <borut.razem AT siol.net>
747
748         * doc/sdccman.lyx: cosmetic changes
749
750 2008-02-28 Maarten Brock <sourceforge.brock AT dse.nl>
751
752         * src/mcs51/ralloc.c (fillGaps): fixed bug 1839671
753         * doc/sdccman.lyx: fixed unmeant removal of spaces
754
755 2008-02-27 Borut Razem <borut.razem AT siol.net>
756
757         * support/scripts/sdcc.nsi: corrected installation directory for
758           current user installation mode
759         * doc/README.txt: added Philipp Klaus Krause to the developers list
760
761 2008-02-27 Maarten Brock <sourceforge.brock AT dse.nl>
762
763         * src/mcs51/gen.c (genUnpackBits): don't generate ifxJump, instead
764           return ifx condition
765           (genNearPointerGet, genPagedPointerGet, genFarPointerGet,
766           genCodePointerGet, genGenPointerGet): cleanup aop before generating
767             ifxJump to fix bug 1838000
768         * src/SDCCsymt.c (aggregateToPointer): fix problem for xstack
769         * support/regression/tests/bug1838000.c: new, added
770         * device/include/mcs51/cc1110.h: new, added, thanks to Pravin Angolkar
771
772 2008-02-26 Borut Razem <borut.razem AT siol.net>
773
774         * src/SDCCast.c, doc/sdccman.lyx: fixed RFE #1901171: inerger promotion
775           of casted varargs
776         * support/scripts/sdcc.nsi: added MULTIUSER page,
777           NSIS upgraded to version 2.35
778
779 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
780
781         * src/mcs51/ralloc.c (isSpiltOnStack): fixed bug 1565152
782         * support/regression/tests/bug1565152.c: new, added
783
784 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
785
786         * src/mcs51/gen.c (genPagedPointerSet): fixed bug 1670148
787         * support/regression/ports/mcs51-xstack-auto/spec.mk: added expf.c
788         * support/regression/tests/bug1670148.c: new, added
789
790 2008-02-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
791
792         * device/include/mcs51/at89c51ed2.h: fixed bug 1901469.
793
794 2008-02-24 Borut Razem <borut.razem AT siol.net>
795
796         * src/SDCCast.c, src/SDCCast.h: fixed bug #1874922: explicit typecast
797           is ineffective for unsigned char parameter
798
799 2008-02-24 Maarten Brock <sourceforge.brock AT dse.nl>
800
801         * src/SDCCast.c (expandInlineFuncs): fixed bug 1875869
802         * src/SDCCglue.c (printIvalBitFields): fixed bug 1806631
803         * support/regression/tests/bitopcse.c: removed hc08 exception, see testfwk.h
804         * support/Util/MySystem.c (my_system): output errorcode when verbose
805
806 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
807
808         * src/z80/gen.c (genMult): Rewrote 8-bit multiplication by constant,
809           implements #1898231
810
811 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
812
813         * device/lib/z80/mul.s: Rewrote __muluchar_rrx_s, to improve 8-bit mult.,
814           implements #1896290
815
816 2008-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
817
818         * src/SDCCast.c (createIvalStruct): fixed bug 1466761
819
820 2008-02-21 Borut Razem <borut.razem AT siol.net>
821
822         * support/regression/Makefile.in,
823           support/regression/ports/ds390/spec.mk,
824           support/regression/ports/hc08/spec.mk,
825           support/regression/ports/mcs51-common/spec.mk,
826           support/regression/ports/pic14/spec.mk,
827           support/regression/ports/pic16/spec.mk,
828           support/regression/ports/ucz80/spec.mk,
829           support/regression/ports/xa51/spec.mk:
830           added CFLAGS when compiling timeout
831
832 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
833
834         * support/regression/tests/bugs-1596270-1736867.c: Regression test for
835           #1596270, #1736867
836
837 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
838
839         * src/SDCClrange.c (findPrevUse): fixed bug 1888147
840         * support/regression/tests/bug1888147.c: new, added
841
842 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
843
844         * src/z80/gen.c: fixed bugs #1596270, #1736867
845
846 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
847
848         * src/z80/gen.c: fixed bug in register pair loading when swapping register
849           contents, mostly fixes #1596270
850
851 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
852
853         * src/z80/peeph.def,
854         * src/z80/peeph-z80.def: moved peephole that breaks gbz80 to z80-specific
855           peepholes, fixes #1806565
856
857 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
858
859         * src/SDCCpeeph.c (operandBaseName): added check for @Ri
860         * src/mcs51/peeph.def (rule 177.c): added operandsNotRelated(%1 %3)
861           fixes bug 1739475, thanks Robert Larice
862           (rule 271): new, added
863
864 2008-02-18 Borut Razem <borut.razem AT siol.net>
865
866         * sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
867
868 2008-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
869
870         * src/SDCCmain.c (linkEdit): emit -z when using --debug for z80
871
872 2008-02-17 Raphael Neider <rneider AT web.de>
873
874         * src/pic16/genarith.c,
875         * src/pic16/gen.c,
876         * src/pic16/gen.h,
877         * src/pic16/genutils.c: removed unused legacy code,
878           removed unused fields from struct asmop and struct _G
879
880 2008-02-17 Raphael Neider <rneider AT web.de>
881
882         * src/pic16/gen.c (AccRsh): cosmetic changes,
883           (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
884           genRightShiftLiteral): fixed to work with SFRs as result by
885           assigning only once to result,
886           removed a lot of unused/excluded code fragments
887
888 2008-02-17 Raphael Neider <rneider AT web.de>
889
890         * device/include/pic/pic16f88.h,
891         * device/include/pic/pic16f886.h,
892         * device/include/pic/pic16f887.h: added TRISA6 and TRISA7
893
894 2008-02-17 Borut Razem <borut.razem AT siol.net>
895
896         * src/z80/peeph.def: applied patch
897           #1893626: Optimize tail calls on Z80, thanks to Philipp Krause
898         * src/z80/gen.c, src/z80/peeph.def: applied patch
899           #1893510: Improve logical left shift on Z80, thanks to Philipp Krause
900         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
901           sim/ucsim/s51.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
902           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
903           sim/ucsim/main_in.mk: renamed libutil.a to libucsimutil.a in order to
904           enable compilation on Mac OS X 10.5 (Leopard) and XCode v3.0
905
906 2008-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
907
908         * as/link/mcs51/aslink.dsp: removed SDK define
909         * as/link/z80/clean.mk: brought in sync with other ports
910         * as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
911         * as/hc08/Makefile.bcc,
912         * as/mcs51/Makefile.bcc,
913         * as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
914         * src/z80/main.c (_setValues): use the now capitalized -Z,
915           (z80_port, gbz80_port): generate debug information when asked
916
917 2008-02-16 Borut Razem <borut.razem AT siol.net>
918
919         * as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
920           as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
921           as/z80/Makefile.in. as/z80/Makefile.bcc:
922           applied patch #1893393: patch for as-z80 and link-z80 to generate
923           cdb, thanks to Armin Diehl
924         * as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
925           as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
926           asnoice.c moved to as/asxxsrc/asnoice.c
927         * src/z80/peeph-gbz80.def: applied patch
928           #1880235: Z80 return peephole, thanks to Philipp Krause
929
930 2008-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
931
932         * .version,
933         * doc/sdccman.lyx: bumped version to 2.7.5
934         * src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583
935
936 2008-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
937
938         * device/include/pic16/stdlib.h,
939         * device/lib/pic16/libc/stdlib/ltoa.c,
940         * device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*
941
942 2008-02-13 Borut Razem <borut.razem AT siol.net>
943
944         * src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
945         * src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
946           src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
947           src/SDCCopt.c,  src/SDCCval.c:
948           fixed bug #1890273: SDCC Warning 154 shows wrong filename
949
950 2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
951
952         * src/SDCCsymt.c (compareType): fixed bug 1309013
953
954 2008-02-09 Borut Razem <borut.razem AT siol.net>
955
956         * src/SDCCval.c, src/SDCCval.h:
957           code cleaning, added function constChrVal()
958         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
959           call constChrVal() instead constVal()
960
961 2008-02-01 Maarten Brock <sourceforge.brock AT dse.nl>
962
963         * src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
964           of function pointer
965         * src/SDCCerr.h,
966         * src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
967         * support/regression/tests/absolute.c: added TestStruct TestVar (see also
968           bug 1859853)
969
970 2008-02-01 Raphael Neider <rneider AT web.de>
971
972         * device/include/pic/pic16f886.h,
973         * device/include/pic/pic16f887.h: added RA6 and RA7
974
975 2008-01-24 Raphael Neider <rneider AT web.de>
976
977         * device/include/pic/pic16f88.h: added RA6 and RA7
978         * device/lib/pic/libdev/disabled_pic16f886.c,
979         * device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled
980
981         * src/pic16/devices.inc,
982         * device/include/pic16/pic18f2423.h,
983         * device/include/pic16/pic18f2523.h,
984         * device/include/pic16/pic18fregs.h,
985         * device/lib/pic16/pics.all
986         * device/lib/pic16/libdev/pic18f2423.c,
987         * device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
988         * device/lib/pic16/libio/i2c.ignore,
989         * device/lib/pic16/libio/usart.ignore,
990         * device/lib/pic16/libio/adc.ignore: ignore new devices
991
992 2008-01-23 Maarten Brock <sourceforge.brock AT dse.nl>
993
994         * src/SDCCast.c (createRMW): fixed bug 1582651
995
996 2008-01-20 Borut Razem <borut.razem AT siol.net>
997
998         * src/SDCCcse.c: partially fixed enhancement request
999           #1793872 - multiply by -1 not collapsed
1000         * support/regression/tests/arithcsi.c: added regression test
1001
1002 2008-01-19 Maarten Brock <sourceforge.brock AT dse.nl>
1003
1004         * as/mcs51/asx8051.dsp: removed define SDK
1005         * as/mcs51/i51mch.c (machine): fixed bug 1865114
1006         * device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
1007         * as/link/lklex.c,
1008         * as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
1009           cosmetic changes, brought more in sync, changed old K&R to ANSI
1010
1011 2008-01-13 Borut Razem <borut.razem AT siol.net>
1012
1013         * support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...
1014         * src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
1015
1016 2007-12-30 Borut Razem <borut.razem AT siol.net>
1017
1018         * src/pic16/gen.c: fixed implementation of bitwise operations for
1019           pic16 target
1020         * support/regression/tests/bitwise.c: added test cases
1021
1022 2007-12-29 Borut Razem <borut.razem AT siol.net>
1023
1024         * src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
1025         * src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
1026           src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
1027         * support/Util/dbuf_string.[ch]: added function dbuf_getline()
1028         * src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
1029           src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
1030           src/pic16/pcode.[ch]: added const qualifier
1031         * as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
1032           as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
1033           as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
1034           as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
1035         * as/asxxsrc/aslex.c: use dbuf_getline()
1036         * as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
1037           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
1038           as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
1039           as/z80/asm.h, as/z80/z80adr.c:
1040           changed type of ib and ip to const char *
1041
1042 2007-12-28 Borut Razem <borut.razem AT siol.net>
1043
1044         * as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
1045           introduced (readlin) - long lines are turuncated
1046         * as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
1047           as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
1048           as/z80/Makefile.in: moved aslex.c to asxxsrc
1049         * as/hc08/aslex.c, as/z80/aslex.c: deleted
1050         * as/hc08/asmain.c, as/mcs51/asmain.c:
1051           added missing initialization of a_addr field
1052         * support/regression/tests/long_asm_line.c: added regtest for long
1053           assembler line
1054
1055 2007-12-22 Borut Razem <borut.razem AT siol.net>
1056
1057         * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
1058
1059 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
1060
1061         * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
1062
1063 2007-12-16 Borut Razem <borut.razem AT siol.net>
1064
1065         * device/include/pic16/stdbool.h: removed, since already exists in
1066          device/include/; this also fixes bitopcse.c regression test for pic16
1067          target
1068         * support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
1069         * src/pic16/glue.c: fixed bug #1851855: generic static pointer
1070           dereference doesn't work; covered by regression test bug1399290
1071
1072 2007-12-05 Borut Razem <borut.razem AT siol.net>
1073
1074         * doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
1075           Adding new PIC16
1076
1077 2007-12-01 Borut Razem <borut.razem AT siol.net>
1078
1079         * sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
1080           corrected handling of the highest_valid_address
1081
1082 2007-11-17 Raphael Neider <rneider AT web.de>
1083
1084         * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
1085         * src/pic/glue.c (picglue): emit .file if --debug is given
1086
1087 2007-11-17 Raphael Neider <rneider AT web.de>
1088
1089         * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
1090         care when left or right operand resides in result, fixes #1830220
1091
1092 2007-11-17 Borut Razem <borut.razem AT siol.net>
1093
1094         * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
1095           #983491 - "Merge duplicate strings function is ineffective"
1096         * support/regression/tests/bug-983491.c: regtest disabled
1097         * as/asxxsrc: created
1098           as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
1099           as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
1100           as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
1101           as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
1102           as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
1103           as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
1104           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
1105           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
1106           as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
1107           as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
1108           as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
1109           as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
1110           created as/asxxsrc directory, assym.c and strcpi.c moved into it
1111
1112 2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
1113
1114         * device/include/stdarg.h: added and removed some casts
1115         * src/SDCCsymt.c (compareType): Fully check types between generic and
1116           non-generic pointers, also accept ptr-ptr to void-ptr assignments
1117
1118 2007-11-13 Borut Razem <borut.razem AT siol.net>
1119
1120         * support/regression/tests/bug-1817005.c:
1121           added regtest for bug #1817005 - as-z80 chokes on long labels
1122
1123 2007-11-12 Borut Razem <borut.razem AT siol.net>
1124
1125         * as/z80/asmain.c, as/z80/asm.h, as/z80/assym.c, as/z80/asdata.c,
1126           as/z80/asout.c, as/z80/aslist.c:
1127           fixed bug #1817005 - as-z80 chokes on long labels
1128
1129 2007-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
1130
1131         * as/hc08/asmain.c,
1132         * as/z80/asmain.c: cosmetic changes
1133         * as/hc08/alloc.h,
1134         * as/mcs51/alloc.h,
1135         * as/z80/alloc.h: removed
1136         * as/hc08/assym.c,
1137         * as/mcs51/assym.c: replaced alloc.h with stdlib.h
1138         * as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
1139         * as/link/hc08/Makefile.in,
1140         * as/link/mcs51/Makefile.in,
1141         * as/link/z80/Makefile.in: added -DUNIX to CFLAGS
1142         * as/link/lklex.c,
1143         * as/link/mcs51/lkarea.c,
1144         * as/link/mcs51/lkmain.c: cosmetic changes
1145         * as/link/hc08/lklibr.c,
1146         * as/link/z80/lklibr.c,
1147         * as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
1148           used cygwin_conv_to_full_posix_path,
1149           added warnings, cosmetic changes, brought more in sync
1150           changed old K&R into ANSI function declarations
1151         * as/link/z80/lklibr.c (loadAdb): added
1152         * as/link/z80/lkmain.c: removed -- option from usage text
1153
1154 2007-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
1155
1156         * src/mcs51/gen.c (outBitC): optimized for no result
1157
1158 2007-10-31 Borut Razem <borut.razem AT siol.net>
1159
1160         * src/SDCCsymt.c: fixed (hopeful properly) bug
1161           #1805702 - order of extern matters
1162         * support/regression/tests/bug-1805702.c: enabled regtest for bug
1163           #1805702
1164
1165 2007-10-29 Borut Razem <borut.razem AT siol.net>
1166
1167         * src/SDCCsymt.c: reverted bad fixed of bug #1805702
1168           - order of extern matters
1169         * support/regression/tests/bug-1805702.c: disabled regtest for bug
1170           #1805702
1171
1172 2007-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
1173
1174         * src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
1175           24bitMode, portIsDS390
1176         * src/mcs51/gen.c (genOr): optimized for RFE 1750727
1177         * src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
1178           (notVolatileVariable): also check sloc names,
1179           (callFuncByName): moved ftab[] out of function and sorted it by use
1180
1181 2007-10-28 Maarten Brock <sourceforge.brock AT dse.nl>
1182
1183         * device/include/stdarg.h: fixed bug in va_start macro for --xstack
1184         * src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
1185           aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
1186         * src/SDCCicode.c (geniCodeCast): fixed bug 880197
1187         * support/regression/tests/bug-880197.c: new, added
1188
1189 2007-10-28 Borut Razem <borut.razem AT siol.net>
1190
1191         * support/regression/Makefile.in,
1192           support/regression/ports/mcs51-large/spec.mk,
1193           support/regression/ports/mcs51-xstack-auto/spec.mk,
1194           support/regression/ports/mcs51-stack-auto/spec.mk,
1195           support/regression/ports/mcs51-medium/spec.mk,
1196           support/regression/ports/mcs51-common/spec.mk,
1197           support/regression/ports/mcs51-common/*,
1198           support/regression/ports/mcs51-small/*:
1199           mcs51 renamed to mcs51-common, created mcs51-small
1200         * src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
1201         * support/regression/tests/bug-1805702.c: added regtest for bug
1202           #1805702
1203
1204 2007-10-26 Maarten Brock <sourceforge.brock AT dse.nl>
1205
1206         * src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b,
1207           added new rules 265 - 270
1208         * support/regression/tests/bug1721024.c:new, added
1209         * support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
1210           introduced new test-mcs51 to run all mcs51 tests
1211
1212 2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
1213
1214         * support/regression/tests/bug1816470.c: new, added
1215
1216 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
1217
1218         * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
1219           propagate for *,+,- with float, fixed bug 1816470
1220           (decorateType): cast to resultTypeProp instead of resultType
1221
1222 2007-10-19 Borut Razem <borut.razem AT siol.net>
1223
1224         * src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
1225           function is ineffective" for pic16 tareget
1226         * support/scripts/listerr.c: corrected include path
1227         * device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
1228           adjacent memory
1229
1230 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
1231
1232         * support/regression/tests/using.c: new, added
1233         * support/regression/tests/vaargs.c: fixed and enabled test
1234
1235 2007-10-18 Borut Razem <borut.razem AT siol.net>
1236
1237         * src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
1238           is ineffective
1239         * support/regression/tests/bug-983491.c: added regtest for bug #983491
1240
1241 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
1242
1243         * doc/sdccman.lyx: documented option --Werror
1244         * src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
1245           RegBankUsed[] earlier
1246
1247 2007-10-14 Maarten Brock <sourceforge.brock AT dse.nl>
1248
1249         * device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
1250         * src/pic/glue.c,
1251         * src/SDCCval.c,
1252         * src/SDCCast.c,
1253         * src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
1254           AST_ULONG_VALUE
1255         * src/SDCCast.c (decorateType): improved optimization of tri-op
1256         * src/SDCCerr.c (vwerror, setWError),
1257         * src/SDCCerr.h,
1258         * src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
1259           warnings as errors, thanks Stas Sergeev for PATCH 1813211
1260
1261 2007-10-13 Maarten Brock <sourceforge.brock AT dse.nl>
1262
1263         * src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
1264         * src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
1265         * support/regression/tests/bug-223113.c,
1266         * support/regression/tests/bug-426632.c,
1267         * support/regression/tests/bug-468811.c,
1268         * support/regression/tests/bug-477835.c,
1269         * support/regression/tests/bug-478094.c,
1270         * support/regression/tests/bug-499644.c,
1271         * support/regression/tests/bug-524209.c,
1272         * support/regression/tests/bug-524211.c,
1273         * support/regression/tests/packcast.c,
1274         * support/regression/tests/structidx.c: added empty tests
1275         * support/regression/tests/bug-607243.c: enabled test
1276
1277 2007-10-06 Borut Razem <borut.razem AT siol.net>
1278
1279         * .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
1280            support of universal binaries on Mac OS X
1281
1282 2007-10-02 Borut Razem <borut.razem AT siol.net>
1283
1284         * src/SDCCval.h: unified double2ul macro for all platforms
1285         * src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
1286         * support/regression/tests/bitwise.c: added regtest for bug #1777758
1287
1288 2007-09-30 Borut Razem <borut.razem AT siol.net>
1289
1290         * src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
1291           platforms
1292         * sdcc_vc_in.h: enabled warnings
1293         * src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
1294           unsigned type, result still unsigned
1295         * src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
1296
1297 2007-09-28 Raphael Neider <rneider AT web.de>
1298
1299         * src/pic/device.c (find_device): prevent buffer underflow error
1300         * src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
1301           the just destroyed list entry
1302
1303 2007-09-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1304
1305         * doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks
1306           Alexander Neundorf
1307
1308 2007-09-18 Borut Razem <borut.razem AT siol.net>
1309
1310         * src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
1311          applied to unsigned type, result still unsigned
1312
1313 2007-09-17 Borut Razem <borut.razem AT siol.net>
1314
1315         * src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c,
1316           src/SDCCicode.c, src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c,
1317           src/SDCCval.h, src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c,
1318           src/mcs51/gen.c, src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c,
1319           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/genarith.c,
1320           src/pic16/genutils.c, src/pic16/glue.c, src/pic16/main.c,
1321           src/z80/gen.c, src/z80/ralloc.c:
1322           fixed bug #1739860 - sdcc does not work correctly on some platforms
1323           (not finished)
1324           introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()
1325
1326 2007-09-17 Raphael Neider <rneider AT web.de>
1327
1328         * src/pic16/device.c: reverted to previous version
1329         * device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q
1330
1331 2007-09-16 Raphael Neider <rneider AT web.de>
1332
1333         * src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
1334           as this raises a ton of gpasm warnings, just emit a second label
1335         * src/pic16/devices.inc,
1336         * device/lib/pic16/pics.all,
1337         * device/lib/pic16/libdev/pic18f2585.c,
1338         * device/lib/pic16/libdev/pic18f2680.c,
1339         * device/lib/pic16/libdev/pic18f2682.c,
1340         * device/lib/pic16/libdev/pic18f2685.c,
1341         * device/lib/pic16/libdev/pic18f4585.c,
1342         * device/lib/pic16/libdev/pic18f4680.c,
1343         * device/lib/pic16/libdev/pic18f4682.c,
1344         * device/lib/pic16/libdev/pic18f4685.c,
1345         * device/include/pic16/pic18f2585.h,
1346         * device/include/pic16/pic18f2680.h,
1347         * device/include/pic16/pic18f2682.h,
1348         * device/include/pic16/pic18f2685.h,
1349         * device/include/pic16/pic18f4585.h,
1350         * device/include/pic16/pic18f4680.h,
1351         * device/include/pic16/pic18f4682.h,
1352         * device/include/pic16/pic18f4685.h,
1353         * device/include/pic16/pic18fregs.h: added 18f2585, 18f2680,
1354           18f2682, 18f2685, 18f4585, 18f4680, 18f4682, 18f4685,
1355           patch contributed by Anton Strobl, applied with changes
1356
1357 2007-09-16 Raphael Neider <rneider AT web.de>
1358
1359         * device/include/pic16/pic18f2431.h,
1360         * device/include/pic16/pic18f25j10.h,
1361         * device/include/pic16/pic18f4431.h,
1362         * device/include/pic16/pic18f45j10.h: adopted common include style
1363         * device/include/pic16/pic18f1320.h,
1364         * device/include/pic16/pic18f2320.h,
1365         * device/include/pic16/pic18f2525.h,
1366         * device/include/pic16/pic18f4320.h,
1367         * device/include/pic16/pic18f4525.h: NEW, just include proper .h file
1368         * device/include/pic16/pic18fregs.h: prepared for automatic include
1369           file selection by having DEVICE.h for every DEVICE
1370         * device/lib/pic16/libdev/pic18f2320.c,
1371         * device/lib/pic16/libdev/pic18f4320.c: just include proper .c file
1372
1373         * device/lib/pic16/configure.in,
1374         * device/lib/pic16/configure: use rm -rf instead of rmdir
1375         * device/lib/pic16/Makefile.in: use RMDIR to remove build directories
1376         * device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast
1377
1378 2007-09-09 Borut Razem <borut.razem AT siol.net>
1379
1380         * src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
1381           distingush between i386 and ppc Mac OS X versions
1382
1383 2007-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
1384
1385         * src/mcs51/gen.c (genReceive): fixed bug 1788177
1386         * support/regression/tests/bug1788177.c: new, added
1387
1388 2007-09-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1389
1390         * doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
1391         * device/include/mcs51/lint.h added keyword __naked
1392
1393 2007-09-04 Maarten Brock <sourceforge.brock AT dse.nl>
1394
1395         * src/pic16/glue.c,
1396         * src/pic/glue.c,
1397         * src/SDCCmem.h: removed maxRegBank
1398         * src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
1399           RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
1400         * src/SDCCsymt.c (checkFunction): set RegBankUsed[] here
1401         * src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
1402           name and behaviour to handle banked functions
1403           (scan4op): and use it to fix bug 1786213
1404
1405 2007-09-03 Raphael Neider <rneider AT web.de>
1406
1407         * device/include/pic16/pic18f248.h,
1408         * device/include/pic16/pic18f258.h,
1409         * device/include/pic16/pic18f448.h,
1410         * device/lib/pic16/libdev/pic18f248.c,
1411         * device/lib/pic16/libdev/pic18f258.c,
1412         * device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
1413           added T0CONbits, fixes #1786891
1414
1415 2007-08-29 Maarten Brock <sourceforge.brock AT dse.nl>
1416
1417         * src/ds390/gen.c (genFarPointerSet),
1418         * src/hc08/ralloc.c (packRegisters),
1419         * src/mcs51/ralloc.c (packRegisters),
1420         * src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
1421           bug 1750318
1422         * src/SDCCicode.h: POINTER_SET can be true for literals too
1423         * support/regression/tests/bug1750318.c: new, added
1424
1425 2007-08-23 Borut Razem <borut.razem AT siol.net>
1426
1427         * debugger/mcs51/sdcdb.c: fixed compilation with older readline
1428           library versions without the completition functionality
1429
1430 2007-08-22 Raphael Neider <rneider AT web.de>
1431
1432         * device/include/pic16/pic18f1220.h,
1433         * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
1434
1435 2007-08-12 Borut Razem <borut.razem AT siol.net>
1436
1437         * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
1438
1439 2007-08-11 Borut Razem <borut.razem AT siol.net>
1440
1441         * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
1442           src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
1443           support/Util/SDCCerr.[ch] moved to src
1444         * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
1445           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
1446           device/examples/ds390/tinitalk/tinitalk.dsp,
1447           device/examples/serialcomm/windows/serialcomm.dsp,
1448           support/librarian/librarian.dsp:
1449           removed linking of unused odbc32.lib and odbccp32.lib
1450         * support/scripts/winres.h:
1451           added for compilation with Visual C++ 2005 Express Edition
1452
1453 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1454
1455         * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
1456           and CKCON1.
1457
1458 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1459
1460         * sdccconf_in.h: update the endian test so that SPARC Solaris
1461           does not throw syntax errors
1462
1463 2007-08-06 Borut Razem <borut.razem AT siol.net>
1464
1465         * doc/sdccman.lyx: removed two index entries which prevented the
1466           generation of sdcc doc archive
1467
1468 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1469
1470         * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
1471           instead of lyx 1.5.0.
1472
1473 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1474
1475         * device/include/hc08/mc68hc908apxx.h: new header contributed by
1476           Lucas Loizaga, with minor modifications. Thanks!
1477
1478 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1479
1480         * doc/sdccman.lyx: Documented --acall-ajmp and described new features
1481           in sdcclib.
1482
1483 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1484
1485         * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
1486           src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
1487           with acall/ajmp.
1488
1489 2007-07-22 Borut Razem <borut.razem AT siol.net>
1490
1491         * configure.in, configure: re-introduced .version
1492         * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
1493           the version reverted to 2.7.0
1494
1495 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
1496
1497         * configure.in,
1498         * doc/sdccman.lyx: bumped version to 2.7.3
1499         * device/include/mcs51/compiler.h: fixed elif->else
1500         * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
1501         * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
1502           (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
1503            enable accuse for bit operands
1504         * src/SDCCmain.c (printVersionInfo),
1505         * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
1506           environment descriptor
1507         * src/SDCCutil.h: added getBuildEnvironment
1508         * src/SDCCglue.c (initialComments): use getBuildEnvironment
1509         * support/regression/tests/bug1464657.c: enabled test test_Peephole251
1510         * support/regression/tests/bug-408972.c: enabled test leftShiftLong
1511         * support/regression/tests/bug1348008.c,
1512         * support/regression/tests/bug1496419.c,
1513         * support/regression/tests/bug1503067.c,
1514         * support/regression/tests/preproc.c: added empty tests
1515
1516 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
1517
1518         * support/regression/tests/bug1678803.c: new, added
1519
1520 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
1521
1522         * as/link/aslink.h,
1523         * as/link/hc08/lkihx.c,
1524         * as/link/hc08/lkrloc.c,
1525         * as/link/mcs51/lkihx.c,
1526         * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
1527           ihxExtendedLinearAddress
1528         * as/link/mcs51/lkrloc.c (relr),
1529         * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
1530           acall/ajmp, see bug 830513
1531
1532 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
1533
1534         * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
1535           (cseBBlock): remember aggr2ptr has been used
1536         * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
1537           (geniCodeAssign): fixed bug 868103
1538         * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
1539           added operandSize prototype
1540         * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
1541           (genDataPointerSet): use max of size of right and result,
1542           (gencjne): added parameter useCarry for optimization,
1543           (genCmpEq): use carry if appropriate,
1544           (genXor): check if operand already in carry
1545         * support/regression/tests/bug-868103.c: enabled test
1546
1547 2007-07-12 Raphael Neider <rneider AT web.de>
1548
1549         * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
1550
1551 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
1552
1553         * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
1554           from Robert Larice, thanks
1555         * support/regression/tests/bitopcse.c,
1556         * support/regression/tests/bitvars.c,
1557         * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
1558         * support/regression/tests/bug-927659.c: enabled test for z80
1559         * support/regression/tests/bug1738367.c: added extra tests by Frieder
1560         * support/regression/tests/bug1745717.c: new, added
1561         * support/regression/tests/literalop.c,
1562         * support/regression/tests/nullstring.c: removed storage definitions that
1563           are now in testfwk.h
1564
1565 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
1566
1567         * device/include/stdbool.h: do not define __bool_true_false_are_defined
1568           and bool for targets that do not fully support it.
1569         * support/regression/tests/bug1546986.c,
1570         * support/regression/tests/bug1723128.c,
1571         * support/regression/tests/bug1734654.c,
1572         * support/regression/tests/bug1738367.c,
1573         * support/regression/tests/constantRange.c: only use bool if allowed
1574
1575 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
1576
1577         * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
1578           Larice, also handle function pointers
1579         * support/regression/tests/bug1749275.c: new, added
1580
1581 2007-07-03 Borut Razem <borut.razem AT siol.net>
1582
1583         * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
1584           src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
1585           #1746528: SDCC should ignore ':' in inline assembler comments
1586         * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
1587
1588 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
1589
1590         * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
1591         * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
1592
1593 2007-06-29 Borut Razem <borut.razem AT siol.net>
1594
1595         * src/SDCCmain.c: fixed bug
1596           #1744746: SDCC #4867: broken option --xram-size
1597
1598 2007-06-28 Borut Razem <borut.razem AT siol.net>
1599
1600         * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
1601           find out the endianess of host machine for ucsim
1602
1603 2007-06-27 Borut Razem <borut.razem AT siol.net>
1604
1605         * support/regression/generate-cases.py: corrected the file name
1606           in warning
1607         * configure.in, configure, sdccconf_in.h: find out the endianess of
1608           host machine
1609         * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
1610           negative size
1611
1612 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
1613
1614         * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
1615
1616 2007-06-26 Borut Razem <borut.razem AT siol.net>
1617
1618         * support/regression/generate-cases.py: display warning if function
1619           list is empty; implemented more flexible rule for detection of
1620           testing functions, allowing return type 'void' in the same line as
1621           the function name in the function definition
1622         * support/regression/tests/bug-1654060.c: corrected test
1623         * support/librarian/sdcclib.c: fixed warning:
1624           format '%s' expects type 'char *', but argument 2 has type 'int'
1625
1626 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1627
1628         * support/librarian/sdcclib.c: Added feature Requests [1510635]
1629           Multiple infiles for sdcclib.
1630
1631 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1632
1633         * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
1634           bug 1731741
1635
1636 2007-06-18 Borut Razem <borut.razem AT siol.net>
1637
1638         * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
1639           how to handle comments, so they have to be removed by the
1640           preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
1641         * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
1642           src/pic16/main.c, src/pic/main.c, src/z80/main.c,
1643           support/Util/SDCCerr.c, support/Util/SDCCerr.h:
1644           table driven option hadling
1645
1646 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
1647
1648         * src/SDCCast.c (decorateType),
1649         * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
1650           iCode to ast level to fix bug 1738367
1651         * support/regression/tests/bug1738367.c: new, added
1652
1653 2007-06-15 Raphael Neider <rneider AT web.de>
1654
1655         * src/pic16/devices.inc,
1656         * device/lib/pic16/pics.all,
1657         * device/include/pic16/pic18fregs.h,
1658         * device/include/pic16/pic18f[24][45]20.h,
1659         * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
1660           18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
1661         * device/lib/pic16/Makefile.in: faster cleanup
1662
1663 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1664
1665         * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
1666
1667 2007-06-13 Raphael Neider <rneider AT web.de>
1668
1669         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
1670
1671 2007-06-12 Raphael Neider <rneider AT web.de>
1672
1673         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
1674           suppress bit defines if NO_BIT_DEFINES is #define'd
1675         * device/include/pic/pic*.h: recreated all headers to include
1676           conditional bit defines
1677         * device/include/pic/pic16f886.h,
1678         * device/include/pic/pic16f887.h: fixed based on newer .inc file
1679         * device/include/pic/recreate.sh: script to recreate the complete
1680           device library files based on the currently supported devices
1681
1682 2007-06-12 Borut Razem <borut.razem AT siol.net>
1683
1684         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
1685           support/regression/Makefile.in, support/scripts/build.mak,
1686           support/scripts/Makefile.snapshot:
1687           use new svn URL scheme
1688         * doc/sdccman.lyx: SDCC Wiki moved to
1689           http://sdcc.wiki.sourceforge.net/
1690
1691 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1692
1693         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
1694         * support/regression/tests/bug1734654.c: added
1695
1696 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
1697
1698         * src/SDCCast.c (decorateType): optimized '?' for equal operands
1699         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
1700           with literal operands
1701
1702 2007-06-10 Borut Razem <borut.razem AT siol.net>
1703
1704         * as/link/z80/lklibr.c: fixed mingw build warning
1705           lklibr.c:575: warning: implicit declaration of function 'tolower'
1706         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
1707           src/z80/main.c: move target specific options from src/SDCCmain.c
1708           to src/<target>/main.c
1709
1710 2007-06-09 Borut Razem <borut.razem AT siol.net>
1711
1712         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
1713           removed unused swap_sense; removed outBitCLong, replaced with outBitC
1714         * support/regression/tests/bug-1294691.c: added
1715
1716 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
1717
1718         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
1719           can also be static, fixes bug 1733438
1720         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
1721           have absolute address too
1722           (computeType): added optimization for 'cond ? true : false'
1723         * support/regression/tests/absolute.c: added test for static absolute var
1724
1725 2007-06-08 Raphael Neider <rneider AT web.de>
1726
1727         * src/regression/Makefile: suppress parallel builds, allow easy
1728           switching between pic14/pic16 ports
1729         * src/regression/picregs.h: added pic14/16 header file switch
1730         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
1731           inline.c,nestfor.c,string1.c}: include "picregs.h"
1732
1733 2007-06-07 Borut Razem <borut.razem AT siol.net>
1734
1735         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
1736           permanent solution to suppress GCC 4.2.0 c++ warning:
1737           deprecated conversion from string constant to `char *'
1738           use 'const char *' where ever required
1739         * support/regression/generate-cases.py: implemented more flexible rule
1740           for detection of testing functions, allowing white-spaces surrounding
1741           the function name and the 'void' parameter.
1742         * support/regression/tests/constantRange.c,
1743           support/regression/tests/scott-compare3.c: fixed failing regression
1744           tests, uncovered by implementation of more flexible rule for detection
1745           of testing functions
1746
1747 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
1748
1749         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
1750
1751 2007-06-04 Borut Razem <borut.razem AT siol.net>
1752
1753         * configure.in, configure, config_vc.awk: sdcc version number is now
1754           stored in configure.in; removed .version
1755         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
1756           doc/INSTALL.txt: version bumped to 2.7.2
1757         * sim/ucsim/configure.in, sim/ucsim/configure:
1758           use "read" to read from .version
1759
1760 2007-06-03 Borut Razem <borut.razem AT siol.net>
1761
1762         * */Makefile.in: removed annoying warning:
1763           Makefile:xx: Makefile.dep: No such file or directory
1764
1765 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
1766
1767         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
1768           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
1769         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
1770         * src/SDCCast.c (resultTypePropagate): propagate for '!',
1771           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
1772           bugfix: only use newBoolLink for bit result type
1773         * src/SDCCicode.c (geniCodeLogic): added param tree,
1774           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
1775           (geniCodeLogicAndOr): use IS_BIT,
1776           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
1777           (ast2iCode): added tree param to geniCodeLogic for comparisons
1778         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
1779         * support/regression/tests/bug1723128.c: added test NotZero
1780
1781 2007-06-01 Borut Razem <borut.razem AT siol.net>
1782
1783         * SDCPP synchronized with GCC CPP release version 4.2.0,
1784           currently the latest release:
1785         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1786           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
1787           support/cpp2/cppdefault.h, support/cpp2/except.h,
1788           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
1789           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
1790           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
1791           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
1792           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
1793           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
1794           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
1795           support/cpp2/opts.h, support/cpp2/output.h,
1796           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
1797           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
1798           support/cpp2/system.h, support/cpp2/version.c,
1799           support/cpp2/Makefile.in: modified
1800         * support/cpp2/opts-common.c: added
1801         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
1802         * device/lib/pic16/libdev/pic18f[24]5j10.c:
1803           search for included source file in local directory
1804         * sim/ucsim/configure, sim/ucsim/configure.in:
1805           temporary solution to suppress GCC 4.2.0 c++ warning:
1806           deprecated conversion from string constant to `char *'
1807
1808 2007-06-01 Raphael Neider <rneider AT web.de>
1809
1810         * device/lib/pic/libdev/pic12f683.c,
1811         * device/include/pic/pic12f683.h: added GPIO bits
1812
1813 2007-06-01 Raphael Neider <rneider AT web.de>
1814
1815         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
1816           quotation marks, clarified role of PIC14 vs. PIC16 ports
1817         * src/pic16/devices.inc,
1818         * device/include/pic16/pic18fregs.h,
1819         * device/include/pic16/pic18f[24][45]j10.h,
1820         * device/lib/pic16/pics.all,
1821         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
1822           18f24j10, 18f25j10, 18f44j10, and 18f45j10
1823         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
1824           for new devices as they are not yet supported by gputils
1825
1826 2007-05-31 Borut Razem <borut.razem AT siol.net>
1827
1828         * Small Device C Compiler 2.7.0 released
1829         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
1830           changed sdcc version to 2.7.1
1831         * support/scripts/sdcc.nsi: added How to create WIN32 release
1832           setup.exe package
1833
1834 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1835
1836         * doc/sdccman.lyx: documented initialization and allocation of absolute
1837           variables, bit parameter passing, the need for function pointers to be
1838           reentrant and alpha quality support of inline and retrict
1839
1840 2007-05-26 Borut Razem <borut.razem AT siol.net>
1841
1842         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
1843           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
1844         * docs/knownbugs.html: updated
1845
1846 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
1847
1848         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
1849           thanks Jan Waclawek
1850         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
1851           AOP_CRY and ruonly
1852           (gencjneshort): optimized when left is AOP_DIR
1853         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
1854           initializing unions in a struct/array
1855         * support/regression/fwk/include/testfwk.h: added defines for data, near
1856           and far for host and z80
1857         * support/regression/tests/bug1723128.c: new, added
1858
1859 2007-05-22 Borut Razem <borut.razem AT siol.net>
1860
1861         * doc/knownbugs.html: updated
1862
1863 2007-05-21 Raphael Neider <rneider AT web.de>
1864
1865         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
1866           error message instead
1867         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
1868
1869 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
1870
1871         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
1872
1873 2007-05-21 Raphael Neider <rneider AT web.de>
1874
1875         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
1876           closes #1722392
1877         * src/regression/gpsim_assert.h,
1878         * src/regression/Makefile,
1879         * src/regression/pcodeopt.c: regression test for the above fix
1880
1881 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
1882
1883         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
1884           jumps to self, fixed bug 1717281
1885
1886 2007-05-10 Borut Razem <borut.razem AT siol.net>
1887
1888         * support/scripts/gen_known_bugs.pl: cosmetic fix
1889         * doc/knownbugs.html: generated by gen_known_bugs.pl
1890
1891 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1892
1893         * src/SDCCast.c (createFunction): also generate non-inlined version of
1894           function for functions declared as "static inline"
1895         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
1896           function can be inlined after non-inlined version generated.
1897
1898 2007-05-10 Borut Razem <borut.razem AT siol.net>
1899
1900         * support/scripts/gen_known_bugs.pl: added script
1901           which generates knownbugs.html
1902
1903 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
1904
1905         * doc/knownbugs.html: updated for release 2.7.0
1906
1907 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1908
1909         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
1910
1911 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
1912
1913         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
1914           (throughout): updated generating comments
1915         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
1916           (throughout): updated generating comments
1917         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
1918           rule instead of at the second, or it might skip lines when removing the
1919           complete match
1920         * support/regression/tests/bug1714204.c: changed test to foo
1921
1922 2007-05-08 Borut Razem <borut.razem AT siol.net>
1923
1924         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
1925           thanks to SDCC Distributed Compile Farm members,
1926           added Z80 and GBZ80 command line options
1927         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
1928
1929 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
1930
1931         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
1932         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
1933         * support/regression/tests/longlit.c: modified to be tested at all and
1934           to pass the actual test
1935
1936 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1937
1938         * device/include/mcs51/uPSD33xx.h: Added.
1939
1940 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
1941
1942         * device/lib/_gptrput.c,
1943         * device/lib/_gptrget.c: removed old code,
1944          (_gptrgetWord),
1945         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
1946         * support/regression/tests/bug1714204.c: new, added
1947
1948 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1949
1950         * support/regression/tests/regtrack.c: test was never executed
1951           because of the regression test being picky about white spaces.
1952         * device/lib/mcs51/crtclear.asm: added comment
1953
1954 2007-05-06 Raphael Neider <rneider AT web.de>
1955
1956         * device/lib/pic/Makefile.rules,
1957         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
1958           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
1959
1960 2007-05-06 Raphael Neider <rneider AT web.de>
1961
1962         * src/pic16/device.h,
1963         * src/pic16/main.h,
1964         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
1965           _pic16_setDefaultOptions): removed/reordered command-line args
1966         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
1967           devices, regrouped command line args, environment variables),
1968           clarified sone points, added sections on how to add devices to the
1969           PIC14/PIC16 ports
1970
1971 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
1972
1973         * src/z80/peeph.def: fixed bug in rule 2
1974
1975 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
1976
1977         * src/port.h: added TARGET_MCS51_LIKE
1978         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
1979           take advantage of it too
1980         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
1981           (shiftR2Left2Result): Optimized: don't check shifting by 0
1982         * src/z80/peeph-z80.def,
1983         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
1984           modifications, see patch 1700823
1985         * src/mcs51/peep.c (): fixed bug 1712928
1986         * support/regression/tests/bug1712928.c: new, added
1987
1988 2007-05-05 Borut Razem <borut.razem AT siol.net>
1989
1990         * device/lib/pic16/Makefile.common.in,
1991           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
1992           removed bash dependencies
1993
1994 2007-05-01 Borut Razem <borut.razem AT siol.net>
1995
1996         * src/SDCCicode.c:
1997           fixed bug #1710507: --i-code-in-asm makes compile fail
1998           all iCode comments are now one liners
1999         * src/mcs51/gen.c: fixed memory leak
2000
2001 2007-05-01 Raphael Neider <rneider AT web.de>
2002
2003         * device/lib/pic/libdev/*.c
2004         * device/include/pic/*.h: regenerated all device libs from updated
2005           .inc files
2006         * support/scripts/inc2h.pl: documented usage, now uses strict to
2007           catch more bugs
2008
2009 2007-04-30 Borut Razem <borut.razem AT siol.net>
2010
2011         * doc/sdccman.lyx:
2012           fixed bug #1669175: Problem with space in output paths
2013           documented how to use paths with spaces for Windows users
2014
2015 2007-04-29 Borut Razem <borut.razem AT siol.net>
2016
2017         * Fixed svn:eol-style and svn:keywords properties
2018         * src/SDCCval.c: fixed bug
2019           #1592871: Segfault with "large" const arrays of characters
2020           replaced recursion with iteration
2021         * Removed svn:executable property from non-executable files
2022
2023 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
2024
2025         * src/mcs51/gen.c (genRet): fixed bug 1707003
2026
2027 2007-04-27 Raphael Neider <rneider AT web.de>
2028
2029         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
2030           createReachingDefinitions,assignValnums,pic16_destructDF,
2031           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
2032           prevent NULL pointer dereferences
2033         * device/lib/pic/libdev/pic16f886.c,
2034         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
2035           prevent building them, gputils do not really support them yet
2036
2037 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2038
2039         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
2040           helps printf_small. 32 bytes more __idata mem.
2041
2042 2007-04-27 Raphael Neider <rneider AT web.de>
2043
2044         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
2045           return early when pb or pb->pcHead is NULL (patch #1708427)
2046         * src/regression/empty.c,
2047         * src/regression/Makefile: added test with empty functions
2048         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
2049
2050 2007-04-27 Borut Razem <borut.razem AT siol.net>
2051
2052         * src/SDCCast.c: fixed feature request
2053           #1547512: Redundant strings linked when using sizeof("abc")
2054
2055 2007-04-23 Borut Razem <borut.razem AT siol.net>
2056
2057         * doc/sdccman.lyx, src/SDCCmain.c:
2058           peep-hole comments are generated only if --fverbose-asm option is
2059           specified and --no-peep-comments is not, as proposed by Frieder.
2060         * support/regression/Makefile.in: compile regression tests with
2061           --fverbose-asm option so one can "grep" whether a new (or an old)
2062           peephole is (still) applied; requested by Frieder.
2063
2064 2007-04-23 Kevin Buettner <kevin AT buettner.to>
2065
2066         * device/include/pic/pic16f886.h,
2067         * device/include/pic/pic16f887.h,
2068         * device/lib/pic/libdev/pic16f886.c,
2069         * device/lib/pic/libdev/pic16f887.c,
2070         * device/include/pic/pic14devices.txt,
2071         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
2072
2073 2007-04-23 Kevin Buettner <kevin AT buettner.to>
2074
2075         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
2076           fixes #1704666
2077
2078 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2079
2080         * device/lib/_memset.c: assembler version for mcs51
2081
2082 2007-04-22 Borut Razem <borut.razem AT siol.net>
2083
2084         * support/scripts/listerr.c: program to create the list of errors and
2085           warnings list from - added
2086         * doc/sdccman.lyx: removed the note
2087           "For list of warnings and corresponding codes, see err_warn.txt"
2088         * src/SDCCsymt.c: fixed bug #1699804:
2089           Bug with some uses of sizeof(static local array) (MCS51)
2090         * support/regression/tests/bug-1699804.c: added
2091
2092 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
2093
2094         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
2095           (main): added option -i,
2096           (asmbl, case S_INCL): use search_path_fopen,
2097           mostly from patch 1579668 by Peter Miller, thanks
2098         * src/z80/main.c: fixed typo --callee-saves-bc
2099         * device/include/mcs51/compiler.h: added sfrword for Tasking
2100
2101 2007-04-20 Borut Razem <borut.razem AT siol.net>
2102
2103         * src/z80/main.c: replaced reserved keyword asm with asmblr
2104
2105 2007-04-19 Borut Razem <borut.razem AT siol.net>
2106
2107         * src/port.h: use const pointers to strings
2108         * src/SDCCargs.h: declared getStringArg() and getIntArg()
2109         * src/pic16/main.c: include SDCCargs.h
2110         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
2111           const char, since the strings are dynamically allocated
2112         * src/SDCCmain.c: options.code_seg and options.const_seg are
2113           dynamically allocated; check port specific command line options
2114           before the general ones
2115         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
2116
2117 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
2118
2119         * device/include/ds400rom.h,
2120         * device/lib/ds390/lcd390.c,
2121         * device/lib/ds390/memcpyx.c,
2122         * device/lib/ds390/rtc390.c,
2123         * device/lib/ds400/ds400rom.c,
2124         * device/lib/ds400/memcpyx.c,
2125         * device/lib/hc08/_ret.c: more replacements of keywords with their
2126           double underscore equivalents
2127         * device/lib/ds390/Makefile.in,
2128         * device/lib/ds400/Makefile.in,
2129         * device/lib/gbz80/Makefile.in,
2130         * device/lib/hc08/Makefile.in,
2131         * device/lib/mcs51/Makefile.in,
2132         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
2133
2134 2007-04-17 Borut Razem <borut.razem AT siol.net>
2135
2136         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
2137           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
2138           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
2139           to --fverbose-asm, to be gcc'ish
2140
2141 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
2142
2143         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
2144
2145 2007-04-17 Borut Razem <borut.razem AT siol.net>
2146
2147         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
2148         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
2149           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
2150           with their double underscore equivalent
2151
2152 2007-04-14 Borut Razem <borut.razem AT siol.net>
2153
2154         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
2155           source"
2156
2157 2007-04-13 Borut Razem <borut.razem AT siol.net>
2158
2159         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
2160           C99 standard
2161         * device/examples/serialcomm/windows/serial.[ch],
2162           device/examples/serialcomm/windows/test_serialcomm.cpp:
2163           updated by Bela Torok
2164         * device/examples/serialcomm/windows/serialcomm.dsw,
2165           device/examples/serialcomm/windows/serialcomm.dsp: added
2166
2167 2007-04-13 Jan Waclawek <wek AT efton.sk>
2168
2169         * doc/sdccman.lyx: additions and changes at various places
2170           (submitted as #1697136).
2171           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
2172
2173 2007-04-10 Borut Razem <borut.razem AT siol.net>
2174
2175         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
2176           LyX file format changed to 245
2177         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
2178           "FreeWare" replaced with "free open source"
2179
2180 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
2181
2182         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
2183
2184 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
2185
2186         * device/include/pic16/pic18fregs.h,
2187         * device/lib/_bp.c,
2188         * device/lib/_decdptr.c,
2189         * device/lib/_divsint.c,
2190         * device/lib/_divslong.c,
2191         * device/lib/_divuint.c,
2192         * device/lib/_divulong.c,
2193         * device/lib/_fs2schar.c,
2194         * device/lib/_fs2sint.c,
2195         * device/lib/_fs2slong.c,
2196         * device/lib/_fs2uchar.c,
2197         * device/lib/_fs2uint.c,
2198         * device/lib/_fs2ulong.c,
2199         * device/lib/_fsadd.c,
2200         * device/lib/_fscmp.c,
2201         * device/lib/_fsdiv.c,
2202         * device/lib/_fseq.c,
2203         * device/lib/_fsget1arg.c,
2204         * device/lib/_fsget2args.c,
2205         * device/lib/_fsgt.c,
2206         * device/lib/_fslt.c,
2207         * device/lib/_fsmul.c,
2208         * device/lib/_fsneq.c,
2209         * device/lib/_fsnormalize.c,
2210         * device/lib/_fsreturnval.c,
2211         * device/lib/_fsrshift.c,
2212         * device/lib/_fssub.c,
2213         * device/lib/_fsswapargs.c,
2214         * device/lib/_gptrget.c,
2215         * device/lib/_gptrgetc.c,
2216         * device/lib/_gptrput.c,
2217         * device/lib/_logexpf.c,
2218         * device/lib/_modsint.c,
2219         * device/lib/_modslong.c,
2220         * device/lib/_moduint.c,
2221         * device/lib/_modulong.c,
2222         * device/lib/_mulint.c,
2223         * device/lib/_mullong.c,
2224         * device/lib/_schar2fs.c,
2225         * device/lib/_ser.c,
2226         * device/lib/_setjmp.c,
2227         * device/lib/_sint2fs.c,
2228         * device/lib/_slong2fs.c,
2229         * device/lib/_spx.c,
2230         * device/lib/_uchar2fs.c,
2231         * device/lib/_uint2fs.c,
2232         * device/lib/_ulong2fs.c,
2233         * device/lib/asincosf.c,
2234         * device/lib/atanf.c,
2235         * device/lib/calloc.c,
2236         * device/lib/ds390/tinibios.c,
2237         * device/lib/ds400/tinibios.c,
2238         * device/lib/expf.c,
2239         * device/lib/free.c,
2240         * device/lib/hc08/_mulint.c,
2241         * device/lib/logf.c,
2242         * device/lib/malloc.c,
2243         * device/lib/printf_fast.c,
2244         * device/lib/printf_tiny.c,
2245         * device/lib/printfl.c,
2246         * device/lib/realloc.c,
2247         * device/lib/ser_ir.c,
2248         * device/lib/serial.c,
2249         * support/regression/tests/libmullong.c: replaced all special keywords
2250           with their double underscore equivalent
2251         * support/regression/ports/mcs51-xstack-auto/spec.mk,
2252         * device/lib/Makefile.in: compile libs with --std-c99 instead of
2253           --std-sdcc99
2254         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
2255           (genRet): if the bit-symbol is ruonly it already is in the carry
2256         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
2257         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
2258         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
2259           type UCHAR if dest is not bit
2260
2261 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
2262
2263         * device/include/math.h,
2264         * device/lib/cotf.c,
2265         * device/lib/expf.c,
2266         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
2267
2268 2007-04-01 Borut Razem <borut.razem AT siol.net>
2269
2270         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
2271           fixed bug #1692042: input buffer overflow...scanner uses REJECT
2272         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
2273           gcc_unreachable() called internal_error()...
2274
2275 2007-03-30 Raphael Neider <rneider AT web.de>
2276
2277         * src/pic/ralloc.c (isData): suppress garbage debug output
2278
2279 2007-03-28 Borut Razem <borut.razem AT siol.net>
2280
2281         * doc/sdccman.lyx:
2282           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
2283           is developed, built and used worldwide, and the word "night" doesn't
2284           make any sense.
2285
2286 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
2287
2288         * device/include/mcs51/C8051F360.h: new, added
2289         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
2290
2291 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2292
2293         * src/SDCC.y (declaration_specifiers, function_specifier),
2294         * support/Util/SDCCerr.c,
2295         * support/Util/SDCCerr.h,
2296         * src/SDCCsymt.h,
2297         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
2298           inline keyword
2299         * src/SDCCmem.c (deallocParms),
2300         * src/SDCCast.c: support for function inlining, not quite complete
2301         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
2302           'restrict' qualifier
2303
2304 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
2305
2306         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
2307           (saveRBank, unsaveRBank): don't save bits,
2308           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
2309         * support/regression/tests/bug1535242.c: new, added
2310         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
2311           thanks Alexey Shamrin <shamrin AT gmail.com>,
2312           made assert.h header ANSI compliant (added a check for NDEBUG macro,
2313           removed header guard)
2314         * .version,
2315         * sdcc.spec: bumped version to 2.6.5
2316         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
2317
2318 2007-03-22 Borut Razem <borut.razem AT siol.net>
2319
2320         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
2321           fixed bug #1653671: sdcdb integration into ddd is broken
2322
2323 2007-03-22 Raphael Neider <rneider AT web.de>
2324
2325         * src/pic/gen.c (popGetExternal): augmented to also create references
2326           to external variables (not only labels),
2327           (genCall): comment on plan to reduce PAGESEL overhead,
2328           (genFunction, genEndFunction): also save/restore FSR around interrupt
2329           handling code, removed lots of unused code
2330           (genDivOneByte): release acquired temp register
2331         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
2332           of popGetExternal
2333         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
2334           for registers that need to be saved during interrupts (FSR, STATUS,
2335           PCLATH; W needs special handling), currently only FSR is used
2336
2337 2007-03-22 Raphael Neider <rneider AT web.de>
2338
2339         * device/include/pic/pic14devices.txt: 16f688 has only one config word
2340
2341 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2342
2343         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
2344
2345 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
2346
2347         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
2348
2349 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
2350
2351         * as/link/aslink.h: added LKOBJEXT
2352         * as/link/hc08/link_hc08.dsp,
2353         * as/link/hc08/Makefile.bcc,
2354         * as/link/hc08/Makefile.in,
2355         * as/link/mcs51/aslink.dsp,
2356         * as/link/mcs51/Makefile.bcc,
2357         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
2358         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
2359         * as/link/lkaomf51.c: merged and moved
2360         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
2361         * as/link/z80/lkdata.c,
2362         * as/link/lkdata.c: merged and moved
2363         * as/link/hc08/lkmain.c,
2364         * as/link/mcs51/lkmain.c: cosmetic changes
2365         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
2366         * as/link/lklex.c: use LKOBJEXT
2367         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
2368           ANSI-fied functions, removed bubble-sorts
2369         * as/link/z80/lksym.c           as/link/lksym.c: merged,
2370           ANSI-fied functions
2371         * as/link/z80/linkgbz80.dsp,
2372         * as/link/z80/linkz80.dsp,
2373         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
2374           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
2375         * as/link/z80/lkhead.c,
2376         * as/link/z80/lklex.c: deleted
2377         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
2378         * as/link/z80/lkmain.c: added copyfile()
2379
2380 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2381
2382         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
2383
2384 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2385
2386         * device/lib/_strlen.c: assembler version for mcs51
2387
2388 2007-03-13 Raphael Neider <rneider AT web.de>
2389
2390         * device/include/pic16/pic18f2221.h,
2391         * device/include/pic16/pic18f2321.h,
2392         * device/include/pic16/pic18f2331.h,
2393         * device/include/pic16/pic18f4221.h,
2394         * device/include/pic16/pic18f4321.h,
2395         * device/include/pic16/pic18f4331.h: fixed config byte location names
2396         * support/scripts/inc2h-pic16.pl: removed debug output, emit
2397           consistently named config byte locations
2398
2399 2007-03-13 Borut Razem <borut.razem AT siol.net>
2400
2401         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
2402           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
2403           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
2404           as/link/z80/Makefile.in, as/z80/Makefile.in:
2405           introduced LDFLAGS
2406
2407 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2408
2409         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
2410         * device/lib/printf_large.c: pointer was converted to generic
2411         pointer for mcs51 models other than model-small (Maarten noticed)
2412
2413 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2414
2415         * device/include/mcs51/ADuC84x.h: Added.
2416
2417 2007-03-10 Borut Razem <borut.razem AT siol.net>
2418
2419         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
2420           fixed RFE #1624219: double backslashes in filenames;
2421           functions hexEscape(), octalEscape() and copyStr() moved from
2422           SDCCval.c to SDCCutil.c and made them glovbally available
2423
2424 2007-03-09 Borut Razem <borut.razem AT siol.net>
2425
2426         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
2427           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
2428           1673361: Missaligned comments in output files
2429
2430 2007-03-09 Raphael Neider <rneider AT web.de>
2431
2432         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
2433
2434 2007-03-09 Raphael Neider <rneider AT web.de>
2435
2436         * src/pic/gen.c,
2437         * src/pic/glue.c,
2438         * src/pic/ralloc.c: suppress undesired debug output
2439         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
2440
2441 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2442
2443         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
2444
2445 2007-03-07 Borut Razem <borut.razem AT siol.net>
2446
2447         * device/lib/pic16/libdev/pic18f[24][34]31.c:
2448           search include files in the current directory
2449
2450 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
2451
2452         * src/SDCCglue.c (emitMaps, glue),
2453         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
2454           absolute xdata
2455         * support/regression/tests/absolute.c: added xdata test
2456
2457 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
2458
2459         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
2460           added condition to macro, fixes bug 1666080
2461
2462 2007-03-02 Raphael Neider <rneider AT web.de>
2463
2464         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
2465
2466 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2467
2468         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
2469         be cleared. Unconditionally set __XPAGE
2470         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
2471
2472 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2473
2474         * src/SDCCglobl.h,
2475         * src/SDCCmain.c,
2476         * src/mcs51/gen.c,
2477         * src/mcs51/rtrack.c,
2478         * src/ds390/gen.c,
2479         * doc/sdccman.lyx: added --no-gen-comments
2480         * src/mcs51/peeph.def: added 192.b, disabled 185
2481
2482 2007-02-25 Raphael Neider <rneider AT web.de>
2483
2484         * src/pic16/gen.c (genCast): fixed typo
2485         * device/lib/pic16/Makefile.subdir: only install existing files
2486         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
2487
2488 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
2489
2490         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
2491         * device/lib/mcs51/crtclear.asm,
2492         * device/lib/mcs51/crtxclear.asm: renumbered labels
2493         * device/lib/mcs51/Makefile.in: added crtcall.asm
2494         * doc/sdccman.lyx: documented mcs51 crt* library startup code
2495         * src/mcs51/gen.c (movc): removed,
2496           (aopGet, genPlusBits): clear a after loading the carry (possibly from
2497             acc.x or psw.x),
2498           (toCarry, genSend, genRet): added function toCarry,
2499           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
2500           (assignBit, genAssign, genCast): added function assignBit
2501         * src/mcs51/Makefile.bcc: added rtrack.c
2502         * src/mcs51/ralloc.h: made valueKnown a bitfield
2503         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
2504           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
2505           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
2506         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
2507         * src/z80/gen.c: added AOP_IS_PAIRPTR,
2508           (_pop): only pop valid pairs, see gencjneshort,
2509           (gencjneshort): return pair that still needs to be popped, restructured,
2510           (gencjne, genCmpEq): call _pop
2511
2512 2007-02-23 Raphael Neider <rneider AT web.de>
2513
2514         * device/include/pic/pic14devices.txt: 16f684 has only one config word
2515
2516 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2517
2518         * device/include/mcs51/P89LPC925.h: Added.
2519
2520 2007-02-18 Raphael Neider <rneider AT web.de>
2521
2522         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
2523
2524 2007-02-17 Borut Razem <borut.razem AT siol.net>
2525
2526         * support/cpp2/directives.c, support/cpp2/version.c:
2527           synchronized with GCC CPP 4.1.2
2528
2529 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2530
2531         * src/mcs51/rtrack.h,
2532         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
2533           by checking the strings passed by emitcode() to the assembler.
2534           Feel free to change. This in part addresses RFE #482179.
2535           Set environment variable SDCC_RTRACK to enable.
2536         * src/mcs51/gen.c: inserted hooks
2537         * src/mcs51/ralloc.h: added two members to struct regs
2538         * support/regression/tests/regtrack.c: added
2539
2540 2007-02-14 Borut Razem <borut.razem AT siol.net>
2541
2542         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
2543         * Makefile.in: applied patch from Makefile related part of
2544           #1469393: Compiler does not initialize static data
2545
2546 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
2547
2548         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
2549           for better fix of bug 1273984, compiles pic16 rand.c
2550
2551 2007-02-12 Borut Razem <borut.razem AT siol.net>
2552
2553         * src/pic16/main.c: fixed pic16 standard library directory bug
2554
2555 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
2556
2557         * src/hc08/gen.c (genSwap): fix swap regression test
2558
2559 2007-02-10 Borut Razem <borut.razem AT siol.net>
2560
2561         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
2562           with same scope
2563         * support/regression/tests/bug-1654060.c: added regression test for
2564           #1654060
2565
2566 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
2567
2568         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
2569         bit moves in return statement
2570
2571 2007-02-09 Borut Razem <borut.razem AT siol.net>
2572
2573         * src/SDCC.y: fixed bug #1654060 typedef within function causes
2574           syntax error
2575
2576 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
2577
2578         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
2579         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
2580
2581 2007-02-07 Raphael Neider <rneider AT web.de>
2582
2583         * src/pic16/devices.inc,
2584         * device/include/pic16/pic18fregs.h,
2585         * device/include/pic16/pic18f[24][34]31.h,
2586         * device/lib/pic16/libdev/pic18f[24][34]31.c,
2587         * device/lib/pic16/pics.all: added 18f[24][34]31 family
2588         * device/lib/pic16/libio/i2c.ignore: do not build i2c
2589
2590 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
2591
2592         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
2593           can this have lived here for so many years?
2594         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
2595           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
2596         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
2597
2598 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
2599
2600         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
2601         appended by loop induction must be at the very end of the eBBlock
2602
2603 2007-02-05 Kevin Vigor
2604
2605         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
2606
2607 2007-02-05 Borut Razem <borut.razem AT siol.net>
2608
2609         * support/regression/fwk/lib/timeout.c: native WIN32 port,
2610           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
2611
2612 2007-02-03 Borut Razem <borut.razem AT siol.net>
2613
2614         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
2615           applied patch #1646602 option to set default signedness of char to
2616           unsigned, added -funsigned-char command line option,
2617           thanks to Gunther Jehle
2618         * device/lib/Makefile.in: added the -f option to rm so it doesn't
2619           prompt for file deletion a few hundred times (especially the
2620           subversion files, which have ro permissions so it asks for
2621           confirmation), thanks to Simon McAuliffe;
2622           added {} + option to find in order to remove multiple files from a
2623           single rm commad
2624
2625 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2626
2627         * device/include/mcs51/SST89x5xRDx.h: Added.
2628
2629 2007-02-02 Raphael Neider <rneider AT web.de>
2630
2631         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
2632         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
2633
2634 2007-02-01 Raphael Neider <rneider AT web.de>
2635
2636         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
2637           config words again
2638
2639 2007-01-31 Borut Razem <borut.razem AT siol.net>
2640
2641         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
2642           if compiled with GCC. Thanks to Raphael Neider
2643
2644 2007-01-31 Raphael Neider <rneider AT web.de>
2645
2646         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
2647             operand names, handles name and (name + n) for all n,
2648           (sameBank): restructured, also check bank allocation policy,
2649         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
2650           (pic14_operandsAllocatedInSameBank): check whether to operands
2651             will be allocated into the same bank (i.e., section) to reduce
2652             BANKSEL overhead, queried from pcode.c:sameBank,
2653           (pic14printLocals): reintroduced clustering registers into a single
2654             section: all compiler generated symbols will now reside in one
2655             bank (per file), reducing BANKSEL overhead and code size,
2656           (showAllMemmaps): use local dbuf where possible
2657
2658 2007-01-29 Raphael Neider <rneider AT web.de>
2659
2660         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
2661           (call_libraryfunc): retrieve/create symbol and mark as used,
2662           (genFunction): mark defined functions as non-extern and add again
2663            to code memmap for later output
2664         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
2665           (pic14printLocals): reworked for new symbol emission,
2666           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
2667           showAllMemmaps): reworked symbol output using dbufs, added handling
2668             of string literals (still incomplete),
2669           (picglue): removed symbol emission, moved into showAllMemmaps,
2670           (emitSymbolSet): new workhorse for symbol output,
2671           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
2672
2673 2007-01-29 Borut Razem <borut.razem AT siol.net>
2674
2675         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
2676           component contains the extension separator.
2677
2678 2007-01-28 Borut Razem <borut.razem AT siol.net>
2679
2680         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
2681           on WIN32
2682         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
2683           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
2684           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
2685           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
2686           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
2687           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
2688           src/z80/gen.c, support/Util/MySystem.c:
2689           accept slash and backslash as directory separator on WIN32 and
2690           Cygwin ports
2691
2692 2007-01-28 Raphael Neider <rneider AT web.de>
2693
2694         * src/pic16/devices.inc,
2695         * device/include/pic16/pic18f[24][23]21.h,
2696         * device/include/pic16/pic18fregs.h,
2697         * device/lib/pic16/libdev/pic18f[24][23]21.c,
2698         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
2699         * device/lib/pic16/libio/adc.ignore,
2700         * device/lib/pic16/libio/i2c.ignore,
2701         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
2702           family, as gputils do not yet support the devices
2703         * device/lib/pic16/Makefile.subdir: ignore errors on install
2704         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
2705           headers and libraries from gputils .inc files
2706
2707 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
2708
2709         * doc/sdccman.lyx: add printf_fast_f precision limitation note
2710
2711 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
2712
2713         * doc/sdccman.lyx: add printf benchmarks
2714
2715 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
2716
2717         * device/lib/printf_fast.c: fix %c, char promoted to int
2718         * device/lib/printf_tiny.c: fix %c, char promoted to int
2719
2720 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
2721
2722         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
2723
2724 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2725
2726         * support/regression/tests/swap.c: 64 bit hosts failed
2727         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
2728
2729 2007-01-25 Raphael Neider <rneider AT web.de>
2730
2731         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
2732           based on absolute register address, patch by Alex Blond
2733
2734 2007-01-22 Raphael Neider <rneider AT web.de>
2735
2736         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
2737           emitted, do not emit them again...
2738
2739 2007-01-22 Raphael Neider <rneider AT web.de>
2740
2741         * src/regression/bank1.c, src/regression/compare6.c,
2742           src/regression/add.c: cosmetic changes
2743         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
2744         * src/pic/gen.c: fixed global zero and one,
2745           (aopForSym): removed unued code,
2746           (aopGet): assert aop is defined, check and use `index' of
2747             pCodeImmd operands (fixes #1630908),
2748         * src/pic/pcode.c (get_op): added output of generic pointer tag,
2749           (register_reassign): prevent accidental register unification,
2750           (ReuseReg): cosmetic changes (also above)
2751         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
2752           pic14emitStaticSeg): do not emit initialized data,
2753           (printIval*): replaced with working versions,
2754           (pic14createInterruptVect,picglue): use idata for initialized data,
2755             now init data should work in all modules (not only main()),
2756         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
2757
2758 2007-01-21 Borut Razem <borut.razem AT siol.net>
2759
2760         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
2761           use -fPIC or -fpic if they are supported and not ignored
2762         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
2763         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
2764
2765 2007-01-20 Borut Razem <borut.razem AT siol.net>
2766
2767         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
2768           implemented RFE #1470316: allow "$" in variable names
2769
2770 2007-01-20 Raphael Neider <rneider AT web.de>
2771
2772         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
2773
2774 2007-01-20 Raphael Neider <rneider AT web.de>
2775
2776         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
2777         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
2778         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
2779         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
2780           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
2781         * device/lib/pic/libdev/pic*.c,
2782         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
2783         * device/lib/pic/libdev/Makefile.in: show progress
2784
2785 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
2786
2787         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
2788         * support/scripts/sdcc_cygwin_mingw32,
2789         * support/scripts/sdcc_mingw32,
2790         * support/scripts/build.mak: replaced --datadir by --datarootdir for
2791         conformance with autoconf 2.6
2792
2793 2007-01-19 Raphael Neider <rneider AT web.de>
2794
2795         * src/pic/device.c (register_map): fixed list construction
2796         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
2797           (genMod): removed case for genModbits,
2798           (genModbits): removed as now unused/unimplemented
2799         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
2800
2801 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2802
2803         * support/regression/tests/swap.c: added in response to #1638622
2804         * doc/sdccman.lyx: synced version, minor changes
2805
2806 2007-01-18 Borut Razem <borut.razem AT siol.net>
2807
2808         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
2809           thanks to Gunther Jehle
2810         * src/asm.c: don't die if the file drfined in #line couldn't be opened
2811         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
2812           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
2813           use filename in lineno instead.
2814         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
2815           print the file name in ast_print()
2816
2817 2007-01-18 Borut Razem <borut.razem AT siol.net>
2818
2819         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
2820           defined in MSVC
2821         * src/SDCC.lex: stringLiteral() returns const char pointer,
2822           EOF detection in stringLiteral(), fixed asmbuf memory leak,
2823           fixed column counting
2824         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
2825           accept const char pointer as parameter
2826         * src/SDCCdwarf2.c: corrected buffer size
2827
2828 2007-01-17 Borut Razem <borut.razem AT siol.net>
2829
2830         * support/Util/dbuf_string.c: fixed for amd64
2831
2832 2007-01-15 Borut Razem <borut.razem AT siol.net>
2833
2834         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
2835           removed terminal symbol ELIPSIS, since it was never generated by the
2836           lexer and it was wrongly used in parameter_identifier_list rule
2837
2838 2007-01-15 Raphael Neider <rneider AT web.de>
2839
2840         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
2841             code page and data banking description
2842         * src/pic/genarith.c,
2843         * src/pic/gen.h: removed bit arithmetic functions,
2844             updated exit(1) to exit(EXIT_FAILURE)
2845         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
2846         * device/include/pic16/pic18f2455.h,
2847         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
2848             TRISD and TRISE, fixed/added some bit names
2849         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
2850         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
2851             updated pic18f2455.{c,h} instead of duplicating them
2852
2853 2007-01-14 Borut Razem <borut.razem AT siol.net>
2854
2855         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
2856           Cannot debug files that contain spaces in the path name
2857           by converting spaces in asm file name to underscores
2858
2859 2007-01-13 Borut Razem <borut.razem AT siol.net>
2860
2861         * doc/sdccman.lyx: fixed format errors
2862
2863 2007-01-10 Borut Razem <borut.razem AT siol.net>
2864
2865         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
2866           codeseg/constseg #pragma fail
2867         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
2868         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
2869           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
2870           suppoprt/cpp2/sdcpp.[ch]: house cleaning
2871
2872 2007-01-09 Borut Razem <borut.razem AT siol.net>
2873
2874         * get rid of diagnistic.[ch], pretty-print.[ch],
2875           c-pretty-print.[ch], ... used just for error, warning, ...
2876           message formatting
2877         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
2878           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
2879           suppoprt/cpp2/pretty-print.[ch]:
2880           removed
2881         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
2882           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
2883           suppoprt/cpp2/sdcpp.dsp:
2884           changed
2885
2886 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
2887
2888         * device/lib/printf_large.c (output_float): removed recursion,
2889           use smaller buffer on stack for mcs51,
2890           fixed bug printing 1.96
2891         * support/regression/tests/snprintf.c: added test
2892
2893 2007-01-07 Borut Razem <borut.razem AT siol.net>
2894
2895         * use dynamic memory buffers instead temporary files
2896         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
2897           added
2898         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
2899           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
2900           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
2901           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
2902           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
2903           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
2904           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
2905           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
2906           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
2907           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
2908           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
2909           support/Util/dbuf.c, support/Util/dbuf.h:
2910           modified
2911         * .version, sdcc.spec: bumped version to 2.6.4
2912
2913 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
2914
2915         * src/port.h: added TARGET_Z80_LIKE macro
2916         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
2917           output PSEG location if --xram-loc or --xstack-loc was used
2918         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
2919
2920 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
2921
2922         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
2923         * as/as_z80.dsp,   as/z80/as_z80.dsp,
2924         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
2925         * sdcc.dsw: moved project files into subdir
2926         * as/hc08/as_hc08.dsp,
2927         * as/hc08/Makefile.bcc,
2928         * as/hc08/Makefile.in,
2929         * as/mcs51/Makefile.bcc,
2930         * as/mcs51/Makefile.in,
2931         * as/z80/Makefile.bcc,
2932         * as/z80/Makefile.in,
2933         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
2934         * as/hc08/asm.h,
2935         * as/mcs51/asm.h,
2936         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
2937         * as/hc08/asmain.c,
2938         * as/hc08/assym.c,
2939         * as/mcs51/asmain.c,
2940         * as/mcs51/assym.c,
2941         * as/z80/assym.c: removed include "strcmpi.h"
2942         * as/hc08/strcmpi.c,
2943         * as/hc08/strcmpi.h,
2944         * as/mcs51/strcmpi.c,
2945         * as/mcs51/strcmpi.h,
2946         * support/Util/strcmpi.c,
2947         * support/Util/strcmpi.h: removed files
2948         * as/strcmpi.c: added as_strncmpi()
2949
2950 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2951
2952         * sdcc.dsw: Added some dependencies on project config.dsp
2953
2954 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
2955
2956         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
2957           with [di]ram_start to fix a regresion
2958
2959 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
2960
2961         * configure.in: added missing mcs51 in status output
2962         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
2963         directory
2964         * debugger/mcs51/clean.mk (distclean): remove config.h
2965         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
2966         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
2967         options.h, s-options-h and options.c
2968         * support/cpp2/clean.mk: unused, removed
2969         * Makefile.common.in,
2970         * main_in.mk,
2971         * as/Makefile.in,
2972         * as/hc08/Makefile.in,
2973         * as/hc08/clean.mk,
2974         * as/mcs51/Makefile.in,
2975         * as/mcs51/clean.mk,
2976         * as/z80/clean.mk,
2977         * as/z80/conf.mk,
2978         * as/z80/Makefile.in,
2979         * as/z80/clean.mk,
2980         * as/link/Makefile.in,
2981         * as/link/hc08/Makefile.in,
2982         * as/link/hc08/clean.mk,
2983         * as/link/mcs51/Makefile.in,
2984         * as/link/mcs51/clean.mk,
2985         * as/link/z80/Makefile.in,
2986         * as/link/z80/clean.mk,
2987         * as/link/z80/conf.mk,
2988         * debugger/mcs51/Makefile.in,
2989         * debugger/mcs51/clean.mk,
2990         * device/include/Makefile.in,
2991         * device/lib/Makefile.in,
2992         * device/lib/mcs51/Makefile.in,
2993         * device/lib/pic/Makefile.in,
2994         * device/lib/pic/Makefile.common.in,
2995         * device/lib/pic/Makefile.subdir,
2996         * device/lib/pic/Makefile.rules,
2997         * device/lib/pic16/libio/Makefile.in,
2998         * device/lib/pic16/Makefile.subdir,
2999         * device/lib/pic16/libdev/Makefile.in,
3000         * device/lib/pic16/Makefile.rules,
3001         * device/lib/pic16/Makefile.common.in,
3002         * sim/ucsim/avr.src/Makefile.in,
3003         * sim/ucsim/main_in.mk,
3004         * sim/ucsim/cmd.src/Makefile.in,
3005         * sim/ucsim/doc/Makefile.in,
3006         * sim/ucsim/gui.src/Makefile.in,
3007         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
3008         * sim/ucsim/gui.src/serio.src/Makefile.in,
3009         * sim/ucsim/hc08.src/Makefile.in,
3010         * sim/ucsim/libltdl/Makefile.in,
3011         * sim/ucsim/s51.src/Makefile.in,
3012         * sim/ucsim/sim.src/Makefile.in,
3013         * sim/ucsim/sim.src/conf.mk,
3014         * sim/ucsim/xa.src/Makefile.in,
3015         * sim/ucsim/z80.src/Makefile.in,
3016         * src/Makefile.in,
3017         * src/clean.mk,
3018         * src/port.mk,
3019         * support/cpp2/Makefile.in,
3020         * support/librarian/Makefile.in,
3021         * support/librarian/clean.mk,
3022         * support/makebin/Makefile.in,
3023         * support/makebin/clean.mk,
3024         * support/packihx/Makefile.in,
3025         * support/regression/Makefile.in,
3026         * support/regression/ports/ds390/spec.mk,
3027         * support/regression/ports/gbz80/spec.mk,
3028         * support/regression/ports/hc08/spec.mk,
3029         * support/regression/ports/mcs51/spec.mk,
3030         * support/regression/ports/mcs51-large/spec.mk,
3031         * support/regression/ports/mcs51-medium/spec.mk,
3032         * support/regression/ports/mcs51-xstack-auto/spec.mk,
3033         * support/regression/ports/pic14/spec.mk,
3034         * support/regression/ports/pic16/spec.mk,
3035         * support/regression/ports/mcs51-stack-auto/spec.mk,
3036         * support/regression/ports/ucz80/spec.mk,
3037         * support/regression/ports/xa51/spec.mk,
3038         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
3039         adding a slash after $(top_builddir) and/or adding @datarootdir@
3040         * configure.in,
3041         * debugger/mcs51/configure.in,
3042         * device/lib/pic/configure.in,
3043         * device/lib/pic16/configure.in,
3044         * sim/ucsim/configure.in,
3045         * support/cpp2/configure.in,
3046         * support/packihx/configure.in: changed AC_PREREQ to 2.60
3047         * configure,
3048         * debugger/mcs51/configure,
3049         * device/lib/pic/configure,
3050         * device/lib/pic16/configure,
3051         * sim/ucsim/configure,
3052         * support/cpp2/configure,
3053         * support/packihx/configure: generated with autoconf 2.60
3054
3055 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
3056
3057         * as/link/hc08/lkihx.c (newArea),
3058         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
3059
3060 2007-01-02 Borut Razem <borut.razem AT siol.net>
3061
3062         * doc/sdccman.lyx: documented #pragma sdcc_hash
3063         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
3064           initialized to 0
3065         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
3066
3067 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
3068
3069         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
3070         empty 'while'-loop to work correctly, see regression test 'while.c'
3071         * support/regression/tests/while.c: added
3072
3073 2007-01-01 Borut Razem <borut.razem AT siol.net>
3074
3075         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
3076           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
3077           support/cpp2/libcpp/sdcpp.c:
3078           sdcpp specific pragma/directive/option handling moved to sdcpp.c
3079         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
3080         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
3081
3082 2006-12-31 Borut Razem <borut.razem AT siol.net>
3083
3084         * SDCPP synchronized with GCC CPP release version 4.1.1,
3085           currently the latest release:
3086         * support/cpp2/libcpp, support/cpp2/libcpp/include,
3087           support/cpp2/libcpp/include/cpp-id-data.h
3088           support/cpp2/libiberty/fopen_unlocked.c
3089           support/cpp2/libiberty/md5.c
3090           support/cpp2/md5.h
3091           support/cpp2/opt-functions.awk
3092           support/cpp2/opt-gather.awk
3093           support/cpp2/optc-gen.awk
3094           support/cpp2/opth-gen.awk:
3095           added
3096         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
3097           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
3098           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
3099           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
3100           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
3101           support/cpp2/diagnostic.h, support/cpp2/except.h,
3102           support/cpp2/hwint.h, support/cpp2/input.h,
3103           support/cpp2/intl.h, support/cpp2/move-if-change,
3104           support/cpp2/opts.c, support/cpp2/opts.h,
3105           support/cpp2/output.h, support/cpp2/prefix.c,
3106           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
3107           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
3108           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
3109           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
3110           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
3111           support/cpp2/version.c:
3112           modified
3113         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
3114           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
3115           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
3116           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
3117           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
3118           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
3119           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
3120           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
3121           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
3122           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
3123           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
3124           moved
3125         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
3126           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
3127           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
3128           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
3129           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
3130           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
3131           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
3132           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
3133           support/cpp2/hashtable.h, support/cpp2/line-map.c,
3134           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
3135           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
3136           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
3137           support/cpp2/system.h:
3138           deleted / moved
3139
3140 2006-12-31 Borut Razem <borut.razem AT siol.net>
3141
3142         * configure.in, configure: fixed bug #1538756: configure dies if bison
3143           and flex are not installed, 2nd try
3144
3145 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
3146
3147         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
3148         400.x for better code in RFE 899102
3149
3150 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
3151
3152         * src/SDCCpeeph.c (deadMove),
3153         * src/port.h,
3154         * src/mcs51/peep.h: renamed 'op' by 'reg'
3155         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
3156         (scan4op): small change for removeDeadMove(), added support for
3157         'callee saves' and/or PACLL function calls,
3158         (removeDeadMove): added, removes superflous 'mov r%1,%2',
3159         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
3160         left in new dispatcher mcs51DeadMove()
3161         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
3162         removeDeadMove()
3163         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
3164
3165 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3166
3167         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
3168           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
3169
3170 2006-12-30 Borut Razem <borut.razem AT siol.net>
3171
3172         * support/cpp2/spacs.h: deleted from svn
3173         * configure.in, configure: fixed bug #1538756: configure dies if bison
3174           and flex are not installed
3175
3176 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
3177
3178         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
3179           with this z80 passes printf float test when enabled
3180         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
3181
3182 2006-12-28 Borut Razem <borut.razem AT siol.net>
3183
3184         * support/cpp2/config.in, support/cpp2/configure.in,
3185           support/cpp2/configure, support/cpp2/Makefile.in:
3186           fix for the solaris build
3187
3188 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3189
3190         * src/SDCC.y (type_specifier2, pointer),
3191         * src/SDCCsymt.h,
3192         * src/SDCCsymt.c (mergeSpec, checkSClass),
3193         * support/Util/SDCCerr.c,
3194         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
3195         * support/valdiag/valdiag.py: Allow test cases to specify
3196           required language standard
3197         * support/valdiag/tests/restrict.c: New file to test restrict keyword
3198         * support/valdiag/tests/tentdecl.c: Supress empty source file error
3199
3200 2006-12-27 Borut Razem <borut.razem AT siol.net>
3201
3202         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
3203         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
3204           mbchar removed
3205         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
3206           fixed for borland C
3207         * support/cpp2/libiberty/Makefile.bcc: updated
3208         * src/pic16/main.c: fixed #pragma udata handling
3209         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
3210
3211 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
3212
3213         * src/SDCCpeeph.c: made labelHashEntry global,
3214         made pcDistance, FBYNAME static,
3215         (pcDistance): made static, use isComment and isLabel,
3216         (deadMove): added,
3217         (getLabelRef): added, extracted from labelRefCount(),
3218         (labelRefCount): use new getLabelRef(),
3219         (callFuncByName): made static, added deadMove,
3220         use isComment and isLabel,
3221         (newPeepRule): made static, set isLabel,
3222         (isLabelDefinition): added parameter isPeepRule to allow '%' in
3223         labels from peephole rules,
3224         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
3225         when isComment or isLabel is set
3226         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
3227         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
3228         to make them global
3229         * src/mcs51/peep.h: added
3230         * src/mcs51/peep.c: added, implements mcs51DeadMove()
3231         * src/port.h: added peep->deadMove to port structure
3232         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
3233         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
3234         deadMove, finally removed no. 1 and 2
3235         * src/mcs51/gen.c,
3236         * src/pic/gen.c,
3237         * src/z80/gen.c,
3238         * src/z80/ralloc.c,
3239         * src/pic16/gen.c,
3240         * src/ds390/gen.c,
3241         * src/hc08/gen.c: mark lines with isComment or isLabel
3242         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
3243         * .version,
3244         * sdcc.spec: bumped version to 2.6.3
3245
3246 2006-12-26 Borut Razem <borut.razem AT siol.net>
3247
3248         * support/cpp2/Makefile.in: added dependency on options.h
3249         * configure: regenerated
3250         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
3251         * support/cpp2/Makefile.in: added vasprintf.c
3252
3253 2006-12-25 Borut Razem <borut.razem AT siol.net>
3254
3255         * SDCPP synchronized with GCC CPP release version 3.4.6,
3256           the latest release before 4.x:
3257         * support/cpp2/Makefile.in, support/cpp2/config.h,
3258           support/cpp2/configure, support/cpp2/configure.in,
3259           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
3260           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
3261           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
3262           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
3263           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
3264           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
3265           support/cpp2/cpptrad.c, support/cpp2/except.h,
3266           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
3267           support/cpp2/hwint.h, support/cpp2/intl.h,
3268           support/cpp2/line-map.c, support/cpp2/line-map.h,
3269           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
3270           support/cpp2/output.h, support/cpp2/prefix.c,
3271           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
3272           support/cpp2/system.h, support/cpp2/version.c:
3273           modified
3274         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
3275           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
3276           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
3277           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
3278           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
3279           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
3280           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
3281           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
3282           support/cpp2/move-if-change, support/cpp2/opts.c,
3283           support/cpp2/opts.h, support/cpp2/opts.sh,
3284           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
3285           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
3286           support/cpp2/win32, support/cpp2/win32/dirent.c,
3287           support/cpp2/win32/dirent.h:
3288           added
3289         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
3290         * support/cpp2/sdcpp.h: renamed from sdcc.h
3291         * sdcppinit.c: deleted
3292
3293 2006-12-23 Borut Razem <borut.razem AT siol.net>
3294
3295         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
3296           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
3297           preproc.c: an other try to fix bug #982435: introduced
3298           -pedantic-parse-number command line option and pedantic_parse_number
3299           pragma
3300
3301 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
3302
3303         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
3304            BSEG handling,
3305           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
3306            corrected overlayed areax addresses, warn about memory overlaps
3307         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
3308         * src/avr/main.c,
3309         * src/ds390/main.c,
3310         * src/hc08/main.c,
3311         * src/mcs51/main.c,
3312         * src/pic16/main.c,
3313         * src/pic/main.c,
3314         * src/xa51/main.c,
3315         * src/z80/main.c,
3316         * src/port.h: added xabs_name and iabs_name
3317         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
3318           (glue, emitMaps): create and emit maps d_abs and i_abs
3319         * src/SDCCglue.h: cosmetic changes
3320         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
3321         * src/SDCCmem.h,
3322         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
3323           (allocDefault): put absolute, initialized globals in them
3324         * support/regression/tests/absolute.c: added absolute bdata test
3325         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
3326
3327 2006-12-20 Borut Razem <borut.razem AT siol.net>
3328
3329         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
3330         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
3331           added regression test for bug #982435
3332
3333 2006-12-18 Borut Razem <borut.razem AT siol.net>
3334
3335         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
3336         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
3337           small cosmetic changes
3338         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
3339         * support/regression/tests/bug-1351710.c: added regression test
3340
3341 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3342
3343         * doc/sdccman.lyx: added the long missed iCode table
3344           "<where is figure II?>", added links to wiki
3345
3346 2006-12-17 Borut Razem <borut.razem AT siol.net>
3347
3348         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
3349           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
3350           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
3351           unified table driven pragma handling, pragma argument type checking
3352         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
3353           current one - version 1.1.3
3354         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
3355
3356 2006-12-13 Raphael Neider <rneider AT web.de>
3357
3358         * src/pic/device.h: removed AssignedMemory structure and macros
3359         * src/pic/device.c: removed global finalMapping (linker assigns
3360             memory locations),
3361           (register_map): add SFRs to remembered memRanges
3362           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
3363           assignFixedRegisters,assignRelocatableRegisters): removed,
3364           (setMaxRAM,validAddress): adapted accordingly,
3365           (pic14_hasSharebank,pic14_getSharedStack): only report and use
3366             reasonably sized sharebanks,
3367         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
3368           (allDefsOutOfRange): removed unused code,
3369         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
3370             handling
3371         * src/pic/pcode.c (register_reassign): removed recursion warning,
3372             fired far too often,
3373         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
3374             to use existing pic14_stringInSet() to avoid duplicate symbols,
3375             tidied up the code a bit,
3376           (pic14printLocals): added in symmetry to printExterns, replaces
3377             writeUsedRegs more or less,
3378           (picglue): call new pic14_printLocals(),
3379         * device/include/pic/pic*.h: removed #pragma memmap directives,
3380             information gathered from include/pic/pic14devices.txt
3381         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
3382
3383 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
3384
3385         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
3386
3387 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3388
3389         * device/include/mcs51/cc2430.h: fixed missing ';'
3390
3391 2006-12-10 Raphael Neider <rneider AT web.de>
3392
3393         * device/lib/pic16/libc/stdio/vfprintf.c,
3394         * device/lib/pic16/libc/stdio/printf_small.c,
3395         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
3396           char arguments, as char varargs are cast to int by the caller,
3397           hopefully fixes #1604915 (other device libraries are still affected)
3398
3399 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3400
3401         * src/mcs51/ralloc.c (packRegsForAssign),
3402         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
3403
3404 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
3405
3406         * device/include/malloc.h: removed init_dynamic_memory
3407         * device/lib/malloc.c: made init_dynamic_memory static and automatically
3408           call it once from malloc. Also use _sdcc_heap[] from _heap.c
3409         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
3410         * device/lib/libsdcc.lib,
3411         * device/lib/Makefile.in,
3412         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
3413         * doc/sdccman.lyx: documented use of new _heap.c
3414         * support/regression/tests/malloc.c: removed init_dynamic_memory
3415         * src/cdbFile.c(spacesToUnderscores): new function,
3416           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
3417           1068030
3418         * device/include/tinibios.h: removed defines for putchar and getchar
3419         * device/lib/ds390/Makefile.in: added putchar.c
3420         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
3421
3422 2006-12-09 Borut Razem <borut.razem AT siol.net>
3423
3424         * support/cpp2/sdcc.h: prevent multiple inclusion
3425         * support/cpp2/options.h: deleted
3426
3427 2006-12-08 Borut Razem <borut.razem AT siol.net>
3428
3429         * support/cpp2/sdcc.h: removed x*alloc() macros
3430         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
3431         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
3432           support/cpp2/sdcpp.sdc: x*alloc files added to the project
3433         * support/cpp2/system.h: moved #include "sdcc.h"
3434         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
3435           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
3436           added
3437         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
3438           -funsigned-char options
3439         * support/cpp2/sdcppmain.c: fixed bug 1611411
3440
3441 2006-12-07 Borut Razem <borut.razem AT siol.net>
3442
3443         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
3444           directive
3445
3446 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
3447
3448         * src/SDCCsymt.c (addDecl): fixed bug 1609244
3449         * src/SDCCmain.c (linkEdit): fixed bug 1609279
3450         * doc/sdccman.lyx,
3451         * .version: bumped to 2.6.2 because a) it's been a while
3452           b) the linker sources have moved c) the preprocessor is upgraded
3453
3454 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3455
3456         * support/regression/tests/snprintf.c: some checks
3457         * lib/src/printf_large.c: %bc: read char instead of int from stack
3458
3459 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
3460
3461         * device/include/mcs51/cc2430.h: inserted _XPAGE
3462
3463 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3464
3465         * device/include/mcs51/cc2430.h: added
3466
3467 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
3468
3469         * device/include/asm/default/features.h,
3470         * device/include/asm/ds390/features.h,
3471         * device/include/mcs51/at89s53.h,
3472         * device/include/ser.h,
3473         * device/include/ser_ir.h,
3474         * device/include/serial.h: changed keywords to double underscore variants,
3475           fixes bug 1590261 some more, thanks Steven Borley
3476
3477 2006-12-01 Raphael Neider <rneider AT web.de>
3478
3479         * src/pic/pcode.c (register_reassign): do not crash on recursive code
3480           but emit warning (recursion is not supported for pic14)
3481
3482 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3483
3484         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
3485         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
3486
3487 2006-11-30 Raphael Neider <rneider AT web.de>
3488
3489         * src/pic/device.c (dump_sfr): always emit symbols
3490         * src/pic/glue.c (pic14printPublics): fixed typo
3491
3492 2006-11-30 Raphael Neider <rneider AT web.de>
3493
3494         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
3495           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
3496           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
3497            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
3498            a sharebank, use a non-shared bank for the stack if none available
3499         * src/pic/device.h (struct memRange): added linked list next field,
3500           added prototypes for above functions
3501         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
3502           (typeRegWithIdx): accept fixed and unfixed stack registers
3503         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
3504           the stack, handle shared and banked stack (except for WSAVE),
3505           (insertBankSel): removed useless optimization (will never fire),
3506           (FixRegisterBanking): added optimization for devices with only one
3507           possibly aliased bank of memory, like 16f84
3508         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
3509           devices have no SHAREBANK in the linker script
3510         * device/include/pic/pic14devices.txt: documented memmap
3511         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
3512
3513 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3514
3515         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
3516           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
3517           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
3518           genhc08Code): switched most of the D (debug) macros to DD (detailed
3519           debug) macros to better control clutter in the generated .asm file.
3520         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
3521           genRightShift): fixed bug with non-constant bit shift stored to
3522           a volatile result (SF Open Discussion forum thread #1616749).
3523           Single byte case is not yet optimized.
3524
3525 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
3526
3527         * device/include/asm/mcs51/features.h,
3528         * device/include/malloc.h,
3529         * device/include/stdio.h: changed keywords to double underscore variants,
3530           fixes bug 1590261
3531
3532 2006-11-27 Borut Razem <borut.razem AT siol.net>
3533
3534         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
3535           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
3536           support/cpp2/output.h, support/cpp2/cppinit.c,
3537           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
3538           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
3539           support/cpp2/cppdefault.c, support/cpp2/system.h,
3540           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
3541           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
3542           support/cpp2/prefix.c, support/cpp2/except.h,
3543           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
3544           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
3545           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
3546           support/cpp2/version.c, support/cpp2/cppmain.c,
3547           support/cpp2/version.h, support/cpp2/hashtable.c,
3548           support/cpp2/cpperror.c:
3549           synchronized with GCC CPP release version 3.3.6,
3550           the latest where cppmain.c still exists.
3551         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
3552           support/cpp2/sdcppinit.c: added
3553
3554 2006-11-27 Borut Razem <borut.razem AT siol.net>
3555
3556         * support/cpp2/cpplex.c:
3557           fixed _asm ... _endasm handling bug, introduce with GCC CPP
3558           synchronization
3559         * support/cpp2/cpplib.c: removed definitions of unused variables
3560
3561 2006-11-26 Borut Razem <borut.razem AT siol.net>
3562
3563         * support/cpp2/libiberty.h: commented out x*alloc() declarations
3564           since they are redefined by macros in support/cpp2/sdcc.h
3565         * support/cpp2/sdcc.h: x*alloc macro redefinition
3566
3567 2006-11-25 Borut Razem <borut.razem AT siol.net>
3568
3569         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
3570           support/cpp2/configure, support/cpp2/Makefile.in,
3571           support/cpp2/cppfiles.c, support/cpp2/output.h,
3572           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
3573           support/cpp2/config.h, support/cpp2/cpplib.h,
3574           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
3575           support/cpp2/cppdefault.c, support/cpp2/config.in,
3576           support/cpp2/system.h, support/cpp2/cpplex.c,
3577           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
3578           support/cpp2/cppdefault.h, support/cpp2/prefix.c
3579           support/cpp2/hwint.h, support/cpp2/mbchar.h,
3580           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
3581           support/cpp2/configure.in, support/cpp2/intl.h,
3582           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
3583           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
3584           support/cpp2/version.c, support/cpp2/cppmain.c,
3585           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
3586           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
3587           support/cpp2/cpperror.c,
3588           support/cpp2/libiberty/safe-ctype.c,
3589           support/cpp2/libiberty/safe-ctype.h,
3590           support/cpp2/libiberty/splay-tree.c,
3591           support/cpp2/libiberty/obstack.c,
3592           support/cpp2/libiberty/lbasename.c,
3593           support/cpp2/libiberty/splay-tree.h,
3594           support/cpp2/libiberty/obstack.h:
3595           synchronized with GCC CPP release version 3.2.3,
3596           the latest before integration of cpp into gcc
3597         * support/cpp2/except.h, support/cpp2/line-map.c,
3598           support/cpp2/line-map.h,
3599           support/cpp2/libiberty/hex.c,
3600           support/cpp2/libiberty/concat.c,
3601           support/cpp2/libiberty/filenames.h: added
3602         * support/cpp2/intl.c: deleted
3603
3604 2006-11-24 Borut Razem <borut.razem AT siol.net>
3605
3606         * src/SDCC.y: enabled compilation of empty source file
3607         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
3608           "ISO C forbids an empty source file"
3609         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
3610           if all the code is ifdefed out.
3611
3612 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3613
3614         * src/hc08/gen.c (genPcall): fix for bug #1601032
3615
3616 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
3617
3618         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
3619         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
3620         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
3621         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
3622         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
3623         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
3624         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
3625         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
3626         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
3627         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
3628         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
3629         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
3630         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
3631         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
3632         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
3633           Renamed to all upper case as per the standard set by SiLabs
3634
3635 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
3636
3637         * device/include/mcs51/C8051F520.h: new, added
3638         * device/include/mcs51/compiler.h: added link about predefined macros
3639
3640 2006-11-23 Raphael Neider <rneider AT web.de>
3641
3642         * src/regression/Makefile: add -L path to fresh library
3643         * src/regression/simulate: emphasize FAILED output
3644         * src/regression/create_stc: output _failures from gpsim
3645         * src/regression/compare4.c,
3646         * src/regression/rotate6.c: fixed char literals,
3647           all compile, all run =8-D
3648
3649         * src/pic/pcode.h: added isPCASMDIR macro
3650         * src/pic/gen.c (genAnd): fixed bit offset
3651         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
3652           packBits): unified register numbering schemes,
3653           (newReg): do not insert stack registers into hash table,
3654           (initStack): unpinned pseudo stack, simplified,
3655           (typeRegWithIdx): fixed retrieval of stack registers,
3656         * src/pic/pcode.c (addpCodeComment,sameBank): added,
3657           (pCodeReplace): removed invalid assertion,
3658           (insertPCodeInstruction): fixed newly added labels,
3659           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
3660           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
3661           DumpFlow): removed unsed (broken?) code,
3662           (insertBankSel): prevent STATUS from being BANKSELed,
3663           (FixRegisterBanking): rewritten from scratch, implemented generic
3664             optimizations (suppress BANKSELs to same register and to registers
3665             present in all banks),
3666           (AnalyzeBanking): update flow after BANKSELection
3667
3668         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
3669             sharebank, let linker place it, mark STKxx symbols as emitted
3670
3671 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3672
3673         * src/regression/arrays.c,
3674         * src/regression/bank1.c,
3675         * src/regression/bool2.c,
3676         * src/regression/compare7.c,
3677         * src/regression/compare8.c,
3678         * src/regression/compare9.c,
3679         * src/regression/compare10.c,
3680         * src/regression/configword.c,
3681         * src/regression/for.c,
3682         * src/regression/mult1.c,
3683         * src/regression/pointer1.c,
3684         * src/regression/rotate6.c,
3685         * src/regression/string1.c,
3686         * src/regression/struct1.c,
3687         * src/regression/Makefile: make PIC14 regression tests run again
3688           (3 fail, 6 won't compile)
3689
3690 2006-11-21 Raphael Neider <rneider AT web.de>
3691
3692         * device/include/pic16/pic18f4550.h,
3693         * device/include/pic16/pic18f4455.h,
3694         * device/lib/pic16/libdev/pic18f4550.c,
3695         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
3696         * configure.in: removed superfluous closing bracket
3697
3698 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3699
3700         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
3701           always positive.
3702
3703 2006-11-21 Raphael Neider <rneider AT web.de>
3704
3705         * src/pic/device.{c,h}: added pic14_getPIC()
3706         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
3707           (genAnd): added PIC code for one case, fixes #1597044
3708         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
3709           SFRs that are present in all banks (e.g., STATUS)
3710
3711 2006-11-20 Raphael Neider <rneider AT web.de>
3712
3713         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
3714           INCFSZ/INCFSZW and declared them as changing Z bit,
3715           (insertPCodeInstruction): correctly invert the above instructions,
3716           fixes #1599333,
3717           (DoBankSelect): don't panic on po_immediates
3718
3719 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
3720
3721         * as/link/aslink.h,
3722         * as/link/mcs51/lkihx.c (newArea),
3723         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
3724         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
3725
3726 2006-11-11 Raphael Neider <rneider AT web.de>
3727
3728         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
3729           bitfield symbols, fixes #1579535 (once more...).
3730
3731 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3732
3733         * support/regression/generate-cases.py,
3734         * support/regression/fwk/include/testfwk.h,
3735         * support/regression/fwk/lib/testfwk.c: used code pointers,
3736           (about 50kByte less code generated for mcs51)
3737
3738 2006-11-06 Borut Razem <borut.razem AT siol.net>
3739
3740         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3741           debugger/mcs51/configure: fixed failed check because the function
3742           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
3743           who submitted the patch for gpsim.
3744         * debugger/mcs51/configure.in: removed the result message
3745         * debugger/mcs51/Makefile.in: fixed the config.status warning
3746           "... seems to ignore the --datarootdir setting"
3747
3748 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
3749
3750         * device/include/mcs51/c8051f020.h,
3751         * device/include/mcs51/c8051f040.h,
3752         * device/include/mcs51/c8051f060.h,
3753         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
3754         * src/z80/gen.c (gencjneshort),
3755         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
3756
3757 2006-10-31 Borut Razem <borut.razem AT siol.net>
3758
3759         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3760           debugger/mcs51/configure: get readline version
3761
3762 2006-10-30 Borut Razem <borut.razem AT siol.net>
3763
3764         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
3765         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3766           debugger/mcs51/configure: locate readline even when cross compiling
3767         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
3768
3769 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3770
3771         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
3772           serial port.
3773
3774 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
3775
3776         * device/include/malloc.h,
3777         * device/lib/calloc.c,
3778         * device/lib/free.c,
3779         * device/lib/malloc.c,
3780         * device/lib/realloc.c: moved definition of struct into sources
3781         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
3782
3783 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
3784
3785         * as/asx8051.dsp: corrected output directories
3786         * as/link/hc08: new directory for hc08 linker
3787         * as/hc08/aslink.h,             as/link/aslink.h,
3788         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
3789         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
3790         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
3791         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
3792         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
3793         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
3794         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
3795         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
3796         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
3797         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
3798         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
3799         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
3800         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
3801         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
3802         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
3803         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
3804         * as/link/hc08/conf.mk,
3805         * configure,
3806         * configure.in,
3807         * Makefile.in,
3808         * sdcc.dsw: moved hc08 linker to as/link/hc08
3809         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
3810         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
3811         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
3812         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
3813         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
3814         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
3815         * as/link/mcs51/aslink.dsp,
3816         * as/link/mcs51/Makefile.in: factored out the common files
3817         * as/hc08/lkstore.c: deleted, use the one already in as/link/
3818         * as/clean.mk: extra cleaning common files
3819         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
3820         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
3821         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
3822
3823 2006-10-29 Raphael Neider <rneider AT web.de>
3824
3825         * src/pic/ralloc.c (newReg): create aliases for registers with
3826           multiple names to fix #1579535 and #1584001,
3827           (regWithIdx,dirregWithName): resolve aliases on lookup
3828         * src/pic/pcode.c (DoBankSelect): die with error message on failing
3829           bankselect
3830         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
3831           to prevent build errors on small devices
3832
3833 2006-10-28 Raphael Neider <rneider AT web.de>
3834
3835         * src/pic/gen.c (genFunction,genCall): drop "same code page"
3836           assumption within interrupt handlers, fixes #1584940
3837         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
3838           "emitted" to avoid emitting them again in udata
3839
3840 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3841
3842         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
3843         Removed.
3844
3845 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3846
3847         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
3848         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
3849         on/off CR to CRLF conversion.
3850
3851 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3852
3853         * doc/sdccman.lyx: updated IRQ section
3854
3855 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3856
3857         * device/lib/serial_io.c: removed
3858         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
3859         replacements for serial_io.c
3860
3861 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
3862
3863         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
3864
3865 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3866
3867         * device/lib/serial_io.c: Default putchar() and getchar() for
3868           mcs51 uses serial port.
3869
3870 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
3871
3872         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
3873
3874 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3875
3876         * support/regression/ports/mcs51/support.c: smaller
3877         _sdcc_external_startup()
3878         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
3879
3880 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
3881
3882         * device/lib/gbz80/crt0.s,
3883         * device/lib/gbz80/crt0_rle.s,
3884         * device/lib/gbz80/div.s,
3885         * device/lib/gbz80/fstubs.s,
3886         * device/lib/gbz80/heap.s,
3887         * device/lib/gbz80/mul.s,
3888         * device/lib/gbz80/putchar.s,
3889         * device/lib/gbz80/stubs.s,
3890         * device/lib/z80/crt0.s,
3891         * device/lib/z80/crt0_rle.s,
3892         * device/lib/z80/div.s,
3893         * device/lib/z80/fstubs.s,
3894         * device/lib/z80/heap.s,
3895         * device/lib/z80/mul.s,
3896         * device/lib/z80/putchar.s,
3897         * device/lib/z80/stubs.s: reverted, I was mistaken
3898
3899 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3900
3901         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
3902         * support/regression/ports/mcs51/support.c: removed race
3903         condition on TI in _putchar allowing to use serial port mode 0
3904
3905 2006-10-20 Borut Razem <borut.razem AT siol.net>
3906
3907         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
3908
3909 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
3910
3911         * device/lib/gbz80/crt0.s,
3912         * device/lib/gbz80/crt0_rle.s,
3913         * device/lib/gbz80/div.s,
3914         * device/lib/gbz80/fstubs.s,
3915         * device/lib/gbz80/heap.s,
3916         * device/lib/gbz80/mul.s,
3917         * device/lib/gbz80/putchar.s,
3918         * device/lib/gbz80/stubs.s,
3919         * device/lib/z80/crt0.s,
3920         * device/lib/z80/crt0_rle.s,
3921         * device/lib/z80/div.s,
3922         * device/lib/z80/fstubs.s,
3923         * device/lib/z80/heap.s,
3924         * device/lib/z80/mul.s,
3925         * device/lib/z80/putchar.s,
3926         * device/lib/z80/stubs.s: removed all leading underscores from area names
3927
3928 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
3929
3930         * support/regression/ports/mcs51/support.c: use highest baudrate so the
3931           regression tests are not waiting in the simulator for simulated
3932           transmission of debug output
3933
3934 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3935
3936         * device/lib/printf_large.c: slightly smaller
3937         * doc/sdccman.lyx: do not use spaces within html links
3938
3939 2006-10-16 Borut Razem <borut.razem AT siol.net>
3940
3941         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
3942           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
3943           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
3944           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
3945           debugger/mcs51/configure:
3946           [ 1185668 ] add gnu readline support to sdcdb - enabled
3947
3948 2006-10-16 Raphael Neider <rneider AT web.de>
3949
3950         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
3951           fixes #1577882, removes close to all banking optimizations
3952
3953 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
3954
3955         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
3956           variables in code memory
3957         * support/regression/tests/absolute.c: added test for this
3958
3959 2006-10-15 Raphael Neider <rneider AT web.de>
3960
3961         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
3962           devices,
3963           (BankSelect): emit BANKSEL before touching linker-placed regs,
3964           fixes #1570934
3965
3966 2006-10-10 Raphael Neider <rneider AT web.de>
3967
3968         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
3969         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
3970         * src/pic/main.c (_pic14_parseOptions),
3971         * src/pic/main.h: mostly reverted to previous state, now use results
3972             from SDCCmain.c's argument parsing
3973
3974 2006-10-10 Borut Razem <borut.razem AT siol.net>
3975
3976         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
3977           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
3978           [ 1185668 ] add gnu readline support to sdcdb -
3979           prepared for READLINE, not enabled yet,
3980           thanks to <tal.bav AT gmail.com>
3981
3982 2006-10-10 Raphael Neider <rneider AT web.de>
3983
3984         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
3985         * src/pic16/devices.inc,
3986         * device/include/pic16 (pic18f[24]620.h),
3987         * device/include/pic18fregs.h,
3988         * device/lib/pic16/pics.all,
3989         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
3990             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
3991             Gary Plumbridge and Anton Strobl
3992
3993 2006-10-10 Raphael Neider <rneider AT web.de>
3994
3995         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
3996           --stack-siz=NUM options to configure the argument passing stack
3997         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
3998         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
3999           (pic14_getSharebankSize): obey --stack-siz=NUM,
4000           (pic14_getSharebankAddress): obey --stack-loc=NUM
4001
4002 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4003
4004         * doc/sdccman.lyx: added to the manual
4005         * doc/figures/ddd_example.png: added (neither pdflatex nor
4006         most browsers seem to like the .eps file)
4007
4008 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
4009
4010         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
4011         to /tmp and /var/tmp acc. LSB
4012         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
4013         RESULT_TYPE_IFX
4014         * support/regression/tests/onebyte.c: added test
4015
4016 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4017
4018         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
4019
4020 2006-10-05 Borut Razem <borut.razem AT siol.net>
4021
4022         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
4023           thanks to dfulab:
4024           - sdcc.dsw: changed property eol-style to CRLF
4025           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
4026
4027 2006-10-04 Raphael Neider <rneider AT web.de>
4028
4029         * device/include/pic/{pic16f84.h,pic16f84a.h},
4030         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
4031           from patch #1522504, thanks to Robas Teodor
4032
4033 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
4034
4035         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
4036           fixes bug 1566015
4037
4038 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
4039
4040         * src/pic16/glue.c (pic16emitMaps),
4041         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
4042         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
4043         * device/lib/pic16/libc/string/memcpypgm2ram.c,
4044         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
4045           Philipp Krause
4046         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
4047         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
4048
4049 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4050
4051         * support/librarian/sdcclib.c: Added option -l.
4052         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
4053           usage totals.
4054         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
4055           using Windows command prompt.
4056
4057 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
4058
4059         * device/lib/libsdcc.lib: added module rand
4060         * src/ds390/ralloc.c (rematStr),
4061         * src/hc08/ralloc.c (rematStr),
4062         * src/mcs51/ralloc.c (rematStr),
4063         * src/z80/ralloc.c (rematStr): made output more consistent
4064         * src/mcs51/gen.c: cosmetic changes
4065
4066 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
4067
4068         * src/port.h: added mem.cabs_name to PORT
4069         * src/ds390/main.c,
4070         * src/hc08/main.c,
4071         * src/mcs51/main.c,
4072         * src/pic16/main.c,
4073         * src/pic/main.c,
4074         * src/xa51/main.c,
4075         * src/z80/main.c: added cabs_name initializers
4076         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
4077           constants
4078           (emitMaps): emit absolutes in code memory into cabs_name
4079         * src/SDCCmem.c,
4080         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
4081         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
4082         * support/regression/fwk/include/testfwk.h: added define for at
4083         * support/regression/tests/absolute.c: added, new
4084
4085 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
4086
4087         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
4088           optimizations, see also patch 887161 by Stas Sergeev
4089         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
4090           to be necessary anymore,
4091           (102, 103, 104, 127): renamed all occurances of bp to _bp
4092
4093 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
4094
4095         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
4096           thanks Weston T. Schmidt for patch 1555221
4097         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
4098         * src/SDCCicode.c(geniCodeMultiply): small optimization
4099
4100 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
4101
4102         * device/include/stdlib.h: added rand prototypes
4103         * device/lib/rand.c: new, added
4104         * device/lib/Makefile.in: added rand.c
4105         * src/z80/peeph.def,
4106         * src/z80/peeph-gbz80.def,
4107         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
4108
4109 2006-09-20 Raphael Neider <rneider AT web.de>
4110
4111         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
4112
4113 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
4114
4115         * as/link/aslink.h: cosmetic changes
4116         * as/link/mcs51/Makefile.in,
4117         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
4118
4119 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
4120
4121         * as/link/aslink.h,
4122         * as/link/mcs51/aslink.h,
4123         * as/link/z80/aslink.h: merged and moved to as/link/
4124         * as/link/lkstore.c,
4125         * as/link/mcs51/lkstore.c: moved to as/link/
4126         * as/link/clean.mk: remove *.o
4127         * as/link/mcs51/alloc.h: deleted
4128         * as/link/mcs51/lkarea.c: added lnksect prototype
4129         * as/link/mcs51/lkdata.c,
4130         * as/link/mcs51/lklex.c,
4131         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
4132         * as/link/mcs51/lkmem.c,
4133         * as/link/mcs51/lknoice.c: removed include strcmpi.h
4134         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
4135         * as/link/mcs51/aslink.dsp,
4136         * as/link/mcs51/Makefile.aslink,
4137         * as/link/mcs51/Makefile.bcc,
4138         * as/link/mcs51/Makefile.in: updated for moved files
4139         * as/link/z80/lkarea.c,
4140         * as/link/z80/lkhead.c,
4141         * as/link/z80/lklex.c,
4142         * as/link/z80/lklibr.c,
4143         * as/link/z80/lklist.c,
4144         * as/link/z80/lkmain.c,
4145         * as/link/z80/lkrloc.c,
4146         * as/link/z80/lksym.c: synced with mcs51
4147         * as/link/z80/lkdata.c,
4148         * as/link/z80/lkeval.c,
4149         * as/link/z80/lkihx.c,
4150         * as/link/z80/lks19.c: cosmetic changes
4151         * as/link/z80/Makefile.in,
4152         * as/link/z80/linkgbz80.dsp,
4153         * as/link/z80/linkz80.dsp: updated for moved files
4154
4155 2006-09-16 Borut Razem <borut.razem AT siol.net>
4156
4157         * debugger/mcs51/sdcdb.c: partially fixed
4158           [ 1203664 ] sdcdb fails to open files w. two "." periods
4159         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
4160           debugger/mcs51/symtab.h: fixed indenting
4161         * configure.in, configure: up to date with latest Maarten's changes
4162
4163 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
4164
4165         as/link/mcs51
4166         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
4167         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
4168         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
4169         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
4170         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
4171         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
4172         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
4173         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
4174         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
4175         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
4176         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
4177         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
4178         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
4179         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
4180         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
4181         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
4182         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
4183         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
4184         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
4185         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
4186         as/link/mcs51/alloc.h,
4187         as/link/mcs51/clean.mk,
4188         as/link/mcs51/conf.mk,
4189         as/link/mcs51/Makefile.bcc,
4190         as/link/mcs51/Makefile.in,
4191         as/link/mcs51/readme.390,
4192         as/link/mcs51/strcmpi.c,
4193         as/link/mcs51/strcmpi.h,
4194         as/mcs51/clean.mk,
4195         as/mcs51/Makefile.bcc,
4196         as/mcs51/Makefile.in,
4197         configure,
4198         Makefile.in,
4199         sdcc.dsw: moved mcs51 linker to as/link/mcs51
4200
4201 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
4202
4203         * as/link,
4204         * as/link/Makefile.in,
4205         * as/link/z80/linkgbz80.dsp,
4206         * as/link/z80/linkz80.dsp,
4207         * configure,
4208         * link,
4209         * link/clean.mk,
4210         * link/Makefile.in,
4211         * link/README,
4212         * link/z80,
4213         * link/z80/aslink.h,
4214         * link/z80/clean.mk,
4215         * link/z80/conf.mk,
4216         * link/z80/linkgbz80.dsp,
4217         * link/z80/linkz80.dsp,
4218         * link/z80/lkarea.c,
4219         * link/z80/lkdata.c,
4220         * link/z80/lkeval.c,
4221         * link/z80/lkgb.c,
4222         * link/z80/lkgg.c,
4223         * link/z80/lkhead.c,
4224         * link/z80/lkihx.c,
4225         * link/z80/lklex.c,
4226         * link/z80/lklibr.c,
4227         * link/z80/lklist.c,
4228         * link/z80/lkmain.c,
4229         * link/z80/lkrloc.c,
4230         * link/z80/lks19.c,
4231         * link/z80/lksym.c,
4232         * link/z80/Makefile.in,
4233         * Makefile.in,
4234         * sdcc.dsw: moved link/ to as/link/
4235
4236 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
4237
4238         * as/mcs51/i51mch.c (machine): fixed warning
4239
4240 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
4241
4242         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
4243
4244 2006-09-09 Borut Razem <borut.razem AT siol.net>
4245
4246         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
4247           sdcdb WIN32 native port
4248         * src/clean.mk: fixed
4249
4250 2006-09-08 Borut Razem <borut.razem AT siol.net>
4251
4252         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
4253
4254 2006-09-08 Raphael Neider <rneider AT web.de>
4255
4256         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
4257         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
4258             to gplink to disable processor mismatch warning and to allow
4259             the use of devices with only aliased (shared) memory banks,
4260           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
4261
4262 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4263
4264         * doc/sdccman.lyx: Some re-formating plus example on using
4265           #pragma preproc_asm +/-
4266
4267 2006-09-07 Borut Razem <borut.razem AT siol.net>
4268
4269         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
4270           section
4271
4272 2006-09-06 Borut Razem <borut.razem AT siol.net>
4273
4274         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
4275           line at sdcc.nsi:153
4276         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
4277
4278 2006-09-05 Borut Razem <borut.razem AT siol.net>
4279
4280         * configure.in, configure: support for winsock2
4281         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
4282           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
4283           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
4284           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
4285           debugger/mcs51/symtab.h: sdcdb WIN32 native port
4286
4287 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
4288
4289         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
4290           and OP_DEFS
4291         * support/regression/tests/bug1551947.c: new, added
4292         * src/SDCCsymt.h: strings are char* not byte*
4293
4294 2006-09-05 Raphael Neider <rneider AT web.de>
4295
4296         * device/lib/pic16/libdev/pic18f4550.c,
4297           device/include/pic16/pic18f4550.h: added PORTD/TRISD
4298             declarations/definitions from patch #1520949
4299
4300 2006-09-05 Raphael Neider <rneider AT web.de>
4301
4302         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
4303           byte-aligned bitfields, fixes #1539278
4304
4305 2006-09-05 Raphael Neider <rneider AT web.de>
4306
4307         * src/pic/gen.c (genReceive): skip unreferenced arguments,
4308           fixes #1544120
4309
4310 2006-09-04 Borut Razem <borut.razem AT siol.net>
4311
4312         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
4313         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
4314           -mno-cygwin is a part of the compiler name
4315         * support/scripts/sdcc_mingw32: don't disable ucsim
4316
4317 2006-09-03 Borut Razem <borut.razem AT siol.net>
4318
4319         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
4320         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
4321
4322 2006-09-03 Raphael Neider <rneider AT web.de>
4323
4324         * src/pic/ralloc.c,
4325         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
4326           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
4327           fixes #1550049
4328
4329 2006-09-01 Borut Razem <borut.razem AT siol.net>
4330
4331         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
4332           to make ppc-osx happy
4333
4334 2006-08-31 Borut Razem <borut.razem AT siol.net>
4335
4336         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
4337         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
4338         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
4339         * support/regression/ports/ds390/spec.mk,
4340           support/regression/ports/mcs51/spec.mk,
4341           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
4342           To run regression tests in mingw environment:
4343           make DEV_NULL=NUL CC=gcc
4344
4345 2006-08-30 Borut Razem <borut.razem AT siol.net>
4346
4347         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
4348           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
4349           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
4350           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
4351           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
4352           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
4353           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
4354           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
4355           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
4356           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
4357           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
4358           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
4359           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
4360           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
4361           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
4362           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
4363           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
4364           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
4365           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
4366           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
4367           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
4368           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
4369           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
4370           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
4371           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
4372           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
4373           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
4374           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
4375           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
4376           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
4377           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
4378           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
4379           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
4380           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
4381           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
4382           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
4383           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4384           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
4385           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
4386           ucsim WIN32 native port
4387
4388 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4389
4390         * doc/sdccman.lyx: added note on dynamic memory heap initialization
4391
4392 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4393
4394         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
4395         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
4396
4397 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
4398
4399         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
4400         * support/regression/tests/bug1546986.c: new, added
4401         * as/mcs51/.cvsignore,
4402         * debugger/mcs51/.cvsignore,
4403         * src/.cvsignore: deleted
4404
4405 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4406
4407         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
4408           definitions)
4409
4410 2006-08-20 Borut Razem <borut.razem AT siol.net>
4411
4412         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
4413           removed cl_listen_console::match(), cl_console::match(),
4414           restructured cl_commander::proc_input()
4415
4416 2006-08-16 Borut Razem <borut.razem AT siol.net>
4417
4418         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
4419           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
4420           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
4421
4422 2006-08-14 Borut Razem <borut.razem AT siol.net>
4423
4424         * support/regression/Makefile.in,
4425           support/regression/ports/pic14/gpsim.cmd,
4426           support/regression/ports/pic14/spec.mk,
4427           support/regression/ports/pic14/support.c:
4428           added pic14 regression test
4429
4430 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
4431
4432         * as/doc/asxhtm.html: documented changed ABS behaviour
4433         * as/doc/README: fixed some typos
4434
4435 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
4436
4437         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
4438           not defined on host
4439
4440 2006-08-12 Borut Razem <borut.razem AT siol.net>
4441
4442         * support/regression/fwk/include/testfwk.h,
4443           support/regression/fwk/lib/testfwk.c,
4444           support/regression/generate-cases.py,
4445           support/regression/Makefile.in:
4446           regression test framework does not depend on function pointers and
4447           variable arguments
4448
4449 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
4450
4451         * device/include/stddef.h: c temporary hack to fix bug 1518273
4452
4453 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4454
4455         * device/include/mcs51/cc2510fx.h: added
4456         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
4457           to projects.
4458
4459 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
4460
4461         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
4462         * as/z80/Makefile.in: added strcmpi.c
4463         * as/z80/z80adr.c: added upper case registers and lower case conditionals
4464         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
4465
4466 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
4467
4468         * device/lib/gbz80/asm_strings.s,
4469         * device/lib/gbz80/crt0_rle.s,
4470         * device/lib/gbz80/div.s,
4471         * device/lib/gbz80/mul.s,
4472         * device/lib/gbz80/shift.s,
4473         * device/lib/z80/asm_strings.s,
4474         * device/lib/z80/crt0_rle.s,
4475         * device/lib/z80/div.s,
4476         * device/lib/z80/mul.s,
4477         * device/lib/z80/shift.s: changed to all lower case menmonics except the
4478           flags which are all upper case
4479
4480 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
4481
4482         * as/z80/asm.h: made CASE_SENSITIVE 1
4483         * link/z80/aslink.h: made CASE_SENSITIVE 1
4484         * src/z80/gen.c (throughout): made all conditionals upper case
4485         * support/regression/tests/bug1503067.c: new
4486
4487 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
4488
4489         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
4490           (shiftIntoPair): added case 2 for PAIR_IY,
4491           (setupToPreserveCarry): replaced parameters with iCode and check if
4492            PAIR_DE is in use to fix bug 1399290,
4493           (genPlus, genMinus): updated call to setupToPreserveCarry
4494         * support/regression/tests/bug1399290.c: new
4495
4496 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
4497
4498         * device/lib/Makefile.in (Z80SOURCES): enabled float support
4499         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
4500         * src/ds390/gen.c (shiftRLong),
4501         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
4502         * src/mcs51/gen.c (sameReg): changed to sameByte,
4503           (xch_a_aopGet): new,
4504           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
4505            shiftRLong): fixed bug 1533966
4506         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
4507           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
4508         * support/regression/Makefile.in: disabled z80, enabled ucz80
4509         * support/regression/tests/float_trans.c: enabled test for z80 and host
4510         * support/regression/tests/shifts2.c: new, for testing bug 1533966
4511
4512 2006-08-01 Borut Razem <borut.razem AT siol.net>
4513
4514         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
4515           comparison is always false due to limited range of data type
4516           on PPC64 machine (openpower-linux1) where "char = unsigned char"
4517
4518 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
4519
4520         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
4521         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
4522         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
4523         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
4524
4525 2006-07-31 Borut Razem <borut.razem AT siol.net>
4526
4527         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
4528           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
4529           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
4530           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
4531           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
4532           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
4533           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
4534           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
4535           enable ucsim mingw compilation. Serial port is disabled,
4536           since it uses termios.h API, which is not available on native
4537           WIN32
4538
4539 2006-07-31 Borut Razem <borut.razem AT siol.net>
4540
4541         * Small Device C Compiler 2.6.0 released
4542         * support/scripts/sdcc.nsi: added FULL_DOC option
4543         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
4544
4545 2006-07-28 Borut Razem <borut.razem AT siol.net>
4546
4547         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
4548         * doc/INSTALL.txt: updated
4549
4550 2006-07-27 Borut Razem <borut.razem AT siol.net>
4551
4552         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
4553           device/lib/pic/libdev/Makefile.in: fixed bug
4554           [ 1438354 ] pic libsdcc: distclean doesn't work
4555         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
4556           device/lib/pic16/libio/Makefile.in: fixed bug
4557           [ 1438344 ] pic16 lib: clean doesn't work properly
4558         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
4559
4560 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
4561
4562         * device/lib/pic/libsdcc/fsdiv.c,
4563         * device/lib/pic/libsdcc/fsmul.c,
4564         * device/lib/pic16/libsdcc/float/fsdiv.c,
4565         * device/lib/pic16/libsdcc/float/fsmul.c,
4566         * device/lib/_fsdiv.c,
4567         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
4568         * support/regression/tests/bug1520966.c: added
4569         * doc/knownbugs.html: removed [ 1520966 ] from the list
4570
4571 2006-07-25 Borut Razem <borut.razem AT siol.net>
4572
4573         * configure.in, configure, sdccconf_in.h: fixed bug
4574           [ 1519095 ] regression test onebyte.c fails on ppc64 host
4575         * doc/knownbugs.html: removed [ 1519095 ] from the list
4576
4577 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
4578
4579         * doc/knownbugs.html: added, contains list of known bugs at release
4580         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
4581
4582 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
4583
4584         * device/include/mcs51/compiler.h: added SFRX for xdata based special
4585           function registers and corrected defaults with additional warning
4586         * device/lib/malloc.c: cosmetic changes
4587         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
4588         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
4589           (fillGaps): and used it
4590
4591 2006-07-20 Raphael Neider <rneider AT web.de>
4592
4593         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
4594           output unless SDCCPICDEBUG is set
4595         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
4596           output if SILENT is set
4597
4598 2006-07-11 Borut Razem <borut.razem AT siol.net>
4599
4600         * doc/README.txt: updated
4601
4602 2006-07-10 Borut Razem <borut.razem AT siol.net>
4603
4604         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
4605           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
4606           in WIN32 installation
4607         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
4608           release candidate 1
4609
4610 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
4611
4612         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
4613         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
4614
4615 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
4616
4617         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
4618
4619 2006-07-06 Borut Razem <borut.razem AT siol.net>
4620
4621         * support/regression/tests/bitfields.c:
4622           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
4623         * support/regression/tests/constantRange.c:
4624           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
4625
4626 2006-07-04 Borut Razem <borut.razem AT siol.net>
4627
4628         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
4629           src/port.mk,
4630           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
4631           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
4632           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
4633           reverted changes from 2006-07-03
4634         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
4635         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
4636           added CPPFLAGS, used by the host port
4637
4638 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
4639
4640         * support/regression/valdiag/tests/switch.c,
4641         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
4642         * support/regression/tests/libmullong.c: fixed for host
4643         * support/regression/ports/host/spec.mk: disable all warnings for host,
4644         SDCC runs with --less-pedantic too
4645
4646 2006-07-03 Borut Razem <borut.razem AT siol.net>
4647
4648         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
4649           defined CPPFLAGS
4650         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
4651         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
4652           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
4653           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
4654           include ../port.mk
4655         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
4656           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
4657           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
4658           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
4659
4660 2006-07-02 Raphael Neider <rneider AT web.de>
4661
4662         * src/pic16/devices.inc,
4663         * device/include/pic16/pic18fregs.h,
4664         * device/include/pic16/pic18f4550.h,
4665         * device/lib/pic16/pics.all,
4666         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
4667
4668 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
4669
4670         * as/hc08/lkaomf51.c (OutputName),
4671         * as/mcs51/lkaomf51.c (OutputName),
4672         * as/z80/asmain.c (asmbl),
4673         * src/ds390/main.c (asmLineNodeFromLineNode),
4674         * src/hc08/ralloc.c (hc08_assignRegisters),
4675         * src/mcs51/main.c (asmLineNodeFromLineNode),
4676         * src/xa51/ralloc.c (checkRegMask),
4677         * src/xa51/gen.c (emitcode),
4678         * src/z80/gen.c (_emit2),
4679         * src/SDCCast.c (searchLitOp),
4680         * src/SDCCglobl.h,
4681         * support/packihx/packihx.c,
4682         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
4683         * src/ds390/gen.c (aopPutUsesAcc),
4684         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
4685         * support/regression/tests/libmullong.c (mullong_wrapper),
4686         * src/SDCCsymt.c (powof2),
4687         * src/SDCCast.c,
4688         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
4689         * src/SDCCsymt.h: added TYPE_TARGET_*
4690         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
4691         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
4692         SDCCast because 1) header problems 2) this is the right place
4693         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
4694         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
4695         prototype
4696
4697 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
4698
4699         * src/SDCCicode.h: removed buggy semicolon in unused macro
4700         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
4701         search for previous definiton of auto symbols too,
4702         (findPrevUse): fixed logic of emitWarnings
4703
4704 2006-06-26 Raphael Neider <rneider AT web.de>
4705
4706         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
4707           PCLATH and PCLATU on interrupts, potentially fixes #1505141
4708
4709 2006-06-25 Raphael Neider <rneider AT web.de>
4710
4711         * device/lib/pic/libm: NEW, added math library functions
4712         * device/lib/pic/libsdcc: NEW; added float support functions
4713         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
4714         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
4715           NEW, added math related headers
4716         * device/include/asm/pic/features.h: NEW
4717         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
4718           (popGet): allow larger offsets for AOP_PCODE,
4719           (genDataPointerSet): handle literals explicitly, more debug output,
4720           (genAssign): fixed for float using aopLiteral ;-)
4721         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
4722           GOTO initialisation routine
4723         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
4724           flag on registers, fixes #1469043 (local variables do not work)
4725         * src/pic/main.c (_pic14_do_link),
4726         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
4727           available
4728
4729 2006-06-25 Borut Razem <borut.razem AT siol.net>
4730
4731         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
4732           characters printed (not including the trailing '\0' used to end
4733           output to strings). Problem detected in regression test bug-927659.c.
4734           NOTE: printf() family functions should return int instead
4735           unsigned int!
4736         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
4737           specifier are printed as themselves
4738         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
4739           support flags, width and precision specifiers
4740
4741 2006-06-24 Borut Razem <borut.razem AT siol.net>
4742
4743         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
4744           to the list of sdcc tagrets not supporting bit type
4745         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
4746           testfor pic16 due to bug:
4747           [ 1511794 ] pic16: regression test bug-895992.c fails
4748
4749 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
4750
4751         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
4752         * src/SDCCglue.c (initPointer), fixed bug 1496419
4753         * support/regression/tests/bug1496419.c: new, added
4754
4755 2006-06-22 Borut Razem <borut.razem AT siol.net>
4756
4757         * support/regression/ports/pic16/support.c: use gpsim usart module from
4758           libgpsim_modules library
4759
4760 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4761
4762         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
4763         IP0H to IPH0.
4764
4765 2006-06-19 Raphael Neider <rneider AT web.de>
4766
4767         * src/pic/glue.h,src/pic16/glue.h: added prototypes
4768         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
4769           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
4770           (pic14printExterns,pic14printPublics,pic16printPublics,
4771           pic16_printExterns): use new functions to emit symbols
4772           (picglue,pic16glue): emit publics before emitting externs
4773         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
4774           locally defined functions to avoid bug #1443651
4775         * support/regression/tests/bug-716242.c: removed pic16 workaround
4776         * support/regression/ports/pic16/spec.mk: ignore errors during build
4777
4778 2006-06-19 Raphael Neider <rneider AT web.de>
4779
4780         * src/pic/glue.h: added pic14aopLiteral prototype
4781         * src/pic/glue.c (pic14aopLiteral): return unsigned int
4782         * src/pic/gen.c: removed stdint.h dependency
4783           (aopGet): use Safe_strdup()
4784           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
4785           (genDataPointerSet): use pic14aopLiteral()
4786         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
4787           for pic16; thanks to Bernhard and Maarten
4788
4789 2006-06-18 Borut Razem <borut.razem AT siol.net>
4790
4791         * support/regression/tests/structflexarray.c: flexible array members
4792           not supported by gcc < 3
4793         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
4794           GUI tool by default
4795         * src/pic/gen.c: don't include [p]strdin.h on solaris
4796         * support/Util/pstdint.h: addad svn attributes
4797         * support/regression/tests/constantRange.c,
4798           support/regression/tests/rotate.c: include inttypes.h instead
4799           stdint.h on solaris, addad svn attributes
4800
4801 2006-06-18 Raphael Neider <rneider AT web.de>
4802
4803         * src/SDCCsymt.c (initCSupport): change return type of divschar to
4804           int for PIC16
4805         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
4806           (pic16_genMinusBits): simplified sign-extension
4807           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
4808             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
4809             adjusted to correctly handle mixed-signed operands, disabled
4810             now unused multiplciation routines
4811         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
4812           (assignResultValue): added argument denoting the size of the result
4813             as returned by the function (fixes upcasts in assigning from
4814             function calls: char foo(); int i = foo();)
4815           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
4816             function result to assignResultValue
4817           (genMult): disabled inlined multiplication code
4818           (genDiv): augmented to also handle the modulus operator, fixed to
4819             handle mixed-signed operands correctly
4820           (genMod): simply call genDiv, disabled unused code
4821           (genAssign): fixed missing (sign-)extension on result
4822         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
4823             valid char operands, allow signed operands for native code, added
4824             division and modulo operator handling
4825         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
4826
4827         As a consequence, onebyte.c (if split into two files) and muldiv.c
4828         pass regression tests.
4829
4830 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4831
4832         * doc/Makefile.in: two runs of makeindex seem needed to get
4833         correct page references in the index of sdccman.pdf
4834         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
4835
4836 2006-06-17 Borut Razem <borut.razem AT siol.net>
4837
4838         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
4839
4840 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4841
4842         * doc/sdccman.lyx: updated, added (porting source code, debugging),
4843         mentioned ec2drv and paulmon
4844
4845 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
4846
4847         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
4848           consecutive abs areas
4849           (find_empty_space, allocate_space): added map to handle codemap or
4850            xdatamap,
4851           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
4852            absolute idata and xdata
4853         * as/mcs51/lkmem.c (summary2): updated legend
4854
4855 2006-06-16 Raphael Neider <rneider AT web.de>
4856
4857         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
4858
4859 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
4860
4861         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
4862           1208515
4863         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
4864
4865 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
4866
4867         * src/port.h (struct PORT): added field gp_tags, to hold the tag
4868         value of generic pointers,
4869         * src/avr/main.c,
4870           src/ds390/main.c,
4871           src/hc08/main.c,
4872           src/izt/i186.c,
4873           src/izt/tlcs900h.c,
4874           src/mcs51/main.c,
4875           src/pic/main.c,
4876           src/pic16/main.c,
4877           src/xa51/main.c,
4878           src/z80/main.c: PORT structure, added elements for gp_tags field,
4879         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
4880         fields in the PORT structure of each port,
4881         * src/SDCCast.c (decorateType): allow processing of generic pointers
4882         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
4883         S_FIXED symbols
4884
4885 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
4886
4887         * link/z80/lkgb.c,
4888         * link/z80/lkgg.c,
4889         * src/pic16/gen.c,
4890         * src/pic16/main.c,
4891         * src/pic16/pcode.c,
4892         * src/pic/main.c,
4893         * src/pic/pcoderegs.c,
4894         * src/SDCCicode.c,
4895         * src/SDCCmain.c,
4896         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
4897           bug 1504689 on minGW
4898
4899 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4900
4901         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
4902
4903 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
4904
4905         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
4906
4907 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
4908
4909         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
4910           for optimization
4911
4912 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
4913
4914         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
4915         to a char variable. Fixed bug #1504211
4916         * device/include/pic16/adc.h,
4917         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
4918         and fixed bug #1364390
4919
4920 2006-06-10 Borut Razem <borut.razem AT siol.net>
4921
4922         * CVSROOT: removed the CVS left-over
4923
4924 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
4925
4926         * as/hc08/asmain.c (asexit),
4927         * as/hc08/lkmain.c (lkexit),
4928         * as/mcs51/asmain.c (asexit),
4929         * as/mcs51/lkmain.c (lkexit),
4930         * src/SDCCglue.c (DEFSETFUNC),
4931         * src/SDCCmain.c (linkEdit, assemble),
4932         * support/librarian/sdcclib.c (AddRel),
4933           replaced unlink() by standard C remove()
4934         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
4935         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
4936           gatherImplicitVariables): new, added to fix bug 608752,
4937           (createFunction): added gatherImplicitVariables()
4938         * src/SDCCast.h: added createRMW prototype
4939         * src/SDCCsymt.h (struct symbol): added infertype
4940         * support/regression/tests/bug608752.c: new, added
4941
4942 2006-06-10 Raphael Neider <rneider AT web.de>
4943
4944         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
4945           multibyte dummy reads (fixes #1503234)
4946
4947 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
4948
4949         * device/include/mcs51/compiler.h: new, added header file to enable
4950           creating common sfr definition header files for different compilers
4951
4952 2006-06-05 Raphael Neider <rneider AT web.de>
4953
4954         * src/pic16/{pcode.h,genarith.c}:
4955           introduced pCodeOp combining any two pCodeOps (previously only
4956           two register operands could be combined), removed pcop2 from
4957           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
4958         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
4959         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
4960           rewritten to use new PO_TWO_OPS
4961         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
4962         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
4963           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
4964           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
4965           (pic16_get_op): embraced return arg to allow #define return(x),
4966             added new case for combined opcodes
4967           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
4968           (pic16_pCode2str,pic16_getRegFrompCodeOp,
4969            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
4970
4971 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
4972
4973         * src/SDCCval.c (checkConstantRange): added
4974         * src/SDCCval.h: added checkConstantRange
4975         * support/Util/SDCCerr.c,
4976         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
4977         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
4978         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
4979         * src/SDCCast.c (decorateType): added checkConstantRange,
4980         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
4981         can be emitted with the correct always true/false warning,
4982         added optimization for double '!';
4983         result of decorateType() must be assigned back to the tree, because
4984         decorateType() can change the tree
4985         * src/SDCCicode.c (geniCodeLogic),
4986         (geniCodeAssign): replaced new checkConstantRange, added warnings,
4987         (checkConstantRange): removed, it was only a fragment which never
4988         emitted a warning
4989         * src/SDCCsymt.c (computeType): fixed promotion for
4990         "-1 < (unsigned bit) b"
4991         * src/pic/ralloc.c (packRegsForAssign),
4992         * src/pic16/ralloc.c (packRegsForAssign),
4993         * src/hc08/ralloc.c (packRegsForAssign),
4994         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
4995         from mcs51
4996         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
4997         * support/regression/tests/constantRange.c: added
4998         * support/valdiag/tests/constantRange.c: added
4999         * support/valdiag/valdiag.py: added -DPORT_HOST=1
5000
5001 2006-06-02 Borut Razem <borut.razem AT siol.net>
5002
5003         * support/regression/ports/pic16/support.c: increase stack size
5004           to 255 bytes
5005         * support/regression/Makefile.in: sort tests by name so that the
5006           resutlts can be compared on different machines / platforms
5007
5008 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
5009
5010         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
5011         * src/ds390/gen.c (emitLabel): new, added,
5012           (genDjnz): fixed stack overflow bug,
5013           (throughout): cosmetic changes to sync with mcs51/gen.c,
5014           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
5015         * src/mcs51/gen.c (genEndFunction): small optimization,
5016           (throughout): cosmetic changes to sync with ds390/gen.c
5017
5018 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
5019
5020         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
5021           (_print_format): fixed printing pointers
5022         * src/mcs51/gen.c (emitLabel, movb): new, added,
5023           (genAssign): small optimization,
5024           (genDjnz): fixed stack overflow bug,
5025           (throughout): replaced sprintf with SNPRINTF,
5026           replaced mcs51_regWithIdx with REG_WITH_INDEX,
5027           replaced emitcode("mov", "b,...") with MOVB(...),
5028           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
5029           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
5030         * src/mcs51/peeph.def: added rules 140 and 264
5031         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
5032           so they may get optimized into registers
5033
5034 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
5035
5036         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
5037           immediately when encountered,
5038           (printUsage): always use stderr even on windows
5039
5040 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
5041
5042         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
5043         (processParms): fixed bug #1247551
5044         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
5045         parseCmdLine, main): print '--version' to stdout,
5046         print 'help' to stdout if --help is given,
5047         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
5048         arguments are given; fixed --help
5049
5050 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
5051
5052         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
5053         * support/regression/tests/bug-1493710.c: added
5054
5055 2006-05-27 Borut Razem <borut.razem AT siol.net>
5056
5057         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
5058           static instead auto
5059         * support/regression/ports/pic16/support.c: increase stack size
5060           from default 64 bytes to 128 bytes
5061         * support/regression/tests/staticinit.c,
5062           support/regression/tests/float.c: regression tests fully enabled
5063           for pic16 port by putting the initialized data arrays into the code
5064           section
5065         * support/regression/ports/pic16/spec.mk: don't link default libraries.
5066           This was changed by mistake in the previous version.
5067
5068 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
5069
5070         * src/pic16/gen.c (genFunction, genEndFunction): some
5071         beautifications, fixed bug with falsely restoring FSR2 in large
5072         stack model, thanks to Beau E. Cox for reporting the bug
5073
5074 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
5075
5076         * debugger/mcs51/break.c,
5077         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
5078           use %p to print pointers, made address variables unsigned
5079         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
5080         * debugger/mcs51/symtab.c (parseSymbol): must return something
5081         * src/mcs51/gen.c (aopForSym): small optimization,
5082            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
5083           (freeAsmop): added missing break,
5084           (aopPut): removed parameter bvolatile, determine it inside the function,
5085           (saveRegisters, unsaveRegisters): small optimization,
5086           (genIpush): removed pointless check,
5087           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
5088           replaced sprintf with SNPRINTF,
5089           replaced strcpy with strncpyz,
5090           updated aopPut calls,
5091           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
5092         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
5093
5094 2006-05-24 Borut Razem <borut.razem AT siol.net>
5095
5096         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
5097           modification of test for the pic16 port, put the array to the code
5098           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
5099
5100 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5101
5102         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
5103         * support/Util/pstdint.h: added
5104
5105 2006-05-22 Borut Razem <borut.razem AT siol.net>
5106
5107         * src/regression/Makefile: removed bool2.c test, added -q linker option
5108         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
5109           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
5110           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
5111           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
5112           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
5113           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
5114           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
5115           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
5116           define SUPPORT_BIT_TYPES 0, removed unused bit variables
5117
5118 2006-05-22 Raphael Neider <rneider AT web.de>
5119
5120         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
5121           bug #1492360 (problematic due to generic pointers, see code)
5122
5123 2006-05-22 Borut Razem <borut.razem AT siol.net>
5124
5125         * support/regression/ports/pic16/specs.mk: removed stack size linker
5126           directive
5127         * support/regression/tests/array.c,
5128           support/regression/tests/bitopcse.c,
5129           support/regression/tests/bug-908454.c,
5130           support/regression/tests/malloc.c: modified for pic16 regression test
5131         * support/regression/tests/bitfields.c:
5132           pic16 - excluded bitfileds of size > 8
5133         * support/regression/tests/bp.c: pic16 - reduced data size
5134         * support/regression/tests/bug-221100.c: pic16 - reduced data size
5135         * support/regression/tests/bug-460010.c:
5136           pic16 - used the absolute address the fits in memory
5137         * support/regression/tests/bug-716242.c:
5138           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
5139         * support/regression/tests/float.c:
5140           pic16 - excluded - data size too big
5141         * support/regression/tests/onebyte.c:
5142           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
5143         * support/regression/tests/shifts.c:
5144           pic16 - function names probably have to differ in first X characters
5145           (gpasm limitation?)
5146         * support/regression/tests/staticinit.c:
5147           pic16 - excluded some tests due error: no target memory available for
5148           section ".idata"
5149
5150 2006-05-22 Borut Razem <borut.razem AT siol.net>
5151
5152         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
5153           second try. Thanks Stas Sergeev once more.
5154
5155 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
5156
5157         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
5158           (genLeftShift, genRightShift): fixed bug 1491627
5159         * src/hc08/peeph.def (rules 7, 8.x): added
5160         * support/regression/tests/shifts.c (ShiftLeftByParam,
5161           ShiftRightByParam, testShiftByParam): added to test variable shifting
5162
5163 2006-05-20 Raphael Neider <rneider AT web.de>
5164
5165         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
5166         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
5167           (allocReg): add only new registers to dynAllocRegs,
5168           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
5169             #1489055, #1445850, and probably #1483693
5170
5171 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
5172
5173         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
5174         bug in for-loop that didn't emit the last of CONFIG and ID registers
5175
5176 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
5177
5178         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
5179           with offset
5180         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
5181           1489016, 1434401 and 1490124
5182         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
5183           1489016, 1434401 and 1490124
5184
5185 2006-05-17 Borut Razem <borut.razem AT siol.net>
5186
5187         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
5188           thanks Stas Sergeev
5189
5190 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5191
5192         * device/include/mcs51/P89c51RD2.h,
5193         * device/include/mcs51/P89LPC901.h,
5194         * device/include/mcs51/P89LPC922.h,
5195         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
5196
5197 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
5198
5199         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
5200         to fix missing stack pragma in compiled binary object file,
5201
5202 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
5203
5204         * support/packihx/configure.in,
5205         * support/packihx/configure: removed warning, autoconf >= 2.5x can
5206         determine sizeof basic types even while cross compiling
5207
5208 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
5209
5210         * src/avr/gen.c (aopop),
5211         * src/ds390/gen.c (aopOp),
5212         * src/hc08/gen.c (aopOp),
5213         * src/mcs51/gen.c (aopop),
5214         * src/pic16/gen.c (pic16_aopOp),
5215         * src/pic/gen.c (aopOp),
5216         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
5217         if size of operand is smaller than spill location
5218
5219 2006-05-12 Borut Razem <borut.razem AT siol.net>
5220
5221         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
5222           have to have CR/LF line endings even if they are checked out on *nix
5223           or on WIN32 in cygwin binmode
5224
5225 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
5226
5227         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
5228         * device/include/ds80c390.h: added sfr16 definitions
5229         * src/ds390/gen.c,
5230         * src/ds390/gen.h,
5231         * src/ds390/main.c,
5232         * src/ds390/ralloc.c,
5233         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
5234           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
5235           bit returning functions
5236         * support/regression/tests/sfr16.c: enabled test on ds390
5237
5238 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5239
5240         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
5241         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
5242
5243 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
5244
5245         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
5246         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
5247           (cl_address_space constructor): removed expensive initialization,
5248           (cl_address_space::get_cell): extended for late initialization,
5249           (cl_address_space::*): use late initialization,
5250           (cl_address_decoder::activate): removed expensive initialization,
5251           This reduced regression test running time by 25%
5252
5253 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
5254
5255         * packihx/,
5256         * configure.in,
5257         * configure,
5258         * sdcc.dsw,
5259         * Makefile.bcc,
5260         * Makefile.in,
5261         * support/packihx/Makefile.in,
5262         * support/packihx/clean.mk,
5263         * support/packihx/Makefile.bcc,
5264         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
5265
5266 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5267
5268         * src/SDCCval.c (valNot): fix for regression test failure
5269           of not.c on big endian hosts
5270
5271 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
5272
5273         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
5274
5275 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5276
5277         * device/lib/mcs51/Makefile.in: changed string comparison operator
5278           to = for POSIX compliance; == is bash extension
5279
5280 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
5281
5282         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
5283           kosmonaut_pirx
5284
5285 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
5286
5287         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
5288         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
5289         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
5290         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
5291         bug report #1478657,
5292
5293 2006-05-05 Borut Razem <borut.razem AT siol.net>
5294
5295         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
5296           making the html
5297
5298 2006-05-02 Borut Razem <borut.razem AT siol.net>
5299
5300         * doc/Makefile.in: removed *.ind dependency since there is no rule to
5301           create *.ind, which made make to fail if invoked with -j 2
5302
5303 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
5304
5305         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
5306           Hubert Sack for patch 1479782
5307
5308 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
5309
5310         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
5311
5312 2006-05-01 Raphael Neider <rneider AT web.de>
5313
5314         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
5315           (create_pic): store only prefix-free device name,
5316           (init_pic): check for device names with "16" prefix,
5317           (list_valid_pics),
5318         * src/pic/device.h (struct PIC_device),
5319         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
5320             stored device name,
5321         * device/include/pic/pic12f{635,675,629,683}.h,
5322         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
5323         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
5324         * device/include/pic/pic16f505.h,
5325         * device/lib/pic/libdev/pic16f505.c: removed
5326         * device/include/pic/pic14devices.txt: added support for pic12f
5327             devices, removed unsupported non 16-bit devices
5328             [above changes provided by patch from Zik Saleeba]
5329         * src/pic/*, src/pic16/*, device/include/pic16/*,
5330           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
5331
5332 2006-05-01 Borut Razem <borut.razem AT siol.net>
5333
5334         * configure.in, configure, doc/Makefile.in:
5335           sync with nightly build makefile - latex, dvipdf and dvips
5336           not needed any more
5337
5338 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
5339
5340         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
5341         in the library source
5342
5343 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
5344
5345         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
5346
5347 2006-04-28 Raphael Neider <rneider AT web.de>
5348
5349         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
5350         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
5351           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
5352         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
5353
5354 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
5355
5356         * device/lib/pic/libdev/Makefile.in,
5357         * device/lib/hc08/Makefile.in,
5358         * device/lib/gbz80/Makefile.in,
5359         * device/lib/z80/Makefile.in,
5360         * device/lib/ds390/Makefile.in,
5361         * device/lib/ds400/Makefile.in: added srcdir to include search path,
5362         thanks to Borut for the bug report
5363         * configure.in,
5364         * configure: always create doc/Makefile independent from --enable-doc
5365         * Makefile.in: always install from directory doc independent from
5366         --enable-doc
5367         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
5368         removed
5369         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
5370         * doc/Makefile.in: install *.txt if present
5371         * device/include/Makefile.in (install): added installation of pic/*.inc
5372         and pic/*.txt files again, they were erroneously removed
5373
5374 2006-04-28 Raphael Neider <rneider AT web.de>
5375
5376         * src/pic/{gen.c,main.h,pcode.c},
5377         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
5378             concerning signedness with casts
5379
5380 2006-04-28 Raphael Neider <rneider AT web.de>
5381
5382         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
5383             definition of an interrupt handler,
5384         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
5385             interrupt handler stuff from picglue() to separate routine,
5386           (picglue): enabled definition of intr handlers in files w/o main()
5387
5388 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5389
5390         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
5391           compilation with MSVC 2005 Express Edition (VC8)
5392
5393 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
5394
5395         * device/lib/Makefile: fixed build of gbz80 lib
5396
5397 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5398
5399         * support/regression/tests/bug-460010.c,
5400         * support/regression/tests/bug-524691.c,
5401         * support/regression/tests/bug-716242.c: removed conditional defines
5402           that are already in testfwk.h
5403
5404 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
5405
5406         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
5407           (AccAXRsh1): added, shift right by 1,
5408           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
5409            AccAXLrl1
5410         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
5411
5412 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
5413
5414         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
5415         remove cast to same type
5416         * src/SDCCast.c (decorateType): fix for RFE 1475742,
5417         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
5418         * as/z80/Makefile,
5419         * link/z80/Makefile: removed, they have moved to
5420         Makefile.in files
5421         * configure,
5422         * configure.in: replaced duplicate message about ucsim by missing sdcpp
5423         * install-sh: fix bug #1204398 by setting umask 0022
5424         * device/lib/Makefile: separate build of z80 and gbz80 lib
5425
5426 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
5427
5428         Enabled VPATH feature: changed nearly all Makefiles (149 files).
5429         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
5430
5431         One basic decision: e.g. src/clean.mk includes further files. In order
5432         to make this work there are two solutions:
5433         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
5434           run configure on them. This way they can use
5435           'include $(srcdir)/port-clean.mk'
5436         - always include clean.mk by the Makefile at the same level. To avoid
5437           that `make clean` tries to include and build Makefile.dep the
5438           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
5439           implemented, because now even `make uninstall` doesn't create
5440           Makefile.in. clean.mk could be eliminated by pasting it in
5441           Makefile.in.
5442
5443         * debugger/mcs51/Makefile.in: build own objects from library sources
5444         (SLIB, SDCC) in current directory
5445
5446         * configure, configure.in: renamed --disable-device-lib-build in
5447         --disable-device-lib; added --enable-doc, the required tools are
5448         searched by configure; added result message; the toolchain for the
5449         belonging ports are now only built, if the port is enabled.
5450
5451         * support/regression/*: all output is written in directory gen, because
5452         the fwk and ports directories don't livet in the build tree using vpath
5453
5454         * doc/sdccman.lyx: renamed --disable-device-lib-build to
5455         --disable-device-lib, added --enable-doc, added section VPATH
5456
5457         * sim/ucsim/configure.in,
5458         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
5459         z80 are enabled by default
5460
5461 2006-04-24 Raphael Neider <rneider AT web.de>
5462
5463         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
5464             to config word, "pic14_"-prefixed some extern functions
5465           (pic14_emitConfigWord): emit __config directive(s) if assignment to
5466             config word has been found
5467         * src/pic/device.h: added prototypes
5468         * src/pic/pcode.c: added "pic14_"-prefix where needed
5469         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
5470             fixup
5471         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
5472             words,
5473           (pic14emitRegularMap): ignore config words,
5474           (pic14createInterruptVect): moved generating __config directives away
5475           (picglue): have __config directives emitted
5476
5477 2006-04-24 Borut Razem <borut.razem AT siol.net>
5478
5479         * doc/Makefile: sync with nightly build makefile
5480
5481 2006-04-24 Raphael Neider <rneider AT web.de>
5482
5483         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
5484             registers that have not been assigned proper liveranges,
5485             fixes #1469504 and #1474602,
5486           (pCodeRegOptimizeRegUsage): fixed typo in comment
5487
5488 2006-04-24 Borut Razem <borut.razem AT siol.net>
5489
5490         * device/examples/main8051.c: deleted - it was removed from CVS
5491           24.mar.2000 and after that modified 18.feb.2001, so it reappered
5492           after the transition to Subversion
5493         * src/SDCCalloc.h: deleted - it was removed  from CVS
5494           3.feb.2001 and after that modified 18.feb.2001, so it reappered
5495           after the transition to Subversion
5496         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
5497           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
5498           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
5499           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
5500
5501 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
5502
5503         * as/asx8051.dsp: added mcs51/strcmpi.h
5504         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
5505         * as/hc08/aslink.h: updated lnksect prototype
5506         * as/hc08/asm.h,
5507         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
5508         * as/hc08/asmain.c,
5509         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
5510           (newdot): handle A_ABS
5511         * as/hc08/asout.c,
5512         * as/mcs51/asout.c (outarea): output address
5513         * as/hc08/lkaomf51.c,
5514         * as/mcs51/lkaomf51.c: disabled unused array UsageType
5515         * as/hc08/m08pst.c,
5516         * as/mcs51/i51pst.c,
5517         * as/z80/z80pst.c: "ABS" is not A_OVR
5518         * as/hc08/lkarea.c (newarea): read a_addr,
5519           (lnkarea): added codemap array, sort absolute areas to the front,
5520            combine all GSINITx/GSFINAL,
5521           (find_empty_space, allocate_space): new functions,
5522           (lnksect): return next address, handle absolute sections
5523         * as/mcs51/lkarea.c (newarea): read a_addr,
5524           lnksect2 prototype changed,
5525           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
5526           (find_empty_space, allocate_space): new, factored out of lnksect2,
5527           (lnksect2): return next address, handle absolute sections
5528         * as/hc08/lkhead.c,
5529         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
5530         * as/hc08/lklibr.c (addfile, fndsym),
5531         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
5532           index out of range and detect both '\' and '/'
5533         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
5534         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
5535           regression tests (ds390 cannot return bool yet)
5536         * doc/sdccman.lyx: changed version number, document changed --no-peep,
5537           document critical interrupts on z80, document changed SDCC define
5538         * src/asm.c (_asxxxx_mapping): fixed .org directive,
5539           (_a390_mapping): added .org directive
5540         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
5541           (genMultOneByte): fixed warnings
5542         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
5543           ones
5544         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
5545         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
5546           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
5547         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
5548         * src/pic16/main.c: removed newReg prototype
5549         * src/pic16/pcode.c,
5550         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
5551           warnings
5552         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
5553           ones
5554         * src/pic16/ralloc.c
5555         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
5556           to fix warnings
5557         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
5558           from short to PIC_OPTYPE
5559         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
5560         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
5561           optype from short to PIC_OPTYPE
5562         * src/port.h: made int_size unsigned to fix warnings
5563         * src/SDCC.y: fixed warning on MSVC
5564         * src/SDCCicode.c (getArraySizePtr): return unsigned int
5565         * src/SDCCopt.c (convertToFcall): fixed warnings
5566         * src/SDCCsymt.h: removed double prototype for genSymName
5567         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
5568           offset int to fix warnings
5569
5570 2006-04-22 Borut Razem <borut.razem AT siol.net>
5571
5572         * doc/sdccman.lyx, */Makefile, */Makefile.in:
5573           references to CVS replaced with Subversion
5574
5575 2006-04-21 Borut Razem <borut.razem AT siol.net>
5576
5577         * doc/sdccman.lyx, */Makefile, */Makefile.in:
5578           references to CVS replaced with Subversion
5579
5580 2006-04-19 Borut Razem <borut.razem AT siol.net>
5581
5582         * src/version.awk: adapted for svn
5583         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
5584           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
5585           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
5586           /binutils-avr/etc/*.vi, *.jin: removed all properties
5587           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
5588
5589 2006-04-19 Borut Razem <borut.razem AT siol.net>
5590
5591         * CVS to Subversion migration completed
5592
5593 2006-04-18 Borut Razem <borut.razem AT siol.net>
5594
5595         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}/lib/pic/*.o,
5596           ${DEV_ROOT}/lib/src/pic/libdev/*.S, ${DEV_ROOT}/lib/src/pic/libdev/*.inc
5597
5598 2006-04-17 Borut Razem <borut.razem AT siol.net>
5599
5600         * device/include/Makefile.in: added pic/*.inc to the installation
5601
5602 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
5603
5604         * support/regression/collate-results.py: fixed output in case of
5605         a valdiag error
5606         * support/regression/generate-cases.py: fixed splitting of pathnames
5607         with dots
5608         * as/hc08/lklibr.c (addfile),
5609         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
5610
5611 2006-04-11 Raphael Neider <rneider AT web.de>
5612
5613         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
5614         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
5615         * src/pic16/pcode.c (assignValnums): fixed #1460578
5616
5617 2006-04-11 Raphael Neider <rneider AT web.de>
5618
5619         * device/lib/pic/libdev/*.c,
5620         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
5621           fixes #1468739, enables compilation in --std-c99 mode
5622         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
5623
5624 2006-04-11 Raphael Neider <rneider AT web.de>
5625
5626         * src/pic/device.c (find_device): removed debug output
5627           (list_valid_pics): enabled verbose listing of supported devices
5628         * device/include/stdbool.h: define bool as char for pic14/16 as well
5629
5630 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5631
5632         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
5633
5634 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5635
5636         * .version: bumped version to 2.5.6
5637         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
5638
5639 2006-04-06 Raphael Neider <rneider AT web.de>
5640
5641         * .version: bumped version to 2.5.6 (pic14 ABI changed)
5642         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
5643         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
5644           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
5645             pic14_constructAbsMap
5646           (pic14printPublics): declare absolute global symbols as global
5647           (pic14createInterruptVect),
5648         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
5649           (newReg): assume new registers unused, use correct name in
5650             hashtable (reg->name instead of name), more debugLog output
5651         * src/pic/device.h (PIC_device): added fields for verbose output
5652         * src/pic/device.c: moved device definition to pic14devices.txt,
5653             added routines for runtime parsing of pic14devices.txt,
5654             added support for second config word
5655         * src/pic/main.c (_process_pragma): removed #pragma maxram,
5656           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
5657           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
5658           (_pic14_parseOptions): moved pCodeInitRegisters here
5659           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
5660         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
5661           (pCodeInitRegisters): rewrapped comments, perpared new approach to
5662             handling the pseudo stack
5663         * device/lib/Makefile.in: ignore failures in objects-pic16,
5664         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
5665         * device/lib/pic/NEWS: document new dependency on picXXX.lib
5666         * device/lib/pic/Makefile.subdir,
5667         * device/lib/pic16/Makefile.subdir: improved clean rules
5668         * device/lib/pic/libdev/: NEW, pic14 device libraries
5669         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
5670         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
5671         * device/include/Makefile.in: create subdir and install pic14 headers
5672         * device/include/pic/p16f_common.inc: removed unused declarations
5673         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
5674             PICs from inc2h.pl v1.6,
5675             replaced BIT_AT macros with struct declarations
5676         * device/include/pic/pic14devices.txt: definition of supported devices,
5677             all above improvements contributed by Zik Saleeba, thanks
5678         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
5679         * support/scripts/sdcc.nsi: also install pic14 device libraries and
5680             headers
5681
5682 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
5683
5684         * device/include/mcs51/c8051f410.h: added interrupt numbers,
5685         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
5686           thanks to Charles Olds
5687
5688 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5689
5690         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
5691
5692 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
5693
5694         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
5695         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
5696         * support/regression/bug1464657.c: added, new test
5697
5698 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5699
5700         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
5701           version number
5702
5703 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5704
5705         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
5706           --no-peep and --peep-file <file> are used don't use default rules but
5707           do use the <file>
5708
5709 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5710
5711         * src/mcs51/gen.c (genCall): fixed bug 1457608
5712
5713 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5714
5715         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
5716         changes seem to cause (trigger?) problems with the build system.
5717
5718 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
5719
5720         * src/SDCCpeeph.c (operandsLiteral): new, added,
5721           (callFuncByName): inserted operandsLiteral
5722         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
5723
5724 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5725
5726         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
5727         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
5728
5729 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
5730
5731         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
5732           implemented patch 1120823 Thanks to Willy De la Court (normal
5733           interrupts need an interrupt number now if they are made critical),
5734           and enabled nesting of critical functions though not for gbz80
5735           (genCritical, genEndCritical): added functions
5736           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
5737         * src/z80/mappings.i: added "ei" to all mappings
5738
5739 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5740
5741         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
5742         submitted by the Debian SDCC maintainer Aurelien Jarno:
5743         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
5744         archive with gcc 4.1 on mips and wrote the patch"
5745
5746 2006-03-16 Raphael Neider <rneider AT web.de>
5747
5748         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
5749           the left operand is shorter than the result (c* = lit-c* + int),
5750           fixes bug #1450796
5751         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
5752           OP_SYMBOL
5753
5754 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
5755
5756         * src/.version: increased version number to 2.5.5
5757         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
5758         linking is done manually in pic16 port's _linkEdit,
5759         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
5760         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
5761         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
5762         allocate asmop as AOP_ACC,
5763         (aopForRemat): added parameter 'bool result' in function declaration,
5764         (pic16_aopGet): return AOP_ACC when accessing WREG,
5765         (pic16_popGetTempReg): minor modification,
5766         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
5767         'pic16_allocWithIdx',
5768         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
5769         calling function in absolute addresses,
5770         (genAssign): take into account AOP_ACC asmop,
5771         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
5772         * src/pic16/pcoderegs.c: some debug functions and lines added,
5773         * src/pic16/ralloc.c (decodeRegType): added but commented out,
5774         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
5775         register too,
5776         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
5777         call to allocReg, not by manually allocating a new one,
5778         (pic16_assignRegisters): now before going through the register
5779         allocating functions mark all registers as free. This eliminates some
5780         side effects resulting from peephole parser done earlier in the backbone
5781
5782 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
5783
5784         * src/SDCCicode.c (geniCodeLogic),
5785         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
5786
5787 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
5788
5789         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
5790           (genSend): bugfix, do not allocate and free twice,
5791           (shiftRLong): handle partially overlapping aops
5792         * support/regression/tests/bitopcse.c: fixed warning redefined idata
5793
5794 2006-03-08 Borut Razem <borut.razem AT siol.net>
5795
5796         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
5797           for pic16
5798
5799 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
5800
5801         * support/regression/tests/bug1409955.c: new, added
5802         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
5803         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
5804           (aopForSym, aopOp): increment asmop.allocated if reused,
5805           (freeAsmop): decrement asmop.allocated and check for zero instead of
5806           using asmop.freed,
5807           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
5808           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
5809            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
5810            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
5811            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
5812            genSignedRightShift, genRightShift, genDataPointerGet,
5813            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
5814            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
5815             in reverse order from allocation,
5816           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
5817             added swappedLR to keep track
5818         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
5819           pdata & code for GCC, z80, gbz80 & hc08
5820         * support/regression/tests/zeropad.c: moved defines to testfwk.h
5821
5822 2006-03-08 Raphael Neider <rneider AT web.de>
5823
5824         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
5825
5826 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
5827
5828         * device/include/mcs51/c8051f410.h: new SiLabs mcu
5829         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
5830         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
5831
5832 2006-03-06 Borut Razem <borut.razem AT siol.net>
5833
5834         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
5835           made the linker quiet
5836
5837 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
5838
5839         * src/pic16/gen.c (genPcall): fixed bug #1443644
5840         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
5841         which dumps before the function entry point a data byte which represents
5842         the number of the local variables used by the specified function, added
5843         'xinst' for initial support for Extended Instruction Support,
5844         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
5845         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
5846         port->fun_prefix anymore (may change later),
5847         (genFunction, genEndFunction): do not store/restore local registers for
5848         _main (this should take care the --main-return command line option in
5849         the future),
5850         (genOr): removed some legacy pic-port instructions,
5851         * src/pic16/genarith.c (genAddLit): re-enabled old code because
5852         performing operations with SFR's causes data to be written more than
5853         once to each SFR. Perhaps SFRs should be handled in special cases...
5854         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
5855         pcode.h
5856         * src/pic16/main.c (_process_pragma): stack bound checking did not take
5857         into account for stack starting position,
5858         (struct OPTIONS pic16_optionsTable): added command line argument
5859         --extended or -y for Extended Instruction Support,
5860         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
5861         (deassignLRs): *** perhaps the most important change, old 'for' code
5862         (commented out for reference), didn't account for some registers which
5863         were left marked 'not free' after a pointer operation. The change
5864         reduces register usage a lot in some cases
5865
5866 2006-03-04 Borut Razem <borut.razem AT siol.net>
5867
5868         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
5869           _clean
5870         * support/regression/tests/bug-524697.c: decreased array size for
5871           mcs51 to fit into the internal RAM
5872         * support/regression/Makefile.in: a little bit more verbose
5873
5874 2006-03-03 Borut Razem <borut.razem AT siol.net>
5875
5876         * support/regression/fwk/lib/testfwk.c,
5877           support/regression/fwk/include/testfwk.h: introduced function
5878           _prints(), nonrecursive _printn(), call _initEmu() from main()
5879         * support/regression/ports/gbz80/support.asm,
5880           support/regression/ports/ucz80/support.asm,
5881           support/regression/ports/z80/support.asm,
5882           support/regression/ports/ds390/support.c,
5883           support/regression/ports/hc08/support.c,
5884           support/regression/ports/host/support.c,
5885           support/regression/ports/mcs51/support.c,
5886           support/regression/ports/xa51/support.c: added empty _initEmu()
5887           function
5888         * support/regression/ports/pic16/gpsim.cmd,
5889           support/regression/ports/pic16/spec.mk,
5890           support/regression/ports/pic16/support.c,
5891           support/regression/Makefile.in: added pic16 regression test
5892
5893 2006-03-01 Raphael Neider <rneider AT web.de>
5894
5895         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
5896           genConstPointerGet): use safe way of generating MOVFF to cover
5897             literals as well as registers, fixes bug #1440527
5898         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
5899             dereference
5900           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
5901             more correctly, fixes bug #1232186
5902           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
5903         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
5904             gplink guess the correct processor in more cases, applied patch
5905             from Till Riedel attached to and fixing bug #1436552
5906
5907 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5908
5909         * support/regression/tests/array.c: added, contains check for #1434401
5910         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
5911
5912 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
5913
5914         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
5915         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
5916         * device/include/mcs51/c8051f326.h,
5917         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
5918         * device/include/mcs51/c8051f000.h,
5919         * device/include/mcs51/c8051f018.h,
5920         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
5921           PCON_IDLE,PCON_STOP and added sfr16 definitions
5922
5923 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
5924
5925         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
5926           genGetWord): fixed bug 1409955
5927
5928 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
5929
5930         * device/include/hc08/mc68hc908gp32.h,
5931         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
5932
5933 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
5934
5935         * src/SDCCast.c (constExprValue): return NULL if not a value
5936         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
5937         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
5938         * support/regression/tests/bitfields.c: enabled signed bitfield for all
5939
5940 2006-02-13 Borut Razem <borut.razem AT siol.net>
5941
5942         * src/regression/ptrarg.c: added, fails due to bug #1430967
5943         * src/regression/Makefile: ptrarg.c added, ...
5944
5945 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
5946
5947         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
5948         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
5949
5950 2006-02-11 Borut Razem <borut.razem AT siol.net>
5951
5952         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
5953           print "Processor: xxx" message to stdout only if --verbose
5954
5955 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
5956
5957         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
5958         * support/regression/tests/bug1426356.c: added
5959         * support/regression/tests/bitfields.c: removed 2 tests
5960
5961 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
5962
5963         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
5964         * device/include/mcs51/c8051f330.h,
5965         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
5966           PCON_IDLE,PCON_STOP and added sfr16 definitions
5967         * device/lib/_divsint.c,
5968         * device/lib/_divuint.c,
5969         * device/lib/_divulong.c,
5970         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
5971           register bank bug for small stackauto
5972
5973 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
5974
5975         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
5976
5977 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
5978
5979         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
5980         * all.dsp: corrected several bin paths
5981         * device/include/mcs51/c8051f120.h,
5982         * device/include/mcs51/c8051f300.h,
5983         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
5984           to PCON_IDLE,PCON_STOP
5985         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
5986         * device/lib/printf_large.c (output_float): fixed bug 1388703
5987         * support/regression/tests/bug1057979.c: added test for bug 1388703
5988
5989 2006-02-08 Raphael Neider <rneider AT web.de>
5990
5991         * src/pic/pcode.c (pciTRIS): fixed typo,
5992           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
5993           (LinkFlow): fixed handling of flows that end in a call,
5994           (ReuseReg): perform safety check earlier
5995         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
5996             to work with flows at the beginning of a pBlock,
5997             fixes #1426557 (Symbol not previously defined),
5998           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
5999             usage information
6000           (RemoveUnusedRegisters): update register usage info
6001         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
6002             created, reuse existing ones instead
6003         * src/pic/gen.c (genPcall): fixed #1424719
6004
6005 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
6006
6007         * link/z80/lkmain.c,
6008         * link/z80/lklex.c,
6009         * link/z80/lkdata.c,
6010         * link/z80/aslink.h: fixed build on current cygwin:
6011         replaced getline() by lk_getline()
6012
6013 2006-02-01 Borut Razem <borut.razem AT siol.net>
6014
6015         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
6016           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
6017           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
6018           src/regression/bool1.c, src/regression/bool2.c,
6019           src/regression/bool3.c, src/regression/call1.c,
6020           src/regression/compare.c, src/regression/compare10.c,
6021           src/regression/compare2.c, src/regression/compare3.c,
6022           src/regression/compare4.c, src/regression/compare5.c,
6023           src/regression/compare6.c, src/regression/compare7.c,
6024           src/regression/compare8.c, src/regression/compare9.c,
6025           src/regression/configword.c, src/regression/for.c,
6026           src/regression/inline.c, src/regression/mult1.c,
6027           src/regression/nestfor.c, src/regression/or1.c,
6028           src/regression/pointer1.c, src/regression/ptrfunc.c,
6029           src/regression/rotate1.c, src/regression/rotate2.c,
6030           src/regression/rotate3.c, src/regression/rotate4.c,
6031           src/regression/rotate5.c, src/regression/rotate6.c,
6032           src/regression/rotate7.c, src/regression/string1.c,
6033           src/regression/struct1.c, src/regression/sub.c,
6034           src/regression/sub2.c, src/regression/switch1.c,
6035           src/regression/while.c, src/regression/xor.c,
6036           src/regression/create_stc, src/regression/simulate,
6037           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
6038           regression tests
6039         * src/regression/gpsim_assert.h: added
6040
6041 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
6042
6043         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
6044         ((void (code *) (void)) 0) ();
6045         * as/hc08/aslex.c,
6046         * as/hc08/aslink.h,
6047         * as/hc08/asm.h,
6048         * as/hc08/asmain.c,
6049         * as/hc08/lkdata.c,
6050         * as/hc08/lklex.c,
6051         * as/hc08/lkmain.c,
6052         * as/mcs51/aslex.c,
6053         * as/mcs51/aslink.h,
6054         * as/mcs51/asm.h,
6055         * as/mcs51/asmain.c,
6056         * as/mcs51/lkdata.c,
6057         * as/mcs51/lklex.c,
6058         * as/mcs51/lkmain.c,
6059         * as/z80/aslex.c,
6060         * as/z80/asm.h,
6061         * as/z80/asmain.c: fixed build on current cygwin:
6062         replaced getline() by as_getline()
6063
6064 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
6065
6066         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
6067         declarator in the symbol chain
6068         * src/SDCCsymt.h,
6069         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
6070         parameter list for function pointers
6071         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
6072         * support/regression/tests/bug-716242.c: added
6073
6074 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
6075
6076         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
6077         offset if possible
6078         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
6079
6080 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
6081
6082         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
6083         inifinitely recurseable, added static
6084         * support/regression/tests/bug-1408066.c: added
6085
6086 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
6087
6088         * src/SDCCicode.h,
6089         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
6090         renamed, added possibility to create "postLoopLbl"-labels
6091         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
6092         newiTempLoopHeaderLabel
6093         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
6094         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
6095         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
6096         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
6097         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
6098         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
6099         (basicInduction): fixed bug #136564, made static,
6100         (loopInduction): changed parameter of basicInduction, made static,
6101         (addPostLoopBlock): added
6102         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
6103         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
6104         findLoopEndSeq
6105         * support/regression/tests/bug-136564.c: added
6106         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
6107         --std-sdcc99 to LIBSDCCFLAGS
6108
6109 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
6110
6111         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
6112         while loop
6113         * support/regression/tests/bug-1406131.c: added
6114
6115 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
6116
6117         * src/SDCCast.c (decorateType): fix promotion of unary minus
6118         * src/SDCCsymt.c (computeType): beautified
6119         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
6120         (valUnaryPM, valComplement): fix sign and promotion,
6121         (valNot): ANSI: result type is int (SDCC: unsigned char)
6122         * support/regression/tests/uminus.c: speedup by removing superflous
6123         test case 'int'
6124         * support/regression/tests/onebyte.c: added promotion and signedness
6125         tests for unary minus
6126         * support/regressions/tests/bug-477927.c: disable warning about
6127         uninitialized variables
6128         * support/regression/tests/not.c: added
6129
6130 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
6131
6132         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
6133         * src/mcs51/gen.c (gen51Code): show final register usage after
6134         fillGaps in asm with --i-code-in-asm
6135         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
6136         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
6137         incUsed, rliveClear, adjustIChain): made static,
6138         (setFromRange): excluded because it's unused,
6139         (findPrevUseSym, markWholeLoop): added,
6140         (findPrevUse): rewritten; fixes bug 895992; now a complete search
6141         through all branches of predecessors enables sdcc to emit the warning
6142         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
6143         (rlivePoint): made static, added parameter emitWarnings which is only
6144         true during the first run out of two,
6145         (findRecursiveSucc, findRecursivePred): removed,
6146         (computeLiveRanges): made static, added parameter emitWarnings,
6147         (dumpIcRlive): added for debugging only
6148         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
6149         removed prototype of setFromRange()
6150         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
6151         in call of computeLiveRanges()
6152         * support/regression/tests/bug-895992.c: added
6153         * support/regression/tests/bug-971834.c: added
6154         * support/valdiag/tests/bug-895992.c: added
6155         * support/valdiag/tests/bug-971834.c: added
6156
6157 2005-12-18 Raphael Neider <rneider AT web.de>
6158
6159         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
6160           (genUnpackBits): improved code for direct operands,
6161           (genPackBits): improved code for literal assignment to bitfields
6162             and for direct destination operands (no FSR indirection),
6163             prevented redundant AND, fixes #1362800,
6164           (AccLsh): added parameter to disable masking of the result
6165         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
6166           skip instructions with side-effects (like incfsz),
6167           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
6168         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
6169         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
6170           fixes #1375263
6171
6172 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
6173
6174         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
6175         volatile variables as spill location
6176
6177 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
6178
6179         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
6180         replacing literals
6181         * support/regression/tests/bug-1376320.c: added
6182
6183 2005-12-08 Raphael Neider <rneider AT web.de>
6184
6185         * src/pic/device.c: renamed is_shared to pic14_is_shared
6186         * src/pic/gen.c (genIfx): re-enabled handling of sbits
6187         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
6188           (is_valid_identifier): added for above workaround
6189
6190 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
6191
6192         * device/lib/Makefile.in: fixed to enable port-specific-objects
6193         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
6194           char, thanks Hubert Sack
6195         * doc/sdccman.lyx: documented --xstack-loc,
6196           elaborated a bit more on interrupts and pitfalls,
6197           removed "setjmp/longjmp unsupported",
6198           documented some unsupported C99 features
6199         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
6200         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
6201           if, thanks Hubert Sack
6202         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
6203         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
6204           make make_library
6205         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
6206           regression tests can report resource usage (rfe 700441)
6207         * support/regression/collate-results.py: report resource usage
6208         * support/regression/ports/ds390/spec.mk,
6209         * support/regression/ports/hc08/spec.mk,
6210         * support/regression/ports/mcs51/spec.mk,
6211         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
6212         * support/regression/ports/ds390/uCsim.cmd,
6213         * support/regression/ports/hc08/uCsim.cmd,
6214         * support/regression/ports/mcs51/uCsim.cmd,
6215         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
6216         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
6217           library, use the default one
6218         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
6219           building the library
6220
6221 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
6222
6223         * config.dsp: added dependency on .version and configure_vc.awk
6224         * device/include/setjmp.h: updated for --stack-auto and --xstack
6225         * device/include/mcs51/at89c51snd1c.h: corrected line endings
6226         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
6227         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
6228         * device/lib/libsdcc.lib: added _setjmp
6229         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
6230           (decorateType): fixed bug 1372851,
6231           (optimizeGetHbit): fixed warning
6232         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
6233           array initialisation
6234         * support/regression/tests/bug1057979.c: added test for bug 1358192
6235         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
6236
6237 2005-12-03 Borut Razem <borut.razem AT siol.net>
6238
6239         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
6240           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
6241
6242 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
6243
6244         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
6245         createIval): implement symbol independant "flexible array member",
6246         (createIvalCharPtr): implemented flexible array initialisation with a
6247         string
6248         * src/SDCCsymt.c (copyStruct): removed,
6249         (getSize): fixed misleading comment,
6250         (getAllocSize): removed, the additional allocation size is now in
6251         sym->flexArrayLength,
6252         (checkStructFlexArray): new, syntax checks for flexible array members,
6253         (compStructSize): added syntax checks for "flexible array members"
6254         (copyStruct): removed,
6255         (copyLinkChain): removed inefficient fix for bug 770487
6256         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
6257         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
6258         symbol->flexArrayLength
6259         * src/SDCCerr.c,
6260         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
6261         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
6262         * support/regression/tests/structflexarray.c: added
6263         * support/valdiag/tests/structflexiblearray.c: added
6264
6265 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
6266
6267         * src/SDCCast.c (decorateType): fixed bug 1368489
6268         * support/Util/SDCCerr.c,
6269         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
6270
6271 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6272
6273         * device/include/mcs51/at89c51snd1c.h: added file submitted by
6274           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
6275
6276 2005-11-27 Borut Razem <borut.razem AT siol.net>
6277
6278         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
6279           support/cpp2/mkdeps.h: added command line option
6280           -obj-ext=<extension> to SDCPP to define object file externion, used
6281           for generation of make dependencies (-M)
6282         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
6283
6284 2005-11-26 Borut Razem <borut.razem AT siol.net>
6285
6286         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
6287           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
6288           added pic and pic16 libraries
6289
6290 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6291
6292         * device/include/float.h: Corrected typo in prototype of __fsgt
6293
6294 2005-11-25 Borut Razem <borut.razem AT siol.net>
6295
6296         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
6297           added creation of model-mcs51-stack-auto libraries
6298
6299 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
6300
6301         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
6302         and fields-list too
6303         * src/SDCCast.c (createIvalArray): removed obsolete comment
6304
6305 2005-11-24 Borut Razem <borut.razem AT siol.net>
6306
6307         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
6308           added missing device/lib/mcs51/crt*.asm sources
6309
6310 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
6311
6312         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
6313
6314 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
6315
6316         * device/lib/_fs2schar.c,
6317         * device/lib/_fs2sint.c,
6318         * device/lib/_fs2slong.c: optimized inline asm
6319
6320 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6321
6322         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
6323           Better handling of floats between -1.0 and 0.0.
6324
6325 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6326
6327         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
6328           (the missing "if"s prohibited removal of redundant labels)
6329
6330 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6331
6332         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
6333           Properly convert floats between -1.0 and 0.0 to long, int, and char
6334           types (max integer value of negative floats tends to zero).
6335         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
6336           Removed changes made so to work properly with floats between
6337           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
6338           and _fs2char.c
6339
6340 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
6341
6342         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
6343         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
6344         (genCast) cosmetic change
6345         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
6346         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
6347         from mcs51
6348         * support/regression/tests/bitfields (testSignedBitfields): added
6349
6350 2005-11-18 Borut Razem <borut.razem AT siol.net>
6351
6352         * sdcc/device/lib/Makefile.in: remove all unnecessary files
6353         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
6354           introduced SILENT option to make building of pic16 libraries less
6355
6356 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6357
6358         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
6359           Now they work properly with floats between -1.0 and 0.0
6360         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
6361
6362 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
6363
6364         * src/SDCCicode.c (printOperand): added missing else
6365
6366 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
6367
6368         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
6369         reformatted for better readability
6370         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
6371         signed bitfields
6372
6373 2005-11-17 Borut Razem <borut.razem AT siol.net>
6374
6375         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
6376           introduced SILENT option to make building of pic16 libraries less
6377           verbose - used for nightly snapshot build
6378         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
6379           available on Win32 platforms.
6380         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
6381           medium, large, pic and pic16
6382
6383 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6384
6385         * device/lib/printf_large.c: Temporary patch for bug 1358192:
6386           printf("%f"...) sets fraction to zero.
6387
6388 2005-11-16 Raphael Neider <rneider AT web.de>
6389
6390         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
6391           fixes #1357221
6392         * src/pic/gen.c (genIfx): implemented for CARRY bit
6393         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
6394           to generic pointers, fixes #1357332,
6395           (pic16_movLit2f): NEW,
6396           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
6397
6398 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
6399
6400         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
6401
6402 2005-11-11 Raphael Neider <rneider AT web.de>
6403
6404         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
6405         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
6406           compute pointer's type from operand,
6407           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
6408           improved single bit reads, fixes bug #1353379
6409
6410 2005-11-09 Borut Razem <borut.razem AT siol.net>
6411
6412         * support/scripts/sdcc.nsi: added lib/pic to the package
6413
6414 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
6415
6416         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
6417
6418 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
6419
6420         * support/regression/tests/bug1348008.c: added
6421         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
6422         * support/regression/tests/bug1337835.c: updated comment
6423
6424 2005-11-06 Borut Razem <borut.razem AT siol.net>
6425
6426         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
6427           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
6428           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
6429           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
6430           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
6431           dynamic construction of cl_error_class and derivates - 2.nd try
6432
6433 2005-11-05 Borut Razem <borut.razem AT siol.net>
6434
6435         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
6436           bug, which caused Bus Errors on sparc solaris
6437
6438 2005-11-04 Borut Razem <borut.razem AT siol.net>
6439
6440         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
6441           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
6442           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
6443           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
6444           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
6445           and derivates to resolve the initialization problem on OSX
6446
6447 2005-11-02 Borut Razem <borut.razem AT siol.net>
6448
6449         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
6450           corrected typo - #include <winsock2.h>
6451
6452 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
6453
6454         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
6455           (_asxxxx_mapping): added org directive for future enhancements
6456
6457 2005-11-01 Borut Razem <borut.razem AT siol.net>
6458
6459         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
6460           enabled sockets on WIN32
6461         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
6462
6463 2005-10-31 Borut Razem <borut.razem AT siol.net>
6464
6465         * support/regression/generate-cases.py: escape backslashes in {testcase}:
6466           WIN32 backslash path delimiters should be escaped when used in C strings
6467         * support/regression/tests/bitfields.c: exclude failing assertions for
6468           __CYGWIN32__ and __MINGW32__ hosts
6469
6470 2005-10-30 Borut Razem <borut.razem AT siol.net>
6471
6472         * src/SDCCutil.c: corrected double comparison typo
6473
6474 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
6475
6476         * device/lib/medium/Makefile: added for new memory model medium
6477         * device/include/asm/mcs51/features.h: updated for medium/pdata
6478         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
6479           added Multiply & Accumulate sbit's and MAC0_PAGE define
6480         * device/include/mcs51/c8051f300.h: added sfr16 definitions
6481         * device/include/mcs51/c8051f310.h: added sfr16 definitions
6482         * device/lib/_mullong.c: update for medium model
6483         * device/lib/incl.mk: added medium model
6484         * doc/sdccman.lyx: documented medium model
6485         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
6486         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
6487         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
6488         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
6489           (allocParms): set SCLS and OCLS to pdata for medium model
6490         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
6491           for pdata,
6492           (powof2): return <0 if not power of 2
6493         * src/avr/gen.c (genBitWise): use updated powof2
6494         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
6495           (shiftR2Left2Result): small optimization in setup, save acc when storing,
6496           (shiftLLeftOrResult): use B if necessary
6497         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
6498         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
6499         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
6500         * support/regression/Makefile.in: added test-mcs51-medium
6501         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
6502
6503 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
6504
6505         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
6506         specifier unsigned
6507         * device/lib/time.c (mktime): fixed bug 1334315
6508
6509 2005-10-28 Raphael Neider <rneider AT web.de>
6510
6511         * device/include/pic/p16f_common.inc: added common declarations
6512         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
6513
6514 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
6515
6516         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
6517           (aopPutUsesAcc): added to predict accumulator use,
6518           (assignResultValue): save acc if necessary,
6519           (genMinusDec): store result if indirectly addressed,
6520           (genDivOneByte):  save acc if necessary,
6521           (movLeft2Result): bugfix if left already in acc,
6522           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
6523             attention to accumulator use (esp. pdata),
6524           (genReceive): receive pdata correctly
6525         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
6526         * src/SDCCicode.h: added isOperandInPagedSpace prototype
6527
6528 2005-10-27 Raphael Neider <rneider AT web.de>
6529
6530         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
6531
6532 2005-10-27 Raphael Neider <rneider AT web.de>
6533
6534         * .version: changed version to 2.5.4
6535         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
6536         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
6537           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
6538             arithmetics support routines
6539         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
6540         * device/lib/Makefile.in: also create installdir for pic
6541
6542         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
6543           pic14 port as well
6544         * src/pic/device.c (dump_sfr): rewritten to delegate register
6545           placement to the linker (use `extern sym' rather than sym EQU addr),
6546           (validAddress): fixed to check last specified address
6547         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
6548           (popGetLit): truncate literal value to 8 bit,
6549           (popGet): moved assert to more appropriate place
6550           (popGetExternal): create pCode operand from and mark the according
6551             symbol as being `extern'
6552           (popGetAddr): added sanity check on immediate's offset, provide
6553             GPOINTER tag on demand
6554           (aopPut): fixed for immediates,
6555           (mov2w_op): move operand's address or contents to WREG (depending on
6556             operand type), safer variant of mov2w,
6557           (movwf,call_libraryfunc): NEW, handy abbreviations,
6558           (get_argument_pcop,get_return_val_pcop,pass_argument,
6559           get_returnvalue): interface for accessing function parameters and
6560             return values,
6561           (assignResultValuei,genRet): use new parameter/return value interface
6562           (pic14_getDataSize): back to old version handling generic pointers,
6563           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
6564             provided implementation and/or fixed old one,
6565           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
6566             calls, removed legacy 8051 reference code
6567           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
6568           (loadSignToC): NEW, move the operands sign bit to CARRY,
6569           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
6570             genRightShiftSigned, accepts negative shift counts,
6571           (setup_fsr): load FSR and adjust IRP (indirect memory access),
6572           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
6573             generic pointers, __data pointers and __code pointers,
6574           (genUnpackBits,genPackBits): rewritten to work with generic pointers
6575             and signed bitfields, limit bitfields to 8 bit,
6576           (genDataPointerGet): fixed number of bytes read,
6577           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
6578           (genPointerGet,genPointerSet): fixed handling of __code pointers,
6579             pointers to constant data are no longer assumed to point to __code
6580             space, removed invalid pointer types,
6581           (bitpatternFromVal): retrieve the PICs representation of an integer
6582             or float literal,
6583           (genDataPointerSet): fixed assigning to po_immediate operands,
6584           (genGenPointerSet): implemented as library call,
6585           (genIfx): fixed incorrect condition,
6586           (genAddrOf): limit generic pointers' addresses to 2 bytes,
6587             provide GPOINTER tag according to destination's storage class,
6588           (genCast): added code to handle casting to generic pointers, added
6589             sign-/zero extension of the result
6590           (aop_isLitLike,op_isLitLike): fixed handling of immediates
6591         * src/pic/gen.h: added macros to access IRP bit in STATUS register
6592         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
6593           extend the result
6594         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
6595           address/register resides in the shared banks
6596           (emitSymbolToFile): improved to handle global and `pinned' symbols,
6597             put all variables into separate sections (have the linker arrange
6598             them)
6599           (picglue): put init code and interrupt handlers in separate sections
6600         * src/pic/main.c: added port specific options table, modified to PORT
6601           structure to make GPOINTERs 3 byte, added pic14_options
6602           (_pic14_do_link): private linking routine (update paths to libraries,
6603             add libsdcc.lib by default)
6604         * src/pic/main.h: declare pic14_options
6605         * src/pic/pcode.c: fixed instructions i/o relations,
6606           (RegCond): reverted to correct version,
6607           (newpCodeOpLit): truncate literals to 8 bit,
6608           (genericPrint): added debug output,
6609           (getRegFromInstruction): fixed for various operand types, simplified
6610           (BuildFlow): fixed broken handling of isntructions with labels
6611           (LinkFlow): start at last instruction in flow (skip trailing comments),
6612             pass the flow on to the next instruction after CALL
6613           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
6614           (insertPCodeInstruction): fixed inserting after a skip instruction,
6615           (DoBankSelect): fixed for labeled instructions
6616           (OptimizepBlock): honor --nopeep switch
6617           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
6618         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
6619         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
6620           (pCodeOptime2pCodes): allow disabling this optimization via
6621             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
6622             but is still buggy), started implementation of a dataflow based
6623             pCode optimization (CSE + dead code elimination)
6624           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
6625         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
6626           names are independant of the stack location and therefore portable across
6627           devices
6628
6629 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
6630
6631         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
6632           (selectSpil): fixed bug 1337835 by not spilling bit variables
6633         * support/regression/tests/bug1337835.c: added test for this bug
6634         * src/mcs51/peeph.def: restart after rule 3.c,
6635           addded rules 263.x to optimize loading constants
6636
6637 2005-10-26 Raphael Neider <rneider AT web.de>
6638
6639         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
6640         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
6641           (genAssign): emit warning when casting literals to generic pointer
6642             type, also applies when taking the address of a fixed variable,
6643           (genCast): improved casting to generic pointers
6644         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
6645           extern variables, added verbose error message
6646         * device/include/pic16/{string.h,errno.h}: added #pragma library c
6647
6648 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
6649
6650         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
6651         carry must be complemented too
6652         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
6653         could be emitted by genMinus
6654         * src/SDCCval.c (constVal): fixed bug 1305065
6655
6656 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
6657
6658         * src/SDCCast.c (addCast): added promotion for bit variables
6659         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
6660         promotion casts + optimisation
6661         (optimizeGetWord): fix warning 'i' might be used uninitialized
6662         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
6663         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
6664
6665 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
6666
6667         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
6668         all chars are promoted to int; promotion should be handled in SDCCast.c
6669
6670 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6671
6672         * device/lib/_strcmp.c: Fixed bug 1326457
6673
6674 2005-10-11 Raphael Neider <rneider AT web.de>
6675
6676         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
6677         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
6678
6679 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
6680
6681         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
6682         * support/regression/tests/sfr16.c: added test for the sfr32 bug
6683
6684 2005-10-04 Raphael Neider <rneider AT web.de>
6685
6686         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
6687           device/lib/pic16/pics.all: added pic18f1320
6688         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
6689
6690 2005-09-30 Raphael Neider <rneider AT web.de>
6691
6692         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
6693         * src/pic16/devices.inc: NEW, provides device descriptions
6694         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
6695
6696 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
6697
6698         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
6699           GETHBIT
6700
6701 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
6702
6703         * doc/sdccman.lyx: updated Highest Order Bit documentation,
6704           documented Any Order Bit, Higher Order Byte and Higher Order Word
6705         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
6706         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
6707           (optimizeGetAbit): new, to get any bit, not only the high bit,
6708           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
6709           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
6710           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
6711           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
6712             RIGHT_OP: also try GETBYTE, GETWORD optimization,
6713             GETABIT, GETBYTE, GETWORD: decorate them,
6714           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
6715           (ast_print): added GETABIT, GETBYTE, GETWORD
6716         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
6717         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
6718           (geniCodeBinary): new generic binary icode,
6719           (ast2iCode): added GETABIT, GETBYTE, GETWORD
6720         * src/port.h: updated comment for PORT.hasExtBitOp
6721         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
6722           (genGetByte): new, to get a single byte,
6723           (genGetWord): new, to get a word from a long,
6724           (gen51Code): added GETABIT, GETBYTE, GETWORD
6725         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
6726
6727 2005-09-23 Raphael Neider <rneider AT web.de>
6728
6729         * configure.in, configure: have device/lib/pic configured
6730         * device/lib/Makefile.in: added model-pic14
6731         * device/lib/clean.mk: added pic/ to clean rule
6732         * device/lib/pic: added rudimentary pic14 library providing support
6733           functions for multiplication/division/generic pointer access
6734         * src/SDCCopt.c (convilong): mark support functions as extern
6735           for pic14 port as well
6736         * src/pic/gen.c (genMult): added assertions,
6737           (genpic14Code): emit warning on unhandled iCodes
6738         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
6739         * src/pic/pcode.c (pCodeOpCopy),
6740         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
6741           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
6742           SFR_REGISTER}), made safe for future extensions
6743         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
6744           instructions even if preceeded by SKIP instructions (also remove
6745           them); removed unused code
6746         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
6747           prevents leaving parts of the structure uninitialized after copying
6748
6749 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
6750
6751         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
6752           ago by me
6753         * support/regression/tests/addsub.c: added test for the bug
6754
6755 2005-09-21 Raphael Neider <rneider AT web.de>
6756
6757         * device/include/pic16/pic18f1220.h,
6758           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
6759         * device/lib/pic16/Makefile.rules: added missing opening paren
6760         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
6761           are provided in genutils.c,
6762           (genUminusFloat,genUminus,genCmpEq): added asserts on different
6763           operand/result sizes,
6764           (genCmp): assert on NULL pointers first, then check deref'ed values
6765         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
6766           result size
6767
6768 2005-09-18 Raphael Neider <rneider AT web.de>
6769
6770         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
6771           as these are now unused,
6772           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
6773         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
6774           local, avoids uninitialized pointer dereference on r->name
6775         * src/pic16/ralloc.c (newReg): fixed indentation
6776
6777 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
6778
6779         * src/SDCCval.c (constVal): fixed bug 730366
6780         * support/Util/SDCCerr.c,
6781         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
6782
6783 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
6784
6785         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
6786
6787 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
6788
6789         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
6790
6791 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
6792
6793         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
6794           (hex2dec): made hex_digit unsigned char, removed ascii dependance
6795         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
6796           (hex2dec): made hex_digit unsigned char, removed ascii dependance
6797         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
6798         * packihx/packihx.c (hexDigit): made c unsigned char
6799         * as/mcs51/lklibr.c (fndsym),
6800         * link/z80/lkgb.c (gb),
6801         * link/z80/lklibr.c (fndsym),
6802         * link/z80/lkrloc.c (relr),
6803         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
6804         * src/SDCC.lex (checkCurrFile, process_pragma),
6805         * src/SDCCglue.c (spacesToUnderscores),
6806         * src/SDCCmain.c (setParseWithComma, processFile),
6807         * src/asm.c (tvsprintf, printCLine),
6808         * src/avr/gen.c (emitcode, aopPut),
6809         * src/ds390/gen.c (emitcode),
6810         * src/hc08/gen.c (emitcode, emitinline),
6811         * src/mcs51/gen.c (emitcode, genInline),
6812         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
6813           tokenizeLineNode),
6814         * src/pic/ralloc.c (debugLog),
6815         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
6816           tokenizeLineNode),
6817         * src/pic16/ralloc.c (debugLog),
6818         * src/z80/main.c (_process_pragma):
6819            made all ctype.h function calls safe
6820         * src/SDCCopt.c: include math.h for fabs
6821         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
6822           and used them throughout the code to make ctype.h function calls safe
6823         * src/ds390/main.c (asmLineNodeFromLineNode),
6824         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
6825         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
6826            unsigned char*
6827         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
6828           (newpCodeAsmDir): made ctype.h function calls safe
6829         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
6830           pic16_emitcode):  made lbp unsigned char*
6831         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
6832           (pic16_newpCodeAsmDir): made ctype.h function calls safe
6833         * src/xa51/gen.c (emitcode),
6834         * src/z80/gen.c (_emit2): made lbp unsigned char*
6835         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
6836            char*
6837
6838 2005-09-05 Raphael Neider <rneider AT web.de>
6839
6840         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
6841           access bank splitpoint
6842
6843 2005-09-05 Raphael Neider <rneider AT web.de>
6844
6845         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
6846
6847 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
6848
6849         * .version: changed to version 2.5.3
6850         * doc/sdccman.lyx: changed version to 2.5.3,
6851           documented --codeseg and --constseg and pragma codeseg and constseg,
6852           documented bit parameters (reentrant) and bit returning
6853         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
6854            currFunc->recvSize, but is this ok for all ports?
6855           (ast2iCode): result of ~ on unsigned char must be cast to int for
6856            bool to work
6857         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
6858           function pointers in bit space
6859         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
6860           (processFuncArgs): call port.reg_parm() with reentrancy info
6861         * src/port.h,
6862         * src/avr/main.c,
6863         * src/ds390/main.c,
6864         * src/hc08/main.c,
6865         * src/pic/main.c,
6866         * src/pic16/main.c,
6867         * src/xa51/main.c,
6868         * src/z80/main.c: port.reg_parm prototype extended with
6869           "bool reentrant" parameter
6870         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
6871           options.stackAuto for allocating bit register parameters
6872         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
6873           (genSend): set BitBankUsed if it is,
6874           (selectRegBank): factored out of genCall for use in genPcall,
6875           (genCall): removed redundant dtype assignmen, use selectRegBank,
6876           (genPcall): handle returning in Carry properly, save in F0 if needed,
6877           (genReceive): handle bit register parameters
6878         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
6879           (mcs51_assignRegisters): enable bit registers for all reentrant
6880            functions and don't set BitBankUsed unconditionally
6881         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
6882         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
6883         * support/regression/tests/funptrs.c: added tests for BOOL and for return
6884
6885 2005-08-27 Borut Razem <borut.razem AT siol.net>
6886
6887         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
6888         ppc-osx (Darwin) does not support -u option. It seems that it is
6889         supported only on Linux - GNU cp
6890
6891 2005-08-25 Borut Razem <borut.razem AT siol.net>
6892
6893         * sim/ucsim/gui.src/serio.src/Makefile.in,
6894           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
6895           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
6896           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
6897           install and strip, since the strip at /usr/ccs/bin should be used
6898           on solaris
6899
6900 2005-08-24 Borut Razem <borut.razem AT siol.net>
6901
6902         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
6903
6904 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
6905
6906         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
6907         ffffffffu
6908
6909 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
6910
6911         * as/mcs51/aslink.h: completed lkrloc.c prototypes
6912         * as/mcs51/lkmain.c (link_main): fixed warning
6913         * device/include/stdbool.h: ds390 has no advanced bit support yet
6914         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
6915         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
6916         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
6917           and updated their macros
6918         * src/SDCCval.c (constVal): updated comment for renamed b_long
6919
6920 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
6921
6922         * as/mcs51/asdata.c: changed ctype['['] to BINOP
6923         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
6924           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
6925           (oprio): set priority for '['
6926         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
6927            and adb_24_bit
6928         * as/mcs51/asm.h: added defines R_BIT and S_BIT
6929         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
6930         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
6931         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
6932           added overlayable BIT_BANK area
6933         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
6934           (summary2): explain 'T' in legenda
6935         * as/mcs51/lkrloc.c: replaced old K&R style,
6936           (relr): added R_BIT processing,
6937           (errmsg): added "Bit-addressable relocation error",
6938           (adb_bit): added for converting from byte- to bit-addressable space,
6939           (adb_24_bit): added for converting from byte- to bit-addressable space
6940         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
6941            used in reentrant functions now even as return value
6942         * device/lib/_gptrput.c (_gptrput): removed obsolete code
6943         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
6944           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
6945         * src/SDCCglobl.h: added indicator BitBankUsed
6946         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
6947            the bit registers b0-b7
6948         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
6949           (geniCodeCast): fixed bug 1263853,
6950           (geniCodeLogicAndOr): put result in bool or char,
6951           (geniCodeReceive): added parameter func for accessing the return type,
6952           (geniCodeFunctionBody): pass func to geniCodeReceive
6953         * src/SDCCmain.c: added indicator BitBankUsed
6954         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
6955         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
6956           (checkSClass): don't put automatic bool/bit on stack,
6957           (checkFunction): removed check on function cannot return bit
6958         * src/SDCCsymt.h: added newBoolLink prototype
6959         * src/mcs51/gen.c (rb1regs): added bit registers,
6960           (movc): created for assigning to carry,
6961           (pushReg, popReg): created for pushing registers,
6962           (sameRegs): check both AOP_REG and AOP_CRY types,
6963           (aopOp): handle bit registers,
6964           (aopPut): optimization no self-assign,
6965           (saveRegisters): push reg->base (bits) only once for bit registers,
6966            and use pushReg,
6967           (unsaveRegisters): pop reg->base only once and use popReg,
6968           (assignResultValue): added parameter func and return in carry for bits,
6969           (genIpush): optimization no reload in A if not changed,
6970           (genSend): bit parameters in reentrant functions are passed in bit
6971            registers by first assigning to bits in B, then save registers and
6972            copy B to bits,
6973           (genCall): handle returning in Carry properly, save it in F0 if needed,
6974           (genPcall): updated assignResultValue call, this is not safe yet for bit
6975            returning function !!!
6976           (genFunction): don't generate equ's for bit registers and use pushReg,
6977           (genEndFunction): take care of bit returning functions and use popReg,
6978           (genRet): return bit in Carry,
6979           (genIfx): optimize bit registers and other directly addressable bits,
6980           (genReceive): updated assignResultValue call
6981         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
6982           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
6983            registers when using stack-auto
6984         * src/mcs51/ralloc.c (_G): added allBitregs,
6985           (regs8051): added the bit registers,
6986           (createStackSpil): use macro IS_BIT,
6987           (getRegBit): added to allocate a bit register, else spill,
6988           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
6989           (updateRegUsage): factored out to ease stepping while debugging,
6990           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
6991            also allocate bit registers,
6992           (fillGaps): handle bit registers,
6993           (findAllBitregs): added to create bit vector with all bit registers,
6994           (mcs51_allBitregs): returns this bit vector,
6995           (mcs51_assignRegisters): when using stack-auto use bit registers for
6996            passing parameters and creating local variables
6997         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
6998
6999 2005-08-22 Borut Razem <borut.razem AT siol.net>
7000
7001         * device/lib/Makefile.in: replaced find option -or with -o
7002           to make it run on solaris
7003
7004 2005-08-22 Raphael Neider <rneider AT web.de>
7005
7006         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
7007           fixes #1265442 (crash on Solaris)
7008
7009 2005-08-20 Borut Razem <borut.razem AT siol.net>
7010
7011         * configure, configure.in: added tests for libsocket and libnsl libraries,
7012           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
7013           from support/regression/Makefile.in
7014         * support/regression/Makefile.in: added
7015         * device/lib/pic16/Makefile.common.in: force make to use bash shell
7016         * sim/ucsim/libtool: regenerated on sparc-solaris
7017         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
7018           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
7019           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
7020           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
7021           sparc-solaris, which doesn't use GNU ld linker
7022         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
7023         * as/Makefile: find on sparc-solaris does not support -maxdepth option
7024
7025 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
7026
7027         * src/mcs51/peeph.def: updated comments
7028
7029 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7030
7031         * device/lib/_gptrget.c,
7032         * device/lib/_gptrput.c: slightly shorter
7033         * doc/sdccman.lyx: incremented version
7034         * src/mcs51/peeph.def: moved peephole comments to the line of first
7035           change to better keep line correlation, reanimated 186.e
7036         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
7037
7038 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
7039
7040         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
7041           David Saxton with quotes around file name.
7042
7043 2005-08-15 Borut Razem <borut.razem AT siol.net>
7044
7045         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
7046           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
7047           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
7048           make tests run on x86_64 platform
7049
7050 2005-08-13 Raphael Neider <rneider AT web.de>
7051
7052         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
7053           as it might be executed DURING a build (parallel make is wonderful)
7054
7055 2005-08-13 Raphael Neider <rneider AT web.de>
7056
7057         * device/lib/Makefile.in (port-specific-objects-pic16):
7058           revert to cp $(PORT)/bin/*.* $(PORTDIR)
7059         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
7060           dependency
7061         * device/lib/pic16/Makefile.rules: build subdirs before creating
7062           the library, removed builddir rule, create $(builddir) early in
7063           recurse rule, use empty recurse rule for leaf directories
7064         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
7065           mkdir errors (race condition), removed duplicate suffix "hex"
7066           from clean rules
7067         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
7068         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
7069           prevents mkdir -p from aborting on Alpha
7070
7071 2005-08-12 Raphael Neider <rneider AT web.de>
7072
7073         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
7074           db-statements in order to allow for arrays of pointers in code
7075           sections to be placed without interspersed 0-padding, fixes
7076           bug #1256215
7077         * (emitStatistics): fixed division by zero for pic18f1220
7078         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
7079           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
7080         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
7081         * (pic16_pCodeConstString): keep track of already emitted string
7082           literals to prevent "duplicate definitions of symbol _str_NR"
7083         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
7084           debug message
7085         * device/lib/Makefile.in: ignore failing PIC16 library builds
7086         * device/lib/pic16/Makefile: do not build if gputils are missing
7087         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
7088
7089 2005-08-10 Raphael Neider <rneider AT web.de>
7090
7091         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
7092           my last commit)
7093
7094 2005-08-10 Raphael Neider <rneider AT web.de>
7095
7096         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
7097           Rokas' patch to add the new fixed point type "__fixed16x16"
7098         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
7099           functions for __fixed16x16 arithmetics
7100         * device/lib/pic16: reimplemented the build system to support
7101           a separate build directory, better handling of libio (create
7102           the library in a separate subdir for each architecture) and
7103           easier configuration (centralized in Makefile.common)
7104
7105 2005-08-07 Raphael Neider <rneider AT web.de>
7106
7107         * src/pic16/gen.c (genrshTwo): fixed sign extension
7108         * src/pic16/device.c: added pic18f2320, 4220 and 4320
7109         * device/include/pic16/pic18f2220.h: changed some bit definitions,
7110           added T0CONbits
7111         * device/include/pic16/pic18f4220.h: NEW, header for
7112           pic18f4220 and pic18f4320
7113         * device/include/pic16/pic18fregs.h: added new devices,
7114           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
7115         * device/include/pic16/signal.h: resolved name clashes
7116           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
7117           to also allow testing for interrupt enable bits, added
7118           comments on how to use the macros
7119         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
7120         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
7121           register definitions for the devices
7122         * device/lib/pic16/pics.all: added new devices
7123         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
7124           allocated memory
7125         * device/lib/pic16/libc/stdlib/memfree: do not count
7126           the block header as free memory
7127         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
7128           simplified and added missing end-of-blocklist-marker
7129           (reported by Peter Onion, fixes #1252814)
7130         * (_mergeHeapBlock): fixed loop condition
7131         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
7132           len==0, restructured code
7133         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
7134           up a bit, reduced bitfield accesses, prevent endless loops
7135           in case of heap corruption
7136         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
7137           "unreferenced arguments/must return a value" warnings
7138         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
7139           replaced BAUDREG with SPBRG
7140         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
7141           device/lib/pic16/debug/gstack/gstack.c: replaced
7142           _naked, _asm, _endasm with __naked, __asm, __endasm
7143
7144 2005-08-05 Raphael Neider <rneider AT web.de>
7145
7146         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
7147           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
7148
7149 2005-08-05 Borut Razem <borut.razem AT siol.net>
7150
7151         * device/lib/Makefile.in: added missing ';'
7152         * configure: removed ^M characters
7153
7154 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7155
7156         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
7157           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
7158           License
7159
7160 2005-08-04 Borut Razem <borut.razem AT siol.net>
7161
7162         * configure.in: pic16 libraries build 2nd try - enable running
7163           configure in device/lib/pic16
7164         * configure: regenerated from configure.in
7165         * device/lib/Makefile.in: create $(PORT)/bin directory
7166
7167 2005-08-03 Raphael Neider <rneider AT web.de>
7168
7169         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
7170           to get/set values via pointers
7171         * (genUnpackBits,genPackBits): changed detection of
7172           ptr->bitfield vs. sym.bitfield, fixed access via generic
7173           pointers, removed dead (wrong) code for multibyte bitfields
7174         * (genNearPointerGet, genGenPointerGet): removed useless code,
7175           fixed bitfield detection, fixes #1250594
7176         * (genNearPointerSet): removed useless code
7177         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
7178           and introduced macro pic16_emitpcode that conditionally emits
7179           the origin of the following pCode (useful for debugging SDCC)
7180         * src/pic16/pcode.c: changed (and disabled) some debug outputs
7181         * (createDefmap): fixed handling of LFSR for --optimize-df
7182
7183 2005-08-02 Borut Razem <borut.razem AT siol.net>
7184
7185         * device/lib/Makefile.in: pic16 libraries build enabled since
7186           gputils-0.13.2 are now localy installed at sourceforge's compile farm
7187
7188 2005-08-02 Raphael Neider <rneider AT web.de>
7189
7190         * src/pic16/gen.c (genPackBits): removed deprecated warning
7191         * (genGenPointerSet): fixed bitfield detection
7192
7193 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7194
7195         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
7196
7197 2005-07-31 Raphael Neider <rneider AT web.de>
7198
7199         * device/lib/pic16/libdev/pic18f458.c,
7200           device/include/pic16/pic18f458.h: added missing T0CONbits
7201
7202 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
7203
7204         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
7205
7206 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
7207
7208         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
7209
7210 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7211
7212         * device/include/mcs51/at89c51ed2.h: added.
7213
7214 2005-07-23 Raphael Neider <rneider AT web.de>
7215
7216         * src/pic/gen.h: added emitpcode macro for debugging
7217         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
7218           and replace by macro adding debug information on demand
7219         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
7220         * (gencjne): tried to fix; replaced with correct (slower) code
7221         * (gen{Unp,P}ackBits): fixed single bit access
7222         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
7223         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
7224           previous instruction
7225         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
7226           register has to be handled with care (forbidding movement
7227           of assignments/uses, removing assignments completely, ...)
7228         * (pCodeOptime2pCodes): make use of regIsSpecial
7229         * added lots of debugging output (commented out)
7230         * src/pic/rallloc.c (deassignLRs): prevent operand registers
7231           from being reused as result UNLESS it is known to work
7232
7233 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
7234
7235         * support/Util/dbuf.h: include <stddef.h> for size_t
7236         * .version: changed to version 2.5.2
7237
7238 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7239
7240         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
7241
7242 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7243
7244         * src/hc08/gen.c (genMinus): fixed bug #1241835,
7245           (genModOneByte): removed needless psha/pula
7246
7247 2005-07-22 Raphael Neider <rneider AT web.de>
7248
7249         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
7250           have PIC14 handled like PIC16, fixes broken pic14 linker calls
7251         * src/pic/gen.c (resolveIfx): do not "invent" labels
7252         * (genSkipc): changed to positive logic
7253         * (genSkipCond): removed as no longer needed
7254         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
7255           backport from PIC16
7256         * (genLeftShift): check operands are in different registers
7257         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
7258           INCF does not update CARRY...
7259         * src/pic/main.c: fixed _linkCmd
7260         * src/pic/pcode.c (unlinkpCode): added inactive code
7261         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
7262           alive (do not assign result and operand overlapping registers)
7263
7264 2005-07-22 Raphael Neider <rneider AT web.de>
7265
7266         * src/pic/device.c (dump_sfr): replaced register declaration with
7267           call to emitSymbolToFile() to avoid duplicate symbols
7268         * (assignRelocatableRegisters): do not declare external symbols
7269         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
7270           right (take size of type, not etype)
7271         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
7272         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
7273         * (packRegsForAccUse): disabled assignment of WREG as
7274           the result reg to prevent occurence of just fixed #1235003,
7275           fixes #1242954
7276         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
7277           symbols (avoids duplicate symbols in .asm file)
7278         * (pic14emitRegularMap): use emitSymbolToFile()
7279         * src/pic/gen.c (aopOp): fixed spillLocation handling
7280         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
7281         * (genDataPointerSet): removed unneccessary variables/output
7282
7283 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
7284
7285         * as/mcs51/lkarea.c: enlarged codemap for banked memory
7286         * device/lib/mcs51/crtbank.asm: added # to 0x0F
7287
7288 2005-07-21 Raphael Neider <rneider AT web.de>
7289
7290         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
7291           architecture cannot handle them efficiently, fixes bug #1235003
7292         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
7293           check for empty sets before using them (fixes bug #1232190)
7294
7295 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
7296
7297         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
7298           (lnksect2): generate warnings for memory overlap
7299         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
7300           constseg to set the name of these segments so you can instruct the linker
7301           to place them in banks
7302         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
7303         * src/SDCCglobl.h: added MODEL_HUGE to enum,
7304           added code_seg and const_seg to options
7305         * src/SDCCglue.c (emitMaps): use options.const_seg,
7306           (createInterruptVect): put interrupt vectors in segment HOME,
7307           (glue): put HOME before static segment and put the main glue in HOME,
7308           (glue): use options.code_seg
7309         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
7310         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
7311           these segments so you can instruct the linker to place them in banks
7312           (linkEdit): use code_loc for HOME segment which should be the first
7313           segment in code memory now
7314         * src/SDCCmem.c: fixed more stuff like bug 1238386
7315         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
7316           (changePointer): don't change function pointers to code pointers for
7317           banked functions,
7318           (compareType): added exceptional check for banked function pointers
7319         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
7320         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
7321           after static in code memory
7322         * src/mcs51/gen.c: added aopLiteralLong prototype,
7323           (aopForSym): use getSize for functions,
7324           (genCall): generate banked calls over one trampoline __sdcc_banked_call
7325           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
7326           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
7327           the segment,
7328           (genPcall): use call for literal function pointers and generate banked
7329           calls over the one trampoline so there's only one place for the user to
7330           modify according to his/hers hardware,
7331           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
7332           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
7333         * src/mcs51/main.c: added keyword banked,
7334           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
7335         * support/Util/SDCCerr.c,
7336         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
7337           needed for passing the bank and address to the trampoline
7338         * device/lib/mcs51/crtbank.asm: added for bankswitching
7339         * device/lib/mcs51/Makefile: added crtbank
7340
7341 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7342
7343         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
7344           for fields at offset 0 of a struct or union as reported
7345           on 2005-07-07 in the developer mailing list.
7346
7347 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
7348
7349         * src/SDCCmem.c: fixed bug 1238386
7350
7351 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7352
7353         * src/mcs51/peeph.def: added labelrefcounting for peepholes
7354           (patch #1144962), added peephole 300, enabled 259.x
7355         * doc/sdccman.lyx: removed screenshot and provided link instead
7356
7357 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7358
7359         * doc/sdccman.lyx: added section about debugging with ddd
7360         * doc/figures/ddd_example.eps: screenshot of debugging session
7361
7362 2005-07-04 Raphael Neider <rneider AT web.de>
7363
7364         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
7365           like CODE pointers, fixes #1115683
7366         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
7367           call, fixes bugs #1232211, #1228110,
7368           fixed wrong casts to pCodeFlow from pCodeInstructions
7369
7370 2005-07-04 Raphael Neider <rneider AT web.de>
7371
7372         * src/pic/gen.c (popGet): changed assert to allow for
7373           bit operands
7374         * (popGetAddr): changed signature to provide
7375           an additional index, patched all call sites
7376         * (genCmpEq): handle literal-like operands correctly
7377         * (genAddrOf): added sanity checks on __code/__data pointers
7378         * (genAssign): added handling of symbols from __code section
7379         * (gencjne): do not generate code for comparisons whose result
7380           is neither stored nor used, fixes bug #1171114
7381         * (AccLsh, AccRsh): operate on operand instead of WREG
7382         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
7383           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
7384           by known count
7385         * rewrote complete shift-by-literal logic, commented unused
7386           functions out
7387         * (genConstPointerGet): get multiple bytes (if result size > 1),
7388           fixed handling of non-immediate addresses
7389         * (genPointerGet): handle CODE pointers like CONST pointers
7390         * (genpic14Code): insert C-SRC lines as Cource-pCodes
7391         * ({aop,op}_isLitLike): NEW, single place to decide whether an
7392           operand is to be treated as a literal or not
7393         * (mov2w,genPcall,genCmpEq),
7394           src/pic/genarith.c: use aop_isLitLike() to decide between
7395           literal/register contents
7396         * (addSign): added missing offset
7397         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
7398           only emit comment in debug-mode,
7399           use {aop,op}_isLitLike throughout the file
7400         * src/pic/glue.c: fix initializers for pointers (work in progress)
7401         * src/pic/pcode.c (get_op): honor index on _const symbols
7402         * ({reset,dump}pCodeStatistics): NEW, estimate code size
7403         * (dumppBlock): added pCode size estimation
7404         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
7405           check for IS_SYMOP before OP_SYMBOL'ing
7406         * fixed indentation, compacted switch-statements
7407         * (allocReg): find free register and allocate it instead of
7408           allocating new registers all the time
7409         * (deassignLRs): prevent POINTER_GET's from being assigned the same
7410           registers as its operands (necessary only for multibyte GETs)
7411
7412 2005-07-01 Raphael Neider <rneider AT web.de>
7413
7414         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
7415           debugging .asm-output macros FENTRY + FEXIT
7416         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
7417           way... I wonder...
7418         * (emitpComment): NEW, printf to pCode
7419         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
7420           offset handling
7421         * (popGetAddr): NEW, variant of popGet to access an immediates
7422           high(er) bytes instead of the n'th byte of memory they reference,
7423           replaced popGet with popGetAddr where neccessary
7424         * (genDataPointerGet): reactivated and fixed implementation
7425         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
7426           accesses
7427         * (genDataPointerSet): fixed multibyte assignments
7428         * (genpic14Code): fixed --i-code-in-asm handling
7429         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
7430         * (genPlus): fixed index-out-of-bounds error
7431         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
7432         * src/pic/ralloc.c: added debugging output macro FENTRY2
7433         * (spillThis): fixed indentation, enbraced for-body for clarity
7434         * (rematStr): commented out as now unused
7435         * (regTypeNum): commented out special spill case (overwrites
7436           arbitrary values)
7437         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
7438
7439 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
7440
7441         * doc/sdccman.lyx: documented sfr16/sfr32,
7442           added example for using storage class with function pointers
7443         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
7444
7445 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
7446
7447         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
7448         * device/lib/_itoa.c,
7449         * device/lib/_ltoa.c: optimized codesize
7450         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
7451           but don't know how to suppress the double warning.
7452         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
7453         * support/Util/SDCCerr.c,
7454         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
7455
7456 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
7457
7458         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
7459           fixed old K&R prototypes
7460         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
7461         * device/lib/_gptrget.c,
7462         * device/lib/_gptrgetc.c,
7463         * device/lib/_gptrput.c: changed versions for new memory indicator values,
7464           also new versions for small generic pointers and banked generic pointers
7465         * src/port.h: added const_name
7466         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
7467         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
7468         * src/SDCCcse.c (findPrevIc): check all associative operators
7469         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
7470         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
7471         * src/SDCCmem.c: updated comments,
7472           set far-space to 0 for pdata, results in optimized code
7473         * src/SDCCmem.h: added macro CONST_NAME
7474         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
7475           moving the info into the highest bits, see also gptrget/gptrput
7476         * src/src.dsp: added sdcc.ico to project files
7477         * src/avr/gen.c (genCast): fixed bug 0x%d
7478         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
7479         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
7480           relation between ptr_type and DCL_TYPE,
7481           (genCast): fixed bug 0x%d
7482         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
7483           (CODE)" for const_name
7484         * src/hc08/gen.c (genCast): fixed bug 0x%d
7485         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
7486           (hc08_port): added "CONST (CODE)" for const_name
7487         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
7488           (aopForRemat, adjustArithmeticResult): disconnected direct relation
7489           between ptr_type and DCL_TYPE,
7490           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
7491           operand* and took AOP() inside function so sfr-ness can be checked,
7492           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
7493           new prototype,
7494           (genFunction, genEndFunction): optimized stack setup,
7495           (genMinus): optimized for literals with ending zeroes (in bytes),
7496           (genCast): fixed bug 0x%d
7497         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
7498           (mcs51_port): added "CONST (CODE)" for const_name
7499         * src/mcs51/peeph.def: made rule 226 more generic
7500         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
7501         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
7502         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
7503         * src/z80/main.c (z80_port): added NULL for const_name,
7504           (gbz80_port): added NULL for const_name
7505         * support/regression/tests/bug663539.c,
7506         * support/regression/tests/sfr16.c: new tests
7507
7508 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7509
7510         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
7511
7512 2005-06-24 Raphael Neider <rneider AT web.de>
7513
7514         * device/lib/pic16/libdev/pic18f[68][567]20.c:
7515           corrected typos...
7516         * device/include/pic16/signal.h: added USBIF
7517           and SIG_USB
7518
7519 2005-06-24 Raphael Neider <rneider AT web.de>
7520
7521         * device/lib/pic16/libdev/pic18f2455.c,
7522           device/include/pic16/pic18f2455.h: NEW
7523         * device/include/pic16/pic18fregs.h,
7524           device/lib/pic16/pics.all,
7525           src/pic16/device.c: added 18f2455
7526         * device/lib/pic16/libdev/pic18f[68][567]20.c,
7527           device/include/pic16/{pic18f[68][567].h,usart.h}:
7528           replaced MULTIPLE_USARTS define with more relaible
7529           compatibility sfrs (for USART access)
7530
7531 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
7532
7533         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
7534           and the output asm file line is printed on two lines.
7535
7536 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7537
7538         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
7539           BGT, BLE, BHI, and BLS instructions
7540         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
7541           genCmpEq): removed
7542         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
7543           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
7544           fixes bug #1216342
7545         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
7546
7547 2005-06-15 Raphael Neider <rneider AT web.de>
7548
7549         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
7550         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
7551         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
7552           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
7553           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
7554
7555 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7556
7557         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
7558           Marcel Telka in bug #1215704
7559
7560 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
7561
7562         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
7563           located in shared memory bank.
7564
7565 2005-05-31 Raphael Neider <rneider AT web.de>
7566
7567         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
7568           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
7569           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
7570
7571 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
7572
7573         * device/lib/_strncpy.c: fixed the fix
7574
7575 2005-05-26 Raphael Neider <rneider AT web.de>
7576
7577         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
7578           initializers with \0, bug #1208187
7579         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
7580           intializers with \0, bug #1208187
7581
7582 2005-05-26 Raphael Neider <rneider AT web.de>
7583
7584         * src/pic16/glue.c (pic16_printIvalChar): fixed string
7585           initializers with \0, bug #1208187
7586         * src/pic16/main.c (_process_pragma): added sanity checks
7587           for stack position and size, emit warnings when appropriate
7588
7589 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
7590
7591         * device/lib/_strncpy.c: fixed not filling with \0
7592
7593 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7594
7595         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
7596           createFunction),
7597         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
7598           compound_statement),
7599         * src/SDCCsymt.h,
7600         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
7601
7602 2005-05-24 Raphael Neider <rneider AT web.de>
7603
7604         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
7605
7606 2005-05-24 Raphael Neider <rneider AT web.de>
7607
7608         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
7609           TRISE definitions, closes bug #1162453
7610
7611 2005-05-22 Raphael Neider <rneider AT web.de>
7612
7613         * src/pic16/main.c (_process_pragma): check for missing
7614           arguments to pragmas code and udata
7615         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
7616           consistency fixes to match other headers (thanks to Jim Paris)
7617         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
7618
7619 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
7620
7621         * src/SDCCicode.c (isOperandEqual): fixed missing ;
7622
7623 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
7624
7625         * support/regression/tests/bug1198642.c: new test
7626         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
7627         * src/SDCCcse.c (findPrevIc): added comment, please have a look
7628         * support/scripts/resource.h,
7629         * support/scripts/resource.rc,
7630         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
7631         * support/scripts/sdcc.ico: added 32x32 icon
7632
7633 2005-05-18 Raphael Neider <rneider AT web.de>
7634
7635         * device/lib/pic16/libdev/pic18f*.c,
7636         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
7637           keywords to "__sfr" and "__at (X)"
7638         * device/include/pic16/pic18fregs.h: added pic18f4520
7639         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
7640           #1203088 (MPLAB compatibility)
7641
7642 2005-05-17 Raphael Neider <rneider AT web.de>
7643
7644         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
7645         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
7646         * device/lib/pic16/pics.all: added new devices
7647         * src/pic16/device.c: added support for pic18f4520
7648
7649 2005-05-16 Raphael Neider <rneider AT web.de>
7650         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
7651         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
7652         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
7653           convenience function for bit access
7654
7655 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
7656
7657         * device/lib/printf_large.c: fixed bug 1193299
7658         * support/regression/tests/bug1057979.c: added test %3.3s
7659
7660 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7661
7662         * device/include/mcs51/8051.h,
7663         * device/include/mcs51/8052.h: made parseable with lint
7664         * device/include/mcs51/lint.h: added include file for (sp)lint
7665         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
7666         * doc/cdbfileformat.lyx,
7667         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
7668
7669 2005-05-14 Raphael Neider <rneider AT web.de>
7670
7671         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
7672         * device/lib/pic16/libc/stdlib/itoa.c (new)
7673         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
7674         * device/lib/pic16/libio/Makefile: exclude subdir according to
7675           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
7676         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
7677         * src/pic16/gen.c (genFunction): prevent annoying warning
7678         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
7679           nameclashes on BeOS
7680         * support/cpp2/cppmain.c (cpp_output_string): new
7681         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
7682           fixes bug 1116802
7683
7684 2005-05-13 Borut Razem <borut.razem AT siol.net>
7685
7686         * src/SDCCmain.c (linkEdit): fixed bug 1195202
7687
7688 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7689
7690         * .version: changed to version 2.5.1; back to bleeding edge development
7691
7692 2005-05-11 Borut Razem <borut.razem AT siol.net>
7693
7694         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
7695           generate PDF version 1.3 documents
7696
7697 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7698
7699         * .version: changed to version 2.5.0
7700
7701 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7702
7703         * doc/sdccman.lyx: updated weblinks, index and smaller updates
7704
7705 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7706
7707         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
7708         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
7709         well as many smaller updates.
7710         * .version: changed to version 2.5.0-pre1
7711
7712 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7713
7714         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
7715
7716 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
7717
7718         * support/regression/tests/bug1185672.c: added
7719         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
7720           bug 1185672
7721         * src/mcs51/gen.c (genCall): added comments, made it look safer
7722         * src/mcs51/gen.c (genEndFunction): simplified
7723
7724 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
7725
7726         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
7727
7728 2005-04-14 Borut Razem <borut.razem AT siol.net>
7729
7730         * fixed bug 1045046 - SIGSEGV with really simple code?:
7731           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
7732           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
7733
7734 2005-04-14 Borut Razem <borut.razem AT siol.net>
7735
7736         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
7737           src/pic16/device.h: temporarily disabled experimental #inline pragma
7738           for 2.5.0 release
7739
7740 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
7741
7742         * device/include/z80/stdio.h,
7743         * device/include/z80/string.h: removed these highly incomplete files so
7744           SDCC can use the default ones in device/include/
7745
7746 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7747
7748         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
7749         gcc warning.
7750         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
7751         fix sdcpp warnings.
7752
7753 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
7754
7755         * device/include/malloc.h: removed redundant __reentrant prototypes
7756         * device/lib/_mullong.c: added working xstack variant in asm (C version
7757           doesn't pass regression tests)
7758         * device/lib/bpx.c: used __data and made bpx char for mcs51
7759         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
7760           (createFunction): fixed bug with xstackPtr
7761         * src/SDCCcse.c: corrected comments
7762         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
7763           (killDeadCode, eBBlockFromiCode): removed unused code
7764         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
7765           corrected comments
7766         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
7767           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
7768           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
7769           (genModOneByte): fixed warning in MSVC
7770         * src/mcs51/main.c (): added comments
7771         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
7772
7773 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
7774
7775         * src/SDCCmain.c (linkEdit): oops, changed one line too many
7776
7777 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
7778
7779         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
7780
7781 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
7782
7783         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
7784         characters arrays of larger size than the declared one.
7785
7786 2005-04-10 Borut Razem <borut.razem AT siol.net>
7787
7788         * src/pic/gen.c (genInline),
7789           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
7790           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
7791           (findNextInstruction), (findPrevInstruction),
7792           (findInstructionUsingLabel),
7793           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
7794         * src/pic/pcode.c (findLabel): added missing '\n'
7795         * src/src.dsp: added SDCCdwarf2.c to the project
7796
7797 2005-04-09 Borut Razem <borut.razem AT siol.net>
7798
7799         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
7800
7801 2005-04-08 Raphael Neider <rneider AT web.de>
7802
7803         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
7804           into the chain after a given one) and mergeDefmapSymbols (combine
7805           defmap entries for each symbol per pcode)
7806         * (createDefmap): have defmap entries merged in the end
7807         * (defmapReplaceSymRef): split defmap entries covering two accesses to
7808           a symbol before replacing one access type's symbol, merge symbols in
7809           the end (replacement symbol might already have an entry)
7810         * (assignValnums): keep reference to written WREG intact
7811
7812 2005-04-08 Raphael Neider <rneider AT web.de>
7813
7814         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
7815           Alpha)
7816
7817 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
7818
7819         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
7820         bytes
7821
7822 2005-04-07 Raphael Neider <rneider AT web.de>
7823
7824         * device/include/pic16/usart.h: added compatibility defines for
7825           devices with more than one USART
7826         * device/include/pic16/pic18f[68][567]20.h: activated above defines
7827
7828 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7829
7830         * device/lib/Makefile.in: updated for port specific include
7831
7832 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7833
7834         * support/regression/ports/mcs51/spec.mk: added mcs51 include
7835
7836 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7837
7838         * device/include/8051.h,
7839         * device/include/8052.h,
7840         * device/include/at89S8252.h,
7841         * device/include/at89c55.h,
7842         * device/include/at89x051.h,
7843         * device/include/at89x51.h,
7844         * device/include/at89x52.h,
7845         * device/include/mcs51reg.h,
7846         * device/include/reg51.h,
7847         * device/include/reg764.h,
7848         * device/include/regc515c.h,
7849         * device/include/sab80515.h: (re)moved these 12 files
7850         * device/include/mcs51/8051.h,
7851         * device/include/mcs51/8052.h,
7852         * device/include/mcs51/at89S8252.h,
7853         * device/include/mcs51/at89c55.h,
7854         * device/include/mcs51/at89x051.h,
7855         * device/include/mcs51/at89x51.h,
7856         * device/include/mcs51/at89x52.h,
7857         * device/include/mcs51/mcs51reg.h,
7858         * device/include/mcs51/reg51.h,
7859         * device/include/mcs51/reg764.h,
7860         * device/include/mcs51/regc515c.h,
7861         * device/include/mcs51/sab80515.h: and added them here
7862
7863 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
7864
7865         * device/include/stdarg.h: changed SDCC specific keywords to double
7866           underlined form.
7867         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
7868           mcs51 and ds390.
7869         * device/include/hc08/mc68hc908gp32.h,
7870         * device/include/hc08/mc68hc908jb8.h,
7871         * device/include/hc08/mc68hc908jkjl.h,
7872         * device/include/hc08/mc68hc908qy.h: fixed comments
7873         * device/include/mcs51/README: updated
7874         * device/include/mcs51/c8051f120.h: added PINRSF
7875         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
7876         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
7877           amidst code. Also inline is not supported.
7878
7879 2005-04-06 Raphael Neider <rneider AT web.de>
7880
7881         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
7882         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
7883           callers stack/frame pointers
7884
7885 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
7886
7887         * device/include/pic16/usart.h: added, missing in previous commit,
7888         * device/include/pic16/adc.h: fixed typo,
7889         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
7890         commit,
7891         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
7892         <p18fxxx.inc>
7893         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
7894         uninitialized because a bug appears with gplink
7895         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
7896         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
7897         complains for unrecognised option
7898
7899 2005-04-05 Raphael Neider <rneider AT web.de>
7900
7901         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
7902           structs as well (using memcpy)
7903         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
7904           on ISRs (GOTO has no label)
7905         * src/pic16/device.h: added OF_OPTIMIZE_DF
7906         * src/pic16/main.c: added compiler switch --optimize-df to enable the
7907           new data flow analysis/optimization
7908         * src/pic16/pcode.c: added (prototypes for and implementation of)
7909           dataflow analysis functions, fixed pCodeInstructions' inCond and
7910           outCond values, made RCALL a branch instruction
7911         * (pic16_unlinkpCode): keep C line if possible
7912         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
7913           C line moved if possible
7914         * (pic16_getRegFrompCodeOp): NEW, improved version of...
7915         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
7916           to use new pic16_getRegFrompCodeOp (works for more SFRs)
7917         * (pic16_BuildFlow): fixed skip instructions with label (did not start
7918           new flow)
7919         * (pic16_getJumptabpCode): NEW, needed in...
7920         * (LinkFlow): fixed handling of jumptables, calls and conditional
7921           branches
7922         * (pic16_InsertCommentAfter): NEW
7923         * (pic16_pCodeReplace): made verbose and flow preserving
7924         * (AnalyzeFlow): added call to data flow analysis
7925         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
7926         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
7927         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
7928
7929 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7930
7931         * src/SDCCast.c (decorateType): fixed bug #1105626
7932
7933 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
7934
7935         * device/include/asm/pic16/features.h,
7936         * pic18f*.h headers,
7937         * device/include/pic16/adc.h,
7938         * device/include/pic16/delay.h,
7939         * device/include/pic16/i2c.h,
7940         * device/include/pic16/malloc.h,
7941         * device/include/pic16/stdio.h,
7942         * device/include/pic16/stdlib.h,
7943         * device/include/pic16/string.h,
7944         * device/lib/pic16/libc/stdio/printf_tiny.c,
7945         * device/lib/pic16/libc/stdio/printf_small.c,
7946         * device/lib/pic16/libc/stdio/strmgpsim.c,
7947         * device/lib/pic16/libc/stdio/strmmssp.c,
7948         * device/lib/pic16/libc/stdio/strmusart.c,
7949         * device/lib/pic16/libc/stdio/vfprintf.c,
7950         * device/lib/pic16/libc/stdlib/ltoa.c,
7951         * device/lib/pic16/libc/stdlib/putchar.c,
7952         * device/lib/pic16/libc/stdlib/x_ftoa.c,
7953         * device/lib/pic16/libc/stdlib/memchrpgm.c,
7954         * device/lib/pic16/libc/stdlib/memchrram.c,
7955         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
7956         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
7957         * device/lib/pic16/libio/adc/adcbusy.c,
7958         * device/lib/pic16/libio/adc/adcread.c,
7959         * device/lib/pic16/libio/adc/adcsetch.c,
7960         * device/lib/pic16/libio/usart/ubaud.c,
7961         * device/lib/pic16/libio/usart/ubusy.c,
7962         * device/lib/pic16/libio/usart/udrdy.c,
7963         * device/lib/pic16/libio/usart/uopen.c,
7964         * device/lib/pic16/libio/usart/uputc.c,
7965         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
7966         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
7967         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
7968         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
7969         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
7970         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
7971         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
7972         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
7973         specific keywords to double underlined form,
7974         * device/lib/pic16/libc/Makefile.rules,
7975         * device/lib/pic16/libsdcc/Makefile.rules,
7976         * device/lib/pic16/libm/Makefile,
7977         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
7978         to compile with C standard set in Makefile.common
7979         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
7980         rand.c and crc.c in compilation process,
7981         * device/lib/pic16/libsdcc/int/divuint.c,
7982         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
7983         `c' from signed to unsigned,
7984         * device/lib/pic16/startup/crt0.c,
7985         * device/lib/pic16/startup/crt0i.c,
7986         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
7987         keywords to double underlined form, bug fixes in _do_cinit function
7988         which prevented the correct initialization of the .idata segment,
7989         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
7990         core to enter a infinite loop
7991         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
7992
7993 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7994
7995         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
7996
7997 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7998
7999         * device/include/Makefile.in: add support for hc08 subdirectory
8000         * device/include/hc08/: new subdirectory
8001         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
8002         Lucas Loizaga, thanks!
8003         * device/include/hc08/mc68hc908qy.h,
8004         * device/include/hc08/mc68hc908gp32.h,
8005         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
8006         their own directory. Changed internal macro names to use the compiler
8007         reserved namespace. Changed SDCC specific keywords to double
8008         underlined form.
8009         * device/include/math.h,
8010         * device/include/malloc.h,
8011         * device/include/stdarg.h,
8012         * device/include/stdbool.h
8013         * device/include/string.h,
8014         * device/include/tinibios.h,
8015         * device/include/ds400rom.h,
8016         * device/include/8051.h,
8017         * device/include/8052.h,
8018         * device/include/80c51xa.h,
8019         * device/include/at89c55.h,
8020         * device/include/at89S8252.h,
8021         * device/include/at89x51.h,
8022         * device/include/at89x52.h,
8023         * device/include/ds80c390.h,
8024         * device/include/reg764.h,
8025         * device/include/regc515c.h,
8026         * device/include/sab80515.h,
8027         * device/include/mcs51/c8051f000.h,
8028         * device/include/mcs51/c8051f018.h,
8029         * device/include/mcs51/c8051f020.h,
8030         * device/include/mcs51/c8051f040.h,
8031         * device/include/mcs51/c8051f060.h,
8032         * device/include/mcs51/c8051f120.h,
8033         * device/include/mcs51/c8051f300.h,
8034         * device/include/mcs51/c8051f310.h,
8035         * device/include/mcs51/c8051f320.h,
8036         * device/include/mcs51/c8051f330.h,
8037         * device/include/mcs51/c8051f350.h,
8038         * device/include/z180.h: Changed SDCC specific keywords to double
8039         underlined form.
8040
8041 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
8042
8043         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
8044         18F4455,
8045         * (pic16_assignConfigWordValue): disable testing of configuration
8046         register value with config mask,
8047         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
8048         function with port->fun_prefix,
8049         * (genFunction): when generating a naked interrupt function never
8050         create an absolute segment placed in interrupt vector address, place
8051         the actual interrupt function at IVA instead, when an interrupt
8052         function is generated with unspecified interrupt then do not create
8053         the absolute section,
8054         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
8055         code for generating a call to generic pointer get/put function with
8056         a call to function pic16_callGenericPointer(),
8057         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
8058         the call to the generic pointer get/put functions with prefixing the
8059         function name with port->fun_prefix,
8060         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
8061         * src/pic16/main.c (_process_pragma): prefix function with
8062         port->fun_prefix,
8063         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
8064         calling assembler, old 18Fxxxx macro is deprecated,
8065         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
8066         PC_ASMDIR in while condition,
8067         * (findInstruction): add PC_ASMDIR in while condition,
8068         * (buildCallTree): prefix main with port->fun_prefix,
8069         * (pic16_pCode2str): fixed bug that didn't emit the memory access
8070         identifier for variable with banked access in instructions BTFSS,
8071         BTFSC, BCF, BSF, BTG
8072         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
8073         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
8074         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
8075         perform optimization when enviroment variable NO_REG_OPT is set,
8076         * (insideLRBlock): NEW, return 1 if register is inside an
8077         INF_LOCALREGS block,
8078         * (RemoveRegFromLRBlock): remove a register that is completely
8079         eliminated by register optimization, but it is still left in local
8080         register store/restore in/from stack block,
8081         * (Remove2pcodes): after removing register, check to see if it
8082         should be removed from local register store/restore in/from stack
8083         block,
8084         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
8085         DUMMY_READ_VOLATILE,
8086
8087         * device/include/pic16/adc.h: minor prototype modifications and
8088         update,
8089         * device/include/pic16/malloc.h: added GPL notice various
8090         modifications,
8091         * device/include/pic16/stdint.h: NEW, standard header for ints
8092         * device/include/pic16/delay.h: NEW, header for delay functions,
8093         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
8094         delay1mtcy,
8095         * device/include/pic16/signal.h: NEW, header providing helper macros
8096         for implementing signal handlers,
8097         * device/include/pic16/stdio.h: added prototypes for functions,
8098         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
8099         prototypes for stdin and stdout, added macro PUTCHAR to
8100         automatically implement putchar function prototype,
8101         * device/include/pic16/usart.h: modified and updated USART library,
8102         * device/lib/pic16/libio/adc/,
8103         * device/lib/pic16/libio/i2c: some modifications to improve library
8104         performance,
8105         * device/lib/pic16/libc/stdio/: modifications for the new printf*
8106         family of functions,
8107         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
8108         family of functions and other sources,
8109         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
8110         of the PIC18Fxx[28] devices,
8111         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
8112         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
8113         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
8114         _do_cinit function, because the previous failed when local variables
8115         where not placed in the same memory bank,
8116         * device/lib/pic16/libsdcc/char/: various modifications to improve
8117         library performance,
8118         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
8119         information on the new functions of the c library and more...
8120
8121 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8122
8123         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
8124
8125 2005-03-26 Raphael Neider <rneider AT web.de>
8126
8127         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
8128           if condition == CARRY)
8129         * (genCmp): adapted to new genSkipc semantics
8130         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
8131           on rIfx (genCmp was broken)
8132
8133 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8134
8135         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
8136         * src/z80/main.c (_keywords[]),
8137         * src/SDCCglobal.h (struct options),
8138         * src/SDCC.y,
8139         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
8140         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
8141         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
8142         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
8143         always available in leading double underscore form. The C99 support is
8144         mostly missing, but it's a start.
8145         * support/regression/tests/bug-227710.c: fixed nonconforming use of
8146         reserved identifier "__data".
8147
8148 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
8149
8150         * src/mcs51/peeph.def: fixed bug 1170013
8151
8152 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
8153
8154         * device/include/mcs51reg.h: fixed bug 842007
8155
8156 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8157
8158         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
8159         last time.
8160
8161 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8162
8163         * src/port.h (struct PORT),
8164         * src/avr/ralloc.c (avr_assignRegisters),
8165         * src/avr/main.c,
8166         * src/ds390/ralloc.c (ds390_assignRegisters),
8167         * src/ds390/main.c,
8168         * src/hc08/ralloc.c (hc08_assignRegisters),
8169         * src/hc08/main.c,
8170         * src/mcs51/ralloc.c (mcs51_assignRegisters),
8171         * src/mcs51/main.c,
8172         * src/pic/ralloc.c (pic14_assignRegisters),
8173         * src/pic/main.c,
8174         * src/pic16/ralloc.c (pic16_assignRegisters),
8175         * src/pic16/main.c,
8176         * src/xa51/ralloc.c (xa51_assignRegisters),
8177         * src/xa51/main.c,
8178         * src/z80/ralloc.c (z80_assignRegisters),
8179         * src/z80/ralloc.h,
8180         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
8181         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
8182         * src/SDCCcse.h,
8183         * src/SDCCdflow.c (computeDataFlow),
8184         * src/SDCCdflow.h,
8185         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
8186         * src/SDCCloop.h,
8187         * src/SDCCcflow.c (*),
8188         * src/SDCCcflow.h,
8189         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
8190         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
8191         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
8192         immedDom() returning wrong block; probably fixes bug #1160833)
8193
8194 2005-03-20 Borut Razem <borut.razem AT siol.net>
8195
8196         * support/scripts/inc2h.pl: WIN32 port
8197
8198 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
8199
8200         * device/lib/makefile.in: added abs.c and labs.c
8201
8202 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
8203
8204         * device/include/stdint.h: added
8205         * device/lib/abs.c: added
8206         * device/lib/labs.c: added
8207         * device/include/stdlib.h: added abs() and labs() prototypes
8208         * device/lib/libsdcc.lib: added abs and labs
8209         * device/include/float.h,
8210         * device/lib/_fsmul.c,
8211         * device/lib/printf_fast.c,
8212         * device/lib/printf_tiny.c: updated comments
8213
8214 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8215
8216         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
8217         bug #1164313
8218
8219 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8220
8221         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
8222         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
8223
8224 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
8225
8226         * device/lib/printf_large.c: removed inline assembly for portability and
8227           readability. Use printf_fast if speed or size are more important.
8228         * src/pic16/gen.c: removed conditions around use of DEBUGpc
8229         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
8230
8231 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
8232
8233         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
8234         prevent compiler warning
8235
8236 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
8237
8238         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
8239         moved to level 0 and declared as static. Also they are explicit
8240         placed in access bank. This was necessery because some times they
8241         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
8242         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
8243         optimizations. Currently only compare to unsigned char is implemented,
8244         * src/pic16/gen.c: added fReturnIdx array,
8245         * (struct resolvedIfx) is moved to gen.h and made public,
8246         * (struct _G): added sregsAlloc and sregsAllocSet fields,
8247         * (aopForSym): added an optimization to directly store in stack of
8248         the operand of a SEND iCode,
8249         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
8250         but as registers instead (AOP_REG) using the fReturnIdx array,
8251         * (pic16_freeAsmop): remove the freed register from the
8252         _G.sregsAlloc field,
8253         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
8254         a compare of 'WREG',
8255         * (pic16_popGetTempRegCond): changed function prototype, now
8256         function takes also a bitVector argument v which holds the current
8257         set of registers that are allocated for stack access by aopForSym,
8258         registers allocated in aopForSym for accessing stack symbols are not
8259         any more part of the functions usedRegs field,
8260         * (genCall): some times aopOp is called for a stack variable to be
8261         send, aopForSym might perform the push, if this is true make sure
8262         that genCall doesn't push the variable twice by testing _G.resDirect,
8263         * (genFunction): changed testing for unspecified interrupt number
8264         from 256 to INTNO_UNSPEC,
8265         * modified selection scheme of frame pointer generation. Previously
8266         if function did use local registers a frame pointer was generated,
8267         now a frame pointer is generated only if function has arguments
8268         (that need PLUSW2 register access), or has stack arguments, or the
8269         compiler is not instructed to omit the frame pointer,
8270         * (genEndFunction): before restoring local registers that were saved
8271         in the function preamble, also restore the registers that *might*
8272         have been allocated for stack access,
8273         * (genRet): removed some old comments,
8274         * (genCmp, the active (RN's) version): added a call to the
8275         pic16_genCmp_special function to perform the compare with a more
8276         robust and optimized way,
8277         * (genInline): a feature has been added in inline code generation,
8278         which allows a wildcard variable substitution when writing inline
8279         assembly. Code is incomplete and experimental therefore undocumented,
8280         * (genCast): changed order of aopOp for result and right to allow
8281         aopForSym to directly load the result if possible,
8282         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
8283         perform an optimized compare on some selected special occasions,
8284         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
8285         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
8286         generate an IVT any more,
8287         * src/pic16/main.c (pic16_optionsTable): added command line option
8288         --optimize-cmp,
8289         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
8290         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
8291         macros,
8292         * src/pic16/NOTES: Raphael Neider added in list of active developers
8293         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
8294         jumptable_end to prevent bug #,
8295         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
8296         inCond and outCond fields,
8297         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
8298         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
8299         turn off register spilling,
8300         * (packRegsForOneUse): synced with other ports' versions although it
8301         is not used currently,
8302         * (pic16_packRegisters): added an optimization while reading
8303         structure bitfields, some registers may be saved (malloc code is
8304         decreased by 80 bytes)
8305
8306 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
8307
8308         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
8309         left is a bitfield, if yes, then don't optimize assignment. Perhaps
8310         this can be optimized more?
8311
8312 2005-03-10 Raphael Neider <rneider AT web.de>
8313
8314         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
8315           genNearPointerGet): (hopefully) fixed access to bitfields via
8316           pointers (p->bitN = x; and x = p->bitN; failed)
8317
8318 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
8319
8320         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
8321
8322 2005-03-09 Raphael Neider <rneider AT web.de>
8323
8324         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
8325
8326 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
8327
8328         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
8329         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
8330           (regTypeNum): set REG_BIT type if necessary
8331         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
8332         * support/regression/tests/critical.c: check bug 1144613
8333
8334 2005-03-02 Raphael Neider <rneider AT web.de>
8335
8336         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
8337
8338 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8339
8340         * src/avr/ralloc.c (serialRegAssign),
8341         * src/ds390/ralloc.c (serialRegAssign),
8342         * src/hc08/ralloc.c (serialRegAssign),
8343         * src/mcs51/ralloc.c (serialRegAssign),
8344         * src/pic/ralloc.c (serialRegAssign),
8345         * src/pic16/ralloc.c (serialRegAssign),
8346         * src/xa51/ralloc.c (serialRegAssign),
8347         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
8348
8349 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
8350
8351         * src/SDCCast.c (decorateType): fixed bug 1124787
8352
8353 2005-02-20 Hubert Sack <sack AT digiplan.de>
8354         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8355
8356         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
8357         patch #1121755
8358
8359 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8360
8361         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
8362         to keep the correct label reference count when adding/removing references
8363         to labels. A peephole file using this is appended to patch #1144962.
8364
8365 2005-02-14 Raphael Neider <rneider AT web.de>
8366
8367         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
8368         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
8369         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
8370           retrievals of result operand's value on assignment
8371
8372 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
8373
8374         * device/include/pic16/string.h: modified prototype for memccpy()
8375         to memccpy(void *, void *, char, size_t)
8376         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
8377         check whether to omit frame pointer or not,
8378         * (genInline): convert all occurences of "\n" to LF in inline
8379         assembler blocks, this helps formatting the inline text,
8380         * (pic16_loadFSR0): modified prototype,
8381         * (genNearPointerGet, genNearPointerSet): reorganization of code,
8382         removed some 8051 legacy code,
8383         * (genPackBits): enabled handling bitfields exceeding one byte in size,
8384         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
8385         before allocating temporary registers in functions,
8386
8387 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
8388
8389         * support/regression/tests/bitvars.c: corrected the "fix"
8390
8391 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
8392
8393         * support/regression/tests/bitvars.c,
8394         * support/regression/tests/bitwise.c,
8395         * support/regression/tests/rotate.c: "fixed" problems on Alpha
8396
8397 2005-02-10 Raphael Neider <rneider AT web.de>
8398
8399         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
8400           different size for Alpha
8401         * src/pic16/gen.c (genCmpEq) : improved compare with 0
8402
8403 2005-02-09 Raphael Neider <rneider AT web.de>
8404
8405         * src/SDCC.lex(doPragma) : save and restore warning options as well
8406           (also added new stack plus clone- and copyAndFreeSDCCERRG())
8407         * have #pragma less_pedantic set the errorlevel to WARNING
8408           (fixes #1117001)
8409         * (cloneOptimize) : fixed wrong malloc's size
8410         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
8411           facilitate correct handling of #pragma (save|restore)
8412
8413 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
8414
8415         * src/mcs51/gen.c: removed non-standard C nameless struct/union
8416
8417 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
8418
8419         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
8420
8421 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
8422
8423         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
8424
8425 2005-02-02 Raphael Neider <rneider AT web.de>
8426
8427         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
8428         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
8429         * (pic16_storeForReturn): fixed to allow returning function pointers
8430         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
8431         * device/include/pic16/{stddef.h,stdbool.h}: added
8432
8433 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
8434
8435         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
8436
8437 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
8438
8439         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
8440         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
8441          appeared to be required
8442
8443 2005-01-31 Borut Razem <borut.razem AT siol.net>
8444
8445         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
8446           include/mcs51 and include/z80 directories to the package
8447
8448 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8449
8450         * src/hc08/gen.c (genFunction): fixed bug #1112752
8451
8452 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8453
8454         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
8455
8456 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8457
8458         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
8459
8460 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
8461
8462         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
8463
8464 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
8465
8466         * device/include/c8051fxxx.h: removed these 6 files
8467         * device/include/mcs51/c8051fxxx.h: added these 11 new files
8468
8469 2005-01-26 Raphael Neider <rneider AT web.de>
8470
8471         * src/pic16/gen.c (genAssign): fixed assignment from longs
8472           in codespace (were cut to three bytes)
8473         * (genDummyRead): implemented (except for CODESPACE...),
8474           fixed bug #1108575
8475         * src/pic16/glue.c (emitStatistics): beautified
8476         * device/lib/pic16/libm/Makefile: added include path
8477
8478 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8479
8480         * src/z80/gen.c (aopPut): fixed bug #1103902
8481
8482 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8483
8484         * device/lib/expf.c: fixed bug #1095792
8485
8486 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
8487
8488         * device/lib/pic16/libm: added Math library sources
8489
8490 2005-01-24 Raphael Neider <rneider AT web.de>
8491
8492         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
8493           to enable upcast to pCodeOpReg2 (there is no type tag to
8494           differenciate the two and pic16_popGet2p cast into PCOR2)
8495         * src/pic16/main.c (_process_pragma): fixed another malloc bug
8496           (sizeof(sectNames) changed to sizeof(sectName))
8497           Both patches fix segfaults under MinGW.
8498
8499 2005-01-23 Raphael Neider <rneider AT web.de>
8500
8501         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
8502           Safe_[mc]?alloc()'ed variables
8503         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
8504           of (byte sized) temporaries (assign them to WREG for now)
8505         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
8506           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
8507           this might fix SIGSEGVs on MinGW...
8508         * src/SDCCopt.c (killDeadCode): restored original behaviour
8509           (volatile operands might get thrown away though)
8510
8511 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
8512
8513         * src/pic16/gen.c: fixed bug #1106975,
8514         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
8515         pointer update, INTCON is saved, global interrupts are disabled and
8516         restored after updateing TOS.
8517         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
8518         * added function attribute 'shadowregs' to take advantage of shadow
8519         registers,
8520         * added function attribute 'wparam' as an alternative to the wparam
8521         pragma,
8522         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
8523         user declares a non-ISR function as 'shadowregs',
8524         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
8525
8526 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
8527
8528         * .version: bumped version number to 2.4.8
8529         * device/lib/pic16/pics.all: list of PIC18F devices supported by
8530         pic16 port,
8531         * device/lib/pic16/libio/i2c/: I2C module support library,
8532         * device/include/pic16/i2c.h: I2C support library header,
8533         * device/lib/pic16/libc/stdio/: standard IO support sources,
8534         * (printf_small.c): printf_small() source, supports float print,
8535         * (printf_tiny.c): printf_tiny() source, does not support floats,
8536         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
8537         enable global optimizations for entire library source, other
8538         Makefiles in the source tree are also modified to reflect this,
8539         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
8540         function,
8541         * doc/sdccman.lyx: updated to reflect new changes,
8542         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
8543         sym->onStack if-case,
8544         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
8545         sbit, idata, _idata, xdata, _xdata,
8546         * added pragma library, to link an external library, (see doc),
8547         * removed command line options, --pomit-config-words, --pomit-ivt,
8548         --pleave-reset-vector,
8549         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
8550         when calling assembler to reflect memory model used, also define
8551         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
8552         reflect stack model used,
8553         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
8554         on stack return NULL,
8555
8556 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
8557
8558         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
8559           of the operands is volatile. Fixes #1020220
8560
8561 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
8562
8563         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
8564         * (OptimizeRegUsage): make sure that there is really no other flow where
8565           the first pCode is used
8566
8567 2005-01-22 Raphael Neider <rneider AT web.de>
8568
8569         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
8570           to fix #1106967 (pCode->seq are not set up correctly)
8571
8572 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8573
8574         * src/SDCCglue.c (glue): make sure code area is declared before the
8575         static initialization area.
8576
8577 2005-01-21 Raphael Neider <rneider AT web.de>
8578
8579         * device/lib/Makefile.in: fixed test for pic16 install dir
8580         * device/lib/pic16/*/Makefile*: modified compile flags to enable
8581           optimizations
8582         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
8583           added --optimize-goto compiler switch and pragma wparam documentation
8584         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
8585         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
8586           and PRODH closing bug #1071770 (peephole optimizer)
8587
8588 2005-01-19 Raphael Neider <rneider AT web.de>
8589
8590         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
8591           cmdLine buffers (used when calling sdcpp...) are large enough
8592           (MAX_PATH=256 truncates arguments leading to system halts when
8593           used in MinGW...)
8594         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
8595         * (genUminus): rewritten to for efficiency
8596         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
8597           used uninitialized in some cases)
8598         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
8599           copy the third byte from the int -- now assumes 0x80 (data memory)
8600         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
8601           operands (genAddLit expects the iCode's operands to swapped as
8602           well), fixed leftover bytes (crashed for short left operands)
8603         * (pic16_genMinusDec): performance improvements, removed false
8604           PIC14 emitSKPNCs
8605         * (pic16_genMinus): fixed to cope with differently sized operands
8606         * src/pic16/glue.c (pic16_glue): added new banksel optimization
8607           for --obanksel > 1
8608         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
8609         * src/pic16/graph.[ch]: implementation of directed graphs, used by
8610           new banksel optimization
8611         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
8612           analysis for temporary registers (segfaults...)
8613         * src/pic16/peeph.def: added rule
8614
8615 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
8616
8617         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
8618         which converts a float number to its ASCII representation
8619         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
8620         functions to convert the fractional and integer part of a float to ASCII,
8621         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
8622         realloc.c): added _MALLOC_SPEC to explicit place variables in data
8623         ram
8624         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
8625         _STATMEM macros,
8626         * device/include/pic16/adc.h: added GPL info,
8627         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
8628         a pCodeOp as tested operand,
8629         * (genNearPointerGet): optimized bit testing, does not use
8630         intermediate register for bit value, test directly instead with
8631         BTFSS, BTFSC, works only for single bits,
8632         * (genpic16Code): dump the name of the iCode in the asm,
8633         * src/pic16/ralloc.c (decodeOp): removed static declaration and
8634         renamed to pic16_decodeOp,
8635         * (serialRegAssign): do not allocate a temporary register for iCode
8636         sequences that test a single bit for 1/0
8637
8638 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
8639
8640         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
8641         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
8642         access stack and frame pointers. They are initially assigned to
8643         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
8644         accessing SFRs. Updated all occurences of modification of stack or
8645         frame pointer in gen.c and pcode.c,
8646         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
8647         assigning of a literal value to pointers,
8648         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
8649         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
8650         selected
8651
8652 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
8653
8654         * doc/sdccman.lyx: update documentation about stack pragma, added
8655         some info for stack memory models
8656
8657 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8658
8659         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
8660
8661 2005-01-08 Raphael Neider <rneider AT web.de>
8662
8663         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
8664           udata sections to fix bug #1097823
8665
8666 2005-01-05 Raphael Neider <rneider AT web.de>
8667
8668         * src/pic16/gen.c (genGenericShift): added handling of differently
8669           sized left operand and result
8670
8671 2005-01-04 Raphael Neider <rneider AT web.de>
8672
8673         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
8674         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
8675           to hold the condition bit)
8676         * added new version of genCmp (old code available via #define)
8677         * added new version of genShiftLeft/genShiftRight in a generic
8678           way, now supports shifting by negative values
8679         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
8680           shiftCount (expected by genGenericShift)
8681         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
8682         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
8683           dump
8684         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
8685           is an invalid literal too...)
8686
8687 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
8688
8689         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
8690         from Raphael Neider,
8691         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
8692         for 8-bit literals. This fixes some literal operands which are sign
8693         extended to 16-bits ints when instruction needs only 8-bits.
8694
8695 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
8696
8697         * device/lib/logf.c: added mcs51 assembly version
8698         * device/lib/expf.c: added mcs51 assembly version
8699         * device/lib/_logexpf.c: new shared asm code for expf and logf
8700         * device/include/math.h: add defines for assembly math library
8701         * device/lib/Makefile.in: build new _logexpf.c
8702         * device/lib/libfloat.lib: use new _logexpf.c
8703
8704 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
8705
8706         * src/pic/device.c
8707         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
8708           device types which have less than 0x7f registers.
8709
8710 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
8711
8712         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
8713
8714 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
8715
8716         * device/lib/printf_fast.c: only build on supported arch.
8717         * device/lib/printf_tiny.c: only build on supported arch.
8718         * device/lib/printf_fast_f.c: only build if asm float lib
8719         * device/lib/_fsget1arg.c: only build if asm float lib
8720         * device/lib/_fsget2args.c: only build if asm float lib
8721         * device/lib/_fsnormalize.c: only build if asm float lib
8722         * device/lib/_fsreturnval.c: only build if asm float lib
8723         * device/lib/_fsrshift.c: only build if asm float lib
8724         * device/lib/_fsswapargs.c: only build if asm float lib
8725         * device/include/stdio.h: don't provide print_fast,
8726           print_fast_f, print_tiny prototypes if --xstack used
8727
8728 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
8729
8730         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
8731         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
8732           to the SOURCES
8733
8734 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
8735
8736         * device/lib/printf_fast_f.c: same as printf_fast, but
8737           with floating point enabled
8738         * device/lib/printf_fast.c: minor tweaks
8739         * device/include/stdio.h: add printf_fast_f
8740
8741 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
8742
8743         * src/SDCCmain.c: make --float-reent default for mcs51
8744         * device/lib/_fsadd.c: added mcs51 assembly version
8745         * device/lib/_fssub.c: added mcs51 assembly version
8746         * device/lib/_fsmul.c: added mcs51 assembly version
8747         * device/lib/_fsdiv.c: added mcs51 assembly version
8748         * device/lib/_fseq.c: added mcs51 assembly version
8749         * device/lib/_fsneq.c: added mcs51 assembly version
8750         * device/lib/_fsgt.c: added mcs51 assembly version
8751         * device/lib/_fslt.c: added mcs51 assembly version
8752         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
8753         * device/lib/Makefile.in: add _fscmp to build
8754         * device/lib/libfloat.lib: add _fscmp to build
8755
8756 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
8757
8758         * device/lib/_fs2slong.c: added mcs51 assembly version
8759         * device/lib/_fs2sint.c: added mcs51 assembly version
8760         * device/lib/_fs2schar.c: added mcs51 assembly version
8761         * device/lib/_fs2ulong.c: added mcs51 assembly version
8762         * device/lib/_fs2uint.c: added mcs51 assembly version
8763         * device/lib/_fs2uchar.c: added mcs51 assembly version
8764         * device/lib/_slong2fs.c: added mcs51 assembly version
8765         * device/lib/_sint2fs.c: added mcs51 assembly version
8766         * device/lib/_schar2fs.c: added mcs51 assembly version
8767         * device/lib/_ulong2fs.c: added mcs51 assembly version
8768         * device/lib/_uint2fs.c: added mcs51 assembly version
8769         * device/lib/_uchar2fs.c: added mcs51 assembly version
8770         * device/include/float.h: added #define to select asm vs c
8771
8772 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
8773
8774         * device/lib/printf_fast.c: improvements to float output
8775         * device/include/float.h: add defines for assembly float library
8776         * device/lib/_fsget1arg.c: receive 1 float arg
8777         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
8778         * device/lib/_fsnormalize.c: normalize a float
8779         * device/lib/_fsreturnval.c: return float, various helper routines
8780         * device/lib/_fsrshift.c: right shift a float's mantissa
8781         * device/lib/_fsswapargs.c: swap 2 floats
8782         * device/lib/Makefile.in: build these 6 new files for mcs51
8783         * device/lib/libfloat.lib: add these 6 files to the library
8784
8785 2004-12-26 Borut Razem <borut.razem AT siol.net>
8786
8787         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
8788           built by gcc 3.4.2
8789
8790 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
8791
8792         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
8793           and fully reentrant and register bank neutral.
8794         * device/lib/printf_fast.c: added float (not enabled by default),
8795           added compact/slower integer (also not enabled by default),
8796           improved size/speed of fast integer code, other minor changes
8797         * device/include/stdio.h, device/lib/Makefile.in,
8798           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
8799
8800 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
8801
8802         * src/pic16/pcode.c: declaring variables other than at the start of a
8803           block is not supported in C by VC6.
8804
8805 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
8806
8807         * applied a previous patch from Raphael Neider that wasn't included
8808         in the previous commits, which fixes infinite loops within jumptable
8809         improvements,
8810         * made some fixes that previous patches introduced
8811
8812 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
8813
8814         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
8815         that fixes an issue with AOP_PCODE asmop's offset,
8816         * (pic16_popCopyReg): update instance field too,
8817         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
8818         function of pic port,
8819         * (genCmp, genAnd, genAssign),
8820         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
8821
8822 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
8823
8824         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
8825         variables initial values to idata section,
8826         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
8827         variables in some functions. This utilizes parmBytes field of iCode
8828         structure to hold the offset of the variable in stack. (might be
8829         able to use the stack field too?)
8830         * applied patch from Raphael Neider # ### , # ###
8831         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
8832         variable initial values in idata section,
8833         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
8834         for static variables with initial value
8835         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
8836         applied fix in while loop from Raphael Neider.
8837
8838 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
8839
8840         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
8841         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
8842         * src/ds390/ralloc.c (serialRegAssign): spill bits
8843         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
8844         * support/Util/SDCCerr.c,
8845         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
8846         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
8847         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
8848
8849 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
8850
8851         * device/include/sdcc-lib.h: inserted LGPL, added includes
8852           asm/ds390/features.h and asm/mcs51/features.h
8853         * device/include/asm/default/features.h,
8854         * device/include/asm/gbz80/features.h,
8855         * device/include/asm/z80/features.h: added empty _AUTOMEM
8856           and _STATMEM
8857         * device/include/asm/ds390/features.h,
8858         * device/include/asm/mcs51/features.h: added files with defines for
8859           _AUTOMEM and _STATMEM indicating automatic and static storage class
8860         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
8861         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
8862         * src/SDCCicode.c (geniCodeCast),
8863         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
8864         * src/SDCCloop.c (loopInduction): removed unused variable lr
8865         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
8866           to convertToFcall to include char modulo (RFE 1065037), added check
8867           if left operand is unsigned and use abs of literal value
8868         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
8869           as it doesn't work after conversion from peephole.def to peephole.rul
8870         * src/mcs51/gen.c (toBoolean): added check for size,
8871           (genModOneByte): optimized code for signed char modulo a literal
8872           power of 2 (thanks to Hubert Sack),
8873           (genRRC): removed unnecessary "clr c",
8874           (genRLC): replaced "add a,acc" with cheaper "rlc a"
8875         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
8876           jump optimization,
8877           swapped rules 256.c and 256.d,
8878           extended 256.d by using new multiple checks (thanks Erik),
8879           added rules 256.e and 256.f,
8880           updated rule 261.a and 261.b to new generated code
8881         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
8882
8883 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8884
8885         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
8886           induction related bugs, including first part of bug #1074377
8887
8888 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
8889
8890         * applied patch from bug-report #1076292,
8891         * applied patches for genAnd and Goto-optimizations for Raphael
8892         Neider,
8893         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
8894         dump a less iCode information,
8895         * src/pic16/device.h (pic16_options_t): added field debgen,
8896         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
8897         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
8898         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
8899         puclic,
8900         * (various functions): added macros FENTRY and FENTRY2 to functions,
8901         to emit function prologue,
8902         * (various functions): fixed indentation,
8903         * (genNearPointerGet): fixed loading of FSR0,
8904         * (genPackBits): applied patch from Raphael Neider to fix updating
8905         of FSR0 and touching only the modified bits,
8906         * src/pic16/genarith.c (various functions): added macros FENTRY to
8907         emit function prologue in comments,
8908         * src/pic16/pcode.h: added functions debugf2, debugf3,
8909         * src/pic16/ralloc.c: partial fix for packForPush caused
8910         segmentation fault,
8911
8912 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8913
8914         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
8915           <stsp AT users.sourceforge.net> with reversed byte order
8916         * support/regression/tests/rotate.c: added (ds390 skips some tests)
8917
8918 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8919
8920         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
8921           bug #1074377
8922         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
8923         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
8924
8925 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
8926
8927         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
8928
8929 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8930
8931         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
8932           conditions,
8933           (setFromConditionArgs): friendly operand parser for peephole rules,
8934           (operandBaseName, operandsNotRelated): new peephole condition
8935           "operandsNotRelated" -- similar to "operandsNotSame", but takes
8936           architecture specific register naming into account, handles n-way
8937           comparisons, and supports quoted literals
8938         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
8939
8940 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8941
8942         * src/mcs51/peeph.def: fixed bug #1076940
8943
8944 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
8945
8946         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
8947
8948 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8949
8950         Adding support for replacing ljmps with sjmps in jumptables
8951         generated for switch statements. For now you need to set the
8952         environment variable SDCC_SJMP_JUMPTABLE to enable this.
8953         Now 4 algorithms for mcs51 jumptable generation are used:
8954         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
8955         addresses loaded pc-relative for up to 112 cases and stack-pushing
8956         target addresses loaded with offset from dptr for up to 256 cases.
8957
8958         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
8959         * src/mcs51/main.c: adapted constants for switch table generation
8960         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
8961
8962 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
8963
8964         * device/lib/printf_large.c (_print_format): fixed bug 1073386
8965         * support/regression/tests/bug1057979.c: added test for bug 1073386
8966
8967 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
8968
8969         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
8970         compilers
8971
8972 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
8973
8974         * src/pic16/device.h,
8975         * src/pic16/genarith.c,
8976         * src/pic16/glue.c,
8977         * src/pic16/main.c,
8978         * src/pic16/pcode.c: applied patches #1068154 and #1070213
8979
8980 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
8981
8982         Large cummulative patch for pic16 port.
8983         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
8984         to call when a stack overflow occurs,
8985         * (malloc.h): added CVS Id tag,
8986         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
8987         variable,
8988         * added libc directory. The current version of LibC contains string
8989         functions, ctype functions and macros and some functions of the
8990         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
8991         be extensively tested in the future. Standard disclaimer here.
8992         Library is not automatically build yet. But one can build it by
8993         invoking 'make' inside the libc directory.
8994         * added ADC library under libio. Preliminary version yet.
8995
8996         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
8997         * src/pic16/gen.c (aopForRemat): asmop size is filled by
8998         aopForRemat() now and not by pic16_aopOp(),
8999         * (pic16_popGetTempReg): removed warning messgae when allocating
9000         temporary registers, its a buggy feature and will be removed,
9001         * (pic16_popGet): set register instance field in AOP_CRY,
9002         * (pic16_outBitC): fixed for results in size greater than 1,
9003         * (genUminusFloat): fixed for pic16, ported code from mcs51,
9004         * (pic16_storeForReturn): optimized return of 0,
9005         * (genCmp): experimental code for new genCmp which uses PIC18's
9006         special compare&skip instructions. Initial tests fail some times
9007         with variables grater than 1 byte in size, so new code is disabled,
9008         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
9009         a single bit,
9010         * (genCast): began a fix to optimize the casting of a bit to another
9011         bit, now assigning a bitfield to another bitfield will fail, sorry,
9012         * src/pic16/main.c: disabled the use of lr-support feature,
9013         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
9014         * added some function prototypes, added function _debugf prototype,
9015         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
9016         bits with offset (case PO_GPR_BIT),
9017         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
9018         command line,
9019         * (isBankInstruction): modified to return 0 for no banking instruction,
9020         and 1 for banking instruction,
9021         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
9022         caused stop processing pCodes after a inline assembly block,
9023         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
9024         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
9025         registers when it shouldn't,
9026         * src/pic16/ralloc.c (allocReg): add preliminary support for
9027         supporting a limited set of temporary registers,
9028
9029 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9030
9031         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
9032           genDataPointerSet): ensure assignments always copy in MSB to LSB
9033           order,
9034           (loadRegFromAop): recognize CLRH optimization,
9035           (genFunction): optimize RECEIVE iCodes in reentrant functions
9036
9037 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9038
9039         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
9040           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
9041           selected.
9042         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
9043         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
9044           contiguous with data
9045
9046 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9047
9048         * device/lib/_gptrget.c (_gptrget),
9049         * device/lib/_gptrgetc.c (_gptrgetc),
9050         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
9051           instead of sjmp to ret
9052         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
9053           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
9054
9055 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
9056
9057         * .version: bumped version to 2.4.7
9058         * device/lib/_gptrget.c (_gptrget): is now _naked
9059         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
9060         * device/lib/_gptrput.c (_gptrput): is now _naked
9061         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
9062           (createFunction): fixed xstack
9063         * src/SDCCglue.c (emitMaps): set allocation required for bit area
9064         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
9065           or bit either,
9066           (geniCodeCritical): store original interrupt state in an iTemp bit
9067           var unless stack-auto
9068         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
9069         * src/SDCCmain.c (setIncludePath): added include/target to search path
9070         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
9071         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
9072           prototype,
9073           (processFuncArgs): put bit vars in bit area
9074         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
9075           unsaveRBank): fixed xstack,
9076           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
9077           (genFunction, genEndFunction): fixed xstack,
9078           (genAssign): optimization don't walk backwards through mem
9079         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
9080         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
9081         * support/regression/Makefile: also make library (for stack-auto) when
9082           making "all" and added "test-mcs51-xstack-auto"
9083         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
9084         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
9085         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
9086         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
9087         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
9088           make-library by MAKE_LIBRARY
9089         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
9090           regression tests for xstack
9091         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
9092         * support/regression/tests/critical.c: test for critical on mcs51
9093
9094 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9095
9096         * support/regression/ports/ucz80/spec.mk: use include and lib files from
9097           built version of sdcc instead of installed version
9098
9099 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
9100
9101         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
9102         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
9103           vprintf.c now
9104         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
9105         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
9106           WARNING: remove device/lib/build/z80/printf.o by hand when
9107           updating from previous build!
9108         * device/lib/z80/printf.c: updated comment
9109         * support/regression/tests/bug1057979.c: test all ports now
9110         * support/regression/tests/bug1065458.c: file added
9111
9112 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9113
9114         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
9115           *_start and *_end symbols for static functions
9116
9117 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
9118
9119         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
9120           and search crt0.o in all library paths,
9121           (setIncludePath): proper handling of --nostdinc,
9122           (setLibPath): proper handling of --nostdlib
9123         * support/regression/Makefile,
9124         * support/regression/ports/ds390/spec.mk,
9125         * support/regression/ports/gbz80/spec.mk,
9126         * support/regression/ports/hc08/spec.mk,
9127         * support/regression/ports/mcs51/spec.mk,
9128         * support/regression/ports/mcs51-large/spec.mk,
9129         * support/regression/ports/mcs51-stack-auto/spec.mk,
9130         * support/regression/ports/z80/spec.mk: use include and lib files from
9131           built version of sdcc instead of installed version
9132         * doc/sdccman.lyx: fixed typo in --nostdinc
9133
9134 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
9135
9136         * src/pic/pcode.c,
9137         * src/pic/device.c,
9138         * src/pic/ralloc.c,
9139         * src/pic/gen.c : added support to generate code for struct bit fields.
9140
9141 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
9142
9143         * as/xa51/xa_version.h,
9144         * device/include/errno.h,
9145         * device/include/regc515c.h,
9146         * device/lib/_itoa.c,
9147         * device/lib/_ltoa.c,
9148         * device/lib/ser_ir_cts_rts.c,
9149         * sim/ucsim/xa.src/glob.cc,
9150         * sim/ucsim/xa.src/inst_gen.cc,
9151         * sim/ucsim/xa.src/xa_bit.cc,
9152         * sim/ucsim/xa.src/xa_sfr.cc,
9153         * sim/ucsim/z80.src/inst_dd.cc,
9154         * sim/ucsim/z80.src/inst_fdcb.cc,
9155         * support/scripts/keil2sdcc.pl,
9156         * src/pic16/pic16.dsp,
9157         * src/pic16/pic16a.dsp: corrected cvs line endings
9158         * device/lib/printf_large.c: fixed bug 1057979
9159         * src/pic16/gen.c: fixed non-C standard code
9160         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
9161         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
9162         * support/regression/ports/mcs51/support.c: reload T1 asap
9163         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
9164           pdata use and clear idata startup behaviour
9165         * support/regression/tests/bug1057979.c: added
9166
9167 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
9168
9169         * device/examples/ds390/ow390/ad26.h,
9170         * device/examples/ds390/ow390/cnt1d.h,
9171         * device/examples/ds390/ow390/crcutil.c,
9172         * device/examples/ds390/ow390/ownet.h,
9173         * device/examples/ds390/ow390/owsesu.c,
9174         * device/examples/ds390/ow390/swt12.h,
9175         * device/examples/ds390/ow390/swtoper.c,
9176         * device/examples/ds390/ow390/temp10.h,
9177         * device/examples/ds390/ow390/thermodl.c,
9178         * device/examples/ds390/tinitalk/tinitalk.dsp,
9179         * device/examples/ds390/tinitalk/tinitalk.dsw,
9180         * device/examples/mcs51/clock/hw.h,
9181         * device/examples/mcs51/simple2/go.bat,
9182         * device/examples/serialcomm/windows/serial.h,
9183         * device/examples/xa51/dummy.c,
9184         * device/examples/xa51/hello.c,
9185         * device/include/80c51xa.h,
9186         * device/include/at89x051.h: corrected cvs line endings
9187
9188 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
9189
9190         * src/pic16/main.c (options): added command line --gstack, to trace
9191         stack over/under flows,
9192         * added pragma 'wparam' to allow passing first byte of function
9193         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
9194         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
9195         call to __gstack_test function and sets up the symbol as extern,
9196         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
9197         * popaop): added call to pic16_testStackOverflow,
9198         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
9199         wparamList list,
9200         * (genCall, genPcall): now all parameters are passed via stack
9201         except in functions that are pass to wparam pragma in which WREG is
9202         used too,
9203         * (genPcall): REENTRANT flag is checked to see if variable prototype
9204         contains reentrant keyword, don't call a non-reentrant function, via
9205         a reentrant function pointer or vice versa, functions are never
9206         passed via WREG,
9207         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
9208         D.Winkler,
9209         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
9210         SIGSEGV when accessing a NULL register stucture,
9211         * (pic16_printGPointerType): modified to handle UPPER modifier for
9212         function initializers, changed prototype of function to simpler one,
9213         * (pic16_printIvalFuncPtr): check to see if function is already
9214         added in externs list,
9215         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
9216         optimized a move from W to SFR with a move to the same register
9217         later after a CALL,
9218         * device/lib/pic16/debug: NEW directory, contains debug features
9219         which are enabled when linking with libdebug.lib, currently command
9220         line option --gstack enables stack pointer tracing for over/under
9221         flow, corresponding sources are in debug/gstack
9222
9223 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
9224
9225         * doc/sdccman.lyx: updated SDCC version,
9226         * (PIC16 port): update list of command line options,
9227         * src/pic16/device.h (structure pic16_options_t): added field gstack
9228         to enable stack overflow tracing on push/pops,
9229         * src/pic16/device.c (statistics structure): added statistics
9230         structure,
9231         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
9232         pic16_dump_int_registers): increase statistics counters for each
9233         * variable which is encountered
9234         * (pic16_dump_usection): emit each .udata variable to its own udata
9235         section,
9236         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
9237         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
9238         parameters via stack, otherwise use old scheme,
9239         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
9240         assembler output file,
9241         * src/pic16/main.c: added command line options --gstack to enable
9242         push/pop tracing for stack overflow,
9243         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
9244         instructions): added size of each instruction,
9245         * (pic16_countInstruction): estimate size of instructions in
9246         the_pFile list, inline assembly blocks are not counted,
9247         * (pic16_FixRegisterBanking): trace previous register usage, when
9248         banksel optimizations is greater than 0, don't emit a redudant
9249         banksel directive,
9250
9251 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
9252
9253         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
9254         * src/pic16/ralloc.c : applied same fix for pic16.
9255         * src/pic/gen.c : tidied it up a little.
9256
9257 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9258
9259         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
9260         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
9261
9262 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9263
9264         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
9265
9266 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9267
9268         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
9269         non-reentrant function __modsint in the interrupt function (thus
9270         corrupting math operations during serial I/O)
9271         * device/lib/ser_ir.c: as above, changed buffersize
9272         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
9273         256.c,d for zeroing
9274         * doc/Makefile: added option -t for rsync
9275
9276 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9277
9278         * src/SDCCast.h (struct ast),
9279         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
9280
9281 2004-10-20 Borut Razem <borut.razem AT siol.net>
9282
9283         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
9284         package
9285
9286 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
9287
9288         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
9289         makefile targets,
9290         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
9291         support functions to replace long sequences of MOVFF's from access
9292         bank registers to stack and vice versa,
9293         * src/pic16/device.h: added new field opt_flags, where optimization
9294         flags can be set to enable certain features,
9295         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
9296         * pBlock, (genFunction, genEndFunction): surroung loop for
9297         saving/loading used registers in stack with PC_INFO pCodes,
9298         INF_LREGS. Code in between can then be optimized by pCode optimizer
9299         to support function calls,
9300         * (genDataPointerSet): fixed bug which loaded float fields in
9301         structures with corrupt data,
9302         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
9303         in a standard way debug info on stderr. Feature used for developing
9304         and debugging only,
9305         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
9306         obsolete chunks of code,
9307         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
9308         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
9309         * pic16/src/pcode.c (pic16_newpCodeInfo,
9310         * (pic16_newpCodeOpLocalRegs),
9311         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
9312         feature,
9313         * (pic16_pCodeConstString): printing of the initial value of a
9314         symbol as a comment is inhibited since parsing was already done by
9315         copyStr and output is corrupt,
9316         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
9317
9318 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9319
9320         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
9321
9322 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
9323
9324         * as/mcs51/lkarea.c: removed old K&R style,
9325           (lnksect): changed check on boundary error,
9326           (lnksect2): changed check on boundary error,
9327           (lnksect2): extend XSTK to end of page if size = 1
9328         * as/mcs51/lkmain.c: removed old K&R style,
9329           (Areas51): create l_IRAM symbol
9330         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
9331         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
9332           model-mcs51-stack-auto, added model-mcs51-xstack-auto
9333         * device/lib/_mullong.c: added version to be compiled with xstack
9334         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
9335         * device/lib/mcs51/crtxclear.asm: clear pdata as well
9336         * device/lib/mcs51/crtxstack.asm: fixed comment
9337         * src/SDCCglue.c: maxInterrupts defaults to 0,
9338           (emitMaps): added pdata,
9339           (createInterruptVect): (re)moved default,
9340           (glue): added pdata,
9341           (glue): moved __start__xstack to XSTK with default size 1
9342         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
9343           and options.float_rent when options.stackAuto is set,
9344           (linkEdit): only write XDATA_NAME if provided on command line
9345         * src/SDCCmem.h,
9346         * src/SDCCmem.c: added pdata
9347         * src/port.h: added pdata_name to PORT
9348         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
9349           (saveRegisters, unsaveRegisters): removed usage of B,
9350           (genMinus): fixed accumulator clash,
9351           (genJumpTab): added comment, this needs another look
9352         * src/mcs51/gen.c: added check for "B in use" paranoia,
9353           added pushB() and popB()
9354         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
9355           chance
9356         * src/avr/main.c,
9357         * src/ds390/main.c,
9358         * src/hc08/main.c,
9359         * src/mcs51/main.c,
9360         * src/pic/main.c,
9361         * src/pic16/main.c,
9362         * src/xa51/main.c,
9363         * src/z80/main.c: (reset_regparms) made void parameter explicit and
9364           added PSEG (PAG,XDATA) or NULL to port specifier
9365         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
9366         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
9367           (_mcs51_genInitStartup): removed __start__xstack equ,
9368           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
9369         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
9370         * src/z80/gen.c (_rleAppend): fixed warnings
9371         * support/regression/tests/zeropad.c: added pdata test
9372         * .version: bumped to 2.4.6
9373
9374 2004-10-17 Borut Razem <borut.razem AT siol.net>
9375
9376         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
9377         as a part of nightly build
9378
9379 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
9380
9381         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
9382         WREG holds the first byte function parameters,
9383         * (aopForSym): take special case for symbols which are in FARSPACE
9384         but in CODESPACE too,
9385         * (assignResultValue): modified to take into account _G.useWreg,
9386         * (genCall): don't use wreg for parameter passing when function is
9387         declared as reentrant, too, added optimization INCF to stack
9388         pointer when stack parameter count is 1,
9389         * (genFunction, genEndFunction): refurnished and fixed to not using
9390         wreg for passing parameters when function has varargs or is
9391         reentrant, fixed bug with symbol name compare for generating
9392         functions in absolute address,
9393         * (pic16_storeForReturn): refurnished,
9394         * (genCmp): began writing a new version of the function, not ready
9395         yet, therefore it is disabled,
9396         * (genAssign): do not read code memory when assigning a function to
9397         a pointer function,
9398         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
9399         array of characters, not pointer,
9400         * (pic16initialComments): in debug mode emit an .ident directive for
9401         the assembler,
9402         * (_process_pragma): emit a new warning type (internal to pic16)
9403         when setting stack to default length, emit a similar warning when
9404         placing a function at absolute address and address is not word aligned
9405         * (_pic16_parseOptions): added 'return TRUE' statement,
9406         * (_pic16_linkEdit): if compiling a source, then add the source's
9407         file object, first in the list of objects to link,
9408
9409 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
9410
9411         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
9412         * src/pic/main.c : removed VC warning.
9413         * src/pic/gen.c : changed comment.
9414
9415 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
9416
9417         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
9418         reference to a deprecated symbol _GPTRREG was causing failure to
9419         link. Thanks G. M. Gallant for the info.
9420
9421 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
9422
9423         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
9424         comments for Bugs item #954788.
9425
9426 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
9427
9428         * src/pic16/device.c (pic16_dump_gsection,
9429         * pic16_groupRegistersInSection): handle symbols declared to be in
9430         access bank differently,
9431         * src/pic16/gen.c (struct _G): added field resDirect,
9432         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
9433         send values read from stack directly to result and don't allocate
9434         temporary values,
9435         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
9436         same registers,
9437         * (pic16_sameRegsOfs): NEW,
9438         * (freeAsmop): if _G.resDirect is set then do not mark registers as
9439         free because they were not allocated from temporary pool,
9440         * pic16_popRegFromString): workaround to fix a problem with
9441         allocating variables twice or never,
9442         * (genGenPointerGet): using PRODL instead of FSR0H,
9443         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
9444         instead of FSR0H,
9445         * (genAssign): take advantage of the _G.resDirect flag,
9446         * (genCast): around line 11844, use mov2f instead of directly
9447         MOVFF'ing between operands to account for literal values,
9448         * src/pic16/genutils.c: some new debug functions for gpsim have been
9449         added,
9450         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
9451         float with integer part only,
9452         * src/pic16/main.c (_process_pragma): handle pragma udata access to
9453         place variables in access bank
9454         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
9455         updated sources to reflect recent changes in gen.c
9456
9457 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
9458
9459         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
9460         sources that searched for headers in installation path, now the
9461         device/include/pic16 is used,
9462         * src/pic16/glue.c (pic16glue),
9463         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
9464         .line directives if not in debug mode, this suppresses assembler's
9465         warnings for ignored directives
9466
9467 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
9468
9469         * src/port.h: made reset_regparms prototype void parameter explicit.
9470         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
9471         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
9472         * doc/sdccman.lyx: documented warning disabling and how to use
9473           printf_large to make it print floats.
9474         * device/include/stdbool.h: NEW
9475         * device/lib/_atof.c,
9476         * device/lib/_divuint.c,
9477         * device/lib/_divulong.c,
9478         * device/lib/expf.c,
9479         * device/lib/printf_large.c,
9480         * device/lib/sincosf.c,
9481         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
9482         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
9483           a completely reentrant lib.
9484
9485 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
9486
9487         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
9488         * device/include/pic16/stdio.h: fixed bug with colon
9489
9490 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
9491
9492         * device/include/pic16/stdio.h,
9493         * device/include/pic16/stdlib.h,
9494         * device/include/pic16/math.h: NEW
9495         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
9496         declared as _naked to reduce overhead
9497         * device/lib/Makefile.in (target port-specific-objects-pic16):
9498         changed * to *.* so to ignore the CVS directory,
9499         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
9500         stacked variables back in stack,
9501         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
9502         corruption
9503
9504 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
9505
9506         * .version: bumped version number to 2.4.5
9507         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
9508         * support/Util/SDCCerr.c (messages structure): added entry for
9509         W_POSSBUG2
9510
9511         Large cumulative patch for pic16 port and libraries.
9512         * device/include/pic16/sdcc-lib.h,
9513         * device/include/pic16/stdarg.h,
9514         * device/include/asm/pic16/features.h,
9515         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
9516         * device/include/pic16/float.h: changes reentrant keyword with
9517         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
9518         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
9519         updated target build-libraries to include objects from gptr,
9520         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
9521         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
9522         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
9523         all function headings,
9524         * src/SDCCmain.c: added global parameter userIncDirsSet,
9525         * (parseCmdLine): when option -I is encountered add directory to
9526         userIncDirsSet too,
9527         * src/version.awk: added space between control and long,
9528         * src/pic16/NOTES: added some notes for the port,
9529         * src/pic16/gen.c: added prototype for mov2fp function,
9530         * (fReturnpic16[]): properly named return value registers,
9531         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
9532         * (aopForSym): added code to handle symbols with onStack flag set,
9533         symbols onStack are allocated PTRSIZE bytes,
9534         * (aopFreeAsmop): handles special case where asmops are stack objects,
9535         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
9536         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
9537         added argument lock to trace flaws in allocating temporary registers
9538         when developing port,
9539         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
9540         * (pic16_popRegFromString): reenabled allocating a direct register
9541         from string,
9542         * (assignResultValue): various beautifications,
9543         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
9544         referenced function argument,
9545         * (genIpush): reenabled to allow stacked arguments, handles only
9546         ic->parmPush iCodes,
9547         * (genCall, genPcall): major changes to allow for variable argument
9548         functions, fixed a bug with falsely restoring stack pointer after
9549         returning from call,
9550         * (genFunction): pending code for critical function,
9551         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
9552         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
9553         * (genNearPointerGet): fixed bug with indirect reading, was always
9554         reading from INDF0
9555         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
9556         pointers,
9557         * (genAddrOf): rewrote code to take address of a stacked function parameter
9558         * (genCast): fixed casting to generic pointer type,
9559         * src/pic16/gen.h: added AOP_STA,
9560         * (struct asmop): added field stk,
9561         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
9562         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
9563         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
9564         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
9565         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
9566         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
9567         generic pointers,
9568         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
9569         and library paths,
9570         * (pic16_port structure): generic pointer size is set to 3,
9571         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
9572         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
9573         compiler warning,
9574         * src/pic16/ralloc.c (allocReg): prevent allocating register when
9575         operand is an iTemp,
9576
9577 2004-09-24 Martin Helmling <mh AT octo-soft.de>
9578
9579         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
9580         * debugger/mcs51/simi.c: addapt new syntax of s51
9581
9582 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
9583
9584         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
9585         * src/pic16/pcode.c: commented out some calls to free() in order to
9586         fix bug #989576,
9587
9588 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9589
9590         * src/SDCCicode.h,
9591         * src/SDCCicode.c (isiCodeInFunctionCall),
9592         * src/avr/ralloc.c (selectSpil),
9593         * src/pic/ralloc.c (selectSpil),
9594         * src/pic16/ralloc.c (selectSpil),
9595         * src/ds390/ralloc.c (selectSpil),
9596         * src/hc08/ralloc.c (selectSpil),
9597         * src/xa51/ralloc.c (selectSpil),
9598         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
9599         stack in the middle of a function call sequence (fixes bug #1020268)
9600         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
9601         costs associated with the minimum switch case.
9602
9603 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9604
9605         * src/SDCC.lex: fixed bug #1030549
9606
9607 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9608
9609         * src/SDCCcse.h (struct cseDef),
9610         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
9611         over a function call if the CSE is derived from a symbol whose
9612         address has been taken (fixes bug #1029883)
9613         * support/regression/tests/bug-1029883: a new regression test for
9614         this bug
9615
9616 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9617
9618         * src/hc08/gen.c (emitinline): fixed bug #1029778
9619         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
9620         to a cast object is no longer a syntax error ("fixes" bug #1030006,
9621         and starts toward RFE #905167)
9622
9623 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
9624
9625         * src/pic16/gen.c (mov2f): New function to move an operand to
9626         another without considering if it is a literal or a register,
9627         * (pic16_sameRegs): don't check if they are both AOP_REG,
9628         * (AccRsh): removed andmask=0 lines,
9629         * (genLeftShift): duplicated to be improved in future versions,
9630         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
9631         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
9632         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
9633         * (pic16initMnemonics): added initialization for POC_INFSNZW,
9634         * (insertBankSwitch): fixed inserting banksel directives algorithm
9635         for instructions that follow a skip instruction, this fixes a report
9636         for broken subtraction code generation,
9637         * src/pic16/ralloc.c (deassignLRs): do not free register if current
9638         iCode is a left op, just in case result and right share the same
9639         registers
9640
9641 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9642
9643         * src/hc08/main.c,
9644         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
9645         preservation of HX
9646         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
9647         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
9648         on 2004-09-12; it was buggy
9649
9650 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
9651
9652         * src/SDCCsymt.h: removed RESULT_CHECK
9653         * src/SDCCast.c,
9654         * src/SDCCglue.c,
9655         * src/SDCCval.c,
9656         * src/pic/glue.c,
9657         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
9658
9659 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
9660
9661         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
9662         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
9663         configuration values no more rejected by compiler, they are assigned
9664         to configuration registers with a warning message instead,
9665         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
9666         the for-loop so last conf register is emitted too,
9667         * (_pic16_initPaths): link library libsdcc.lib by default,
9668         * (_hasNativeMulFor): modified test for multiplication according to
9669         Raphael Neider's remarks. Integer multiplication is also done with
9670         support functions,
9671         * device/include/pic16/pic18fregs.h: corrected type error in while
9672         testing and including 18f6720 header file
9673
9674 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
9675
9676         * src/pic16/device.h (pic16_options): removed field use_crt,
9677         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
9678         until an optimization to handle single bits is added,
9679         * (pic16_loadFSR0): moved before genUnpackBits,
9680         * (genAnd): some white lines removed,
9681         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
9682         leave_reset flags in pic16_options when using crt modules,
9683
9684 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
9685
9686         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
9687           for bugs 898889 & 979599. Also used some safer print instructions.
9688
9689 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
9690
9691         * src/pic16/device.h (pic16_options_t): added field use_crt,
9692         crt_name, no_crt,
9693         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
9694         catch a probable future bug,
9695         * src/pic16/gen.c: aopIdx function commented out,
9696         * (genAssign): commented out old code which used aopIdx,
9697         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
9698         code, added if conditionals to take into account the --use-crt
9699         command line options,
9700         * src/pic16/main.c (pic16_optionsTable): added new command line
9701         options, --use-crt= and --no-crt,
9702         * (_pic16_linkEdit): now the proper crt object is added in the
9703         linker command line except than when --no-crt is specified,
9704         * src/pic16/pcode.c,
9705         * src/pic16/pcode.h: added some structures and functions for a new
9706         optimization scheme to compansate for instruction overhead between
9707         same iCodes, this scheme is currently under development and is not
9708         working in any way,
9709         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
9710         to && operator,
9711         * device/lib/pic16/startup/crt0i.c,
9712         * device/lib/pic16/startup/crt0iz.c: added global char variable
9713         __uflags to force the generation of an idata section
9714
9715 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
9716
9717         * doc/Makefile,
9718         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
9719         * doc/sdccman.lyx: updated sdcc version to 2.4.4
9720
9721 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9722
9723         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
9724         Frieder) and clarified the default code optimization mode
9725
9726 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9727
9728         * src/SDCC.lex (doPragma, process_pragma),
9729         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
9730         "opt_code_size", and "opt_code_balanced"
9731         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
9732         regrouped options by category, added support for category headers
9733         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
9734         and "--opt-code-size"
9735         * doc/sdccman.lyx: documented these new options and pragmas
9736         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
9737         preference into account
9738
9739 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
9740
9741         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
9742           geniCodePreDec): Fixed bug 904237 by generating a warning
9743         * src/SDCCerr.h,
9744         * src/SDCCerr.c: added warning W_SIZEOF_VOID
9745
9746 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
9747
9748         * src/pic/device.c : When no max ram set validate full memory range.
9749         * src/pic/pcode.c,
9750         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
9751
9752 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
9753
9754         * device/lib/_gptrget.c,
9755         * device/lib/_gptrput.c: updated comment
9756         * device/lib/calloc.c,
9757         * device/lib/free.c,
9758         * device/lib/malloc.c,
9759         * device/lib/realloc.c: added LGPL, made them reentrant-safe
9760         * src/SDCCcse.c (cseBBlock),
9761         * src/SDCCicode.c (printOperand, geniCodeArray),
9762         * src/SDCCicode.h (struct operand): fixed bug 868103
9763         * support/regression/tests/bug-868103.c: added
9764         * src/SDCCast.c (searchLitOp),
9765         * src/SDCCcse.h (struct cseDef),
9766         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
9767         * src/SDCCicode.h (struct operand),
9768         * src/SDCCsymt.h (struct sym_link),
9769         * src/avr/gen.c (hasInc),
9770         * src/ds390/gen.c (hasInc),
9771         * src/hc08/gen.c (genPlusIncr, hasInc),
9772         * src/mcs51/gen.c (hasInc),
9773         * src/pic16/glue.c (pic16_printIvalChar),
9774         * src/pic16/ralloc.c (regWithIdx),
9775         * src/xa51/gen.c (hasInc) : removed warnings
9776         * src/SDCCast.c (createBlock): added comment ???
9777         * src/hc08/ralloc.c: updated comments
9778
9779 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9780
9781         * doc/sdccman.lyx: updated section on switch statements, added
9782         section about semaphore locking
9783         * doc/Makefile: added option -info for latex2html
9784         * device/lib/_gptrget.c,
9785         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
9786
9787 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
9788
9789         * src/pic/device.h,
9790         * src/pic/device.c,
9791         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
9792          maxram is less than 0x100.
9793
9794 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
9795
9796         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
9797
9798 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9799
9800         * src/port.h,
9801         * src/mcs51/main.c,
9802         * src/ds390/main.c,
9803         * src/z80/main.c,
9804         * src/hc08/main.c,
9805         * src/pic/main.c,
9806         * src/pic16/main.c,
9807         * src/avr/main.c,
9808         * src/xa51/main.c
9809         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
9810         a jump table is the best form for a switch statement, including
9811         automatic insertion of missing cases to make the case range
9812         continuous. Developed in collaboration with Frieder Ferlemann.
9813
9814 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9815
9816         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
9817         accumulator result if it needs sign extension
9818
9819 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9820
9821         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
9822
9823 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9824
9825         * device/lib/gbz80/printf.c,
9826         * device/lib/z80/printf.c: removed define for NULL
9827
9828 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9829
9830         * as/xa51/xa_link.c,
9831         * device/examples/ds390/ow390/ad26.c,
9832         * device/examples/ds390/ow390/cnt1d.c,
9833         * device/examples/ds390/ow390/counter.c,
9834         * device/examples/ds390/ow390/ds2480.h,
9835         * device/examples/ds390/ow390/ds2480ut.c,
9836         * device/examples/ds390/ow390/findtype.c,
9837         * device/examples/ds390/ow390/gethumd.c,
9838         * device/examples/ds390/ow390/owllu.c,
9839         * device/examples/ds390/ow390/ownetu.c,
9840         * device/examples/ds390/ow390/swt12.c,
9841         * device/examples/ds390/ow390/swtloop.c,
9842         * device/examples/ds390/ow390/temp.c,
9843         * device/examples/ds390/ow390/temp10.c,
9844         * device/examples/ds390/ow390/thermo21.c,
9845         * device/examples/ds390/ow390/tinilnk.c,
9846         * device/examples/ds390/ow390/tstfind.c,
9847         * device/examples/serialcomm/windows/serial.cpp,
9848         * device/examples/serialcomm/windows/test_serialcomm.cpp,
9849         * device/include/reg51.h: fixed line endings for cvs
9850
9851 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9852
9853         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
9854         packRegsForAccUse, packRegisters): new accumulator register
9855         packing algorithm
9856         * support/regression/ports/hc08/support.c (_putchar): suppress
9857         warning of unused variable
9858         * src/SDCCicode.c: added SWAP entry to codeTable
9859
9860 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
9861
9862         * device/lib/sprintf.c: forgot to add this file before previous commit
9863
9864 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
9865
9866         * src/pic16/gen.c (genPackBits): added operand right in function
9867         parameters, load result directly if p_type is POINTER (that is
9868         called by genNearPointerSet)
9869         * (genUnPackBits): added operand left in function parameters,
9870         * (genNearPointerGet, genNearPointerSet): prevent the loading of
9871         FSR0 if accessing bitfields,
9872
9873 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
9874
9875         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
9876           _print_format; updated printf, sprintf, vsprintf
9877         * device/include/asm/default/features.h: corrected comment/define
9878         * device/lib/Makefile.in: added sprintf.c
9879         * device/lib/libsdcc.lib: added sprintf module
9880         * device/lib/printf_large.c,
9881         * device/lib/vprintf.c,
9882         * device/lib/sprintf.c: totally refactored printf_large and vprintf
9883           into these 3 files
9884         * support/regression/Makefile: changed ALL_PORTS into a usefull default
9885         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
9886         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
9887           hc08 test
9888         * support/regression/tests/zeropad.c: define idata as data for hc08
9889
9890 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9891
9892         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
9893         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
9894         labels are referenced at least once (even if a reference is not found)
9895         * src/hc08/gen.c (emitcode): set isComment flag for comments
9896         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
9897         loads), rules 6a..6b (optimize jumps to return)
9898
9899 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9900
9901         * device/lib/acosf.c (acosf),
9902         * device/lib/asinf.c (asinf),
9903         * device/lib/atanf.c (atanf),
9904         * device/lib/ceilf.c (ceilf),
9905         * device/lib/cosf.c (cosf),
9906         * device/lib/coshf.c (coshf),
9907         * device/lib/cotf.c (cotf),
9908         * device/lib/fabsf.c (fabsf),
9909         * device/lib/floorf.c (floorf),
9910         * device/lib/log10f.c (log10f),
9911         * device/lib/logf.c (logf),
9912         * device/lib/sinf.c (sinf),
9913         * device/lib/sinhf.c (sinhf),
9914         * device/lib/sqrtf.c (sqrtf),
9915         * device/lib/tanf.c (tanf),
9916         * device/lib/tanhf.c (tanhf),
9917         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
9918         replaced all instances of "reentrant" in the library functions
9919         defined in math.h with this macro.
9920         * support/regression/tests/float_trans.c: reenabled test for hc08
9921
9922 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
9923
9924         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
9925         erroneously deleted
9926
9927 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9928
9929         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
9930         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
9931         multi-byte volatile operands are used
9932         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
9933         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
9934         initialization to area GSINIT0 so that it would always precede
9935         any static initializers in GSINIT
9936         * support/regression/tests/zeropad.c: fixed idata define for hc08
9937         * support/regression/tests/bug-927659.c,
9938         * support/regression/tests/float_trans.c: disabled tests for hc08
9939         pending missing library routines
9940         * .version: increased version number to 2.4.4 - hc08 port now passes
9941         regression tests
9942
9943
9944 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
9945
9946         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
9947         * Makefile.common.in,
9948         * as/Makefile,
9949         * as/hc08/Makefile.in,
9950         * as/mcs51/Makefile.in,
9951         * as/z80/Makefile.in,
9952         * debugger/mcs51/Makefile.in,
9953         * device/include/Makefile.in,
9954         * device/lib/Makefile.in,
9955         * doc/Makefile,
9956         * link/Makefile,
9957         * link/z80/Makefile.in,
9958         * packihx/Makefile.in,
9959         * sim/ucsim/main_in.mk,
9960         * sim/ucsim/avr.src/Makefile.in,
9961         * sim/ucsim/doc/Makefile.in,
9962         * sim/ucsim/gui.src/serio.src/Makefile.in,
9963         * sim/ucsim/hc08.src/Makefile.in,
9964         * sim/ucsim/s51.src/Makefile.in,
9965         * sim/ucsim/xa.src/Makefile.in,
9966         * sim/ucsim/z80.src/Makefile.in,
9967         * src/Makefile.in,
9968         * support/cpp2/Makefile.in,
9969         * support/librarian/Makefile,
9970         * support/makebin/Makefile: added DESTDIR to the install path proposed
9971         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
9972         * doc/sdccman.lyx: added DESTDIR documentation
9973
9974 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
9975
9976         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
9977         instruction for interrupt handlers, use fast returns when returning
9978         from high priority interrupts
9979
9980 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9981
9982         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
9983         code generation
9984         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
9985         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
9986         bugs, ported much of Bernhard's code from mcs51
9987         * src/mcs51/gen.c (genSend),
9988         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
9989         than one when calling a reentrant function
9990         * device/lib/_mullong.c: defined an alternate struct layout for big
9991         endian ports (hc08)
9992
9993 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9994
9995         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
9996         test
9997
9998 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9999
10000         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
10001         are sane and complete before asking the port its prefered parameter
10002         passing method (fixes bug #1017633)
10003         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
10004         and _ret3
10005
10006 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10007
10008         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
10009         problem in bitfields >= 8 bits.
10010
10011 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10012
10013         * src/SDCCsymt.c: undid changes that were not meant to be committed
10014
10015 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10016
10017         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
10018
10019 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10020
10021         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
10022           copied and wrong bit got inverted
10023
10024 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10025
10026         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
10027         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
10028         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
10029         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
10030         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
10031         assignments to bitfields at known addresses
10032         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
10033         reads from bitfields at known addresses
10034         * src/hc08/ralloc.c (packRegisters),
10035         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
10036         genhc08Code): optimize pointer get values used as conditionals
10037         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
10038         and branch
10039
10040 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10041
10042         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
10043         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
10044         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
10045         as conditionals
10046
10047 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10048
10049         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
10050
10051 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10052
10053         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
10054         related problems
10055
10056 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
10057
10058         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
10059
10060 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10061
10062         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
10063         mcs51 port
10064
10065 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
10066
10067         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
10068
10069 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10070
10071         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
10072         cases use more compact code.
10073
10074 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
10075
10076         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
10077
10078 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10079
10080         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
10081
10082 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10083
10084         * src/SDCCsymt.h,
10085         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
10086         parameter of changePointer() from symbol* to sym_link*
10087         * src/SDCCast.c (decorateType): call changePointer() for CAST op
10088         * src/SDCCsymt.c (compareType): void* type is castable to other
10089         pointers, but not necesarily an exact match.
10090         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
10091         is no longer blindly treated as an exact match.
10092         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
10093
10094 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
10095
10096         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
10097
10098 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
10099
10100         * src/pic/gen.c,
10101         * src/pic/pcode.c,
10102         * src/pic/ralloc.h,
10103         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
10104
10105 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
10106
10107         * src/pic/device.c,
10108         * src/pic/device.h,
10109         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
10110
10111 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10112
10113         * src/mcs51/gen.c (emitcode): fixed bug #992819
10114
10115 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
10116
10117         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
10118           there's no need to make it worse
10119
10120 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10121
10122         * src/mcs51/ralloc.c (deassignLR),
10123         * src/ds390/ralloc.c (deassignLR),
10124         * src/hc08/ralloc.c (deassignLR),
10125         * src/z80/ralloc.c (deassignLR),
10126         * src/pic/ralloc.c (deassignLR),
10127         * src/pic16/ralloc.c (deassignLR),
10128         * src/avr/ralloc.c (deassignLR),
10129         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
10130         rlivePoint): fixed another part of bug #971834
10131
10132 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10133
10134         * src/z80/main.c: enabled "critical" keyword
10135         * src/z80/mappings.i,
10136         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
10137         functions (fixes bug #979646)
10138         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
10139
10140 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10141
10142         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
10143           such as c:\mydir.
10144
10145 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
10146
10147         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
10148           doesn't disable too much optimizations
10149
10150 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
10151
10152         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
10153
10154 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
10155
10156         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
10157
10158 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
10159
10160         * src/pic/gen.c tidied up tabs
10161         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
10162         * src/pic/main.c tidied up tabs
10163         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
10164         * src/pic/pcoderegs.c tidied up tabs
10165         * src/pic/ralloc.c tidied up tabs
10166
10167 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
10168
10169         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
10170         to S_FIXED for pic16 port and when symbol is not in level 0,
10171         allocate for S_REGISTER storage class and pic16 port, too,
10172         * src/pic16/device.h: prototype for checkSym,
10173         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
10174         * (pic16_assignConfigWordValue): test the value and the mask to
10175         validate that the value is suitable for the configuration word,
10176         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
10177         collect extern declared symbols, don't emit symbol twice, check
10178         first if symbol is in publics set first,
10179         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
10180         * added command line '--fstack' which enables an experimental
10181         feature for stack access, too buggy to be used yet...
10182         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
10183         * (pic16_allocDirReg): when register has storage class S_REGISTER
10184         allocate in pic16_dynAccessRegs,
10185         * device/include/pic16/pic18f????.h: modified configuration word
10186         naming convention, words started as CONFIG0H but should be CONFIG1H
10187
10188 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
10189
10190         * device/include/mcs51reg.h: fixed bug 970993
10191
10192 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
10193
10194         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
10195         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
10196         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
10197         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
10198         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
10199         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
10200           error/warning numbers,
10201           added function setWarningDisabled()
10202         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
10203         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
10204           _memcmp.c _memmove.c calloc.c realloc.c free.c
10205         * support/regression/tests/malloc.c: added tests for new functionality
10206         * support/regression/tests/zeropad.c: added tests for truncated initializers
10207           and initialized char arrays starting with '\x0'
10208         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
10209
10210 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
10211
10212         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
10213
10214 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10215
10216         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
10217         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
10218         peephole 177.e. Thanks to anonymous
10219
10220 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
10221
10222         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
10223         function isn't used in the source but referenced as a
10224         variable initializer then declare it as extern in .asm file
10225
10226 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
10227
10228         * .version: increased version number to 2.4.3
10229
10230         Adding version extension according to ChangeLog CVS revision
10231         * src/Makefile.in (target all): added dependency 'version.h'
10232         * (rule version.h): added rule to create version.h from ChangeLog,
10233         * (rule dep): added dependency version.h,
10234         * src/version.awk: AWK script to create version.h
10235         * src/SDCCdwarf2.c (dwWriteModule),
10236         * src/SDCCglue.c (initialComments),
10237         * src/SDCCmain.c (printVersionInfo): modified to write after
10238         version string the version extension number,
10239         * src/SDCCutil.c: included "version.h"
10240         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
10241         number,
10242         * src/SDCCutil.h: added prototype for getBuildNumber
10243
10244         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
10245         includeDirsSet, too,
10246         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
10247         const char [] is found in function prototype...
10248
10249         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
10250         moving to WREG with source is already in WREG,
10251         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
10252         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
10253         * (aopForSym): stack'ed symbols are partially supported, added
10254         if-clause to support symbols in FARSPACE,
10255         * (sameRegs): added test for AOP_ACC to see if registers are same,
10256         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
10257         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
10258         * (pic16_popRegFromString): will not allocate a new register if it
10259         doesn't find one by name, bug may have introduced...
10260         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
10261         * (genIpush): revived to use pic16 port's stack,
10262         * (genAddrOf): added incomplete case for stack'ed operand,
10263         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
10264         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
10265         can handle multibyte operands,
10266         * src/pic16/glue.c (pic16_printIval*): some debug info added,
10267         * (pic16initialComments): added message for MPLAB compatibility
10268         mode enabled,
10269         * src/pic16/main.h: prototype for pic16_mplab_comp,
10270         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
10271         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
10272         * (_pic16_linkEdit): NEW, handles link stage, transferred here
10273         because of increased complexity of procedure,
10274         * (_process_pragma): stack pragma changed to format 'stack pos len',
10275         emit symbol '_stack_end' to conform with gplink,
10276         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
10277         to search for register,
10278         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
10279         PO_GPR_REGISTER,
10280         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
10281         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
10282         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
10283         case for PO_GPR_REGISTER,
10284         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
10285         dies, the new era is ahead !...
10286         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
10287         pic16_dynInternalRegs,
10288         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
10289         * (pic16_allocDirReg): minor optimizations and bug fixes,
10290         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
10291
10292         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
10293         load stack and frame pointer with address of 'stack_end' symbol
10294
10295 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
10296
10297         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
10298         without source code but only variable initializers
10299
10300 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
10301
10302         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
10303         external are not declared as extern to reduce overhead while linking
10304
10305 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
10306
10307         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
10308
10309 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
10310
10311         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
10312           Yee Keat for the patch
10313         * src/SDCCast.c (decorateType): fixed bug #979599
10314         * src/ds390/gen.h: removed local fReturnSizeDS390
10315         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
10316         * src/ds390/gen.c (genAnd, genOr, genXor),
10317         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
10318
10319 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
10320
10321         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
10322         add relFilesSet to $3, manipulate $2 to handle linking of object
10323         files without source files in command line,
10324         * device/include/pic16 (all headers): added ID location macros,
10325         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
10326         entries for ID location bytes,
10327         * (pic16_assignIdByteValue): NEW,
10328         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
10329         added field dumpcalltree to pic16_options_t,
10330         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
10331         is used instead of pic16_Gstack_base_addr, check if (ifx) before
10332         emitting rFalseIfx label after check_carry label,
10333         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
10334         pic16_emitDIRegs), NEW
10335         * (pic16glue): dump .calltree file when option --calltree found,
10336         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
10337         * (_pic16_genAssemblerPreamble): emit ID locations after
10338         configuration registers,
10339         * (pic16_linkCmd): modifications of the link command,
10340         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
10341         * (pic16_pCodeInitRegisters): don't init stack registers,
10342         * (pic16_findPrevInstruction): fixed bug,
10343         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
10344         bug with immediate registers,
10345         * (buildCallTree): traces stack push and pop,
10346         * (pct2): dump also stack usage for each function,
10347         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
10348         * (pic16_allocDirReg): various modifications,
10349         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
10350         fixed to 1,
10351
10352 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
10353
10354         * src/pic16/pcode.c: removed buggy double colon
10355
10356 2004-07-01 Borut Razem <borut.razem AT siol.net>
10357
10358         * support/scripts/sdcc.nsi: added include/pic16 to setup
10359
10360 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
10361
10362         * device/lib/Makefile.in: fixed bug in target objects-pic16,
10363         * device/lib/pic16/Makefile: prefixed with dash (-) command under
10364         target 'clean',
10365         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
10366         specific command line arguments. Also added sample lkr script
10367         for placing a variable at a specific memory bank.
10368         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
10369         at a specific memory bank,
10370         * (pic16_dump_isection): fixed bug which caused string literals to
10371         be omitted when dumping idata section,
10372         * (pic16_groupRegistersInSection): added code to handle registers
10373         in specific memory banks,
10374         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
10375         public, all references are renamed too,
10376         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
10377         AOP_DPTR2,
10378         * (pic16_storeForReturn): added case to handle when dest is WREG,
10379         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
10380         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
10381         pic16_rel_udata, check to see if that register is marked as being
10382         a member of a specific memory bank,
10383         * (pic16_printIvalCharPtr): added code to add string literals either
10384         to code or the idata sections,
10385         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
10386         also accept the 'udata' pragma,
10387         * src/pic16/main.h: new structure types sectName and sectSym
10388         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
10389         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
10390         * (pic16_findPrevInstruction): fixed, it returned nothing,
10391         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
10392         instruction combinations,
10393         * (pic16_FixRegisterBanking): heavily reorganised,
10394         * (pic16_AnalyzeBanking): if generating banksel directives is
10395         disabled, then don't call FixRegisterBanking at all,
10396         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
10397         completely removed,
10398         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
10399
10400 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
10401
10402         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
10403         Phuah Yee Keat <yk.phuah AT nestac.com>
10404
10405 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
10406
10407         * src/pic16/glue.c (pic16createInterruptVect): function now emits
10408         correctly the IVT even if it is relocated to some other location
10409
10410 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
10411
10412         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
10413         * device/include/pic16/pic18f2220.h: NEW,
10414         * device/lib/pic16/libdev/pic18f2220.c: NEW,
10415         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
10416         * src/pic16/device.c (struct Pics16): added info for 18f2220,
10417         * src/pic16/device.h (struct pic16_options): added ivt_loc and
10418         nodefaultlibs, ivt_loc is the location of the interrupt vector
10419         table, and nodefaultlibs signs that default libraries should not be
10420         linked in link stage,
10421         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
10422         according to --ivt-loc argument,
10423         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
10424         when pragma stack is found,
10425
10426 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10427
10428         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
10429         256 (range check), 257 (do while), 258.a-f (bit banging
10430         f.e. on 3-wire SPI bus)
10431
10432 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10433
10434         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
10435         variables used exclusively within a loop
10436
10437 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
10438
10439         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
10440
10441 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10442
10443         * src/SDCClrange.c (computeClash): fixed bug #971834
10444
10445 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10446
10447         * src/mcs51/gen.c (genCmp): fixed bug #975903
10448         * src/hc08/gen.c (operandsEqu),
10449         * src/ds390/gen.c (operandsEqu),
10450         * src/z80/gen.c (operandsEqu),
10451         * src/pic/gen.c (operandsEqu),
10452         * src/pic16/gen.c (operandsEqu),
10453         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
10454         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
10455
10456 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10457
10458         * src/SDCCcse.c (cseBBlock): fixed bug #966963
10459
10460 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
10461
10462         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
10463         default case in switch statement,
10464         * glue.c (pic16_initPointer): expr is initialised via decoarteType
10465         to eliminate problem with initialisation of pointers, but problem
10466         still exists,
10467         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
10468         * (emitStaticSegment): removed various lines emitting debug info,
10469         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
10470         added processor registers for utilizing EEPROM,
10471         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
10472         configurable and set 8
10473
10474 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
10475
10476         * .version: increased version number to 2.4.2,
10477
10478         Cumulative patch for pic16 port
10479         * src/pic16/device.c: changed scheme to dump initial values for
10480         variables in idata segment, all print_idata* functions were removed,
10481         now the pic16_printIval* will be called,
10482         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
10483         * _pic16_printPointerType, pic16_printPointerType,
10484         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
10485         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
10486         NEW, similar to the respective functions in SDCCglue.c,
10487         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
10488         way, emitting hex bytes,
10489         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
10490
10491 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10492
10493         * src/avr/ralloc.c (serialRegAssign),
10494         * src/xa51/ralloc.c (serialRegAssign),
10495         * src/pic/ralloc.c (serialRegAssign),
10496         * src/pic16/ralloc.c (serialRegAssign),
10497         * src/hc08/ralloc.c (serialRegAssign),
10498         * src/z80/ralloc.c (serialRegAssign),
10499         * src/ds390/ralloc.c (serialRegAssign),
10500         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
10501
10502 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10503
10504         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
10505         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
10506
10507 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
10508
10509         Cumulative patch for pic16 port:
10510         * src/pic16/device.h (typedef PIC16_device) modified fields for
10511         defining microcontrollers,
10512         * src/pic16/device.c: added new info for all devices in Pics16 array,
10513         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
10514         to be optimised out by the pCode optimiser,
10515         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
10516         specially, bug reported by G.M. Gallant,
10517         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
10518         as force'd so that cannot be optimised out by pCode optimiser,
10519         * src/pic16/pcode.c,
10520         * src/pic16/pcodepeeph.c,
10521         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
10522         they are disabled by default, but can be enabled explicit with
10523         command argument --denable-peeps, for testing,
10524         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
10525         --pomit-ivt in COMPILE_FLAGS
10526
10527 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
10528
10529         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
10530           compilation on MSVC
10531
10532 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
10533
10534         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
10535
10536 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10537
10538         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
10539         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
10540
10541 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
10542
10543         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
10544         would only assign 0x300001 register.
10545
10546 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
10547
10548         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
10549         in COMPILE_FLAGS. Thanks to G. Gallant for report.
10550
10551 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10552
10553         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
10554         for ds80c400
10555         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
10556         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
10557         added peephole 254 (left shift), 255 (jump table)
10558
10559 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
10560
10561         * device/lib/Makefile.in: removed comment line with model-pic16,
10562         * (target port-specific-objects-pic16): the libraries and objects
10563         are copied to the build directory form the device/lib/pic16/bin
10564         directory
10565
10566         Cumulative patch concerning pic16 port:
10567         * library directory has been re-organized,
10568         * added support for PIC18F1220,
10569         * added headers and library sources for chips 18f1220,18f6520,
10570         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
10571
10572         * configuration registers setting has changed, now each supported
10573         device has a complete description of the registers it uses,
10574         * all initialisations are moved to idata sections, these section
10575         can be absolute or relocatable,
10576         * fixed initialisation of codespace variables,
10577         * fixed warning about PCLATU and gpsim,
10578         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
10579         * (genAssign): use table reads when assigning from variables in codespace,
10580         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
10581         char/int variables placed in codespace,
10582         * (pic16_emitConfigRegs): NEW, emits a list with configuration
10583         registers set in .asm file, no need for --pomit-config-words anymore,
10584         * (pic16glue): some 8051 legacy segments are commented out
10585         (to be removed completely),
10586         * added support for alternative assembler and linker with --asm=
10587         and --link= command line arguments,
10588         * peepholes are disabled automatically in the port, no need to
10589         specify on command line,
10590         * port supports natively char/int/long multiplication, but converts
10591         all divisions to support functions,
10592         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
10593         to the file set in variable $2,
10594         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
10595         strings in ASCII format and not in hex,
10596         * ralloc.c (serialRegAssign): added a triplet of conditional calls
10597         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
10598         allocate proper register if iCodes aren't temporary,
10599
10600 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
10601
10602         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
10603
10604 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
10605
10606         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
10607         is commented out
10608
10609 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10610
10611         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
10612         computed address is reused
10613         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
10614         multi-byte bitfields
10615
10616 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
10617
10618         * src/z80/gen.c: (genArrayInit): must check for pointers too
10619
10620 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
10621
10622         * support/regression/tests/zeropad.c: never meant to commit the
10623           nestedstruct test: removed, added check for GCC version
10624
10625 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
10626
10627         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
10628         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
10629         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
10630           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
10631           bugs 928906 and 954082 half-empty initializers
10632         * src/SDCCsymt.h,
10633         * src/SDCCsymt.c (getAllocSize): added for above fix
10634         * src/z80/gen.c (genArrayInit): fixed bug 741044
10635         * support/regression/tests/zeropad.c: added tests
10636
10637 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
10638
10639         * src/pic16/device.c (pic16_dump_section): corrected bug which
10640         caused some symbols of the libraries to be misplaced
10641
10642 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
10643
10644         * src/pic16/glue.c,
10645         * src/pic16/ralloc.h,
10646         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
10647         to fix conflict with pic port
10648
10649 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
10650
10651         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
10652         externs configuration variables,
10653         * src/pic16/ralloc.h,
10654         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
10655         prototype in header, commented out some debug messages
10656
10657 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
10658
10659         * src/pic16/glue.c,
10660         * src/pic16/main.c,
10661         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
10662         for gpasm COFF object generation. Thanks to D. Hawkins for
10663         his patch info
10664
10665 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10666
10667         * src/ds390/main.c,
10668         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
10669         Brock for spotting this)
10670         * src/ds390/gen.c (genEndFunction),
10671         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
10672         interrupt handler and critical. Disable push/pop optimizations when
10673         peephole optimizations disabled.
10674
10675 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
10676
10677         Updated pic16 library sources and headers.
10678         * device/lib/pic16/pic18f*/ ,
10679         * device/include/pic16/*.h: modified to handle structured SFR
10680         definitions
10681
10682 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
10683
10684         * src/port.h (PORT structure): added hook initPaths, now each
10685         port can declare its own default search paths,
10686         which can been seen with the --print-search-dirs option,
10687         see pic16 port for example,
10688         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
10689         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
10690         * (doPrintSearchDirs): NEW, replaces in a central manner the
10691         printing of search dirs which was split in set*Paths functions,
10692         * (main): added call to port->initPaths and doPrintSearchDirs,
10693         * src/avr/main.c,
10694         * src/ds390/main.c,
10695         * src/hc08/main.c,
10696         * src/izt/i186.c,
10697         * src/izt/tlcs900h.c,
10698         * src/mcs51/main.c,
10699         * src/pic/main.c,
10700         * src/pic16/main.c: modified port structures to reflect addition of
10701         initPaths hook,
10702
10703         * src/pic16/device.c (regCompare): registers are finally sorted by name,
10704         * (pic16_dump_section): for registers in same address reserve memory once,
10705         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
10706         to no_banksel,
10707         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
10708         result is greater in size than right or left,
10709         * (pic16_genUMult8X8_8): there are some cases where the result can
10710         be 16 bits size, so handle these,
10711         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
10712         * (pic16_outBitC): modified to emit pcodes,
10713         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
10714         or not,
10715         * (genDivOneByte): implemented algorithm to divide 8-bits,
10716         * (genCmp): uncommented goto, but issues still exist,
10717         * (genAnd): fixed a bug with variables >8bits,
10718         * (genPackBits): optimization added that uses BCF/BSF to change a
10719         single bit,
10720         * (genAssign): fixed bug when assigning floating point literals,
10721         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
10722         __sdcc_gsinit_startup label,
10723         * src/pic16/main.c (_pic16_init): removed search directory
10724         initialisations,
10725         * (_pic16_initPaths): NEW, used to initialise search directories,
10726         * (_hasNativeMulFor): support functions for all except char/int
10727         multiplication, and char division,
10728         * (PIC16_port struct): modified entry for native mul support,
10729         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
10730         no_banksel option,
10731         * (buildCallTree): call to register_usage is ifdef'ed out,
10732
10733 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10734
10735         * device/include/string.h: applied Stas Sergeev's patch to make this
10736         header file compatible with the preprocessor -Wundef option
10737         * src/SDCCmain.c (main): abort compilation if preprocessor reports
10738         failure (fixes bug #941458)
10739
10740 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10741
10742         * src/SDCCopt.c (killDeadCode): fixed bug #907733
10743         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
10744         that the variable, not the function, should be static
10745         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
10746         to be consistent with non-literal case
10747
10748 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10749
10750         * src/SDCCast.c (isConformingBody): fixed bug #949967
10751         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
10752         convilong): fixed bug #952086
10753
10754 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10755
10756         * src/SDCCmem.c (allocVariables): fixed bug #955321
10757
10758 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10759
10760         * src/hc08/main.c (_hc08_genAssemblerEnd),
10761         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
10762         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
10763         completely eliminated the use of a temporary file
10764         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
10765         when more than one file linked
10766         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
10767
10768 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10769
10770         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
10771         which fixes bug #543481
10772         * support/regression/tests/bug-751703.c: fixed comments left from a
10773         cut and paste error
10774         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
10775         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
10776         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
10777         scopes
10778         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
10779         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
10780         are now changed to underscores in moduleName
10781
10782 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10783
10784         * as/mcs51/lkmem.c: better fix for bug #954173
10785
10786 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
10787         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10788
10789         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
10790         * device/include/c8051f000.h,
10791         * device/include/c8051f120.h,
10792         * device/include/c8051f300.h,
10793         * device/include/c8051f310.h,
10794         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
10795         PWM16) and detab'ed
10796
10797 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10798
10799         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
10800         and mailing lists, doc'ed --no-peep-comments, removed reference
10801         to knoppix (newest version has no LyX/LaTeX), other minor changes
10802         * src/SDCCglue.c (glue): save 2 bytes stack space with
10803         option --main-return. The ljmp could probably be avoided too
10804
10805 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10806
10807         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
10808
10809 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10810
10811         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
10812         * src/SDCCopt.c (isLocalWithoutDef),
10813         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
10814         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
10815         (credit to Maarten Brock for patch #949363, on which this is based)
10816         * support/regression/tests/bug-751703.c: some test cases of extern used
10817         within inner scopes.
10818
10819 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10820
10821         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
10822         SPEC_STRUCT
10823         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
10824         struct definitions
10825         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
10826         dwWriteLabel): fix to create valid debugger symbols even when
10827         the module name has non-alphanumeric symbols in it
10828         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
10829         when a variable's allocation has been optimized away
10830
10831
10832 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10833
10834         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
10835         * src/hc08/main.c,
10836         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
10837         * src/mcs51/main.c,
10838         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
10839         * src/ds390/main.c,
10840         * src/z80/gen.c (z80_emitDebuggerSymbol),
10841         * src/z80/main.c,
10842         * src/pic/gen.c (pic14_emitDebuggerSymbol),
10843         * src/pic/main.c,
10844         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
10845         * src/pic16/main.c,
10846         * src/avr/gen.c (avr_emitDebuggerSymbol),
10847         * src/avr/main.c,
10848         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
10849         * src/xa51/main.c,
10850         * src/SDCCdebug.c (emitDebuggerSymbol),
10851         * src/SDCCdebug.h,
10852         * src/port.h: added a debugger struct to the port struct. Added a
10853         callback for defining debugger symbols
10854
10855         * src/SDCCast.c (createLabel),
10856         * src/SDCC.y (labeled_statement): mark all compiler generated labels
10857         with isitmp = 1
10858         * src/SDCCicode.h,
10859         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
10860         iCode back to the ast for the function
10861
10862         * src/hc08/ralloc.c (hc08_assignRegisters),
10863         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
10864         unneeded fields from the regs struct.
10865         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
10866         pushReg() & pullReg() functions instead of emitcode()
10867
10868         * src/hc08/gen.c (genLabel, genhc08Code),
10869         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
10870
10871         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
10872         debugger hooks
10873
10874         * src/hc08/gen.c (genEndFunction, genhc08Code),
10875         * src/hc08/gen.h,
10876         * src/mcs51/gen.c (genEndFunction, gen51Code),
10877         * src/mcs51/gen.h,
10878         * src/ds390/gen.c (genEndFunction, gen390Code),
10879         * src/ds390/gen.h,
10880         * src/z80/gen.c (genEndFunction, genZ80Code),
10881         * src/z80/gen.h,
10882         * src/z80/z80.h,
10883         * src/pic/gen.c (genEndFunction, genpic14Code),
10884         * src/pic/gen.h,
10885         * src/pic16/gen.c (genEndFunction, genpic16Code),
10886         * src/pic16/gen.h,
10887         * src/avr/gen.c (genEndFunction, genAVRCode),
10888         * src/avr/gen.h,
10889         * src/xa51/gen.c (genEndFunction, genXA51Code),
10890         * src/xa51/gen.h,
10891         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
10892         specific code to cdbFile.c and out of the backend code generators
10893
10894         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
10895         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
10896         starting address is now 0
10897
10898         * as/hc08/asm.h,
10899         * as/hc08/m08pst.c,
10900         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
10901         assembler directive for DWARF support
10902         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
10903
10904         * src/src.dsp,
10905         * src/Makefile.in,
10906         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
10907
10908 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10909
10910         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
10911         and inappropriate peephole optimization in jump tables
10912
10913 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10914
10915         * as/hc08/m08pst.c,
10916         * src/SDCCglue.c: sdccopt works for the hc08 port now
10917
10918 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
10919
10920         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
10921
10922 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10923
10924         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
10925
10926 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10927
10928         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
10929         rules
10930         * src/SDCCmain.c,
10931         * src/SDCCglobl.h,
10932         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
10933         comments from the peephole optimizer replacement rules
10934         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
10935         symbols
10936         * src/SDCCcse.c (updateSpillLocation),
10937         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
10938         equivalents
10939         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
10940         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
10941         objects far pointers
10942
10943 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10944
10945         * src/SDCCsymt.h: a missing part of my last change
10946         * src/pic/ralloc.c (regTypeNum),
10947         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
10948
10949 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10950
10951         * src/SDCCicode.h,
10952         * src/SDCCicode.c (aggrToPtrDclType),
10953         * src/SDCCptropt.h,
10954         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
10955         ptrPseudoSymConvert),
10956         * src/pic/ralloc.c (regTypeNum),
10957         * src/pic16/ralloc.c (regTypeNum),
10958         * src/hc08/ralloc.c (regTypeNum),
10959         * src/ds390/ralloc.c (regTypeNum),
10960         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
10961         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
10962
10963 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10964
10965         * link/z80/lkmain.c (afile),
10966         * as/hc08/lkmain.c (afile),
10967         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
10968         prevent a pointer problem when a filename has no directory and
10969         no extension specified.
10970
10971 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10972
10973         * link/z80/lkmain.c (afile): allow periods in directory names
10974         * link/z80/lkmain.c (afile),
10975         * as/mcs51/lkmain.c (afile),
10976         * as/hc08/lkmain.c (afile): allow linker script file to have an
10977         extension other than ".lnk"
10978         * link/z80/lklex.c (getfid),
10979         * link/z80/lkmain.c (parse),
10980         * as/mcs51/lklex.c (getfid),
10981         * as/mcs51/lkmain.c (parse),
10982         * as/hc08/lklex.c (getfid),
10983         * as/hc08/lkmain.c (parse): Support comments in the linker script
10984         file on lines by themselves and after filenames
10985
10986 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10987
10988         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
10989
10990 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10991
10992         * src/z80/peeph-z80.def: removed some peephole rules that don't
10993         work with multibyte arithmetic (fixed bug #937126)
10994         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
10995         to registers and not global variables
10996         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
10997         geniCodePreInc, geniCodePostDec, geniCodePreDec,
10998         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
10999         checking for assignments not internally generated (fixed bug #931895)
11000         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
11001         structure member (fixed bug #930072)
11002
11003 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11004
11005         * src/SDCCmain.c (linkEdit),
11006         * src/hc08/main.c (_hc08_parseOptions),
11007         * as/hc08/Makefile.in,
11008         * as/hc08/aslink.h,
11009         * as/hc08/asm.h,
11010         * as/hc08/m08pst.c,
11011         * as/hc08/lkrloc.c (relr, rele),
11012         * as/hc08/lkarea.c (lnkarea)
11013         * as/hc08/lkmain.c (afile, parse),
11014         * as/hc08/lkelf.c: support for ELF output
11015         * as/hc08/lks19.c (s19),
11016         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
11017
11018 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11019
11020         * as/mcs51/lkihx.c: Fixed bug #899105.
11021
11022 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11023
11024         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
11025         .dsp files from Unix to DOS.
11026
11027 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11028
11029         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
11030         function pointers; we have been compliant for several months now.
11031         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
11032         change that was accidently commented out
11033         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
11034         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
11035         bug #922319
11036
11037 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11038
11039         * src/hc08/gen.c: output of all of the internal debugging information
11040         is now controlled by the D() macro; it is disabled by default
11041
11042 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11043
11044         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
11045         harder to keep the same registers during a CAST iCode
11046         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
11047         long via int can be done in a single cast, if the signedness is
11048         correct.
11049         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
11050         putchar() in tinibios.c in ds390's library
11051
11052 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
11053
11054         * src/SDCCast.c (decorateType): fixed bug #898889,
11055         cast result of a literal complement too
11056         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
11057         fixed check for bitfields
11058
11059 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
11060
11061         * src/SDCCicode.c (geniCodeLogic): made it static,
11062         (geniCodeLogicAndOr): added in order to fix bug #905492,
11063         (ast2iCode): fixed bug #905492
11064         * support/regression/tests/bug-905492.c: added
11065         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
11066         (processParms): fixed bug #927659: don't copy parms, this will clear
11067         decorated flag
11068         * support/regression/tests/bug-927659.c: added
11069
11070 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
11071
11072         * src/SDCCast.c (addCast): don't cast float to char
11073         * device/lib/libsdcc.lib: added _memmove
11074
11075 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
11076
11077         * device/lib/large/Makefile: fixed parallel execution by
11078         replacing `make` by `$(MAKE)`
11079
11080 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11081
11082         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
11083         offsets (fixes bug #923936)
11084
11085 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
11086
11087         * device/lib/small/Makefile: fixed parallel execution by
11088         replacing `make` by `$(MAKE)`
11089
11090 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
11091
11092         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
11093
11094 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
11095
11096         * src/pic/gen.c (genCpl): multi-byte complements were not working.
11097         * src/regression/Makefile: Regression test was not running.
11098
11099 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
11100
11101         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
11102         complement if possible
11103         * src/SDCCval.c (valComplement),
11104         * src/SDCCicode.c (operandOperation): fixed complement of literal
11105         * support/regression/tests/onebyte.c (testComplement): added
11106
11107 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
11108
11109         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
11110         return an optimized tree; actually replace actParm with the new tree
11111         * src/SDCCast.h: added some parantheses to remove side effects
11112         * support/regression/tests/bug-920866.c
11113
11114 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
11115         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
11116         Bit operands were not being handled properly in the pic14 port.
11117         (now src/regression/add.c passes again).
11118
11119 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11120
11121         * src/SDCC.y (labeled_statement): case and default no longer require
11122         a following statement (RFE #893037)
11123
11124 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11125
11126         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
11127         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
11128         disabled (fixes bug #916294)
11129         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
11130         "mov a,acc"; patch provided by Lenny Story
11131         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
11132
11133 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11134
11135         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
11136         functions
11137         * src/ds390/gen.c (genFunction, genEndFunction),
11138         * src/ds390/ralloc.c (ds390_assignRegisters),
11139         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
11140         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
11141         pushed if there are parameters passed on the stack. Also, a cleaner
11142         way to decide if r0/r1 should be pushed/popped. (Together they fix
11143         bug #918693)
11144
11145 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11146
11147         * doc/sdccman.lyx,
11148         * device/lib/mcs51/crtpagesfr.asm,
11149         * device/lib/mcs51/crtxinit.asm,
11150         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
11151         to avoid confusion with Si Lab's SFRPAGE register.
11152
11153 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11154
11155         * src/SDCCglue.c (emitMaps): allow public sfr variables
11156         * src/SDCCglue.c (initialComments): include compiler build date
11157         with compiler version and put the timestamp of the generated
11158         assembly file on a serperate line to be less confusing.
11159         * src/port.h: added genInitStartup hook
11160         * src/avr/main.c,
11161         * src/ds390/main.c,
11162         * src/hc08/main.c,
11163         * src/pic/main.c,
11164         * src/pic16/main.c,
11165         * src/xa51/main.c,
11166         * src/z80/main.c: genInitStartup initialize as NULL (default to
11167         historical behaviour)
11168         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
11169         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
11170         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
11171         library instead of hard coding it into the compiler.
11172         * support/regression/ports/mcs51-stack-auto/spec.mk,
11173         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
11174         * device/lib/mcs51/Makefile,
11175         * device/lib/small/Makefile,
11176         * device/lib/large/Makefile,
11177         * device/lib/mcs51/crtpagesfr.asm,
11178         * device/lib/mcs51/crtstart.asm,
11179         * device/lib/mcs51/crtxclear.asm,
11180         * device/lib/mcs51/crtxinit.asm,
11181         * device/lib/mcs51/crtclear.asm,
11182         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
11183         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
11184         and into user configurable files.
11185         * device/lib/clean.mk: clean mcs51 directory too
11186         * support/regression/tests/longlit.c: added static to T1 declaration
11187         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
11188         accesses in the initialization code
11189
11190 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11191
11192         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
11193         OSCTRIMVAL as noted in bug #916008
11194
11195 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11196
11197         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
11198         in loops with multiple exits (reported as incorrect registers
11199         used by Martin Helmling in Sdcc-user list)
11200
11201 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11202
11203         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
11204         made ds390 register extensions look less like error messages
11205
11206 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11207
11208         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
11209         reported by Adam Wozniak in Sdcc-user list
11210
11211 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
11212
11213         * src/SDCCast.c (decorateType): fixed with bug and promotion in
11214         arithmetic optimizations, added debug output
11215
11216 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
11217
11218         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
11219         * sdcc.spec: updated and split sdcc into 3 rpms
11220         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
11221         needed for literals of LEFT_OP and '+'
11222         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
11223         introduced RESULT_TYPE_NOPROM
11224         (geniCodeMultiply): fixed logic for decision if mul is optimized to
11225         left shift
11226         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
11227         limited promotion to int only for '*'
11228         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
11229
11230 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
11231
11232         * src/pic16/gen.c (genSkip),
11233         (genc16bit2lit), (gencjneshort): commented out
11234         (is_LitOp): new helper function, checks operand type
11235         (genCmpEq): rewritten
11236
11237 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
11238
11239         * support/regression/tests/bug-908454.c: added
11240
11241 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
11242
11243         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
11244         * src/SDCCicode.c (usualBinaryConversions): op needs int type
11245         (geniCodeCast): cosmetic, don't preserve bit storage class
11246         (geniCodeLeftShift): added promotion
11247         (geniCodeLogic): fixed regression
11248         * src/SDCCsymt.c (computeTypeOr): accept bits too
11249         (compareType): 2nd part of fix for bug #908454, needed for bitfields
11250
11251 2004-03-07  Borut Razem <borut.razem AT siol.net>
11252
11253         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
11254
11255 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
11256
11257         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
11258         version of pic16_genPackRegisters which does not check if ic is a
11259         CAST operator,
11260         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
11261         function cause string1.c regression test fails
11262
11263 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
11264
11265         * sim/ucsim/configure.in,
11266         * sim/ucsim/configure,
11267         * sim/ucsim/doc/Makefile.in: use docdir
11268         * src/SDCC.y: fixed sbit atrributes
11269         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
11270         * src/SDCCast.c (decorateType): |^& need special promotion handling
11271         * src/SDCCast.h,
11272         * src/SDCCsymt.h: moved definition of RESULT_TYPE
11273         * src/SDCCsymt.h (computeType),
11274         * src/SDCCicode.c: computeType() needs op
11275         * src/SDCCsymt.c (checkTypeSanity),
11276         * doc/sddman.lyx: "plain" bitfields are unsigned
11277         * src/SDCCsymt.c (computeTypeOr): added
11278         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
11279         |^& ops
11280         * src/SDCCval.c (val*): computeType() needs op
11281         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
11282         * support/regression/tests/onebyte.c: added tests for |^&
11283
11284 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
11285
11286         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
11287         for writing icode into asm output.
11288
11289 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
11290
11291         * src/pic16/device.c: added some debug lines enabled
11292         with macro DEBUG_CHECK,
11293         * src/pic16/genarith.c: more debug in genPlus,
11294         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
11295         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
11296         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
11297         * (aopForSym): onStack symbols are re-placed in data memspace,
11298         and onStack flag is cleared,
11299         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
11300         copy temporary pcodeop,
11301         * (genPcall): added warning for not updating PCLATU,
11302         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
11303         always true for pic16 port,
11304         * (genMultOneWord): NEW, supports integer multiplication,
11305         * (genMult): modified to call genMultOneWord,
11306         * (ifxForOp): added warning when return NULL,
11307         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
11308         flag is set before call to operandFromSymbol for implicit
11309         added structures,
11310         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
11311         options.intlong_rent are set by default,
11312         * (_hasNativeMulFor): modified to allow port generation of integer
11313         multiplication,
11314         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
11315         set regtype to REG_SFR for all registers, restricting seting the
11316         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
11317
11318 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11319
11320         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
11321         more than 500 times in the regression tests
11322
11323 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11324
11325         * support/Util/SDCCerr.h,
11326         * support/Util/SDCCerr.c,
11327         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
11328         enumerator_list),
11329         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
11330         for symbol conflicts.
11331         * support/valdiags/tests/enum.c,
11332         * support/valdiags/tests/tentdecl.c,
11333         * support/valdiags/tests/struct.c: expect possible error messages
11334         referring to original symbol definitions.
11335         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
11336         * src/SDCCsymt.h,
11337         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
11338
11339 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
11340
11341         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
11342
11343 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
11344
11345         * src/pic16/ralloc.c (newReg): fixed bug #908929
11346
11347 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11348
11349         * src/ds390/gen.c: added missing #include "main.h"
11350
11351 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
11352
11353         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
11354         checking if symbol is already in set,
11355         * src/pic16/device.h: prototype for checkAddSym,
11356         * src/pic16/gen.c: (_G): added entry interruptvector,
11357         * (assignResultValue): removed some commented out lines,
11358         * (genFunction): check for ISR via sym->type, absolute section for
11359         interrupt code is created via a new pBlock, the goto instruction is
11360         placed now correctly at the interrupt vector position, changed all
11361         references from ivec to _G.interruptvector,
11362         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
11363         is the interrupt is a high priority one, same for return from ISR,
11364         * src/pic16/glue.c: changed all calls of addSetHead for publics and
11365         externs to calls of checkAddSym,
11366         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
11367         pic16_pcode_verbose flag is set,
11368         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
11369         * src/pic16/pcoderegs.c: message about how many registers are saved
11370         will only be emitted if pic16_pcode_verbose flag is set,
11371
11372 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11373
11374         * src/ds390/ralloc.h,
11375         * src/ds390/ralloc.c (ds390_regWithIdx),
11376         * src/ds390/gen.c (emitcode),
11377         * src/ds390/main.h,
11378         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
11379         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
11380         ds390operandCompare, getRegsRead, getRegsWritten,
11381         initializeAsmLineNode): customized instruction size calculation for
11382         ds390, started basis for some register optimizations
11383         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
11384         corresponding assembly output
11385         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
11386         missing push/pop of r0/r1. Optimized push/pops
11387
11388 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11389
11390         * src/mcs51/main.c (instructionSize): fixed ACALL size
11391         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
11392
11393 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
11394
11395         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
11396         the sorting of rlist with NULL elements
11397         * (print_idataType, print_idata): NEW to create idata sections
11398         * src/pic16/device.h: idataSymSet new variable
11399         * src/pic16/gen.c (genFunction): fixed some bugs in string
11400         comparing, improved the absolute section creation for ISRs,
11401         added FSR0L/FSR0H in registers that are saved in an ISR,
11402         * (genInline): fixed the processing of inline snippets,
11403         now they undergo no process by the peephole optimizer
11404         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
11405         are placed in idataSymSet,
11406         * (pic16emitStaticSeg): extern symbols are added in externs,
11407         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
11408         switching when aboslute variables are placed in access bank memory
11409         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
11410         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
11411         commented out with #if,
11412         * (pic16_packRegisters): reintroduce the check for CAST because some
11413         symbols are not correctly handled,
11414         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
11415         pCodeInstruction instead of pCode,
11416         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
11417         pCodeAsmDir definition,
11418         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
11419         directive, then the argument directive is emitted without the leading
11420         tab, hack for inline labels which must be in the first column,
11421         * (compareLabel,pic16_findNextInstruction),
11422         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
11423         * (insertBankSwitch): modified for the new pCodeAsmDir,
11424
11425 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11426         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
11427
11428         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
11429         instance,
11430         * (pushSide): commented out with #if,
11431         * (assignResultValue): fixed some typos in saving
11432         registers,
11433         * (genPcall): FIXED and sync'ed with genCall,
11434         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
11435         * (genNearPointerGet): fixed to handle some more cases,
11436         implementation scheme via table reads,
11437         * (genConstPointerGet): modified to access code memory correct,
11438         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
11439         and improved to handle some cases
11440         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
11441         instead of "RETLW" for init data
11442         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
11443         not IN_DIRSPACE, work around to reduce bank switching when aboslute
11444         variables are placed in access bank memory (<0x80 and >=0xf80),
11445         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
11446         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
11447         TBLWT_POSTDEC,TBLWT_PREINC
11448         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
11449         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
11450         directives
11451         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
11452         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
11453         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
11454         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
11455
11456 2004-02-29  Borut Razem <borut.razem AT siol.net>
11457
11458         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
11459         support/Util/findme.h, support/Util/system.h: enhance binary relative
11460         search for lib and include by using findProgramPath()
11461
11462 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11463
11464         * src/SDCCpeeph.h,
11465         * src/SDCCpeeph.c (pcDistance),
11466         * src/port.h,
11467         * src/mcs51/ralloc.h,
11468         * src/mcs51/ralloc.c (mcs51_regWithIdx),
11469         * src/mcs51/main.h,
11470         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
11471         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
11472         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
11473         size calculation port specific, started basis for some register
11474         optimizations
11475         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
11476         missing push/pop of r0/r1. Optimized push/pops
11477         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
11478         * device/lib/_modsint.c (_modsint),
11479         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
11480         and stack version so regression tests pass
11481
11482 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
11483
11484         * src/Makefile.in (dep): include SLIBOBJS in dependency check
11485         * src/SDCCast.c (decorateType): catch another small optimization
11486         with '?' operator
11487         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
11488         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
11489         modified to finally use computeType() all over SDCC,
11490         see Feature Request #877103
11491         * src/SDCCval.h: cosmetic
11492         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
11493         valCompare(); regression tested in muldiv.c
11494         * support/regression/tests/muldiv.c (testMod): mod sign follows
11495         dividend only
11496
11497 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
11498
11499         * src/SDCCast.c (decorateType): fixed bug #902362
11500         * doc/INSTALL.txt: fixed install instructions for win32
11501
11502 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
11503
11504         * device/include/Makefile.in (install): fixed by replacing spaces
11505         by tabs
11506         * doc/README.txt,
11507         * doc/INSTALL.txt: updated for release
11508         * doc/sdccman.lyx: added warning for --xstack being buggy
11509
11510 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
11511
11512         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
11513         to eliminate build warnings.
11514         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
11515
11516 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
11517            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11518
11519         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
11520         removed -penable-stack, added comment for stack pragma, added
11521         warning for not initializing the stack/frame registers, removed
11522         comment at interrupts section
11523
11524         Stack is made permanent, there is no ability to disable stack usage.
11525         * src/pic16/device.h,
11526         * src/pic16/device.c: removed all references to USE_STACK macro,
11527         * src/pic16/device.c (pic16_dump_section): when no elements in
11528         rlist, free rlist before return,
11529         * (pic16_dump_int_registers): NEW, internal registers are a new set
11530         of general purpose registers reused by each function,
11531         * (checkAddReg): returns 1 if registers is added to set,
11532         * (pic16_groupRegistersInSection): when a registers is of type
11533         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
11534         * src/pic16/device.h: memRange and Assigned Memory are deleted,
11535         SRCASECMP macro is moved here from device.c
11536         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
11537         PO_PCLATU, PO_PRODL, PO_PRODH,
11538         * (pic16_pCodeOpType, genMinus,
11539         changed compares to "a" register, with AOP_ACC,
11540         * (pic16_genPlus): fixed some bugs and indented properly,
11541         * (pic16_addSign): changed size to size+offset in the MOVWF
11542         instruction,
11543         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
11544         multiply 8-bit operand by literal, result is 8-bit,
11545         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
11546         multiply 2 8-bit operand, result is 8-bit,
11547         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
11548         genUMult8X*_16,
11549         * src/pic16/gen.c: changed accUse to contain WREG only,
11550         * (pic16_emitcomment): renamed to pic16_emitpcomment,
11551         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
11552         true, do not use immediate addressing any more unless sym is a
11553         pointer in codespace,
11554         * (aopForRemat): do not use immediate addressing when symbol not in
11555         codespace and when symbol's address is requested,
11556         * (aopOp): for-loop in if(sym->accUse) is modified for the new
11557         accUse size (= 1),
11558         * (aopGet): added case for AOP_ACC and don't return "accumulator
11559         bug" but WREG instead,
11560         * (popGetTempReg): pushes contents of temporary register in stack,
11561         * (popReleaseTempReg): pops contents of temporary register from
11562         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
11563         * (pic16_popGet): separated case AOP_ACC to return register WREG
11564         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
11565         or PO_IMMEDIATE and initializes their instance/offset appropriately,
11566         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
11567         the use of immediate pointers to certain cases only.
11568
11569         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
11570         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
11571         * (assignResultValue, genCall, genRet): modified to use the new
11572         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
11573         genPcall is still broken,
11574         * (genFunction): added code to create 'A' type pBlocks when
11575         interrupt functions are generated, code not extensively tested yet,
11576         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
11577         * (genEndFunction): modified so ISRs pop stored registers from stack,
11578         * (genMultOneByte): cleanup,
11579         * (AccRsh): added flag andmask, to and result with appropriate mask,
11580         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
11581         * (genDataPointerGet): fixed and reenabled its use,
11582         * (genNearDataPointerGet): bugs fixed,
11583         * (genDataPointerSet): bugs fixed,
11584         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
11585         pic16_DumpSymbol, pic16_DumpOp,
11586         * src/pic16/genutils.h: function prototypes for the above functions,
11587         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
11588         pointers,
11589         * (pic16emitRegularMap): many many many improvements, but needs a
11590         major cleanup,
11591         * src/pic16/main.c: enable_stack in pic16_options is removed,
11592         * (_pic16_parseOptions): removed command line options -penable-stack,
11593         * (_process_pragma): emit stack symbol only when stack pragma is
11594         processed,
11595         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
11596         redirected to FSR0L/FSR0H pair,
11597         * (pic16_get_op, pic16_get_op2): modifications and improvements,
11598         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
11599         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
11600         for immediates,
11601         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
11602         * (dumpPicOptype): NEW,
11603         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
11604         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
11605         with movff instruction,
11606         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
11607         added pic16_int_regs, some packRegsFor* functions are commented out,
11608         because produce errors,
11609         * src/pic16/NOTES: minor modifications
11610
11611 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11612
11613         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
11614         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
11615         --pack-iram.
11616         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
11617         * as/mcs51/lkaomf51.c: fixed bug #895763
11618
11619 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
11620
11621         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
11622
11623 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11624
11625         * doc/sdccman.lyx: added details about the HC08 storage classes and
11626         interrupts, fixed the register usage info for z80 & gbz80
11627
11628 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
11629
11630         * doc/sdccman.lyx: added more pic16 port documentation
11631         * device/include/pic16/: added header pic18fregs.h
11632
11633 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
11634
11635         * doc/sdccman.lyx: added Vangelis' contribution
11636
11637 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11638
11639         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
11640         extend to the next CALL or PCALL, not just to the next CALL.
11641
11642 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
11643
11644         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
11645
11646 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11647
11648         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
11649         bug #895752 and a better fix for bug #716790
11650
11651 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11652
11653         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
11654
11655 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11656
11657         * doc/sdccman.lyx: minor changes, minor changed
11658
11659 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
11660
11661         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
11662         which can't handle SDCC_NEWONEBYTEOPS,
11663         (geniCodeMultiply): removed conversion from mult to shift for pic14
11664         and pic16
11665
11666 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11667
11668         * src/hc08/gen.h,
11669         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
11670         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
11671         thus fixing bug #895406
11672
11673 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
11674
11675         * device/lib/_modsint.c,
11676         * device/lib/_modslong.c: sign follows divisor only
11677         * src/hc08/gen.c (genMultOneByte): if result size is 1,
11678         signs or signedness can be ignored
11679         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
11680         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
11681         added optimization for IFX,
11682         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
11683         arguments;
11684         reenabled optimization for IFX, which was removed on 2004-01-11
11685         * src/SDCCast.h: added return type IFX
11686         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
11687         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
11688         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
11689         SDCC_OLDONEBYTEOPS selects the old behaviour
11690         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
11691         changed again and commented promotion rule
11692         * src/SDCCval.c (valDiv): promotion no longer necessary
11693         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
11694         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
11695         rewritten
11696         * support/regression/tests/onebyte.c: added
11697
11698 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
11699
11700         * gen.c (genInline): reverted to old code for assemnling inline
11701         code because of bug reported James Chadd
11702
11703 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
11704
11705         * ralloc.h: missing declarations from previous patch,
11706         seems that patch for ralloc.h was never applied, fixed
11707
11708 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11709            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
11710
11711         * pcode.c,
11712         * pcode.h,
11713         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
11714         indirect addressing. Marked FSR0 as deprecated
11715         * gen.c (pointerCode): commented out, not needed now
11716         (pic16_popGet2p): new MOVFF helper function
11717         (genGenPointerGet),
11718         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
11719         (shiftRLong): removed duplicate debugging info
11720
11721 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11722
11723         * src/ds390/gen.c (genNearPointerGet),
11724         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
11725         optimization with bits, but not bitfields.
11726         * src/ds390/ralloc.c (packRegisters),
11727         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
11728
11729 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
11730
11731         * src/SDCCcse.c (algebraicOpts): copy operands before modification
11732
11733 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11734
11735         * src/SDCCsymt.h,
11736         * src/SDCCicode.c (operandFromSymbol),
11737         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
11738         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
11739         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
11740         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
11741         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
11742         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
11743         bug #892038
11744         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
11745         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
11746         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
11747         * src/SDCCsymt.c (newSymbol),
11748         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
11749         enumerator_list),
11750         * src/SDCCval.h,
11751         * src/SDCCval.c (newiList): fixed bug #885705
11752
11753 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11754
11755         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
11756         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
11757
11758 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11759
11760         * device/include/c8051f120.h,
11761         * device/include/c8051f300.h,
11762         * device/include/c8051f310.h: added/updated header files for Silicon
11763         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
11764         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
11765         in new section Submitting patches
11766
11767 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11768
11769         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
11770         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11771         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11772         genGenPointerSet),
11773         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
11774         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11775         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11776         genGenPointerSet),
11777         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
11778         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11779         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11780         genGenPointerSet),
11781         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
11782         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11783         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11784         genGenPointerSet): fixed bug #892400
11785         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
11786         to eliminate build warnings.
11787         * src/SDCCast.c (processParms),
11788         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
11789         fixed bug 751859
11790         * support/valdiag/valdiag.py: added GCC to the list of defines active
11791         when compiling with gcc
11792
11793 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11794
11795         * support/Util/SDCCerr.h,
11796         * support/Util/SDCCerr.c,
11797         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
11798         with an incomplete type (fixed bug #883734)
11799         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
11800
11801 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11802
11803         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
11804
11805 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11806
11807         * src/SDCCast.c (decorateType),
11808         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
11809         function pointer implementation
11810         * support/regression/tests/funptrs.c: added tests to verify both forms
11811         of function pointers work correctly. Added tests to verify parameters
11812         are passed in the correct order.
11813
11814 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
11815
11816         * device.c (regCompare): registers are sorted by ascending
11817         address and increasing size,
11818         * main.c (_pic16_finaliseOptions): removed the declaration
11819         of compiler macro MCU. Now a macro of the format pic18fxxxx
11820         will be defined from the command line
11821
11822 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11823             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
11824
11825         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
11826         PCOP_RLCF was overwritten!
11827         * gen.c (genSkip): commented out calls to pic16_emitcode,
11828         * (genCmpEQ): fixed "long" compares, only high word did get compared,
11829         * (genlshTwo),
11830         * (genRRC): added debugging info,
11831         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
11832         overwritten while shifting,
11833         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
11834         overwritten while shifting,
11835         * (AccLsh),
11836         * (AccRsh),
11837         * (shiftLLeftOrResult),
11838         * (shiftRLeftOrResult),
11839         * (shiftRLong),
11840         * (shiftLLong): Implemented with pic16_emitpcode
11841         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
11842         * (genLeftShift): Fixed bug, operand for shift by variable always
11843         was "and"ed with 0x0f,
11844         * (genLeftShiftLiteral),
11845         * (genrshTwo),
11846         * (genRightShiftLiteral): added debugging info,
11847         * (genrshFour): added comment,
11848         * (genRightShift): determined signedness from operand "left"
11849         instead of "result"
11850
11851 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11852
11853         * src/SDCCicode.c (geniCodeParms),
11854         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
11855         function pointers, fixed function pointer bugs #861242 and #861896
11856
11857 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11858
11859         * device/include/c8051f000.h,
11860         * device/include/c8051f120.h,
11861         * device/include/c8051f300.h: added header files for Silicon
11862         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
11863
11864 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
11865
11866         * src/SDCCast.c (processParams): added new type flow and restructured
11867         (gatherAutoInit): added new type flow
11868         (addCast): cosmetic changes
11869         (getLeftResultType): added new type flow for array indices, patch
11870         provided by Stas, see FR #877103
11871         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
11872         array index patch by Stas
11873         * src/SDCCast.h: added prototype getResultTypeFromType()
11874         * src/SDCCval.h,
11875         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
11876         * src/pic/glue.c (pic14emitStaticSeg),
11877         * src/pic16/glue.c (pic16emitStaticSeg),
11878         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
11879         for initialization of symbols
11880         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
11881         * support/Util/SDCCerr.h:
11882         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
11883         * .version: bumped version number to 2.3.8
11884         * device/include/Makefile.in (install),
11885         * doc/Makefile (install): changed to 'rm `find ...`' construct to
11886         avoid warnings
11887
11888 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
11889
11890         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
11891         Slade Rich fixed an optimization bug
11892         * src/pic/pcodepeep.c,
11893         * src/pic/pcoderegs.c
11894         * doc/Makefile (install): added test for directory
11895
11896 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11897
11898         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
11899         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
11900         * src/pic/ralloc.c (getRegPtr, getRegGpr),
11901         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
11902         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
11903         * as/mcs51/asexpr.c (term),
11904         * as/hc08/asexpr.c (term): fixed bug #887146
11905
11906 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11907
11908         * src/z80/gen.c (genMult): handle single byte result product
11909         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
11910         DUMMY_READ_VOLATILE (fixed bug #886367)
11911
11912 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
11913
11914         * support/regression/tests/libmullong.c: fixed logic, on little endian
11915         hosts we ended without a mullong_wrapper()
11916
11917 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11918
11919         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
11920         virus/worm forged address usage.
11921
11922 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
11923
11924         Fixed promotion, it should be done on AST level:
11925         * src/SDCCast.c (addCast): added promotion to int
11926         (decorateType): updated call to upCast()
11927         * src/SDCCicode.c (geniCodeLeftShift): removed call to
11928         usualUnaryConversions()
11929
11930 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
11931
11932         * support/regression/tests/literalop.c (mulWrapper): Added a
11933         wrapper to remove integer overflow warnings.
11934
11935         * support/regression/tests/float_trans.c: Made work on host.
11936
11937         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
11938         location of sz80.
11939
11940         * support/regression/generate-cases.py (main): Changed from inline
11941         to a main method.
11942
11943         * doc/Makefile (install): Changed to depth first to get rid of
11944         missing directory install warning.
11945
11946         * as/Makefile (install-doc): Made work on Mac.
11947
11948 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
11949
11950         * src/SDCCast.c: added an additional type flow in decorateType() of
11951         opposite direction, see feature request #860006; it's enabled at runtime
11952         by setting the environment variable SDCC_NEWTYPEFLOW
11953         * src/SDCCast.h: changed prototype of decorateType()
11954         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
11955         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
11956         'char' to 'int' can be omitted, if both operands are 'unsigned char';
11957         see feature request #877103
11958         * src/SDCCval.c: updated call of decorateType()
11959         (valBitwise): fixed bug #882876
11960         (valMinus): added promotion
11961         (valLogicAndOr): result is unsigned
11962         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
11963         * src/SDCCsymt.c (computeType),
11964         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
11965         must not cause an unsigned operation
11966         * src/pic/glue (pic14emitRegularMap),
11967         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
11968
11969 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
11970
11971         * src/pic/pcode.c (PCodeID): commented out left over debug code
11972
11973 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
11974
11975         * support/valdiag/tests/overflow.c: added shift tests
11976         * src/pic/device.c,
11977         * src/pic/gen.c,
11978         * src/pic/gen.h,
11979         * src/pic/glue.c,
11980         * src/pic/main.c,
11981         * src/pic/pcode.c,
11982         * src/pic/pcode.h,
11983         * src/pic/pcodepeep.c,
11984         * src/pic/pcoderegs.c,
11985         * src/pic/ralloc.c,
11986         * src/pic/ralloc.h: applied patch from Slade Rich;
11987         added support for multiple code pages and multiple RAM banks on the
11988         PIC 14 port. The ASM files now no longer simply assume all the
11989         code / RAM are in the same page / bank. This means the linker can
11990         safely allocate code/RAM of separate ASM files to different pages/banks.
11991         * doc/sdccman.lyx: added Slade's tips
11992         * src/mcs51/peeph.def: fixed bug #880768
11993
11994 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11995
11996         * src/hc08/ralloc.c (rematStr): fixed bug #879282
11997         * src/SDCCast.c (decorateType): fixed bug #880197
11998
11999 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
12000
12001         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
12002         getopt.h.
12003
12004         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
12005         strtof is not part of C89 and isn't included with Mac OS X.
12006
12007 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12008
12009         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
12010         shiftL2Left2Result): fixed bug #879326
12011         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
12012         (genMultOneByte): fixed bug in signed vs unsigned multiplication
12013         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
12014         address fetch for clr instruction
12015         * device/lib/hc08/_mulint.c: created optimized assembly version
12016         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
12017
12018 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
12019
12020         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
12021         proposed in FR #877103
12022
12023 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
12024
12025         * src/SDCCval.c (cheapestVal): added missing checks
12026         * src/SDCCicode.c (usualBinaryConversions): fixed condition
12027         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
12028
12029 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
12030
12031         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
12032         equal operands
12033
12034 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
12035
12036         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
12037         loaded with the linker search paths (-L arguments) and the libraries
12038         to be linked with the current source (-l arguments). Changes
12039         currently will affect only the pic16 port.
12040         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
12041         include path the port specific paths and port specific libraries,
12042         * gplink command now contains the $3 argument,
12043         * src/pic16/device.h,
12044         * src/pic16/device.c,: structure PIC_device is made public and
12045         renamed to PIC16_device, the same for variable Pics which is renamed
12046         to Pics16. Updated all references to them.
12047         * src/pic16/glue.c (pic16glue): corrected bug with code
12048         initialization which bypassed the variable initializations block.
12049
12050         * device/lib/pic16/Makefile.rules: removed --penable-stack from
12051         COMPILE_FLAGS and added the --nostdinc option
12052
12053 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12054
12055         * device/include/mc68hc908jb8.h: Register defs for another member
12056         of the hc08 family. Contributed by Bjorn Bringert - thanks!
12057
12058 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
12059
12060         Documenting changes from previous commits.
12061         * configure.in (version 1.56),
12062         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
12063         when generating output files to configure the pic16 library,
12064         but now I've commented it out, since gputils aren't installed in the
12065         SF compile farm, so library won't compile
12066
12067         * device/lib/Makefile.in (version 1.56): initially I've added in
12068         target 'all' the prerequestive 'model-pic16' so it compiled the
12069         pic16 library, but now I've commented it out for the same reasons
12070         above,
12071         * added targets 'model-pic16' and 'objects-pic16' to compile the
12072         library
12073         * added target 'port-specific-objects-pic16' to handle the
12074         generated libraries and copy them into the build/ directory
12075         * added target 'clean-intermediate-pic16' to clean intermediate
12076         files into pic16 directory
12077         * in target 'installdirs' added line to create directory pic16 in
12078         the installation path
12079
12080         * device/include/Makefile.in (version 1.11): in target 'install'
12081         added lines to copy all header files to installation path,
12082         * in target 'installdirs' added line create directory for pic16
12083         headers in the installation path
12084
12085 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
12086
12087         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
12088          a function call
12089
12090 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
12091
12092         * configure,
12093         * device/lib/configure.in,
12094         * device/lib/configure: fixed for autoconf 2.57
12095
12096 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12097
12098         * src/z80/main.c (_parseOptions): fixed the portmode= command line
12099         option so that it actually works. Made it specific to the z80, since
12100         the gbz80 doesn't have these kinds of I/O ports.
12101
12102 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12103
12104         * device/include/z180.h,
12105         * device/lib/_memcpy.c,
12106         * device/lib/_memmove.c,
12107         * device/lib/_mulint.c,
12108         * device/lib/ser_ir.c,
12109         * device/lib/ser_ir_cts_rts.c,
12110         * device/lib/_strcmp.c,
12111         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
12112         * src/z80/main.c (_process_pragma): add support for pragmas bank and
12113         portmode; added deprecation warning for bank= and protmode= forms.
12114         Also, guard against buffer overflow.
12115         * src/z80/gen.c (aopGet): generate better code for sfr banked read
12116
12117 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12118
12119         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
12120         changed interrupt vector table generation to only emit declared vectors.
12121         * device/include/Makefile.in: added missing backslash
12122         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
12123
12124 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
12125
12126         Mainly changes to support compilation of the device libraries
12127         * src/pic16/device.c: stack is allocated via symbol and not
12128         via literal number. The symbol is placed in the corresponding
12129         position of the data ram
12130         * (pic16_dump_section): relocatable and absolute uninitialized
12131         data are now emitted in sorted order to reduce section naming,
12132         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
12133         weren't marked as being in the access bank,
12134
12135 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
12136
12137         Added portion of GNU PIC Library under the directory
12138         device/include/pic16 and device/lib/pic16. These files
12139         contain the declarations of SFRs for the PIC18Fxx2 devices.
12140         The directory is initialized via configure from toplevel.
12141
12142 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
12143
12144         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
12145         the spilllocations to be compared correctly
12146
12147 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
12148
12149         * src/SDCCast.c (decorateType): fixed bug introduced today
12150
12151 2004-01-12  Borut Razem <borut.razem AT siol.net>
12152
12153         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
12154         doc/sdccman.lyx: upper case pragmas are deprecated
12155
12156 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
12157
12158         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
12159         in simpler and even better code
12160
12161 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
12162
12163         * src/SDCCicode.c (operandOperation): fixed bug #874819
12164         * src/SDCCast.c (decorateType): fixed
12165         char foo (unsigned long ul) { return ul > 0; }
12166
12167 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12168
12169         * doc/sdccman.lyx: Moved and added some sections, small changes
12170         all over. Telling LaTeX to be less strict with word spacing
12171         to better keep the right margin. Changed some notes about
12172         maintainance of the ports in section 3.2.1 - is it OK like this?
12173
12174 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
12175
12176         SDCC source changes:
12177         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
12178         convilong): modified to inform the pic16 port that builtin functions
12179         are external
12180
12181         PIC16 PORT specific changes:
12182         * src/pic16/device.c pic16_dump_equates() added,
12183         processor registers declared internally by the port are emitted in
12184         the translation as equates,
12185         * src/pic16/gen.c: inline code is passed unprocessed to the
12186         translation,
12187         * (pic16_popGetLit2): fnuction modified to take second operand as
12188         pCodeOp pointer and not as literal,
12189         * (popRegFromIdx): prefixed with pic16_,
12190         * (pic16_popCombine2): modified to receive already allocated pCode
12191         operands,
12192         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
12193         * (genFunction): initializes local stack frame and pushes on stack
12194         all the registers used by this function,
12195         * (genEndFunction): restores all registers from stack and restores
12196         stack frame,
12197         * src/pic16/glue.c (pic16emitRegularMap): various changes and
12198         improvements,
12199         * (pic16glue): changed the program startup sequence,
12200         * added new dbName code 'A' for functions placed in absolute section
12201         * src/pic16/main.c: added function attribute _naked,
12202         * added pragma 'code' to place a fnuction at an absolute address,
12203         * added command line arguments --debug-ralloc and --pcode-verbose,
12204         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
12205         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
12206         * (pic16_newpCodeOpLit2): modified to take the second operand as
12207         pCodeOp pointer,
12208         * (pic16_printpBlock): modified to emit each function in a separate
12209         section,
12210         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
12211         UPPER for immediate operands,
12212         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
12213         instruction,
12214         * src/pic16/peeph.def: all peepholes with movff are commented out,
12215         because there is a problem in the pcode peep optimizer,
12216         * src/pic16/ralloc.c: the register allocator can now reuse local
12217         function symbols for another function. This saves register usage.
12218         * src/pic16/ralloc.h: added flag isLocal in structure regs,
12219
12220         Added file src/pic16/NOTES with information about program writing on
12221         the current port version.
12222
12223 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12224
12225         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
12226         and peephole 252 (array access)
12227
12228 2004-01-09  Borut Razem <borut.razem AT siol.net>
12229
12230         * src/SDCCmain.c : fixed #872250: -l command line defined library
12231           files are scanned before standard library files
12232
12233 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12234
12235         * src/SDCCast.c (decorateType): fixed bug #874046
12236
12237 2004-01-09  Borut Razem <borut.razem AT siol.net>
12238
12239         * support/scripts/sdcc.nsi: remove previous installation
12240
12241 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12242
12243         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
12244         bytes for last interrupt vector (mcs51)
12245         * sdcc.spec: fixed typo
12246
12247 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12248
12249         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
12250         gen51Code): more efficient parameter receive for --model-large
12251         ("bug" #845294)
12252
12253 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12254
12255         * src/ds390/main.c,
12256         * src/z80/main.c: added missed needLinkerScript flags (more than
12257         one port structure defined in these file)
12258         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
12259         bug #795325
12260
12261 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
12262
12263         * src/SDCCmain.c: removed various references to DEFAULT_PORT
12264         * src/port.h: added flag needLinkerScript in port->linker
12265         structure to inform whether to create a .lnk file or not,
12266         * src/avr/main.c,
12267         * src/ds390/main.c,
12268         * src/hc08/main.c,
12269         * src/mcs51/main.c,
12270         * src/pic/main.c,
12271         * src/pic16/main.c,
12272         * src/xa51/main.c,
12273         * src/z80/main.c: changed appropriately to configure
12274         needLinkerScript flag
12275         * src/pic/gen.c,
12276         * src/pic16/gen.c (genAddrOf): fixed bug #863624
12277         * src/pic/glue.c: added variable udata_section_name to
12278         override default uninitialized data segment definition for
12279         devices only with SHAREBANK memory (reported from Erik Epetrich)
12280         * (pic14emitOverlay): modified to emit a commented overlay segment
12281         directive when no overlay data exist
12282         * (picglue): modified to emit uninitialized data segment
12283         according to udata_section_name
12284         * src/pic/main.c (_pic14_parseOptions): added command line
12285         options --udata-section-name=[name] to override default
12286         udata definition name
12287         * modified _linkCmd and _asmCmd to include compiler passed
12288         arguments via -W option
12289         * src/pic16/main.c: added $l in _asmCmd, changed extension for
12290         object file from '.rel' to '.o' in port->linker structure,
12291         changed size of fptr from 2 to 3 in port structure
12292
12293 2004-01-07  Borut Razem <borut.razem AT siol.net>
12294
12295         * support/scripts/sdcc.nsi: update PATH
12296         * support/scripts/sdcc.ico: craeted
12297
12298 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
12299
12300         * device/include/Makefile.in: fix install
12301         * doc/Makefile: fix install
12302
12303 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12304
12305         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
12306         in bug #860505
12307         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
12308         how the function variable allocation summary is displayed; also
12309         include information about variables allocated to the overlay
12310         segment
12311
12312 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12313
12314         * as/mcs51/lkmain.c: Help about -Y option
12315         * as/mcs51/lkarea.c: Fixed gcc warnings
12316
12317 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
12318
12319         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
12320         fixed warning
12321         * support/valdiag/tests/overflow.c: added
12322         * src/SDCCast.c (decorateType),
12323         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
12324         LEFT_OP (left shift)
12325
12326 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12327
12328         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
12329         (default behaviour).
12330
12331 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12332
12333         A python script to validate compiler diagnostic messages. It can be
12334         used to verify that sdcc complains about bad c source code and
12335         gives a good location of the error.
12336         * support/valdiag/Makefile,
12337         * support/valdiag/valdiag.py,
12338         * support/valdiag/tests/*
12339
12340 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12341
12342         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
12343         * src/SDCCsymt.c (newEnumType),
12344         * src/SDCCsymt.h
12345         * support/Util/SDCCerr.c,
12346         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
12347         enum related bugs.
12348         * support/regression/tests/enum.c: added test for enum values that
12349         require at least 2 bytes of storage.
12350
12351 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
12352
12353         * src/common.h: added ifndef/define/endif macros
12354         around the header file.
12355         Bug reported from Jesus Calvino-Fraga
12356
12357 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
12358
12359         * sdcc.spec: updated
12360         * device/include/Makefile.in: don't install CVS directories
12361         * device/lib/Makefile.in: added removal of CVS directories after install
12362         * doc/Makefile: fixed install, added local_icons
12363         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
12364         * src/mcs51/gen.c (genRightShift): fixed bug #870788
12365         * src/ds390/gen.c (genRightShift): fixed bug #870788
12366         * src/SDCCast.c (decorateType): fixed bug #870781
12367
12368 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
12369
12370         PIC16 port related changes:
12371         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
12372         added variable stackPos,
12373
12374         * gen.c: genCall, assignResultValue: added support for
12375         pushing/retrieving function parameters to/from stack,
12376         genFunction,genEndFunction: setup stack frame for the
12377         generated function,
12378         genAddrOf: will be changed according to bug 863624
12379
12380         * added files genutils.c and genutils.h which contain gen*
12381         debugged and optimised functions extracted from gen.c
12382
12383         * glue.c: added variable 'externs' which holds extern symbols,
12384         pic16emitRegularMap: is modified to properly handle relocatable
12385          symbols under the new scheme,
12386         pic16createInterruptVect: is modified
12387         pic16printPublics: is modified to emit 'global' assembler directives,
12388         added pic16_printExterns to print extern symbols,
12389         pic16glue: initializes stack/frame pointer in the beginning of
12390         the assembly output. Temporary hack, will be corrected later,
12391         because gplink yet does not support stack and SDCC does not
12392         yet support a type of crt0.o object to create the final binary.
12393
12394         * Removed many lines that contain 8051 legacy code.
12395         * The code is finally placed under a 'code' directive.
12396         * Added port specific options.
12397
12398         * _process_pragma: simplified since now we do not need *special*
12399         include file to define SFR registers. But a separate header
12400         will be needed. This will be developed later.
12401         * _pic16_parseOptions: added, parses port specific options:
12402         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
12403         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
12404         --preplace-udata-with=
12405
12406         * _pic16_setDefaultOptions: modified to initialize section names,
12407         but hack is temporarly out of order since it needs improvement.
12408         * _pic16_genAssemblerPreamble: configuration words are emitted by
12409         their address instead of their name. This part is incomplete and
12410         supports only the 18Fxx2 devices. Other devices will emit an error
12411         during assembly since they do not contain the same set of config
12412         registers
12413         * _pic16_genIVT: is modified,
12414
12415         * pcode.c: added definitions for some hardware registers that are needed
12416         for stack support
12417         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
12418         All PCI entries are updated. Now LFSR is supported.
12419         * Removed pic16_pciTRIS is mentioned by mdubuc in source
12420         * added pic16_newpCodeOpLit2 to support instructions with
12421         two literal arguments
12422         * pic16_pCode2str: corrected code that emits assembler instructions
12423         with two literal operands and those that have an access bit modifier
12424         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
12425         this fixes a bug which caused some labels to be lost, when an
12426         assembler directive was added, i.e. banksel,
12427         * pic16_FixRegisterBanking: improved logic that causes the insertion
12428         of bank switching,
12429         * InlineFunction: functions that are called once, are not any more
12430         inlined. This can be a port option in the future,
12431
12432         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
12433
12434         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
12435         hold the corresponding uninitialized symbols,
12436         * pic16_allocProcessorRegister: registers have explicit marked the
12437         accessBank field,
12438         * pic16_allocInternalRegister: registers are explicit marked as
12439         not used,
12440         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
12441         processing list, so bit registers were lost,
12442         *
12443
12444         * ralloc.h: added field 'accessBank' and original symbol operand
12445         in register definition,
12446         * removed the field isMapped from register definition,
12447
12448         ** Several functions have been removed from various sources:
12449         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
12450         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
12451         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
12452         pic16_assignRelocatableRegisters
12453
12454         ** others have been introduced:
12455         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
12456         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
12457
12458 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
12459
12460         * support/scripts/inc2h.pl: changed definition of BIT_AT
12461         to emit 'sbit at' instead of 'bit at'. This was a request.
12462
12463         PIC16 port related preliminary changes:
12464         * gen.c: prefixed function popRegFromString with
12465         pic16_ and all references to it corrected
12466         * pcode.c: all pic16_pc_* hardware registers prefixed
12467         with underscore (_),
12468         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
12469         * ralloc.c: newReg(): when register is REG_SFR then
12470         set address to rIdx,
12471         pic16_allocProcessorRegister(): marks register wasUsed=0
12472         pic16_writeUsedRegs(): added a call to assign processor
12473         registers via pic16_assignFixedRegisters
12474
12475 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12476
12477         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
12478         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
12479         variables in unused register banks.  Also the SSEG is placed
12480         wherever there is enough space for it, and IDATA can be anywhere
12481         in internal RAM.  For now compile using -Wl-Y[stack_size].
12482         The mem file is different for this option as well, since it
12483         makes no sense of talking about DSEG lenght.
12484
12485 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
12486
12487         * src/SDCClrange.c: fixed bug 869095 that caused segfault
12488         in certain cases, e.g. when ROM assignment, patch provided
12489         from Albert den Haan.
12490
12491 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
12492
12493         Many signedness and type propagation fixes:
12494         * src/SDCCicode.c: made geniCodeCast() static
12495         replaced SPEC_ by IS_ (cosmetic)
12496         (operandOperation): fixed div and mod operation
12497         (usualBinaryConversions): added support for promotion of char
12498         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
12499         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
12500         (geniCodeAdd): an array index will stay unsigned, even if promoted
12501         from char to int
12502         (geniCodeArray): ditto
12503         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
12504         * src/SDCCsymt.c (computeType): added more support for char;
12505         promotion of char is selectable by promoteCharToInt, fixed signedness
12506         for all cases
12507         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
12508         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
12509         * src/SDCCval (val*): replaced signedness calculation by
12510         computeType()
12511         rearranged if-branches (cosmetic)
12512         (valShift): added warning W_SHIFT_CHANGED
12513         (valCompare): fixed problem with different types
12514         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
12515         * support/regression/tests/literalop.c: added many cases
12516         * support/regression/tests/ast_constant_folding.c: changed finally to
12517         'unsigned int'
12518         * .version: new year, new version: 2.3.7
12519         * src/SDCCmain.c (main): applied patch #866468
12520         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
12521         provided by Scott Bronson
12522         * doc/sdccman.lyx: updated documentation for sdcdb
12523         updated and added chapter tips
12524
12525 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12526
12527         * src/SDCCsymt.h: missing from yesterday's commits
12528
12529 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12530
12531         * src/SDCC.y (struct_or_union_specifier),
12532         * support/Util/SDCCerr.c,
12533         * support/Util/SDCCerr.h: verify that struct & union tags are used
12534         as declared.
12535
12536 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12537
12538         * src/SDCCglobl.h: missing from yesterday's commits
12539
12540 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12541
12542         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
12543         sft_attributes, struct_declaration, parameter_declaration,
12544         type_name, start_block, declaration_list),
12545         * src/SDCC.lex (check_type): support redefinition of typedef names
12546
12547 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12548
12549         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
12550         aligned xdata arrays. Erik helped me with the if clause.
12551
12552 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12553
12554         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
12555         warning
12556
12557 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12558
12559         * src/SDCCast.h,
12560         * src/SDCCast.c (newAst_),
12561         * src/SDCCicode.h,
12562         * src/SDCCicode.c (ast2iCode, newiCode),
12563         * src/SDCCglobl.h,
12564         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
12565         expr, statement, expression_statement, selection_statement,
12566         iteration_statement, expr_opt, jump_statement): foundation for tracking
12567         sequence points
12568         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
12569         point code too)
12570
12571 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12572
12573         * support/Util/SDCCerr.c,
12574         * src/SDCCast.h,
12575         * src/SDCCast.c (createCase, createDefault, decorateType),
12576         * src/SDCClabel.c (labelUnreach),
12577         * src/SDCC.y (labeled_statement, jump_statement): More improvements
12578         to error messages.
12579         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
12580         (with thanks to Stas Sergeev)
12581         * device/include/time.h,
12582         * device/lib/time.c (CheckTime): suppress unreachable code warning
12583
12584 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12585
12586         * src/SDCCast.c (createIvalCharPtr),
12587         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
12588         bug #753752)
12589         * support/regression/tests/nullstring.c: tests for these two bugs
12590
12591 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12592
12593         * support/Util/SDCCerr.h,
12594         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
12595         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
12596         about storage class and 'at' used inside struct or union
12597         * src/SDCCBBlock.c (iCodeFromeBBlock),
12598         * src/SDCCcse.c (ifxOptimize),
12599         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
12600         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
12601         printIval, emitStaticSeg, emitOverlay),
12602         * src/SDCClabel.c (deleteIfx),
12603         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
12604         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
12605         gatherAutoInit, processParms),
12606         * support/Util/SDCCerr.h,
12607         * support/Util/SDCCerr.c (werrorfl): Support for better error location
12608         reporting for post-parse errors.
12609
12610 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12611
12612         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
12613         implicit casts via union; they don't work on big endian systems
12614         (possible fix for bug #861138)
12615
12616 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12617
12618         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
12619         * src/mcs51/main.c: fixed the fix for bug #737001
12620
12621 2003-12-15  Borut Razem <borut.razem AT siol.net>
12622
12623         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
12624
12625 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12626
12627         * support/makebin/makebin.c: put output in binary mode
12628
12629 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12630
12631         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
12632         xdata and data memory on startup. Set the environment variable
12633         SDCC_NOGENRAMCLEAR to disable this.
12634         * src/mcs51/peephole.def,
12635         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
12636         (allows non-interrupt and interrupt code to safely compete for a resource
12637         without the non-interrupt code having to disable interrupts)
12638
12639 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12640
12641         * src/SDCCicode.c (geniCodeAdd),
12642         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
12643         with valFromType if type might be a pointer and host is big endian).
12644         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
12645         types, not just integer types.
12646         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
12647         multiply defined with mismatching "at" address.
12648
12649 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12650
12651         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
12652         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
12653         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
12654         with embedded nulls (fixed bug #753752)
12655
12656 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12657
12658         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
12659         Apparently this did not see much testing (endless loop)
12660
12661 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12662
12663         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
12664
12665 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12666
12667         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
12668         gracefully handle NULL memmap pointers
12669
12670 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12671
12672         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
12673         instead of deleting the iCode when an operand is volatile
12674         * src/z80/gen.c (genDummyRead),
12675         * src/mcs51/gen.c (genDummyRead),
12676         * src/ds390/gen.c (genDummyRead),
12677         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
12678         not just IC_RIGHT
12679         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
12680         * src/SDCC.y: fixed bug #850420
12681
12682 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12683
12684         Applied z80 i/o port patch from Peter Townson and fixed some operators
12685         to better handle operands in A register.
12686         * device/include/z180.h
12687         * src/SDCC.y
12688         * src/SDCCglue.c
12689         * src/z80/gen.c
12690         * src/z80/gen.h
12691         * src/z80/main.c
12692         * src/z80/peeph-z80.def
12693         * src/z80/peeph.def
12694         * src/z80/z80.h
12695
12696 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12697
12698         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
12699
12700 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12701
12702         * device/lib/hc08/_mullong.c: Removed extra #endif
12703
12704 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12705
12706         * sim/ucsim/hc08.src/inst.cc,
12707         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
12708         carries from x to h
12709         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
12710         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
12711         * device/include/stdarg.h: fixed varargs for hc08
12712         * device/lib/Makefile.in,
12713         * device/lib/hc08/Makefile,
12714         * device/lib/hc08/_mulint.c,
12715         * device/lib/hc08/_mullong.c: fixed some endian problems
12716
12717 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12718
12719         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
12720         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
12721         * device/lib/_gptrget.c,
12722         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
12723
12724 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12725
12726         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
12727         * src/SDCCast.c (astErrors): fixed bug #846007
12728         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
12729
12730 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12731
12732         * src/SDCCast.c (decorateType): disabled a transformation I added in
12733         revision 1.188 (access to fields of a structure at an absolute address);
12734         it breaks with bitfields, extern declarations, and gcse analysis.
12735         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
12736         could be assigned through a pointer, so don't complain.
12737         * src/SDCCast.c (astErrors),
12738         * src/SDCCast.h,
12739         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
12740
12741 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
12742
12743         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
12744         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
12745         output of __config directives, since gpasm now supports them
12746         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
12747         pre-processor macro, i.e. -DMCU=p18f452
12748         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
12749         and modified to handle 'cast' icode similarly to '=' icode
12750         * src/pic16/device.h (typedef struct PIC_device): added field
12751         'extMIface' to indicate that chip has external memory interface
12752         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
12753         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
12754         18F8720
12755
12756 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12757
12758         * src/SDCC.y (pointer): fixed bug #846006
12759         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
12760         * src/SDCCast.c (decorateType): fixed bug #846009
12761         * src/ds390/peeph.def,
12762         * src/ds390/gen.c (genAnd, genOr),
12763         * src/mcs51/peeph.def,
12764         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
12765
12766 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12767
12768         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
12769         * src/SDCCdflow.c
12770         * src/SDCCcse.c
12771         * src/SDCCcse.h
12772         * src/SDCCBBlock.h
12773         * src/SDCCBBlock.c
12774
12775 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
12776
12777         fixed bug #845089
12778         * src/SDCCbitv.h,
12779         * src/SDCCbitv.c: added function to free a bitvector
12780         * src/SDCClrange.h,
12781         * src/SDCClrange.c: added function to recompute the liveranges
12782         * src/avr/ralloc.c,
12783         * src/ds390/ralloc.c,
12784         * src/hc08/ralloc.c,
12785         * src/mcs51/ralloc.c,
12786         * src/pic/ralloc.c,
12787         * src/pic16/ralloc.c,
12788         * src/xa51/ralloc.c,
12789         * src/z80/ralloc.c: recompute the liveranges after register packing
12790
12791 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
12792
12793         * src/SDCCloop.c (newInduction): fixed bug #845630
12794
12795 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12796
12797         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
12798         inadvertantly left behind from my 2003-11-12 change
12799
12800 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12801
12802         Updated headers I neglected to commit yesterday.
12803         * src/SDCClrange.h,
12804         * src/SDCCicode.h
12805
12806 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12807
12808         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
12809         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
12810         * src/SDCCopt.c (eBBlockFromiCode),
12811         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
12812         the creation of the key hash table from the sequencing so it can be used
12813         earlier (for some GCSE bug fixes still pending)
12814
12815 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12816
12817         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
12818         * support/regression/tests/addsub.c: testing genPlus shortcut
12819
12820 2003-11-15  Borut Razem <borut.razem AT siol.net>
12821
12822         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
12823
12824 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12825
12826         * src/SDCCcse.c (cseBBlock): fixed bug #527779
12827         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
12828         ordering is immaterial.
12829         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
12830
12831 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12832
12833         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
12834         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
12835         (SIGSEV) of bug #840381
12836         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
12837         unlink new file before rename if new and old filenames are the same)
12838
12839 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12840
12841         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
12842         uninitialized variables) for the mcs51. Set environment variable
12843         SDCC_GENRAMCLEAR to test.
12844         xdata initialization slightly shorter
12845
12846 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12847
12848         * src/SDCCsymt.h,
12849         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
12850         #838241 & 780691 (basicly the same bug)
12851         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
12852         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
12853
12854 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
12855
12856         * src/SDCCmain.c (linkEdit): "fix" #834252
12857
12858 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12859
12860         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
12861         * src/SDCCast.h,
12862         * src/SDCC.y: fixed bug #819403
12863
12864 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12865
12866         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
12867         the reentrant attribute.
12868         * src/hc08/gen.c (genPackBits): added missing stack readjustment
12869         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
12870         simulation
12871         * src/SDCCast.c (decorateType): fixed bug with storage class not being
12872         updated during pointer dereference; f.e. ~(((char *)1)*) was being
12873         erroneously reduced to a literal.
12874         * src/hc08/ralloc.c (packRegisters, rematStr),
12875         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
12876         some cases
12877
12878 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12879
12880         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
12881         * doc/sdccman.lyx: changed from 'article' to 'book'
12882         * doc/Makefile: readded test_suite_spec and cdbfileformat
12883
12884 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
12885
12886         * device/include/stdlib.h: include malloc.h to comply with ANSI
12887         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
12888
12889 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12890
12891         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
12892         * doc/clean.mk: also remove *.out files
12893         * doc/sdccman.lyx: some additions, larger top/bottom margins
12894
12895 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12896
12897         * src/SDCC.y: fixed bug #837365
12898         * support/regression/tests/bitopcse.c
12899         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
12900         a symbol (might be valop instead)
12901         * device/lib/Makefile.in: added errno.c to HC08SOURCES
12902         * device/lib/clean.mk: added hc08 to the cleaning list
12903
12904 2003-11-04  Borut Razem <borut.razem AT siol.net>
12905
12906         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
12907           made 2003-11-04
12908         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
12909           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
12910           malloc is declared in standard stdlib.h
12911
12912 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12913
12914         * device/lib/hc08/Makefile: need to clean .rel not .o files
12915         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
12916
12917 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12918
12919         * src/port.h,
12920         * src/hc08/main.c,
12921         * src/mcs51/main.c,
12922         * src/ds390/main.c,
12923         * src/z80/main.c,
12924         * src/avr/main.c,
12925         * src/pic/main.c,
12926         * src/pic16/main.c,
12927         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
12928         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
12929         tests (which uses the port's oclsExpense function)
12930         * src/SDCC.y,
12931         * src/SDCCast.c,
12932         * src/SDCCicode.c,
12933         * src/hc08/gen.c,
12934         * src/ds390/gen.c,
12935         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
12936
12937 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12938
12939         * src/SDCCcse.c (ifxOptimize),
12940         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
12941         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
12942         deleting the IFX iCode.
12943         * src/hc08/ralloc.c: reduced unneeded slocs
12944         * src/hc08/gen.c: fixed bug in asmopToBoolean
12945
12946 2003-11-04  Borut Razem <borut.razem AT siol.net>
12947
12948         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
12949           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
12950           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
12951           transferred to configure
12952
12953 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
12954
12955         Use headers defined in the C[++] standards:
12956         * sim/ucsim/gui.src/serio.src/fileio.cc
12957         * sim/ucsim/gui.src/serio.src/frontend.cc
12958         * sim/ucsim/gui.src/serio.src/main.cc
12959         * sim/ucsim/gui.src/serio.src/posix_signal.cc
12960         * support/Util/NewAlloc.c
12961         * as/hc08/lklibr.c
12962         * as/mcs51/lklibr.c
12963         * as/z80/aslist.c
12964         * as/z80/assym.c
12965
12966 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12967
12968         * Added MSVC projects for hc08 assembler and linker:
12969         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
12970         /as/hc08/link_hc08.dsp
12971
12972 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
12973
12974         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
12975
12976 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
12977
12978         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
12979
12980 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12981
12982         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
12983
12984 2003-10-31  Borut Razem <borut.razem AT siol.net>
12985
12986         * support/cpp2/cpplib.h,
12987           support/cpp2/cpplib.c,
12988           support/cpp2/cpplex.c,
12989           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
12990           to switch _asm block preprocessing on / off. Default is
12991           #pragma preproc_asm +
12992
12993 2003-10-31  Borut Razem <borut.razem AT siol.net>
12994
12995         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
12996           when outputting comment blocks (when executed with -C option) and
12997           _asm (SDCPP specific) blocks
12998
12999 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13000
13001         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
13002
13003 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
13004
13005         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
13006
13007 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
13008
13009         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
13010         * src/SDCCast.c (decorateType): fixed bug #832664
13011
13012 2003-10-31  Borut Razem <borut.razem AT siol.net>
13013
13014         * support/cpp2/cpplex.c: fixed for SDCPP:
13015           comments(when executed with -C option) and _asm blocks
13016           were included even if they where in skipped #if block.
13017           Applied solution from GCC cpp 3.3.2
13018
13019 2003-10-31  Borut Razem <borut.razem AT siol.net>
13020
13021         * src/SDCC.lex: sdcc now understands both formats:
13022           '# <line_number> <file_name>' and
13023           '#line <line_number> <file_name>'
13024         * support/cpp2/cppmain.c: sdcpp now generates the standard
13025           '# <line_number> <file_name>' instead of former
13026           '#line <line_number> <file_name>'
13027
13028 2003-10-30  Borut Razem <borut.razem AT siol.net>
13029
13030         * support/cpp2/cpphash.h,
13031         * support/cpp2/cpplib.h
13032         * support/cpp2/cpplex.c,
13033         * support/cpp2/cppmain.c,
13034         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
13035
13036 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13037
13038         Fixed a number of problems revealed by bug #827883.
13039         * src/SDCCloop.c (loopInvariants): Spill location of the
13040         result operand should be recomputed if extracted from
13041         a loop. Also, don't extract assignments of an iTemp
13042         from a literal.
13043         * src/SDCCast.c (isConformingBody): loop reversal should
13044         not occur if the control variable is involved with a
13045         relational operator.
13046
13047 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
13048
13049         * .version: bumped to 2.3.6 to reflect the big improvements
13050         made by Erik and Klaus. Thanks!
13051
13052 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
13053
13054         Replaced the livrange code.
13055         * src/SDCClrange.c: added new LR code
13056         * src/SDCCloop.c,
13057         * src/SDCCBBlock.h: removed remainig parts from old LR code
13058         * src/ds390/ralloc.c,
13059         * src/ds390/gen.c: minor fixes to make it work with new code
13060
13061 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13062
13063         * as/hc08/asm.h,
13064         * as/hc08/lkrloc.c,
13065         * src/hc08/gen.c,
13066         * src/hc08/ralloc.c: Fix various warnings related to the hc08
13067         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
13068         (tweaked fix for bug #818696)
13069
13070 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13071
13072         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
13073
13074 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13075
13076         * src/SDCCmain.c,
13077         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
13078         * src/mcs51/gen.c (gencjneshort),
13079         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
13080         more efficient (per Scott Bronson's suggestion)
13081
13082 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13083
13084         Extended the semantics of the critical keyword to include
13085         individual statements. See RFE #827755 and #799831
13086         * src/SDCC.y
13087         * src/SDCCicode.c
13088         * src/SDCCopt.c
13089         * src/SDCCast.c
13090         * support/Util/SDCCerr.c
13091         * support/Util/SDCCerr.h
13092         * src/mcs51/gen.c
13093         * src/ds390/gen.c
13094         * src/hc08/gen.c
13095
13096 2003-10-19  Borut Razem <borut.razem AT siol.net>
13097
13098         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
13099
13100 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13101
13102         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
13103         Fixed bug #818696
13104         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
13105         and predecrement operand is displayed
13106
13107 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
13108
13109         * src/SDCCval.c (valMinus): fixed bug #826041
13110
13111 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13112
13113         Some hc08 related updates that I missed earlier
13114         * sim/ucsim/stypes.h
13115         * support/regression/ports/hc08/spec.mk
13116
13117 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13118
13119         New target "hc08" for the Motorola 68hc08 family of micros
13120
13121         * configure
13122         * configure.in
13123         * Makefile
13124         * src/hc08/*
13125         * src/SDCCmain.c
13126         * src/port.h
13127         * sim/ucsim/hc08.src/*
13128         * sim/ucsim/configure.in
13129         * src/ucsim/configure
13130         * sim/ucsim/packages_in.mk
13131         * as/hc08/*
13132         * as/Makefile
13133         * device/include/mc68hc908qy.h
13134         * device/lib/hc08/*
13135         * device/lib/Makefile.in
13136         * support/regression/ports/hc08/*
13137         * support/regression/Makefile
13138
13139 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13140
13141         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
13142         regression test
13143         * src/ds390/gen.c (genCast): fixed bug #821957
13144
13145 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
13146
13147         * device/lib/logf.c: "fixed" overlay bug
13148         * support/regression/ports/host/spec.mk: added m library
13149         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
13150         * support/regression/tests/float_trans: added (for Eric)
13151
13152 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
13153
13154         * src/mcs51/gen.c (genCpl): fixed bug
13155         http://sf.net/mailarchive/message.php?msg_id=6263915
13156
13157 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
13158
13159         * src/SDCCast.c (decorateType): added extended constant folding
13160         * src/SDCCsymt.c (computeType): cleanup
13161         * src/SDCCval.c (valShift): minor optimization
13162         * support/regression/tests/ast_constant_folding.c: added
13163
13164 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13165
13166         * src/SDCCmain.c: removed some unintended changes
13167
13168 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13169
13170         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
13171         * src/z80/gen.c: fixed part of bug #817589
13172         * src/SDCCsymt.c (checkFunction): fixed bug #817895
13173
13174 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
13175
13176         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
13177         * src/SDCCcflow.c
13178         * src/SDCCcse.c
13179         * src/SDCCdflow.c
13180         * src/SDCClabel.c
13181         * src/SDCClrange.c
13182         * src/SDCCmem.c
13183         * src/SDCCopt.c
13184         * src/SDCCpeeph.c
13185         * src/SDCCset.c
13186         * src/avr/ralloc.c
13187         * src/ds390/ralloc.c
13188         * src/izt/ralloc.c
13189         * src/mcs51/ralloc.c
13190         * src/pic/ralloc.c
13191         * src/pic16/ralloc.c
13192         * src/xa51/ralloc.c
13193         * src/z80/ralloc.c
13194         * src/z80/gen.c: removed unused label "release:"
13195
13196 2003-10-06  Borut Razem <borut.razem AT siol.net>
13197
13198         * src/SDCC.lex: removed definition of unused variables
13199           save_optimize and save_options
13200
13201 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
13202
13203         * clean.mk: removed '=' in "-maxdepth=1"
13204         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
13205         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
13206
13207 2003-10-06  Borut Razem <borut.razem AT siol.net>
13208
13209         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
13210           my_unput() replaced by unput()
13211
13212 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
13213
13214         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
13215         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
13216         type-punned pointer will break strict-aliasing rules"
13217         Old LR behaviour is again default; Klaus' LR can be choosen by
13218         defining the environment variable LRKLAUS
13219         * src/SDCCBBlock.h
13220         * src/SDCCloop.c
13221         * src/SDCClrange.c
13222         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
13223         * clean.mk: fixed removal of files in bin/CVS/
13224         * device/lib/clean.mk: fixed removal of directories small and large
13225         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
13226         * src/SDCCicode.c,
13227         * src/SDCCval.c: removed superflous test for pedantic
13228
13229 2003-10-05  Borut Razem <borut.razem AT siol.net>
13230
13231         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
13232           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
13233           message "unmatched #pragma SAVE and #pragma RESTORE"
13234
13235 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13236
13237         * doc/sdccman.lyx: various additions and updates (interrupts, inline
13238           assembly, critical functions, atomic, nojtbound)
13239
13240 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
13241
13242         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
13243         * src/SDCCBBlock.h
13244         * src/SDCCloop.c
13245         * src/SDCCloop.h
13246         * src/SDCClrange.c
13247
13248 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13249
13250         * src/z80/gen.h,
13251         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13252         * src/mcs51/gen.h
13253         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13254         * src/ds390/gen.h
13255         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13256         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
13257         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
13258
13259 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13260
13261         * src/z80/gen.c (genRet): fixed bug #524753
13262         * src/z80/gen.c (genCast): fixed internal error on cast from
13263         pointer to long
13264         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
13265         fix for bug #477835 to the z80
13266         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
13267         for tracking iCodes in the peephole optimizer for z80
13268
13269 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13270
13271         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
13272         the other part of bug #814548
13273         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
13274
13275 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
13276
13277         * src/SDCCcse.c: fixed part of bug #814548
13278
13279 2003-09-28  Borut Razem <borut.razem AT siol.net>
13280
13281         * src/asm.c: rewrite of printILine() to use temporary file instead
13282           a pipe
13283         * src/xa51/main.c: commented out declaration of int rewinds
13284
13285 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13286
13287         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
13288
13289 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13290
13291         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
13292         * src/asm.c (printILine): Fixed bug #811015
13293
13294 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13295
13296         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
13297         freeing.
13298
13299 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13300
13301         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
13302         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
13303         to correctly handle general case of AOP_PAIRPTR
13304         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
13305
13306 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13307
13308         * src/mcs51/ralloc.c (fillGaps),
13309         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
13310         register positioning bug)
13311
13312 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
13313
13314         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
13315
13316 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13317
13318         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
13319         genCodePointerGet, genGenPointerGet, genFarPointerSet,
13320         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
13321         (ralloc doesn't intentionally do this now, but perhaps later)
13322         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
13323         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
13324         register positioning bugs (Fixed bug #762602 and #795325)
13325         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
13326         (Fixed bug #808779)
13327         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
13328         lines that --i-code-in-asm generates
13329
13330 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13331
13332         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
13333         trying to fclose a FILE* that was already closed.
13334
13335 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13336
13337         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
13338         of const struct should be treated as if const themselves)
13339
13340 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
13341
13342         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
13343
13344 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13345
13346         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
13347         Unix (/n) and DOS (/r/n) line terminations.
13348
13349 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13350
13351         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
13352         bug #613775
13353
13354 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13355
13356         * src/mcs51/gen.c (genFunction, genEndFunction),
13357         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
13358         and restore of EA so that stack offsets to parameters are
13359         correct when using both critical and reentrant/stack-auto.
13360         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
13361         size (can be triggered in error if sloc is shared between
13362         different sized objects)
13363         * device/include/float.h: fixed macros to explicitly use
13364         unsigned long where needed
13365
13366 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
13367
13368         Feature req. 799831: added code to allow nesting of critical functions
13369         * src/mcs51/gen.c (genFunction, genEndFunction)
13370         * src/ds390/gen.c (genFunction, genEndFunction)
13371
13372 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13373
13374         * src/SDCCsymt.c (sclsFromPtr),
13375         * src/SDCCsymt.h,
13376         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
13377         support for standard C idiom of memory mapped variables; for
13378         example, *((xdata int*)0x1234) = 1 is now internally equivalent
13379         to xdata int at 0x1234 tempvar = 1.
13380         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
13381         provided by Akiya ISHIDA
13382
13383 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
13384
13385         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
13386         * src/SDCCval.c (constVal): added reduction from int to char
13387         * src/SDCCval.c (valMult, valDiv): fixed sign handling
13388         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
13389         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
13390         to ignore the sign
13391         * support/regression/tests/shifts.c: fixed
13392
13393 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13394
13395         * src/z80/gen.c (genXor): Fixed bug #805445
13396
13397 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13398
13399         Fixed bug #621531 (const & volatile confusion in the type chain).
13400         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
13401         refer to the const or volatile state of the pointer itself.
13402
13403         * src/SDCCast.c
13404         * src/SDCCglue.c
13405         * src/SDCCicode.c
13406         * src/SDCCsymt.c
13407         * src/SDCCval.c
13408         * src/SDCC.y
13409         * src/SDCCsymt.h
13410         * src/pic/gen.c
13411         * src/pic/ralloc.c
13412         * src/pic16/gen.c
13413         * src/pic16/ralloc.c
13414         * support/regression/tests/const.c
13415
13416 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13417
13418         When checking for duplicated modules, use absolute paths
13419         instead of relative paths.  Files changed:
13420
13421         * as/mcs51/lklib.c
13422         * link/z80/lklib.c
13423
13424 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13425
13426         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
13427
13428 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13429
13430         * device/include/string.h: added size_t typedef, changed
13431         prototypes to use size_t, eliminated separate reentrant and
13432         non-reentrant declarations, added _memmove declaration
13433         * device/lib/_memcpy.c: changed to use size_t instead of int,
13434         changed /4 to >>2 to avoid division library call
13435         * device/lib/_memcmp.c,
13436         * device/lib/_memset.c,
13437         * device/lib/_strncat.c,
13438         * device/lib/_strncpy.c,
13439         * device/lib/_strncmp.c: changed to use size_t instead of int
13440         * device/lib/_memmove.c: new file (fixed bug #772294)
13441         * device/lib/Makefile.in: added _memmove.c
13442         * device/lib/z80/asm_strings.s: fixed bug #772290
13443         * support/regression/tests/bitfields.c: attempt to fix host assertion
13444         failure on amd64-unknown-linux2.2
13445
13446 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13447
13448         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
13449         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
13450         * as/z80/asmain.c (main): fixed bug #801766
13451
13452 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
13453
13454         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
13455         compilers
13456
13457 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13458
13459         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
13460         reported in bug #800609
13461
13462 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
13463
13464         * Top header beautifications in src/pic16 directory:
13465           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
13466           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
13467           pcoderegs.h, ralloc.c, ralloc.h
13468         * main.c: added top header and GPL license notice
13469         * pcode.c: fixed the if-conditional warning
13470
13471 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
13472
13473         * device/lib/_mullong.c: replaced int by short for gcc
13474
13475 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13476
13477         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
13478         and JUMPTABLE iCodes properly now (worked by accident before)
13479         * src/mcs51/gen.c (leftRightUseAcc),
13480         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
13481         iCode properly now. Use getSize instead of nRegs since a & b
13482         aren't part of the nRegs tally.
13483
13484 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
13485
13486         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
13487         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
13488           before instructions that use the _STATUS register
13489
13490 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
13491
13492         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
13493         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
13494         fetching of the pointer
13495         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
13496         copied from genNearPointerSet()
13497         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
13498         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
13499         If they pop r0/r1 they must be called in the opposite order than aopOp().
13500         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
13501         (resp. --stack-auto), prepared for --xstack
13502
13503 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13504
13505         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
13506
13507 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
13508
13509         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
13510         these ports have their own __sdcc_external_start()
13511
13512 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
13513
13514         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
13515         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
13516         type for bits was changed. It resulted in bit variables becoming
13517         global, which is not permitted in PIC 14 assembly output.
13518
13519 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13520
13521         * doc/sdccman.lyx: various additions and updates. Rearranged sections
13522
13523 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13524
13525         Z80 and MCS51 linkers complaint if a public symbol is defined
13526         in more than one library module:
13527
13528         * as/mcs51/lklib.c
13529         * link/z80/lklib.c
13530         * as/mcs51/Makefile.in
13531
13532 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13533
13534         A few small changes that speed up the peephole optimizer.
13535
13536         * src/SDCCpeeph.c
13537
13538 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13539
13540         Try to make the peephole optimizer smarter by maintaining
13541         an association between the assembly source code and the
13542         iCodes that originated them. Put this information to use
13543         with a new peephole rule condition "notVolatile" so that
13544         the rules can be aggressive yet still safe.
13545
13546         * src/SDCCpeeph.c
13547         * src/SDCCpeeph.h
13548         * src/mcs51/gen.c
13549         * src/mcs51/peeph.def
13550
13551 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13552
13553         Fixed bug #741761
13554
13555         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
13556         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
13557         if the left or right operand symbols have the accuse flag set.
13558
13559 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13560
13561         Changed the type of the result of the ! (NOT) operator to char;
13562         previously it returned the same type as the source. This allows
13563         us to eliminate all the genFloatNot functions (all of its target
13564         implementations were very buggy) since !float can use the same
13565         code as !long now.
13566
13567         * src/SDCCicode.c (ast2iCode): ! returns char
13568         * src/mcs51/gen.c (genNot, genNotFloat),
13569         * src/ds390/gen.c (genNot, genNotFloat),
13570         * src/z80/gen.c (genNot, genNotFloat),
13571         * src/pic/gen.c (genNot, genNotFloat),
13572         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
13573
13574 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
13575
13576         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
13577         1. Interrupt would not compile properly. Ensure PCLATH register is saved
13578            during interrupts. Ensure WSAVE is located at a shared bank address.
13579         2. Fixed page selection in some places
13580         3. Fixed BTFSS/C to where necessary use registers directly and not simply
13581            the registers name strings.
13582         4. Fixed "signed / unsigned compare" compiler warnings.
13583         5. The PIC port manages its own allocation of the general purpose
13584            registers, but makes no attempt to reuse them. As a result when
13585            compiling it soon runs out of general purpose registers. Some
13586            additional code was added to the files pcode.c and device.c to walk
13587            through the function call tree and rename the registers so that they
13588            get reused.
13589
13590         * src/pic/device.c
13591         * src/pic/gen.c
13592         * src/pic/glue.c
13593         * src/pic/pcode.c
13594         * src/pic/pcode.h
13595         * src/pic/ralloc.c
13596         * src/pic/ralloc.h
13597         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
13598         genPlus() & genMinus() when the result is the same as left or right
13599
13600 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13601
13602         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
13603
13604 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13605
13606         Made bitfield a distinct type from bit so that bitfields
13607         convert as per ANSI C and bits retain their traditional
13608         boolean style behaviour. Implemented bitfield support in
13609         the z80 port.
13610
13611         * src/SDCCsymt.h,
13612         * src/SDCCsymt.c,
13613         * src/SDCCast.c,
13614         * src/cdbFile.c,
13615         * src/mcs51/gen.c,
13616         * src/ds390/gen.c: bit v bitfield split
13617         * src/z80/gen.c: New support for bitfields
13618         * support/regression/tests/bitfields.c: reenabled z80,
13619         added more tests
13620
13621 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13622
13623         Rules 246.x, 247.x relate to bitfields, the others speed up
13624         access to xdata mapped I/O devices.
13625
13626         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
13627
13628 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13629
13630         Cleaned up genPackBits and genUnpackBits and added two helper
13631         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
13632         for literal assignments in genPackBits (thanks to Frieder for
13633         reminding me).
13634
13635         * src/mcs51/gen.c
13636         * src/ds390/gen.c
13637
13638 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13639
13640         Fixed bug #748310 (pointer to function type mishandled when the
13641         function name is omitted). Also fixed a SIGSEGV when a function
13642         attribute (reentrant, etc) is used on a non-function or on a
13643         function but misplaced before the parameter list.
13644
13645         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
13646         bug #748310
13647         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
13648         * support/Util/SDCCerr.h,
13649         * support/Util/SDCCerr.c: Added func attr misuse error msg
13650
13651 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
13652
13653         Fixed bug #787649 by anonymous
13654         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
13655         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
13656
13657 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13658
13659         Fixed numerous bitfield problems.
13660
13661         * src/SDCC.y: More bitfield related error checking
13662         * src/SDCCsymt.h,
13663         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
13664         * support/Util/SDCCerr.h,
13665         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
13666         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
13667         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
13668         * support/regression/tests/bitfields.c: tests added
13669
13670 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13671
13672         Made the constant following the "interrupt" keyword optional. If
13673         omitted, the function will not automatically be given an entry
13674         in the interrupt vector table (similar to #pragma NOIV, but
13675         less syntacticly kludgy). The interrupt number is also now
13676         range checked. Also fixed a bug in the high order bit example
13677         in the manual.
13678
13679         * src/SDCC.y
13680         * src/SDCCmem.c
13681         * src/SDCCglue.c
13682         * src/SDCCsymt.h
13683         * support/Util/SDCCerr.c
13684         * support/Util/SDCCerr.h
13685         * doc/sdccman.lyx
13686
13687 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
13688
13689         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
13690         * src/SDCCicode.c (operandOperation): rewritten some ops
13691         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
13692         * src/SDCCsymt.c (computeType): literals are handled the same way as any
13693         other type
13694         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
13695         be re-activated by defining REDUCE_LITERALS)
13696         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
13697         unsigned, but are signed by default
13698         * src/SDCCval.c (constVal): rearranged
13699         * src/SDCCval.c (valMod): preliminary fix
13700         * src/SDCCval.c (valCastLiteral): use TYPE_* types
13701         * support/regression/literalop.c: added, work in progress
13702
13703 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13704
13705         Generate warnings for useless declarations like "char data;"
13706         that don't do what new users expect.
13707
13708         * src/SDCC.y
13709         * support/Util/SDCCerr.h
13710         * support/Util/SDCCerr.c
13711
13712 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
13713
13714         * src/SDCCval.c (valMult): fix overflow detection of negative int
13715
13716 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13717
13718         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
13719
13720         Changes to support big endian targets:
13721
13722         * src/ports.h
13723         * src/SDCCglue.c
13724         * src/avr/main.c
13725         * src/ds390/main.c
13726         * src/izt/i186.c
13727         * src/mcs51/main.c
13728         * src/pic/main.c
13729         * src/pic16/main.c
13730         * src/xa51/main.c
13731         * src/z80/main.c
13732
13733 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
13734
13735         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
13736         * device/lib/time.c: fixed warning "integer overflow in expression"
13737
13738 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
13739
13740         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
13741         * src/SDCCval.c (constVal): changed default to signed; hex and octal
13742         constants are unsigned; added recognition of "u" flag for unsigned
13743         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
13744         * src/SDCCval.c (valDiv, valMod): fixed signdness
13745         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
13746         signedness of modulo, left and right shift
13747         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
13748         * support/Util/SDCCerr.h: added warning W_INT_OVL
13749         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
13750         * src/SDCCast.c (ast_print): improved output of constants
13751
13752 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13753
13754         Fixed some warnings when building with MSVC:
13755
13756         * as/mcs51/asdata.c
13757         * as/z80/asdata.c
13758         * as/mcs51/asm.h
13759         * as/z80/asm.h
13760         * link/z80/aslink.h
13761         * link/z80/lkdata.c
13762         * link/z80/lkeval.c
13763         * link/z80/lkgb.c
13764         * link/z80/lkihx.c
13765         * link/z80/lks19.c
13766         * link/z80/lksym.c
13767         * support/cpp2/cpplib.c
13768         * src/ds390/gen.c
13769         * src/mcs51/gen.c
13770
13771 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
13772
13773         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
13774
13775 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13776
13777         * support/librarian/clean.mk: Do not remove Makefile.
13778         * support/librarian/Makefile: added.
13779
13780 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13781
13782         Added librarian to MSVC build:
13783         * all.dsp
13784         * sdcc.dsw
13785         * support/librarian/librarian.dsp
13786
13787         'configure' not needed for librarian, removed:
13788         * support/librarian/configure
13789         * support/librarian/configure.in
13790         * support/librarian/config_in.h
13791         * support/librarian/Makefile.in
13792
13793         Hopefully these ones built the librarian and the rest of sdcc properly:
13794         * Makefile
13795         * Makefile.common.in
13796
13797         Messed up 'configure', so revert to previous version:
13798         * configure
13799         * configure.in
13800
13801 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
13802
13803         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
13804         there, while the mantissa of a double is "only" 53 bits wide.
13805
13806 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13807
13808         Adding sdcclib to the build.  MSVC project coming soon.
13809         Files added/changed:
13810
13811         * support/librarian/clean.mk
13812         * support/librarian/configure
13813         * support/librarian/configure.in
13814         * support/librarian/config_in.h
13815         * support/librarian/Makefile.bcc
13816         * support/librarian/Makefile.in
13817         * support/librarian/sdcclib.c
13818         * Makefile.bcc
13819         * Makefile
13820         * Makefile.common.in
13821         * configure
13822         * configure.in
13823
13824 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13825
13826         Linker now complaints if linked modules have conflicting options, for
13827         example, one compiled using --model-large and another one compiled with
13828         --model-small.  The following files were modified:
13829
13830         * as/mcs51/asdata.c
13831         * as/mcs51/aslink.h
13832         * as/mcs51/asm.h
13833         * as/mcs51/asmain.c
13834         * as/mcs51/asout.c
13835         * as/mcs51/i51pst.c
13836         * as/mcs51/lkdata.c
13837         * as/mcs51/lklibr.c
13838         * as/mcs51/lkmain.c
13839         * as/z80/asdata.c
13840         * as/z80/asm.h
13841         * as/z80/asmain.c
13842         * as/z80/asout.c
13843         * as/z80/z80pst.c
13844         * link/z80/aslink.h
13845         * link/z80/lkdata.c
13846         * link/z80/lklibr.c
13847         * link/z80/lkmain.c
13848         * src/SDCCglue.c
13849
13850 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13851
13852         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
13853         as/mcs51/lklibr.c: Generate a warning when a library is not found.
13854
13855 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
13856
13857         * src/z80/mappings.i: fix _mul[us][int,long] entries
13858
13859 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13860
13861         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
13862
13863 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
13864
13865         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
13866         * support/regression/tests/bitopcse.c: added
13867         fixed warning:
13868         * src/avr/gen.c:
13869         * src/pic/gen.c:
13870         * src/pic16/gen.c:
13871         * src/z80/gen.c:
13872         * src/xa51/gen.c:
13873
13874 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13875
13876         added support for new library format to z80, gbz80 linkers:
13877         *link/z80/aslink.h
13878         *link/z80/lklex.c
13879         *link/z80/lklib.c
13880         *link/z80/lklist.c
13881
13882 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
13883
13884         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
13885         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
13886
13887 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
13888
13889         added DUMMY_READ_VOLATILE:
13890         * src/SDCC.y:
13891         * src/avr/gen.c:
13892         * src/xa51/gen.c:
13893         * src/z80/gen.c:
13894         * src/pic/gen.c:
13895         * src/pic16/gen.c:
13896         * src/mcs51/gen.c:
13897         * src/ds390/gen.c:
13898         * src/SDCCcse.c (algebraicOpts): many improvements
13899         * src/SDCCcse.h: removed algebraicOpts()
13900         * src/SDCCicode.c (picDummyRead): added
13901
13902 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13903
13904         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
13905         "Insufficient space in data memory".
13906
13907 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13908
13909         * src/mcs51/gen.c: fixed bug #771358
13910         * src/z80/gen.c: fixed bug #759087
13911
13912 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
13913
13914         * src/pic16/glue.c: minor cleanup by Vangelis
13915
13916 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13917
13918         * device/include/regc515c.h: fixed #758477
13919         * device/lib/_gptrget.c: saving some cycles in generic pointer get
13920         * device/lib/_gptrput.c: saved a few bytes
13921         * my tab spacing is 8, yours too?)
13922         * device/lib/_ser.c: process RX bytes earlier than TX bytes
13923         * device/lib/serial.c: process RX bytes earlier than TX bytes
13924         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
13925
13926 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13927
13928         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
13929
13930 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13931
13932     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
13933
13934 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
13935
13936         * device/lib/Makefile.in: bad fix, reverted to 1.43
13937
13938 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
13939
13940         * device/lib/Makefile.in: added missing z80 object files
13941
13942 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
13943
13944         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
13945         pic16 progress by Vangelis:
13946         * src/SDCCglobl.h:
13947         * src/SDCCmain.c:
13948         * src/pic/Makefile:
13949         * src/pic:
13950         * pic/Makefile:
13951         * pic16/device.c:
13952         * pic16/device.h:
13953         * pic16/gen.c:
13954         * pic16/gen.h:
13955         * pic16/genarith.c:
13956         * pic16/glue.c:
13957         * pic16/main.c:
13958         * pic16/pcode.c:
13959         * pic16/pcode.h:
13960         * pic16/pcodepeep.c:
13961         * pic16/peeph.def:
13962
13963 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13964
13965     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
13966
13967 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13968
13969     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
13970     added gbz80 build to MSVC project.
13971     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
13972     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
13973     from 8051 stuff and setup so it links using a .lnk file.
13974
13975 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13976
13977     * support/librarian/sdcclib.c: sdcc librarian.
13978     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
13979     with sdcclib.
13980
13981 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13982
13983     * as/mcs51/lkmain.c: properly handle extensions in function afile.
13984
13985 2003-07-02  Borut Razem <borut.razem AT siol.net>
13986
13987         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
13988         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
13989         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
13990         src/xa51/main.c, src/z80/main.c:
13991         virtualization of glue() function: each port has it's own glue function,
13992         which is accessed by do_glue function pointer in PORT.general structure
13993
13994 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
13995
13996         * DS800C400 fun, improved ROM interface and tinibios.
13997
13998 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
13999
14000         * More support for DS80C400. Now includes beginning of interface to ROM.
14001
14002 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
14003
14004         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
14005
14006 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14007
14008         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
14009
14010 2003-06-19  Borut Razem <borut.razem AT siol.net>
14011
14012         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
14013
14014 2003-06-19  Borut Razem <borut.razem AT siol.net>
14015
14016         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
14017         fixed Z80 port - crt0.o: cannot open.
14018
14019 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
14020
14021         * support/Util/MySystem.c (merge_command): revert bad fix
14022
14023 2003-06-18  Borut Razem <borut.razem AT siol.net>
14024
14025         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
14026
14027 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14028
14029         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
14030         option --use-stdout sends errors to stdout instead of stderr.
14031
14032 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
14033
14034         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
14035
14036 2003-06-15  Borut Razem <borut.razem AT siol.net>
14037
14038         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
14039         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
14040         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
14041         fixed width array of pointers replaced with sets;
14042         multiple include and lib paths ared transferred to preprocessor and linker
14043         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
14044         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
14045         fixed width array of pointers
14046         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
14047         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
14048         fixupPath(), getPathDifference()
14049         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
14050         fixed width array of pointers
14051
14052 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
14053
14054         * src/pic16/ralloc.c: fix warnings
14055         * src/pic16/pcode.c: fix warning
14056
14057 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
14058
14059          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
14060         know all the details, but essentially this set of changes enable
14061         the pic16 port to generate movff instructions and generate assembler
14062         directives,
14063         * src/SDCCmain.c:
14064         * src/pic16/gen.c:
14065         * src/pic16/glue.c:
14066         * src/pic16/pcode.c:
14067         * src/pic16/device.c:
14068         * src/pic16/main.c:
14069         * src/pic16/pcode.h:
14070         * src/pic16/pcoderegs.c:
14071         * src/pic16/ralloc.c:
14072         * src/pic16/ralloc.h:
14073
14074 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14075
14076         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
14077         added option --vc, so sdcc errors and warnings are compatible with
14078         Microsoft Visual Studio.
14079
14080 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14081
14082         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
14083           device/lib/libfloat.lib: added atof function.
14084
14085 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
14086
14087         * doc/sdccman.lyx: updated to Lyx 1.3
14088         * doc/cdbfileformat.lyx: updated to Lyx 1.3
14089         * doc/test_suite_spec.lyx: updated to Lyx 1.3
14090         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
14091
14092 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
14093
14094         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
14095
14096 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14097
14098         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
14099           additions to the "related tools/documentation" section
14100
14101 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
14102
14103         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
14104
14105 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
14106
14107         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
14108         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
14109
14110 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
14111
14112         * doc/sdccman.lyx: fix double dash and other minor things
14113         * doc/Makefile: fix double dash
14114
14115 2003-05-28  Karl Bongers(patches from Martin Helmling)
14116         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
14117           condition and ignore commands.
14118
14119 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14120
14121         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
14122           is in parts still quite out of date, I did changes as far as I felt makes sense
14123           for a non-native english speaker.
14124           Please feel free to add to the manual or to correct my changes.
14125         * doc/Makefile: undid touching the date of intermediate tex files.
14126
14127 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14128
14129         * doc/sdccman.lyx: Manual has an index now
14130
14131 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
14132
14133         Finalize muluint/mulsint and mululong/mulslong merging:
14134         * device/lib/_mulint.c
14135         * device/lib/_mullong.c
14136         * device/lib/gbz80/mul.s
14137         * device/lib/gbz80/stubs.s
14138         * device/lib/z80/mul.s
14139         * device/lib/z80/stubs.s
14140         * src/SDCCsymt.c (initCSupport)
14141
14142 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14143
14144         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
14145         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
14146           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
14147           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
14148           instead of /Zm500.
14149
14150 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14151
14152         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
14153           the regression tests I'm not brave enough to enable 245.b, 245.c
14154         * doc/sdccman.lyx: added latex preamble for hyperref package.
14155           Using pdflatex this will give you a hyperlinked pdf file with
14156           bookmarks. (prepend '%' before /usepackage if this breaks something)
14157
14158 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14159
14160          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
14161
14162 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
14163
14164         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
14165
14166 2003-05-21    <johan AT balder>
14167
14168         * src/SDCCglue.c (printIval): fixed bug #739934
14169
14170 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
14171
14172         Applied patch from bug 737905 (renamed yylineo to mylineno):
14173         * src/altlex.c
14174         * src/SDCCast.c
14175         * src/SDCglobl.h
14176         * src/SDCC.lex
14177         * src/SDCCsymt.c
14178         * src/SDCCval.c
14179         * src/pic16/pcode.c: Cleaned warnings
14180         * src/pic16/pcodeflow.c: Cleaned warnings
14181         * src/pic16/pcoderegs.c: Cleaned warnings
14182
14183 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
14184
14185         * src/pic16/pcode.c: Cleaned warnings
14186         * src/pic16/pcodepeep.c: Cleaned warnings
14187         * src/pic16/ralloc.c: Cleaned warnings
14188
14189 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
14190
14191         * doc/sdccman.lyx: fixed bug 739745
14192         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
14193
14194 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
14195
14196         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
14197         it can be defined with CFLAGS when running configure
14198         * src/SDCCmain.c: fixed compiling + linking with object files
14199
14200 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
14201
14202         * configure.in: configure for pic16 port,
14203             added --disable-pic16-port
14204         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
14205         * src/SDCCmain.c: linkOptions is changed to set *,
14206             added if/endif conditional macros to remove options help
14207             messages from optionsTable when a port is not configured, added
14208             support for the PIc16 port in the ports table, when executing
14209             the compiler with no port specified on command line, a default
14210             port is selected with the new macro DEFAULT_PORT which is
14211             defined in port.h, in setDefaultOptions() linkOptions is removed
14212             from initialization assignment, since now it is a set,
14213             parseCmdLine uses setParseWithComma for linkOptions, in
14214             linkEdit() linkOptions are accessed with new function indexSet()
14215             which returns the i'th item of a set variable. See SDCCset.c, in
14216             linkEdit() when calling buildCmdLine(), added linkOptions as
14217             last argument. Now users can pass arguments to gplink via the
14218             -Wl option, main() uses pic16glue() to glue up pic16 programs
14219         * src/SDCCpeeph.c: various changes to support pic16
14220         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
14221             return the i'th item of the set
14222         * src/SDCCset.h: added function prototype for indexSet()
14223         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
14224         * src/clean.mk: added pic16 in CLEANALLPORTS variable
14225         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
14226             added macro DEFAULT_PORT
14227         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
14228         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
14229             generated
14230         * src/pic16/glue.c: commented out some error producing lines
14231         * src/pic16/main.c: __config directives are commented out to stop
14232             gpasm complaining and test the linkage with gplink, _linkCmd and
14233             _asmCmd changed to be more gplink and gpasm friendly
14234         * src/pic16/peeph.def: peep rule 3 is commented out, since it
14235             produced an error when parsed, peep rule 12 is added to utilize
14236             movff, but it is commented out since the pCode does not support
14237             yet a command with 2 address arguments
14238
14239 2003-05-18    <johan AT balder>
14240
14241         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
14242         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
14243 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
14244
14245         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
14246   Added feature to script commands from file.
14247
14248 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
14249
14250         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
14251         * src/SDCCutil.c: include ctype.h for win32
14252
14253 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
14254
14255         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
14256
14257 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
14258
14259         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
14260   Fixed so you can set breakpoints prior to run, run does not stop
14261   on entry now.  Add tbreak.  Other enhancements and fixes for use
14262   with ddd.
14263
14264 2003-05-12  Borut Razem <borut.razem AT siol.net>
14265
14266         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
14267
14268 2003-05-11  Borut Razem <borut.razem AT siol.net>
14269
14270         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
14271         the path of bin directory, so that PATH is the only env. variable, which has to be set
14272         in case of standard installation.
14273         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
14274         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
14275         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
14276
14277 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
14278
14279         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
14280         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
14281         temp files are in the port dir; clean the gen/test directory when
14282         generating new test.c
14283         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
14284         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
14285         * support/regression/tests/zeropad.c: added
14286
14287 2003-05-09    <johan AT balder>
14288
14289         * src/SDCCglue.c: fixed bug #597940
14290
14291 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
14292
14293         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
14294   cache sfr, optimize next,step, fix off by one sourceline,
14295   support ddd list function.
14296         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
14297
14298 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
14299
14300         * support/regression/HTMLgen.py: added compare_s2f()
14301         * support/regression/Makefile: redo 1.27
14302         * support/regression/generate-cases.py: redo 1.5
14303
14304 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
14305
14306         * support/regression/tests/float.c: workaround 33 bit hex constant
14307         * support/regression/tests/simplefloat.c: fix division for host
14308
14309 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
14310
14311         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
14312         that tame's the PIC's over-aggressive optimizer.
14313
14314 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14315
14316          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
14317          support for MSVC.
14318
14319 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
14320
14321         Initial support for DS80C400. "Hello world" runs on TINIm400
14322         (with polled I/O).
14323
14324 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
14325
14326          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
14327          * Some notes on ddd usage added in debugger/README
14328          Martin Helmling adding more features and fixes for ddd GUI debugger.
14329          Code added for nexti, stepi, up, down, and other adjustments.
14330
14331 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
14332
14333         * src/pic/pCodepeep.c non-wildcard asmops are now handled
14334         * src/pic/peeph.def Added two rules to optimize carry manipulation
14335         * src/pic/* removed debug printfs
14336
14337 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
14338
14339         * debugger/mcs51/cmd.c: added header newalloc.h
14340
14341 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
14342
14343         * as/Makefile: new EXEEXT
14344         * as/z80/Makefile: remove trailing slash of BUILDIR
14345         * as/z80/clean.mk: new EXEEXT
14346         * Makefile.common.in: add to CFLAGS (and others), don't replace it
14347         * support/cpp2/Makefile.in: new EXEEXT
14348         * src/pic/glue.c (pic14emitRegularMap): fixed warning
14349
14350 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
14351
14352         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
14353         EXEEXT was introduced to fix all related problems with targets
14354         "clean", "install" and "uninstall"; a couple of further flaws
14355         especially with "clean" have been fixed too
14356         * as/mcs51/Makefile.in
14357         * as/mcs51/clean.mk
14358         * as/z80/Makefile
14359         * Makefile
14360         * clean.mk
14361         * debugger/mcs51/Makefile.in
14362         * debugger/mcs51/clean.mk
14363         * link/z80/Makefile
14364         * link/z80/Makefile.in
14365         * link/z80/clean.mk
14366         * link/Makefile
14367         * packihx/Makefile.in
14368         * packihx/clean.mk
14369         * sim/ucsim/Makefile
14370         * sim/ucsim/clean.mk
14371         * sim/ucsim/avr.src/Makefile.in
14372         * sim/ucsim/avr.src/clean.mk
14373         * sim/ucsim/s51.src/Makefile.in
14374         * sim/ucsim/s51.src/clean.mk
14375         * sim/ucsim/xa.src/Makefile.in
14376         * sim/ucsim/xa.src/clean.mk
14377         * sim/ucsim/z80.src/Makefile.in
14378         * sim/ucsim/z80.src/clean.mk
14379         * sim/ucsim/main_in.mk
14380         * sim/ucsim/packages_in.mk
14381         * sim/ucsim/gui.src/Makefile.in
14382         * sim/ucsim/gui.src/serio.src/Makefile.in
14383         * sim/ucsim/gui.src/serio.src/clean.mk
14384         * src/Makefile.in
14385         * src/clean.mk
14386         * support/cpp2/Makefile.in
14387         * support/cpp2/clean.mk
14388         * support/makebin/Makefile
14389         * support/makebin/clean.mk
14390         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
14391         * doc/sdccman.lyx: --program-suffix no longer needed
14392
14393 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
14394
14395          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
14396          Martin Helmling added support for ddd GUI debugger.
14397          Code added to display assembly, set variables, and other commands
14398          to interface to ddd.
14399
14400 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
14401
14402         * as/Makefile: fix target clean
14403         * as/clean.mk: fix target clean
14404         * as/z80/clean.mk: fix target clean
14405
14406 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
14407
14408         * Makefile.common.in: added  AT EXEEXT AT
14409         * configure.in: removed all mingw32 stuff
14410         * configure: rebuilt from configure.in
14411         * doc/sdccman.lyx: updated section "installation"
14412         * support/scripts/sdcc_mingw32: adapted to configure
14413         * support/scripts/sdcc_cygwin_mingw32: added
14414
14415 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
14416
14417         * src/pic Added object file support for the PIC port
14418         * src/pic Applied patch from Craig Franklin (this started the object file support)
14419         * src/regression Updated the PIC regression tests for object files
14420
14421 2003-04-20  Borut Razem <borut.razem AT siol.net>
14422
14423         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
14424           lklex.c: In function `getfid':
14425           lklex.c:203: warning: array subscript has type `char'
14426         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
14427           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
14428         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
14429           stack handling macros
14430
14431 2003-04-19  Borut Razem <borut.razem AT siol.net>
14432
14433         * "handling space characters in file path" task:
14434         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
14435         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
14436         * support/Util/MySystem.h: make it self-sufficient
14437         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
14438           src/z80/main.c, sdcc/as/mcs51/lklex.c:
14439           handling space characters in file path
14440         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
14441           (it will be used by assemblers, which have their own includes, e.g. gpasm)
14442         * support/Util/MySystem.c: handling space characters in executable's path
14443
14444 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
14445
14446         * as/z80/Makefile: fix permanent rebuild of z80
14447         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
14448         * support/regression/tests/bitfields.c: added Johan's bitfields.c
14449
14450 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
14451
14452         * src/SDCCopt.c: add special case optimization to replace modulo by
14453           a power of two with a bitwise AND.
14454
14455 2003-04-18    <johan AT balder>
14456
14457         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
14458
14459 2003-04-17    <johan AT balder>
14460
14461         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
14462         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
14463
14464 2003-04-13  Borut Razem <borut.razem AT siol.net>
14465
14466         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
14467         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
14468           fixed mingw problem in adl_NORMALIZE_PATH
14469
14470 2003-04-12  Borut Razem <borut.razem AT siol.net>
14471
14472         * fixed "#pragma SAVE/RESTORE can not be nested":
14473         * src/SDCC.lex: reworked pragma handling functions
14474         * sdcc/src/SDCCglobl.h: reworked stack handling macros
14475         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
14476
14477 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
14478
14479         * src/SDCCutil.c (pathEquivalent): defined but not used
14480         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
14481         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
14482         * configure: rebuilt from configure.in
14483         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
14484         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
14485         * device/include/Makefile.in: replace sdcc_datadir
14486         * device/lib/Makefile.in: replace sdcc_datadir
14487         * Makefile.common.in: add LDFLAGS from configure
14488         * packihx/Makefile.in: use LDFLAGS
14489         * src/Makefile.in: use LDFLAGS
14490         * support/cpp2/Makefile.in: add LDFLAGS from configure
14491         * support/makebin/Makefile: use LDFLAGS
14492         * .version: bumped version number to 2.3.5
14493
14494 2003-04-12  Borut Razem <borut.razem AT siol.net>
14495
14496         * completed "different paths" task:
14497         * src/SDCCmacro.c: fixed bug in handling quotes
14498         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
14499         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
14500
14501 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
14502
14503         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
14504
14505 2003-04-11 kevin Vigor <kevin AT vigor.nu>
14506
14507         * ds390/gen.c ds390/peeph.def: fix bug 706781
14508
14509 2003-04-11  Borut Razem <borut.razem AT siol.net>
14510
14511         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
14512
14513 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
14514
14515         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
14516         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
14517          set - this bit used to not be set...).
14518         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
14519           bad code in PIC Port
14520         * src/regression/and2.c added to test bug 609268
14521         * src/regression/Makefile added and2.c to regression test
14522
14523
14524 2003-04-08    <johan AT CP255758-A>
14525
14526         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
14527         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
14528         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
14529
14530 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
14531
14532         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
14533         fix bug #487815
14534         * support/cpp2/Makefile.in: fix bug #487815
14535         * configure: rebuilt from configure.in
14536         * Makefile.common.in: docdir changed, new path suffixes
14537         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
14538         * sdcc_vc_in.h: reflect changes from sdccconf.h
14539         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
14540         * src/SDCCutil.h: remove BINDIR hack
14541         * doc/sdccman.lyx: update new path hierarchy
14542
14543 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
14544
14545         * src/SDCCpeeph.c: added okToRemoveSLOC test
14546
14547 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
14548
14549         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
14550
14551 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
14552
14553         * src/SDCCpeeph.c: added labelIsReturnOnly test
14554         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
14555
14556 2003-04-05    <johan AT balder>
14557
14558         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
14559         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
14560         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
14561         * src/SDCCast.c: fixed a warning
14562         * src/SDCCast.h: fixed a warning
14563         * src/SDCCicode.c (operandFromAst): fixed a warning
14564
14565 2003-04-04    <johan AT balder>
14566
14567         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
14568         * src/SDCCast.c (decorateType): fixed bug #715076
14569         * src/SDCC.y: fixed bug #702907
14570
14571 2003-04-03    <johan AT balder>
14572
14573         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
14574         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
14575         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
14576         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
14577         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
14578
14579 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
14580
14581         * _decdptr.c: fix return values
14582         * _gptrget.c: fix return values
14583         * _gptrgetc.c: fix return values
14584         * _gptrput.c: fix return values
14585         * _mulint.c: fix return values
14586         * as/z80/Makefile: fix 'make -j' problem
14587
14588 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
14589
14590         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
14591         * configure.in: big cleanup, updated to autoconf 2.5x
14592         * configure: rebuilt from configure.in
14593         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
14594         * sdcc_vc_in.h: reflect changes from sdccconf.h
14595         * doc/Makefile: fixed a flaw in "make install"
14596
14597 2003-04-02    <johan AT balder>
14598
14599         * src/ds390/gen.c (genCmp): no comments
14600         * src/mcs51/gen.c (genCmp): no comments
14601         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
14602         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
14603
14604 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
14605
14606         * support/regression/generate-cases.py: place generated file in given sub directory
14607         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
14608         * support/regression/Makefile: improvements for 'make -j';
14609         side effect: it's simpler and faster now
14610
14611 2003-03-31  Borut Razem <borut.razem AT siol.net>
14612
14613         * src/z80/main.c: link-{port} and as-{port} defined without path
14614         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
14615
14616 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
14617
14618         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
14619
14620 2003-03-30  Borut Razem <borut.razem AT siol.net>
14621
14622         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
14623           changed type of list parameter to set
14624         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
14625         * src/port.h: changed type of do_assemble() parameter to set
14626         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
14627           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
14628           definition of "cppoutfilename" macro with NULL value in preProcess()
14629         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
14630         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
14631         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
14632           replaced with set *binPathSet
14633         * shash_add() deallocates the item, if allready exsists, before adding the new one
14634         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
14635
14636 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
14637
14638         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
14639           a nested for loop bug in the PIC port
14640         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
14641           for loops
14642
14643 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
14644
14645         * support/Util/dbuf.h: remove C++ stuff to make it portable
14646
14647 2003-03-28  Borut Razem <borut.razem AT siol.net>
14648
14649         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
14650           literal strings in stringLiteral()
14651         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
14652         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
14653           to the project
14654
14655 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
14656
14657         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
14658
14659 2003-03-26    <johan AT balder>
14660
14661         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
14662         * src/ds390/gen.c (saveRegisters): catched symbol abuse
14663         * src/SDCCast.c (decorateType): fixed " -v < 3"
14664
14665 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
14666
14667         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
14668         Added Lenny Story's debug infrastructure changes:
14669         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
14670         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
14671         * src/cdbFile.c: added
14672         * src/SDCCdebug.c: added
14673         * src/SDCCdebug.h: added
14674         * src/SDCCast.c (createFunction)
14675         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
14676         * src/SDCCmain.c (parseCmdLine, main)
14677         * src/SDCCmem.c (redoStackOffsets)
14678         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
14679         * src/SDCCsymt.h
14680         * src/common.h
14681         * src/avr/gen.c (genAVRCode)
14682         * src/ds390/gen.c (gen390Code)
14683         * src/mcs51/gen.c (gen51Code)
14684         * src/pic/gen.c (genpic14Code)
14685         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
14686         * src/xa51/gen.c (genXA51Code)
14687         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
14688
14689 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14690
14691         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
14692         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
14693
14694 2003-03-22    <johan AT balder>
14695
14696         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
14697
14698 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
14699
14700         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
14701         * doc/cdbfileformat.lyx: added, written by Lenny Story
14702         * doc/Makefile: added cdbfileformat.lyx
14703         * doc/clean.mk: added cdbfileformat.lyx
14704
14705 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
14706
14707         * src/mcs51/peeph.def: fix bug #705773
14708
14709 2003-03-20    <johan AT balder>
14710
14711         An sfr/sbit can have an "at #" AND an initializer
14712         * src/SDCCsymt.c (checkSClass):
14713         * src/SDCCmem.c (allocGlobal):
14714         * src/SDCCmem.c (allocLocal):
14715         * src/SDCCast.c (createBlock):
14716
14717 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
14718
14719         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
14720
14721 2003-03-16    <johan AT balder>
14722
14723         Undid the hackup of const and volatile, the problem is much bigger
14724         * src/SDCC.y:1.65
14725         * src/SDCCast.c:1.171
14726         * src/SDCCglue.c:1.138
14727         * src/SDCCicode.c:1.146
14728         * src/SDCCsymt.c:1.150
14729         * src/SDCCval.c:1.65
14730
14731 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
14732
14733         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
14734         * src/ds390/gen.c (genAddrOf): fixed bug #704087
14735
14736 2003-03-13    <johan AT balder>
14737
14738         Hackup const and volatile modifiers in type chains a bit:
14739         * src/SDCC.y:1.63
14740         * src/SDCCast.c:1.169
14741         * src/SDCCglue.c:1.136
14742         * src/SDCCicode.c:1.143
14743         * src/SDCCsymt.c1.146
14744         * src/SDCCsymt.h1.59
14745         * src/SDCCval.c:1.63
14746
14747 2003-03-12    <johan AT balder>
14748
14749         * src/SDCCBBlock.h: more LRH debugging junk
14750         * src/SDCCcflow.h: more LRH debugging junk
14751         * src/SDCCloop.c: more LRH debugging junk
14752         * src/SDCC.y (struct_declaration): fixed bug #697590
14753         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
14754         * src/ds390/gen.c (aopForRemat): fixed bug #700031
14755         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
14756
14757 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14758         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
14759         test function names must now match exactly).
14760         * src/SDCCcse.c: added special case in findCheaperOp to allow
14761         extending a short integer. Makes less awful code for bug 700121 test case.
14762
14763 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14764
14765         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
14766         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
14767
14768 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14769
14770         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
14771         actually called (operandsNotEqual() was called for all
14772         operandsNotEqualX tests).
14773
14774 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14775
14776         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
14777         with shorter literals. Fixes bug 700121.
14778
14779 2003-03-11    <johan AT balder>
14780
14781         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
14782
14783 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
14784
14785         * src/SDCCloop.c (mergeRegions): an evil beast is dead
14786         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
14787
14788 2003-03-10  Borut Razem <borut.razem AT siol.net>
14789
14790         * src/SDCCmain.c: pipe preprocessor's output
14791         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
14792         * sdcc_vc_in.h: define pclose as _pclose for WIN32
14793         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
14794         which closes all pipes in pipeSet set
14795         * src/SDCCset.c: free deleted item in function deleteSetItem()
14796         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
14797         moved from z80 to src subproject
14798         * .version: increased version number to 2.3.4
14799
14800 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
14801
14802         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
14803         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
14804         * support/regression/ports/xa51/spec.mk: fix typo
14805
14806 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
14807
14808         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
14809
14810 2003-03-09  Borut Razem <borut.razem AT siol.net>
14811
14812         * src/SDCCmain.c: pipe preprocessor's output
14813         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
14814         * sdcc_vc_in.h: define pclose as _pclose for WIN32
14815         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
14816         which closes all pipes in pipeSet set
14817         * src/SDCCset.c: free deleted item in function deleteSetItem()
14818         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
14819         moved from z80 to src subproject
14820
14821 2003-03-09  Borut Razem <borut.razem AT siol.net>
14822
14823         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
14824         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
14825         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
14826         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
14827         * src/SDCCglobl.h: unification of WIN32 native definitions
14828
14829 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14830
14831         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
14832
14833 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
14834
14835         * src/configure.in:   check for endianess (even while cross-compiling)
14836         * src/configure:      check for endianess (even while cross-compiling)
14837         * src/configure_in.h: check for endianess (even while cross-compiling)
14838         * src/avr/gen.c:        remove old endianess stuff
14839         * src/mcs51/gen.c:      remove old endianess stuff
14840         * src/ds390/gen.c:      remove old endianess stuff
14841         * src/pic/gen.c:        remove old endianess stuff
14842         * src/pic/genarith.c:   remove old endianess stuff
14843         * src/pic/glue.c:       fix endianess check
14844         * src/pic16/gen.c:      remove old endianess stuff
14845         * src/pic16/genarith.c: remove old endianess stuff
14846         * src/pic16/glue.c:     fix endianess check
14847         * src/xa51/gen.c:       remove old endianess stuff
14848         * src/z80/gen.c:        fix endianess check
14849         * src/SDCCglue.c:       fix endianess check
14850         * src/ds390/peeph.def: fix bug 700036
14851
14852 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
14853
14854         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
14855         * src/configure: find appropriate data-types on host for SDCC's int and long
14856         * src/configure.in: find appropriate data-types on host for SDCC's int and long
14857         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
14858         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
14859
14860 2003-03-07    <johan AT balder>
14861
14862         Just a big NOOP:
14863                 some minor cleanups before the big shot
14864                 OP_DEFS and OP_USES now use Kevin's protection
14865                 new option --nolabelopt
14866
14867         * src/SDCCBBlock.c:
14868         * src/SDCCast.c,:
14869         * src/SDCCcflow.c:
14870         * src/SDCCcse.c:
14871         * src/SDCCicode.c:
14872         * src/SDCCicode.h:
14873         * src/SDCClabel.c:
14874         * src/SDCCloop.c:
14875         * src/SDCCmain.c:
14876         * src/ds390/ralloc.c:
14877         * src/mcs51/ralloc.c:
14878         * src/pic/ralloc.c:
14879         * src/xa51/ralloc.c:
14880         * src/z80/ralloc.c:
14881
14882 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
14883
14884         * src/pic/pcode.c (get_op): fix 64 bit warnings
14885         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
14886         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
14887         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
14888         * support/regression/tests/malloc.c: fix 64 bit warnings
14889
14890 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
14891
14892         * src/mcs51/gen.c (genMinus): fixed bug 696436
14893
14894 2003-03-02  Borut Razem <borut.razem AT siol.net>
14895
14896         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
14897
14898 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
14899
14900         * configure.in: test for mkstemp
14901         * sdccconf_in.h: add HAVE_MKSTEMP
14902
14903 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
14904
14905         * device/include/ctype.h: removed warning while using --stack-auto
14906         * device/include/malloc.h: removed warning while using --stack-auto
14907         * device/include/string.h: removed warning while using --stack-auto
14908
14909 2003-02-23  Borut Razem <borut.razem AT siol.net>
14910
14911         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
14912         because NDEBUG is defined (see man assert)
14913         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
14914
14915 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14916
14917         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
14918         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
14919
14920 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14921
14922         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
14923         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
14924
14925 2003-02-18    <johan AT balder>
14926
14927         * as/mcs51/asmain.c (asmbl): module can start with a digit
14928         * as/z80/asmain.c (asmbl): module can start with a digit
14929
14930 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
14931
14932         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
14933         * src/asm.c: fix pipe() for Mingw32
14934
14935 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
14936
14937         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
14938         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
14939         make -V work again; --c1mode reads now from stdin
14940         * doc/sdccman.lyx: added --c1mode
14941         * support/Util/SDCCerr.c: new messages for c1 mode
14942         * support/Util/SDCCerr.h: new messages for c1 mode
14943         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
14944
14945 2003-02-15    <johan AT balder>
14946
14947         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
14948
14949 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
14950
14951         * doc/sdccman.lyx: Environment variables, -o and other minor things
14952
14953 2003-02-14    <johan AT balder>
14954
14955         * src/xa51/main.c: before anyone really tries to use it :)
14956
14957         * Install doc's in share/sdcc/doc
14958         * removed some obsolete files
14959         * Do a proper make distclean and uninstall
14960         M Makefile.common.in
14961         R sdccbuild.sh
14962         M as/Makefile
14963         M device/include/Makefile.in
14964         M device/lib/Makefile.in
14965         M doc/sdccman.lyx
14966         M link/Makefile
14967         M sim/ucsim/doc/Makefile.in
14968         M src/clean.mk
14969         R src/avr/peeph.rul
14970         R src/xa51/peeph.rul
14971         M support/cpp2/Makefile.in
14972         M support/makebin/Makefile
14973
14974
14975 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
14976
14977         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
14978
14979 2003-02-10  Borut Razem <borut.razem AT siol.net>
14980
14981         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
14982         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
14983         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
14984         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
14985         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
14986         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
14987         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
14988         src/z80/Makefile.bcc: Borland Makefile cleanup
14989         * as/z80/Makefile.bcc: Added Borland Makefile
14990         * support/cpp2/borland.h: Removed
14991
14992 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
14993
14994         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
14995         * src/SDCC.lex: new pragma NOIV
14996         * src/SDCCglobl.h: new pragma NOIV
14997         * src/SDCCmem.c: new pragma NOIV
14998
14999 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
15000
15001         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
15002
15003 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
15004
15005         * src/SDCCmain.c: signal handling is switched off by --debug
15006         * doc/Makefile: small fix for install; use clean.mk again
15007         * doc/clean.mk: clean *.pdf and *.html too
15008
15009 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
15010
15011         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
15012         * device/lib/printfl.c: fix a ds390 bug by making it portable
15013         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
15014         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
15015         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
15016         * debugger/mcs51/cmd.c: converted multi-line string literals
15017         * sim/ucsim/globals.cc: converted multi-line string literals
15018         * src/SDCCmain.c: introduced signal handler to remove temp files
15019         * doc/Makefile: small tweaks, implement clean
15020         * doc: removed generated files
15021
15022 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15023
15024         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
15025         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
15026         Address Record is not correctly generated for DS390."
15027
15028 2003-02-02  Borut Razem <borut.razem AT siol.net>
15029
15030         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
15031         * as/mcs51/asm.h: fixed compilation with Borland C
15032         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
15033         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
15034         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
15035         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
15036         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
15037         src/z80/Makefile.bcc: delete $(LIB) only if exist
15038         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
15039
15040 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
15041
15042         * device/include/malloc.h: introduced NULL
15043         * device/include/string.h: introduced NULL
15044         * device/include/stdlib.h: introduced NULL
15045         * device/lib/_memcpy.c: removed NULL
15046         * device/lib/_strcat.c: removed NULL
15047         * device/lib/_strchr.c: removed NULL
15048         * device/lib/_strcmp.c: removed NULL
15049         * device/lib/_strcpy.c: removed NULL
15050         * device/lib/_strcspn.c: removed NULL
15051         * device/lib/_strlen.c: removed NULL
15052         * device/lib/_strncat.c: removed NULL
15053         * device/lib/_strncmp.c: removed NULL
15054         * device/lib/_strncpy.c: removed NULL
15055         * device/lib/_strpbrk.c: removed NULL
15056         * device/lib/_strrchr.c: removed NULL
15057         * device/lib/_strspn.c: removed NULL
15058         * device/lib/_strstr.c: removed NULL
15059         * device/lib/_strtok.c: removed NULL
15060         * device/lib/malloc.c: removed NULL, include own header
15061
15062 2003-02-02    <johan AT balder>
15063
15064         * 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
15065         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
15066         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
15067         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
15068         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
15069         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
15070
15071 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15072
15073         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
15074         area 'DATA'"
15075
15076 2003-02-01    <johan AT balder>
15077
15078         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
15079
15080 2003-01-31    <johan AT CP255758-A>
15081
15082         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
15083
15084 2003-01-30    <johan AT balder>
15085
15086         * src/SDCCBBlock.c: automatic bug detection
15087         * src/SDCCicode.c: automatic bug detection
15088
15089 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15090
15091         * src/SDCCglobl.h:   now --xram-size 0 works
15092         * src/SDCCmain.c:    now --xram-size 0 works
15093
15094 2003-01-29    <johan AT balder>
15095
15096         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
15097
15098 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15099
15100         * as/mcs51/aslink.h: Added options --xram-size and --code-size
15101         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
15102         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
15103         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
15104         * src/SDCCglobl.h:   Added options --xram-size and --code-size
15105         * src/SDCCmain.c:    Added options --xram-size and --code-size
15106
15107 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
15108
15109         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
15110         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
15111
15112 2003-01-27    <johan AT balder>
15113
15114         * src/SDCC.y: fixed bug #613764
15115
15116 2003-01-26    <johan AT balder>
15117
15118         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
15119         * src/SDCCsymt.h: fixed bug #673374
15120         * src/SDCCglue.c: fixed bug #661910
15121         * src/SDCCast.c: fixed bug #458099 and 673374
15122
15123 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
15124
15125         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
15126         * as/mcs51/strcmpi.h: added
15127         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
15128         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
15129         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
15130         * as/mcs51/assym.c: strcmpi -> as_strcmpi
15131         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
15132         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
15133         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
15134         * as/mcs51/Makefile.aslink: new module strcmpi
15135         * as/mcs51/Makefile.asx8051: new module strcmpi
15136         * as/mcs51/Makefil.bcc: new module strcmpi
15137         * as/mcs51/Makefile.in: new module strcmpi
15138         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
15139
15140 2003-01-26    <johan AT balder>
15141
15142         * src/SDCCglue.c: reverted back to 1.124
15143         * src/SDCCast.c: reverted back to 1.156
15144         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
15145
15146 2003-01-25    <johan AT balder>
15147
15148         * src/SDCCglue.c: A better fix for bug #661910
15149         * src/SDCCast.c: A better fix for bug #661910
15150         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
15151
15152 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
15153
15154         * src/Makefile.in: remove spawn.o
15155         * src/SDCCmain.c: remove spawn.h
15156         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
15157         * src/spawn.c: removed
15158         * src/spawn.h: removed
15159         * support/regression/ports/ds390/spec.mk: link with -r
15160
15161 2003-01-24    <johan AT CP255758-A>
15162
15163         * src/ds390/gen.c (aopOp): fixed bug #667458
15164         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
15165         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
15166         (createIvalCharPtr): an ival doesn't always have a storage class anymore
15167
15168 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
15169
15170         * src/mcs51/peeph.def: better assembler identation by Frieder
15171         * src/mcs51/gen.c: better assembler identation by Frieder
15172
15173 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
15174
15175         * as/z80/string.h: removed for gcc 3.2
15176         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
15177         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
15178
15179 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
15180
15181         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
15182         * src/SDCCpeeph.c (replaceRule): fix bug #663503
15183         * support/regression/Makefile: separate temp files for ports
15184         * support/regression/generate-cases.py: separate temp files for ports
15185         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
15186         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
15187
15188 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
15189
15190         * moved tinitalk to device/examples/ds390
15191
15192 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
15193
15194         * as/mcs51/lkmem.c: rflag is for DS390
15195         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
15196         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
15197                          (linkEdit): move mem- and map-files the same way as ihx-files
15198         * src/z80/main.c (_setDefaultOptions): removed --generic
15199         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
15200         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
15201         * src/pic/glue.c (picglue): --c1mode works again
15202         * src/pic16/glue.c (pic16glue): --c1mode works again
15203         * src/asm.c (printCLine): fix #660034
15204
15205 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
15206
15207         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
15208         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
15209         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
15210         * as/mcs51/lkmem (summary): better fix for sp problem
15211         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
15212         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
15213         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
15214                                               remove --stack-after-data
15215
15216 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
15217
15218         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
15219         * src/SDCCutil.c (join): ugly bug: missing '\0'
15220         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
15221
15222 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
15223
15224         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
15225         * src/port.h: typo
15226         * src/pic/main.c (_asmCmd): gpasm supports -o
15227         * src/z80/main.c: more general macros
15228         * device/lib/Makefile.in: remove intermediate files
15229
15230 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
15231
15232         * .version: Bumped version number to 2.3.3
15233         * src/SDCCBBlock.c: new option -o
15234         * src/SDCCglobl.h: new option -o
15235         * src/SDCCglue.c: new option -o
15236         * src/SDCCmain.c: new option -o
15237         * src/asm.c: new option -o
15238         * src/ds390/main.c: new option -o
15239         * src/pic/glue.c: new option -o
15240         * src/pic/pcode.c: new option -o
15241         * src/pic/ralloc.c: new option -o
15242         * src/pic16/glue.c: new option -o
15243         * src/pic16/pcode.c: new option -o
15244         * src/pic16/ralloc.c: new option -o
15245         * src/z80/main.c: new option -o
15246         * device/lib/Makefile.in: use -o
15247         * support/regression/ports/ds390/spec.mk: use -o
15248         * support/regression/ports/gbz80/spec.mk: use -o
15249         * support/regression/ports/mcs51/spec.mk: use -o
15250         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
15251         * support/regression/ports/z80/spec.mk: use -o
15252         * support/regression/ports/ucz80/spec.mk: use -o
15253         * support/regression/ports/xa51/spec.mk: use -o
15254         * support/regression/fwk/lib/timeout.c: fix usage string
15255
15256 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
15257         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
15258
15259 2003-01-07    <johan AT balder>
15260
15261         * src/SDCCast.c (decorateType): fixed bug #600035
15262
15263 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
15264         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
15265         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
15266         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
15267         * src/pic/pcode.c: outcommented unused variable to remove warnings
15268         * src/pic/ralloc.c: outcommented unused variable to remove warnings
15269
15270 2003-01-06    <karl AT turbobit.com>
15271         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
15272    regression tests.
15273
15274 2003-01-06    <johan AT balder>
15275
15276         * src/SDCCicode.c: fixed array add
15277
15278 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
15279         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
15280         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
15281
15282 2003-01-04    <johan AT balder>
15283
15284         * src/SDCCval.c (getNelements): fixed the initialized array of structures
15285
15286 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15287         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
15288
15289 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
15290         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
15291         * support/regression/tests/bug-524697.c: fit mem usage into 8032
15292
15293 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
15294         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
15295
15296 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
15297         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
15298
15299 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
15300         * src/mcs51/main.c: removed {bindir}{sep} from aslink
15301
15302 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15303
15304     * in /sdcc/as/mcs51/ changed these files in order to create an
15305     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
15306     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
15307     following files to include the previous two files: aslink.dsp,
15308     Makefile.aslink, Makefile.bcc, and Makefile.in.
15309
15310     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
15311     .adb instead of .cdb
15312
15313 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15314
15315         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
15316         value from option --iram-size.
15317
15318 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15319
15320         * /sdcc/as/mcs51/lklist.c: added boundary check before using
15321         dram[] array.
15322
15323 2002-09-18    <wiml AT hhhh.org>
15324
15325         * SDCClrange.h: exposed setFromRange() and setToRange()
15326         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
15327           packRegsForAccUse() (bug 542397)
15328         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
15329           multiple times and emitting the fetch operations more than once
15330           added aopGetUsesAcc() function to allow binary operators to
15331           fetch their operands in the correct order; made genMinus() emit
15332           compact code for X = LITERAL - Y
15333
15334 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15335         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
15336         sprintf() in line 1267.
15337
15338 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15339         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
15340         like ports.
15341
15342 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15343         Changes to aslink (All the changes are marked with 'JCF'):
15344
15345         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
15346         summary().
15347
15348         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
15349         area BSEG.  Also moves, if possible, the DATA area down into the internal
15350         ram so more space is available.
15351
15352         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
15353         sflag.
15354
15355         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
15356         not bytes.  Function summary() which creates a memory usage summary
15357         file with extension .mem.  Reports of overlaping stack and small stack
15358         size.  If the space for the stack is less than 16 bytes aslink trows a
15359         warning.
15360
15361         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
15362         the 8051.  Option 'y' for memory summary output file.
15363
15364         Changes to sdcc (All the changes are marked with 'JCF'):
15365
15366         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
15367
15368         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
15369         overlaying area for it (uses RegBankUsed[4]).
15370
15371         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
15372         bank zero as used by default.  By default aslink locates the stack
15373         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
15374         the creation of the .mem file.  Delegates the allocation of data area
15375         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
15376         the begining of the stack area to aslink.
15377
15378         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
15379         glue() in SDCCglue.c creates an area for it.
15380
15381 2002-09-03  Borut Razem <borut.razem AT siol.net>
15382         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
15383         sdcc/src/pic/glue.c:
15384         introduced atexit() handler for teporay files removal in case of
15385         errors, assertions, ...
15386
15387 2002-08-29  Borut Razem <borut.razem AT siol.net>
15388         * sdcc/support/cpp2/auto-host_vc_in.h:
15389         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
15390         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
15391         Maybe there is a similar problem with BORLANDC? It should be checked!
15392
15393         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
15394         corrected improper use of assert: the assignment to clr variable was done inside the assert.
15395         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
15396         was not executed, and the compiler (cl) launched a warning:
15397         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
15398
15399 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
15400         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
15401
15402 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
15403         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
15404
15405         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
15406           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
15407           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
15408           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
15409           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
15410           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
15411           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
15412         - added Release configuration in VS projects
15413         - review of compiler an linker options
15414         - VC .exe files are generated in bin_vc directory, not to interfere
15415           with binaries generated from other projects (cygwin, mingw, bcc ...)
15416
15417         * sdcc/src/yacc.dsp: added
15418
15419         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
15420         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
15421         and insert the version number definitions from .version
15422
15423         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
15424
15425         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
15426         added - genarate auto-host.h using auto-host_vc_in.h as template
15427
15428         * sdcc/sdcc_vc.h,
15429         removed from CVS, generated automatically
15430
15431 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
15432         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
15433
15434 2002-08-11  Borut Razem <borut.razem AT siol.net>
15435         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
15436
15437 2002-08-10  Borut Razem <borut.razem AT siol.net>
15438         * src/SDCCmain.c (main):
15439         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
15440         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
15441         The consequence was that some temporary files were not removed.
15442
15443         * src/SDCCglue.c:
15444         unification of code in functions tempfilename() and tempfile():
15445         function tempnam() is defined in Visual Studio 6.0 and .NET
15446
15447         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
15448
15449         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
15450           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
15451         - removed compiler command line option /WX: Treats all warnings as errors
15452         - update a list of source files, included into the project
15453
15454         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
15455           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
15456         changed project type to Generic Project so that can be correcly converted to VS.NET project
15457
15458         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
15459
15460         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
15461
15462         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
15463
15464         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
15465         added return 0 statements after assert() to make compiler happy
15466
15467         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
15468         added newline in the def file to keep MSC compiler satisfied
15469
15470         * sdcc/src/z80/gen.c:
15471         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
15472           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
15473         - solved MSC error in function aopDump()
15474
15475         * sdcc_vc.h: define PREFIX as "\\sdcc"
15476
15477 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
15478         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
15479
15480 2002-06-22  Scott Dattalo <scott AT dattalo.com>
15481         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
15482         - Rewrote the register banking algorithm.
15483         - Added pCode live-range analysis to registers (for now, only non-used and
15484         singly-used registers optimized away)
15485
15486         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
15487
15488         * 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.
15489
15490 2002-05-10  Scott Dattalo <scott AT dattalo.com>
15491         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
15492
15493 2002-04-22  Michael Hope  <michaelh AT vroom>
15494
15495         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
15496
15497         * configure.in (DD_COPT): Added include support required for gbdk.
15498
15499         * .version: Bumped version number just to increase it.
15500
15501         * src/SDCCmain.c: Added -nostdinc to the default options.
15502
15503 2002-04-15  Michael Hope  <michaelh AT vroom>
15504
15505         * device/lib/z80/printf.c (sprintf): Added.
15506
15507         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
15508
15509         * src/z80/peeph.def: Added transpose redundent load rule.
15510
15511         * src/z80/main.c: Added force callee saves for jaune.
15512
15513         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
15514
15515         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
15516
15517 2002-03-28  Johan Knol  <johan AT balder>
15518
15519         * src/SDCCval.c: fixed bug #532436
15520
15521 2002-03-14  Scott Dattalo <scott AT dattalo.com>
15522         * /src/port.h:
15523         Added "char *Processor" field to the port structure.
15524
15525         * /src/SDCCmain.c:
15526         Added -p option. Allows port dependent processor to be specified.
15527
15528         * all ports:
15529         Initialized the new field char *Processor field to NULL in all ports
15530
15531         * /src/pic/*:
15532         Compiler generated registers for interrupt context saving
15533         were not getting allocated.
15534
15535 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
15536
15537         * /src/SDCCast.c:
15538         Fixed left shift. Will promote the left side of a left shift
15539         if a) left shifting more than size of operand or b) when assigned
15540         to something size > size of left side
15541
15542 2002-03-14  Scott Dattalo <scott AT dattalo.com>
15543         * src/pic/*
15544         tons of changes. Register allocation has been
15545         rewritten. Added customization for the various PICs. Flow
15546         analysis is restructured. ...
15547
15548         * src/pic/device.h:
15549         Added
15550
15551         * src/pic/device.c:
15552         Added. device.c is a PIC port hack to accomodate variations
15553         in PIC devices.
15554
15555 2002-03-13  Michael Hope  <michaelh AT vroom>
15556
15557         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
15558
15559 2002-03-04  johanknol  <johanknol AT manik>
15560
15561         * /src/SDCCval.c: fixed
15562
15563         const unsigned char arr[][2] = { { 0, 1 } };
15564         t18.c:1: error: Initializer element is not constant
15565
15566 2002-03-04  bela  <bela AT manik>
15567
15568         * /device/include/mcs51reg.h:
15569         ds89c420 register definition update
15570
15571 2002-03-03    <johan AT FRIJA>
15572
15573         * support/Util/SDCCerr.c: did something, but don't no why anymore
15574
15575         * support/regression/tests/bug-524691.c: made it a little less shy
15576
15577         * src/SDCCast.c (decorateType): fixed bug #524697
15578
15579         * src/SDCCast.c: made some lineno improvements
15580
15581         * src/SDCCval.c (getNelements): changed warning to error
15582
15583         * src/SDCCglue.c (printIvalArray): changed warning to error
15584
15585         * src/SDCCicode.c: fixed a warning for mingw
15586
15587         * src/SDCCast.c (decorateType): fixed the << promotion for ops
15588
15589         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
15590
15591 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
15592
15593         * src/ds390/peeph.def:
15594         Added some more peephole rules
15595
15596         * src/ds390/gen.c: Various fixes & enhancements
15597
15598         * src/SDCClrange.c, src/SDCClrange.h:
15599         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
15600
15601         * src/ds390/ralloc.c:
15602         various fixes & enhancements (ds390) specific
15603
15604         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
15605         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
15606         from rallocs.
15607
15608         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
15609
15610 2002-03-02    <johan AT FRIJA>
15611
15612         * src/SDCCast.c (decorateType): fixed bug #524708
15613
15614         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
15615
15616         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
15617
15618 2002-03-01  Michael Hope  <michaelh AT vroom>
15619
15620         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
15621
15622         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
15623
15624 2002-03-01    <johan AT FRIJA>
15625
15626         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
15627
15628         * src/SDCCast.c (decorateType): fixed bug #524209
15629
15630         * src/SDCCval.c (valNot): fixed bug #524195
15631
15632 2002-02-26    <johan AT balder>
15633
15634         * src/xa51/gen.c: fixed a warning
15635
15636         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
15637
15638         * src/SDCCast.c (decorateType): fixed bug #522534
15639
15640 2002-02-23    <johan AT balder>
15641
15642         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
15643
15644 2002-02-22    <johan AT balder>
15645
15646         * src/SDCCast.c: fixed bug #514865
15647
15648         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
15649
15650 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
15651
15652         * sdcc/src/SDCCloop.c:
15653         Previous fix was not good. basic blocks that have "break" or "return" are
15654         not really partof a loop , but live ranges used in these blocks should
15655         be live thru the entire loop, so set partOfLoop but don't add them to
15656         loop region
15657
15658 2002-02-21    <johan AT FRIJA>
15659
15660         * src/SDCCcse.c: fixed bug #514308
15661
15662 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
15663
15664         * src/SDCCloop.c:
15665         Fixed BUG #519583. If a conditional block ended in a return/break
15666         statement inside a loop, it was not being considered part of the loop.
15667
15668         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
15669
15670 2002-02-10  Karl Bongers <karl AT turbobit.com>
15671
15672         * debugger/*:
15673         Fixed up SDCDB debugger somewhat.  Updated debugger/README
15674         with lots of comments and notes.
15675
15676         * device/examples/test2.c:
15677         Fix bug, "red" variable not being initialized(compiler complained).
15678
15679         * device/examples/Makefile, examples/test3.c:
15680         Add Makefile in device/examples folder, compiles test3.c
15681         for use as a multiple module SDCDB test case.
15682
15683         * sim/ucsim/cmd.src/cmdset.cc:
15684         Took out debug printfs in ucsim "next" command.
15685
15686         * sim/ucsim/xa.src:
15687         Karl and Johan start ucsim XA support.  Most dissassembly working,
15688         about 75% emulation done(plenty of work remaining).
15689
15690         * sim/ucsim/z80.src:
15691         Add Z80 support to ucsim, add test-ucz80 regression test,
15692         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
15693         Notice z80 compiler fails on examples/test3.c/crc code.
15694
15695 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
15696
15697         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
15698         Added support for --parms-in-bank1
15699
15700         * src/ds390/peeph.def:
15701         added a few more peephole optimzations
15702
15703         * src/ds390/main.c:
15704         1) added __builtin_inp & __builtin_outp used to read in data of given length
15705            from a memory mapped port
15706         2) added __builtin_memcmp
15707         3) added __builtin_swapw swap bytes of a short
15708
15709         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
15710         1) handle multiple send & receives from register bank1
15711         2) ralloc can now allocate DPTR1 to some liveRanges
15712
15713         * src/SDCCsymt.c, src/SDCCsymt.h:
15714         changes to handle multiple sends & receives
15715
15716         * src/SDCCptropt.h:
15717         added some pointer arithmetic optimization
15718
15719         * src/SDCCptropt.c:
15720         added some pointer arithmetic optimizations but not stable yet so not
15721         called from anywhere (will get this working shortly)
15722
15723         * src/SDCCopt.c: fixed for multiple sends & receives
15724
15725         * src/SDCCmain.c:
15726         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
15727         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
15728            set preprocessor defines (depending on options)
15729
15730         * src/SDCCicode.c, src/SDCCicode.h:
15731         changes made to handle multiple sends & receives
15732
15733         * src/SDCCglobl.h:
15734         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
15735
15736         * src/SDCCcse.c, src/SDCCcse.h:
15737         added function findbackward def (to be used in upcoming optimization)
15738
15739         * src/SDCCcflow.c, src/SDCCcflow.h:
15740         added function returnAtEnd - to determine if a basic block terminates with
15741         a RETURN iCode
15742
15743         * src/SDCCast.c, src/SDCCast.h:
15744         added option parms-in-bank1
15745
15746         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
15747         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
15748         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
15749         adjusted for --parms-in-bank1 option
15750
15751         * device/include/string.h:
15752         donot redefine "reentrant" keyword
15753
15754         * device/include/ds80c390.h: Added some more SFRs
15755
15756 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
15757
15758         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
15759
15760 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
15761
15762         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
15763
15764 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
15765
15766         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
15767
15768 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
15769
15770         * Added --xram-movc option
15771
15772 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
15773
15774         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
15775
15776 2002-01-11  Johan Knol
15777
15778         * Added math lib of Jesus Calvino-Fraga
15779
15780 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
15781
15782         * src/SDCCmain.c (processFile): fix processing of ../../src.c
15783         * support/regression/Makefile: new target test-mcs51-stack-auto
15784         * support/regression/ports/mcs51-stack-auto/spec.mk: added
15785
15786 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
15787
15788         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
15789
15790 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
15791
15792         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
15793
15794 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
15795
15796         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
15797
15798         * src/SDCCglue.h: add definition for printIvalChar()
15799
15800 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
15801
15802         * src/SDCCast.c: fix #498138 by Johan
15803
15804         * src/SDCCglue.c: fix #498138 by Johan
15805
15806 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
15807
15808         * support/regression/Makefile: fix clean
15809
15810         * support/regression/ports/ds390/support.c: fix transmission of last character
15811
15812 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
15813
15814         * /sdcc/src/ds390/gen.c:
15815         a) improved computing address of stack variable
15816         b) took out some #if 0 code
15817         c) improved parmBytes adjustment
15818         d) improved genPlusIncr & genMinusIncr
15819         e) genCmp could generate bad code (when left assigned to DPTR)
15820         f) Fixed bug in hasInc
15821
15822         * /sdcc/src/ds390/ralloc.c:
15823         a) packRegsForSupport could mess up live information (Fixed)
15824         b) packRegsDPTRuse could be incorrect for left & right shift
15825
15826         * /sdcc/src/mcs51/ralloc.c:
15827         packRegsForSupport could mess up the live information (Fixed)
15828
15829         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
15830
15831         * /sdcc/src/SDCCast.c:
15832         can reverse a loop even if function call is present as long
15833         as the loop control variable is local & is not passed as parameter
15834
15835 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15836
15837         * /sdcc/ChangeLog: *** empty log message ***
15838
15839         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
15840         More builtin function additions for TININative
15841
15842         * /sdcc/src/ds390/ralloc.c:
15843         Had broken the regression testsuite
15844
15845         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
15846
15847         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
15848         Added funcattr hasStackParms will be set for reentrant functions when there
15849         are paramteres on the stack, this helps in minimizing frame pointer generation
15850         typeFromStr can handle function pointers now
15851
15852         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
15853         *** empty log message ***
15854
15855 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15856
15857         * /src/ds390/gen.c, /src/ds390/main.c:
15858         More builtin function additions for TININative
15859
15860         * /src/ds390/ralloc.c:
15861         Had broken the regression testsuite
15862
15863         * /src/SDCCast.c: Fixed a bug in dumptree
15864
15865         * /src/SDCCsymt.c, /src/SDCCsymt.h:
15866         Added funcattr hasStackParms will be set for reentrant functions when there
15867         are paramteres on the stack, this helps in minimizing frame pointer generation
15868         typeFromStr can handle function pointers now
15869
15870         * /doc/builtins.txt, /doc/TININative.txt:
15871         *** empty log message ***
15872
15873
15874 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15875
15876         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
15877         ALPHA version for -mTININative
15878
15879         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
15880         updated to reflect changes in the port structure
15881
15882         * /src/port.h:
15883         added function do_assemble (similar to do_link) if non-null this function
15884         will be called to do assembly (-mTININative) requires a multi command
15885         assembly
15886         added function genAssemblerEnd will be called to generate assembler Epilogue
15887
15888         * /src/SDCCsymt.c:
15889         added _JavaNative to debug info printing
15890
15891         * /src/SDCCmain.c: added option --tini-libid
15892         added port->do_assemble function (-mTININative) has a multi command assemble
15893
15894         * /src/SDCCglue.c: Disabled "constExpr" check
15895         added port->genAssemblerEnd function
15896
15897         * /src/SDCCglobl.h: Added option --tini-libid value
15898
15899         * /src/SDCCast.h:
15900         tookout optimizeCompare from the header (has no external references)
15901
15902         * /src/SDCCast.c: made one more function "static"
15903
15904 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
15905
15906         * src/z80/mappings.i: Added z80asm support.
15907
15908         * src/z80/main.c: Added z80asm support on --asm=z80asm
15909
15910         * src/z80/gen.c: Fixed asm portability issues.
15911
15912         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
15913
15914         * src/SDCCglue.c (printExterns): Added global/extern split.
15915
15916 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
15917
15918         * support/regression/Makefile: added test for mcs51 model large
15919
15920         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
15921
15922         * support/regression/ports/gbz80/spec.mk: added -mgbz80
15923
15924 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
15925
15926         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
15927
15928 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
15929
15930         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
15931
15932         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
15933
15934 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
15935
15936         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
15937
15938         * support/regression/tests/simplefloat.c: Port to mcs51.
15939
15940 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
15941         * support/regression/tests/bug-485362.c: Added.
15942
15943         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
15944
15945         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
15946
15947         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
15948
15949         * src/z80/gen.c (aopDump): Added a dump function.
15950
15951 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
15952         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
15953
15954         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
15955
15956         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
15957
15958         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
15959
15960         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
15961
15962         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
15963
15964         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
15965
15966         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
15967
15968         * support/regression/ports/ds390/support.c: Use tinibios.
15969
15970         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
15971
15972 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
15973
15974         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
15975         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
15976
15977         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
15978
15979         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
15980
15981 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
15982
15983         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
15984
15985         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
15986         (packRegsForIYUse): Created and optimised.
15987
15988 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
15989
15990         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
15991 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
15992
15993         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
15994
15995         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
15996
15997         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
15998
15999 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
16000
16001         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
16002
16003         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
16004
16005 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
16006
16007         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
16008
16009         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
16010
16011         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
16012
16013 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
16014
16015         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
16016         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
16017         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
16018
16019         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
16020
16021         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
16022         (genNotFloat): Added.
16023         (genUminusFloat): Added.
16024
16025         * device/lib/z80/Makefile: Added floating pt stubs.
16026
16027         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
16028
16029         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
16030
16031         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
16032
16033 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
16034
16035         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
16036
16037         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
16038
16039         * sdcc/support/regression/Makefile: Add port ds390.
16040
16041         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
16042
16043         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
16044
16045         * sdcc/support/regression/ports/ds390/spec.mk: Added.
16046
16047         * sdcc/support/regression/ports/ds390/support.c: Added.
16048
16049         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
16050
16051         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
16052
16053         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
16054
16055 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
16056
16057         * device/include/malloc.h: Added z80 and gbz80 support.
16058
16059         * device/lib/gbz80/heap.s: Added.
16060
16061         * device/lib/z80/heap.s: Added.
16062
16063         * device/lib/malloc.c: Added z80 and gbz80 support.
16064
16065         * support/regression/tests/malloc.c (testMalloc): Added.
16066
16067         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
16068
16069         * support/regression/tests/bug-478094.c: Added.
16070
16071         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
16072
16073 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
16074
16075         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
16076
16077         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
16078
16079         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
16080
16081         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
16082
16083         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
16084
16085 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
16086
16087         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
16088
16089 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
16090
16091         * support/regression/tests/bug-477927.c: Added.
16092
16093         * src/z80/peeph.def: Added minor rules.
16094
16095         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
16096
16097         * src/z80/peeph.def: Added jump optimisation modification.
16098
16099 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
16100
16101         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
16102
16103 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
16104
16105         * support/regression/tests/funptrs.c: Added.
16106
16107 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
16108
16109         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
16110
16111 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
16112
16113         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
16114
16115         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
16116
16117         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
16118         (movLeft2ResultLong): Created.
16119
16120         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
16121         (joinPushes): Added.  Joins two char pushes into a word push.
16122
16123 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
16124
16125         * support/cpp2/Makefile.in (install): Added creation of dest dir.
16126
16127         * support/makebin/Makefile (install): Added creation of dest dir.
16128
16129 2001-10-24 Karl Bongers <karl AT turbobit.com>
16130
16131         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
16132
16133 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
16134
16135         * src/z80/ralloc.c: Turned off faulty pack for one use.
16136
16137         * src/z80/peeph-gbz80.def: Removed redundent restart options.
16138
16139         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
16140
16141 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
16142
16143         * support/regression/Makefile: Improved clean
16144
16145         * support/regression/ports/gbz80/spec.mk: Added clean
16146
16147         * support/regression/ports/host/spec.mk: Added clean
16148
16149         * support/regression/ports/z80/spec.mk: Added clean
16150
16151         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
16152
16153         * support/regression/ports/mcs51/timeout.c: little improvements
16154
16155 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
16156
16157         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
16158
16159         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
16160
16161         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
16162
16163 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
16164
16165         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
16166
16167         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
16168
16169 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
16170         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
16171
16172         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
16173
16174         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
16175
16176         * src/mcs51/main.c (_linkCmd): Added bin path to command.
16177
16178         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
16179
16180         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
16181
16182         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
16183
16184         * support/regression/tests/longor.c: Added.
16185
16186 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
16187
16188         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
16189
16190         * as/mcs51/aslink.h: define PATH_MAX
16191
16192         * as/mcs51/asm.h: define PATH_MAX
16193
16194         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
16195
16196         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
16197
16198         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
16199
16200         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
16201
16202         * src/SDCCglobl.h: define PATH_MAX
16203
16204         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
16205
16206         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
16207
16208 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
16209
16210         * src/z80/gen.c (gencjneshort): Fixed
16211
16212         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
16213
16214 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
16215
16216         * support/regression/tests/bug-469671.c: Added.
16217
16218         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
16219
16220 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
16221
16222         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
16223
16224         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
16225
16226 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
16227
16228         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
16229
16230         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
16231
16232         * src/device/lib/_mullong.c : removed hint: nooverlay bug
16233
16234         * src/device/lib/_divuint.c : removed hint: nooverlay bug
16235
16236         * src/device/lib/_divulong.c: removed hint: nooverlay bug
16237
16238         * src/device/lib/_moduint.c : removed hint: nooverlay bug
16239
16240         * src/device/lib/_modulong.c: removed hint: nooverlay bug
16241
16242 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
16243
16244         * 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.
16245
16246         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
16247
16248         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
16249
16250 2001-10-07    <johan AT FRIJA>
16251
16252         * device/lib/gets.c (gets): fixed the return value.
16253
16254 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
16255         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
16256
16257         * 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.
16258
16259         * 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.
16260
16261         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
16262
16263         * src/pic/gen.c: Removed Safe_strdup.
16264
16265         * configure.in: Added option to enable libgc support.
16266
16267         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
16268         (bitVectUnion): Optimised.
16269         (bitVectIntersect): Optimised.
16270         (bitVectBitsInCommon): Optimised.
16271         (bitVectCplAnd): Optimised.
16272
16273         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
16274
16275 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16276
16277         * src/SDCCmain.c: distinguish between assembler debug and plain options
16278
16279         * src/avr/main.c:   remove standard assembler options
16280
16281         * src/ds390/main.c: remove standard assembler options
16282
16283         * src/mcs51/main.c: remove standard assembler options
16284
16285         * src/port.h: removed "PENDING" comment
16286
16287 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16288
16289         * src/device/lib/_mulint.c  : new, with assember functions
16290
16291         * src/device/lib/_mullong.c : new, with assember functions
16292
16293         * src/device/lib/_divuint.c : with assember functions
16294
16295         * src/device/lib/_divsint.c : with assember functions
16296
16297         * src/device/lib/_divulong.c: with assember functions
16298
16299         * src/device/lib/_divslong.c: with assember functions
16300
16301         * src/device/lib/_moduint.c : with assember functions
16302
16303         * src/device/lib/_modsint.c : with assember functions
16304
16305         * src/device/lib/_modulong.c: with assember functions
16306
16307         * src/device/lib/_modslong.c: with assember functions
16308
16309         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
16310
16311         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
16312
16313         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
16314                                       replaced _mululong.c and _mulslong.c by _mullong.c
16315
16316 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16317
16318         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
16319
16320 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
16321
16322         * src/SDCCglue.c: test, if win32api is available for MINGW
16323
16324 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
16325
16326         * src/SDCCsymt.c: no more _modifier in printTypeChain()
16327         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
16328         * support/regression/ports/gbz80/spec.mk: removed GENERIC
16329         * support/regression/ports/host/spec.mk: removed GENERIC
16330         * support/regression/ports/mcs51/spec.mk: removed GENERIC
16331         * support/regression/ports/z80/spec.mk: removed GENERIC
16332
16333 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
16334
16335         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
16336
16337         * support/regression/tests/bug-467035.c: Created.
16338
16339 2001-10-01    <johan AT FRIJA>
16340
16341         * src/SDCC.y: fixed bug #466586 part 1
16342
16343 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
16344
16345         * SDCCicode.c: z80 has no generic pointers
16346         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
16347
16348 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
16349
16350         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
16351
16352 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
16353
16354         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
16355
16356         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
16357
16358 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
16359
16360         * configure.in: Fixed up so that ucsim is only configured once.
16361
16362         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
16363
16364         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
16365         (getPathDifference): As above.
16366
16367         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
16368
16369         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
16370
16371 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
16372         * .version: Updated to 2.3.1
16373
16374         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
16375         Added copyright header.
16376
16377         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
16378         (assemble): Added support for macro based assembler commands.
16379         (linkEdit): Added support for macro based linker commands.
16380         (preProcess): Changed the pre-processor to use macros.
16381         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
16382         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
16383
16384         * device/lib/z80/crt0.s: Added module name for debugging.
16385
16386 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
16387
16388         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
16389
16390         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
16391
16392         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
16393
16394         * src/Makefile.in: Added SDCCmacro and SDCCutil
16395
16396 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
16397
16398         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
16399
16400 2001-09-16    <johan AT FRIJA>
16401
16402         * 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.
16403
16404 2001-09-15    <johan AT FRIJA>
16405
16406         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
16407         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
16408
16409 2001-09-11    <johan AT FRIJA>
16410
16411         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
16412
16413 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
16414
16415         * support/regression/tests/bug-460444.c: Added test case.
16416
16417         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
16418         (genCast): Added justification for all of the asserts.
16419
16420 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
16421
16422         * support/regression/support.c: _xdata replaced by xdata
16423
16424         * support/regression/spec.mk: removed _generic
16425
16426 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
16427
16428         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
16429
16430         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
16431         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
16432
16433         * src/z80/peeph.def: Added a rule to optimise shift then compare.
16434
16435         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
16436
16437         * support/regression/tests/bug-460010.c: Added test case.
16438
16439         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
16440
16441 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
16442
16443         * support/regression/Makefile: inter-port-clean adjusted for mcs51
16444
16445         * support/regression/testfwk.c: removed workaround for bug #436344
16446
16447         * support/regression/tests/bp.c: use less memory with mcs51
16448
16449         * support/regression/tests/bug-441448.c: use less memory
16450
16451         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
16452
16453         * support/regression/collate-results.py: typo
16454
16455 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
16456
16457         * support/regression/tests/fetchoverlap.c: Added new test case.
16458
16459         * support/regression/tests/bp.c: Added new test case.
16460
16461         * support/regression/tests/bug-448984.c: Added new test case.
16462
16463         * support/regression/tests/pow2shifts.c: Added new test case.
16464
16465         * src/z80/gen.c: Turned off the noise it normally generates for the release.
16466         (genlshTwo): Fixed right shift for count > 8.
16467
16468         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
16469
16470 2001-09-08    <johan AT FRIJA>
16471
16472         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
16473
16474 2001-09-07    <johan AT FRIJA>
16475
16476         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
16477
16478         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
16479
16480 2001-09-06    <johan AT FRIJA>
16481
16482         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
16483         * bernhard noted me at this: "() equals to (void)" (1.38)
16484
16485 2001-09-05    <johan AT FRIJA>
16486
16487         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
16488
16489 2001-09-04    <johan AT FRIJA>
16490
16491         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
16492
16493
16494 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
16495
16496         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
16497
16498 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
16499
16500         * link/z80/aslink.h: Fixed path for PATH_MAX
16501
16502 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
16503
16504         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
16505
16506         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
16507
16508         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
16509
16510         * 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.
16511
16512 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
16513
16514         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
16515         (genCmp): Fixed up genCmp for the GB with longs.
16516
16517         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
16518
16519         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
16520
16521         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
16522
16523         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
16524
16525 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
16526
16527         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
16528
16529 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
16530
16531         * 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.
16532
16533         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
16534
16535 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
16536
16537         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
16538
16539         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
16540
16541 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
16542
16543   * sim/ucsim/configure:    little improvement of Cygwin-detection
16544   * sim/ucsim/configure.in: little improvement of Cygwin-detection
16545   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
16546   * support/regression/tests/bug-221100.c: small changes for mcs51
16547   * support/regression/tests/bug-221168.c: small changes for mcs51
16548   * support/regression/tests/bug-227710.c: small changes for mcs51
16549   * support/regression/tests/staticinit.c: small changes for mcs51
16550   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
16551   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
16552   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
16553
16554 $Revision$