* src/pic16/gen.c: applied patches :
[fw/sdcc] / ChangeLog
1 2008-06-12 Borut Razem <borut.razem AT siol.net>
2
3         * src/pic16/gen.c: applied patches :
4           2030306: [1/3] PIC16: fix failing rotate.c tests on 16-bit variables,
5           2030307: [2/3] PIC16: fix failing rotate.c tests for 32-bit var (1),
6           2030310: [3/3] PIC16: fix failing rotate.c tests for 32-bit var (2),
7           thanks Mauro Giachero
8
9 2008-07-13 Philipp Klaus Krause <pkk AT spth.de>
10         * src/port.h: Fixed typo in comment
11
12 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
13         * src/z80/mappings.i: Implemented RFE #1919415
14         * src/z80/peeph-z80.def: Implemented RFE #1919415, #1861376,
15           #1880202, #1914434, prepared for RFE #1703943
16
17 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
18
19         * src/z80/peeph.def,
20         * src/z80/peeph-z80.def,
21         * src/z80/peeph-gbz80.def: separate Z80 from GBZ80 peepholes in
22           preparation for Z80 peephole improvements
23
24 2008-06-21 Raphael Neider <rneider AT web.de>
25
26         * device/include/pic16/pic18f66j60.h,
27         * device/include/pic16/pic18f66j65.h,
28         * device/include/pic16/pic18f67j60.h,
29         * device/include/pic16/pic18f86j60.h,
30         * device/include/pic16/pic18f86j65.h,
31         * device/include/pic16/pic18f87j60.h,
32         * device/include/pic16/pic18f96j60.h,
33         * device/include/pic16/pic18f96j65.h,
34         * device/include/pic16/pic18f97j60.h,
35         * device/lib/pic16/libdev/pic18f66j60.c,
36         * device/lib/pic16/libdev/pic18f66j65.c,
37         * device/lib/pic16/libdev/pic18f67j60.c,
38         * device/lib/pic16/libdev/pic18f86j60.c,
39         * device/lib/pic16/libdev/pic18f86j65.c,
40         * device/lib/pic16/libdev/pic18f87j60.c,
41         * device/lib/pic16/libdev/pic18f96j60.c,
42         * device/lib/pic16/libdev/pic18f96j65.c,
43         * device/lib/pic16/libdev/pic18f97j60.c,
44         * device/include/pic16/pic16devices.txt,
45         * device/include/pic16/pic18fregs.h,
46         * device/lib/pic16/pics.all: added new devices
47
48         * device/include/pic16/adc.h,
49         * device/lib/pic16/libio/adc/adcbusy.c,
50         * device/lib/pic16/libio/adc/adcopen.c,
51         * device/lib/pic16/libio/adc/adcsetch.c,
52         * device/lib/pic16/libio/i2c/i2copen.c,
53         * device/lib/pic16/libio/usart/uopen.c: adapted to new devices,
54           all changes from a patch by Anton Strobl
55
56 2008-06-12 Borut Razem <borut.razem AT siol.net>
57
58         * sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/bp.cc,
59           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
60           sim/ucsim/z80.src/z80cl.h, sim/ucsim/z80.src/z80.cc,
61           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
62           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
63           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/uc390.cc,
64           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/uc390cl.h,
65           sim/ucsim/avr.src/avrcl.h, sim/ucsim/avr.src/avr.cc:
66           fixed bug 1990586: s51 simulator, uc::disass() unimplemented
67           by applying the modified patch from Risto Huotari
68
69 2008-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
70
71         * .version,
72         * doc/sdccman.lyx: bumped sdcc version to 2.8.2
73         * src/ds390/gen.c (aopPutUsesAcc, genAddrOf): fixed bug 1015185
74         * src/mcs51/gen.c (genNearPointerGet, genNearPointerSet): fixed bug 1938300
75         * support/regression/tests/bug1938300.c: new, added
76
77 2008-06-03 Maarten Brock <sourceforge.brock AT dse.nl>
78
79         * device/include/asm/ds390/features.h,
80         * device/include/asm/mcs51/features.h,
81         * device/include/mcs51/regc515c.h: inserted LGPL notice
82
83 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
84
85         * device/lib/gbz80/div.s,
86         * device/lib/z80/div.s: fixed bug 1904314 by applying a modified part of
87           patch 1597883, Thanks Robert Ramey
88
89 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
90
91         * src/SDCCast.c (createIvalType, createIvalStruct, createIvalArray,
92           createIvalCharPtr, createIvalPtr, createIval),
93         * src/SDCCval.h
94         * src/SDCCval.c (convertIListToConstList, list2expr): handle incomplete
95           initializers for local auto variables
96         * support/regression/tests/zeropad.c: added testcase for auto initializers
97
98 2008-05-26 Raphael Neider <rneider AT web.de>
99
100         * device/lib/pic16/startup/crt0.c,
101         * device/lib/pic16/startup/crt0i.c,
102         * device/lib/pic16/startup/crt0iz.c: clean up, make use of access bank
103           explicit, fixed curr_entry loop for >= 256 initializer records,
104           removed debug code (write to 0xf7e)
105
106 2008-05-25 Raphael Neider <rneider AT web.de>
107
108         * device/include/pic/pic16f627a.h,
109         * device/include/pic/pic16f628a.h,
110         * device/include/pic/pic16f648a.h: added missing ports
111
112 2008-05-20 Maarten Brock <sourceforge.brock AT dse.nl>
113
114         * device/include/float.h: added __INFINITY
115         * device/lib/_fsadd.c: handle overflows
116         * device/lib/_fsmul.c,
117         * device/lib/_fsdiv.c: use __INFINITY
118         * device/lib/_fseq.c,
119         * device/lib/_fsneq.c: handle -0.0
120         * sim/ucsim/s51.src/uc89c51r.cc,
121         * sim/ucsim/s51.src/uc89c51rcl.h: fixed bug 1385430
122         * sim/ucsim/sim.src/hwcl.h: */* confuses VC
123         * src/mcs51/gen.c (genSend): fixed bug with --xstack
124         * support/regression/ports/mcs51-xstack-auto/spec.mk: print floats
125         * support/regression/tests/snprintf.c: test bug with --xstack
126
127 2008-05-19  Philipp Klaus Krause <pkk AT spth.de>
128
129         * src/SDCCpeeph.c (callFuncByName):
130           Support nested parenthesis in peephole function arguments (#1967300)
131
132 2008-05-19 Raphael Neider <rneider AT web.de>
133
134         * src/pic16/gen.c (pic16_emitpLabel,pic16_emitpLabelFORCE):
135           fixed duplicate labels (#1911325)
136
137 2008-05-19 Raphael Neider <rneider AT web.de>
138
139         * src/regression/empty.c: suppress warning
140         * src/regression/pointer1.c: enabled index_by_pointer()
141         * src/regression/inline.c: now works for pic16 as well
142
143         * src/pic16/device.c: include dbuf declarations
144         * src/pic16/device.h: removed obsolete prototypes
145
146         * src/pic16/gen.c, src/pic16/gen.h: moved generic pointer tags
147         * src/pic16/glue.c: made purely local functions static,
148           (pic16_printGPointerType, pic16_printIvalCharPtr,
149           pic16_printIvalFuncPtr, pic16_printIvalPtr): fixed initialized
150           generic pointers' tags (#1961866)
151
152         * src/pic16/pcode.c (assignValnums): optimize literal assignments
153
154 2008-05-19 Borut Razem <borut.razem AT siol.net>
155
156         * support/scripts/sdcc.nsi: remove uninstall.exe after uninstallation,
157           fixed typo, uninstall include/pic16/pic16devices.txt
158
159 2008-05-18 Borut Razem <borut.razem AT siol.net>
160
161         * support/Utils/dbuf_string.[ch]: added dbuf_chomp(),
162           the buffer is null terminated
163         * src/device/pic16.c:
164           applied modified patch 1965676: Patch for Win32 16 bit PIC
165         * sdcc_vc_in.h: defined YY_NO_UNISTD_H
166
167 2008-05-16 Maarten Brock <sourceforge.brock AT dse.nl>
168
169         * src/SDCC.lex (check_type),
170         * src/SDCC.y (type_specifier2 TYPE_NAME): fixed bug 1925942
171         * as/hc08/clean.mk,
172         * as/mcs51/clean.mk,
173         * as/z80/clean.mk: also clean *.dep
174         * device/lib/pic16/libsdcc/stack/Makefile,
175         * sim/ucsim/libtool: removed as they are rebuild by configure
176         * src/clean.mk: removed izt, so Makefile is not deleted for distclean
177
178 2008-05-13 Maarten Brock <sourceforge.brock AT dse.nl>
179
180         * src/SDCCast.c (fixupInline, createFunction): save currBlockno in
181           fixupInline instead of createFunction to fix bug 1864577
182           (inlineFindMaxBlockno): removed, use global blockNo
183         * src/SDCCglobl.h: added blockNo
184         * src/z80/peep.c,
185         * src/z80/peep.h: modified properties
186         * support/regression/tests/bug1864577.c: new, added
187
188 2008-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
189
190         * as/mcs51/asdata.c,
191         * as/mcs51/asm.h: added org_cnt
192         * as/mcs51/asmain.c (main, asmbl): fixed bug 1957716, changed old K&R to ANSI
193         * as/mcs51/asout.c: changed old K&R to ANSI
194         * as/mcs51/Makefile.in: use common identifiers
195         * as/hc08/asdata.c,
196         * as/hc08/asexpr.c,
197         * as/hc08/asm.h,
198         * as/hc08/asmain.c,
199         * as/hc08/asout.c,
200         * as/hc08/Makefile.bcc,
201         * as/hc08/Makefile.in: synchronized with as/mcs51/*
202         * sdcc_vc_in.h: added define __func__
203         * src/SDCCast.c (expandInlineFuncs): applied patch 1957148 to fix bug 1717305,
204           Thanks Ruud van Silfhout
205         * support/regression/tests/bug1717305.c: new, added
206
207 2008-05-05 Borut Razem <borut.razem AT siol.net>
208
209         * support/regression/Makefile.in,
210           support/regression/ports/ds390/spec.mk,
211           support/regression/ports/hc08/spec.mk,
212           support/regression/ports/mcs51-common/spec.mk,
213           support/regression/ports/pic14/spec.mk,
214           support/regression/ports/pic16/spec.mk,
215           support/regression/ports/ucz80/spec.mk,
216           support/regression/ports/z80/spec.mk:
217           added INC_DIR and LIBDIR paths
218         * src/ds390/gen.c: removed duplicated selicolon
219
220 2008-05-04 Borut Razem <borut.razem AT siol.net>
221
222         * support/regression/Makefile.in,
223           support/regression/fwk/lib/testfwk.c,
224           support/regression/ports/ds390/spec.mk,
225           support/regression/ports/hc08/spec.mk,
226           support/regression/ports/mcs51-common/spec.mk,
227           support/regression/ports/mcs51-large/spec.mk,
228           support/regression/ports/mcs51-medium/spec.mk,
229           support/regression/ports/mcs51-small/spec.mk,
230           support/regression/ports/mcs51-stack-auto/spec.mk,
231           support/regression/ports/mcs51-xstack-auto/spec.mk,
232           support/regression/ports/pic14/spec.mk,
233           support/regression/ports/pic16/spec.mk,
234           support/regression/ports/ucz80/spec.mk:
235           added possibility to define the sdcc binary directory SDCC_BIN_PATH
236           used to run regeression tests
237
238 2008-05-01 Raphael Neider <rneider AT web.de>
239
240         * doc/sdccman.lyx, support/scripts/inc2h-pic16.pl: updated list of
241           supported devices and instructions to add new ones
242
243 2008-05-01 Raphael Neider <rneider AT web.de>
244
245         * device/include/pic16/adc.h,
246           device/lib/pic16/libio/adc/adcbusy.c,
247           device/lib/pic16/libio/adc/adcopen.c,
248           device/lib/pic16/libio/adc/adcsetch.c: support old 18f242 and new
249           18f2455 style ADC devices, based on patch #1776197
250         * device/lib/pic16/libio/adc/adcclose.c,
251           device/lib/pic16/libio/adc/adcconv.c,
252           device/lib/pic16/libio/adc/adcread.c: cosmetic changes
253         * device/include/pic16/{pic18f2331.h,pic18f2431.h},
254           device/lib/pic16/libdev/{pic18f2331.c,pic18f2431.c}: reuse 18f4331
255         * device/include/pic16/pic18f4431.h,
256           device/lib/pic16/libdev/pic18f4431.c: remove outdated comments
257         * device/lib/pic16/libio/adc.ignore: forbid unhandled devices
258
259 2008-05-01 Raphael Neider <rneider AT web.de>
260
261         * src/pic16/device.h: removed unused field PIC16_device.sfrRange,
262           moved xinst flag into pic16_options_t
263         * src/pic16/device.c (default_device, pic16_list_devices,
264           pic16_find_device): removed references to sfrrange
265         * src/pic16/gen.c (genFunction),
266           src/pic16/glue.c (pic16initialComments),
267           src/pic16/main.c (pic16_optionsTable),
268           src/pic16/ralloc.c (newReg, pic16_writeUsedRegs): updated references
269           to xinst
270         * device/include/pic16/pic16devices.txt: removed sfrrange lines
271
272 2008-04-29 Raphael Neider <rneider AT web.de>
273
274         * src/pic16/devices.inc,
275           device/include/pic16/pic16devices.txt: replaced compiled-in list
276           of devices with a variant parsed at runtime
277         * src/pic16/device.c: added support for parsing pic16devices.txt,
278           clean up
279         * src/pic16/device.h: removed (now) unused fields from PIC_device
280         * src/pic16/main.c: removed #pragma maxram,
281           (_pic16_initPaths): removed bogus generation of search paths,
282           setup the port proper only after the search paths (for
283           pic16devices.txt) are set up,
284           (_pic16_finaliseOptions): moved processor dependant code here
285           from _pic16_initPaths(), clean up
286         * src/pic16/ralloc.c (pic16_init_stack),
287         * src/pic16/ralloc.h,
288         * src/pic16/pcode.c: clean up
289         * device/include/Makefile.in,
290           support/scripts/sdcc.nsi: also install/package pic16devices.txt
291         * support/scripts/inc2h-pic16.pl: updated instructions
292
293 2008-04-29 Raphael Neider <rneider AT web.de>
294
295         * device/include/pic16/{pic18f2480.h, pic18f2580.h, pic18f4423.h,
296           pic18f4480.h, pic18f4523.h, pic18f4580.h, pic18f6585.h, pic18f8585.h},
297           device/lib/pic16/libdev/{pic18f2480.c, pic18f2580.c, pic18f4423.c,
298           pic18f4480.c, pic18f4523.c, pic18f4580.c, pic18f6585.c, pic18f8585.c}:
299           added missing family members and 18f2480/2580/4480/4580 family
300         * device/include/pic16/{pic18f2423.h, pic18f2523.h}: use 18f4523.h
301         * device/include/pic16/pic18f2525.h: use 18f4620.h
302         * device/include/pic16/pic18f6680.h: use 18f8680.h
303         * device/include/pic16/pic18fregs.h,
304           device/lib/pic16/pics.all,
305           src/pic16/devices.inc: add new devices
306         * device/lib/pic16/libdev/{pic18f2423.c, pic18f2523.c}: use 18f4523.c
307         * device/lib/pic16/libdev/pic18f2525.c: use 18f4620.c
308         * device/lib/pic16/libdev/pic18f6680.c: uso 18f8680.c
309         * device/lib/pic16/libio/{adc.ignore, i2c.ignore, usart.ignore}:
310           prevent attempting to build the libio for some new devices
311
312 2008-04-29 Raphael Neider <rneider AT web.de>
313
314         * debugger/mcs51/Makefile.in: fixed paths to sources
315
316 2008-04-25 Borut Razem <borut.razem AT siol.net>
317
318         * as/link/lklibr.c: moved from as/link/z80/lklibr.c
319         * as/link/hc08/lklibr.c, as/link/mcs51/lklibr.c: deleted
320         * as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
321         * as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
322           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
323           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
324           as/link/z80/linkz80.dsp: lklibr.c moved
325         * doc/INSTALL.txt: binary archives in bz2 format
326         * support/cpp/auto-host_vc_in.h: CPP2 replaced with CPP
327
328 2008-04-23 Maarten Brock <sourceforge.brock AT dse.nl>
329
330         * src/SDCCglue.c (printIvalType, printIvalBitFields): fixed bug 1856409
331         * support/regression/tests/bug1856409.c: new, added
332
333 2008-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
334
335         * src/z80/peep.c,
336         * src/mcs51/peep.c: Use werror for error messages.
337         * src/SDCCicode.c (geniCodeConditional),
338         * src/SDCCsymt.c (structElemType): fixed bug 1839321
339         * src/z80/Makefile.bcc,
340         * src/z80/z80.dsp: added src/z80/peep.c/h
341         * support/regression/tests/bug1839321.c: new, added
342
343 2008-04-20 Raphael Neider <rneider AT web.de>
344
345         * device/include/pic16/pic18f2455.h: added bitfields for port C
346
347 2008-04-20 Philipp Klaus Krause <pkk AT spth.de>
348
349         * src/z80/peep.c: Use werror for error messages.
350
351 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
352
353         * src/z80/peep.h (declaration of notUsed()),
354         * src/z80/main.c (enabled notUsed() for z80 port, documented z80_port
355           struct),
356         * src/z80/z80.h (added dependency on peep.h),
357         * src/z80/peep.c (definition of notUsed()): Implemented RFE #1880202
358           for Z80.
359
360 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
361
362         * src/SDCCpeeph.c (added support for notUsed()),
363         * src/mcs51/main.c (added dependency on peep.h, documented mcs51_port
364           struct),
365         * src/port.h (removed dependency on mcs51/peep.h, added declaration
366           for notUsed()): Implemented generic (that is not port-specific) part
367           of RFE #1880202.
368
369 2008-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
370
371         * as/link/mcs51/lkmem.c (summary2): fixed bug 1796077
372         * device/lib/libsdcc.lib,
373         * device/lib/Makefile.in,
374         * support/regression/ports/mcs51-xstack-auto/spec.mk,
375         * device/lib/calloc.c: renamed to _calloc.c
376         * device/lib/free.c: renamed to _free.c
377         * device/lib/malloc.c: renamed to _malloc.c
378         * device/lib/realloc.c: renamed to _realloc.c
379         * src/ds390/gen.c (aopGet, aopPut, genPlusBits, genDataPointerSet,
380           genNearPointerSet, genPagedPointerSet): synchronized with mcs51/gen.c
381         * src/ds390/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq, ifxForOp,
382           genAnd, genOr, genXor, genIfx, gen390Code): fixed bug 1509084
383         * src/mcs51/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq,
384           ifxForOp, genAnd, genOr, genXor, genNearPointerGet,
385           genPagedPointerGet, genFarPointerGet, genCodePointerGet,
386           genGenPointerGet, genIfx, gen51Code): fixed bug 1509084
387         * src/ds390/gen.c,
388         * src/mcs51/gen.c: throughout cosmetic changes for syncing both
389         * src/SDCCsymt.h: updated IS_OP_RUONLY, IS_OP_ACCUSE
390         * support/regression/tests/bug1509084.c: new, added
391
392 2008-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
393
394         * device/include/mcs51/cc2510fx.h: added _XPAGE
395         * device/include/mcs51/compiler.h: cosmetic changes
396
397 2008-03-31 Maarten Brock <sourceforge.brock AT dse.nl>
398
399         * sdcc.dsw: adapted for moved cpp2, added dependency for as_z80 on
400           config
401
402 2008-03-31 Borut Razem <borut.razem AT siol.net>
403
404         * support/cpp2 renamed to support/cpp
405         * support/cpp2/libiberty/filenames.h, support/cpp2/libiberty/hex.c,
406           support/cpp2/libiberty/splay-tree.c,
407           support/cpp2/libiberty/splay-tree.h, support/cpp2/libcpp/macro.c,
408           support/cpp2/libcpp/directives.c,
409           support/cpp2/libcpp/include/cpplib.h,
410           support/cpp2/libcpp/include/symtab.h,
411           support/cpp2/libcpp/include/line-map.h,
412           support/cpp2/libcpp/line-map.c, support/cpp2/libcpp/files.c,
413           support/cpp2/libcpp/init.c, support/cpp2/libcpp/traditional.c,
414           support/cpp2/libcpp/expr.c, support/cpp2/libcpp/internal.h,
415           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/system.h,
416           support/cpp2/libcpp/charset.c: SDCPP synchronized with GCC CPP
417           release version 4.3.0
418         * configure.in, configure, Makefile.in, Makefile.bcc:
419           adapted for moved cpp2
420
421 2008-03-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
422
423         * device/include/hc08/mc68hc908jkjl.h: committed fix for bug #1929739,
424           thanks Alejandro Pustowka <alejo_pustowka AT yahoo.com.mx>
425
426 2008-03-30 Maarten Brock <sourceforge.brock AT dse.nl>
427
428         * src/SDCCloop.c (loopInvariants): applied fix for bug 1717943, thanks
429           Robert Larice
430         * support/regression/tests/bug1717943.c: new, added
431
432 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
433
434         * src/z80/gen.c (assignResultValue): Reverted reversal of order of
435           bytewise return value assignments introduced in last commit.
436
437 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
438
439         * src/z80/gen.c (emitDebug, assignResultValue, genPlus, genMinus,
440           genMult, genJumpTab):
441           Use 16-bit instructions for addition in some additional cases,
442           implemented RFEs #1914251, #1914245, #1922090, #1921382, #1918323.
443
444 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
445
446         * src/z80/ralloc.c (serialRegAssign, allocReg, tryAllocatingRegPair):
447           Implemented RFE #1921450, changed some debug messages.
448
449 2008-03-30 Borut Razem <borut.razem AT siol.net>
450
451         * Small Device C Compiler 2.8.0 released
452         * .version, doc/sdccman.lyx: changed sdcc version to 2.8.1
453         * support/scripts/sdcc.nsi: added finish page; this version
454           was used for 2.8.0 release
455         * doc/knownbugs.html: removed; magically generated by the build
456           process using gen_known_bugs.pl from now on
457
458 2008-03-23 Borut Razem <borut.razem AT siol.net>
459
460         * src/pic/gen.h: Q&D solution for the bug, found by Jim Paris
461           and reverted it, since it was already fixed by Raphael ;-)
462         * doc/knownbugs.html: updated for RC2
463
464 2008-03-22 Raphael Neider <rneider AT web.de>
465
466         * src/SDCCicode.c (getPtrType): avoid unnecessary extra assignments
467           for PIC16 targets
468
469 2008-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
470
471         * src/mcs51/gen.c (adjustArithmeticResult): fixed bug 1839299
472         * support/regression/tests/bug1839277.c: added related testBug1839299
473
474 2008-03-21 Maarten Brock <sourceforge.brock AT dse.nl>
475
476         * src/ds390/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign),
477         * src/mcs51/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign):
478           fixed bug 1839277
479         * src/mcs51/gen.c: throughout only output hex constants
480         * src/SDCCicode.c (getPtrType, geniCodeCast): fixed code size regression
481         * support/regression/tests/bug1839277.c: new, added
482
483 2008-03-21 Philipp Klaus Krause <pkk AT spth.de>
484
485         * src/z80/ralloc.c (callFuncByName): Used // instead of /**/ to fix
486           compilation warning about nested comments.
487
488 2008-03-20 Maarten Brock <sourceforge.brock AT dse.nl>
489
490         * src/SDCCsymt.c (comparePtrType): fixed bug 1921073
491         * support/regression/tests/bug1921073.c: new, added
492
493 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
494
495         * src/z80/SDCCpeeph.c.c (callFuncByName):
496           Commented function parameters.
497
498 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
499
500         * src/z80/ralloc.c (packRegsForAccUse2):
501           disabled a broken accumulator packing optimization (fixed #1292721).
502         * support/regression/tests/bug-1292721: Regression test for #1292721.
503
504 2008-03-16 Raphael Neider <rneider AT web.de>
505
506         * src/pic/gen.c (SetIrp,genNearPointerGet,genNearPointerSet):
507           fixed code bloat regression using a variant of patch #1915618
508
509 2008-03-16 Borut Razem <borut.razem AT siol.net>
510
511         * support/scripts/sdcc.nsi: added section debugging macros, added SDCC
512           icon, changed startup menu for release distribution, code cleaning,
513           create url files instead links in startup menu
514
515 2008-03-16 Maarten Brock <sourceforge.brock AT dse.nl>
516
517         * src/SDCCcse.c (algebraicOpts): fixed bug 1579949
518         * support/regression/tests/bug1579949.c: new, added
519
520 2008-03-14 Paul Stoffregen <paul AT pjrc.com>
521
522         * device/lib/printf_fast.c: fixed bug 1255403
523
524 2008-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
525
526         * doc/sdccman.lyx: enhanced paragraph about bankswitching for mcs51
527         * src/cdbFile.c (cdbWriteBasicSymbol): fixed bug 1909409 for locals
528
529 2008-03-14 Borut Razem <borut.razem AT siol.net>
530
531         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated link-xx and aslink
532           command line options
533         * as/link/hc08/lkmain.c: converted tabs to spaces so that the usage
534           is correctly displayed
535         * as/link/z80/lkmain.c: usage line commented out
536
537 2008-03-13 Borut Razem <borut.razem AT siol.net>
538
539         * doc/sdccman.lyx: corrected to be able to convert to PDF,
540           updated the list pf supported pic14 devices
541
542 2008-03-12 Maarten Brock <sourceforge.brock AT dse.nl>
543
544         * doc/sdccman.lyx: added paragraph about bankswitching for mcs51
545
546 2008-03-12 Borut Razem <borut.razem AT siol.net>
547
548         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated command line options,
549           fixed documentation request #1718191
550         * as/hc80/asmain.c, as/mcs51/asmain.c: added option -c to usage
551         * doc/sdccman.lyx: added description of --no-std-crt0 gbz80
552           command line option
553
554 2008-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
555
556         * src/SDCCast.c (isConformingBody): fixed bug 1505811, thanks Robert Larice
557         * support/regression/tests/bug1505811.c: new, added
558
559 2008-03-09 Raphael Neider <rneider AT web.de>
560
561         * device/include/pic16/pic18f2620.h,
562         * device/include/pic16/pic18f4620.h,
563         * device/lib/pic16/libdev/pic18f2620.c,
564         * device/lib/pic16/libdev/pic18f4525.c,
565         * device/lib/pic16/libdev/pic18f4620.c: merged 18f2525/2620/4525/4620
566           family to consistently use pic18f4620.[ch], fixes #1832562
567
568 2008-03-09 Borut Razem <borut.razem AT siol.net>
569
570         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
571           changed sdcc version to 2.8.0
572         * knownbugs.html: regenerated
573         * support/scripts/gen_known_bugs.pl: added number of open bugs
574
575 2008-03-09 Raphael Neider <rneider AT web.de>
576
577         * src/pic16/gen.c (pic16_mov2w_volatile): NEW, read volatile operands,
578           (genOr): read volatile operand even if the result is known,
579           closes #1511838
580           (genOr,genXor): removed unused legacy code,
581           (genDummyRead): use pic16_mov2w_volatile()
582
583 2008-03-08 Borut Razem <borut.razem AT siol.net>
584
585         * src/SDCCglue.c: fixed bug #1864582: multiple definition of char
586           cons w. --model-large
587         * support/regression/staticinit.c: added regression test for bug
588           #1864582
589
590 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
591
592         * src/ds390/gen.c (pushSide, genPcall),
593         * src/hc08/gen.c (pushSide, genPcall): synchronized with mcs51
594         * src/mcs51/gen.c: cosmetic changes
595         * support/regression/fwk/include/testfwk.h: added macro reentrant
596         * support/regression/tests/bug1908493.c: new, added
597
598 2008-03-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
599
600         * src/SDCCdebug.c:, as/link/lkaomf51.c: Fixed bug 1909409: Pdata in OMF file
601
602 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
603
604         * src/mcs51/gen.c (pushSide, genPcall): fixed bug 1908493
605         * src/SDCCmain.c (preProcess): removed -DSDCC_PARMS_IN_BANK1 because it is
606           already set in ds390/main.c and mcs51/main.c
607
608 2008-03-07 Raphael Neider <rneider AT web.de>
609
610         * src/regression/init0.c: new test for initialized arrays of function
611           pointers
612         * src/regression/Makefile: made a bit more flexible, added init0.c
613         * src/pic/glue.c (emitIvals): hacky fix for initializing from function
614           pointers, closes #1427663
615
616 2008-03-05 Borut Razem <borut.razem AT siol.net>
617
618         * dos/sdccman.lyx: docummented predefined macros SDCC_REVISION,
619           SDCC_PARMS_IN_BANK1, SDCC_FLOAT_REENT and SDCC_INT_LONG_REENT
620
621 2008-03-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
622
623         * support/librarian/sdcclib.c:Added feature request 1908061:
624           Synchronise sdcclib commands with ar.
625
626 2008-03-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
627
628         * src/SDCCmain.c: added predefined macros SDCC_REVISION (RFE #1907229),
629           and (depending on corresponding compiler option) SDCC_PARMS_IN_BANK1,
630           SDCC_FLOAT_REENT, SDCC_INT_LONG_REENT
631         * device/include/mcs51/compiler.h: removed umlauts, added double
632           underscore
633
634 2008-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
635
636         * src/SDCCptropt.c (ptrPseudoSymConvert): fixed bug 1536762
637         * support/regression/tests/bug1536762.c: new, added
638         * src/SDCCutil.c,
639         * src/SDCCutil.h: added getBuildDate()
640         * src/SDCCmain.c (printVersionInfo),
641         * src/SDCCglue.c (initialComments): use getBuildDate() instead of
642           __DATE__
643         * src/*/ralloc.c: removed IS_OP_RUONLY macro
644         * src/ds390/ralloc.c (packRegisters),
645         * src/mcs51/ralloc.c (packRegisters),
646         * src/z80/ralloc.c (packRegisters): applied fix for bug 1618050, thanks
647           Robert Larice
648         * support/regression/tests/bug1618050.c: new, added
649         * src/SDCCsymt.h: fixed typo in DECLSPEC2TXT
650         * support/regression/fwk/include/testfwk.h,
651         * support/regression/tests/bug1838000.c: moved _AUTOMEM and _STATMEM to
652           testfwk.h
653
654 2008-03-04 Raphael Neider <rneider AT web.de>
655
656         * src/pic/gen.c: removed unused prototypes, prevent internal errors
657           on accessing OP_SYM_TYPE(op)
658         * src/pic/gen.h: removed unused prototype of genMinusDec()
659         * src/pic/genarith.c (genMinus): cosmetic changes, rewritten to
660           fix #1876953 (invalid subtraction code), removed unused code
661
662 2008-03-03 Raphael Neider <rneider AT web.de>
663
664         * src/pic/gen.c,
665         * src/pic/gen.h,
666         * src/pic/genarith.c,
667         * src/pic/ralloc.c,
668         * src/pic/ralloc.h: removed AOP_R0, AOP_R1, AOP_DPTR, AOP_DPTR2,
669           AOP_ACC, and *_IDX and adjusted code, removed unused legacy code
670
671 2008-03-03 Raphael Neider <rneider AT web.de>
672
673         * src/pic/device.c (find_device): search user-specified paths first
674           for pic14devices.txt, fixes #1900827
675
676 2008-03-02 Borut Razem <borut.razem AT siol.net>
677
678         * support/scripts/sdcc.nsi: fixed bug in IsNT, LogicLib-isation of
679           AddToPath and RemoveFromPath
680
681 2008-03-01 Borut Razem <borut.razem AT siol.net>
682
683         * support/scripts/sdcc.nsi: reverted MULTIUSER page since it didn't
684           work correctly, added debugging support if -DSDCC.DEBUG command line
685           option is defined
686
687 2008-02-28 Borut Razem <borut.razem AT siol.net>
688
689         * doc/sdccman.lyx: cosmetic changes
690
691 2008-02-28 Maarten Brock <sourceforge.brock AT dse.nl>
692
693         * src/mcs51/ralloc.c (fillGaps): fixed bug 1839671
694         * doc/sdccman.lyx: fixed unmeant removal of spaces
695
696 2008-02-27 Borut Razem <borut.razem AT siol.net>
697
698         * support/scripts/sdcc.nsi: corrected installation directory for
699           current user installation mode
700         * doc/README.txt: added Philipp Klaus Krause to the developers list
701
702 2008-02-27 Maarten Brock <sourceforge.brock AT dse.nl>
703
704         * src/mcs51/gen.c (genUnpackBits): don't generate ifxJump, instead
705           return ifx condition
706           (genNearPointerGet, genPagedPointerGet, genFarPointerGet,
707           genCodePointerGet, genGenPointerGet): cleanup aop before generating
708             ifxJump to fix bug 1838000
709         * src/SDCCsymt.c (aggregateToPointer): fix problem for xstack
710         * support/regression/tests/bug1838000.c: new, added
711         * device/include/mcs51/cc1110.h: new, added, thanks to Pravin Angolkar
712
713 2008-02-26 Borut Razem <borut.razem AT siol.net>
714
715         * src/SDCCast.c, doc/sdccman.lyx: fixed RFE #1901171: inerger promotion
716           of casted varargs
717         * support/scripts/sdcc.nsi: added MULTIUSER page,
718           NSIS upgraded to version 2.35
719
720 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
721
722         * src/mcs51/ralloc.c (isSpiltOnStack): fixed bug 1565152
723         * support/regression/tests/bug1565152.c: new, added
724
725 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
726
727         * src/mcs51/gen.c (genPagedPointerSet): fixed bug 1670148
728         * support/regression/ports/mcs51-xstack-auto/spec.mk: added expf.c
729         * support/regression/tests/bug1670148.c: new, added
730
731 2008-02-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
732
733         * device/include/mcs51/at89c51ed2.h: fixed bug 1901469.
734
735 2008-02-24 Borut Razem <borut.razem AT siol.net>
736
737         * src/SDCCast.c, src/SDCCast.h: fixed bug #1874922: explicit typecast
738           is ineffective for unsigned char parameter
739
740 2008-02-24 Maarten Brock <sourceforge.brock AT dse.nl>
741
742         * src/SDCCast.c (expandInlineFuncs): fixed bug 1875869
743         * src/SDCCglue.c (printIvalBitFields): fixed bug 1806631
744         * support/regression/tests/bitopcse.c: removed hc08 exception, see testfwk.h
745         * support/Util/MySystem.c (my_system): output errorcode when verbose
746
747 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
748
749         * src/z80/gen.c (genMult): Rewrote 8-bit multiplication by constant,
750           implements #1898231
751
752 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
753
754         * device/lib/z80/mul.s: Rewrote __muluchar_rrx_s, to improve 8-bit mult.,
755           implements #1896290
756
757 2008-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
758
759         * src/SDCCast.c (createIvalStruct): fixed bug 1466761
760
761 2008-02-21 Borut Razem <borut.razem AT siol.net>
762
763         * support/regression/Makefile.in,
764           support/regression/ports/ds390/spec.mk,
765           support/regression/ports/hc08/spec.mk,
766           support/regression/ports/mcs51-common/spec.mk,
767           support/regression/ports/pic14/spec.mk,
768           support/regression/ports/pic16/spec.mk,
769           support/regression/ports/ucz80/spec.mk,
770           support/regression/ports/xa51/spec.mk:
771           added CFLAGS when compiling timeout
772
773 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
774
775         * support/regression/tests/bugs-1596270-1736867.c: Regression test for
776           #1596270, #1736867
777
778 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
779
780         * src/SDCClrange.c (findPrevUse): fixed bug 1888147
781         * support/regression/tests/bug1888147.c: new, added
782
783 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
784
785         * src/z80/gen.c: fixed bugs #1596270, #1736867
786
787 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
788
789         * src/z80/gen.c: fixed bug in register pair loading when swapping register
790           contents, mostly fixes #1596270
791
792 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
793
794         * src/z80/peeph.def,
795         * src/z80/peeph-z80.def: moved peephole that breaks gbz80 to z80-specific
796           peepholes, fixes #1806565
797
798 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
799
800         * src/SDCCpeeph.c (operandBaseName): added check for @Ri
801         * src/mcs51/peeph.def (rule 177.c): added operandsNotRelated(%1 %3)
802           fixes bug 1739475, thanks Robert Larice
803           (rule 271): new, added
804
805 2008-02-18 Borut Razem <borut.razem AT siol.net>
806
807         * sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
808
809 2008-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
810
811         * src/SDCCmain.c (linkEdit): emit -z when using --debug for z80
812
813 2008-02-17 Raphael Neider <rneider AT web.de>
814
815         * src/pic16/genarith.c,
816         * src/pic16/gen.c,
817         * src/pic16/gen.h,
818         * src/pic16/genutils.c: removed unused legacy code,
819           removed unused fields from struct asmop and struct _G
820
821 2008-02-17 Raphael Neider <rneider AT web.de>
822
823         * src/pic16/gen.c (AccRsh): cosmetic changes,
824           (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
825           genRightShiftLiteral): fixed to work with SFRs as result by
826           assigning only once to result,
827           removed a lot of unused/excluded code fragments
828
829 2008-02-17 Raphael Neider <rneider AT web.de>
830
831         * device/include/pic/pic16f88.h,
832         * device/include/pic/pic16f886.h,
833         * device/include/pic/pic16f887.h: added TRISA6 and TRISA7
834
835 2008-02-17 Borut Razem <borut.razem AT siol.net>
836
837         * src/z80/peeph.def: applied patch
838           #1893626: Optimize tail calls on Z80, thanks to Philipp Krause
839         * src/z80/gen.c, src/z80/peeph.def: applied patch
840           #1893510: Improve logical left shift on Z80, thanks to Philipp Krause
841         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
842           sim/ucsim/s51.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
843           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
844           sim/ucsim/main_in.mk: renamed libutil.a to libucsimutil.a in order to
845           enable compilation on Mac OS X 10.5 (Leopard) and XCode v3.0
846
847 2008-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
848
849         * as/link/mcs51/aslink.dsp: removed SDK define
850         * as/link/z80/clean.mk: brought in sync with other ports
851         * as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
852         * as/hc08/Makefile.bcc,
853         * as/mcs51/Makefile.bcc,
854         * as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
855         * src/z80/main.c (_setValues): use the now capitalized -Z,
856           (z80_port, gbz80_port): generate debug information when asked
857
858 2008-02-16 Borut Razem <borut.razem AT siol.net>
859
860         * as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
861           as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
862           as/z80/Makefile.in. as/z80/Makefile.bcc:
863           applied patch #1893393: patch for as-z80 and link-z80 to generate
864           cdb, thanks to Armin Diehl
865         * as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
866           as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
867           asnoice.c moved to as/asxxsrc/asnoice.c
868         * src/z80/peeph-gbz80.def: applied patch
869           #1880235: Z80 return peephole, thanks to Philipp Krause
870
871 2008-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
872
873         * .version,
874         * doc/sdccman.lyx: bumped version to 2.7.5
875         * src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583
876
877 2008-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
878
879         * device/include/pic16/stdlib.h,
880         * device/lib/pic16/libc/stdlib/ltoa.c,
881         * device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*
882
883 2008-02-13 Borut Razem <borut.razem AT siol.net>
884
885         * src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
886         * src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
887           src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
888           src/SDCCopt.c,  src/SDCCval.c:
889           fixed bug #1890273: SDCC Warning 154 shows wrong filename
890
891 2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
892
893         * src/SDCCsymt.c (compareType): fixed bug 1309013
894
895 2008-02-09 Borut Razem <borut.razem AT siol.net>
896
897         * src/SDCCval.c, src/SDCCval.h:
898           code cleaning, added function constChrVal()
899         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
900           call constChrVal() instead constVal()
901
902 2008-02-01 Maarten Brock <sourceforge.brock AT dse.nl>
903
904         * src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
905           of function pointer
906         * src/SDCCerr.h,
907         * src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
908         * support/regression/tests/absolute.c: added TestStruct TestVar (see also
909           bug 1859853)
910
911 2008-02-01 Raphael Neider <rneider AT web.de>
912
913         * device/include/pic/pic16f886.h,
914         * device/include/pic/pic16f887.h: added RA6 and RA7
915
916 2008-01-24 Raphael Neider <rneider AT web.de>
917
918         * device/include/pic/pic16f88.h: added RA6 and RA7
919         * device/lib/pic/libdev/disabled_pic16f886.c,
920         * device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled
921
922         * src/pic16/devices.inc,
923         * device/include/pic16/pic18f2423.h,
924         * device/include/pic16/pic18f2523.h,
925         * device/include/pic16/pic18fregs.h,
926         * device/lib/pic16/pics.all
927         * device/lib/pic16/libdev/pic18f2423.c,
928         * device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
929         * device/lib/pic16/libio/i2c.ignore,
930         * device/lib/pic16/libio/usart.ignore,
931         * device/lib/pic16/libio/adc.ignore: ignore new devices
932
933 2008-01-23 Maarten Brock <sourceforge.brock AT dse.nl>
934
935         * src/SDCCast.c (createRMW): fixed bug 1582651
936
937 2008-01-20 Borut Razem <borut.razem AT siol.net>
938
939         * src/SDCCcse.c: partially fixed enhancement request
940           #1793872 - multiply by -1 not collapsed
941         * support/regression/tests/arithcsi.c: added regression test
942
943 2008-01-19 Maarten Brock <sourceforge.brock AT dse.nl>
944
945         * as/mcs51/asx8051.dsp: removed define SDK
946         * as/mcs51/i51mch.c (machine): fixed bug 1865114
947         * device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
948         * as/link/lklex.c,
949         * as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
950           cosmetic changes, brought more in sync, changed old K&R to ANSI
951
952 2008-01-13 Borut Razem <borut.razem AT siol.net>
953
954         * support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...
955         * src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
956
957 2007-12-30 Borut Razem <borut.razem AT siol.net>
958
959         * src/pic16/gen.c: fixed implementation of bitwise operations for
960           pic16 target
961         * support/regression/tests/bitwise.c: added test cases
962
963 2007-12-29 Borut Razem <borut.razem AT siol.net>
964
965         * src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
966         * src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
967           src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
968         * support/Util/dbuf_string.[ch]: added function dbuf_getline()
969         * src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
970           src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
971           src/pic16/pcode.[ch]: added const qualifier
972         * as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
973           as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
974           as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
975           as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
976         * as/asxxsrc/aslex.c: use dbuf_getline()
977         * as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
978           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
979           as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
980           as/z80/asm.h, as/z80/z80adr.c:
981           changed type of ib and ip to const char *
982
983 2007-12-28 Borut Razem <borut.razem AT siol.net>
984
985         * as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
986           introduced (readlin) - long lines are turuncated
987         * as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
988           as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
989           as/z80/Makefile.in: moved aslex.c to asxxsrc
990         * as/hc08/aslex.c, as/z80/aslex.c: deleted
991         * as/hc08/asmain.c, as/mcs51/asmain.c:
992           added missing initialization of a_addr field
993         * support/regression/tests/long_asm_line.c: added regtest for long
994           assembler line
995
996 2007-12-22 Borut Razem <borut.razem AT siol.net>
997
998         * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
999
1000 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
1001
1002         * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
1003
1004 2007-12-16 Borut Razem <borut.razem AT siol.net>
1005
1006         * device/include/pic16/stdbool.h: removed, since already exists in
1007          device/include/; this also fixes bitopcse.c regression test for pic16
1008          target
1009         * support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
1010         * src/pic16/glue.c: fixed bug #1851855: generic static pointer
1011           dereference doesn't work; covered by regression test bug1399290
1012
1013 2007-12-05 Borut Razem <borut.razem AT siol.net>
1014
1015         * doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
1016           Adding new PIC16
1017
1018 2007-12-01 Borut Razem <borut.razem AT siol.net>
1019
1020         * sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
1021           corrected handling of the highest_valid_address
1022
1023 2007-11-17 Raphael Neider <rneider AT web.de>
1024
1025         * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
1026         * src/pic/glue.c (picglue): emit .file if --debug is given
1027
1028 2007-11-17 Raphael Neider <rneider AT web.de>
1029
1030         * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
1031         care when left or right operand resides in result, fixes #1830220
1032
1033 2007-11-17 Borut Razem <borut.razem AT siol.net>
1034
1035         * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
1036           #983491 - "Merge duplicate strings function is ineffective"
1037         * support/regression/tests/bug-983491.c: regtest disabled
1038         * as/asxxsrc: created
1039           as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
1040           as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
1041           as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
1042           as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
1043           as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
1044           as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
1045           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
1046           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
1047           as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
1048           as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
1049           as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
1050           as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
1051           created as/asxxsrc directory, assym.c and strcpi.c moved into it
1052
1053 2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
1054
1055         * device/include/stdarg.h: added and removed some casts
1056         * src/SDCCsymt.c (compareType): Fully check types between generic and
1057           non-generic pointers, also accept ptr-ptr to void-ptr assignments
1058
1059 2007-11-13 Borut Razem <borut.razem AT siol.net>
1060
1061         * support/regression/tests/bug-1817005.c:
1062           added regtest for bug #1817005 - as-z80 chokes on long labels
1063
1064 2007-11-12 Borut Razem <borut.razem AT siol.net>
1065
1066         * as\z80\asmain.c, as\z80\asm.h, as\z80\assym.c, as\z80\asdata.c,
1067           as\z80\asout.c, as\z80\aslist.c:
1068           fixed bug #1817005 - as-z80 chokes on long labels
1069
1070 2007-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
1071
1072         * as/hc08/asmain.c,
1073         * as/z80/asmain.c: cosmetic changes
1074         * as/hc08/alloc.h,
1075         * as/mcs51/alloc.h,
1076         * as/z80/alloc.h: removed
1077         * as/hc08/assym.c,
1078         * as/mcs51/assym.c: replaced alloc.h with stdlib.h
1079         * as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
1080         * as/link/hc08/Makefile.in,
1081         * as/link/mcs51/Makefile.in,
1082         * as/link/z80/Makefile.in: added -DUNIX to CFLAGS
1083         * as/link/lklex.c,
1084         * as/link/mcs51/lkarea.c,
1085         * as/link/mcs51/lkmain.c: cosmetic changes
1086         * as/link/hc08/lklibr.c,
1087         * as/link/z80/lklibr.c,
1088         * as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
1089           used cygwin_conv_to_full_posix_path,
1090           added warnings, cosmetic changes, brought more in sync
1091           changed old K&R into ANSI function declarations
1092         * as/link/z80/lklibr.c (loadAdb): added
1093         * as/link/z80/lkmain.c: removed -- option from usage text
1094
1095 2007-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
1096
1097         * src/mcs51/gen.c (outBitC): optimized for no result
1098
1099 2007-10-31 Borut Razem <borut.razem AT siol.net>
1100
1101         * src/SDCCsymt.c: fixed (hopeful properly) bug
1102           #1805702 - order of extern matters
1103         * support/regression/tests/bug-1805702.c: enabled regtest for bug
1104           #1805702
1105
1106 2007-10-29 Borut Razem <borut.razem AT siol.net>
1107
1108         * src/SDCCsymt.c: reverted bad fixed of bug #1805702
1109           - order of extern matters
1110         * support/regression/tests/bug-1805702.c: disabled regtest for bug
1111           #1805702
1112
1113 2007-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
1114
1115         * src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
1116           24bitMode, portIsDS390
1117         * src/mcs51/gen.c (genOr): optimized for RFE 1750727
1118         * src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
1119           (notVolatileVariable): also check sloc names,
1120           (callFuncByName): moved ftab[] out of function and sorted it by use
1121
1122 2007-10-28 Maarten Brock <sourceforge.brock AT dse.nl>
1123
1124         * device/include/stdarg.h: fixed bug in va_start macro for --xstack
1125         * src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
1126           aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
1127         * src/SDCCicode.c (geniCodeCast): fixed bug 880197
1128         * support/regression/tests/bug-880197.c: new, added
1129
1130 2007-10-28 Borut Razem <borut.razem AT siol.net>
1131
1132         * support/regression/Makefile.in,
1133           support/regression/ports/mcs51-large/spec.mk,
1134           support/regression/ports/mcs51-xstack-auto/spec.mk,
1135           support/regression/ports/mcs51-stack-auto/spec.mk,
1136           support/regression/ports/mcs51-medium/spec.mk,
1137           support/regression/ports/mcs51-common/spec.mk,
1138           support/regression/ports/mcs51-common/*,
1139           support/regression/ports/mcs51-small/*:
1140           mcs51 renamed to mcs51-common, created mcs51-small
1141         * src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
1142         * support/regression/tests/bug-1805702.c: added regtest for bug
1143           #1805702
1144
1145 2007-10-26 Maarten Brock <sourceforge.brock AT dse.nl>
1146
1147         * src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b,
1148           added new rules 265 - 270
1149         * support/regression/tests/bug1721024.c:new, added
1150         * support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
1151           introduced new test-mcs51 to run all mcs51 tests
1152
1153 2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
1154
1155         * support/regression/tests/bug1816470.c: new, added
1156
1157 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
1158
1159         * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
1160           propagate for *,+,- with float, fixed bug 1816470
1161           (decorateType): cast to resultTypeProp instead of resultType
1162
1163 2007-10-19 Borut Razem <borut.razem AT siol.net>
1164
1165         * src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
1166           function is ineffective" for pic16 tareget
1167         * support/scripts/listerr.c: corrected include path
1168         * device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
1169           adjacent memory
1170
1171 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
1172
1173         * support/regression/tests/using.c: new, added
1174         * support/regression/tests/vaargs.c: fixed and enabled test
1175
1176 2007-10-18 Borut Razem <borut.razem AT siol.net>
1177
1178         * src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
1179           is ineffective
1180         * support/regression/tests/bug-983491.c: added regtest for bug #983491
1181
1182 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
1183
1184         * doc/sdccman.lyx: documented option --Werror
1185         * src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
1186           RegBankUsed[] earlier
1187
1188 2007-10-14 Maarten Brock <sourceforge.brock AT dse.nl>
1189
1190         * device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
1191         * src/pic/glue.c,
1192         * src/SDCCval.c,
1193         * src/SDCCast.c,
1194         * src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
1195           AST_ULONG_VALUE
1196         * src/SDCCast.c (decorateType): improved optimization of tri-op
1197         * src/SDCCerr.c (vwerror, setWError),
1198         * src/SDCCerr.h,
1199         * src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
1200           warnings as errors, thanks Stas Sergeev for PATCH 1813211
1201
1202 2007-10-13 Maarten Brock <sourceforge.brock AT dse.nl>
1203
1204         * src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
1205         * src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
1206         * support/regression/tests/bug-223113.c,
1207         * support/regression/tests/bug-426632.c,
1208         * support/regression/tests/bug-468811.c,
1209         * support/regression/tests/bug-477835.c,
1210         * support/regression/tests/bug-478094.c,
1211         * support/regression/tests/bug-499644.c,
1212         * support/regression/tests/bug-524209.c,
1213         * support/regression/tests/bug-524211.c,
1214         * support/regression/tests/packcast.c,
1215         * support/regression/tests/structidx.c: added empty tests
1216         * support/regression/tests/bug-607243.c: enabled test
1217
1218 2007-10-06 Borut Razem <borut.razem AT siol.net>
1219
1220         * .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
1221            support of universal binaries on Mac OS X
1222
1223 2007-10-02 Borut Razem <borut.razem AT siol.net>
1224
1225         * src/SDCCval.h: unified double2ul macro for all platforms
1226         * src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
1227         * support/regression/tests/bitwise.c: added regtest for bug #1777758
1228
1229 2007-09-30 Borut Razem <borut.razem AT siol.net>
1230
1231         * src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
1232           platforms
1233         * sdcc_vc_in.h: enabled warnings
1234         * src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
1235           unsigned type, result still unsigned
1236         * src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
1237
1238 2007-09-28 Raphael Neider <rneider AT web.de>
1239
1240         * src/pic/device.c (find_device): prevent buffer underflow error
1241         * src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
1242           the just destroyed list entry
1243
1244 2007-09-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1245
1246         * doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks
1247           Alexander Neundorf
1248
1249 2007-09-18 Borut Razem <borut.razem AT siol.net>
1250
1251         * src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
1252          applied to unsigned type, result still unsigned
1253
1254 2007-09-17 Borut Razem <borut.razem AT siol.net>
1255
1256         * src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c,
1257           src/SDCCicode.c, src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c,
1258           src/SDCCval.h, src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c,
1259           src/mcs51/gen.c, src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c,
1260           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/genarith.c,
1261           src/pic16/genutils.c, src/pic16/glue.c, src/pic16/main.c,
1262           src/z80/gen.c, src/z80/ralloc.c:
1263           fixed bug #1739860 - sdcc does not work correctly on some platforms
1264           (not finished)
1265           introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()
1266
1267 2007-09-17 Raphael Neider <rneider AT web.de>
1268
1269         * src/pic16/device.c: reverted to previous version
1270         * device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q
1271
1272 2007-09-16 Raphael Neider <rneider AT web.de>
1273
1274         * src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
1275           as this raises a ton of gpasm warnings, just emit a second label
1276         * src/pic16/devices.inc,
1277         * device/lib/pic16/pics.all,
1278         * device/lib/pic16/libdev/pic18f2585.c,
1279         * device/lib/pic16/libdev/pic18f2680.c,
1280         * device/lib/pic16/libdev/pic18f2682.c,
1281         * device/lib/pic16/libdev/pic18f2685.c,
1282         * device/lib/pic16/libdev/pic18f4585.c,
1283         * device/lib/pic16/libdev/pic18f4680.c,
1284         * device/lib/pic16/libdev/pic18f4682.c,
1285         * device/lib/pic16/libdev/pic18f4685.c,
1286         * device/include/pic16/pic18f2585.h,
1287         * device/include/pic16/pic18f2680.h,
1288         * device/include/pic16/pic18f2682.h,
1289         * device/include/pic16/pic18f2685.h,
1290         * device/include/pic16/pic18f4585.h,
1291         * device/include/pic16/pic18f4680.h,
1292         * device/include/pic16/pic18f4682.h,
1293         * device/include/pic16/pic18f4685.h,
1294         * device/include/pic16/pic18fregs.h: added 18f2585, 18f2680,
1295           18f2682, 18f2685, 18f4585, 18f4680, 18f4682, 18f4685,
1296           patch contributed by Anton Strobl, applied with changes
1297
1298 2007-09-16 Raphael Neider <rneider AT web.de>
1299
1300         * device/include/pic16/pic18f2431.h,
1301         * device/include/pic16/pic18f25j10.h,
1302         * device/include/pic16/pic18f4431.h,
1303         * device/include/pic16/pic18f45j10.h: adopted common include style
1304         * device/include/pic16/pic18f1320.h,
1305         * device/include/pic16/pic18f2320.h,
1306         * device/include/pic16/pic18f2525.h,
1307         * device/include/pic16/pic18f4320.h,
1308         * device/include/pic16/pic18f4525.h: NEW, just include proper .h file
1309         * device/include/pic16/pic18fregs.h: prepared for automatic include
1310           file selection by having DEVICE.h for every DEVICE
1311         * device/lib/pic16/libdev/pic18f2320.c,
1312         * device/lib/pic16/libdev/pic18f4320.c: just include proper .c file
1313
1314         * device/lib/pic16/configure.in,
1315         * device/lib/pic16/configure: use rm -rf instead of rmdir
1316         * device/lib/pic16/Makefile.in: use RMDIR to remove build directories
1317         * device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast
1318
1319 2007-09-09 Borut Razem <borut.razem AT siol.net>
1320
1321         * src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
1322           distingush between i386 and ppc Mac OS X versions
1323
1324 2007-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
1325
1326         * src/mcs51/gen.c (genReceive): fixed bug 1788177
1327         * support/regression/tests/bug1788177.c: new, added
1328
1329 2007-09-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1330
1331         * doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
1332         * device/include/mcs51/lint.h added keyword __naked
1333
1334 2007-09-04 Maarten Brock <sourceforge.brock AT dse.nl>
1335
1336         * src/pic16/glue.c,
1337         * src/pic/glue.c,
1338         * src/SDCCmem.h: removed maxRegBank
1339         * src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
1340           RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
1341         * src/SDCCsymt.c (checkFunction): set RegBankUsed[] here
1342         * src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
1343           name and behaviour to handle banked functions
1344           (scan4op): and use it to fix bug 1786213
1345
1346 2007-09-03 Raphael Neider <rneider AT web.de>
1347
1348         * device/include/pic16/pic18f248.h,
1349         * device/include/pic16/pic18f258.h,
1350         * device/include/pic16/pic18f448.h,
1351         * device/lib/pic16/libdev/pic18f248.c,
1352         * device/lib/pic16/libdev/pic18f258.c,
1353         * device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
1354           added T0CONbits, fixes #1786891
1355
1356 2007-08-29 Maarten Brock <sourceforge.brock AT dse.nl>
1357
1358         * src/ds390/gen.c (genFarPointerSet),
1359         * src/hc08/ralloc.c (packRegisters),
1360         * src/mcs51/ralloc.c (packRegisters),
1361         * src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
1362           bug 1750318
1363         * src/SDCCicode.h: POINTER_SET can be true for literals too
1364         * support/regression/tests/bug1750318.c: new, added
1365
1366 2007-08-23 Borut Razem <borut.razem AT siol.net>
1367
1368         * debugger/mcs51/sdcdb.c: fixed compilation with older readline
1369           library versions without the completition functionality
1370
1371 2007-08-22 Raphael Neider <rneider AT web.de>
1372
1373         * device/include/pic16/pic18f1220.h,
1374         * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
1375
1376 2007-08-12 Borut Razem <borut.razem AT siol.net>
1377
1378         * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
1379
1380 2007-08-11 Borut Razem <borut.razem AT siol.net>
1381
1382         * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
1383           src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
1384           support/Util/SDCCerr.[ch] moved to src
1385         * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
1386           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
1387           device/examples/ds390/tinitalk/tinitalk.dsp,
1388           device/examples/serialcomm/windows/serialcomm.dsp,
1389           support/librarian/librarian.dsp:
1390           removed linking of unused odbc32.lib and odbccp32.lib
1391         * support/scripts/winres.h:
1392           added for compilation with Visual C++ 2005 Express Edition
1393
1394 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1395
1396         * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
1397           and CKCON1.
1398
1399 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1400
1401         * sdccconf_in.h: update the endian test so that SPARC Solaris
1402           does not throw syntax errors
1403
1404 2007-08-06 Borut Razem <borut.razem AT siol.net>
1405
1406         * doc/sdccman.lyx: removed two index entries which prevented the
1407           generation of sdcc doc archive
1408
1409 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1410
1411         * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
1412           instead of lyx 1.5.0.
1413
1414 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1415
1416         * device/include/hc08/mc68hc908apxx.h: new header contributed by
1417           Lucas Loizaga, with minor modifications. Thanks!
1418
1419 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1420
1421         * doc/sdccman.lyx: Documented --acall-ajmp and described new features
1422           in sdcclib.
1423
1424 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1425
1426         * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
1427           src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
1428           with acall/ajmp.
1429
1430 2007-07-22 Borut Razem <borut.razem AT siol.net>
1431
1432         * configure.in, configure: re-introduced .version
1433         * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
1434           the version reverted to 2.7.0
1435
1436 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
1437
1438         * configure.in,
1439         * doc/sdccman.lyx: bumped version to 2.7.3
1440         * device/include/mcs51/compiler.h: fixed elif->else
1441         * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
1442         * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
1443           (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
1444            enable accuse for bit operands
1445         * src/SDCCmain.c (printVersionInfo),
1446         * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
1447           environment descriptor
1448         * src/SDCCutil.h: added getBuildEnvironment
1449         * src/SDCCglue.c (initialComments): use getBuildEnvironment
1450         * support/regression/tests/bug1464657.c: enabled test test_Peephole251
1451         * support/regression/tests/bug-408972.c: enabled test leftShiftLong
1452         * support/regression/tests/bug1348008.c,
1453         * support/regression/tests/bug1496419.c,
1454         * support/regression/tests/bug1503067.c,
1455         * support/regression/tests/preproc.c: added empty tests
1456
1457 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
1458
1459         * support/regression/tests/bug1678803.c: new, added
1460
1461 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
1462
1463         * as/link/aslink.h,
1464         * as/link/hc08/lkihx.c,
1465         * as/link/hc08/lkrloc.c,
1466         * as/link/mcs51/lkihx.c,
1467         * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
1468           ihxExtendedLinearAddress
1469         * as/link/mcs51/lkrloc.c (relr),
1470         * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
1471           acall/ajmp, see bug 830513
1472
1473 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
1474
1475         * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
1476           (cseBBlock): remember aggr2ptr has been used
1477         * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
1478           (geniCodeAssign): fixed bug 868103
1479         * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
1480           added operandSize prototype
1481         * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
1482           (genDataPointerSet): use max of size of right and result,
1483           (gencjne): added parameter useCarry for optimization,
1484           (genCmpEq): use carry if appropriate,
1485           (genXor): check if operand already in carry
1486         * support/regression/tests/bug-868103.c: enabled test
1487
1488 2007-07-12 Raphael Neider <rneider AT web.de>
1489
1490         * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
1491
1492 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
1493
1494         * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
1495           from Robert Larice, thanks
1496         * support/regression/tests/bitopcse.c,
1497         * support/regression/tests/bitvars.c,
1498         * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
1499         * support/regression/tests/bug-927659.c: enabled test for z80
1500         * support/regression/tests/bug1738367.c: added extra tests by Frieder
1501         * support/regression/tests/bug1745717.c: new, added
1502         * support/regression/tests/literalop.c,
1503         * support/regression/tests/nullstring.c: removed storage definitions that
1504           are now in testfwk.h
1505
1506 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
1507
1508         * device/include/stdbool.h: do not define __bool_true_false_are_defined
1509           and bool for targets that do not fully support it.
1510         * support/regression/tests/bug1546986.c,
1511         * support/regression/tests/bug1723128.c,
1512         * support/regression/tests/bug1734654.c,
1513         * support/regression/tests/bug1738367.c,
1514         * support/regression/tests/constantRange.c: only use bool if allowed
1515
1516 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
1517
1518         * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
1519           Larice, also handle function pointers
1520         * support/regression/tests/bug1749275.c: new, added
1521
1522 2007-07-03 Borut Razem <borut.razem AT siol.net>
1523
1524         * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
1525           src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
1526           #1746528: SDCC should ignore ':' in inline assembler comments
1527         * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
1528
1529 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
1530
1531         * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
1532         * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
1533
1534 2007-06-29 Borut Razem <borut.razem AT siol.net>
1535
1536         * src/SDCCmain.c: fixed bug
1537           #1744746: SDCC #4867: broken option --xram-size
1538
1539 2007-06-28 Borut Razem <borut.razem AT siol.net>
1540
1541         * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
1542           find out the endianess of host machine for ucsim
1543
1544 2007-06-27 Borut Razem <borut.razem AT siol.net>
1545
1546         * support/regression/generate-cases.py: corrected the file name
1547           in warning
1548         * configure.in, configure, sdccconf_in.h: find out the endianess of
1549           host machine
1550         * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
1551           negative size
1552
1553 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
1554
1555         * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
1556
1557 2007-06-26 Borut Razem <borut.razem AT siol.net>
1558
1559         * support/regression/generate-cases.py: display warning if function
1560           list is empty; implemented more flexible rule for detection of
1561           testing functions, allowing return type 'void' in the same line as
1562           the function name in the function definition
1563         * support/regression/tests/bug-1654060.c: corrected test
1564         * support/librarian/sdcclib.c: fixed warning:
1565           format '%s' expects type 'char *', but argument 2 has type 'int'
1566
1567 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1568
1569         * support/librarian/sdcclib.c: Added feature Requests [1510635]
1570           Multiple infiles for sdcclib.
1571
1572 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1573
1574         * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
1575           bug 1731741
1576
1577 2007-06-18 Borut Razem <borut.razem AT siol.net>
1578
1579         * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
1580           how to handle comments, so they have to be removed by the
1581           preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
1582         * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
1583           src/pic16/main.c, src/pic/main.c, src/z80/main.c,
1584           support/Util/SDCCerr.c, support/Util/SDCCerr.h:
1585           table driven option hadling
1586
1587 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
1588
1589         * src/SDCCast.c (decorateType),
1590         * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
1591           iCode to ast level to fix bug 1738367
1592         * support/regression/tests/bug1738367.c: new, added
1593
1594 2007-06-15 Raphael Neider <rneider AT web.de>
1595
1596         * src/pic16/devices.inc,
1597         * device/lib/pic16/pics.all,
1598         * device/include/pic16/pic18fregs.h,
1599         * device/include/pic16/pic18f[24][45]20.h,
1600         * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
1601           18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
1602         * device/lib/pic16/Makefile.in: faster cleanup
1603
1604 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1605
1606         * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
1607
1608 2007-06-13 Raphael Neider <rneider AT web.de>
1609
1610         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
1611
1612 2007-06-12 Raphael Neider <rneider AT web.de>
1613
1614         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
1615           suppress bit defines if NO_BIT_DEFINES is #define'd
1616         * device/include/pic/pic*.h: recreated all headers to include
1617           conditional bit defines
1618         * device/include/pic/pic16f886.h,
1619         * device/include/pic/pic16f887.h: fixed based on newer .inc file
1620         * device/include/pic/recreate.sh: script to recreate the complete
1621           device library files based on the currently supported devices
1622
1623 2007-06-12 Borut Razem <borut.razem AT siol.net>
1624
1625         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
1626           support/regression/Makefile.in, support/scripts/build.mak,
1627           support/scripts/Makefile.snapshot:
1628           use new svn URL scheme
1629         * doc/sdccman.lyx: SDCC Wiki moved to
1630           http://sdcc.wiki.sourceforge.net/
1631
1632 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1633
1634         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
1635         * support/regression/tests/bug1734654.c: added
1636
1637 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
1638
1639         * src/SDCCast.c (decorateType): optimized '?' for equal operands
1640         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
1641           with literal operands
1642
1643 2007-06-10 Borut Razem <borut.razem AT siol.net>
1644
1645         * as/link/z80/lklibr.c: fixed mingw build warning
1646           lklibr.c:575: warning: implicit declaration of function 'tolower'
1647         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
1648           src/z80/main.c: move target specific options from src/SDCCmain.c
1649           to src/<target>/main.c
1650
1651 2007-06-09 Borut Razem <borut.razem AT siol.net>
1652
1653         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
1654           removed unused swap_sense; removed outBitCLong, replaced with outBitC
1655         * support/regression/tests/bug-1294691.c: added
1656
1657 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
1658
1659         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
1660           can also be static, fixes bug 1733438
1661         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
1662           have absolute address too
1663           (computeType): added optimization for 'cond ? true : false'
1664         * support/regression/tests/absolute.c: added test for static absolute var
1665
1666 2007-06-08 Raphael Neider <rneider AT web.de>
1667
1668         * src/regression/Makefile: suppress parallel builds, allow easy
1669           switching between pic14/pic16 ports
1670         * src/regression/picregs.h: added pic14/16 header file switch
1671         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
1672           inline.c,nestfor.c,string1.c}: include "picregs.h"
1673
1674 2007-06-07 Borut Razem <borut.razem AT siol.net>
1675
1676         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
1677           permanent solution to suppress GCC 4.2.0 c++ warning:
1678           deprecated conversion from string constant to `char *'
1679           use 'const char *' where ever required
1680         * support/regression/generate-cases.py: implemented more flexible rule
1681           for detection of testing functions, allowing white-spaces surrounding
1682           the function name and the 'void' parameter.
1683         * support/regression/tests/constantRange.c,
1684           support/regression/tests/scott-compare3.c: fixed failing regression
1685           tests, uncovered by implementation of more flexible rule for detection
1686           of testing functions
1687
1688 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
1689
1690         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
1691
1692 2007-06-04 Borut Razem <borut.razem AT siol.net>
1693
1694         * configure.in, configure, config_vc.awk: sdcc version number is now
1695           stored in configure.in; removed .version
1696         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
1697           doc/INSTALL.txt: version bumped to 2.7.2
1698         * sim/ucsim/configure.in, sim/ucsim/configure:
1699           use "read" to read from .version
1700
1701 2007-06-03 Borut Razem <borut.razem AT siol.net>
1702
1703         * */Makefile.in: removed annoying warning:
1704           Makefile:xx: Makefile.dep: No such file or directory
1705
1706 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
1707
1708         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
1709           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
1710         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
1711         * src/SDCCast.c (resultTypePropagate): propagate for '!',
1712           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
1713           bugfix: only use newBoolLink for bit result type
1714         * src/SDCCicode.c (geniCodeLogic): added param tree,
1715           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
1716           (geniCodeLogicAndOr): use IS_BIT,
1717           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
1718           (ast2iCode): added tree param to geniCodeLogic for comparisons
1719         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
1720         * support/regression/tests/bug1723128.c: added test NotZero
1721
1722 2007-06-01 Borut Razem <borut.razem AT siol.net>
1723
1724         * SDCPP synchronized with GCC CPP release version 4.2.0,
1725           currently the latest release:
1726         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1727           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
1728           support/cpp2/cppdefault.h, support/cpp2/except.h,
1729           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
1730           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
1731           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
1732           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
1733           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
1734           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
1735           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
1736           support/cpp2/opts.h, support/cpp2/output.h,
1737           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
1738           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
1739           support/cpp2/system.h, support/cpp2/version.c,
1740           support/cpp2/Makefile.in: modified
1741         * support/cpp2/opts-common.c: added
1742         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
1743         * device/lib/pic16/libdev/pic18f[24]5j10.c:
1744           search for included source file in local directory
1745         * sim/ucsim/configure, sim/ucsim/configure.in:
1746           temporary solution to suppress GCC 4.2.0 c++ warning:
1747           deprecated conversion from string constant to `char *'
1748
1749 2007-06-01 Raphael Neider <rneider AT web.de>
1750
1751         * device/lib/pic/libdev/pic12f683.c,
1752         * device/include/pic/pic12f683.h: added GPIO bits
1753
1754 2007-06-01 Raphael Neider <rneider AT web.de>
1755
1756         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
1757           quotation marks, clarified role of PIC14 vs. PIC16 ports
1758         * src/pic16/devices.inc,
1759         * device/include/pic16/pic18fregs.h,
1760         * device/include/pic16/pic18f[24][45]j10.h,
1761         * device/lib/pic16/pics.all,
1762         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
1763           18f24j10, 18f25j10, 18f44j10, and 18f45j10
1764         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
1765           for new devices as they are not yet supported by gputils
1766
1767 2007-05-31 Borut Razem <borut.razem AT siol.net>
1768
1769         * Small Device C Compiler 2.7.0 released
1770         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
1771           changed sdcc version to 2.7.1
1772         * support/scripts/sdcc.nsi: added How to create WIN32 release
1773           setup.exe package
1774
1775 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1776
1777         * doc/sdccman.lyx: documented initialization and allocation of absolute
1778           variables, bit parameter passing, the need for function pointers to be
1779           reentrant and alpha quality support of inline and retrict
1780
1781 2007-05-26 Borut Razem <borut.razem AT siol.net>
1782
1783         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
1784           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
1785         * docs/knownbugs.html: updated
1786
1787 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
1788
1789         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
1790           thanks Jan Waclawek
1791         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
1792           AOP_CRY and ruonly
1793           (gencjneshort): optimized when left is AOP_DIR
1794         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
1795           initializing unions in a struct/array
1796         * support/regression/fwk/include/testfwk.h: added defines for data, near
1797           and far for host and z80
1798         * support/regression/tests/bug1723128.c: new, added
1799
1800 2007-05-22 Borut Razem <borut.razem AT siol.net>
1801
1802         * doc/knownbugs.html: updated
1803
1804 2007-05-21 Raphael Neider <rneider AT web.de>
1805
1806         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
1807           error message instead
1808         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
1809
1810 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
1811
1812         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
1813
1814 2007-05-21 Raphael Neider <rneider AT web.de>
1815
1816         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
1817           closes #1722392
1818         * src/regression/gpsim_assert.h,
1819         * src/regression/Makefile,
1820         * src/regression/pcodeopt.c: regression test for the above fix
1821
1822 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
1823
1824         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
1825           jumps to self, fixed bug 1717281
1826
1827 2007-05-10 Borut Razem <borut.razem AT siol.net>
1828
1829         * support/scripts/gen_known_bugs.pl: cosmetic fix
1830         * doc/knownbugs.html: generated by gen_known_bugs.pl
1831
1832 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1833
1834         * src/SDCCast.c (createFunction): also generate non-inlined version of
1835           function for functions declared as "static inline"
1836         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
1837           function can be inlined after non-inlined version generated.
1838
1839 2007-05-10 Borut Razem <borut.razem AT siol.net>
1840
1841         * support/scripts/gen_known_bugs.pl: added script
1842           which generates knownbugs.html
1843
1844 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
1845
1846         * doc/knownbugs.html: updated for release 2.7.0
1847
1848 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1849
1850         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
1851
1852 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
1853
1854         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
1855           (throughout): updated generating comments
1856         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
1857           (throughout): updated generating comments
1858         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
1859           rule instead of at the second, or it might skip lines when removing the
1860           complete match
1861         * support/regression/tests/bug1714204.c: changed test to foo
1862
1863 2007-05-08 Borut Razem <borut.razem AT siol.net>
1864
1865         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
1866           thanks to SDCC Distributed Compile Farm members,
1867           added Z80 and GBZ80 command line options
1868         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
1869
1870 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
1871
1872         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
1873         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
1874         * support/regression/tests/longlit.c: modified to be tested at all and
1875           to pass the actual test
1876
1877 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1878
1879         * device/include/mcs51/uPSD33xx.h: Added.
1880
1881 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
1882
1883         * device/lib/_gptrput.c,
1884         * device/lib/_gptrget.c: removed old code,
1885          (_gptrgetWord),
1886         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
1887         * support/regression/tests/bug1714204.c: new, added
1888
1889 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1890
1891         * support/regression/tests/regtrack.c: test was never executed
1892           because of the regression test being picky about white spaces.
1893         * device/lib/mcs51/crtclear.asm: added comment
1894
1895 2007-05-06 Raphael Neider <rneider AT web.de>
1896
1897         * device/lib/pic/Makefile.rules,
1898         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
1899           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
1900
1901 2007-05-06 Raphael Neider <rneider AT web.de>
1902
1903         * src/pic16/device.h,
1904         * src/pic16/main.h,
1905         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
1906           _pic16_setDefaultOptions): removed/reordered command-line args
1907         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
1908           devices, regrouped command line args, environment variables),
1909           clarified sone points, added sections on how to add devices to the
1910           PIC14/PIC16 ports
1911
1912 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
1913
1914         * src/z80/peeph.def: fixed bug in rule 2
1915
1916 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
1917
1918         * src/port.h: added TARGET_MCS51_LIKE
1919         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
1920           take advantage of it too
1921         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
1922           (shiftR2Left2Result): Optimized: don't check shifting by 0
1923         * src/z80/peeph-z80.def,
1924         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
1925           modifications, see patch 1700823
1926         * src/mcs51/peep.c (): fixed bug 1712928
1927         * support/regression/tests/bug1712928.c: new, added
1928
1929 2007-05-05 Borut Razem <borut.razem AT siol.net>
1930
1931         * device/lib/pic16/Makefile.common.in,
1932           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
1933           removed bash dependencies
1934
1935 2007-05-01 Borut Razem <borut.razem AT siol.net>
1936
1937         * src/SDCCicode.c:
1938           fixed bug #1710507: --i-code-in-asm makes compile fail
1939           all iCode comments are now one liners
1940         * src/mcs51/gen.c: fixed memory leak
1941
1942 2007-05-01 Raphael Neider <rneider AT web.de>
1943
1944         * device/lib/pic/libdev/*.c
1945         * device/include/pic/*.h: regenerated all device libs from updated
1946           .inc files
1947         * support/scripts/inc2h.pl: documented usage, now uses strict to
1948           catch more bugs
1949
1950 2007-04-30 Borut Razem <borut.razem AT siol.net>
1951
1952         * doc/sdccman.lyx:
1953           fixed bug #1669175: Problem with space in output paths
1954           documented how to use paths with spaces for Windows users
1955
1956 2007-04-29 Borut Razem <borut.razem AT siol.net>
1957
1958         * Fixed svn:eol-style and svn:keywords properties
1959         * src/SDCCval.c: fixed bug
1960           #1592871: Segfault with "large" const arrays of characters
1961           replaced recursion with iteration
1962         * Removed svn:executable property from non-executable files
1963
1964 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
1965
1966         * src/mcs51/gen.c (genRet): fixed bug 1707003
1967
1968 2007-04-27 Raphael Neider <rneider AT web.de>
1969
1970         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
1971           createReachingDefinitions,assignValnums,pic16_destructDF,
1972           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
1973           prevent NULL pointer dereferences
1974         * device/lib/pic/libdev/pic16f886.c,
1975         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
1976           prevent building them, gputils do not really support them yet
1977
1978 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1979
1980         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
1981           helps printf_small. 32 bytes more __idata mem.
1982
1983 2007-04-27 Raphael Neider <rneider AT web.de>
1984
1985         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
1986           return early when pb or pb->pcHead is NULL (patch #1708427)
1987         * src/regression/empty.c,
1988         * src/regression/Makefile: added test with empty functions
1989         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
1990
1991 2007-04-27 Borut Razem <borut.razem AT siol.net>
1992
1993         * src/SDCCast.c: fixed feature request
1994           #1547512: Redundant strings linked when using sizeof("abc")
1995
1996 2007-04-23 Borut Razem <borut.razem AT siol.net>
1997
1998         * doc/sdccman.lyx, src/SDCCmain.c:
1999           peep-hole comments are generated only if --fverbose-asm option is
2000           specified and --no-peep-comments is not, as proposed by Frieder.
2001         * support/regression/Makefile.in: compile regression tests with
2002           --fverbose-asm option so one can "grep" whether a new (or an old)
2003           peephole is (still) applied; requested by Frieder.
2004
2005 2007-04-23 Kevin Buettner <kevin AT buettner.to>
2006
2007         * device/include/pic/pic16f886.h,
2008         * device/include/pic/pic16f887.h,
2009         * device/lib/pic/libdev/pic16f886.c,
2010         * device/lib/pic/libdev/pic16f887.c,
2011         * device/include/pic/pic14devices.txt,
2012         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
2013
2014 2007-04-23 Kevin Buettner <kevin AT buettner.to>
2015
2016         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
2017           fixes #1704666
2018
2019 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2020
2021         * device/lib/_memset.c: assembler version for mcs51
2022
2023 2007-04-22 Borut Razem <borut.razem AT siol.net>
2024
2025         * support/scripts/listerr.c: program to create the list of errors and
2026           warnings list from - added
2027         * doc/sdccman.lyx: removed the note
2028           "For list of warnings and corresponding codes, see err_warn.txt"
2029         * src/SDCCsymt.c: fixed bug #1699804:
2030           Bug with some uses of sizeof(static local array) (MCS51)
2031         * support/regression/tests/bug-1699804.c: added
2032
2033 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
2034
2035         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
2036           (main): added option -i,
2037           (asmbl, case S_INCL): use search_path_fopen,
2038           mostly from patch 1579668 by Peter Miller, thanks
2039         * src/z80/main.c: fixed typo --callee-saves-bc
2040         * device/include/mcs51/compiler.h: added sfrword for Tasking
2041
2042 2007-04-20 Borut Razem <borut.razem AT siol.net>
2043
2044         * src/z80/main.c: replaced reserved keyword asm with asmblr
2045
2046 2007-04-19 Borut Razem <borut.razem AT siol.net>
2047
2048         * src/port.h: use const pointers to strings
2049         * src/SDCCargs.h: declared getStringArg() and getIntArg()
2050         * src/pic16/main.c: include SDCCargs.h
2051         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
2052           const char, since the strings are dynamically allocated
2053         * src/SDCCmain.c: options.code_seg and options.const_seg are
2054           dynamically allocated; check port specific command line options
2055           before the general ones
2056         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
2057
2058 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
2059
2060         * device/include/ds400rom.h,
2061         * device/lib/ds390/lcd390.c,
2062         * device/lib/ds390/memcpyx.c,
2063         * device/lib/ds390/rtc390.c,
2064         * device/lib/ds400/ds400rom.c,
2065         * device/lib/ds400/memcpyx.c,
2066         * device/lib/hc08/_ret.c: more replacements of keywords with their
2067           double underscore equivalents
2068         * device/lib/ds390/Makefile.in,
2069         * device/lib/ds400/Makefile.in,
2070         * device/lib/gbz80/Makefile.in,
2071         * device/lib/hc08/Makefile.in,
2072         * device/lib/mcs51/Makefile.in,
2073         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
2074
2075 2007-04-17 Borut Razem <borut.razem AT siol.net>
2076
2077         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
2078           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
2079           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
2080           to --fverbose-asm, to be gcc'ish
2081
2082 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
2083
2084         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
2085
2086 2007-04-17 Borut Razem <borut.razem AT siol.net>
2087
2088         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
2089         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
2090           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
2091           with their double underscore equivalent
2092
2093 2007-04-14 Borut Razem <borut.razem AT siol.net>
2094
2095         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
2096           source"
2097
2098 2007-04-13 Borut Razem <borut.razem AT siol.net>
2099
2100         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
2101           C99 standard
2102         * device/examples/serialcomm/windows/serial.[ch],
2103           device/examples/serialcomm/windows/test_serialcomm.cpp:
2104           updated by Bela Torok
2105         * device/examples/serialcomm/windows/serialcomm.dsw,
2106           device/examples/serialcomm/windows/serialcomm.dsp: added
2107
2108 2007-04-13 Jan Waclawek <wek AT efton.sk>
2109
2110         * doc/sdccman.lyx: additions and changes at various places
2111           (submitted as #1697136).
2112           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
2113
2114 2007-04-10 Borut Razem <borut.razem AT siol.net>
2115
2116         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
2117           LyX file format changed to 245
2118         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
2119           "FreeWare" replaced with "free open source"
2120
2121 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
2122
2123         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
2124
2125 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
2126
2127         * device/include/pic16/pic18fregs.h,
2128         * device/lib/_bp.c,
2129         * device/lib/_decdptr.c,
2130         * device/lib/_divsint.c,
2131         * device/lib/_divslong.c,
2132         * device/lib/_divuint.c,
2133         * device/lib/_divulong.c,
2134         * device/lib/_fs2schar.c,
2135         * device/lib/_fs2sint.c,
2136         * device/lib/_fs2slong.c,
2137         * device/lib/_fs2uchar.c,
2138         * device/lib/_fs2uint.c,
2139         * device/lib/_fs2ulong.c,
2140         * device/lib/_fsadd.c,
2141         * device/lib/_fscmp.c,
2142         * device/lib/_fsdiv.c,
2143         * device/lib/_fseq.c,
2144         * device/lib/_fsget1arg.c,
2145         * device/lib/_fsget2args.c,
2146         * device/lib/_fsgt.c,
2147         * device/lib/_fslt.c,
2148         * device/lib/_fsmul.c,
2149         * device/lib/_fsneq.c,
2150         * device/lib/_fsnormalize.c,
2151         * device/lib/_fsreturnval.c,
2152         * device/lib/_fsrshift.c,
2153         * device/lib/_fssub.c,
2154         * device/lib/_fsswapargs.c,
2155         * device/lib/_gptrget.c,
2156         * device/lib/_gptrgetc.c,
2157         * device/lib/_gptrput.c,
2158         * device/lib/_logexpf.c,
2159         * device/lib/_modsint.c,
2160         * device/lib/_modslong.c,
2161         * device/lib/_moduint.c,
2162         * device/lib/_modulong.c,
2163         * device/lib/_mulint.c,
2164         * device/lib/_mullong.c,
2165         * device/lib/_schar2fs.c,
2166         * device/lib/_ser.c,
2167         * device/lib/_setjmp.c,
2168         * device/lib/_sint2fs.c,
2169         * device/lib/_slong2fs.c,
2170         * device/lib/_spx.c,
2171         * device/lib/_uchar2fs.c,
2172         * device/lib/_uint2fs.c,
2173         * device/lib/_ulong2fs.c,
2174         * device/lib/asincosf.c,
2175         * device/lib/atanf.c,
2176         * device/lib/calloc.c,
2177         * device/lib/ds390/tinibios.c,
2178         * device/lib/ds400/tinibios.c,
2179         * device/lib/expf.c,
2180         * device/lib/free.c,
2181         * device/lib/hc08/_mulint.c,
2182         * device/lib/logf.c,
2183         * device/lib/malloc.c,
2184         * device/lib/printf_fast.c,
2185         * device/lib/printf_tiny.c,
2186         * device/lib/printfl.c,
2187         * device/lib/realloc.c,
2188         * device/lib/ser_ir.c,
2189         * device/lib/serial.c,
2190         * support/regression/tests/libmullong.c: replaced all special keywords
2191           with their double underscore equivalent
2192         * support/regression/ports/mcs51-xstack-auto/spec.mk,
2193         * device/lib/Makefile.in: compile libs with --std-c99 instead of
2194           --std-sdcc99
2195         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
2196           (genRet): if the bit-symbol is ruonly it already is in the carry
2197         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
2198         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
2199         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
2200           type UCHAR if dest is not bit
2201
2202 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
2203
2204         * device/include/math.h,
2205         * device/lib/cotf.c,
2206         * device/lib/expf.c,
2207         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
2208
2209 2007-04-01 Borut Razem <borut.razem AT siol.net>
2210
2211         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
2212           fixed bug #1692042: input buffer overflow...scanner uses REJECT
2213         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
2214           gcc_unreachable() called internal_error()...
2215
2216 2007-03-30 Raphael Neider <rneider AT web.de>
2217
2218         * src/pic/ralloc.c (isData): suppress garbage debug output
2219
2220 2007-03-28 Borut Razem <borut.razem AT siol.net>
2221
2222         * doc/sdccman.lyx:
2223           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
2224           is developed, built and used worldwide, and the word "night" doesn't
2225           make any sense.
2226
2227 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
2228
2229         * device/include/mcs51/C8051F360.h: new, added
2230         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
2231
2232 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2233
2234         * src/SDCC.y (declaration_specifiers, function_specifier),
2235         * support/Util/SDCCerr.c,
2236         * support/Util/SDCCerr.h,
2237         * src/SDCCsymt.h,
2238         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
2239           inline keyword
2240         * src/SDCCmem.c (deallocParms),
2241         * src/SDCCast.c: support for function inlining, not quite complete
2242         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
2243           'restrict' qualifier
2244
2245 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
2246
2247         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
2248           (saveRBank, unsaveRBank): don't save bits,
2249           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
2250         * support/regression/tests/bug1535242.c: new, added
2251         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
2252           thanks Alexey Shamrin <shamrin AT gmail.com>,
2253           made assert.h header ANSI compliant (added a check for NDEBUG macro,
2254           removed header guard)
2255         * .version,
2256         * sdcc.spec: bumped version to 2.6.5
2257         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
2258
2259 2007-03-22 Borut Razem <borut.razem AT siol.net>
2260
2261         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
2262           fixed bug #1653671: sdcdb integration into ddd is broken
2263
2264 2007-03-22 Raphael Neider <rneider AT web.de>
2265
2266         * src/pic/gen.c (popGetExternal): augmented to also create references
2267           to external variables (not only labels),
2268           (genCall): comment on plan to reduce PAGESEL overhead,
2269           (genFunction, genEndFunction): also save/restore FSR around interrupt
2270           handling code, removed lots of unused code
2271           (genDivOneByte): release acquired temp register
2272         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
2273           of popGetExternal
2274         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
2275           for registers that need to be saved during interrupts (FSR, STATUS,
2276           PCLATH; W needs special handling), currently only FSR is used
2277
2278 2007-03-22 Raphael Neider <rneider AT web.de>
2279
2280         * device/include/pic/pic14devices.txt: 16f688 has only one config word
2281
2282 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2283
2284         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
2285
2286 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
2287
2288         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
2289
2290 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
2291
2292         * as/link/aslink.h: added LKOBJEXT
2293         * as/link/hc08/link_hc08.dsp,
2294         * as/link/hc08/Makefile.bcc,
2295         * as/link/hc08/Makefile.in,
2296         * as/link/mcs51/aslink.dsp,
2297         * as/link/mcs51/Makefile.bcc,
2298         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
2299         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
2300         * as/link/lkaomf51.c: merged and moved
2301         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
2302         * as/link/z80/lkdata.c,
2303         * as/link/lkdata.c: merged and moved
2304         * as/link/hc08/lkmain.c,
2305         * as/link/mcs51/lkmain.c: cosmetic changes
2306         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
2307         * as/link/lklex.c: use LKOBJEXT
2308         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
2309           ANSI-fied functions, removed bubble-sorts
2310         * as/link/z80/lksym.c           as/link/lksym.c: merged,
2311           ANSI-fied functions
2312         * as/link/z80/linkgbz80.dsp,
2313         * as/link/z80/linkz80.dsp,
2314         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
2315           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
2316         * as/link/z80/lkhead.c,
2317         * as/link/z80/lklex.c: deleted
2318         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
2319         * as/link/z80/lkmain.c: added copyfile()
2320
2321 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2322
2323         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
2324
2325 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2326
2327         * device/lib/_strlen.c: assembler version for mcs51
2328
2329 2007-03-13 Raphael Neider <rneider AT web.de>
2330
2331         * device/include/pic16/pic18f2221.h,
2332         * device/include/pic16/pic18f2321.h,
2333         * device/include/pic16/pic18f2331.h,
2334         * device/include/pic16/pic18f4221.h,
2335         * device/include/pic16/pic18f4321.h,
2336         * device/include/pic16/pic18f4331.h: fixed config byte location names
2337         * support/scripts/inc2h-pic16.pl: removed debug output, emit
2338           consistently named config byte locations
2339
2340 2007-03-13 Borut Razem <borut.razem AT siol.net>
2341
2342         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
2343           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
2344           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
2345           as/link/z80/Makefile.in, as/z80/Makefile.in:
2346           introduced LDFLAGS
2347
2348 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2349
2350         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
2351         * device/lib/printf_large.c: pointer was converted to generic
2352         pointer for mcs51 models other than model-small (Maarten noticed)
2353
2354 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2355
2356         * device/include/mcs51/ADuC84x.h: Added.
2357
2358 2007-03-10 Borut Razem <borut.razem AT siol.net>
2359
2360         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
2361           fixed RFE #1624219: double backslashes in filenames;
2362           functions hexEscape(), octalEscape() and copyStr() moved from
2363           SDCCval.c to SDCCutil.c and made them glovbally available
2364
2365 2007-03-09 Borut Razem <borut.razem AT siol.net>
2366
2367         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
2368           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
2369           1673361: Missaligned comments in output files
2370
2371 2007-03-09 Raphael Neider <rneider AT web.de>
2372
2373         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
2374
2375 2007-03-09 Raphael Neider <rneider AT web.de>
2376
2377         * src/pic/gen.c,
2378         * src/pic/glue.c,
2379         * src/pic/ralloc.c: suppress undesired debug output
2380         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
2381
2382 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2383
2384         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
2385
2386 2007-03-07 Borut Razem <borut.razem AT siol.net>
2387
2388         * device/lib/pic16/libdev/pic18f[24][34]31.c:
2389           search include files in the current directory
2390
2391 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
2392
2393         * src/SDCCglue.c (emitMaps, glue),
2394         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
2395           absolute xdata
2396         * support/regression/tests/absolute.c: added xdata test
2397
2398 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
2399
2400         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
2401           added condition to macro, fixes bug 1666080
2402
2403 2007-03-02 Raphael Neider <rneider AT web.de>
2404
2405         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
2406
2407 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2408
2409         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
2410         be cleared. Unconditionally set __XPAGE
2411         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
2412
2413 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2414
2415         * src/SDCCglobl.h,
2416         * src/SDCCmain.c,
2417         * src/mcs51/gen.c,
2418         * src/mcs51/rtrack.c,
2419         * src/ds390/gen.c,
2420         * doc/sdccman.lyx: added --no-gen-comments
2421         * src/mcs51/peeph.def: added 192.b, disabled 185
2422
2423 2007-02-25 Raphael Neider <rneider AT web.de>
2424
2425         * src/pic16/gen.c (genCast): fixed typo
2426         * device/lib/pic16/Makefile.subdir: only install existing files
2427         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
2428
2429 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
2430
2431         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
2432         * device/lib/mcs51/crtclear.asm,
2433         * device/lib/mcs51/crtxclear.asm: renumbered labels
2434         * device/lib/mcs51/Makefile.in: added crtcall.asm
2435         * doc/sdccman.lyx: documented mcs51 crt* library startup code
2436         * src/mcs51/gen.c (movc): removed,
2437           (aopGet, genPlusBits): clear a after loading the carry (possibly from
2438             acc.x or psw.x),
2439           (toCarry, genSend, genRet): added function toCarry,
2440           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
2441           (assignBit, genAssign, genCast): added function assignBit
2442         * src/mcs51/Makefile.bcc: added rtrack.c
2443         * src/mcs51/ralloc.h: made valueKnown a bitfield
2444         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
2445           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
2446           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
2447         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
2448         * src/z80/gen.c: added AOP_IS_PAIRPTR,
2449           (_pop): only pop valid pairs, see gencjneshort,
2450           (gencjneshort): return pair that still needs to be popped, restructured,
2451           (gencjne, genCmpEq): call _pop
2452
2453 2007-02-23 Raphael Neider <rneider AT web.de>
2454
2455         * device/include/pic/pic14devices.txt: 16f684 has only one config word
2456
2457 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2458
2459         * device/include/mcs51/P89LPC925.h: Added.
2460
2461 2007-02-18 Raphael Neider <rneider AT web.de>
2462
2463         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
2464
2465 2007-02-17 Borut Razem <borut.razem AT siol.net>
2466
2467         * support/cpp2/directives.c, support/cpp2/version.c:
2468           synchronized with GCC CPP 4.1.2
2469
2470 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2471
2472         * src/mcs51/rtrack.h,
2473         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
2474           by checking the strings passed by emitcode() to the assembler.
2475           Feel free to change. This in part addresses RFE #482179.
2476           Set environment variable SDCC_RTRACK to enable.
2477         * src/mcs51/gen.c: inserted hooks
2478         * src/mcs51/ralloc.h: added two members to struct regs
2479         * support/regression/tests/regtrack.c: added
2480
2481 2007-02-14 Borut Razem <borut.razem AT siol.net>
2482
2483         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
2484         * Makefile.in: applied patch from Makefile related part of
2485           #1469393: Compiler does not initialize static data
2486
2487 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
2488
2489         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
2490           for better fix of bug 1273984, compiles pic16 rand.c
2491
2492 2007-02-12 Borut Razem <borut.razem AT siol.net>
2493
2494         * src/pic16/main.c: fixed pic16 standard library directory bug
2495
2496 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
2497
2498         * src/hc08/gen.c (genSwap): fix swap regression test
2499
2500 2007-02-10 Borut Razem <borut.razem AT siol.net>
2501
2502         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
2503           with same scope
2504         * support/regression/tests/bug-1654060.c: added regression test for
2505           #1654060
2506
2507 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
2508
2509         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
2510         bit moves in return statement
2511
2512 2007-02-09 Borut Razem <borut.razem AT siol.net>
2513
2514         * src/SDCC.y: fixed bug #1654060 typedef within function causes
2515           syntax error
2516
2517 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
2518
2519         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
2520         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
2521
2522 2007-02-07 Raphael Neider <rneider AT web.de>
2523
2524         * src/pic16/devices.inc,
2525         * device/include/pic16/pic18fregs.h,
2526         * device/include/pic16/pic18f[24][34]31.h,
2527         * device/lib/pic16/libdev/pic18f[24][34]31.c,
2528         * device/lib/pic16/pics.all: added 18f[24][34]31 family
2529         * device/lib/pic16/libio/i2c.ignore: do not build i2c
2530
2531 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
2532
2533         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
2534           can this have lived here for so many years?
2535         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
2536           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
2537         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
2538
2539 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
2540
2541         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
2542         appended by loop induction must be at the very end of the eBBlock
2543
2544 2007-02-05 Kevin Vigor
2545
2546         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
2547
2548 2007-02-05 Borut Razem <borut.razem AT siol.net>
2549
2550         * support/regression/fwk/lib/timeout.c: native WIN32 port,
2551           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
2552
2553 2007-02-03 Borut Razem <borut.razem AT siol.net>
2554
2555         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
2556           applied patch #1646602 option to set default signedness of char to
2557           unsigned, added -funsigned-char command line option,
2558           thanks to Gunther Jehle
2559         * device/lib/Makefile.in: added the -f option to rm so it doesn't
2560           prompt for file deletion a few hundred times (especially the
2561           subversion files, which have ro permissions so it asks for
2562           confirmation), thanks to Simon McAuliffe;
2563           added {} + option to find in order to remove multiple files from a
2564           single rm commad
2565
2566 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2567
2568         * device/include/mcs51/SST89x5xRDx.h: Added.
2569
2570 2007-02-02 Raphael Neider <rneider AT web.de>
2571
2572         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
2573         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
2574
2575 2007-02-01 Raphael Neider <rneider AT web.de>
2576
2577         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
2578           config words again
2579
2580 2007-01-31 Borut Razem <borut.razem AT siol.net>
2581
2582         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
2583           if compiled with GCC. Thanks to Raphael Neider
2584
2585 2007-01-31 Raphael Neider <rneider AT web.de>
2586
2587         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
2588             operand names, handles name and (name + n) for all n,
2589           (sameBank): restructured, also check bank allocation policy,
2590         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
2591           (pic14_operandsAllocatedInSameBank): check whether to operands
2592             will be allocated into the same bank (i.e., section) to reduce
2593             BANKSEL overhead, queried from pcode.c:sameBank,
2594           (pic14printLocals): reintroduced clustering registers into a single
2595             section: all compiler generated symbols will now reside in one
2596             bank (per file), reducing BANKSEL overhead and code size,
2597           (showAllMemmaps): use local dbuf where possible
2598
2599 2007-01-29 Raphael Neider <rneider AT web.de>
2600
2601         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
2602           (call_libraryfunc): retrieve/create symbol and mark as used,
2603           (genFunction): mark defined functions as non-extern and add again
2604            to code memmap for later output
2605         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
2606           (pic14printLocals): reworked for new symbol emission,
2607           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
2608           showAllMemmaps): reworked symbol output using dbufs, added handling
2609             of string literals (still incomplete),
2610           (picglue): removed symbol emission, moved into showAllMemmaps,
2611           (emitSymbolSet): new workhorse for symbol output,
2612           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
2613
2614 2007-01-29 Borut Razem <borut.razem AT siol.net>
2615
2616         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
2617           component contains the extension separator.
2618
2619 2007-01-28 Borut Razem <borut.razem AT siol.net>
2620
2621         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
2622           on WIN32
2623         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
2624           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
2625           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
2626           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
2627           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
2628           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
2629           src/z80/gen.c, support/Util/MySystem.c:
2630           accept slash and backslash as directory separator on WIN32 and
2631           Cygwin ports
2632
2633 2007-01-28 Raphael Neider <rneider AT web.de>
2634
2635         * src/pic16/devices.inc,
2636         * device/include/pic16/pic18f[24][23]21.h,
2637         * device/include/pic16/pic18fregs.h,
2638         * device/lib/pic16/libdev/pic18f[24][23]21.c,
2639         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
2640         * device/lib/pic16/libio/adc.ignore,
2641         * device/lib/pic16/libio/i2c.ignore,
2642         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
2643           family, as gputils do not yet support the devices
2644         * device/lib/pic16/Makefile.subdir: ignore errors on install
2645         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
2646           headers and libraries from gputils .inc files
2647
2648 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
2649
2650         * doc/sdccman.lyx: add printf_fast_f precision limitation note
2651
2652 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
2653
2654         * doc/sdccman.lyx: add printf benchmarks
2655
2656 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
2657
2658         * device/lib/printf_fast.c: fix %c, char promoted to int
2659         * device/lib/printf_tiny.c: fix %c, char promoted to int
2660
2661 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
2662
2663         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
2664
2665 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2666
2667         * support/regression/tests/swap.c: 64 bit hosts failed
2668         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
2669
2670 2007-01-25 Raphael Neider <rneider AT web.de>
2671
2672         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
2673           based on absolute register address, patch by Alex Blond
2674
2675 2007-01-22 Raphael Neider <rneider AT web.de>
2676
2677         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
2678           emitted, do not emit them again...
2679
2680 2007-01-22 Raphael Neider <rneider AT web.de>
2681
2682         * src/regression/bank1.c, src/regression/compare6.c,
2683           src/regression/add.c: cosmetic changes
2684         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
2685         * src/pic/gen.c: fixed global zero and one,
2686           (aopForSym): removed unued code,
2687           (aopGet): assert aop is defined, check and use `index' of
2688             pCodeImmd operands (fixes #1630908),
2689         * src/pic/pcode.c (get_op): added output of generic pointer tag,
2690           (register_reassign): prevent accidental register unification,
2691           (ReuseReg): cosmetic changes (also above)
2692         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
2693           pic14emitStaticSeg): do not emit initialized data,
2694           (printIval*): replaced with working versions,
2695           (pic14createInterruptVect,picglue): use idata for initialized data,
2696             now init data should work in all modules (not only main()),
2697         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
2698
2699 2007-01-21 Borut Razem <borut.razem AT siol.net>
2700
2701         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
2702           use -fPIC or -fpic if they are supported and not ignored
2703         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
2704         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
2705
2706 2007-01-20 Borut Razem <borut.razem AT siol.net>
2707
2708         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
2709           implemented RFE #1470316: allow "$" in variable names
2710
2711 2007-01-20 Raphael Neider <rneider AT web.de>
2712
2713         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
2714
2715 2007-01-20 Raphael Neider <rneider AT web.de>
2716
2717         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
2718         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
2719         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
2720         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
2721           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
2722         * device/lib/pic/libdev/pic*.c,
2723         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
2724         * device/lib/pic/libdev/Makefile.in: show progress
2725
2726 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
2727
2728         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
2729         * support/scripts/sdcc_cygwin_mingw32,
2730         * support/scripts/sdcc_mingw32,
2731         * support/scripts/build.mak: replaced --datadir by --datarootdir for
2732         conformance with autoconf 2.6
2733
2734 2007-01-19 Raphael Neider <rneider AT web.de>
2735
2736         * src/pic/device.c (register_map): fixed list construction
2737         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
2738           (genMod): removed case for genModbits,
2739           (genModbits): removed as now unused/unimplemented
2740         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
2741
2742 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2743
2744         * support/regression/tests/swap.c: added in response to #1638622
2745         * doc/sdccman.lyx: synced version, minor changes
2746
2747 2007-01-18 Borut Razem <borut.razem AT siol.net>
2748
2749         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
2750           thanks to Gunther Jehle
2751         * src/asm.c: don't die if the file drfined in #line couldn't be opened
2752         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
2753           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
2754           use filename in lineno instead.
2755         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
2756           print the file name in ast_print()
2757
2758 2007-01-18 Borut Razem <borut.razem AT siol.net>
2759
2760         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
2761           defined in MSVC
2762         * src/SDCC.lex: stringLiteral() returns const char pointer,
2763           EOF detection in stringLiteral(), fixed asmbuf memory leak,
2764           fixed column counting
2765         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
2766           accept const char pointer as parameter
2767         * src/SDCCdwarf2.c: corrected buffer size
2768
2769 2007-01-17 Borut Razem <borut.razem AT siol.net>
2770
2771         * support/Util/dbuf_string.c: fixed for amd64
2772
2773 2007-01-15 Borut Razem <borut.razem AT siol.net>
2774
2775         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
2776           removed terminal symbol ELIPSIS, since it was never generated by the
2777           lexer and it was wrongly used in parameter_identifier_list rule
2778
2779 2007-01-15 Raphael Neider <rneider AT web.de>
2780
2781         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
2782             code page and data banking description
2783         * src/pic/genarith.c,
2784         * src/pic/gen.h: removed bit arithmetic functions,
2785             updated exit(1) to exit(EXIT_FAILURE)
2786         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
2787         * device/include/pic16/pic18f2455.h,
2788         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
2789             TRISD and TRISE, fixed/added some bit names
2790         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
2791         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
2792             updated pic18f2455.{c,h} instead of duplicating them
2793
2794 2007-01-14 Borut Razem <borut.razem AT siol.net>
2795
2796         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
2797           Cannot debug files that contain spaces in the path name
2798           by converting spaces in asm file name to underscores
2799
2800 2007-01-13 Borut Razem <borut.razem AT siol.net>
2801
2802         * doc/sdccman.lyx: fixed format errors
2803
2804 2007-01-10 Borut Razem <borut.razem AT siol.net>
2805
2806         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
2807           codeseg/constseg #pragma fail
2808         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
2809         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
2810           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
2811           suppoprt/cpp2/sdcpp.[ch]: house cleaning
2812
2813 2007-01-09 Borut Razem <borut.razem AT siol.net>
2814
2815         * get rid of diagnistic.[ch], pretty-print.[ch],
2816           c-pretty-print.[ch], ... used just for error, warning, ...
2817           message formatting
2818         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
2819           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
2820           suppoprt/cpp2/pretty-print.[ch]:
2821           removed
2822         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
2823           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
2824           suppoprt/cpp2/sdcpp.dsp:
2825           changed
2826
2827 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
2828
2829         * device/lib/printf_large.c (output_float): removed recursion,
2830           use smaller buffer on stack for mcs51,
2831           fixed bug printing 1.96
2832         * support/regression/tests/snprintf.c: added test
2833
2834 2007-01-07 Borut Razem <borut.razem AT siol.net>
2835
2836         * use dynamic memory buffers instead temporary files
2837         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
2838           added
2839         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
2840           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
2841           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
2842           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
2843           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
2844           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
2845           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
2846           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
2847           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
2848           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
2849           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
2850           support/Util/dbuf.c, support/Util/dbuf.h:
2851           modified
2852         * .version, sdcc.spec: bumped version to 2.6.4
2853
2854 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
2855
2856         * src/port.h: added TARGET_Z80_LIKE macro
2857         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
2858           output PSEG location if --xram-loc or --xstack-loc was used
2859         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
2860
2861 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
2862
2863         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
2864         * as/as_z80.dsp,   as/z80/as_z80.dsp,
2865         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
2866         * sdcc.dsw: moved project files into subdir
2867         * as/hc08/as_hc08.dsp,
2868         * as/hc08/Makefile.bcc,
2869         * as/hc08/Makefile.in,
2870         * as/mcs51/Makefile.bcc,
2871         * as/mcs51/Makefile.in,
2872         * as/z80/Makefile.bcc,
2873         * as/z80/Makefile.in,
2874         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
2875         * as/hc08/asm.h,
2876         * as/mcs51/asm.h,
2877         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
2878         * as/hc08/asmain.c,
2879         * as/hc08/assym.c,
2880         * as/mcs51/asmain.c,
2881         * as/mcs51/assym.c,
2882         * as/z80/assym.c: removed include "strcmpi.h"
2883         * as/hc08/strcmpi.c,
2884         * as/hc08/strcmpi.h,
2885         * as/mcs51/strcmpi.c,
2886         * as/mcs51/strcmpi.h,
2887         * support/Util/strcmpi.c,
2888         * support/Util/strcmpi.h: removed files
2889         * as/strcmpi.c: added as_strncmpi()
2890
2891 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2892
2893         * sdcc.dsw: Added some dependencies on project config.dsp
2894
2895 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
2896
2897         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
2898           with [di]ram_start to fix a regresion
2899
2900 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
2901
2902         * configure.in: added missing mcs51 in status output
2903         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
2904         directory
2905         * debugger/mcs51/clean.mk (distclean): remove config.h
2906         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
2907         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
2908         options.h, s-options-h and options.c
2909         * support/cpp2/clean.mk: unused, removed
2910         * Makefile.common.in,
2911         * main_in.mk,
2912         * as/Makefile.in,
2913         * as/hc08/Makefile.in,
2914         * as/hc08/clean.mk,
2915         * as/mcs51/Makefile.in,
2916         * as/mcs51/clean.mk,
2917         * as/z80/clean.mk,
2918         * as/z80/conf.mk,
2919         * as/z80/Makefile.in,
2920         * as/z80/clean.mk,
2921         * as/link/Makefile.in,
2922         * as/link/hc08/Makefile.in,
2923         * as/link/hc08/clean.mk,
2924         * as/link/mcs51/Makefile.in,
2925         * as/link/mcs51/clean.mk,
2926         * as/link/z80/Makefile.in,
2927         * as/link/z80/clean.mk,
2928         * as/link/z80/conf.mk,
2929         * debugger/mcs51/Makefile.in,
2930         * debugger/mcs51/clean.mk,
2931         * device/include/Makefile.in,
2932         * device/lib/Makefile.in,
2933         * device/lib/mcs51/Makefile.in,
2934         * device/lib/pic/Makefile.in,
2935         * device/lib/pic/Makefile.common.in,
2936         * device/lib/pic/Makefile.subdir,
2937         * device/lib/pic/Makefile.rules,
2938         * device/lib/pic16/libio/Makefile.in,
2939         * device/lib/pic16/Makefile.subdir,
2940         * device/lib/pic16/libdev/Makefile.in,
2941         * device/lib/pic16/Makefile.rules,
2942         * device/lib/pic16/Makefile.common.in,
2943         * sim/ucsim/avr.src/Makefile.in,
2944         * sim/ucsim/main_in.mk,
2945         * sim/ucsim/cmd.src/Makefile.in,
2946         * sim/ucsim/doc/Makefile.in,
2947         * sim/ucsim/gui.src/Makefile.in,
2948         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
2949         * sim/ucsim/gui.src/serio.src/Makefile.in,
2950         * sim/ucsim/hc08.src/Makefile.in,
2951         * sim/ucsim/libltdl/Makefile.in,
2952         * sim/ucsim/s51.src/Makefile.in,
2953         * sim/ucsim/sim.src/Makefile.in,
2954         * sim/ucsim/sim.src/conf.mk,
2955         * sim/ucsim/xa.src/Makefile.in,
2956         * sim/ucsim/z80.src/Makefile.in,
2957         * src/Makefile.in,
2958         * src/clean.mk,
2959         * src/port.mk,
2960         * support/cpp2/Makefile.in,
2961         * support/librarian/Makefile.in,
2962         * support/librarian/clean.mk,
2963         * support/makebin/Makefile.in,
2964         * support/makebin/clean.mk,
2965         * support/packihx/Makefile.in,
2966         * support/regression/Makefile.in,
2967         * support/regression/ports/ds390/spec.mk,
2968         * support/regression/ports/gbz80/spec.mk,
2969         * support/regression/ports/hc08/spec.mk,
2970         * support/regression/ports/mcs51/spec.mk,
2971         * support/regression/ports/mcs51-large/spec.mk,
2972         * support/regression/ports/mcs51-medium/spec.mk,
2973         * support/regression/ports/mcs51-xstack-auto/spec.mk,
2974         * support/regression/ports/pic14/spec.mk,
2975         * support/regression/ports/pic16/spec.mk,
2976         * support/regression/ports/mcs51-stack-auto/spec.mk,
2977         * support/regression/ports/ucz80/spec.mk,
2978         * support/regression/ports/xa51/spec.mk,
2979         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
2980         adding a slash after $(top_builddir) and/or adding @datarootdir@
2981         * configure.in,
2982         * debugger/mcs51/configure.in,
2983         * device/lib/pic/configure.in,
2984         * device/lib/pic16/configure.in,
2985         * sim/ucsim/configure.in,
2986         * support/cpp2/configure.in,
2987         * support/packihx/configure.in: changed AC_PREREQ to 2.60
2988         * configure,
2989         * debugger/mcs51/configure,
2990         * device/lib/pic/configure,
2991         * device/lib/pic16/configure,
2992         * sim/ucsim/configure,
2993         * support/cpp2/configure,
2994         * support/packihx/configure: generated with autoconf 2.60
2995
2996 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
2997
2998         * as/link/hc08/lkihx.c (newArea),
2999         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
3000
3001 2007-01-02 Borut Razem <borut.razem AT siol.net>
3002
3003         * doc/sdccman.lyx: documented #pragma sdcc_hash
3004         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
3005           initialized to 0
3006         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
3007
3008 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
3009
3010         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
3011         empty 'while'-loop to work correctly, see regression test 'while.c'
3012         * support/regression/tests/while.c: added
3013
3014 2007-01-01 Borut Razem <borut.razem AT siol.net>
3015
3016         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
3017           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
3018           support/cpp2/libcpp/sdcpp.c:
3019           sdcpp specific pragma/directive/option handling moved to sdcpp.c
3020         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
3021         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
3022
3023 2006-12-31 Borut Razem <borut.razem AT siol.net>
3024
3025         * SDCPP synchronized with GCC CPP release version 4.1.1,
3026           currently the latest release:
3027         * support/cpp2/libcpp, support/cpp2/libcpp/include,
3028           support/cpp2/libcpp/include/cpp-id-data.h
3029           support/cpp2/libiberty/fopen_unlocked.c
3030           support/cpp2/libiberty/md5.c
3031           support/cpp2/md5.h
3032           support/cpp2/opt-functions.awk
3033           support/cpp2/opt-gather.awk
3034           support/cpp2/optc-gen.awk
3035           support/cpp2/opth-gen.awk:
3036           added
3037         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
3038           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
3039           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
3040           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
3041           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
3042           support/cpp2/diagnostic.h, support/cpp2/except.h,
3043           support/cpp2/hwint.h, support/cpp2/input.h,
3044           support/cpp2/intl.h, support/cpp2/move-if-change,
3045           support/cpp2/opts.c, support/cpp2/opts.h,
3046           support/cpp2/output.h, support/cpp2/prefix.c,
3047           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
3048           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
3049           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
3050           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
3051           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
3052           support/cpp2/version.c:
3053           modified
3054         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
3055           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
3056           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
3057           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
3058           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
3059           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
3060           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
3061           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
3062           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
3063           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
3064           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
3065           moved
3066         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
3067           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
3068           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
3069           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
3070           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
3071           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
3072           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
3073           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
3074           support/cpp2/hashtable.h, support/cpp2/line-map.c,
3075           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
3076           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
3077           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
3078           support/cpp2/system.h:
3079           deleted / moved
3080
3081 2006-12-31 Borut Razem <borut.razem AT siol.net>
3082
3083         * configure.in, configure: fixed bug #1538756: configure dies if bison
3084           and flex are not installed, 2nd try
3085
3086 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
3087
3088         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
3089         400.x for better code in RFE 899102
3090
3091 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
3092
3093         * src/SDCCpeeph.c (deadMove),
3094         * src/port.h,
3095         * src/mcs51/peep.h: renamed 'op' by 'reg'
3096         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
3097         (scan4op): small change for removeDeadMove(), added support for
3098         'callee saves' and/or PACLL function calls,
3099         (removeDeadMove): added, removes superflous 'mov r%1,%2',
3100         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
3101         left in new dispatcher mcs51DeadMove()
3102         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
3103         removeDeadMove()
3104         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
3105
3106 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3107
3108         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
3109           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
3110
3111 2006-12-30 Borut Razem <borut.razem AT siol.net>
3112
3113         * support/cpp2/spacs.h: deleted from svn
3114         * configure.in, configure: fixed bug #1538756: configure dies if bison
3115           and flex are not installed
3116
3117 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
3118
3119         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
3120           with this z80 passes printf float test when enabled
3121         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
3122
3123 2006-12-28 Borut Razem <borut.razem AT siol.net>
3124
3125         * support/cpp2/config.in, support/cpp2/configure.in,
3126           support/cpp2/configure, support/cpp2/Makefile.in:
3127           fix for the solaris build
3128
3129 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3130
3131         * src/SDCC.y (type_specifier2, pointer),
3132         * src/SDCCsymt.h,
3133         * src/SDCCsymt.c (mergeSpec, checkSClass),
3134         * support/Util/SDCCerr.c,
3135         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
3136         * support/valdiag/valdiag.py: Allow test cases to specify
3137           required language standard
3138         * support/valdiag/tests/restrict.c: New file to test restrict keyword
3139         * support/valdiag/tests/tentdecl.c: Supress empty source file error
3140
3141 2006-12-27 Borut Razem <borut.razem AT siol.net>
3142
3143         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
3144         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
3145           mbchar removed
3146         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
3147           fixed for borland C
3148         * support/cpp2/libiberty/Makefile.bcc: updated
3149         * src/pic16/main.c: fixed #pragma udata handling
3150         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
3151
3152 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
3153
3154         * src/SDCCpeeph.c: made labelHashEntry global,
3155         made pcDistance, FBYNAME static,
3156         (pcDistance): made static, use isComment and isLabel,
3157         (deadMove): added,
3158         (getLabelRef): added, extracted from labelRefCount(),
3159         (labelRefCount): use new getLabelRef(),
3160         (callFuncByName): made static, added deadMove,
3161         use isComment and isLabel,
3162         (newPeepRule): made static, set isLabel,
3163         (isLabelDefinition): added parameter isPeepRule to allow '%' in
3164         labels from peephole rules,
3165         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
3166         when isComment or isLabel is set
3167         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
3168         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
3169         to make them global
3170         * src/mcs51/peep.h: added
3171         * src/mcs51/peep.c: added, implements mcs51DeadMove()
3172         * src/port.h: added peep->deadMove to port structure
3173         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
3174         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
3175         deadMove, finally removed no. 1 and 2
3176         * src/mcs51/gen.c,
3177         * src/pic/gen.c,
3178         * src/z80/gen.c,
3179         * src/z80/ralloc.c,
3180         * src/pic16/gen.c,
3181         * src/ds390/gen.c,
3182         * src/hc08/gen.c: mark lines with isComment or isLabel
3183         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
3184         * .version,
3185         * sdcc.spec: bumped version to 2.6.3
3186
3187 2006-12-26 Borut Razem <borut.razem AT siol.net>
3188
3189         * support/cpp2/Makefile.in: added dependency on options.h
3190         * configure: regenerated
3191         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
3192         * support/cpp2/Makefile.in: added vasprintf.c
3193
3194 2006-12-25 Borut Razem <borut.razem AT siol.net>
3195
3196         * SDCPP synchronized with GCC CPP release version 3.4.6,
3197           the latest release before 4.x:
3198         * support/cpp2/Makefile.in, support/cpp2/config.h,
3199           support/cpp2/configure, support/cpp2/configure.in,
3200           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
3201           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
3202           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
3203           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
3204           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
3205           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
3206           support/cpp2/cpptrad.c, support/cpp2/except.h,
3207           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
3208           support/cpp2/hwint.h, support/cpp2/intl.h,
3209           support/cpp2/line-map.c, support/cpp2/line-map.h,
3210           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
3211           support/cpp2/output.h, support/cpp2/prefix.c,
3212           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
3213           support/cpp2/system.h, support/cpp2/version.c:
3214           modified
3215         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
3216           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
3217           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
3218           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
3219           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
3220           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
3221           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
3222           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
3223           support/cpp2/move-if-change, support/cpp2/opts.c,
3224           support/cpp2/opts.h, support/cpp2/opts.sh,
3225           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
3226           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
3227           support/cpp2/win32, support/cpp2/win32/dirent.c,
3228           support/cpp2/win32/dirent.h:
3229           added
3230         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
3231         * support/cpp2/sdcpp.h: renamed from sdcc.h
3232         * sdcppinit.c: deleted
3233
3234 2006-12-23 Borut Razem <borut.razem AT siol.net>
3235
3236         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
3237           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
3238           preproc.c: an other try to fix bug #982435: introduced
3239           -pedantic-parse-number command line option and pedantic_parse_number
3240           pragma
3241
3242 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
3243
3244         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
3245            BSEG handling,
3246           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
3247            corrected overlayed areax addresses, warn about memory overlaps
3248         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
3249         * src/avr/main.c,
3250         * src/ds390/main.c,
3251         * src/hc08/main.c,
3252         * src/mcs51/main.c,
3253         * src/pic16/main.c,
3254         * src/pic/main.c,
3255         * src/xa51/main.c,
3256         * src/z80/main.c,
3257         * src/port.h: added xabs_name and iabs_name
3258         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
3259           (glue, emitMaps): create and emit maps d_abs and i_abs
3260         * src/SDCCglue.h: cosmetic changes
3261         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
3262         * src/SDCCmem.h,
3263         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
3264           (allocDefault): put absolute, initialized globals in them
3265         * support/regression/tests/absolute.c: added absolute bdata test
3266         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
3267
3268 2006-12-20 Borut Razem <borut.razem AT siol.net>
3269
3270         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
3271         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
3272           added regression test for bug #982435
3273
3274 2006-12-18 Borut Razem <borut.razem AT siol.net>
3275
3276         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
3277         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
3278           small cosmetic changes
3279         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
3280         * support/regression/tests/bug-1351710.c: added regression test
3281
3282 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3283
3284         * doc/sdccman.lyx: added the long missed iCode table
3285           "<where is figure II?>", added links to wiki
3286
3287 2006-12-17 Borut Razem <borut.razem AT siol.net>
3288
3289         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
3290           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
3291           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
3292           unified table driven pragma handling, pragma argument type checking
3293         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
3294           current one - version 1.1.3
3295         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
3296
3297 2006-12-13 Raphael Neider <rneider AT web.de>
3298
3299         * src/pic/device.h: removed AssignedMemory structure and macros
3300         * src/pic/device.c: removed global finalMapping (linker assigns
3301             memory locations),
3302           (register_map): add SFRs to remembered memRanges
3303           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
3304           assignFixedRegisters,assignRelocatableRegisters): removed,
3305           (setMaxRAM,validAddress): adapted accordingly,
3306           (pic14_hasSharebank,pic14_getSharedStack): only report and use
3307             reasonably sized sharebanks,
3308         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
3309           (allDefsOutOfRange): removed unused code,
3310         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
3311             handling
3312         * src/pic/pcode.c (register_reassign): removed recursion warning,
3313             fired far too often,
3314         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
3315             to use existing pic14_stringInSet() to avoid duplicate symbols,
3316             tidied up the code a bit,
3317           (pic14printLocals): added in symmetry to printExterns, replaces
3318             writeUsedRegs more or less,
3319           (picglue): call new pic14_printLocals(),
3320         * device/include/pic/pic*.h: removed #pragma memmap directives,
3321             information gathered from include/pic/pic14devices.txt
3322         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
3323
3324 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
3325
3326         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
3327
3328 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3329
3330         * device/include/mcs51/cc2430.h: fixed missing ';'
3331
3332 2006-12-10 Raphael Neider <rneider AT web.de>
3333
3334         * device/lib/pic16/libc/stdio/vfprintf.c,
3335         * device/lib/pic16/libc/stdio/printf_small.c,
3336         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
3337           char arguments, as char varargs are cast to int by the caller,
3338           hopefully fixes #1604915 (other device libraries are still affected)
3339
3340 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3341
3342         * src/mcs51/ralloc.c (packRegsForAssign),
3343         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
3344
3345 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
3346
3347         * device/include/malloc.h: removed init_dynamic_memory
3348         * device/lib/malloc.c: made init_dynamic_memory static and automatically
3349           call it once from malloc. Also use _sdcc_heap[] from _heap.c
3350         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
3351         * device/lib/libsdcc.lib,
3352         * device/lib/Makefile.in,
3353         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
3354         * doc/sdccman.lyx: documented use of new _heap.c
3355         * support/regression/tests/malloc.c: removed init_dynamic_memory
3356         * src/cdbFile.c(spacesToUnderscores): new function,
3357           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
3358           1068030
3359         * device/include/tinibios.h: removed defines for putchar and getchar
3360         * device/lib/ds390/Makefile.in: added putchar.c
3361         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
3362
3363 2006-12-09 Borut Razem <borut.razem AT siol.net>
3364
3365         * support/cpp2/sdcc.h: prevent multiple inclusion
3366         * support/cpp2/options.h: deleted
3367
3368 2006-12-08 Borut Razem <borut.razem AT siol.net>
3369
3370         * support/cpp2/sdcc.h: removed x*alloc() macros
3371         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
3372         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
3373           support/cpp2/sdcpp.sdc: x*alloc files added to the project
3374         * support/cpp2/system.h: moved #include "sdcc.h"
3375         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
3376           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
3377           added
3378         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
3379           -funsigned-char options
3380         * support/cpp2/sdcppmain.c: fixed bug 1611411
3381
3382 2006-12-07 Borut Razem <borut.razem AT siol.net>
3383
3384         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
3385           directive
3386
3387 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
3388
3389         * src/SDCCsymt.c (addDecl): fixed bug 1609244
3390         * src/SDCCmain.c (linkEdit): fixed bug 1609279
3391         * doc/sdccman.lyx,
3392         * .version: bumped to 2.6.2 because a) it's been a while
3393           b) the linker sources have moved c) the preprocessor is upgraded
3394
3395 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3396
3397         * support/regression/tests/snprintf.c: some checks
3398         * lib/src/printf_large.c: %bc: read char instead of int from stack
3399
3400 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
3401
3402         * device/include/mcs51/cc2430.h: inserted _XPAGE
3403
3404 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3405
3406         * device/include/mcs51/cc2430.h: added
3407
3408 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
3409
3410         * device/include/asm/default/features.h,
3411         * device/include/asm/ds390/features.h,
3412         * device/include/mcs51/at89s53.h,
3413         * device/include/ser.h,
3414         * device/include/ser_ir.h,
3415         * device/include/serial.h: changed keywords to double underscore variants,
3416           fixes bug 1590261 some more, thanks Steven Borley
3417
3418 2006-12-01 Raphael Neider <rneider AT web.de>
3419
3420         * src/pic/pcode.c (register_reassign): do not crash on recursive code
3421           but emit warning (recursion is not supported for pic14)
3422
3423 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3424
3425         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
3426         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
3427
3428 2006-11-30 Raphael Neider <rneider AT web.de>
3429
3430         * src/pic/device.c (dump_sfr): always emit symbols
3431         * src/pic/glue.c (pic14printPublics): fixed typo
3432
3433 2006-11-30 Raphael Neider <rneider AT web.de>
3434
3435         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
3436           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
3437           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
3438            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
3439            a sharebank, use a non-shared bank for the stack if none available
3440         * src/pic/device.h (struct memRange): added linked list next field,
3441           added prototypes for above functions
3442         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
3443           (typeRegWithIdx): accept fixed and unfixed stack registers
3444         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
3445           the stack, handle shared and banked stack (except for WSAVE),
3446           (insertBankSel): removed useless optimization (will never fire),
3447           (FixRegisterBanking): added optimization for devices with only one
3448           possibly aliased bank of memory, like 16f84
3449         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
3450           devices have no SHAREBANK in the linker script
3451         * device/include/pic/pic14devices.txt: documented memmap
3452         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
3453
3454 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3455
3456         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
3457           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
3458           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
3459           genhc08Code): switched most of the D (debug) macros to DD (detailed
3460           debug) macros to better control clutter in the generated .asm file.
3461         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
3462           genRightShift): fixed bug with non-constant bit shift stored to
3463           a volatile result (SF Open Discussion forum thread #1616749).
3464           Single byte case is not yet optimized.
3465
3466 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
3467
3468         * device/include/asm/mcs51/features.h,
3469         * device/include/malloc.h,
3470         * device/include/stdio.h: changed keywords to double underscore variants,
3471           fixes bug 1590261
3472
3473 2006-11-27 Borut Razem <borut.razem AT siol.net>
3474
3475         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
3476           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
3477           support/cpp2/output.h, support/cpp2/cppinit.c,
3478           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
3479           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
3480           support/cpp2/cppdefault.c, support/cpp2/system.h,
3481           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
3482           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
3483           support/cpp2/prefix.c, support/cpp2/except.h,
3484           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
3485           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
3486           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
3487           support/cpp2/version.c, support/cpp2/cppmain.c,
3488           support/cpp2/version.h, support/cpp2/hashtable.c,
3489           support/cpp2/cpperror.c:
3490           synchronized with GCC CPP release version 3.3.6,
3491           the latest where cppmain.c still exists.
3492         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
3493           support/cpp2/sdcppinit.c: added
3494
3495 2006-11-27 Borut Razem <borut.razem AT siol.net>
3496
3497         * support/cpp2/cpplex.c:
3498           fixed _asm ... _endasm handling bug, introduce with GCC CPP
3499           synchronization
3500         * support/cpp2/cpplib.c: removed definitions of unused variables
3501
3502 2006-11-26 Borut Razem <borut.razem AT siol.net>
3503
3504         * support/cpp2/libiberty.h: commented out x*alloc() declarations
3505           since they are redefined by macros in support/cpp2/sdcc.h
3506         * support/cpp2/sdcc.h: x*alloc macro redefinition
3507
3508 2006-11-25 Borut Razem <borut.razem AT siol.net>
3509
3510         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
3511           support/cpp2/configure, support/cpp2/Makefile.in,
3512           support/cpp2/cppfiles.c, support/cpp2/output.h,
3513           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
3514           support/cpp2/config.h, support/cpp2/cpplib.h,
3515           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
3516           support/cpp2/cppdefault.c, support/cpp2/config.in,
3517           support/cpp2/system.h, support/cpp2/cpplex.c,
3518           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
3519           support/cpp2/cppdefault.h, support/cpp2/prefix.c
3520           support/cpp2/hwint.h, support/cpp2/mbchar.h,
3521           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
3522           support/cpp2/configure.in, support/cpp2/intl.h,
3523           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
3524           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
3525           support/cpp2/version.c, support/cpp2/cppmain.c,
3526           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
3527           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
3528           support/cpp2/cpperror.c,
3529           support/cpp2/libiberty/safe-ctype.c,
3530           support/cpp2/libiberty/safe-ctype.h,
3531           support/cpp2/libiberty/splay-tree.c,
3532           support/cpp2/libiberty/obstack.c,
3533           support/cpp2/libiberty/lbasename.c,
3534           support/cpp2/libiberty/splay-tree.h,
3535           support/cpp2/libiberty/obstack.h:
3536           synchronized with GCC CPP release version 3.2.3,
3537           the latest before integration of cpp into gcc
3538         * support/cpp2/except.h, support/cpp2/line-map.c,
3539           support/cpp2/line-map.h,
3540           support/cpp2/libiberty/hex.c,
3541           support/cpp2/libiberty/concat.c,
3542           support/cpp2/libiberty/filenames.h: added
3543         * support/cpp2/intl.c: deleted
3544
3545 2006-11-24 Borut Razem <borut.razem AT siol.net>
3546
3547         * src/SDCC.y: enabled compilation of empty source file
3548         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
3549           "ISO C forbids an empty source file"
3550         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
3551           if all the code is ifdefed out.
3552
3553 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3554
3555         * src/hc08/gen.c (genPcall): fix for bug #1601032
3556
3557 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
3558
3559         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
3560         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
3561         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
3562         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
3563         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
3564         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
3565         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
3566         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
3567         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
3568         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
3569         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
3570         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
3571         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
3572         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
3573         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
3574           Renamed to all upper case as per the standard set by SiLabs
3575
3576 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
3577
3578         * device/include/mcs51/C8051F520.h: new, added
3579         * device/include/mcs51/compiler.h: added link about predefined macros
3580
3581 2006-11-23 Raphael Neider <rneider AT web.de>
3582
3583         * src/regression/Makefile: add -L path to fresh library
3584         * src/regression/simulate: emphasize FAILED output
3585         * src/regression/create_stc: output _failures from gpsim
3586         * src/regression/compare4.c,
3587         * src/regression/rotate6.c: fixed char literals,
3588           all compile, all run =8-D
3589
3590         * src/pic/pcode.h: added isPCASMDIR macro
3591         * src/pic/gen.c (genAnd): fixed bit offset
3592         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
3593           packBits): unified register numbering schemes,
3594           (newReg): do not insert stack registers into hash table,
3595           (initStack): unpinned pseudo stack, simplified,
3596           (typeRegWithIdx): fixed retrieval of stack registers,
3597         * src/pic/pcode.c (addpCodeComment,sameBank): added,
3598           (pCodeReplace): removed invalid assertion,
3599           (insertPCodeInstruction): fixed newly added labels,
3600           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
3601           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
3602           DumpFlow): removed unsed (broken?) code,
3603           (insertBankSel): prevent STATUS from being BANKSELed,
3604           (FixRegisterBanking): rewritten from scratch, implemented generic
3605             optimizations (suppress BANKSELs to same register and to registers
3606             present in all banks),
3607           (AnalyzeBanking): update flow after BANKSELection
3608
3609         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
3610             sharebank, let linker place it, mark STKxx symbols as emitted
3611
3612 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3613
3614         * src/regression/arrays.c,
3615         * src/regression/bank1.c,
3616         * src/regression/bool2.c,
3617         * src/regression/compare7.c,
3618         * src/regression/compare8.c,
3619         * src/regression/compare9.c,
3620         * src/regression/compare10.c,
3621         * src/regression/configword.c,
3622         * src/regression/for.c,
3623         * src/regression/mult1.c,
3624         * src/regression/pointer1.c,
3625         * src/regression/rotate6.c,
3626         * src/regression/string1.c,
3627         * src/regression/struct1.c,
3628         * src/regression/Makefile: make PIC14 regression tests run again
3629           (3 fail, 6 won't compile)
3630
3631 2006-11-21 Raphael Neider <rneider AT web.de>
3632
3633         * device/include/pic16/pic18f4550.h,
3634         * device/include/pic16/pic18f4455.h,
3635         * device/lib/pic16/libdev/pic18f4550.c,
3636         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
3637         * configure.in: removed superfluous closing bracket
3638
3639 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3640
3641         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
3642           always positive.
3643
3644 2006-11-21 Raphael Neider <rneider AT web.de>
3645
3646         * src/pic/device.{c,h}: added pic14_getPIC()
3647         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
3648           (genAnd): added PIC code for one case, fixes #1597044
3649         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
3650           SFRs that are present in all banks (e.g., STATUS)
3651
3652 2006-11-20 Raphael Neider <rneider AT web.de>
3653
3654         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
3655           INCFSZ/INCFSZW and declared them as changing Z bit,
3656           (insertPCodeInstruction): correctly invert the above instructions,
3657           fixes #1599333,
3658           (DoBankSelect): don't panic on po_immediates
3659
3660 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
3661
3662         * as/link/aslink.h,
3663         * as/link/mcs51/lkihx.c (newArea),
3664         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
3665         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
3666
3667 2006-11-11 Raphael Neider <rneider AT web.de>
3668
3669         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
3670           bitfield symbols, fixes #1579535 (once more...).
3671
3672 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3673
3674         * support/regression/generate-cases.py,
3675         * support/regression/fwk/include/testfwk.h,
3676         * support/regression/fwk/lib/testfwk.c: used code pointers,
3677           (about 50kByte less code generated for mcs51)
3678
3679 2006-11-06 Borut Razem <borut.razem AT siol.net>
3680
3681         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3682           debugger/mcs51/configure: fixed failed check because the function
3683           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
3684           who submitted the patch for gpsim.
3685         * debugger/mcs51/configure.in: removed the result message
3686         * debugger/mcs51/Makefile.in: fixed the config.status warning
3687           "... seems to ignore the --datarootdir setting"
3688
3689 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
3690
3691         * device/include/mcs51/c8051f020.h,
3692         * device/include/mcs51/c8051f040.h,
3693         * device/include/mcs51/c8051f060.h,
3694         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
3695         * src/z80/gen.c (gencjneshort),
3696         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
3697
3698 2006-10-31 Borut Razem <borut.razem AT siol.net>
3699
3700         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3701           debugger/mcs51/configure: get readline version
3702
3703 2006-10-30 Borut Razem <borut.razem AT siol.net>
3704
3705         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
3706         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3707           debugger/mcs51/configure: locate readline even when cross compiling
3708         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
3709
3710 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3711
3712         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
3713           serial port.
3714
3715 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
3716
3717         * device/include/malloc.h,
3718         * device/lib/calloc.c,
3719         * device/lib/free.c,
3720         * device/lib/malloc.c,
3721         * device/lib/realloc.c: moved definition of struct into sources
3722         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
3723
3724 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
3725
3726         * as/asx8051.dsp: corrected output directories
3727         * as/link/hc08: new directory for hc08 linker
3728         * as/hc08/aslink.h,             as/link/aslink.h,
3729         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
3730         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
3731         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
3732         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
3733         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
3734         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
3735         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
3736         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
3737         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
3738         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
3739         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
3740         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
3741         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
3742         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
3743         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
3744         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
3745         * as/link/hc08/conf.mk,
3746         * configure,
3747         * configure.in,
3748         * Makefile.in,
3749         * sdcc.dsw: moved hc08 linker to as/link/hc08
3750         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
3751         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
3752         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
3753         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
3754         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
3755         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
3756         * as/link/mcs51/aslink.dsp,
3757         * as/link/mcs51/Makefile.in: factored out the common files
3758         * as/hc08/lkstore.c: deleted, use the one already in as/link/
3759         * as/clean.mk: extra cleaning common files
3760         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
3761         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
3762         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
3763
3764 2006-10-29 Raphael Neider <rneider AT web.de>
3765
3766         * src/pic/ralloc.c (newReg): create aliases for registers with
3767           multiple names to fix #1579535 and #1584001,
3768           (regWithIdx,dirregWithName): resolve aliases on lookup
3769         * src/pic/pcode.c (DoBankSelect): die with error message on failing
3770           bankselect
3771         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
3772           to prevent build errors on small devices
3773
3774 2006-10-28 Raphael Neider <rneider AT web.de>
3775
3776         * src/pic/gen.c (genFunction,genCall): drop "same code page"
3777           assumption within interrupt handlers, fixes #1584940
3778         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
3779           "emitted" to avoid emitting them again in udata
3780
3781 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3782
3783         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
3784         Removed.
3785
3786 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3787
3788         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
3789         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
3790         on/off CR to CRLF conversion.
3791
3792 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3793
3794         * doc/sdccman.lyx: updated IRQ section
3795
3796 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3797
3798         * device/lib/serial_io.c: removed
3799         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
3800         replacements for serial_io.c
3801
3802 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
3803
3804         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
3805
3806 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3807
3808         * device/lib/serial_io.c: Default putchar() and getchar() for
3809           mcs51 uses serial port.
3810
3811 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
3812
3813         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
3814
3815 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3816
3817         * support/regression/ports/mcs51/support.c: smaller
3818         _sdcc_external_startup()
3819         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
3820
3821 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
3822
3823         * device/lib/gbz80/crt0.s,
3824         * device/lib/gbz80/crt0_rle.s,
3825         * device/lib/gbz80/div.s,
3826         * device/lib/gbz80/fstubs.s,
3827         * device/lib/gbz80/heap.s,
3828         * device/lib/gbz80/mul.s,
3829         * device/lib/gbz80/putchar.s,
3830         * device/lib/gbz80/stubs.s,
3831         * device/lib/z80/crt0.s,
3832         * device/lib/z80/crt0_rle.s,
3833         * device/lib/z80/div.s,
3834         * device/lib/z80/fstubs.s,
3835         * device/lib/z80/heap.s,
3836         * device/lib/z80/mul.s,
3837         * device/lib/z80/putchar.s,
3838         * device/lib/z80/stubs.s: reverted, I was mistaken
3839
3840 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3841
3842         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
3843         * support/regression/ports/mcs51/support.c: removed race
3844         condition on TI in _putchar allowing to use serial port mode 0
3845
3846 2006-10-20 Borut Razem <borut.razem AT siol.net>
3847
3848         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
3849
3850 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
3851
3852         * device/lib/gbz80/crt0.s,
3853         * device/lib/gbz80/crt0_rle.s,
3854         * device/lib/gbz80/div.s,
3855         * device/lib/gbz80/fstubs.s,
3856         * device/lib/gbz80/heap.s,
3857         * device/lib/gbz80/mul.s,
3858         * device/lib/gbz80/putchar.s,
3859         * device/lib/gbz80/stubs.s,
3860         * device/lib/z80/crt0.s,
3861         * device/lib/z80/crt0_rle.s,
3862         * device/lib/z80/div.s,
3863         * device/lib/z80/fstubs.s,
3864         * device/lib/z80/heap.s,
3865         * device/lib/z80/mul.s,
3866         * device/lib/z80/putchar.s,
3867         * device/lib/z80/stubs.s: removed all leading underscores from area names
3868
3869 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
3870
3871         * support/regression/ports/mcs51/support.c: use highest baudrate so the
3872           regression tests are not waiting in the simulator for simulated
3873           transmission of debug output
3874
3875 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3876
3877         * device/lib/printf_large.c: slightly smaller
3878         * doc/sdccman.lyx: do not use spaces within html links
3879
3880 2006-10-16 Borut Razem <borut.razem AT siol.net>
3881
3882         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
3883           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
3884           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
3885           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
3886           debugger/mcs51/configure:
3887           [ 1185668 ] add gnu readline support to sdcdb - enabled
3888
3889 2006-10-16 Raphael Neider <rneider AT web.de>
3890
3891         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
3892           fixes #1577882, removes close to all banking optimizations
3893
3894 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
3895
3896         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
3897           variables in code memory
3898         * support/regression/tests/absolute.c: added test for this
3899
3900 2006-10-15 Raphael Neider <rneider AT web.de>
3901
3902         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
3903           devices,
3904           (BankSelect): emit BANKSEL before touching linker-placed regs,
3905           fixes #1570934
3906
3907 2006-10-10 Raphael Neider <rneider AT web.de>
3908
3909         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
3910         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
3911         * src/pic/main.c (_pic14_parseOptions),
3912         * src/pic/main.h: mostly reverted to previous state, now use results
3913             from SDCCmain.c's argument parsing
3914
3915 2006-10-10 Borut Razem <borut.razem AT siol.net>
3916
3917         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
3918           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
3919           [ 1185668 ] add gnu readline support to sdcdb -
3920           prepared for READLINE, not enabled yet,
3921           thanks to <tal.bav AT gmail.com>
3922
3923 2006-10-10 Raphael Neider <rneider AT web.de>
3924
3925         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
3926         * src/pic16/devices.inc,
3927         * device/include/pic16 (pic18f[24]620.h),
3928         * device/include/pic18fregs.h,
3929         * device/lib/pic16/pics.all,
3930         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
3931             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
3932             Gary Plumbridge and Anton Strobl
3933
3934 2006-10-10 Raphael Neider <rneider AT web.de>
3935
3936         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
3937           --stack-siz=NUM options to configure the argument passing stack
3938         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
3939         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
3940           (pic14_getSharebankSize): obey --stack-siz=NUM,
3941           (pic14_getSharebankAddress): obey --stack-loc=NUM
3942
3943 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3944
3945         * doc/sdccman.lyx: added to the manual
3946         * doc/figures/ddd_example.png: added (neither pdflatex nor
3947         most browsers seem to like the .eps file)
3948
3949 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
3950
3951         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
3952         to /tmp and /var/tmp acc. LSB
3953         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
3954         RESULT_TYPE_IFX
3955         * support/regression/tests/onebyte.c: added test
3956
3957 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3958
3959         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
3960
3961 2006-10-05 Borut Razem <borut.razem AT siol.net>
3962
3963         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
3964           thanks to dfulab:
3965           - sdcc.dsw: changed property eol-style to CRLF
3966           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
3967
3968 2006-10-04 Raphael Neider <rneider AT web.de>
3969
3970         * device/include/pic/{pic16f84.h,pic16f84a.h},
3971         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
3972           from patch #1522504, thanks to Robas Teodor
3973
3974 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
3975
3976         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
3977           fixes bug 1566015
3978
3979 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
3980
3981         * src/pic16/glue.c (pic16emitMaps),
3982         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
3983         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
3984         * device/lib/pic16/libc/string/memcpypgm2ram.c,
3985         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
3986           Philipp Krause
3987         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
3988         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
3989
3990 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3991
3992         * support/librarian/sdcclib.c: Added option -l.
3993         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
3994           usage totals.
3995         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
3996           using Windows command prompt.
3997
3998 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
3999
4000         * device/lib/libsdcc.lib: added module rand
4001         * src/ds390/ralloc.c (rematStr),
4002         * src/hc08/ralloc.c (rematStr),
4003         * src/mcs51/ralloc.c (rematStr),
4004         * src/z80/ralloc.c (rematStr): made output more consistent
4005         * src/mcs51/gen.c: cosmetic changes
4006
4007 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
4008
4009         * src/port.h: added mem.cabs_name to PORT
4010         * src/ds390/main.c,
4011         * src/hc08/main.c,
4012         * src/mcs51/main.c,
4013         * src/pic16/main.c,
4014         * src/pic/main.c,
4015         * src/xa51/main.c,
4016         * src/z80/main.c: added cabs_name initializers
4017         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
4018           constants
4019           (emitMaps): emit absolutes in code memory into cabs_name
4020         * src/SDCCmem.c,
4021         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
4022         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
4023         * support/regression/fwk/include/testfwk.h: added define for at
4024         * support/regression/tests/absolute.c: added, new
4025
4026 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
4027
4028         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
4029           optimizations, see also patch 887161 by Stas Sergeev
4030         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
4031           to be necessary anymore,
4032           (102, 103, 104, 127): renamed all occurances of bp to _bp
4033
4034 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
4035
4036         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
4037           thanks Weston T. Schmidt for patch 1555221
4038         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
4039         * src/SDCCicode.c(geniCodeMultiply): small optimization
4040
4041 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
4042
4043         * device/include/stdlib.h: added rand prototypes
4044         * device/lib/rand.c: new, added
4045         * device/lib/Makefile.in: added rand.c
4046         * src/z80/peeph.def,
4047         * src/z80/peeph-gbz80.def,
4048         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
4049
4050 2006-09-20 Raphael Neider <rneider AT web.de>
4051
4052         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
4053
4054 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
4055
4056         * as/link/aslink.h: cosmetic changes
4057         * as/link/mcs51/Makefile.in,
4058         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
4059
4060 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
4061
4062         * as/link/aslink.h,
4063         * as/link/mcs51/aslink.h,
4064         * as/link/z80/aslink.h: merged and moved to as/link/
4065         * as/link/lkstore.c,
4066         * as/link/mcs51/lkstore.c: moved to as/link/
4067         * as/link/clean.mk: remove *.o
4068         * as/link/mcs51/alloc.h: deleted
4069         * as/link/mcs51/lkarea.c: added lnksect prototype
4070         * as/link/mcs51/lkdata.c,
4071         * as/link/mcs51/lklex.c,
4072         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
4073         * as/link/mcs51/lkmem.c,
4074         * as/link/mcs51/lknoice.c: removed include strcmpi.h
4075         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
4076         * as/link/mcs51/aslink.dsp,
4077         * as/link/mcs51/Makefile.aslink,
4078         * as/link/mcs51/Makefile.bcc,
4079         * as/link/mcs51/Makefile.in: updated for moved files
4080         * as/link/z80/lkarea.c,
4081         * as/link/z80/lkhead.c,
4082         * as/link/z80/lklex.c,
4083         * as/link/z80/lklibr.c,
4084         * as/link/z80/lklist.c,
4085         * as/link/z80/lkmain.c,
4086         * as/link/z80/lkrloc.c,
4087         * as/link/z80/lksym.c: synced with mcs51
4088         * as/link/z80/lkdata.c,
4089         * as/link/z80/lkeval.c,
4090         * as/link/z80/lkihx.c,
4091         * as/link/z80/lks19.c: cosmetic changes
4092         * as/link/z80/Makefile.in,
4093         * as/link/z80/linkgbz80.dsp,
4094         * as/link/z80/linkz80.dsp: updated for moved files
4095
4096 2006-09-16 Borut Razem <borut.razem AT siol.net>
4097
4098         * debugger/mcs51/sdcdb.c: partially fixed
4099           [ 1203664 ] sdcdb fails to open files w. two "." periods
4100         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
4101           debugger/mcs51/symtab.h: fixed indenting
4102         * configure.in, configure: up to date with latest Maarten's changes
4103
4104 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
4105
4106         as/link/mcs51
4107         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
4108         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
4109         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
4110         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
4111         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
4112         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
4113         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
4114         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
4115         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
4116         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
4117         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
4118         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
4119         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
4120         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
4121         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
4122         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
4123         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
4124         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
4125         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
4126         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
4127         as/link/mcs51/alloc.h,
4128         as/link/mcs51/clean.mk,
4129         as/link/mcs51/conf.mk,
4130         as/link/mcs51/Makefile.bcc,
4131         as/link/mcs51/Makefile.in,
4132         as/link/mcs51/readme.390,
4133         as/link/mcs51/strcmpi.c,
4134         as/link/mcs51/strcmpi.h,
4135         as/mcs51/clean.mk,
4136         as/mcs51/Makefile.bcc,
4137         as/mcs51/Makefile.in,
4138         configure,
4139         Makefile.in,
4140         sdcc.dsw: moved mcs51 linker to as/link/mcs51
4141
4142 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
4143
4144         * as/link,
4145         * as/link/Makefile.in,
4146         * as/link/z80/linkgbz80.dsp,
4147         * as/link/z80/linkz80.dsp,
4148         * configure,
4149         * link,
4150         * link/clean.mk,
4151         * link/Makefile.in,
4152         * link/README,
4153         * link/z80,
4154         * link/z80/aslink.h,
4155         * link/z80/clean.mk,
4156         * link/z80/conf.mk,
4157         * link/z80/linkgbz80.dsp,
4158         * link/z80/linkz80.dsp,
4159         * link/z80/lkarea.c,
4160         * link/z80/lkdata.c,
4161         * link/z80/lkeval.c,
4162         * link/z80/lkgb.c,
4163         * link/z80/lkgg.c,
4164         * link/z80/lkhead.c,
4165         * link/z80/lkihx.c,
4166         * link/z80/lklex.c,
4167         * link/z80/lklibr.c,
4168         * link/z80/lklist.c,
4169         * link/z80/lkmain.c,
4170         * link/z80/lkrloc.c,
4171         * link/z80/lks19.c,
4172         * link/z80/lksym.c,
4173         * link/z80/Makefile.in,
4174         * Makefile.in,
4175         * sdcc.dsw: moved link/ to as/link/
4176
4177 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
4178
4179         * as/mcs51/i51mch.c (machine): fixed warning
4180
4181 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
4182
4183         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
4184
4185 2006-09-09 Borut Razem <borut.razem AT siol.net>
4186
4187         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
4188           sdcdb WIN32 native port
4189         * src/clean.mk: fixed
4190
4191 2006-09-08 Borut Razem <borut.razem AT siol.net>
4192
4193         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
4194
4195 2006-09-08 Raphael Neider <rneider AT web.de>
4196
4197         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
4198         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
4199             to gplink to disable processor mismatch warning and to allow
4200             the use of devices with only aliased (shared) memory banks,
4201           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
4202
4203 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4204
4205         * doc/sdccman.lyx: Some re-formating plus example on using
4206           #pragma preproc_asm +/-
4207
4208 2006-09-07 Borut Razem <borut.razem AT siol.net>
4209
4210         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
4211           section
4212
4213 2006-09-06 Borut Razem <borut.razem AT siol.net>
4214
4215         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
4216           line at sdcc.nsi:153
4217         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
4218
4219 2006-09-05 Borut Razem <borut.razem AT siol.net>
4220
4221         * configure.in, configure: support for winsock2
4222         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
4223           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
4224           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
4225           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
4226           debugger/mcs51/symtab.h: sdcdb WIN32 native port
4227
4228 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
4229
4230         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
4231           and OP_DEFS
4232         * support/regression/tests/bug1551947.c: new, added
4233         * src/SDCCsymt.h: strings are char* not byte*
4234
4235 2006-09-05 Raphael Neider <rneider AT web.de>
4236
4237         * device/lib/pic16/libdev/pic18f4550.c,
4238           device/include/pic16/pic18f4550.h: added PORTD/TRISD
4239             declarations/definitions from patch #1520949
4240
4241 2006-09-05 Raphael Neider <rneider AT web.de>
4242
4243         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
4244           byte-aligned bitfields, fixes #1539278
4245
4246 2006-09-05 Raphael Neider <rneider AT web.de>
4247
4248         * src/pic/gen.c (genReceive): skip unreferenced arguments,
4249           fixes #1544120
4250
4251 2006-09-04 Borut Razem <borut.razem AT siol.net>
4252
4253         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
4254         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
4255           -mno-cygwin is a part of the compiler name
4256         * support/scripts/sdcc_mingw32: don't disable ucsim
4257
4258 2006-09-03 Borut Razem <borut.razem AT siol.net>
4259
4260         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
4261         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
4262
4263 2006-09-03 Raphael Neider <rneider AT web.de>
4264
4265         * src/pic/ralloc.c,
4266         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
4267           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
4268           fixes #1550049
4269
4270 2006-09-01 Borut Razem <borut.razem AT siol.net>
4271
4272         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
4273           to make ppc-osx happy
4274
4275 2006-08-31 Borut Razem <borut.razem AT siol.net>
4276
4277         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
4278         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
4279         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
4280         * support/regression/ports/ds390/spec.mk,
4281           support/regression/ports/mcs51/spec.mk,
4282           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
4283           To run regression tests in mingw environment:
4284           make DEV_NULL=NUL CC=gcc
4285
4286 2006-08-30 Borut Razem <borut.razem AT siol.net>
4287
4288         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
4289           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
4290           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
4291           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
4292           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
4293           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
4294           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
4295           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
4296           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
4297           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
4298           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
4299           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
4300           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
4301           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
4302           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
4303           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
4304           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
4305           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
4306           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
4307           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
4308           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
4309           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
4310           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
4311           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
4312           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
4313           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
4314           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
4315           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
4316           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
4317           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
4318           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
4319           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
4320           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
4321           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
4322           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
4323           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
4324           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4325           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
4326           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
4327           ucsim WIN32 native port
4328
4329 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4330
4331         * doc/sdccman.lyx: added note on dynamic memory heap initialization
4332
4333 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4334
4335         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
4336         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
4337
4338 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
4339
4340         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
4341         * support/regression/tests/bug1546986.c: new, added
4342         * as/mcs51/.cvsignore,
4343         * debugger/mcs51/.cvsignore,
4344         * src/.cvsignore: deleted
4345
4346 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4347
4348         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
4349           definitions)
4350
4351 2006-08-20 Borut Razem <borut.razem AT siol.net>
4352
4353         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
4354           removed cl_listen_console::match(), cl_console::match(),
4355           restructured cl_commander::proc_input()
4356
4357 2006-08-16 Borut Razem <borut.razem AT siol.net>
4358
4359         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
4360           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
4361           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
4362
4363 2006-08-14 Borut Razem <borut.razem AT siol.net>
4364
4365         * support/regression/Makefile.in,
4366           support/regression/ports/pic14/gpsim.cmd,
4367           support/regression/ports/pic14/spec.mk,
4368           support/regression/ports/pic14/support.c:
4369           added pic14 regression test
4370
4371 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
4372
4373         * as/doc/asxhtm.html: documented changed ABS behaviour
4374         * as/doc/README: fixed some typos
4375
4376 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
4377
4378         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
4379           not defined on host
4380
4381 2006-08-12 Borut Razem <borut.razem AT siol.net>
4382
4383         * support/regression/fwk/include/testfwk.h,
4384           support/regression/fwk/lib/testfwk.c,
4385           support/regression/generate-cases.py,
4386           support/regression/Makefile.in:
4387           regression test framework does not depend on function pointers and
4388           variable arguments
4389
4390 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
4391
4392         * device/include/stddef.h: c temporary hack to fix bug 1518273
4393
4394 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4395
4396         * device/include/mcs51/cc2510fx.h: added
4397         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
4398           to projects.
4399
4400 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
4401
4402         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
4403         * as/z80/Makefile.in: added strcmpi.c
4404         * as/z80/z80adr.c: added upper case registers and lower case conditionals
4405         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
4406
4407 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
4408
4409         * device/lib/gbz80/asm_strings.s,
4410         * device/lib/gbz80/crt0_rle.s,
4411         * device/lib/gbz80/div.s,
4412         * device/lib/gbz80/mul.s,
4413         * device/lib/gbz80/shift.s,
4414         * device/lib/z80/asm_strings.s,
4415         * device/lib/z80/crt0_rle.s,
4416         * device/lib/z80/div.s,
4417         * device/lib/z80/mul.s,
4418         * device/lib/z80/shift.s: changed to all lower case menmonics except the
4419           flags which are all upper case
4420
4421 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
4422
4423         * as/z80/asm.h: made CASE_SENSITIVE 1
4424         * link/z80/aslink.h: made CASE_SENSITIVE 1
4425         * src/z80/gen.c (throughout): made all conditionals upper case
4426         * support/regression/tests/bug1503067.c: new
4427
4428 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
4429
4430         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
4431           (shiftIntoPair): added case 2 for PAIR_IY,
4432           (setupToPreserveCarry): replaced parameters with iCode and check if
4433            PAIR_DE is in use to fix bug 1399290,
4434           (genPlus, genMinus): updated call to setupToPreserveCarry
4435         * support/regression/tests/bug1399290.c: new
4436
4437 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
4438
4439         * device/lib/Makefile.in (Z80SOURCES): enabled float support
4440         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
4441         * src/ds390/gen.c (shiftRLong),
4442         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
4443         * src/mcs51/gen.c (sameReg): changed to sameByte,
4444           (xch_a_aopGet): new,
4445           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
4446            shiftRLong): fixed bug 1533966
4447         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
4448           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
4449         * support/regression/Makefile.in: disabled z80, enabled ucz80
4450         * support/regression/tests/float_trans.c: enabled test for z80 and host
4451         * support/regression/tests/shifts2.c: new, for testing bug 1533966
4452
4453 2006-08-01 Borut Razem <borut.razem AT siol.net>
4454
4455         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
4456           comparison is always false due to limited range of data type
4457           on PPC64 machine (openpower-linux1) where "char = unsigned char"
4458
4459 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
4460
4461         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
4462         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
4463         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
4464         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
4465
4466 2006-07-31 Borut Razem <borut.razem AT siol.net>
4467
4468         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
4469           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
4470           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
4471           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
4472           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
4473           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
4474           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
4475           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
4476           enable ucsim mingw compilation. Serial port is disabled,
4477           since it uses termios.h API, which is not available on native
4478           WIN32
4479
4480 2006-07-31 Borut Razem <borut.razem AT siol.net>
4481
4482         * Small Device C Compiler 2.6.0 released
4483         * support/scripts/sdcc.nsi: added FULL_DOC option
4484         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
4485
4486 2006-07-28 Borut Razem <borut.razem AT siol.net>
4487
4488         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
4489         * doc/INSTALL.txt: updated
4490
4491 2006-07-27 Borut Razem <borut.razem AT siol.net>
4492
4493         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
4494           device/lib/pic/libdev/Makefile.in: fixed bug
4495           [ 1438354 ] pic libsdcc: distclean doesn't work
4496         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
4497           device/lib/pic16/libio/Makefile.in: fixed bug
4498           [ 1438344 ] pic16 lib: clean doesn't work properly
4499         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
4500
4501 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
4502
4503         * device/lib/pic/libsdcc/fsdiv.c,
4504         * device/lib/pic/libsdcc/fsmul.c,
4505         * device/lib/pic16/libsdcc/float/fsdiv.c,
4506         * device/lib/pic16/libsdcc/float/fsmul.c,
4507         * device/lib/_fsdiv.c,
4508         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
4509         * support/regression/tests/bug1520966.c: added
4510         * doc/knownbugs.html: removed [ 1520966 ] from the list
4511
4512 2006-07-25 Borut Razem <borut.razem AT siol.net>
4513
4514         * configure.in, configure, sdccconf_in.h: fixed bug
4515           [ 1519095 ] regression test onebyte.c fails on ppc64 host
4516         * doc/knownbugs.html: removed [ 1519095 ] from the list
4517
4518 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
4519
4520         * doc/knownbugs.html: added, contains list of known bugs at release
4521         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
4522
4523 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
4524
4525         * device/include/mcs51/compiler.h: added SFRX for xdata based special
4526           function registers and corrected defaults with additional warning
4527         * device/lib/malloc.c: cosmetic changes
4528         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
4529         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
4530           (fillGaps): and used it
4531
4532 2006-07-20 Raphael Neider <rneider AT web.de>
4533
4534         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
4535           output unless SDCCPICDEBUG is set
4536         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
4537           output if SILENT is set
4538
4539 2006-07-11 Borut Razem <borut.razem AT siol.net>
4540
4541         * doc/README.txt: updated
4542
4543 2006-07-10 Borut Razem <borut.razem AT siol.net>
4544
4545         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
4546           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
4547           in WIN32 installation
4548         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
4549           release candidate 1
4550
4551 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
4552
4553         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
4554         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
4555
4556 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
4557
4558         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
4559
4560 2006-07-06 Borut Razem <borut.razem AT siol.net>
4561
4562         * support/regression/tests/bitfields.c:
4563           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
4564         * support/regression/tests/constantRange.c:
4565           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
4566
4567 2006-07-04 Borut Razem <borut.razem AT siol.net>
4568
4569         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
4570           src/port.mk,
4571           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
4572           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
4573           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
4574           reverted changes from 2006-07-03
4575         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
4576         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
4577           added CPPFLAGS, used by the host port
4578
4579 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
4580
4581         * support/regression/valdiag/tests/switch.c,
4582         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
4583         * support/regression/tests/libmullong.c: fixed for host
4584         * support/regression/ports/host/spec.mk: disable all warnings for host,
4585         SDCC runs with --less-pedantic too
4586
4587 2006-07-03 Borut Razem <borut.razem AT siol.net>
4588
4589         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
4590           defined CPPFLAGS
4591         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
4592         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
4593           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
4594           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
4595           include ../port.mk
4596         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
4597           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
4598           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
4599           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
4600
4601 2006-07-02 Raphael Neider <rneider AT web.de>
4602
4603         * src/pic16/devices.inc,
4604         * device/include/pic16/pic18fregs.h,
4605         * device/include/pic16/pic18f4550.h,
4606         * device/lib/pic16/pics.all,
4607         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
4608
4609 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
4610
4611         * as/hc08/lkaomf51.c (OutputName),
4612         * as/mcs51/lkaomf51.c (OutputName),
4613         * as/z80/asmain.c (asmbl),
4614         * src/ds390/main.c (asmLineNodeFromLineNode),
4615         * src/hc08/ralloc.c (hc08_assignRegisters),
4616         * src/mcs51/main.c (asmLineNodeFromLineNode),
4617         * src/xa51/ralloc.c (checkRegMask),
4618         * src/xa51/gen.c (emitcode),
4619         * src/z80/gen.c (_emit2),
4620         * src/SDCCast.c (searchLitOp),
4621         * src/SDCCglobl.h,
4622         * support/packihx/packihx.c,
4623         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
4624         * src/ds390/gen.c (aopPutUsesAcc),
4625         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
4626         * support/regression/tests/libmullong.c (mullong_wrapper),
4627         * src/SDCCsymt.c (powof2),
4628         * src/SDCCast.c,
4629         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
4630         * src/SDCCsymt.h: added TYPE_TARGET_*
4631         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
4632         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
4633         SDCCast because 1) header problems 2) this is the right place
4634         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
4635         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
4636         prototype
4637
4638 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
4639
4640         * src/SDCCicode.h: removed buggy semicolon in unused macro
4641         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
4642         search for previous definiton of auto symbols too,
4643         (findPrevUse): fixed logic of emitWarnings
4644
4645 2006-06-26 Raphael Neider <rneider AT web.de>
4646
4647         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
4648           PCLATH and PCLATU on interrupts, potentially fixes #1505141
4649
4650 2006-06-25 Raphael Neider <rneider AT web.de>
4651
4652         * device/lib/pic/libm: NEW, added math library functions
4653         * device/lib/pic/libsdcc: NEW; added float support functions
4654         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
4655         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
4656           NEW, added math related headers
4657         * device/include/asm/pic/features.h: NEW
4658         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
4659           (popGet): allow larger offsets for AOP_PCODE,
4660           (genDataPointerSet): handle literals explicitly, more debug output,
4661           (genAssign): fixed for float using aopLiteral ;-)
4662         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
4663           GOTO initialisation routine
4664         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
4665           flag on registers, fixes #1469043 (local variables do not work)
4666         * src/pic/main.c (_pic14_do_link),
4667         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
4668           available
4669
4670 2006-06-25 Borut Razem <borut.razem AT siol.net>
4671
4672         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
4673           characters printed (not including the trailing '\0' used to end
4674           output to strings). Problem detected in regression test bug-927659.c.
4675           NOTE: printf() family functions should return int instead
4676           unsigned int!
4677         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
4678           specifier are printed as themselves
4679         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
4680           support flags, width and precision specifiers
4681
4682 2006-06-24 Borut Razem <borut.razem AT siol.net>
4683
4684         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
4685           to the list of sdcc tagrets not supporting bit type
4686         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
4687           testfor pic16 due to bug:
4688           [ 1511794 ] pic16: regression test bug-895992.c fails
4689
4690 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
4691
4692         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
4693         * src/SDCCglue.c (initPointer), fixed bug 1496419
4694         * support/regression/tests/bug1496419.c: new, added
4695
4696 2006-06-22 Borut Razem <borut.razem AT siol.net>
4697
4698         * support/regression/ports/pic16/support.c: use gpsim usart module from
4699           libgpsim_modules library
4700
4701 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4702
4703         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
4704         IP0H to IPH0.
4705
4706 2006-06-19 Raphael Neider <rneider AT web.de>
4707
4708         * src/pic/glue.h,src/pic16/glue.h: added prototypes
4709         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
4710           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
4711           (pic14printExterns,pic14printPublics,pic16printPublics,
4712           pic16_printExterns): use new functions to emit symbols
4713           (picglue,pic16glue): emit publics before emitting externs
4714         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
4715           locally defined functions to avoid bug #1443651
4716         * support/regression/tests/bug-716242.c: removed pic16 workaround
4717         * support/regression/ports/pic16/spec.mk: ignore errors during build
4718
4719 2006-06-19 Raphael Neider <rneider AT web.de>
4720
4721         * src/pic/glue.h: added pic14aopLiteral prototype
4722         * src/pic/glue.c (pic14aopLiteral): return unsigned int
4723         * src/pic/gen.c: removed stdint.h dependency
4724           (aopGet): use Safe_strdup()
4725           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
4726           (genDataPointerSet): use pic14aopLiteral()
4727         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
4728           for pic16; thanks to Bernhard and Maarten
4729
4730 2006-06-18 Borut Razem <borut.razem AT siol.net>
4731
4732         * support/regression/tests/structflexarray.c: flexible array members
4733           not supported by gcc < 3
4734         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
4735           GUI tool by default
4736         * src/pic/gen.c: don't include [p]strdin.h on solaris
4737         * support/Util/pstdint.h: addad svn attributes
4738         * support/regression/tests/constantRange.c,
4739           support/regression/tests/rotate.c: include inttypes.h instead
4740           stdint.h on solaris, addad svn attributes
4741
4742 2006-06-18 Raphael Neider <rneider AT web.de>
4743
4744         * src/SDCCsymt.c (initCSupport): change return type of divschar to
4745           int for PIC16
4746         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
4747           (pic16_genMinusBits): simplified sign-extension
4748           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
4749             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
4750             adjusted to correctly handle mixed-signed operands, disabled
4751             now unused multiplciation routines
4752         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
4753           (assignResultValue): added argument denoting the size of the result
4754             as returned by the function (fixes upcasts in assigning from
4755             function calls: char foo(); int i = foo();)
4756           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
4757             function result to assignResultValue
4758           (genMult): disabled inlined multiplication code
4759           (genDiv): augmented to also handle the modulus operator, fixed to
4760             handle mixed-signed operands correctly
4761           (genMod): simply call genDiv, disabled unused code
4762           (genAssign): fixed missing (sign-)extension on result
4763         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
4764             valid char operands, allow signed operands for native code, added
4765             division and modulo operator handling
4766         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
4767
4768         As a consequence, onebyte.c (if split into two files) and muldiv.c
4769         pass regression tests.
4770
4771 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4772
4773         * doc/Makefile.in: two runs of makeindex seem needed to get
4774         correct page references in the index of sdccman.pdf
4775         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
4776
4777 2006-06-17 Borut Razem <borut.razem AT siol.net>
4778
4779         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
4780
4781 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4782
4783         * doc/sdccman.lyx: updated, added (porting source code, debugging),
4784         mentioned ec2drv and paulmon
4785
4786 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
4787
4788         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
4789           consecutive abs areas
4790           (find_empty_space, allocate_space): added map to handle codemap or
4791            xdatamap,
4792           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
4793            absolute idata and xdata
4794         * as/mcs51/lkmem.c (summary2): updated legend
4795
4796 2006-06-16 Raphael Neider <rneider AT web.de>
4797
4798         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
4799
4800 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
4801
4802         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
4803           1208515
4804         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
4805
4806 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
4807
4808         * src/port.h (struct PORT): added field gp_tags, to hold the tag
4809         value of generic pointers,
4810         * src/avr/main.c,
4811           src/ds390/main.c,
4812           src/hc08/main.c,
4813           src/izt/i186.c,
4814           src/izt/tlcs900h.c,
4815           src/mcs51/main.c,
4816           src/pic/main.c,
4817           src/pic16/main.c,
4818           src/xa51/main.c,
4819           src/z80/main.c: PORT structure, added elements for gp_tags field,
4820         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
4821         fields in the PORT structure of each port,
4822         * src/SDCCast.c (decorateType): allow processing of generic pointers
4823         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
4824         S_FIXED symbols
4825
4826 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
4827
4828         * link/z80/lkgb.c,
4829         * link/z80/lkgg.c,
4830         * src/pic16/gen.c,
4831         * src/pic16/main.c,
4832         * src/pic16/pcode.c,
4833         * src/pic/main.c,
4834         * src/pic/pcoderegs.c,
4835         * src/SDCCicode.c,
4836         * src/SDCCmain.c,
4837         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
4838           bug 1504689 on minGW
4839
4840 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4841
4842         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
4843
4844 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
4845
4846         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
4847
4848 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
4849
4850         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
4851           for optimization
4852
4853 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
4854
4855         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
4856         to a char variable. Fixed bug #1504211
4857         * device/include/pic16/adc.h,
4858         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
4859         and fixed bug #1364390
4860
4861 2006-06-10 Borut Razem <borut.razem AT siol.net>
4862
4863         * CVSROOT: removed the CVS left-over
4864
4865 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
4866
4867         * as/hc08/asmain.c (asexit),
4868         * as/hc08/lkmain.c (lkexit),
4869         * as/mcs51/asmain.c (asexit),
4870         * as/mcs51/lkmain.c (lkexit),
4871         * src/SDCCglue.c (DEFSETFUNC),
4872         * src/SDCCmain.c (linkEdit, assemble),
4873         * support/librarian/sdcclib.c (AddRel),
4874           replaced unlink() by standard C remove()
4875         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
4876         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
4877           gatherImplicitVariables): new, added to fix bug 608752,
4878           (createFunction): added gatherImplicitVariables()
4879         * src/SDCCast.h: added createRMW prototype
4880         * src/SDCCsymt.h (struct symbol): added infertype
4881         * support/regression/tests/bug608752.c: new, added
4882
4883 2006-06-10 Raphael Neider <rneider AT web.de>
4884
4885         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
4886           multibyte dummy reads (fixes #1503234)
4887
4888 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
4889
4890         * device/include/mcs51/compiler.h: new, added header file to enable
4891           creating common sfr definition header files for different compilers
4892
4893 2006-06-05 Raphael Neider <rneider AT web.de>
4894
4895         * src/pic16/{pcode.h,genarith.c}:
4896           introduced pCodeOp combining any two pCodeOps (previously only
4897           two register operands could be combined), removed pcop2 from
4898           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
4899         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
4900         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
4901           rewritten to use new PO_TWO_OPS
4902         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
4903         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
4904           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
4905           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
4906           (pic16_get_op): embraced return arg to allow #define return(x),
4907             added new case for combined opcodes
4908           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
4909           (pic16_pCode2str,pic16_getRegFrompCodeOp,
4910            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
4911
4912 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
4913
4914         * src/SDCCval.c (checkConstantRange): added
4915         * src/SDCCval.h: added checkConstantRange
4916         * support/Util/SDCCerr.c,
4917         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
4918         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
4919         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
4920         * src/SDCCast.c (decorateType): added checkConstantRange,
4921         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
4922         can be emitted with the correct always true/false warning,
4923         added optimization for double '!';
4924         result of decorateType() must be assigned back to the tree, because
4925         decorateType() can change the tree
4926         * src/SDCCicode.c (geniCodeLogic),
4927         (geniCodeAssign): replaced new checkConstantRange, added warnings,
4928         (checkConstantRange): removed, it was only a fragment which never
4929         emitted a warning
4930         * src/SDCCsymt.c (computeType): fixed promotion for
4931         "-1 < (unsigned bit) b"
4932         * src/pic/ralloc.c (packRegsForAssign),
4933         * src/pic16/ralloc.c (packRegsForAssign),
4934         * src/hc08/ralloc.c (packRegsForAssign),
4935         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
4936         from mcs51
4937         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
4938         * support/regression/tests/constantRange.c: added
4939         * support/valdiag/tests/constantRange.c: added
4940         * support/valdiag/valdiag.py: added -DPORT_HOST=1
4941
4942 2006-06-02 Borut Razem <borut.razem AT siol.net>
4943
4944         * support/regression/ports/pic16/support.c: increase stack size
4945           to 255 bytes
4946         * support/regression/Makefile.in: sort tests by name so that the
4947           resutlts can be compared on different machines / platforms
4948
4949 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
4950
4951         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
4952         * src/ds390/gen.c (emitLabel): new, added,
4953           (genDjnz): fixed stack overflow bug,
4954           (throughout): cosmetic changes to sync with mcs51/gen.c,
4955           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
4956         * src/mcs51/gen.c (genEndFunction): small optimization,
4957           (throughout): cosmetic changes to sync with ds390/gen.c
4958
4959 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
4960
4961         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
4962           (_print_format): fixed printing pointers
4963         * src/mcs51/gen.c (emitLabel, movb): new, added,
4964           (genAssign): small optimization,
4965           (genDjnz): fixed stack overflow bug,
4966           (throughout): replaced sprintf with SNPRINTF,
4967           replaced mcs51_regWithIdx with REG_WITH_INDEX,
4968           replaced emitcode("mov", "b,...") with MOVB(...),
4969           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
4970           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
4971         * src/mcs51/peeph.def: added rules 140 and 264
4972         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
4973           so they may get optimized into registers
4974
4975 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
4976
4977         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
4978           immediately when encountered,
4979           (printUsage): always use stderr even on windows
4980
4981 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
4982
4983         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
4984         (processParms): fixed bug #1247551
4985         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
4986         parseCmdLine, main): print '--version' to stdout,
4987         print 'help' to stdout if --help is given,
4988         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
4989         arguments are given; fixed --help
4990
4991 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
4992
4993         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
4994         * support/regression/tests/bug-1493710.c: added
4995
4996 2006-05-27 Borut Razem <borut.razem AT siol.net>
4997
4998         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
4999           static instead auto
5000         * support/regression/ports/pic16/support.c: increase stack size
5001           from default 64 bytes to 128 bytes
5002         * support/regression/tests/staticinit.c,
5003           support/regression/tests/float.c: regression tests fully enabled
5004           for pic16 port by putting the initialized data arrays into the code
5005           section
5006         * support/regression/ports/pic16/spec.mk: don't link default libraries.
5007           This was changed by mistake in the previous version.
5008
5009 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
5010
5011         * src/pic16/gen.c (genFunction, genEndFunction): some
5012         beautifications, fixed bug with falsely restoring FSR2 in large
5013         stack model, thanks to Beau E. Cox for reporting the bug
5014
5015 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
5016
5017         * debugger/mcs51/break.c,
5018         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
5019           use %p to print pointers, made address variables unsigned
5020         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
5021         * debugger/mcs51/symtab.c (parseSymbol): must return something
5022         * src/mcs51/gen.c (aopForSym): small optimization,
5023            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
5024           (freeAsmop): added missing break,
5025           (aopPut): removed parameter bvolatile, determine it inside the function,
5026           (saveRegisters, unsaveRegisters): small optimization,
5027           (genIpush): removed pointless check,
5028           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
5029           replaced sprintf with SNPRINTF,
5030           replaced strcpy with strncpyz,
5031           updated aopPut calls,
5032           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
5033         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
5034
5035 2006-05-24 Borut Razem <borut.razem AT siol.net>
5036
5037         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
5038           modification of test for the pic16 port, put the array to the code
5039           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
5040
5041 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5042
5043         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
5044         * support/Util/pstdint.h: added
5045
5046 2006-05-22 Borut Razem <borut.razem AT siol.net>
5047
5048         * src/regression/Makefile: removed bool2.c test, added -q linker option
5049         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
5050           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
5051           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
5052           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
5053           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
5054           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
5055           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
5056           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
5057           define SUPPORT_BIT_TYPES 0, removed unused bit variables
5058
5059 2006-05-22 Raphael Neider <rneider AT web.de>
5060
5061         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
5062           bug #1492360 (problematic due to generic pointers, see code)
5063
5064 2006-05-22 Borut Razem <borut.razem AT siol.net>
5065
5066         * support/regression/ports/pic16/specs.mk: removed stack size linker
5067           directive
5068         * support/regression/tests/array.c,
5069           support/regression/tests/bitopcse.c,
5070           support/regression/tests/bug-908454.c,
5071           support/regression/tests/malloc.c: modified for pic16 regression test
5072         * support/regression/tests/bitfields.c:
5073           pic16 - excluded bitfileds of size > 8
5074         * support/regression/tests/bp.c: pic16 - reduced data size
5075         * support/regression/tests/bug-221100.c: pic16 - reduced data size
5076         * support/regression/tests/bug-460010.c:
5077           pic16 - used the absolute address the fits in memory
5078         * support/regression/tests/bug-716242.c:
5079           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
5080         * support/regression/tests/float.c:
5081           pic16 - excluded - data size too big
5082         * support/regression/tests/onebyte.c:
5083           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
5084         * support/regression/tests/shifts.c:
5085           pic16 - function names probably have to differ in first X characters
5086           (gpasm limitation?)
5087         * support/regression/tests/staticinit.c:
5088           pic16 - excluded some tests due error: no target memory available for
5089           section ".idata"
5090
5091 2006-05-22 Borut Razem <borut.razem AT siol.net>
5092
5093         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
5094           second try. Thanks Stas Sergeev once more.
5095
5096 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
5097
5098         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
5099           (genLeftShift, genRightShift): fixed bug 1491627
5100         * src/hc08/peeph.def (rules 7, 8.x): added
5101         * support/regression/tests/shifts.c (ShiftLeftByParam,
5102           ShiftRightByParam, testShiftByParam): added to test variable shifting
5103
5104 2006-05-20 Raphael Neider <rneider AT web.de>
5105
5106         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
5107         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
5108           (allocReg): add only new registers to dynAllocRegs,
5109           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
5110             #1489055, #1445850, and probably #1483693
5111
5112 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
5113
5114         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
5115         bug in for-loop that didn't emit the last of CONFIG and ID registers
5116
5117 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
5118
5119         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
5120           with offset
5121         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
5122           1489016, 1434401 and 1490124
5123         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
5124           1489016, 1434401 and 1490124
5125
5126 2006-05-17 Borut Razem <borut.razem AT siol.net>
5127
5128         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
5129           thanks Stas Sergeev
5130
5131 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5132
5133         * device/include/mcs51/P89c51RD2.h,
5134         * device/include/mcs51/P89LPC901.h,
5135         * device/include/mcs51/P89LPC922.h,
5136         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
5137
5138 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
5139
5140         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
5141         to fix missing stack pragma in compiled binary object file,
5142
5143 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
5144
5145         * support/packihx/configure.in,
5146         * support/packihx/configure: removed warning, autoconf >= 2.5x can
5147         determine sizeof basic types even while cross compiling
5148
5149 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
5150
5151         * src/avr/gen.c (aopop),
5152         * src/ds390/gen.c (aopOp),
5153         * src/hc08/gen.c (aopOp),
5154         * src/mcs51/gen.c (aopop),
5155         * src/pic16/gen.c (pic16_aopOp),
5156         * src/pic/gen.c (aopOp),
5157         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
5158         if size of operand is smaller than spill location
5159
5160 2006-05-12 Borut Razem <borut.razem AT siol.net>
5161
5162         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
5163           have to have CR/LF line endings even if they are checked out on *nix
5164           or on WIN32 in cygwin binmode
5165
5166 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
5167
5168         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
5169         * device/include/ds80c390.h: added sfr16 definitions
5170         * src/ds390/gen.c,
5171         * src/ds390/gen.h,
5172         * src/ds390/main.c,
5173         * src/ds390/ralloc.c,
5174         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
5175           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
5176           bit returning functions
5177         * support/regression/tests/sfr16.c: enabled test on ds390
5178
5179 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5180
5181         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
5182         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
5183
5184 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
5185
5186         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
5187         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
5188           (cl_address_space constructor): removed expensive initialization,
5189           (cl_address_space::get_cell): extended for late initialization,
5190           (cl_address_space::*): use late initialization,
5191           (cl_address_decoder::activate): removed expensive initialization,
5192           This reduced regression test running time by 25%
5193
5194 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
5195
5196         * packihx/,
5197         * configure.in,
5198         * configure,
5199         * sdcc.dsw,
5200         * Makefile.bcc,
5201         * Makefile.in,
5202         * support/packihx/Makefile.in,
5203         * support/packihx/clean.mk,
5204         * support/packihx/Makefile.bcc,
5205         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
5206
5207 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5208
5209         * src/SDCCval.c (valNot): fix for regression test failure
5210           of not.c on big endian hosts
5211
5212 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
5213
5214         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
5215
5216 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5217
5218         * device/lib/mcs51/Makefile.in: changed string comparison operator
5219           to = for POSIX compliance; == is bash extension
5220
5221 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
5222
5223         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
5224           kosmonaut_pirx
5225
5226 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
5227
5228         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
5229         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
5230         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
5231         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
5232         bug report #1478657,
5233
5234 2006-05-05 Borut Razem <borut.razem AT siol.net>
5235
5236         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
5237           making the html
5238
5239 2006-05-02 Borut Razem <borut.razem AT siol.net>
5240
5241         * doc/Makefile.in: removed *.ind dependency since there is no rule to
5242           create *.ind, which made make to fail if invoked with -j 2
5243
5244 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
5245
5246         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
5247           Hubert Sack for patch 1479782
5248
5249 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
5250
5251         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
5252
5253 2006-05-01 Raphael Neider <rneider AT web.de>
5254
5255         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
5256           (create_pic): store only prefix-free device name,
5257           (init_pic): check for device names with "16" prefix,
5258           (list_valid_pics),
5259         * src/pic/device.h (struct PIC_device),
5260         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
5261             stored device name,
5262         * device/include/pic/pic12f{635,675,629,683}.h,
5263         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
5264         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
5265         * device/include/pic/pic16f505.h,
5266         * device/lib/pic/libdev/pic16f505.c: removed
5267         * device/include/pic/pic14devices.txt: added support for pic12f
5268             devices, removed unsupported non 16-bit devices
5269             [above changes provided by patch from Zik Saleeba]
5270         * src/pic/*, src/pic16/*, device/include/pic16/*,
5271           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
5272
5273 2006-05-01 Borut Razem <borut.razem AT siol.net>
5274
5275         * configure.in, configure, doc/Makefile.in:
5276           sync with nightly build makefile - latex, dvipdf and dvips
5277           not needed any more
5278
5279 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
5280
5281         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
5282         in the library source
5283
5284 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
5285
5286         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
5287
5288 2006-04-28 Raphael Neider <rneider AT web.de>
5289
5290         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
5291         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
5292           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
5293         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
5294
5295 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
5296
5297         * device/lib/pic/libdev/Makefile.in,
5298         * device/lib/hc08/Makefile.in,
5299         * device/lib/gbz80/Makefile.in,
5300         * device/lib/z80/Makefile.in,
5301         * device/lib/ds390/Makefile.in,
5302         * device/lib/ds400/Makefile.in: added srcdir to include search path,
5303         thanks to Borut for the bug report
5304         * configure.in,
5305         * configure: always create doc/Makefile independent from --enable-doc
5306         * Makefile.in: always install from directory doc independent from
5307         --enable-doc
5308         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
5309         removed
5310         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
5311         * doc/Makefile.in: install *.txt if present
5312         * device/include/Makefile.in (install): added installation of pic/*.inc
5313         and pic/*.txt files again, they were erroneously removed
5314
5315 2006-04-28 Raphael Neider <rneider AT web.de>
5316
5317         * src/pic/{gen.c,main.h,pcode.c},
5318         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
5319             concerning signedness with casts
5320
5321 2006-04-28 Raphael Neider <rneider AT web.de>
5322
5323         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
5324             definition of an interrupt handler,
5325         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
5326             interrupt handler stuff from picglue() to separate routine,
5327           (picglue): enabled definition of intr handlers in files w/o main()
5328
5329 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5330
5331         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
5332           compilation with MSVC 2005 Express Edition (VC8)
5333
5334 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
5335
5336         * device/lib/Makefile: fixed build of gbz80 lib
5337
5338 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5339
5340         * support/regression/tests/bug-460010.c,
5341         * support/regression/tests/bug-524691.c,
5342         * support/regression/tests/bug-716242.c: removed conditional defines
5343           that are already in testfwk.h
5344
5345 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
5346
5347         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
5348           (AccAXRsh1): added, shift right by 1,
5349           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
5350            AccAXLrl1
5351         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
5352
5353 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
5354
5355         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
5356         remove cast to same type
5357         * src/SDCCast.c (decorateType): fix for RFE 1475742,
5358         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
5359         * as/z80/Makefile,
5360         * link/z80/Makefile: removed, they have moved to
5361         Makefile.in files
5362         * configure,
5363         * configure.in: replaced duplicate message about ucsim by missing sdcpp
5364         * install-sh: fix bug #1204398 by setting umask 0022
5365         * device/lib/Makefile: separate build of z80 and gbz80 lib
5366
5367 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
5368
5369         Enabled VPATH feature: changed nearly all Makefiles (149 files).
5370         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
5371
5372         One basic decision: e.g. src/clean.mk includes further files. In order
5373         to make this work there are two solutions:
5374         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
5375           run configure on them. This way they can use
5376           'include $(srcdir)/port-clean.mk'
5377         - always include clean.mk by the Makefile at the same level. To avoid
5378           that `make clean` tries to include and build Makefile.dep the
5379           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
5380           implemented, because now even `make uninstall` doesn't create
5381           Makefile.in. clean.mk could be eliminated by pasting it in
5382           Makefile.in.
5383
5384         * debugger/mcs51/Makefile.in: build own objects from library sources
5385         (SLIB, SDCC) in current directory
5386
5387         * configure, configure.in: renamed --disable-device-lib-build in
5388         --disable-device-lib; added --enable-doc, the required tools are
5389         searched by configure; added result message; the toolchain for the
5390         belonging ports are now only built, if the port is enabled.
5391
5392         * support/regression/*: all output is written in directory gen, because
5393         the fwk and ports directories don't livet in the build tree using vpath
5394
5395         * doc/sdccman.lyx: renamed --disable-device-lib-build to
5396         --disable-device-lib, added --enable-doc, added section VPATH
5397
5398         * sim/ucsim/configure.in,
5399         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
5400         z80 are enabled by default
5401
5402 2006-04-24 Raphael Neider <rneider AT web.de>
5403
5404         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
5405             to config word, "pic14_"-prefixed some extern functions
5406           (pic14_emitConfigWord): emit __config directive(s) if assignment to
5407             config word has been found
5408         * src/pic/device.h: added prototypes
5409         * src/pic/pcode.c: added "pic14_"-prefix where needed
5410         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
5411             fixup
5412         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
5413             words,
5414           (pic14emitRegularMap): ignore config words,
5415           (pic14createInterruptVect): moved generating __config directives away
5416           (picglue): have __config directives emitted
5417
5418 2006-04-24 Borut Razem <borut.razem AT siol.net>
5419
5420         * doc/Makefile: sync with nightly build makefile
5421
5422 2006-04-24 Raphael Neider <rneider AT web.de>
5423
5424         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
5425             registers that have not been assigned proper liveranges,
5426             fixes #1469504 and #1474602,
5427           (pCodeRegOptimizeRegUsage): fixed typo in comment
5428
5429 2006-04-24 Borut Razem <borut.razem AT siol.net>
5430
5431         * device/examples/main8051.c: deleted - it was removed from CVS
5432           24.mar.2000 and after that modified 18.feb.2001, so it reappered
5433           after the transition to Subversion
5434         * src/SDCCalloc.h: deleted - it was removed  from CVS
5435           3.feb.2001 and after that modified 18.feb.2001, so it reappered
5436           after the transition to Subversion
5437         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
5438           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
5439           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
5440           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
5441
5442 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
5443
5444         * as/asx8051.dsp: added mcs51/strcmpi.h
5445         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
5446         * as/hc08/aslink.h: updated lnksect prototype
5447         * as/hc08/asm.h,
5448         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
5449         * as/hc08/asmain.c,
5450         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
5451           (newdot): handle A_ABS
5452         * as/hc08/asout.c,
5453         * as/mcs51/asout.c (outarea): output address
5454         * as/hc08/lkaomf51.c,
5455         * as/mcs51/lkaomf51.c: disabled unused array UsageType
5456         * as/hc08/m08pst.c,
5457         * as/mcs51/i51pst.c,
5458         * as/z80/z80pst.c: "ABS" is not A_OVR
5459         * as/hc08/lkarea.c (newarea): read a_addr,
5460           (lnkarea): added codemap array, sort absolute areas to the front,
5461            combine all GSINITx/GSFINAL,
5462           (find_empty_space, allocate_space): new functions,
5463           (lnksect): return next address, handle absolute sections
5464         * as/mcs51/lkarea.c (newarea): read a_addr,
5465           lnksect2 prototype changed,
5466           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
5467           (find_empty_space, allocate_space): new, factored out of lnksect2,
5468           (lnksect2): return next address, handle absolute sections
5469         * as/hc08/lkhead.c,
5470         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
5471         * as/hc08/lklibr.c (addfile, fndsym),
5472         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
5473           index out of range and detect both '\' and '/'
5474         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
5475         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
5476           regression tests (ds390 cannot return bool yet)
5477         * doc/sdccman.lyx: changed version number, document changed --no-peep,
5478           document critical interrupts on z80, document changed SDCC define
5479         * src/asm.c (_asxxxx_mapping): fixed .org directive,
5480           (_a390_mapping): added .org directive
5481         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
5482           (genMultOneByte): fixed warnings
5483         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
5484           ones
5485         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
5486         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
5487           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
5488         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
5489         * src/pic16/main.c: removed newReg prototype
5490         * src/pic16/pcode.c,
5491         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
5492           warnings
5493         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
5494           ones
5495         * src/pic16/ralloc.c
5496         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
5497           to fix warnings
5498         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
5499           from short to PIC_OPTYPE
5500         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
5501         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
5502           optype from short to PIC_OPTYPE
5503         * src/port.h: made int_size unsigned to fix warnings
5504         * src/SDCC.y: fixed warning on MSVC
5505         * src/SDCCicode.c (getArraySizePtr): return unsigned int
5506         * src/SDCCopt.c (convertToFcall): fixed warnings
5507         * src/SDCCsymt.h: removed double prototype for genSymName
5508         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
5509           offset int to fix warnings
5510
5511 2006-04-22 Borut Razem <borut.razem AT siol.net>
5512
5513         * doc/sdccman.lyx, */Makefile, */Makefile.in:
5514           references to CVS replaced with Subversion
5515
5516 2006-04-21 Borut Razem <borut.razem AT siol.net>
5517
5518         * doc/sdccman.lyx, */Makefile, */Makefile.in:
5519           references to CVS replaced with Subversion
5520
5521 2006-04-19 Borut Razem <borut.razem AT siol.net>
5522
5523         * src/version.awk: adapted for svn
5524         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
5525           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
5526           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
5527           /binutils-avr/etc/*.vi, *.jin: removed all properties
5528           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
5529
5530 2006-04-19 Borut Razem <borut.razem AT siol.net>
5531
5532         * CVS to Subversion migration completed
5533
5534 2006-04-18 Borut Razem <borut.razem AT siol.net>
5535
5536         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
5537           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
5538
5539 2006-04-17 Borut Razem <borut.razem AT siol.net>
5540
5541         * device/include/Makefile.in: added pic/*.inc to the installation
5542
5543 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
5544
5545         * support/regression/collate-results.py: fixed output in case of
5546         a valdiag error
5547         * support/regression/generate-cases.py: fixed splitting of pathnames
5548         with dots
5549         * as/hc08/lklibr.c (addfile),
5550         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
5551
5552 2006-04-11 Raphael Neider <rneider AT web.de>
5553
5554         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
5555         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
5556         * src/pic16/pcode.c (assignValnums): fixed #1460578
5557
5558 2006-04-11 Raphael Neider <rneider AT web.de>
5559
5560         * device/lib/pic/libdev/*.c,
5561         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
5562           fixes #1468739, enables compilation in --std-c99 mode
5563         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
5564
5565 2006-04-11 Raphael Neider <rneider AT web.de>
5566
5567         * src/pic/device.c (find_device): removed debug output
5568           (list_valid_pics): enabled verbose listing of supported devices
5569         * device/include/stdbool.h: define bool as char for pic14/16 as well
5570
5571 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5572
5573         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
5574
5575 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5576
5577         * .version: bumped version to 2.5.6
5578         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
5579
5580 2006-04-06 Raphael Neider <rneider AT web.de>
5581
5582         * .version: bumped version to 2.5.6 (pic14 ABI changed)
5583         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
5584         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
5585           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
5586             pic14_constructAbsMap
5587           (pic14printPublics): declare absolute global symbols as global
5588           (pic14createInterruptVect),
5589         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
5590           (newReg): assume new registers unused, use correct name in
5591             hashtable (reg->name instead of name), more debugLog output
5592         * src/pic/device.h (PIC_device): added fields for verbose output
5593         * src/pic/device.c: moved device definition to pic14devices.txt,
5594             added routines for runtime parsing of pic14devices.txt,
5595             added support for second config word
5596         * src/pic/main.c (_process_pragma): removed #pragma maxram,
5597           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
5598           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
5599           (_pic14_parseOptions): moved pCodeInitRegisters here
5600           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
5601         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
5602           (pCodeInitRegisters): rewrapped comments, perpared new approach to
5603             handling the pseudo stack
5604         * device/lib/Makefile.in: ignore failures in objects-pic16,
5605         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
5606         * device/lib/pic/NEWS: document new dependency on picXXX.lib
5607         * device/lib/pic/Makefile.subdir,
5608         * device/lib/pic16/Makefile.subdir: improved clean rules
5609         * device/lib/pic/libdev/: NEW, pic14 device libraries
5610         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
5611         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
5612         * device/include/Makefile.in: create subdir and install pic14 headers
5613         * device/include/pic/p16f_common.inc: removed unused declarations
5614         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
5615             PICs from inc2h.pl v1.6,
5616             replaced BIT_AT macros with struct declarations
5617         * device/include/pic/pic14devices.txt: definition of supported devices,
5618             all above improvements contributed by Zik Saleeba, thanks
5619         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
5620         * support/scripts/sdcc.nsi: also install pic14 device libraries and
5621             headers
5622
5623 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
5624
5625         * device/include/mcs51/c8051f410.h: added interrupt numbers,
5626         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
5627           thanks to Charles Olds
5628
5629 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5630
5631         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
5632
5633 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
5634
5635         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
5636         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
5637         * support/regression/bug1464657.c: added, new test
5638
5639 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5640
5641         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
5642           version number
5643
5644 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5645
5646         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
5647           --no-peep and --peep-file <file> are used don't use default rules but
5648           do use the <file>
5649
5650 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5651
5652         * src/mcs51/gen.c (genCall): fixed bug 1457608
5653
5654 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5655
5656         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
5657         changes seem to cause (trigger?) problems with the build system.
5658
5659 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
5660
5661         * src/SDCCpeeph.c (operandsLiteral): new, added,
5662           (callFuncByName): inserted operandsLiteral
5663         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
5664
5665 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5666
5667         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
5668         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
5669
5670 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
5671
5672         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
5673           implemented patch 1120823 Thanks to Willy De la Court (normal
5674           interrupts need an interrupt number now if they are made critical),
5675           and enabled nesting of critical functions though not for gbz80
5676           (genCritical, genEndCritical): added functions
5677           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
5678         * src/z80/mappings.i: added "ei" to all mappings
5679
5680 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5681
5682         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
5683         submitted by the Debian SDCC maintainer Aurelien Jarno:
5684         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
5685         archive with gcc 4.1 on mips and wrote the patch"
5686
5687 2006-03-16 Raphael Neider <rneider AT web.de>
5688
5689         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
5690           the left operand is shorter than the result (c* = lit-c* + int),
5691           fixes bug #1450796
5692         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
5693           OP_SYMBOL
5694
5695 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
5696
5697         * src/.version: increased version number to 2.5.5
5698         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
5699         linking is done manually in pic16 port's _linkEdit,
5700         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
5701         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
5702         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
5703         allocate asmop as AOP_ACC,
5704         (aopForRemat): added parameter 'bool result' in function declaration,
5705         (pic16_aopGet): return AOP_ACC when accessing WREG,
5706         (pic16_popGetTempReg): minor modification,
5707         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
5708         'pic16_allocWithIdx',
5709         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
5710         calling function in absolute addresses,
5711         (genAssign): take into account AOP_ACC asmop,
5712         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
5713         * src/pic16/pcoderegs.c: some debug functions and lines added,
5714         * src/pic16/ralloc.c (decodeRegType): added but commented out,
5715         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
5716         register too,
5717         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
5718         call to allocReg, not by manually allocating a new one,
5719         (pic16_assignRegisters): now before going through the register
5720         allocating functions mark all registers as free. This eliminates some
5721         side effects resulting from peephole parser done earlier in the backbone
5722
5723 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
5724
5725         * src/SDCCicode.c (geniCodeLogic),
5726         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
5727
5728 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
5729
5730         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
5731           (genSend): bugfix, do not allocate and free twice,
5732           (shiftRLong): handle partially overlapping aops
5733         * support/regression/tests/bitopcse.c: fixed warning redefined idata
5734
5735 2006-03-08 Borut Razem <borut.razem AT siol.net>
5736
5737         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
5738           for pic16
5739
5740 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
5741
5742         * support/regression/tests/bug1409955.c: new, added
5743         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
5744         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
5745           (aopForSym, aopOp): increment asmop.allocated if reused,
5746           (freeAsmop): decrement asmop.allocated and check for zero instead of
5747           using asmop.freed,
5748           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
5749           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
5750            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
5751            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
5752            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
5753            genSignedRightShift, genRightShift, genDataPointerGet,
5754            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
5755            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
5756             in reverse order from allocation,
5757           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
5758             added swappedLR to keep track
5759         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
5760           pdata & code for GCC, z80, gbz80 & hc08
5761         * support/regression/tests/zeropad.c: moved defines to testfwk.h
5762
5763 2006-03-08 Raphael Neider <rneider AT web.de>
5764
5765         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
5766
5767 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
5768
5769         * device/include/mcs51/c8051f410.h: new SiLabs mcu
5770         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
5771         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
5772
5773 2006-03-06 Borut Razem <borut.razem AT siol.net>
5774
5775         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
5776           made the linker quiet
5777
5778 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
5779
5780         * src/pic16/gen.c (genPcall): fixed bug #1443644
5781         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
5782         which dumps before the function entry point a data byte which represents
5783         the number of the local variables used by the specified function, added
5784         'xinst' for initial support for Extended Instruction Support,
5785         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
5786         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
5787         port->fun_prefix anymore (may change later),
5788         (genFunction, genEndFunction): do not store/restore local registers for
5789         _main (this should take care the --main-return command line option in
5790         the future),
5791         (genOr): removed some legacy pic-port instructions,
5792         * src/pic16/genarith.c (genAddLit): re-enabled old code because
5793         performing operations with SFR's causes data to be written more than
5794         once to each SFR. Perhaps SFRs should be handled in special cases...
5795         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
5796         pcode.h
5797         * src/pic16/main.c (_process_pragma): stack bound checking did not take
5798         into account for stack starting position,
5799         (struct OPTIONS pic16_optionsTable): added command line argument
5800         --extended or -y for Extended Instruction Support,
5801         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
5802         (deassignLRs): *** perhaps the most important change, old 'for' code
5803         (commented out for reference), didn't account for some registers which
5804         were left marked 'not free' after a pointer operation. The change
5805         reduces register usage a lot in some cases
5806
5807 2006-03-04 Borut Razem <borut.razem AT siol.net>
5808
5809         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
5810           _clean
5811         * support/regression/tests/bug-524697.c: decreased array size for
5812           mcs51 to fit into the internal RAM
5813         * support/regression/Makefile.in: a little bit more verbose
5814
5815 2006-03-03 Borut Razem <borut.razem AT siol.net>
5816
5817         * support/regression/fwk/lib/testfwk.c,
5818           support/regression/fwk/include/testfwk.h: introduced function
5819           _prints(), nonrecursive _printn(), call _initEmu() from main()
5820         * support/regression/ports/gbz80/support.asm,
5821           support/regression/ports/ucz80/support.asm,
5822           support/regression/ports/z80/support.asm,
5823           support/regression/ports/ds390/support.c,
5824           support/regression/ports/hc08/support.c,
5825           support/regression/ports/host/support.c,
5826           support/regression/ports/mcs51/support.c,
5827           support/regression/ports/xa51/support.c: added empty _initEmu()
5828           function
5829         * support/regression/ports/pic16/gpsim.cmd,
5830           support/regression/ports/pic16/spec.mk,
5831           support/regression/ports/pic16/support.c,
5832           support/regression/Makefile.in: added pic16 regression test
5833
5834 2006-03-01 Raphael Neider <rneider AT web.de>
5835
5836         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
5837           genConstPointerGet): use safe way of generating MOVFF to cover
5838             literals as well as registers, fixes bug #1440527
5839         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
5840             dereference
5841           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
5842             more correctly, fixes bug #1232186
5843           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
5844         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
5845             gplink guess the correct processor in more cases, applied patch
5846             from Till Riedel attached to and fixing bug #1436552
5847
5848 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5849
5850         * support/regression/tests/array.c: added, contains check for #1434401
5851         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
5852
5853 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
5854
5855         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
5856         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
5857         * device/include/mcs51/c8051f326.h,
5858         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
5859         * device/include/mcs51/c8051f000.h,
5860         * device/include/mcs51/c8051f018.h,
5861         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
5862           PCON_IDLE,PCON_STOP and added sfr16 definitions
5863
5864 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
5865
5866         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
5867           genGetWord): fixed bug 1409955
5868
5869 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
5870
5871         * device/include/hc08/mc68hc908gp32.h,
5872         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
5873
5874 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
5875
5876         * src/SDCCast.c (constExprValue): return NULL if not a value
5877         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
5878         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
5879         * support/regression/tests/bitfields.c: enabled signed bitfield for all
5880
5881 2006-02-13 Borut Razem <borut.razem AT siol.net>
5882
5883         * src/regression/ptrarg.c: added, fails due to bug #1430967
5884         * src/regression/Makefile: ptrarg.c added, ...
5885
5886 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
5887
5888         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
5889         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
5890
5891 2006-02-11 Borut Razem <borut.razem AT siol.net>
5892
5893         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
5894           print "Processor: xxx" message to stdout only if --verbose
5895
5896 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
5897
5898         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
5899         * support/regression/tests/bug1426356.c: added
5900         * support/regression/tests/bitfields.c: removed 2 tests
5901
5902 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
5903
5904         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
5905         * device/include/mcs51/c8051f330.h,
5906         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
5907           PCON_IDLE,PCON_STOP and added sfr16 definitions
5908         * device/lib/_divsint.c,
5909         * device/lib/_divuint.c,
5910         * device/lib/_divulong.c,
5911         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
5912           register bank bug for small stackauto
5913
5914 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
5915
5916         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
5917
5918 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
5919
5920         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
5921         * all.dsp: corrected several bin paths
5922         * device/include/mcs51/c8051f120.h,
5923         * device/include/mcs51/c8051f300.h,
5924         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
5925           to PCON_IDLE,PCON_STOP
5926         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
5927         * device/lib/printf_large.c (output_float): fixed bug 1388703
5928         * support/regression/tests/bug1057979.c: added test for bug 1388703
5929
5930 2006-02-08 Raphael Neider <rneider AT web.de>
5931
5932         * src/pic/pcode.c (pciTRIS): fixed typo,
5933           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
5934           (LinkFlow): fixed handling of flows that end in a call,
5935           (ReuseReg): perform safety check earlier
5936         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
5937             to work with flows at the beginning of a pBlock,
5938             fixes #1426557 (Symbol not previously defined),
5939           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
5940             usage information
5941           (RemoveUnusedRegisters): update register usage info
5942         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
5943             created, reuse existing ones instead
5944         * src/pic/gen.c (genPcall): fixed #1424719
5945
5946 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
5947
5948         * link/z80/lkmain.c,
5949         * link/z80/lklex.c,
5950         * link/z80/lkdata.c,
5951         * link/z80/aslink.h: fixed build on current cygwin:
5952         replaced getline() by lk_getline()
5953
5954 2006-02-01 Borut Razem <borut.razem AT siol.net>
5955
5956         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
5957           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
5958           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
5959           src/regression/bool1.c, src/regression/bool2.c,
5960           src/regression/bool3.c, src/regression/call1.c,
5961           src/regression/compare.c, src/regression/compare10.c,
5962           src/regression/compare2.c, src/regression/compare3.c,
5963           src/regression/compare4.c, src/regression/compare5.c,
5964           src/regression/compare6.c, src/regression/compare7.c,
5965           src/regression/compare8.c, src/regression/compare9.c,
5966           src/regression/configword.c, src/regression/for.c,
5967           src/regression/inline.c, src/regression/mult1.c,
5968           src/regression/nestfor.c, src/regression/or1.c,
5969           src/regression/pointer1.c, src/regression/ptrfunc.c,
5970           src/regression/rotate1.c, src/regression/rotate2.c,
5971           src/regression/rotate3.c, src/regression/rotate4.c,
5972           src/regression/rotate5.c, src/regression/rotate6.c,
5973           src/regression/rotate7.c, src/regression/string1.c,
5974           src/regression/struct1.c, src/regression/sub.c,
5975           src/regression/sub2.c, src/regression/switch1.c,
5976           src/regression/while.c, src/regression/xor.c,
5977           src/regression/create_stc, src/regression/simulate,
5978           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
5979           regression tests
5980         * src/regression/gpsim_assert.h: added
5981
5982 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
5983
5984         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
5985         ((void (code *) (void)) 0) ();
5986         * as/hc08/aslex.c,
5987         * as/hc08/aslink.h,
5988         * as/hc08/asm.h,
5989         * as/hc08/asmain.c,
5990         * as/hc08/lkdata.c,
5991         * as/hc08/lklex.c,
5992         * as/hc08/lkmain.c,
5993         * as/mcs51/aslex.c,
5994         * as/mcs51/aslink.h,
5995         * as/mcs51/asm.h,
5996         * as/mcs51/asmain.c,
5997         * as/mcs51/lkdata.c,
5998         * as/mcs51/lklex.c,
5999         * as/mcs51/lkmain.c,
6000         * as/z80/aslex.c,
6001         * as/z80/asm.h,
6002         * as/z80/asmain.c: fixed build on current cygwin:
6003         replaced getline() by as_getline()
6004
6005 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
6006
6007         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
6008         declarator in the symbol chain
6009         * src/SDCCsymt.h,
6010         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
6011         parameter list for function pointers
6012         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
6013         * support/regression/tests/bug-716242.c: added
6014
6015 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
6016
6017         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
6018         offset if possible
6019         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
6020
6021 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
6022
6023         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
6024         inifinitely recurseable, added static
6025         * support/regression/tests/bug-1408066.c: added
6026
6027 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
6028
6029         * src/SDCCicode.h,
6030         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
6031         renamed, added possibility to create "postLoopLbl"-labels
6032         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
6033         newiTempLoopHeaderLabel
6034         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
6035         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
6036         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
6037         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
6038         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
6039         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
6040         (basicInduction): fixed bug #136564, made static,
6041         (loopInduction): changed parameter of basicInduction, made static,
6042         (addPostLoopBlock): added
6043         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
6044         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
6045         findLoopEndSeq
6046         * support/regression/tests/bug-136564.c: added
6047         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
6048         --std-sdcc99 to LIBSDCCFLAGS
6049
6050 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
6051
6052         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
6053         while loop
6054         * support/regression/tests/bug-1406131.c: added
6055
6056 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
6057
6058         * src/SDCCast.c (decorateType): fix promotion of unary minus
6059         * src/SDCCsymt.c (computeType): beautified
6060         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
6061         (valUnaryPM, valComplement): fix sign and promotion,
6062         (valNot): ANSI: result type is int (SDCC: unsigned char)
6063         * support/regression/tests/uminus.c: speedup by removing superflous
6064         test case 'int'
6065         * support/regression/tests/onebyte.c: added promotion and signedness
6066         tests for unary minus
6067         * support/regressions/tests/bug-477927.c: disable warning about
6068         uninitialized variables
6069         * support/regression/tests/not.c: added
6070
6071 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
6072
6073         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
6074         * src/mcs51/gen.c (gen51Code): show final register usage after
6075         fillGaps in asm with --i-code-in-asm
6076         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
6077         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
6078         incUsed, rliveClear, adjustIChain): made static,
6079         (setFromRange): excluded because it's unused,
6080         (findPrevUseSym, markWholeLoop): added,
6081         (findPrevUse): rewritten; fixes bug 895992; now a complete search
6082         through all branches of predecessors enables sdcc to emit the warning
6083         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
6084         (rlivePoint): made static, added parameter emitWarnings which is only
6085         true during the first run out of two,
6086         (findRecursiveSucc, findRecursivePred): removed,
6087         (computeLiveRanges): made static, added parameter emitWarnings,
6088         (dumpIcRlive): added for debugging only
6089         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
6090         removed prototype of setFromRange()
6091         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
6092         in call of computeLiveRanges()
6093         * support/regression/tests/bug-895992.c: added
6094         * support/regression/tests/bug-971834.c: added
6095         * support/valdiag/tests/bug-895992.c: added
6096         * support/valdiag/tests/bug-971834.c: added
6097
6098 2005-12-18 Raphael Neider <rneider AT web.de>
6099
6100         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
6101           (genUnpackBits): improved code for direct operands,
6102           (genPackBits): improved code for literal assignment to bitfields
6103             and for direct destination operands (no FSR indirection),
6104             prevented redundant AND, fixes #1362800,
6105           (AccLsh): added parameter to disable masking of the result
6106         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
6107           skip instructions with side-effects (like incfsz),
6108           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
6109         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
6110         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
6111           fixes #1375263
6112
6113 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
6114
6115         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
6116         volatile variables as spill location
6117
6118 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
6119
6120         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
6121         replacing literals
6122         * support/regression/tests/bug-1376320.c: added
6123
6124 2005-12-08 Raphael Neider <rneider AT web.de>
6125
6126         * src/pic/device.c: renamed is_shared to pic14_is_shared
6127         * src/pic/gen.c (genIfx): re-enabled handling of sbits
6128         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
6129           (is_valid_identifier): added for above workaround
6130
6131 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
6132
6133         * device/lib/Makefile.in: fixed to enable port-specific-objects
6134         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
6135           char, thanks Hubert Sack
6136         * doc/sdccman.lyx: documented --xstack-loc,
6137           elaborated a bit more on interrupts and pitfalls,
6138           removed "setjmp/longjmp unsupported",
6139           documented some unsupported C99 features
6140         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
6141         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
6142           if, thanks Hubert Sack
6143         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
6144         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
6145           make make_library
6146         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
6147           regression tests can report resource usage (rfe 700441)
6148         * support/regression/collate-results.py: report resource usage
6149         * support/regression/ports/ds390/spec.mk,
6150         * support/regression/ports/hc08/spec.mk,
6151         * support/regression/ports/mcs51/spec.mk,
6152         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
6153         * support/regression/ports/ds390/uCsim.cmd,
6154         * support/regression/ports/hc08/uCsim.cmd,
6155         * support/regression/ports/mcs51/uCsim.cmd,
6156         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
6157         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
6158           library, use the default one
6159         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
6160           building the library
6161
6162 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
6163
6164         * config.dsp: added dependency on .version and configure_vc.awk
6165         * device/include/setjmp.h: updated for --stack-auto and --xstack
6166         * device/include/mcs51/at89c51snd1c.h: corrected line endings
6167         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
6168         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
6169         * device/lib/libsdcc.lib: added _setjmp
6170         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
6171           (decorateType): fixed bug 1372851,
6172           (optimizeGetHbit): fixed warning
6173         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
6174           array initialisation
6175         * support/regression/tests/bug1057979.c: added test for bug 1358192
6176         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
6177
6178 2005-12-03 Borut Razem <borut.razem AT siol.net>
6179
6180         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
6181           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
6182
6183 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
6184
6185         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
6186         createIval): implement symbol independant "flexible array member",
6187         (createIvalCharPtr): implemented flexible array initialisation with a
6188         string
6189         * src/SDCCsymt.c (copyStruct): removed,
6190         (getSize): fixed misleading comment,
6191         (getAllocSize): removed, the additional allocation size is now in
6192         sym->flexArrayLength,
6193         (checkStructFlexArray): new, syntax checks for flexible array members,
6194         (compStructSize): added syntax checks for "flexible array members"
6195         (copyStruct): removed,
6196         (copyLinkChain): removed inefficient fix for bug 770487
6197         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
6198         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
6199         symbol->flexArrayLength
6200         * src/SDCCerr.c,
6201         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
6202         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
6203         * support/regression/tests/structflexarray.c: added
6204         * support/valdiag/tests/structflexiblearray.c: added
6205
6206 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
6207
6208         * src/SDCCast.c (decorateType): fixed bug 1368489
6209         * support/Util/SDCCerr.c,
6210         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
6211
6212 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6213
6214         * device/include/mcs51/at89c51snd1c.h: added file submitted by
6215           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
6216
6217 2005-11-27 Borut Razem <borut.razem AT siol.net>
6218
6219         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
6220           support/cpp2/mkdeps.h: added command line option
6221           -obj-ext=<extension> to SDCPP to define object file externion, used
6222           for generation of make dependencies (-M)
6223         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
6224
6225 2005-11-26 Borut Razem <borut.razem AT siol.net>
6226
6227         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
6228           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
6229           added pic and pic16 libraries
6230
6231 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6232
6233         * device/include/float.h: Corrected typo in prototype of __fsgt
6234
6235 2005-11-25 Borut Razem <borut.razem AT siol.net>
6236
6237         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
6238           added creation of model-mcs51-stack-auto libraries
6239
6240 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
6241
6242         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
6243         and fields-list too
6244         * src/SDCCast.c (createIvalArray): removed obsolete comment
6245
6246 2005-11-24 Borut Razem <borut.razem AT siol.net>
6247
6248         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
6249           added missing device/lib/mcs51/crt*.asm sources
6250
6251 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
6252
6253         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
6254
6255 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
6256
6257         * device/lib/_fs2schar.c,
6258         * device/lib/_fs2sint.c,
6259         * device/lib/_fs2slong.c: optimized inline asm
6260
6261 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6262
6263         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
6264           Better handling of floats between -1.0 and 0.0.
6265
6266 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6267
6268         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
6269           (the missing "if"s prohibited removal of redundant labels)
6270
6271 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6272
6273         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
6274           Properly convert floats between -1.0 and 0.0 to long, int, and char
6275           types (max integer value of negative floats tends to zero).
6276         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
6277           Removed changes made so to work properly with floats between
6278           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
6279           and _fs2char.c
6280
6281 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
6282
6283         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
6284         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
6285         (genCast) cosmetic change
6286         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
6287         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
6288         from mcs51
6289         * support/regression/tests/bitfields (testSignedBitfields): added
6290
6291 2005-11-18 Borut Razem <borut.razem AT siol.net>
6292
6293         * sdcc/device/lib/Makefile.in: remove all unnecessary files
6294         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
6295           introduced SILENT option to make building of pic16 libraries less
6296
6297 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6298
6299         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
6300           Now they work properly with floats between -1.0 and 0.0
6301         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
6302
6303 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
6304
6305         * src/SDCCicode.c (printOperand): added missing else
6306
6307 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
6308
6309         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
6310         reformatted for better readability
6311         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
6312         signed bitfields
6313
6314 2005-11-17 Borut Razem <borut.razem AT siol.net>
6315
6316         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
6317           introduced SILENT option to make building of pic16 libraries less
6318           verbose - used for nightly snapshot build
6319         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
6320           available on Win32 platforms.
6321         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
6322           medium, large, pic and pic16
6323
6324 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6325
6326         * device/lib/printf_large.c: Temporary patch for bug 1358192:
6327           printf("%f"...) sets fraction to zero.
6328
6329 2005-11-16 Raphael Neider <rneider AT web.de>
6330
6331         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
6332           fixes #1357221
6333         * src/pic/gen.c (genIfx): implemented for CARRY bit
6334         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
6335           to generic pointers, fixes #1357332,
6336           (pic16_movLit2f): NEW,
6337           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
6338
6339 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
6340
6341         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
6342
6343 2005-11-11 Raphael Neider <rneider AT web.de>
6344
6345         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
6346         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
6347           compute pointer's type from operand,
6348           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
6349           improved single bit reads, fixes bug #1353379
6350
6351 2005-11-09 Borut Razem <borut.razem AT siol.net>
6352
6353         * support/scripts/sdcc.nsi: added lib/pic to the package
6354
6355 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
6356
6357         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
6358
6359 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
6360
6361         * support/regression/tests/bug1348008.c: added
6362         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
6363         * support/regression/tests/bug1337835.c: updated comment
6364
6365 2005-11-06 Borut Razem <borut.razem AT siol.net>
6366
6367         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
6368           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
6369           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
6370           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
6371           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
6372           dynamic construction of cl_error_class and derivates - 2.nd try
6373
6374 2005-11-05 Borut Razem <borut.razem AT siol.net>
6375
6376         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
6377           bug, which caused Bus Errors on sparc solaris
6378
6379 2005-11-04 Borut Razem <borut.razem AT siol.net>
6380
6381         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
6382           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
6383           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
6384           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
6385           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
6386           and derivates to resolve the initialization problem on OSX
6387
6388 2005-11-02 Borut Razem <borut.razem AT siol.net>
6389
6390         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
6391           corrected typo - #include <winsock2.h>
6392
6393 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
6394
6395         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
6396           (_asxxxx_mapping): added org directive for future enhancements
6397
6398 2005-11-01 Borut Razem <borut.razem AT siol.net>
6399
6400         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
6401           enabled sockets on WIN32
6402         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
6403
6404 2005-10-31 Borut Razem <borut.razem AT siol.net>
6405
6406         * support/regression/generate-cases.py: escape backslashes in {testcase}:
6407           WIN32 backslash path delimiters should be escaped when used in C strings
6408         * support/regression/tests/bitfields.c: exclude failing assertions for
6409           __CYGWIN32__ and __MINGW32__ hosts
6410
6411 2005-10-30 Borut Razem <borut.razem AT siol.net>
6412
6413         * src/SDCCutil.c: corrected double comparison typo
6414
6415 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
6416
6417         * device/lib/medium/Makefile: added for new memory model medium
6418         * device/include/asm/mcs51/features.h: updated for medium/pdata
6419         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
6420           added Multiply & Accumulate sbit's and MAC0_PAGE define
6421         * device/include/mcs51/c8051f300.h: added sfr16 definitions
6422         * device/include/mcs51/c8051f310.h: added sfr16 definitions
6423         * device/lib/_mullong.c: update for medium model
6424         * device/lib/incl.mk: added medium model
6425         * doc/sdccman.lyx: documented medium model
6426         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
6427         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
6428         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
6429         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
6430           (allocParms): set SCLS and OCLS to pdata for medium model
6431         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
6432           for pdata,
6433           (powof2): return <0 if not power of 2
6434         * src/avr/gen.c (genBitWise): use updated powof2
6435         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
6436           (shiftR2Left2Result): small optimization in setup, save acc when storing,
6437           (shiftLLeftOrResult): use B if necessary
6438         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
6439         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
6440         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
6441         * support/regression/Makefile.in: added test-mcs51-medium
6442         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
6443
6444 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
6445
6446         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
6447         specifier unsigned
6448         * device/lib/time.c (mktime): fixed bug 1334315
6449
6450 2005-10-28 Raphael Neider <rneider AT web.de>
6451
6452         * device/include/pic/p16f_common.inc: added common declarations
6453         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
6454
6455 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
6456
6457         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
6458           (aopPutUsesAcc): added to predict accumulator use,
6459           (assignResultValue): save acc if necessary,
6460           (genMinusDec): store result if indirectly addressed,
6461           (genDivOneByte):  save acc if necessary,
6462           (movLeft2Result): bugfix if left already in acc,
6463           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
6464             attention to accumulator use (esp. pdata),
6465           (genReceive): receive pdata correctly
6466         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
6467         * src/SDCCicode.h: added isOperandInPagedSpace prototype
6468
6469 2005-10-27 Raphael Neider <rneider AT web.de>
6470
6471         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
6472
6473 2005-10-27 Raphael Neider <rneider AT web.de>
6474
6475         * .version: changed version to 2.5.4
6476         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
6477         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
6478           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
6479             arithmetics support routines
6480         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
6481         * device/lib/Makefile.in: also create installdir for pic
6482
6483         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
6484           pic14 port as well
6485         * src/pic/device.c (dump_sfr): rewritten to delegate register
6486           placement to the linker (use `extern sym' rather than sym EQU addr),
6487           (validAddress): fixed to check last specified address
6488         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
6489           (popGetLit): truncate literal value to 8 bit,
6490           (popGet): moved assert to more appropriate place
6491           (popGetExternal): create pCode operand from and mark the according
6492             symbol as being `extern'
6493           (popGetAddr): added sanity check on immediate's offset, provide
6494             GPOINTER tag on demand
6495           (aopPut): fixed for immediates,
6496           (mov2w_op): move operand's address or contents to WREG (depending on
6497             operand type), safer variant of mov2w,
6498           (movwf,call_libraryfunc): NEW, handy abbreviations,
6499           (get_argument_pcop,get_return_val_pcop,pass_argument,
6500           get_returnvalue): interface for accessing function parameters and
6501             return values,
6502           (assignResultValuei,genRet): use new parameter/return value interface
6503           (pic14_getDataSize): back to old version handling generic pointers,
6504           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
6505             provided implementation and/or fixed old one,
6506           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
6507             calls, removed legacy 8051 reference code
6508           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
6509           (loadSignToC): NEW, move the operands sign bit to CARRY,
6510           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
6511             genRightShiftSigned, accepts negative shift counts,
6512           (setup_fsr): load FSR and adjust IRP (indirect memory access),
6513           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
6514             generic pointers, __data pointers and __code pointers,
6515           (genUnpackBits,genPackBits): rewritten to work with generic pointers
6516             and signed bitfields, limit bitfields to 8 bit,
6517           (genDataPointerGet): fixed number of bytes read,
6518           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
6519           (genPointerGet,genPointerSet): fixed handling of __code pointers,
6520             pointers to constant data are no longer assumed to point to __code
6521             space, removed invalid pointer types,
6522           (bitpatternFromVal): retrieve the PICs representation of an integer
6523             or float literal,
6524           (genDataPointerSet): fixed assigning to po_immediate operands,
6525           (genGenPointerSet): implemented as library call,
6526           (genIfx): fixed incorrect condition,
6527           (genAddrOf): limit generic pointers' addresses to 2 bytes,
6528             provide GPOINTER tag according to destination's storage class,
6529           (genCast): added code to handle casting to generic pointers, added
6530             sign-/zero extension of the result
6531           (aop_isLitLike,op_isLitLike): fixed handling of immediates
6532         * src/pic/gen.h: added macros to access IRP bit in STATUS register
6533         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
6534           extend the result
6535         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
6536           address/register resides in the shared banks
6537           (emitSymbolToFile): improved to handle global and `pinned' symbols,
6538             put all variables into separate sections (have the linker arrange
6539             them)
6540           (picglue): put init code and interrupt handlers in separate sections
6541         * src/pic/main.c: added port specific options table, modified to PORT
6542           structure to make GPOINTERs 3 byte, added pic14_options
6543           (_pic14_do_link): private linking routine (update paths to libraries,
6544             add libsdcc.lib by default)
6545         * src/pic/main.h: declare pic14_options
6546         * src/pic/pcode.c: fixed instructions i/o relations,
6547           (RegCond): reverted to correct version,
6548           (newpCodeOpLit): truncate literals to 8 bit,
6549           (genericPrint): added debug output,
6550           (getRegFromInstruction): fixed for various operand types, simplified
6551           (BuildFlow): fixed broken handling of isntructions with labels
6552           (LinkFlow): start at last instruction in flow (skip trailing comments),
6553             pass the flow on to the next instruction after CALL
6554           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
6555           (insertPCodeInstruction): fixed inserting after a skip instruction,
6556           (DoBankSelect): fixed for labeled instructions
6557           (OptimizepBlock): honor --nopeep switch
6558           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
6559         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
6560         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
6561           (pCodeOptime2pCodes): allow disabling this optimization via
6562             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
6563             but is still buggy), started implementation of a dataflow based
6564             pCode optimization (CSE + dead code elimination)
6565           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
6566         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
6567           names are independant of the stack location and therefore portable across
6568           devices
6569
6570 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
6571
6572         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
6573           (selectSpil): fixed bug 1337835 by not spilling bit variables
6574         * support/regression/tests/bug1337835.c: added test for this bug
6575         * src/mcs51/peeph.def: restart after rule 3.c,
6576           addded rules 263.x to optimize loading constants
6577
6578 2005-10-26 Raphael Neider <rneider AT web.de>
6579
6580         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
6581         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
6582           (genAssign): emit warning when casting literals to generic pointer
6583             type, also applies when taking the address of a fixed variable,
6584           (genCast): improved casting to generic pointers
6585         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
6586           extern variables, added verbose error message
6587         * device/include/pic16/{string.h,errno.h}: added #pragma library c
6588
6589 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
6590
6591         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
6592         carry must be complemented too
6593         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
6594         could be emitted by genMinus
6595         * src/SDCCval.c (constVal): fixed bug 1305065
6596
6597 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
6598
6599         * src/SDCCast.c (addCast): added promotion for bit variables
6600         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
6601         promotion casts + optimisation
6602         (optimizeGetWord): fix warning 'i' might be used uninitialized
6603         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
6604         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
6605
6606 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
6607
6608         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
6609         all chars are promoted to int; promotion should be handled in SDCCast.c
6610
6611 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6612
6613         * device/lib/_strcmp.c: Fixed bug 1326457
6614
6615 2005-10-11 Raphael Neider <rneider AT web.de>
6616
6617         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
6618         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
6619
6620 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
6621
6622         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
6623         * support/regression/tests/sfr16.c: added test for the sfr32 bug
6624
6625 2005-10-04 Raphael Neider <rneider AT web.de>
6626
6627         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
6628           device/lib/pic16/pics.all: added pic18f1320
6629         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
6630
6631 2005-09-30 Raphael Neider <rneider AT web.de>
6632
6633         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
6634         * src/pic16/devices.inc: NEW, provides device descriptions
6635         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
6636
6637 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
6638
6639         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
6640           GETHBIT
6641
6642 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
6643
6644         * doc/sdccman.lyx: updated Highest Order Bit documentation,
6645           documented Any Order Bit, Higher Order Byte and Higher Order Word
6646         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
6647         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
6648           (optimizeGetAbit): new, to get any bit, not only the high bit,
6649           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
6650           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
6651           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
6652           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
6653             RIGHT_OP: also try GETBYTE, GETWORD optimization,
6654             GETABIT, GETBYTE, GETWORD: decorate them,
6655           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
6656           (ast_print): added GETABIT, GETBYTE, GETWORD
6657         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
6658         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
6659           (geniCodeBinary): new generic binary icode,
6660           (ast2iCode): added GETABIT, GETBYTE, GETWORD
6661         * src/port.h: updated comment for PORT.hasExtBitOp
6662         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
6663           (genGetByte): new, to get a single byte,
6664           (genGetWord): new, to get a word from a long,
6665           (gen51Code): added GETABIT, GETBYTE, GETWORD
6666         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
6667
6668 2005-09-23 Raphael Neider <rneider AT web.de>
6669
6670         * configure.in, configure: have device/lib/pic configured
6671         * device/lib/Makefile.in: added model-pic14
6672         * device/lib/clean.mk: added pic/ to clean rule
6673         * device/lib/pic: added rudimentary pic14 library providing support
6674           functions for multiplication/division/generic pointer access
6675         * src/SDCCopt.c (convilong): mark support functions as extern
6676           for pic14 port as well
6677         * src/pic/gen.c (genMult): added assertions,
6678           (genpic14Code): emit warning on unhandled iCodes
6679         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
6680         * src/pic/pcode.c (pCodeOpCopy),
6681         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
6682           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
6683           SFR_REGISTER}), made safe for future extensions
6684         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
6685           instructions even if preceeded by SKIP instructions (also remove
6686           them); removed unused code
6687         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
6688           prevents leaving parts of the structure uninitialized after copying
6689
6690 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
6691
6692         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
6693           ago by me
6694         * support/regression/tests/addsub.c: added test for the bug
6695
6696 2005-09-21 Raphael Neider <rneider AT web.de>
6697
6698         * device/include/pic16/pic18f1220.h,
6699           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
6700         * device/lib/pic16/Makefile.rules: added missing opening paren
6701         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
6702           are provided in genutils.c,
6703           (genUminusFloat,genUminus,genCmpEq): added asserts on different
6704           operand/result sizes,
6705           (genCmp): assert on NULL pointers first, then check deref'ed values
6706         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
6707           result size
6708
6709 2005-09-18 Raphael Neider <rneider AT web.de>
6710
6711         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
6712           as these are now unused,
6713           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
6714         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
6715           local, avoids uninitialized pointer dereference on r->name
6716         * src/pic16/ralloc.c (newReg): fixed indentation
6717
6718 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
6719
6720         * src/SDCCval.c (constVal): fixed bug 730366
6721         * support/Util/SDCCerr.c,
6722         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
6723
6724 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
6725
6726         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
6727
6728 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
6729
6730         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
6731
6732 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
6733
6734         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
6735           (hex2dec): made hex_digit unsigned char, removed ascii dependance
6736         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
6737           (hex2dec): made hex_digit unsigned char, removed ascii dependance
6738         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
6739         * packihx/packihx.c (hexDigit): made c unsigned char
6740         * as/mcs51/lklibr.c (fndsym),
6741         * link/z80/lkgb.c (gb),
6742         * link/z80/lklibr.c (fndsym),
6743         * link/z80/lkrloc.c (relr),
6744         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
6745         * src/SDCC.lex (checkCurrFile, process_pragma),
6746         * src/SDCCglue.c (spacesToUnderscores),
6747         * src/SDCCmain.c (setParseWithComma, processFile),
6748         * src/asm.c (tvsprintf, printCLine),
6749         * src/avr/gen.c (emitcode, aopPut),
6750         * src/ds390/gen.c (emitcode),
6751         * src/hc08/gen.c (emitcode, emitinline),
6752         * src/mcs51/gen.c (emitcode, genInline),
6753         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
6754           tokenizeLineNode),
6755         * src/pic/ralloc.c (debugLog),
6756         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
6757           tokenizeLineNode),
6758         * src/pic16/ralloc.c (debugLog),
6759         * src/z80/main.c (_process_pragma):
6760            made all ctype.h function calls safe
6761         * src/SDCCopt.c: include math.h for fabs
6762         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
6763           and used them throughout the code to make ctype.h function calls safe
6764         * src/ds390/main.c (asmLineNodeFromLineNode),
6765         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
6766         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
6767            unsigned char*
6768         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
6769           (newpCodeAsmDir): made ctype.h function calls safe
6770         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
6771           pic16_emitcode):  made lbp unsigned char*
6772         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
6773           (pic16_newpCodeAsmDir): made ctype.h function calls safe
6774         * src/xa51/gen.c (emitcode),
6775         * src/z80/gen.c (_emit2): made lbp unsigned char*
6776         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
6777            char*
6778
6779 2005-09-05 Raphael Neider <rneider AT web.de>
6780
6781         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
6782           access bank splitpoint
6783
6784 2005-09-05 Raphael Neider <rneider AT web.de>
6785
6786         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
6787
6788 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
6789
6790         * .version: changed to version 2.5.3
6791         * doc/sdccman.lyx: changed version to 2.5.3,
6792           documented --codeseg and --constseg and pragma codeseg and constseg,
6793           documented bit parameters (reentrant) and bit returning
6794         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
6795            currFunc->recvSize, but is this ok for all ports?
6796           (ast2iCode): result of ~ on unsigned char must be cast to int for
6797            bool to work
6798         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
6799           function pointers in bit space
6800         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
6801           (processFuncArgs): call port.reg_parm() with reentrancy info
6802         * src/port.h,
6803         * src/avr/main.c,
6804         * src/ds390/main.c,
6805         * src/hc08/main.c,
6806         * src/pic/main.c,
6807         * src/pic16/main.c,
6808         * src/xa51/main.c,
6809         * src/z80/main.c: port.reg_parm prototype extended with
6810           "bool reentrant" parameter
6811         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
6812           options.stackAuto for allocating bit register parameters
6813         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
6814           (genSend): set BitBankUsed if it is,
6815           (selectRegBank): factored out of genCall for use in genPcall,
6816           (genCall): removed redundant dtype assignmen, use selectRegBank,
6817           (genPcall): handle returning in Carry properly, save in F0 if needed,
6818           (genReceive): handle bit register parameters
6819         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
6820           (mcs51_assignRegisters): enable bit registers for all reentrant
6821            functions and don't set BitBankUsed unconditionally
6822         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
6823         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
6824         * support/regression/tests/funptrs.c: added tests for BOOL and for return
6825
6826 2005-08-27 Borut Razem <borut.razem AT siol.net>
6827
6828         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
6829         ppc-osx (Darwin) does not support -u option. It seems that it is
6830         supported only on Linux - GNU cp
6831
6832 2005-08-25 Borut Razem <borut.razem AT siol.net>
6833
6834         * sim/ucsim/gui.src/serio.src/Makefile.in,
6835           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
6836           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
6837           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
6838           install and strip, since the strip at /usr/ccs/bin should be used
6839           on solaris
6840
6841 2005-08-24 Borut Razem <borut.razem AT siol.net>
6842
6843         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
6844
6845 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
6846
6847         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
6848         ffffffffu
6849
6850 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
6851
6852         * as/mcs51/aslink.h: completed lkrloc.c prototypes
6853         * as/mcs51/lkmain.c (link_main): fixed warning
6854         * device/include/stdbool.h: ds390 has no advanced bit support yet
6855         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
6856         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
6857         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
6858           and updated their macros
6859         * src/SDCCval.c (constVal): updated comment for renamed b_long
6860
6861 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
6862
6863         * as/mcs51/asdata.c: changed ctype['['] to BINOP
6864         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
6865           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
6866           (oprio): set priority for '['
6867         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
6868            and adb_24_bit
6869         * as/mcs51/asm.h: added defines R_BIT and S_BIT
6870         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
6871         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
6872         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
6873           added overlayable BIT_BANK area
6874         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
6875           (summary2): explain 'T' in legenda
6876         * as/mcs51/lkrloc.c: replaced old K&R style,
6877           (relr): added R_BIT processing,
6878           (errmsg): added "Bit-addressable relocation error",
6879           (adb_bit): added for converting from byte- to bit-addressable space,
6880           (adb_24_bit): added for converting from byte- to bit-addressable space
6881         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
6882            used in reentrant functions now even as return value
6883         * device/lib/_gptrput.c (_gptrput): removed obsolete code
6884         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
6885           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
6886         * src/SDCCglobl.h: added indicator BitBankUsed
6887         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
6888            the bit registers b0-b7
6889         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
6890           (geniCodeCast): fixed bug 1263853,
6891           (geniCodeLogicAndOr): put result in bool or char,
6892           (geniCodeReceive): added parameter func for accessing the return type,
6893           (geniCodeFunctionBody): pass func to geniCodeReceive
6894         * src/SDCCmain.c: added indicator BitBankUsed
6895         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
6896         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
6897           (checkSClass): don't put automatic bool/bit on stack,
6898           (checkFunction): removed check on function cannot return bit
6899         * src/SDCCsymt.h: added newBoolLink prototype
6900         * src/mcs51/gen.c (rb1regs): added bit registers,
6901           (movc): created for assigning to carry,
6902           (pushReg, popReg): created for pushing registers,
6903           (sameRegs): check both AOP_REG and AOP_CRY types,
6904           (aopOp): handle bit registers,
6905           (aopPut): optimization no self-assign,
6906           (saveRegisters): push reg->base (bits) only once for bit registers,
6907            and use pushReg,
6908           (unsaveRegisters): pop reg->base only once and use popReg,
6909           (assignResultValue): added parameter func and return in carry for bits,
6910           (genIpush): optimization no reload in A if not changed,
6911           (genSend): bit parameters in reentrant functions are passed in bit
6912            registers by first assigning to bits in B, then save registers and
6913            copy B to bits,
6914           (genCall): handle returning in Carry properly, save it in F0 if needed,
6915           (genPcall): updated assignResultValue call, this is not safe yet for bit
6916            returning function !!!
6917           (genFunction): don't generate equ's for bit registers and use pushReg,
6918           (genEndFunction): take care of bit returning functions and use popReg,
6919           (genRet): return bit in Carry,
6920           (genIfx): optimize bit registers and other directly addressable bits,
6921           (genReceive): updated assignResultValue call
6922         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
6923           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
6924            registers when using stack-auto
6925         * src/mcs51/ralloc.c (_G): added allBitregs,
6926           (regs8051): added the bit registers,
6927           (createStackSpil): use macro IS_BIT,
6928           (getRegBit): added to allocate a bit register, else spill,
6929           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
6930           (updateRegUsage): factored out to ease stepping while debugging,
6931           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
6932            also allocate bit registers,
6933           (fillGaps): handle bit registers,
6934           (findAllBitregs): added to create bit vector with all bit registers,
6935           (mcs51_allBitregs): returns this bit vector,
6936           (mcs51_assignRegisters): when using stack-auto use bit registers for
6937            passing parameters and creating local variables
6938         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
6939
6940 2005-08-22 Borut Razem <borut.razem AT siol.net>
6941
6942         * device/lib/Makefile.in: replaced find option -or with -o
6943           to make it run on solaris
6944
6945 2005-08-22 Raphael Neider <rneider AT web.de>
6946
6947         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
6948           fixes #1265442 (crash on Solaris)
6949
6950 2005-08-20 Borut Razem <borut.razem AT siol.net>
6951
6952         * configure, configure.in: added tests for libsocket and libnsl libraries,
6953           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
6954           from support/regression/Makefile.in
6955         * support/regression/Makefile.in: added
6956         * device/lib/pic16/Makefile.common.in: force make to use bash shell
6957         * sim/ucsim/libtool: regenerated on sparc-solaris
6958         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
6959           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
6960           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
6961           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
6962           sparc-solaris, which doesn't use GNU ld linker
6963         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
6964         * as/Makefile: find on sparc-solaris does not support -maxdepth option
6965
6966 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
6967
6968         * src/mcs51/peeph.def: updated comments
6969
6970 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6971
6972         * device/lib/_gptrget.c,
6973         * device/lib/_gptrput.c: slightly shorter
6974         * doc/sdccman.lyx: incremented version
6975         * src/mcs51/peeph.def: moved peephole comments to the line of first
6976           change to better keep line correlation, reanimated 186.e
6977         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
6978
6979 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
6980
6981         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
6982           David Saxton with quotes around file name.
6983
6984 2005-08-15 Borut Razem <borut.razem AT siol.net>
6985
6986         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
6987           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
6988           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
6989           make tests run on x86_64 platform
6990
6991 2005-08-13 Raphael Neider <rneider AT web.de>
6992
6993         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
6994           as it might be executed DURING a build (parallel make is wonderful)
6995
6996 2005-08-13 Raphael Neider <rneider AT web.de>
6997
6998         * device/lib/Makefile.in (port-specific-objects-pic16):
6999           revert to cp $(PORT)/bin/*.* $(PORTDIR)
7000         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
7001           dependency
7002         * device/lib/pic16/Makefile.rules: build subdirs before creating
7003           the library, removed builddir rule, create $(builddir) early in
7004           recurse rule, use empty recurse rule for leaf directories
7005         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
7006           mkdir errors (race condition), removed duplicate suffix "hex"
7007           from clean rules
7008         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
7009         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
7010           prevents mkdir -p from aborting on Alpha
7011
7012 2005-08-12 Raphael Neider <rneider AT web.de>
7013
7014         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
7015           db-statements in order to allow for arrays of pointers in code
7016           sections to be placed without interspersed 0-padding, fixes
7017           bug #1256215
7018         * (emitStatistics): fixed division by zero for pic18f1220
7019         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
7020           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
7021         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
7022         * (pic16_pCodeConstString): keep track of already emitted string
7023           literals to prevent "duplicate definitions of symbol _str_NR"
7024         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
7025           debug message
7026         * device/lib/Makefile.in: ignore failing PIC16 library builds
7027         * device/lib/pic16/Makefile: do not build if gputils are missing
7028         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
7029
7030 2005-08-10 Raphael Neider <rneider AT web.de>
7031
7032         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
7033           my last commit)
7034
7035 2005-08-10 Raphael Neider <rneider AT web.de>
7036
7037         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
7038           Rokas' patch to add the new fixed point type "__fixed16x16"
7039         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
7040           functions for __fixed16x16 arithmetics
7041         * device/lib/pic16: reimplemented the build system to support
7042           a separate build directory, better handling of libio (create
7043           the library in a separate subdir for each architecture) and
7044           easier configuration (centralized in Makefile.common)
7045
7046 2005-08-07 Raphael Neider <rneider AT web.de>
7047
7048         * src/pic16/gen.c (genrshTwo): fixed sign extension
7049         * src/pic16/device.c: added pic18f2320, 4220 and 4320
7050         * device/include/pic16/pic18f2220.h: changed some bit definitions,
7051           added T0CONbits
7052         * device/include/pic16/pic18f4220.h: NEW, header for
7053           pic18f4220 and pic18f4320
7054         * device/include/pic16/pic18fregs.h: added new devices,
7055           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
7056         * device/include/pic16/signal.h: resolved name clashes
7057           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
7058           to also allow testing for interrupt enable bits, added
7059           comments on how to use the macros
7060         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
7061         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
7062           register definitions for the devices
7063         * device/lib/pic16/pics.all: added new devices
7064         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
7065           allocated memory
7066         * device/lib/pic16/libc/stdlib/memfree: do not count
7067           the block header as free memory
7068         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
7069           simplified and added missing end-of-blocklist-marker
7070           (reported by Peter Onion, fixes #1252814)
7071         * (_mergeHeapBlock): fixed loop condition
7072         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
7073           len==0, restructured code
7074         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
7075           up a bit, reduced bitfield accesses, prevent endless loops
7076           in case of heap corruption
7077         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
7078           "unreferenced arguments/must return a value" warnings
7079         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
7080           replaced BAUDREG with SPBRG
7081         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
7082           device/lib/pic16/debug/gstack/gstack.c: replaced
7083           _naked, _asm, _endasm with __naked, __asm, __endasm
7084
7085 2005-08-05 Raphael Neider <rneider AT web.de>
7086
7087         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
7088           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
7089
7090 2005-08-05 Borut Razem <borut.razem AT siol.net>
7091
7092         * device/lib/Makefile.in: added missing ';'
7093         * configure: removed ^M characters
7094
7095 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7096
7097         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
7098           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
7099           License
7100
7101 2005-08-04 Borut Razem <borut.razem AT siol.net>
7102
7103         * configure.in: pic16 libraries build 2nd try - enable running
7104           configure in device/lib/pic16
7105         * configure: regenerated from configure.in
7106         * device/lib/Makefile.in: create $(PORT)/bin directory
7107
7108 2005-08-03 Raphael Neider <rneider AT web.de>
7109
7110         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
7111           to get/set values via pointers
7112         * (genUnpackBits,genPackBits): changed detection of
7113           ptr->bitfield vs. sym.bitfield, fixed access via generic
7114           pointers, removed dead (wrong) code for multibyte bitfields
7115         * (genNearPointerGet, genGenPointerGet): removed useless code,
7116           fixed bitfield detection, fixes #1250594
7117         * (genNearPointerSet): removed useless code
7118         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
7119           and introduced macro pic16_emitpcode that conditionally emits
7120           the origin of the following pCode (useful for debugging SDCC)
7121         * src/pic16/pcode.c: changed (and disabled) some debug outputs
7122         * (createDefmap): fixed handling of LFSR for --optimize-df
7123
7124 2005-08-02 Borut Razem <borut.razem AT siol.net>
7125
7126         * device/lib/Makefile.in: pic16 libraries build enabled since
7127           gputils-0.13.2 are now localy installed at sourceforge's compile farm
7128
7129 2005-08-02 Raphael Neider <rneider AT web.de>
7130
7131         * src/pic16/gen.c (genPackBits): removed deprecated warning
7132         * (genGenPointerSet): fixed bitfield detection
7133
7134 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7135
7136         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
7137
7138 2005-07-31 Raphael Neider <rneider AT web.de>
7139
7140         * device/lib/pic16/libdev/pic18f458.c,
7141           device/include/pic16/pic18f458.h: added missing T0CONbits
7142
7143 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
7144
7145         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
7146
7147 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
7148
7149         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
7150
7151 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7152
7153         * device/include/mcs51/at89c51ed2.h: added.
7154
7155 2005-07-23 Raphael Neider <rneider AT web.de>
7156
7157         * src/pic/gen.h: added emitpcode macro for debugging
7158         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
7159           and replace by macro adding debug information on demand
7160         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
7161         * (gencjne): tried to fix; replaced with correct (slower) code
7162         * (gen{Unp,P}ackBits): fixed single bit access
7163         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
7164         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
7165           previous instruction
7166         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
7167           register has to be handled with care (forbidding movement
7168           of assignments/uses, removing assignments completely, ...)
7169         * (pCodeOptime2pCodes): make use of regIsSpecial
7170         * added lots of debugging output (commented out)
7171         * src/pic/rallloc.c (deassignLRs): prevent operand registers
7172           from being reused as result UNLESS it is known to work
7173
7174 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
7175
7176         * support/Util/dbuf.h: include <stddef.h> for size_t
7177         * .version: changed to version 2.5.2
7178
7179 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7180
7181         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
7182
7183 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7184
7185         * src/hc08/gen.c (genMinus): fixed bug #1241835,
7186           (genModOneByte): removed needless psha/pula
7187
7188 2005-07-22 Raphael Neider <rneider AT web.de>
7189
7190         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
7191           have PIC14 handled like PIC16, fixes broken pic14 linker calls
7192         * src/pic/gen.c (resolveIfx): do not "invent" labels
7193         * (genSkipc): changed to positive logic
7194         * (genSkipCond): removed as no longer needed
7195         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
7196           backport from PIC16
7197         * (genLeftShift): check operands are in different registers
7198         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
7199           INCF does not update CARRY...
7200         * src/pic/main.c: fixed _linkCmd
7201         * src/pic/pcode.c (unlinkpCode): added inactive code
7202         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
7203           alive (do not assign result and operand overlapping registers)
7204
7205 2005-07-22 Raphael Neider <rneider AT web.de>
7206
7207         * src/pic/device.c (dump_sfr): replaced register declaration with
7208           call to emitSymbolToFile() to avoid duplicate symbols
7209         * (assignRelocatableRegisters): do not declare external symbols
7210         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
7211           right (take size of type, not etype)
7212         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
7213         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
7214         * (packRegsForAccUse): disabled assignment of WREG as
7215           the result reg to prevent occurence of just fixed #1235003,
7216           fixes #1242954
7217         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
7218           symbols (avoids duplicate symbols in .asm file)
7219         * (pic14emitRegularMap): use emitSymbolToFile()
7220         * src/pic/gen.c (aopOp): fixed spillLocation handling
7221         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
7222         * (genDataPointerSet): removed unneccessary variables/output
7223
7224 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
7225
7226         * as/mcs51/lkarea.c: enlarged codemap for banked memory
7227         * device/lib/mcs51/crtbank.asm: added # to 0x0F
7228
7229 2005-07-21 Raphael Neider <rneider AT web.de>
7230
7231         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
7232           architecture cannot handle them efficiently, fixes bug #1235003
7233         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
7234           check for empty sets before using them (fixes bug #1232190)
7235
7236 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
7237
7238         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
7239           (lnksect2): generate warnings for memory overlap
7240         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
7241           constseg to set the name of these segments so you can instruct the linker
7242           to place them in banks
7243         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
7244         * src/SDCCglobl.h: added MODEL_HUGE to enum,
7245           added code_seg and const_seg to options
7246         * src/SDCCglue.c (emitMaps): use options.const_seg,
7247           (createInterruptVect): put interrupt vectors in segment HOME,
7248           (glue): put HOME before static segment and put the main glue in HOME,
7249           (glue): use options.code_seg
7250         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
7251         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
7252           these segments so you can instruct the linker to place them in banks
7253           (linkEdit): use code_loc for HOME segment which should be the first
7254           segment in code memory now
7255         * src/SDCCmem.c: fixed more stuff like bug 1238386
7256         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
7257           (changePointer): don't change function pointers to code pointers for
7258           banked functions,
7259           (compareType): added exceptional check for banked function pointers
7260         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
7261         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
7262           after static in code memory
7263         * src/mcs51/gen.c: added aopLiteralLong prototype,
7264           (aopForSym): use getSize for functions,
7265           (genCall): generate banked calls over one trampoline __sdcc_banked_call
7266           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
7267           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
7268           the segment,
7269           (genPcall): use call for literal function pointers and generate banked
7270           calls over the one trampoline so there's only one place for the user to
7271           modify according to his/hers hardware,
7272           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
7273           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
7274         * src/mcs51/main.c: added keyword banked,
7275           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
7276         * support/Util/SDCCerr.c,
7277         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
7278           needed for passing the bank and address to the trampoline
7279         * device/lib/mcs51/crtbank.asm: added for bankswitching
7280         * device/lib/mcs51/Makefile: added crtbank
7281
7282 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7283
7284         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
7285           for fields at offset 0 of a struct or union as reported
7286           on 2005-07-07 in the developer mailing list.
7287
7288 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
7289
7290         * src/SDCCmem.c: fixed bug 1238386
7291
7292 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7293
7294         * src/mcs51/peeph.def: added labelrefcounting for peepholes
7295           (patch #1144962), added peephole 300, enabled 259.x
7296         * doc/sdccman.lyx: removed screenshot and provided link instead
7297
7298 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7299
7300         * doc/sdccman.lyx: added section about debugging with ddd
7301         * doc/figures/ddd_example.eps: screenshot of debugging session
7302
7303 2005-07-04 Raphael Neider <rneider AT web.de>
7304
7305         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
7306           like CODE pointers, fixes #1115683
7307         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
7308           call, fixes bugs #1232211, #1228110,
7309           fixed wrong casts to pCodeFlow from pCodeInstructions
7310
7311 2005-07-04 Raphael Neider <rneider AT web.de>
7312
7313         * src/pic/gen.c (popGet): changed assert to allow for
7314           bit operands
7315         * (popGetAddr): changed signature to provide
7316           an additional index, patched all call sites
7317         * (genCmpEq): handle literal-like operands correctly
7318         * (genAddrOf): added sanity checks on __code/__data pointers
7319         * (genAssign): added handling of symbols from __code section
7320         * (gencjne): do not generate code for comparisons whose result
7321           is neither stored nor used, fixes bug #1171114
7322         * (AccLsh, AccRsh): operate on operand instead of WREG
7323         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
7324           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
7325           by known count
7326         * rewrote complete shift-by-literal logic, commented unused
7327           functions out
7328         * (genConstPointerGet): get multiple bytes (if result size > 1),
7329           fixed handling of non-immediate addresses
7330         * (genPointerGet): handle CODE pointers like CONST pointers
7331         * (genpic14Code): insert C-SRC lines as Cource-pCodes
7332         * ({aop,op}_isLitLike): NEW, single place to decide whether an
7333           operand is to be treated as a literal or not
7334         * (mov2w,genPcall,genCmpEq),
7335           src/pic/genarith.c: use aop_isLitLike() to decide between
7336           literal/register contents
7337         * (addSign): added missing offset
7338         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
7339           only emit comment in debug-mode,
7340           use {aop,op}_isLitLike throughout the file
7341         * src/pic/glue.c: fix initializers for pointers (work in progress)
7342         * src/pic/pcode.c (get_op): honor index on _const symbols
7343         * ({reset,dump}pCodeStatistics): NEW, estimate code size
7344         * (dumppBlock): added pCode size estimation
7345         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
7346           check for IS_SYMOP before OP_SYMBOL'ing
7347         * fixed indentation, compacted switch-statements
7348         * (allocReg): find free register and allocate it instead of
7349           allocating new registers all the time
7350         * (deassignLRs): prevent POINTER_GET's from being assigned the same
7351           registers as its operands (necessary only for multibyte GETs)
7352
7353 2005-07-01 Raphael Neider <rneider AT web.de>
7354
7355         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
7356           debugging .asm-output macros FENTRY + FEXIT
7357         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
7358           way... I wonder...
7359         * (emitpComment): NEW, printf to pCode
7360         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
7361           offset handling
7362         * (popGetAddr): NEW, variant of popGet to access an immediates
7363           high(er) bytes instead of the n'th byte of memory they reference,
7364           replaced popGet with popGetAddr where neccessary
7365         * (genDataPointerGet): reactivated and fixed implementation
7366         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
7367           accesses
7368         * (genDataPointerSet): fixed multibyte assignments
7369         * (genpic14Code): fixed --i-code-in-asm handling
7370         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
7371         * (genPlus): fixed index-out-of-bounds error
7372         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
7373         * src/pic/ralloc.c: added debugging output macro FENTRY2
7374         * (spillThis): fixed indentation, enbraced for-body for clarity
7375         * (rematStr): commented out as now unused
7376         * (regTypeNum): commented out special spill case (overwrites
7377           arbitrary values)
7378         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
7379
7380 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
7381
7382         * doc/sdccman.lyx: documented sfr16/sfr32,
7383           added example for using storage class with function pointers
7384         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
7385
7386 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
7387
7388         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
7389         * device/lib/_itoa.c,
7390         * device/lib/_ltoa.c: optimized codesize
7391         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
7392           but don't know how to suppress the double warning.
7393         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
7394         * support/Util/SDCCerr.c,
7395         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
7396
7397 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
7398
7399         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
7400           fixed old K&R prototypes
7401         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
7402         * device/lib/_gptrget.c,
7403         * device/lib/_gptrgetc.c,
7404         * device/lib/_gptrput.c: changed versions for new memory indicator values,
7405           also new versions for small generic pointers and banked generic pointers
7406         * src/port.h: added const_name
7407         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
7408         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
7409         * src/SDCCcse.c (findPrevIc): check all associative operators
7410         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
7411         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
7412         * src/SDCCmem.c: updated comments,
7413           set far-space to 0 for pdata, results in optimized code
7414         * src/SDCCmem.h: added macro CONST_NAME
7415         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
7416           moving the info into the highest bits, see also gptrget/gptrput
7417         * src/src.dsp: added sdcc.ico to project files
7418         * src/avr/gen.c (genCast): fixed bug 0x%d
7419         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
7420         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
7421           relation between ptr_type and DCL_TYPE,
7422           (genCast): fixed bug 0x%d
7423         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
7424           (CODE)" for const_name
7425         * src/hc08/gen.c (genCast): fixed bug 0x%d
7426         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
7427           (hc08_port): added "CONST (CODE)" for const_name
7428         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
7429           (aopForRemat, adjustArithmeticResult): disconnected direct relation
7430           between ptr_type and DCL_TYPE,
7431           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
7432           operand* and took AOP() inside function so sfr-ness can be checked,
7433           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
7434           new prototype,
7435           (genFunction, genEndFunction): optimized stack setup,
7436           (genMinus): optimized for literals with ending zeroes (in bytes),
7437           (genCast): fixed bug 0x%d
7438         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
7439           (mcs51_port): added "CONST (CODE)" for const_name
7440         * src/mcs51/peeph.def: made rule 226 more generic
7441         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
7442         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
7443         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
7444         * src/z80/main.c (z80_port): added NULL for const_name,
7445           (gbz80_port): added NULL for const_name
7446         * support/regression/tests/bug663539.c,
7447         * support/regression/tests/sfr16.c: new tests
7448
7449 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7450
7451         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
7452
7453 2005-06-24 Raphael Neider <rneider AT web.de>
7454
7455         * device/lib/pic16/libdev/pic18f[68][567]20.c:
7456           corrected typos...
7457         * device/include/pic16/signal.h: added USBIF
7458           and SIG_USB
7459
7460 2005-06-24 Raphael Neider <rneider AT web.de>
7461
7462         * device/lib/pic16/libdev/pic18f2455.c,
7463           device/include/pic16/pic18f2455.h: NEW
7464         * device/include/pic16/pic18fregs.h,
7465           device/lib/pic16/pics.all,
7466           src/pic16/device.c: added 18f2455
7467         * device/lib/pic16/libdev/pic18f[68][567]20.c,
7468           device/include/pic16/{pic18f[68][567].h,usart.h}:
7469           replaced MULTIPLE_USARTS define with more relaible
7470           compatibility sfrs (for USART access)
7471
7472 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
7473
7474         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
7475           and the output asm file line is printed on two lines.
7476
7477 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7478
7479         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
7480           BGT, BLE, BHI, and BLS instructions
7481         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
7482           genCmpEq): removed
7483         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
7484           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
7485           fixes bug #1216342
7486         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
7487
7488 2005-06-15 Raphael Neider <rneider AT web.de>
7489
7490         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
7491         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
7492         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
7493           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
7494           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
7495
7496 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7497
7498         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
7499           Marcel Telka in bug #1215704
7500
7501 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
7502
7503         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
7504           located in shared memory bank.
7505
7506 2005-05-31 Raphael Neider <rneider AT web.de>
7507
7508         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
7509           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
7510           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
7511
7512 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
7513
7514         * device/lib/_strncpy.c: fixed the fix
7515
7516 2005-05-26 Raphael Neider <rneider AT web.de>
7517
7518         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
7519           initializers with \0, bug #1208187
7520         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
7521           intializers with \0, bug #1208187
7522
7523 2005-05-26 Raphael Neider <rneider AT web.de>
7524
7525         * src/pic16/glue.c (pic16_printIvalChar): fixed string
7526           initializers with \0, bug #1208187
7527         * src/pic16/main.c (_process_pragma): added sanity checks
7528           for stack position and size, emit warnings when appropriate
7529
7530 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
7531
7532         * device/lib/_strncpy.c: fixed not filling with \0
7533
7534 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7535
7536         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
7537           createFunction),
7538         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
7539           compound_statement),
7540         * src/SDCCsymt.h,
7541         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
7542
7543 2005-05-24 Raphael Neider <rneider AT web.de>
7544
7545         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
7546
7547 2005-05-24 Raphael Neider <rneider AT web.de>
7548
7549         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
7550           TRISE definitions, closes bug #1162453
7551
7552 2005-05-22 Raphael Neider <rneider AT web.de>
7553
7554         * src/pic16/main.c (_process_pragma): check for missing
7555           arguments to pragmas code and udata
7556         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
7557           consistency fixes to match other headers (thanks to Jim Paris)
7558         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
7559
7560 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
7561
7562         * src/SDCCicode.c (isOperandEqual): fixed missing ;
7563
7564 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
7565
7566         * support/regression/tests/bug1198642.c: new test
7567         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
7568         * src/SDCCcse.c (findPrevIc): added comment, please have a look
7569         * support/scripts/resource.h,
7570         * support/scripts/resource.rc,
7571         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
7572         * support/scripts/sdcc.ico: added 32x32 icon
7573
7574 2005-05-18 Raphael Neider <rneider AT web.de>
7575
7576         * device/lib/pic16/libdev/pic18f*.c,
7577         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
7578           keywords to "__sfr" and "__at (X)"
7579         * device/include/pic16/pic18fregs.h: added pic18f4520
7580         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
7581           #1203088 (MPLAB compatibility)
7582
7583 2005-05-17 Raphael Neider <rneider AT web.de>
7584
7585         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
7586         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
7587         * device/lib/pic16/pics.all: added new devices
7588         * src/pic16/device.c: added support for pic18f4520
7589
7590 2005-05-16 Raphael Neider <rneider AT web.de>
7591         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
7592         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
7593         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
7594           convenience function for bit access
7595
7596 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
7597
7598         * device/lib/printf_large.c: fixed bug 1193299
7599         * support/regression/tests/bug1057979.c: added test %3.3s
7600
7601 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7602
7603         * device/include/mcs51/8051.h,
7604         * device/include/mcs51/8052.h: made parseable with lint
7605         * device/include/mcs51/lint.h: added include file for (sp)lint
7606         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
7607         * doc/cdbfileformat.lyx,
7608         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
7609
7610 2005-05-14 Raphael Neider <rneider AT web.de>
7611
7612         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
7613         * device/lib/pic16/libc/stdlib/itoa.c (new)
7614         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
7615         * device/lib/pic16/libio/Makefile: exclude subdir according to
7616           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
7617         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
7618         * src/pic16/gen.c (genFunction): prevent annoying warning
7619         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
7620           nameclashes on BeOS
7621         * support/cpp2/cppmain.c (cpp_output_string): new
7622         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
7623           fixes bug 1116802
7624
7625 2005-05-13 Borut Razem <borut.razem AT siol.net>
7626
7627         * src/SDCCmain.c (linkEdit): fixed bug 1195202
7628
7629 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7630
7631         * .version: changed to version 2.5.1; back to bleeding edge development
7632
7633 2005-05-11 Borut Razem <borut.razem AT siol.net>
7634
7635         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
7636           generate PDF version 1.3 documents
7637
7638 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7639
7640         * .version: changed to version 2.5.0
7641
7642 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7643
7644         * doc/sdccman.lyx: updated weblinks, index and smaller updates
7645
7646 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7647
7648         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
7649         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
7650         well as many smaller updates.
7651         * .version: changed to version 2.5.0-pre1
7652
7653 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7654
7655         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
7656
7657 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
7658
7659         * support/regression/tests/bug1185672.c: added
7660         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
7661           bug 1185672
7662         * src/mcs51/gen.c (genCall): added comments, made it look safer
7663         * src/mcs51/gen.c (genEndFunction): simplified
7664
7665 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
7666
7667         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
7668
7669 2005-04-14 Borut Razem <borut.razem AT siol.net>
7670
7671         * fixed bug 1045046 - SIGSEGV with really simple code?:
7672           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
7673           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
7674
7675 2005-04-14 Borut Razem <borut.razem AT siol.net>
7676
7677         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
7678           src/pic16/device.h: temporarily disabled experimental #inline pragma
7679           for 2.5.0 release
7680
7681 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
7682
7683         * device/include/z80/stdio.h,
7684         * device/include/z80/string.h: removed these highly incomplete files so
7685           SDCC can use the default ones in device/include/
7686
7687 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7688
7689         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
7690         gcc warning.
7691         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
7692         fix sdcpp warnings.
7693
7694 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
7695
7696         * device/include/malloc.h: removed redundant __reentrant prototypes
7697         * device/lib/_mullong.c: added working xstack variant in asm (C version
7698           doesn't pass regression tests)
7699         * device/lib/bpx.c: used __data and made bpx char for mcs51
7700         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
7701           (createFunction): fixed bug with xstackPtr
7702         * src/SDCCcse.c: corrected comments
7703         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
7704           (killDeadCode, eBBlockFromiCode): removed unused code
7705         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
7706           corrected comments
7707         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
7708           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
7709           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
7710           (genModOneByte): fixed warning in MSVC
7711         * src/mcs51/main.c (): added comments
7712         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
7713
7714 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
7715
7716         * src/SDCCmain.c (linkEdit): oops, changed one line too many
7717
7718 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
7719
7720         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
7721
7722 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
7723
7724         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
7725         characters arrays of larger size than the declared one.
7726
7727 2005-04-10 Borut Razem <borut.razem AT siol.net>
7728
7729         * src/pic/gen.c (genInline),
7730           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
7731           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
7732           (findNextInstruction), (findPrevInstruction),
7733           (findInstructionUsingLabel),
7734           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
7735         * src/pic/pcode.c (findLabel): added missing '\n'
7736         * src/src.dsp: added SDCCdwarf2.c to the project
7737
7738 2005-04-09 Borut Razem <borut.razem AT siol.net>
7739
7740         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
7741
7742 2005-04-08 Raphael Neider <rneider AT web.de>
7743
7744         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
7745           into the chain after a given one) and mergeDefmapSymbols (combine
7746           defmap entries for each symbol per pcode)
7747         * (createDefmap): have defmap entries merged in the end
7748         * (defmapReplaceSymRef): split defmap entries covering two accesses to
7749           a symbol before replacing one access type's symbol, merge symbols in
7750           the end (replacement symbol might already have an entry)
7751         * (assignValnums): keep reference to written WREG intact
7752
7753 2005-04-08 Raphael Neider <rneider AT web.de>
7754
7755         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
7756           Alpha)
7757
7758 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
7759
7760         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
7761         bytes
7762
7763 2005-04-07 Raphael Neider <rneider AT web.de>
7764
7765         * device/include/pic16/usart.h: added compatibility defines for
7766           devices with more than one USART
7767         * device/include/pic16/pic18f[68][567]20.h: activated above defines
7768
7769 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7770
7771         * device/lib/Makefile.in: updated for port specific include
7772
7773 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7774
7775         * support/regression/ports/mcs51/spec.mk: added mcs51 include
7776
7777 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7778
7779         * device/include/8051.h,
7780         * device/include/8052.h,
7781         * device/include/at89S8252.h,
7782         * device/include/at89c55.h,
7783         * device/include/at89x051.h,
7784         * device/include/at89x51.h,
7785         * device/include/at89x52.h,
7786         * device/include/mcs51reg.h,
7787         * device/include/reg51.h,
7788         * device/include/reg764.h,
7789         * device/include/regc515c.h,
7790         * device/include/sab80515.h: (re)moved these 12 files
7791         * device/include/mcs51/8051.h,
7792         * device/include/mcs51/8052.h,
7793         * device/include/mcs51/at89S8252.h,
7794         * device/include/mcs51/at89c55.h,
7795         * device/include/mcs51/at89x051.h,
7796         * device/include/mcs51/at89x51.h,
7797         * device/include/mcs51/at89x52.h,
7798         * device/include/mcs51/mcs51reg.h,
7799         * device/include/mcs51/reg51.h,
7800         * device/include/mcs51/reg764.h,
7801         * device/include/mcs51/regc515c.h,
7802         * device/include/mcs51/sab80515.h: and added them here
7803
7804 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
7805
7806         * device/include/stdarg.h: changed SDCC specific keywords to double
7807           underlined form.
7808         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
7809           mcs51 and ds390.
7810         * device/include/hc08/mc68hc908gp32.h,
7811         * device/include/hc08/mc68hc908jb8.h,
7812         * device/include/hc08/mc68hc908jkjl.h,
7813         * device/include/hc08/mc68hc908qy.h: fixed comments
7814         * device/include/mcs51/README: updated
7815         * device/include/mcs51/c8051f120.h: added PINRSF
7816         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
7817         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
7818           amidst code. Also inline is not supported.
7819
7820 2005-04-06 Raphael Neider <rneider AT web.de>
7821
7822         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
7823         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
7824           callers stack/frame pointers
7825
7826 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
7827
7828         * device/include/pic16/usart.h: added, missing in previous commit,
7829         * device/include/pic16/adc.h: fixed typo,
7830         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
7831         commit,
7832         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
7833         <p18fxxx.inc>
7834         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
7835         uninitialized because a bug appears with gplink
7836         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
7837         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
7838         complains for unrecognised option
7839
7840 2005-04-05 Raphael Neider <rneider AT web.de>
7841
7842         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
7843           structs as well (using memcpy)
7844         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
7845           on ISRs (GOTO has no label)
7846         * src/pic16/device.h: added OF_OPTIMIZE_DF
7847         * src/pic16/main.c: added compiler switch --optimize-df to enable the
7848           new data flow analysis/optimization
7849         * src/pic16/pcode.c: added (prototypes for and implementation of)
7850           dataflow analysis functions, fixed pCodeInstructions' inCond and
7851           outCond values, made RCALL a branch instruction
7852         * (pic16_unlinkpCode): keep C line if possible
7853         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
7854           C line moved if possible
7855         * (pic16_getRegFrompCodeOp): NEW, improved version of...
7856         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
7857           to use new pic16_getRegFrompCodeOp (works for more SFRs)
7858         * (pic16_BuildFlow): fixed skip instructions with label (did not start
7859           new flow)
7860         * (pic16_getJumptabpCode): NEW, needed in...
7861         * (LinkFlow): fixed handling of jumptables, calls and conditional
7862           branches
7863         * (pic16_InsertCommentAfter): NEW
7864         * (pic16_pCodeReplace): made verbose and flow preserving
7865         * (AnalyzeFlow): added call to data flow analysis
7866         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
7867         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
7868         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
7869
7870 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7871
7872         * src/SDCCast.c (decorateType): fixed bug #1105626
7873
7874 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
7875
7876         * device/include/asm/pic16/features.h,
7877         * pic18f*.h headers,
7878         * device/include/pic16/adc.h,
7879         * device/include/pic16/delay.h,
7880         * device/include/pic16/i2c.h,
7881         * device/include/pic16/malloc.h,
7882         * device/include/pic16/stdio.h,
7883         * device/include/pic16/stdlib.h,
7884         * device/include/pic16/string.h,
7885         * device/lib/pic16/libc/stdio/printf_tiny.c,
7886         * device/lib/pic16/libc/stdio/printf_small.c,
7887         * device/lib/pic16/libc/stdio/strmgpsim.c,
7888         * device/lib/pic16/libc/stdio/strmmssp.c,
7889         * device/lib/pic16/libc/stdio/strmusart.c,
7890         * device/lib/pic16/libc/stdio/vfprintf.c,
7891         * device/lib/pic16/libc/stdlib/ltoa.c,
7892         * device/lib/pic16/libc/stdlib/putchar.c,
7893         * device/lib/pic16/libc/stdlib/x_ftoa.c,
7894         * device/lib/pic16/libc/stdlib/memchrpgm.c,
7895         * device/lib/pic16/libc/stdlib/memchrram.c,
7896         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
7897         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
7898         * device/lib/pic16/libio/adc/adcbusy.c,
7899         * device/lib/pic16/libio/adc/adcread.c,
7900         * device/lib/pic16/libio/adc/adcsetch.c,
7901         * device/lib/pic16/libio/usart/ubaud.c,
7902         * device/lib/pic16/libio/usart/ubusy.c,
7903         * device/lib/pic16/libio/usart/udrdy.c,
7904         * device/lib/pic16/libio/usart/uopen.c,
7905         * device/lib/pic16/libio/usart/uputc.c,
7906         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
7907         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
7908         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
7909         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
7910         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
7911         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
7912         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
7913         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
7914         specific keywords to double underlined form,
7915         * device/lib/pic16/libc/Makefile.rules,
7916         * device/lib/pic16/libsdcc/Makefile.rules,
7917         * device/lib/pic16/libm/Makefile,
7918         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
7919         to compile with C standard set in Makefile.common
7920         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
7921         rand.c and crc.c in compilation process,
7922         * device/lib/pic16/libsdcc/int/divuint.c,
7923         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
7924         `c' from signed to unsigned,
7925         * device/lib/pic16/startup/crt0.c,
7926         * device/lib/pic16/startup/crt0i.c,
7927         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
7928         keywords to double underlined form, bug fixes in _do_cinit function
7929         which prevented the correct initialization of the .idata segment,
7930         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
7931         core to enter a infinite loop
7932         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
7933
7934 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7935
7936         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
7937
7938 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7939
7940         * device/include/Makefile.in: add support for hc08 subdirectory
7941         * device/include/hc08/: new subdirectory
7942         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
7943         Lucas Loizaga, thanks!
7944         * device/include/hc08/mc68hc908qy.h,
7945         * device/include/hc08/mc68hc908gp32.h,
7946         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
7947         their own directory. Changed internal macro names to use the compiler
7948         reserved namespace. Changed SDCC specific keywords to double
7949         underlined form.
7950         * device/include/math.h,
7951         * device/include/malloc.h,
7952         * device/include/stdarg.h,
7953         * device/include/stdbool.h
7954         * device/include/string.h,
7955         * device/include/tinibios.h,
7956         * device/include/ds400rom.h,
7957         * device/include/8051.h,
7958         * device/include/8052.h,
7959         * device/include/80c51xa.h,
7960         * device/include/at89c55.h,
7961         * device/include/at89S8252.h,
7962         * device/include/at89x51.h,
7963         * device/include/at89x52.h,
7964         * device/include/ds80c390.h,
7965         * device/include/reg764.h,
7966         * device/include/regc515c.h,
7967         * device/include/sab80515.h,
7968         * device/include/mcs51/c8051f000.h,
7969         * device/include/mcs51/c8051f018.h,
7970         * device/include/mcs51/c8051f020.h,
7971         * device/include/mcs51/c8051f040.h,
7972         * device/include/mcs51/c8051f060.h,
7973         * device/include/mcs51/c8051f120.h,
7974         * device/include/mcs51/c8051f300.h,
7975         * device/include/mcs51/c8051f310.h,
7976         * device/include/mcs51/c8051f320.h,
7977         * device/include/mcs51/c8051f330.h,
7978         * device/include/mcs51/c8051f350.h,
7979         * device/include/z180.h: Changed SDCC specific keywords to double
7980         underlined form.
7981
7982 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
7983
7984         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
7985         18F4455,
7986         * (pic16_assignConfigWordValue): disable testing of configuration
7987         register value with config mask,
7988         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
7989         function with port->fun_prefix,
7990         * (genFunction): when generating a naked interrupt function never
7991         create an absolute segment placed in interrupt vector address, place
7992         the actual interrupt function at IVA instead, when an interrupt
7993         function is generated with unspecified interrupt then do not create
7994         the absolute section,
7995         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
7996         code for generating a call to generic pointer get/put function with
7997         a call to function pic16_callGenericPointer(),
7998         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
7999         the call to the generic pointer get/put functions with prefixing the
8000         function name with port->fun_prefix,
8001         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
8002         * src/pic16/main.c (_process_pragma): prefix function with
8003         port->fun_prefix,
8004         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
8005         calling assembler, old 18Fxxxx macro is deprecated,
8006         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
8007         PC_ASMDIR in while condition,
8008         * (findInstruction): add PC_ASMDIR in while condition,
8009         * (buildCallTree): prefix main with port->fun_prefix,
8010         * (pic16_pCode2str): fixed bug that didn't emit the memory access
8011         identifier for variable with banked access in instructions BTFSS,
8012         BTFSC, BCF, BSF, BTG
8013         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
8014         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
8015         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
8016         perform optimization when enviroment variable NO_REG_OPT is set,
8017         * (insideLRBlock): NEW, return 1 if register is inside an
8018         INF_LOCALREGS block,
8019         * (RemoveRegFromLRBlock): remove a register that is completely
8020         eliminated by register optimization, but it is still left in local
8021         register store/restore in/from stack block,
8022         * (Remove2pcodes): after removing register, check to see if it
8023         should be removed from local register store/restore in/from stack
8024         block,
8025         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
8026         DUMMY_READ_VOLATILE,
8027
8028         * device/include/pic16/adc.h: minor prototype modifications and
8029         update,
8030         * device/include/pic16/malloc.h: added GPL notice various
8031         modifications,
8032         * device/include/pic16/stdint.h: NEW, standard header for ints
8033         * device/include/pic16/delay.h: NEW, header for delay functions,
8034         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
8035         delay1mtcy,
8036         * device/include/pic16/signal.h: NEW, header providing helper macros
8037         for implementing signal handlers,
8038         * device/include/pic16/stdio.h: added prototypes for functions,
8039         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
8040         prototypes for stdin and stdout, added macro PUTCHAR to
8041         automatically implement putchar function prototype,
8042         * device/include/pic16/usart.h: modified and updated USART library,
8043         * device/lib/pic16/libio/adc/,
8044         * device/lib/pic16/libio/i2c: some modifications to improve library
8045         performance,
8046         * device/lib/pic16/libc/stdio/: modifications for the new printf*
8047         family of functions,
8048         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
8049         family of functions and other sources,
8050         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
8051         of the PIC18Fxx[28] devices,
8052         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
8053         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
8054         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
8055         _do_cinit function, because the previous failed when local variables
8056         where not placed in the same memory bank,
8057         * device/lib/pic16/libsdcc/char/: various modifications to improve
8058         library performance,
8059         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
8060         information on the new functions of the c library and more...
8061
8062 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8063
8064         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
8065
8066 2005-03-26 Raphael Neider <rneider AT web.de>
8067
8068         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
8069           if condition == CARRY)
8070         * (genCmp): adapted to new genSkipc semantics
8071         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
8072           on rIfx (genCmp was broken)
8073
8074 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8075
8076         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
8077         * src/z80/main.c (_keywords[]),
8078         * src/SDCCglobal.h (struct options),
8079         * src/SDCC.y,
8080         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
8081         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
8082         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
8083         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
8084         always available in leading double underscore form. The C99 support is
8085         mostly missing, but it's a start.
8086         * support/regression/tests/bug-227710.c: fixed nonconforming use of
8087         reserved identifier "__data".
8088
8089 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
8090
8091         * src/mcs51/peeph.def: fixed bug 1170013
8092
8093 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
8094
8095         * device/include/mcs51reg.h: fixed bug 842007
8096
8097 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8098
8099         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
8100         last time.
8101
8102 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8103
8104         * src/port.h (struct PORT),
8105         * src/avr/ralloc.c (avr_assignRegisters),
8106         * src/avr/main.c,
8107         * src/ds390/ralloc.c (ds390_assignRegisters),
8108         * src/ds390/main.c,
8109         * src/hc08/ralloc.c (hc08_assignRegisters),
8110         * src/hc08/main.c,
8111         * src/mcs51/ralloc.c (mcs51_assignRegisters),
8112         * src/mcs51/main.c,
8113         * src/pic/ralloc.c (pic14_assignRegisters),
8114         * src/pic/main.c,
8115         * src/pic16/ralloc.c (pic16_assignRegisters),
8116         * src/pic16/main.c,
8117         * src/xa51/ralloc.c (xa51_assignRegisters),
8118         * src/xa51/main.c,
8119         * src/z80/ralloc.c (z80_assignRegisters),
8120         * src/z80/ralloc.h,
8121         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
8122         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
8123         * src/SDCCcse.h,
8124         * src/SDCCdflow.c (computeDataFlow),
8125         * src/SDCCdflow.h,
8126         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
8127         * src/SDCCloop.h,
8128         * src/SDCCcflow.c (*),
8129         * src/SDCCcflow.h,
8130         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
8131         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
8132         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
8133         immedDom() returning wrong block; probably fixes bug #1160833)
8134
8135 2005-03-20 Borut Razem <borut.razem AT siol.net>
8136
8137         * support/scripts/inc2h.pl: WIN32 port
8138
8139 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
8140
8141         * device/lib/makefile.in: added abs.c and labs.c
8142
8143 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
8144
8145         * device/include/stdint.h: added
8146         * device/lib/abs.c: added
8147         * device/lib/labs.c: added
8148         * device/include/stdlib.h: added abs() and labs() prototypes
8149         * device/lib/libsdcc.lib: added abs and labs
8150         * device/include/float.h,
8151         * device/lib/_fsmul.c,
8152         * device/lib/printf_fast.c,
8153         * device/lib/printf_tiny.c: updated comments
8154
8155 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8156
8157         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
8158         bug #1164313
8159
8160 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8161
8162         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
8163         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
8164
8165 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
8166
8167         * device/lib/printf_large.c: removed inline assembly for portability and
8168           readability. Use printf_fast if speed or size are more important.
8169         * src/pic16/gen.c: removed conditions around use of DEBUGpc
8170         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
8171
8172 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
8173
8174         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
8175         prevent compiler warning
8176
8177 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
8178
8179         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
8180         moved to level 0 and declared as static. Also they are explicit
8181         placed in access bank. This was necessery because some times they
8182         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
8183         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
8184         optimizations. Currently only compare to unsigned char is implemented,
8185         * src/pic16/gen.c: added fReturnIdx array,
8186         * (struct resolvedIfx) is moved to gen.h and made public,
8187         * (struct _G): added sregsAlloc and sregsAllocSet fields,
8188         * (aopForSym): added an optimization to directly store in stack of
8189         the operand of a SEND iCode,
8190         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
8191         but as registers instead (AOP_REG) using the fReturnIdx array,
8192         * (pic16_freeAsmop): remove the freed register from the
8193         _G.sregsAlloc field,
8194         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
8195         a compare of 'WREG',
8196         * (pic16_popGetTempRegCond): changed function prototype, now
8197         function takes also a bitVector argument v which holds the current
8198         set of registers that are allocated for stack access by aopForSym,
8199         registers allocated in aopForSym for accessing stack symbols are not
8200         any more part of the functions usedRegs field,
8201         * (genCall): some times aopOp is called for a stack variable to be
8202         send, aopForSym might perform the push, if this is true make sure
8203         that genCall doesn't push the variable twice by testing _G.resDirect,
8204         * (genFunction): changed testing for unspecified interrupt number
8205         from 256 to INTNO_UNSPEC,
8206         * modified selection scheme of frame pointer generation. Previously
8207         if function did use local registers a frame pointer was generated,
8208         now a frame pointer is generated only if function has arguments
8209         (that need PLUSW2 register access), or has stack arguments, or the
8210         compiler is not instructed to omit the frame pointer,
8211         * (genEndFunction): before restoring local registers that were saved
8212         in the function preamble, also restore the registers that *might*
8213         have been allocated for stack access,
8214         * (genRet): removed some old comments,
8215         * (genCmp, the active (RN's) version): added a call to the
8216         pic16_genCmp_special function to perform the compare with a more
8217         robust and optimized way,
8218         * (genInline): a feature has been added in inline code generation,
8219         which allows a wildcard variable substitution when writing inline
8220         assembly. Code is incomplete and experimental therefore undocumented,
8221         * (genCast): changed order of aopOp for result and right to allow
8222         aopForSym to directly load the result if possible,
8223         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
8224         perform an optimized compare on some selected special occasions,
8225         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
8226         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
8227         generate an IVT any more,
8228         * src/pic16/main.c (pic16_optionsTable): added command line option
8229         --optimize-cmp,
8230         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
8231         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
8232         macros,
8233         * src/pic16/NOTES: Raphael Neider added in list of active developers
8234         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
8235         jumptable_end to prevent bug #,
8236         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
8237         inCond and outCond fields,
8238         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
8239         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
8240         turn off register spilling,
8241         * (packRegsForOneUse): synced with other ports' versions although it
8242         is not used currently,
8243         * (pic16_packRegisters): added an optimization while reading
8244         structure bitfields, some registers may be saved (malloc code is
8245         decreased by 80 bytes)
8246
8247 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
8248
8249         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
8250         left is a bitfield, if yes, then don't optimize assignment. Perhaps
8251         this can be optimized more?
8252
8253 2005-03-10 Raphael Neider <rneider AT web.de>
8254
8255         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
8256           genNearPointerGet): (hopefully) fixed access to bitfields via
8257           pointers (p->bitN = x; and x = p->bitN; failed)
8258
8259 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
8260
8261         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
8262
8263 2005-03-09 Raphael Neider <rneider AT web.de>
8264
8265         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
8266
8267 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
8268
8269         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
8270         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
8271           (regTypeNum): set REG_BIT type if necessary
8272         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
8273         * support/regression/tests/critical.c: check bug 1144613
8274
8275 2005-03-02 Raphael Neider <rneider AT web.de>
8276
8277         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
8278
8279 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8280
8281         * src/avr/ralloc.c (serialRegAssign),
8282         * src/ds390/ralloc.c (serialRegAssign),
8283         * src/hc08/ralloc.c (serialRegAssign),
8284         * src/mcs51/ralloc.c (serialRegAssign),
8285         * src/pic/ralloc.c (serialRegAssign),
8286         * src/pic16/ralloc.c (serialRegAssign),
8287         * src/xa51/ralloc.c (serialRegAssign),
8288         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
8289
8290 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
8291
8292         * src/SDCCast.c (decorateType): fixed bug 1124787
8293
8294 2005-02-20 Hubert Sack <sack AT digiplan.de>
8295         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8296
8297         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
8298         patch #1121755
8299
8300 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8301
8302         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
8303         to keep the correct label reference count when adding/removing references
8304         to labels. A peephole file using this is appended to patch #1144962.
8305
8306 2005-02-14 Raphael Neider <rneider AT web.de>
8307
8308         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
8309         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
8310         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
8311           retrievals of result operand's value on assignment
8312
8313 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
8314
8315         * device/include/pic16/string.h: modified prototype for memccpy()
8316         to memccpy(void *, void *, char, size_t)
8317         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
8318         check whether to omit frame pointer or not,
8319         * (genInline): convert all occurences of "\n" to LF in inline
8320         assembler blocks, this helps formatting the inline text,
8321         * (pic16_loadFSR0): modified prototype,
8322         * (genNearPointerGet, genNearPointerSet): reorganization of code,
8323         removed some 8051 legacy code,
8324         * (genPackBits): enabled handling bitfields exceeding one byte in size,
8325         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
8326         before allocating temporary registers in functions,
8327
8328 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
8329
8330         * support/regression/tests/bitvars.c: corrected the "fix"
8331
8332 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
8333
8334         * support/regression/tests/bitvars.c,
8335         * support/regression/tests/bitwise.c,
8336         * support/regression/tests/rotate.c: "fixed" problems on Alpha
8337
8338 2005-02-10 Raphael Neider <rneider AT web.de>
8339
8340         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
8341           different size for Alpha
8342         * src/pic16/gen.c (genCmpEq) : improved compare with 0
8343
8344 2005-02-09 Raphael Neider <rneider AT web.de>
8345
8346         * src/SDCC.lex(doPragma) : save and restore warning options as well
8347           (also added new stack plus clone- and copyAndFreeSDCCERRG())
8348         * have #pragma less_pedantic set the errorlevel to WARNING
8349           (fixes #1117001)
8350         * (cloneOptimize) : fixed wrong malloc's size
8351         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
8352           facilitate correct handling of #pragma (save|restore)
8353
8354 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
8355
8356         * src/mcs51/gen.c: removed non-standard C nameless struct/union
8357
8358 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
8359
8360         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
8361
8362 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
8363
8364         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
8365
8366 2005-02-02 Raphael Neider <rneider AT web.de>
8367
8368         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
8369         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
8370         * (pic16_storeForReturn): fixed to allow returning function pointers
8371         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
8372         * device/include/pic16/{stddef.h,stdbool.h}: added
8373
8374 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
8375
8376         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
8377
8378 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
8379
8380         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
8381         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
8382          appeared to be required
8383
8384 2005-01-31 Borut Razem <borut.razem AT siol.net>
8385
8386         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
8387           include/mcs51 and include/z80 directories to the package
8388
8389 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8390
8391         * src/hc08/gen.c (genFunction): fixed bug #1112752
8392
8393 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8394
8395         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
8396
8397 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8398
8399         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
8400
8401 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
8402
8403         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
8404
8405 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
8406
8407         * device/include/c8051fxxx.h: removed these 6 files
8408         * device/include/mcs51/c8051fxxx.h: added these 11 new files
8409
8410 2005-01-26 Raphael Neider <rneider AT web.de>
8411
8412         * src/pic16/gen.c (genAssign): fixed assignment from longs
8413           in codespace (were cut to three bytes)
8414         * (genDummyRead): implemented (except for CODESPACE...),
8415           fixed bug #1108575
8416         * src/pic16/glue.c (emitStatistics): beautified
8417         * device/lib/pic16/libm/Makefile: added include path
8418
8419 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8420
8421         * src/z80/gen.c (aopPut): fixed bug #1103902
8422
8423 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8424
8425         * device/lib/expf.c: fixed bug #1095792
8426
8427 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
8428
8429         * device/lib/pic16/libm: added Math library sources
8430
8431 2005-01-24 Raphael Neider <rneider AT web.de>
8432
8433         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
8434           to enable upcast to pCodeOpReg2 (there is no type tag to
8435           differenciate the two and pic16_popGet2p cast into PCOR2)
8436         * src/pic16/main.c (_process_pragma): fixed another malloc bug
8437           (sizeof(sectNames) changed to sizeof(sectName))
8438           Both patches fix segfaults under MinGW.
8439
8440 2005-01-23 Raphael Neider <rneider AT web.de>
8441
8442         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
8443           Safe_[mc]?alloc()'ed variables
8444         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
8445           of (byte sized) temporaries (assign them to WREG for now)
8446         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
8447           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
8448           this might fix SIGSEGVs on MinGW...
8449         * src/SDCCopt.c (killDeadCode): restored original behaviour
8450           (volatile operands might get thrown away though)
8451
8452 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
8453
8454         * src/pic16/gen.c: fixed bug #1106975,
8455         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
8456         pointer update, INTCON is saved, global interrupts are disabled and
8457         restored after updateing TOS.
8458         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
8459         * added function attribute 'shadowregs' to take advantage of shadow
8460         registers,
8461         * added function attribute 'wparam' as an alternative to the wparam
8462         pragma,
8463         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
8464         user declares a non-ISR function as 'shadowregs',
8465         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
8466
8467 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
8468
8469         * .version: bumped version number to 2.4.8
8470         * device/lib/pic16/pics.all: list of PIC18F devices supported by
8471         pic16 port,
8472         * device/lib/pic16/libio/i2c/: I2C module support library,
8473         * device/include/pic16/i2c.h: I2C support library header,
8474         * device/lib/pic16/libc/stdio/: standard IO support sources,
8475         * (printf_small.c): printf_small() source, supports float print,
8476         * (printf_tiny.c): printf_tiny() source, does not support floats,
8477         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
8478         enable global optimizations for entire library source, other
8479         Makefiles in the source tree are also modified to reflect this,
8480         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
8481         function,
8482         * doc/sdccman.lyx: updated to reflect new changes,
8483         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
8484         sym->onStack if-case,
8485         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
8486         sbit, idata, _idata, xdata, _xdata,
8487         * added pragma library, to link an external library, (see doc),
8488         * removed command line options, --pomit-config-words, --pomit-ivt,
8489         --pleave-reset-vector,
8490         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
8491         when calling assembler to reflect memory model used, also define
8492         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
8493         reflect stack model used,
8494         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
8495         on stack return NULL,
8496
8497 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
8498
8499         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
8500           of the operands is volatile. Fixes #1020220
8501
8502 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
8503
8504         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
8505         * (OptimizeRegUsage): make sure that there is really no other flow where
8506           the first pCode is used
8507
8508 2005-01-22 Raphael Neider <rneider AT web.de>
8509
8510         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
8511           to fix #1106967 (pCode->seq are not set up correctly)
8512
8513 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8514
8515         * src/SDCCglue.c (glue): make sure code area is declared before the
8516         static initialization area.
8517
8518 2005-01-21 Raphael Neider <rneider AT web.de>
8519
8520         * device/lib/Makefile.in: fixed test for pic16 install dir
8521         * device/lib/pic16/*/Makefile*: modified compile flags to enable
8522           optimizations
8523         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
8524           added --optimize-goto compiler switch and pragma wparam documentation
8525         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
8526         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
8527           and PRODH closing bug #1071770 (peephole optimizer)
8528
8529 2005-01-19 Raphael Neider <rneider AT web.de>
8530
8531         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
8532           cmdLine buffers (used when calling sdcpp...) are large enough
8533           (MAX_PATH=256 truncates arguments leading to system halts when
8534           used in MinGW...)
8535         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
8536         * (genUminus): rewritten to for efficiency
8537         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
8538           used uninitialized in some cases)
8539         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
8540           copy the third byte from the int -- now assumes 0x80 (data memory)
8541         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
8542           operands (genAddLit expects the iCode's operands to swapped as
8543           well), fixed leftover bytes (crashed for short left operands)
8544         * (pic16_genMinusDec): performance improvements, removed false
8545           PIC14 emitSKPNCs
8546         * (pic16_genMinus): fixed to cope with differently sized operands
8547         * src/pic16/glue.c (pic16_glue): added new banksel optimization
8548           for --obanksel > 1
8549         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
8550         * src/pic16/graph.[ch]: implementation of directed graphs, used by
8551           new banksel optimization
8552         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
8553           analysis for temporary registers (segfaults...)
8554         * src/pic16/peeph.def: added rule
8555
8556 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
8557
8558         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
8559         which converts a float number to its ASCII representation
8560         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
8561         functions to convert the fractional and integer part of a float to ASCII,
8562         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
8563         realloc.c): added _MALLOC_SPEC to explicit place variables in data
8564         ram
8565         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
8566         _STATMEM macros,
8567         * device/include/pic16/adc.h: added GPL info,
8568         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
8569         a pCodeOp as tested operand,
8570         * (genNearPointerGet): optimized bit testing, does not use
8571         intermediate register for bit value, test directly instead with
8572         BTFSS, BTFSC, works only for single bits,
8573         * (genpic16Code): dump the name of the iCode in the asm,
8574         * src/pic16/ralloc.c (decodeOp): removed static declaration and
8575         renamed to pic16_decodeOp,
8576         * (serialRegAssign): do not allocate a temporary register for iCode
8577         sequences that test a single bit for 1/0
8578
8579 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
8580
8581         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
8582         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
8583         access stack and frame pointers. They are initially assigned to
8584         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
8585         accessing SFRs. Updated all occurences of modification of stack or
8586         frame pointer in gen.c and pcode.c,
8587         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
8588         assigning of a literal value to pointers,
8589         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
8590         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
8591         selected
8592
8593 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
8594
8595         * doc/sdccman.lyx: update documentation about stack pragma, added
8596         some info for stack memory models
8597
8598 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8599
8600         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
8601
8602 2005-01-08 Raphael Neider <rneider AT web.de>
8603
8604         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
8605           udata sections to fix bug #1097823
8606
8607 2005-01-05 Raphael Neider <rneider AT web.de>
8608
8609         * src/pic16/gen.c (genGenericShift): added handling of differently
8610           sized left operand and result
8611
8612 2005-01-04 Raphael Neider <rneider AT web.de>
8613
8614         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
8615         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
8616           to hold the condition bit)
8617         * added new version of genCmp (old code available via #define)
8618         * added new version of genShiftLeft/genShiftRight in a generic
8619           way, now supports shifting by negative values
8620         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
8621           shiftCount (expected by genGenericShift)
8622         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
8623         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
8624           dump
8625         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
8626           is an invalid literal too...)
8627
8628 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
8629
8630         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
8631         from Raphael Neider,
8632         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
8633         for 8-bit literals. This fixes some literal operands which are sign
8634         extended to 16-bits ints when instruction needs only 8-bits.
8635
8636 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
8637
8638         * device/lib/logf.c: added mcs51 assembly version
8639         * device/lib/expf.c: added mcs51 assembly version
8640         * device/lib/_logexpf.c: new shared asm code for expf and logf
8641         * device/include/math.h: add defines for assembly math library
8642         * device/lib/Makefile.in: build new _logexpf.c
8643         * device/lib/libfloat.lib: use new _logexpf.c
8644
8645 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
8646
8647         * src/pic/device.c
8648         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
8649           device types which have less than 0x7f registers.
8650
8651 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
8652
8653         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
8654
8655 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
8656
8657         * device/lib/printf_fast.c: only build on supported arch.
8658         * device/lib/printf_tiny.c: only build on supported arch.
8659         * device/lib/printf_fast_f.c: only build if asm float lib
8660         * device/lib/_fsget1arg.c: only build if asm float lib
8661         * device/lib/_fsget2args.c: only build if asm float lib
8662         * device/lib/_fsnormalize.c: only build if asm float lib
8663         * device/lib/_fsreturnval.c: only build if asm float lib
8664         * device/lib/_fsrshift.c: only build if asm float lib
8665         * device/lib/_fsswapargs.c: only build if asm float lib
8666         * device/include/stdio.h: don't provide print_fast,
8667           print_fast_f, print_tiny prototypes if --xstack used
8668
8669 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
8670
8671         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
8672         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
8673           to the SOURCES
8674
8675 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
8676
8677         * device/lib/printf_fast_f.c: same as printf_fast, but
8678           with floating point enabled
8679         * device/lib/printf_fast.c: minor tweaks
8680         * device/include/stdio.h: add printf_fast_f
8681
8682 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
8683
8684         * src/SDCCmain.c: make --float-reent default for mcs51
8685         * device/lib/_fsadd.c: added mcs51 assembly version
8686         * device/lib/_fssub.c: added mcs51 assembly version
8687         * device/lib/_fsmul.c: added mcs51 assembly version
8688         * device/lib/_fsdiv.c: added mcs51 assembly version
8689         * device/lib/_fseq.c: added mcs51 assembly version
8690         * device/lib/_fsneq.c: added mcs51 assembly version
8691         * device/lib/_fsgt.c: added mcs51 assembly version
8692         * device/lib/_fslt.c: added mcs51 assembly version
8693         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
8694         * device/lib/Makefile.in: add _fscmp to build
8695         * device/lib/libfloat.lib: add _fscmp to build
8696
8697 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
8698
8699         * device/lib/_fs2slong.c: added mcs51 assembly version
8700         * device/lib/_fs2sint.c: added mcs51 assembly version
8701         * device/lib/_fs2schar.c: added mcs51 assembly version
8702         * device/lib/_fs2ulong.c: added mcs51 assembly version
8703         * device/lib/_fs2uint.c: added mcs51 assembly version
8704         * device/lib/_fs2uchar.c: added mcs51 assembly version
8705         * device/lib/_slong2fs.c: added mcs51 assembly version
8706         * device/lib/_sint2fs.c: added mcs51 assembly version
8707         * device/lib/_schar2fs.c: added mcs51 assembly version
8708         * device/lib/_ulong2fs.c: added mcs51 assembly version
8709         * device/lib/_uint2fs.c: added mcs51 assembly version
8710         * device/lib/_uchar2fs.c: added mcs51 assembly version
8711         * device/include/float.h: added #define to select asm vs c
8712
8713 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
8714
8715         * device/lib/printf_fast.c: improvements to float output
8716         * device/include/float.h: add defines for assembly float library
8717         * device/lib/_fsget1arg.c: receive 1 float arg
8718         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
8719         * device/lib/_fsnormalize.c: normalize a float
8720         * device/lib/_fsreturnval.c: return float, various helper routines
8721         * device/lib/_fsrshift.c: right shift a float's mantissa
8722         * device/lib/_fsswapargs.c: swap 2 floats
8723         * device/lib/Makefile.in: build these 6 new files for mcs51
8724         * device/lib/libfloat.lib: add these 6 files to the library
8725
8726 2004-12-26 Borut Razem <borut.razem AT siol.net>
8727
8728         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
8729           built by gcc 3.4.2
8730
8731 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
8732
8733         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
8734           and fully reentrant and register bank neutral.
8735         * device/lib/printf_fast.c: added float (not enabled by default),
8736           added compact/slower integer (also not enabled by default),
8737           improved size/speed of fast integer code, other minor changes
8738         * device/include/stdio.h, device/lib/Makefile.in,
8739           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
8740
8741 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
8742
8743         * src/pic16/pcode.c: declaring variables other than at the start of a
8744           block is not supported in C by VC6.
8745
8746 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
8747
8748         * applied a previous patch from Raphael Neider that wasn't included
8749         in the previous commits, which fixes infinite loops within jumptable
8750         improvements,
8751         * made some fixes that previous patches introduced
8752
8753 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
8754
8755         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
8756         that fixes an issue with AOP_PCODE asmop's offset,
8757         * (pic16_popCopyReg): update instance field too,
8758         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
8759         function of pic port,
8760         * (genCmp, genAnd, genAssign),
8761         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
8762
8763 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
8764
8765         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
8766         variables initial values to idata section,
8767         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
8768         variables in some functions. This utilizes parmBytes field of iCode
8769         structure to hold the offset of the variable in stack. (might be
8770         able to use the stack field too?)
8771         * applied patch from Raphael Neider # ### , # ###
8772         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
8773         variable initial values in idata section,
8774         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
8775         for static variables with initial value
8776         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
8777         applied fix in while loop from Raphael Neider.
8778
8779 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
8780
8781         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
8782         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
8783         * src/ds390/ralloc.c (serialRegAssign): spill bits
8784         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
8785         * support/Util/SDCCerr.c,
8786         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
8787         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
8788         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
8789
8790 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
8791
8792         * device/include/sdcc-lib.h: inserted LGPL, added includes
8793           asm/ds390/features.h and asm/mcs51/features.h
8794         * device/include/asm/default/features.h,
8795         * device/include/asm/gbz80/features.h,
8796         * device/include/asm/z80/features.h: added empty _AUTOMEM
8797           and _STATMEM
8798         * device/include/asm/ds390/features.h,
8799         * device/include/asm/mcs51/features.h: added files with defines for
8800           _AUTOMEM and _STATMEM indicating automatic and static storage class
8801         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
8802         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
8803         * src/SDCCicode.c (geniCodeCast),
8804         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
8805         * src/SDCCloop.c (loopInduction): removed unused variable lr
8806         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
8807           to convertToFcall to include char modulo (RFE 1065037), added check
8808           if left operand is unsigned and use abs of literal value
8809         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
8810           as it doesn't work after conversion from peephole.def to peephole.rul
8811         * src/mcs51/gen.c (toBoolean): added check for size,
8812           (genModOneByte): optimized code for signed char modulo a literal
8813           power of 2 (thanks to Hubert Sack),
8814           (genRRC): removed unnecessary "clr c",
8815           (genRLC): replaced "add a,acc" with cheaper "rlc a"
8816         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
8817           jump optimization,
8818           swapped rules 256.c and 256.d,
8819           extended 256.d by using new multiple checks (thanks Erik),
8820           added rules 256.e and 256.f,
8821           updated rule 261.a and 261.b to new generated code
8822         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
8823
8824 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8825
8826         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
8827           induction related bugs, including first part of bug #1074377
8828
8829 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
8830
8831         * applied patch from bug-report #1076292,
8832         * applied patches for genAnd and Goto-optimizations for Raphael
8833         Neider,
8834         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
8835         dump a less iCode information,
8836         * src/pic16/device.h (pic16_options_t): added field debgen,
8837         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
8838         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
8839         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
8840         puclic,
8841         * (various functions): added macros FENTRY and FENTRY2 to functions,
8842         to emit function prologue,
8843         * (various functions): fixed indentation,
8844         * (genNearPointerGet): fixed loading of FSR0,
8845         * (genPackBits): applied patch from Raphael Neider to fix updating
8846         of FSR0 and touching only the modified bits,
8847         * src/pic16/genarith.c (various functions): added macros FENTRY to
8848         emit function prologue in comments,
8849         * src/pic16/pcode.h: added functions debugf2, debugf3,
8850         * src/pic16/ralloc.c: partial fix for packForPush caused
8851         segmentation fault,
8852
8853 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8854
8855         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
8856           <stsp AT users.sourceforge.net> with reversed byte order
8857         * support/regression/tests/rotate.c: added (ds390 skips some tests)
8858
8859 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8860
8861         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
8862           bug #1074377
8863         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
8864         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
8865
8866 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
8867
8868         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
8869
8870 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8871
8872         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
8873           conditions,
8874           (setFromConditionArgs): friendly operand parser for peephole rules,
8875           (operandBaseName, operandsNotRelated): new peephole condition
8876           "operandsNotRelated" -- similar to "operandsNotSame", but takes
8877           architecture specific register naming into account, handles n-way
8878           comparisons, and supports quoted literals
8879         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
8880
8881 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8882
8883         * src/mcs51/peeph.def: fixed bug #1076940
8884
8885 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
8886
8887         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
8888
8889 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8890
8891         Adding support for replacing ljmps with sjmps in jumptables
8892         generated for switch statements. For now you need to set the
8893         environment variable SDCC_SJMP_JUMPTABLE to enable this.
8894         Now 4 algorithms for mcs51 jumptable generation are used:
8895         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
8896         addresses loaded pc-relative for up to 112 cases and stack-pushing
8897         target addresses loaded with offset from dptr for up to 256 cases.
8898
8899         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
8900         * src/mcs51/main.c: adapted constants for switch table generation
8901         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
8902
8903 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
8904
8905         * device/lib/printf_large.c (_print_format): fixed bug 1073386
8906         * support/regression/tests/bug1057979.c: added test for bug 1073386
8907
8908 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
8909
8910         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
8911         compilers
8912
8913 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
8914
8915         * src/pic16/device.h,
8916         * src/pic16/genarith.c,
8917         * src/pic16/glue.c,
8918         * src/pic16/main.c,
8919         * src/pic16/pcode.c: applied patches #1068154 and #1070213
8920
8921 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
8922
8923         Large cummulative patch for pic16 port.
8924         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
8925         to call when a stack overflow occurs,
8926         * (malloc.h): added CVS Id tag,
8927         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
8928         variable,
8929         * added libc directory. The current version of LibC contains string
8930         functions, ctype functions and macros and some functions of the
8931         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
8932         be extensively tested in the future. Standard disclaimer here.
8933         Library is not automatically build yet. But one can build it by
8934         invoking 'make' inside the libc directory.
8935         * added ADC library under libio. Preliminary version yet.
8936
8937         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
8938         * src/pic16/gen.c (aopForRemat): asmop size is filled by
8939         aopForRemat() now and not by pic16_aopOp(),
8940         * (pic16_popGetTempReg): removed warning messgae when allocating
8941         temporary registers, its a buggy feature and will be removed,
8942         * (pic16_popGet): set register instance field in AOP_CRY,
8943         * (pic16_outBitC): fixed for results in size greater than 1,
8944         * (genUminusFloat): fixed for pic16, ported code from mcs51,
8945         * (pic16_storeForReturn): optimized return of 0,
8946         * (genCmp): experimental code for new genCmp which uses PIC18's
8947         special compare&skip instructions. Initial tests fail some times
8948         with variables grater than 1 byte in size, so new code is disabled,
8949         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
8950         a single bit,
8951         * (genCast): began a fix to optimize the casting of a bit to another
8952         bit, now assigning a bitfield to another bitfield will fail, sorry,
8953         * src/pic16/main.c: disabled the use of lr-support feature,
8954         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
8955         * added some function prototypes, added function _debugf prototype,
8956         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
8957         bits with offset (case PO_GPR_BIT),
8958         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
8959         command line,
8960         * (isBankInstruction): modified to return 0 for no banking instruction,
8961         and 1 for banking instruction,
8962         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
8963         caused stop processing pCodes after a inline assembly block,
8964         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
8965         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
8966         registers when it shouldn't,
8967         * src/pic16/ralloc.c (allocReg): add preliminary support for
8968         supporting a limited set of temporary registers,
8969
8970 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8971
8972         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
8973           genDataPointerSet): ensure assignments always copy in MSB to LSB
8974           order,
8975           (loadRegFromAop): recognize CLRH optimization,
8976           (genFunction): optimize RECEIVE iCodes in reentrant functions
8977
8978 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8979
8980         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
8981           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
8982           selected.
8983         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
8984         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
8985           contiguous with data
8986
8987 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8988
8989         * device/lib/_gptrget.c (_gptrget),
8990         * device/lib/_gptrgetc.c (_gptrgetc),
8991         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
8992           instead of sjmp to ret
8993         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
8994           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
8995
8996 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
8997
8998         * .version: bumped version to 2.4.7
8999         * device/lib/_gptrget.c (_gptrget): is now _naked
9000         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
9001         * device/lib/_gptrput.c (_gptrput): is now _naked
9002         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
9003           (createFunction): fixed xstack
9004         * src/SDCCglue.c (emitMaps): set allocation required for bit area
9005         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
9006           or bit either,
9007           (geniCodeCritical): store original interrupt state in an iTemp bit
9008           var unless stack-auto
9009         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
9010         * src/SDCCmain.c (setIncludePath): added include/target to search path
9011         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
9012         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
9013           prototype,
9014           (processFuncArgs): put bit vars in bit area
9015         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
9016           unsaveRBank): fixed xstack,
9017           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
9018           (genFunction, genEndFunction): fixed xstack,
9019           (genAssign): optimization don't walk backwards through mem
9020         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
9021         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
9022         * support/regression/Makefile: also make library (for stack-auto) when
9023           making "all" and added "test-mcs51-xstack-auto"
9024         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
9025         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
9026         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
9027         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
9028         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
9029           make-library by MAKE_LIBRARY
9030         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
9031           regression tests for xstack
9032         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
9033         * support/regression/tests/critical.c: test for critical on mcs51
9034
9035 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9036
9037         * support/regression/ports/ucz80/spec.mk: use include and lib files from
9038           built version of sdcc instead of installed version
9039
9040 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
9041
9042         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
9043         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
9044           vprintf.c now
9045         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
9046         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
9047           WARNING: remove device/lib/build/z80/printf.o by hand when
9048           updating from previous build!
9049         * device/lib/z80/printf.c: updated comment
9050         * support/regression/tests/bug1057979.c: test all ports now
9051         * support/regression/tests/bug1065458.c: file added
9052
9053 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9054
9055         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
9056           *_start and *_end symbols for static functions
9057
9058 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
9059
9060         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
9061           and search crt0.o in all library paths,
9062           (setIncludePath): proper handling of --nostdinc,
9063           (setLibPath): proper handling of --nostdlib
9064         * support/regression/Makefile,
9065         * support/regression/ports/ds390/spec.mk,
9066         * support/regression/ports/gbz80/spec.mk,
9067         * support/regression/ports/hc08/spec.mk,
9068         * support/regression/ports/mcs51/spec.mk,
9069         * support/regression/ports/mcs51-large/spec.mk,
9070         * support/regression/ports/mcs51-stack-auto/spec.mk,
9071         * support/regression/ports/z80/spec.mk: use include and lib files from
9072           built version of sdcc instead of installed version
9073         * doc/sdccman.lyx: fixed typo in --nostdinc
9074
9075 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
9076
9077         * src/pic/pcode.c,
9078         * src/pic/device.c,
9079         * src/pic/ralloc.c,
9080         * src/pic/gen.c : added support to generate code for struct bit fields.
9081
9082 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
9083
9084         * as/xa51/xa_version.h,
9085         * device/include/errno.h,
9086         * device/include/regc515c.h,
9087         * device/lib/_itoa.c,
9088         * device/lib/_ltoa.c,
9089         * device/lib/ser_ir_cts_rts.c,
9090         * sim/ucsim/xa.src/glob.cc,
9091         * sim/ucsim/xa.src/inst_gen.cc,
9092         * sim/ucsim/xa.src/xa_bit.cc,
9093         * sim/ucsim/xa.src/xa_sfr.cc,
9094         * sim/ucsim/z80.src/inst_dd.cc,
9095         * sim/ucsim/z80.src/inst_fdcb.cc,
9096         * support/scripts/keil2sdcc.pl,
9097         * src/pic16/pic16.dsp,
9098         * src/pic16/pic16a.dsp: corrected cvs line endings
9099         * device/lib/printf_large.c: fixed bug 1057979
9100         * src/pic16/gen.c: fixed non-C standard code
9101         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
9102         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
9103         * support/regression/ports/mcs51/support.c: reload T1 asap
9104         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
9105           pdata use and clear idata startup behaviour
9106         * support/regression/tests/bug1057979.c: added
9107
9108 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
9109
9110         * device/examples/ds390/ow390/ad26.h,
9111         * device/examples/ds390/ow390/cnt1d.h,
9112         * device/examples/ds390/ow390/crcutil.c,
9113         * device/examples/ds390/ow390/ownet.h,
9114         * device/examples/ds390/ow390/owsesu.c,
9115         * device/examples/ds390/ow390/swt12.h,
9116         * device/examples/ds390/ow390/swtoper.c,
9117         * device/examples/ds390/ow390/temp10.h,
9118         * device/examples/ds390/ow390/thermodl.c,
9119         * device/examples/ds390/tinitalk/tinitalk.dsp,
9120         * device/examples/ds390/tinitalk/tinitalk.dsw,
9121         * device/examples/mcs51/clock/hw.h,
9122         * device/examples/mcs51/simple2/go.bat,
9123         * device/examples/serialcomm/windows/serial.h,
9124         * device/examples/xa51/dummy.c,
9125         * device/examples/xa51/hello.c,
9126         * device/include/80c51xa.h,
9127         * device/include/at89x051.h: corrected cvs line endings
9128
9129 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
9130
9131         * src/pic16/main.c (options): added command line --gstack, to trace
9132         stack over/under flows,
9133         * added pragma 'wparam' to allow passing first byte of function
9134         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
9135         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
9136         call to __gstack_test function and sets up the symbol as extern,
9137         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
9138         * popaop): added call to pic16_testStackOverflow,
9139         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
9140         wparamList list,
9141         * (genCall, genPcall): now all parameters are passed via stack
9142         except in functions that are pass to wparam pragma in which WREG is
9143         used too,
9144         * (genPcall): REENTRANT flag is checked to see if variable prototype
9145         contains reentrant keyword, don't call a non-reentrant function, via
9146         a reentrant function pointer or vice versa, functions are never
9147         passed via WREG,
9148         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
9149         D.Winkler,
9150         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
9151         SIGSEGV when accessing a NULL register stucture,
9152         * (pic16_printGPointerType): modified to handle UPPER modifier for
9153         function initializers, changed prototype of function to simpler one,
9154         * (pic16_printIvalFuncPtr): check to see if function is already
9155         added in externs list,
9156         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
9157         optimized a move from W to SFR with a move to the same register
9158         later after a CALL,
9159         * device/lib/pic16/debug: NEW directory, contains debug features
9160         which are enabled when linking with libdebug.lib, currently command
9161         line option --gstack enables stack pointer tracing for over/under
9162         flow, corresponding sources are in debug/gstack
9163
9164 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
9165
9166         * doc/sdccman.lyx: updated SDCC version,
9167         * (PIC16 port): update list of command line options,
9168         * src/pic16/device.h (structure pic16_options_t): added field gstack
9169         to enable stack overflow tracing on push/pops,
9170         * src/pic16/device.c (statistics structure): added statistics
9171         structure,
9172         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
9173         pic16_dump_int_registers): increase statistics counters for each
9174         * variable which is encountered
9175         * (pic16_dump_usection): emit each .udata variable to its own udata
9176         section,
9177         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
9178         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
9179         parameters via stack, otherwise use old scheme,
9180         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
9181         assembler output file,
9182         * src/pic16/main.c: added command line options --gstack to enable
9183         push/pop tracing for stack overflow,
9184         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
9185         instructions): added size of each instruction,
9186         * (pic16_countInstruction): estimate size of instructions in
9187         the_pFile list, inline assembly blocks are not counted,
9188         * (pic16_FixRegisterBanking): trace previous register usage, when
9189         banksel optimizations is greater than 0, don't emit a redudant
9190         banksel directive,
9191
9192 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
9193
9194         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
9195         * src/pic16/ralloc.c : applied same fix for pic16.
9196         * src/pic/gen.c : tidied it up a little.
9197
9198 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9199
9200         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
9201         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
9202
9203 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9204
9205         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
9206
9207 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9208
9209         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
9210         non-reentrant function __modsint in the interrupt function (thus
9211         corrupting math operations during serial I/O)
9212         * device/lib/ser_ir.c: as above, changed buffersize
9213         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
9214         256.c,d for zeroing
9215         * doc/Makefile: added option -t for rsync
9216
9217 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9218
9219         * src/SDCCast.h (struct ast),
9220         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
9221
9222 2004-10-20 Borut Razem <borut.razem AT siol.net>
9223
9224         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
9225         package
9226
9227 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
9228
9229         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
9230         makefile targets,
9231         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
9232         support functions to replace long sequences of MOVFF's from access
9233         bank registers to stack and vice versa,
9234         * src/pic16/device.h: added new field opt_flags, where optimization
9235         flags can be set to enable certain features,
9236         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
9237         * pBlock, (genFunction, genEndFunction): surroung loop for
9238         saving/loading used registers in stack with PC_INFO pCodes,
9239         INF_LREGS. Code in between can then be optimized by pCode optimizer
9240         to support function calls,
9241         * (genDataPointerSet): fixed bug which loaded float fields in
9242         structures with corrupt data,
9243         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
9244         in a standard way debug info on stderr. Feature used for developing
9245         and debugging only,
9246         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
9247         obsolete chunks of code,
9248         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
9249         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
9250         * pic16/src/pcode.c (pic16_newpCodeInfo,
9251         * (pic16_newpCodeOpLocalRegs),
9252         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
9253         feature,
9254         * (pic16_pCodeConstString): printing of the initial value of a
9255         symbol as a comment is inhibited since parsing was already done by
9256         copyStr and output is corrupt,
9257         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
9258
9259 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9260
9261         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
9262
9263 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
9264
9265         * as/mcs51/lkarea.c: removed old K&R style,
9266           (lnksect): changed check on boundary error,
9267           (lnksect2): changed check on boundary error,
9268           (lnksect2): extend XSTK to end of page if size = 1
9269         * as/mcs51/lkmain.c: removed old K&R style,
9270           (Areas51): create l_IRAM symbol
9271         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
9272         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
9273           model-mcs51-stack-auto, added model-mcs51-xstack-auto
9274         * device/lib/_mullong.c: added version to be compiled with xstack
9275         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
9276         * device/lib/mcs51/crtxclear.asm: clear pdata as well
9277         * device/lib/mcs51/crtxstack.asm: fixed comment
9278         * src/SDCCglue.c: maxInterrupts defaults to 0,
9279           (emitMaps): added pdata,
9280           (createInterruptVect): (re)moved default,
9281           (glue): added pdata,
9282           (glue): moved __start__xstack to XSTK with default size 1
9283         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
9284           and options.float_rent when options.stackAuto is set,
9285           (linkEdit): only write XDATA_NAME if provided on command line
9286         * src/SDCCmem.h,
9287         * src/SDCCmem.c: added pdata
9288         * src/port.h: added pdata_name to PORT
9289         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
9290           (saveRegisters, unsaveRegisters): removed usage of B,
9291           (genMinus): fixed accumulator clash,
9292           (genJumpTab): added comment, this needs another look
9293         * src/mcs51/gen.c: added check for "B in use" paranoia,
9294           added pushB() and popB()
9295         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
9296           chance
9297         * src/avr/main.c,
9298         * src/ds390/main.c,
9299         * src/hc08/main.c,
9300         * src/mcs51/main.c,
9301         * src/pic/main.c,
9302         * src/pic16/main.c,
9303         * src/xa51/main.c,
9304         * src/z80/main.c: (reset_regparms) made void parameter explicit and
9305           added PSEG (PAG,XDATA) or NULL to port specifier
9306         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
9307         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
9308           (_mcs51_genInitStartup): removed __start__xstack equ,
9309           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
9310         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
9311         * src/z80/gen.c (_rleAppend): fixed warnings
9312         * support/regression/tests/zeropad.c: added pdata test
9313         * .version: bumped to 2.4.6
9314
9315 2004-10-17 Borut Razem <borut.razem AT siol.net>
9316
9317         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
9318         as a part of nightly build
9319
9320 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
9321
9322         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
9323         WREG holds the first byte function parameters,
9324         * (aopForSym): take special case for symbols which are in FARSPACE
9325         but in CODESPACE too,
9326         * (assignResultValue): modified to take into account _G.useWreg,
9327         * (genCall): don't use wreg for parameter passing when function is
9328         declared as reentrant, too, added optimization INCF to stack
9329         pointer when stack parameter count is 1,
9330         * (genFunction, genEndFunction): refurnished and fixed to not using
9331         wreg for passing parameters when function has varargs or is
9332         reentrant, fixed bug with symbol name compare for generating
9333         functions in absolute address,
9334         * (pic16_storeForReturn): refurnished,
9335         * (genCmp): began writing a new version of the function, not ready
9336         yet, therefore it is disabled,
9337         * (genAssign): do not read code memory when assigning a function to
9338         a pointer function,
9339         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
9340         array of characters, not pointer,
9341         * (pic16initialComments): in debug mode emit an .ident directive for
9342         the assembler,
9343         * (_process_pragma): emit a new warning type (internal to pic16)
9344         when setting stack to default length, emit a similar warning when
9345         placing a function at absolute address and address is not word aligned
9346         * (_pic16_parseOptions): added 'return TRUE' statement,
9347         * (_pic16_linkEdit): if compiling a source, then add the source's
9348         file object, first in the list of objects to link,
9349
9350 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
9351
9352         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
9353         * src/pic/main.c : removed VC warning.
9354         * src/pic/gen.c : changed comment.
9355
9356 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
9357
9358         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
9359         reference to a deprecated symbol _GPTRREG was causing failure to
9360         link. Thanks G. M. Gallant for the info.
9361
9362 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
9363
9364         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
9365         comments for Bugs item #954788.
9366
9367 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
9368
9369         * src/pic16/device.c (pic16_dump_gsection,
9370         * pic16_groupRegistersInSection): handle symbols declared to be in
9371         access bank differently,
9372         * src/pic16/gen.c (struct _G): added field resDirect,
9373         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
9374         send values read from stack directly to result and don't allocate
9375         temporary values,
9376         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
9377         same registers,
9378         * (pic16_sameRegsOfs): NEW,
9379         * (freeAsmop): if _G.resDirect is set then do not mark registers as
9380         free because they were not allocated from temporary pool,
9381         * pic16_popRegFromString): workaround to fix a problem with
9382         allocating variables twice or never,
9383         * (genGenPointerGet): using PRODL instead of FSR0H,
9384         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
9385         instead of FSR0H,
9386         * (genAssign): take advantage of the _G.resDirect flag,
9387         * (genCast): around line 11844, use mov2f instead of directly
9388         MOVFF'ing between operands to account for literal values,
9389         * src/pic16/genutils.c: some new debug functions for gpsim have been
9390         added,
9391         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
9392         float with integer part only,
9393         * src/pic16/main.c (_process_pragma): handle pragma udata access to
9394         place variables in access bank
9395         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
9396         updated sources to reflect recent changes in gen.c
9397
9398 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
9399
9400         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
9401         sources that searched for headers in installation path, now the
9402         device/include/pic16 is used,
9403         * src/pic16/glue.c (pic16glue),
9404         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
9405         .line directives if not in debug mode, this suppresses assembler's
9406         warnings for ignored directives
9407
9408 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
9409
9410         * src/port.h: made reset_regparms prototype void parameter explicit.
9411         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
9412         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
9413         * doc/sdccman.lyx: documented warning disabling and how to use
9414           printf_large to make it print floats.
9415         * device/include/stdbool.h: NEW
9416         * device/lib/_atof.c,
9417         * device/lib/_divuint.c,
9418         * device/lib/_divulong.c,
9419         * device/lib/expf.c,
9420         * device/lib/printf_large.c,
9421         * device/lib/sincosf.c,
9422         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
9423         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
9424           a completely reentrant lib.
9425
9426 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
9427
9428         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
9429         * device/include/pic16/stdio.h: fixed bug with colon
9430
9431 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
9432
9433         * device/include/pic16/stdio.h,
9434         * device/include/pic16/stdlib.h,
9435         * device/include/pic16/math.h: NEW
9436         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
9437         declared as _naked to reduce overhead
9438         * device/lib/Makefile.in (target port-specific-objects-pic16):
9439         changed * to *.* so to ignore the CVS directory,
9440         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
9441         stacked variables back in stack,
9442         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
9443         corruption
9444
9445 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
9446
9447         * .version: bumped version number to 2.4.5
9448         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
9449         * support/Util/SDCCerr.c (messages structure): added entry for
9450         W_POSSBUG2
9451
9452         Large cumulative patch for pic16 port and libraries.
9453         * device/include/pic16/sdcc-lib.h,
9454         * device/include/pic16/stdarg.h,
9455         * device/include/asm/pic16/features.h,
9456         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
9457         * device/include/pic16/float.h: changes reentrant keyword with
9458         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
9459         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
9460         updated target build-libraries to include objects from gptr,
9461         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
9462         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
9463         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
9464         all function headings,
9465         * src/SDCCmain.c: added global parameter userIncDirsSet,
9466         * (parseCmdLine): when option -I is encountered add directory to
9467         userIncDirsSet too,
9468         * src/version.awk: added space between control and long,
9469         * src/pic16/NOTES: added some notes for the port,
9470         * src/pic16/gen.c: added prototype for mov2fp function,
9471         * (fReturnpic16[]): properly named return value registers,
9472         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
9473         * (aopForSym): added code to handle symbols with onStack flag set,
9474         symbols onStack are allocated PTRSIZE bytes,
9475         * (aopFreeAsmop): handles special case where asmops are stack objects,
9476         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
9477         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
9478         added argument lock to trace flaws in allocating temporary registers
9479         when developing port,
9480         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
9481         * (pic16_popRegFromString): reenabled allocating a direct register
9482         from string,
9483         * (assignResultValue): various beautifications,
9484         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
9485         referenced function argument,
9486         * (genIpush): reenabled to allow stacked arguments, handles only
9487         ic->parmPush iCodes,
9488         * (genCall, genPcall): major changes to allow for variable argument
9489         functions, fixed a bug with falsely restoring stack pointer after
9490         returning from call,
9491         * (genFunction): pending code for critical function,
9492         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
9493         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
9494         * (genNearPointerGet): fixed bug with indirect reading, was always
9495         reading from INDF0
9496         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
9497         pointers,
9498         * (genAddrOf): rewrote code to take address of a stacked function parameter
9499         * (genCast): fixed casting to generic pointer type,
9500         * src/pic16/gen.h: added AOP_STA,
9501         * (struct asmop): added field stk,
9502         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
9503         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
9504         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
9505         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
9506         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
9507         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
9508         generic pointers,
9509         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
9510         and library paths,
9511         * (pic16_port structure): generic pointer size is set to 3,
9512         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
9513         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
9514         compiler warning,
9515         * src/pic16/ralloc.c (allocReg): prevent allocating register when
9516         operand is an iTemp,
9517
9518 2004-09-24 Martin Helmling <mh AT octo-soft.de>
9519
9520         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
9521         * debugger/mcs51/simi.c: addapt new syntax of s51
9522
9523 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
9524
9525         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
9526         * src/pic16/pcode.c: commented out some calls to free() in order to
9527         fix bug #989576,
9528
9529 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9530
9531         * src/SDCCicode.h,
9532         * src/SDCCicode.c (isiCodeInFunctionCall),
9533         * src/avr/ralloc.c (selectSpil),
9534         * src/pic/ralloc.c (selectSpil),
9535         * src/pic16/ralloc.c (selectSpil),
9536         * src/ds390/ralloc.c (selectSpil),
9537         * src/hc08/ralloc.c (selectSpil),
9538         * src/xa51/ralloc.c (selectSpil),
9539         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
9540         stack in the middle of a function call sequence (fixes bug #1020268)
9541         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
9542         costs associated with the minimum switch case.
9543
9544 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9545
9546         * src/SDCC.lex: fixed bug #1030549
9547
9548 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9549
9550         * src/SDCCcse.h (struct cseDef),
9551         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
9552         over a function call if the CSE is derived from a symbol whose
9553         address has been taken (fixes bug #1029883)
9554         * support/regression/tests/bug-1029883: a new regression test for
9555         this bug
9556
9557 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9558
9559         * src/hc08/gen.c (emitinline): fixed bug #1029778
9560         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
9561         to a cast object is no longer a syntax error ("fixes" bug #1030006,
9562         and starts toward RFE #905167)
9563
9564 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
9565
9566         * src/pic16/gen.c (mov2f): New function to move an operand to
9567         another without considering if it is a literal or a register,
9568         * (pic16_sameRegs): don't check if they are both AOP_REG,
9569         * (AccRsh): removed andmask=0 lines,
9570         * (genLeftShift): duplicated to be improved in future versions,
9571         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
9572         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
9573         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
9574         * (pic16initMnemonics): added initialization for POC_INFSNZW,
9575         * (insertBankSwitch): fixed inserting banksel directives algorithm
9576         for instructions that follow a skip instruction, this fixes a report
9577         for broken subtraction code generation,
9578         * src/pic16/ralloc.c (deassignLRs): do not free register if current
9579         iCode is a left op, just in case result and right share the same
9580         registers
9581
9582 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9583
9584         * src/hc08/main.c,
9585         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
9586         preservation of HX
9587         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
9588         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
9589         on 2004-09-12; it was buggy
9590
9591 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
9592
9593         * src/SDCCsymt.h: removed RESULT_CHECK
9594         * src/SDCCast.c,
9595         * src/SDCCglue.c,
9596         * src/SDCCval.c,
9597         * src/pic/glue.c,
9598         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
9599
9600 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
9601
9602         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
9603         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
9604         configuration values no more rejected by compiler, they are assigned
9605         to configuration registers with a warning message instead,
9606         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
9607         the for-loop so last conf register is emitted too,
9608         * (_pic16_initPaths): link library libsdcc.lib by default,
9609         * (_hasNativeMulFor): modified test for multiplication according to
9610         Raphael Neider's remarks. Integer multiplication is also done with
9611         support functions,
9612         * device/include/pic16/pic18fregs.h: corrected type error in while
9613         testing and including 18f6720 header file
9614
9615 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
9616
9617         * src/pic16/device.h (pic16_options): removed field use_crt,
9618         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
9619         until an optimization to handle single bits is added,
9620         * (pic16_loadFSR0): moved before genUnpackBits,
9621         * (genAnd): some white lines removed,
9622         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
9623         leave_reset flags in pic16_options when using crt modules,
9624
9625 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
9626
9627         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
9628           for bugs 898889 & 979599. Also used some safer print instructions.
9629
9630 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
9631
9632         * src/pic16/device.h (pic16_options_t): added field use_crt,
9633         crt_name, no_crt,
9634         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
9635         catch a probable future bug,
9636         * src/pic16/gen.c: aopIdx function commented out,
9637         * (genAssign): commented out old code which used aopIdx,
9638         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
9639         code, added if conditionals to take into account the --use-crt
9640         command line options,
9641         * src/pic16/main.c (pic16_optionsTable): added new command line
9642         options, --use-crt= and --no-crt,
9643         * (_pic16_linkEdit): now the proper crt object is added in the
9644         linker command line except than when --no-crt is specified,
9645         * src/pic16/pcode.c,
9646         * src/pic16/pcode.h: added some structures and functions for a new
9647         optimization scheme to compansate for instruction overhead between
9648         same iCodes, this scheme is currently under development and is not
9649         working in any way,
9650         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
9651         to && operator,
9652         * device/lib/pic16/startup/crt0i.c,
9653         * device/lib/pic16/startup/crt0iz.c: added global char variable
9654         __uflags to force the generation of an idata section
9655
9656 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
9657
9658         * doc/Makefile,
9659         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
9660         * doc/sdccman.lyx: updated sdcc version to 2.4.4
9661
9662 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9663
9664         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
9665         Frieder) and clarified the default code optimization mode
9666
9667 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9668
9669         * src/SDCC.lex (doPragma, process_pragma),
9670         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
9671         "opt_code_size", and "opt_code_balanced"
9672         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
9673         regrouped options by category, added support for category headers
9674         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
9675         and "--opt-code-size"
9676         * doc/sdccman.lyx: documented these new options and pragmas
9677         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
9678         preference into account
9679
9680 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
9681
9682         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
9683           geniCodePreDec): Fixed bug 904237 by generating a warning
9684         * src/SDCCerr.h,
9685         * src/SDCCerr.c: added warning W_SIZEOF_VOID
9686
9687 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
9688
9689         * src/pic/device.c : When no max ram set validate full memory range.
9690         * src/pic/pcode.c,
9691         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
9692
9693 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
9694
9695         * device/lib/_gptrget.c,
9696         * device/lib/_gptrput.c: updated comment
9697         * device/lib/calloc.c,
9698         * device/lib/free.c,
9699         * device/lib/malloc.c,
9700         * device/lib/realloc.c: added LGPL, made them reentrant-safe
9701         * src/SDCCcse.c (cseBBlock),
9702         * src/SDCCicode.c (printOperand, geniCodeArray),
9703         * src/SDCCicode.h (struct operand): fixed bug 868103
9704         * support/regression/tests/bug-868103.c: added
9705         * src/SDCCast.c (searchLitOp),
9706         * src/SDCCcse.h (struct cseDef),
9707         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
9708         * src/SDCCicode.h (struct operand),
9709         * src/SDCCsymt.h (struct sym_link),
9710         * src/avr/gen.c (hasInc),
9711         * src/ds390/gen.c (hasInc),
9712         * src/hc08/gen.c (genPlusIncr, hasInc),
9713         * src/mcs51/gen.c (hasInc),
9714         * src/pic16/glue.c (pic16_printIvalChar),
9715         * src/pic16/ralloc.c (regWithIdx),
9716         * src/xa51/gen.c (hasInc) : removed warnings
9717         * src/SDCCast.c (createBlock): added comment ???
9718         * src/hc08/ralloc.c: updated comments
9719
9720 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9721
9722         * doc/sdccman.lyx: updated section on switch statements, added
9723         section about semaphore locking
9724         * doc/Makefile: added option -info for latex2html
9725         * device/lib/_gptrget.c,
9726         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
9727
9728 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
9729
9730         * src/pic/device.h,
9731         * src/pic/device.c,
9732         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
9733          maxram is less than 0x100.
9734
9735 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
9736
9737         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
9738
9739 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9740
9741         * src/port.h,
9742         * src/mcs51/main.c,
9743         * src/ds390/main.c,
9744         * src/z80/main.c,
9745         * src/hc08/main.c,
9746         * src/pic/main.c,
9747         * src/pic16/main.c,
9748         * src/avr/main.c,
9749         * src/xa51/main.c
9750         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
9751         a jump table is the best form for a switch statement, including
9752         automatic insertion of missing cases to make the case range
9753         continuous. Developed in collaboration with Frieder Ferlemann.
9754
9755 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9756
9757         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
9758         accumulator result if it needs sign extension
9759
9760 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9761
9762         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
9763
9764 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9765
9766         * device/lib/gbz80/printf.c,
9767         * device/lib/z80/printf.c: removed define for NULL
9768
9769 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9770
9771         * as/xa51/xa_link.c,
9772         * device/examples/ds390/ow390/ad26.c,
9773         * device/examples/ds390/ow390/cnt1d.c,
9774         * device/examples/ds390/ow390/counter.c,
9775         * device/examples/ds390/ow390/ds2480.h,
9776         * device/examples/ds390/ow390/ds2480ut.c,
9777         * device/examples/ds390/ow390/findtype.c,
9778         * device/examples/ds390/ow390/gethumd.c,
9779         * device/examples/ds390/ow390/owllu.c,
9780         * device/examples/ds390/ow390/ownetu.c,
9781         * device/examples/ds390/ow390/swt12.c,
9782         * device/examples/ds390/ow390/swtloop.c,
9783         * device/examples/ds390/ow390/temp.c,
9784         * device/examples/ds390/ow390/temp10.c,
9785         * device/examples/ds390/ow390/thermo21.c,
9786         * device/examples/ds390/ow390/tinilnk.c,
9787         * device/examples/ds390/ow390/tstfind.c,
9788         * device/examples/serialcomm/windows/serial.cpp,
9789         * device/examples/serialcomm/windows/test_serialcomm.cpp,
9790         * device/include/reg51.h: fixed line endings for cvs
9791
9792 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9793
9794         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
9795         packRegsForAccUse, packRegisters): new accumulator register
9796         packing algorithm
9797         * support/regression/ports/hc08/support.c (_putchar): suppress
9798         warning of unused variable
9799         * src/SDCCicode.c: added SWAP entry to codeTable
9800
9801 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
9802
9803         * device/lib/sprintf.c: forgot to add this file before previous commit
9804
9805 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
9806
9807         * src/pic16/gen.c (genPackBits): added operand right in function
9808         parameters, load result directly if p_type is POINTER (that is
9809         called by genNearPointerSet)
9810         * (genUnPackBits): added operand left in function parameters,
9811         * (genNearPointerGet, genNearPointerSet): prevent the loading of
9812         FSR0 if accessing bitfields,
9813
9814 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
9815
9816         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
9817           _print_format; updated printf, sprintf, vsprintf
9818         * device/include/asm/default/features.h: corrected comment/define
9819         * device/lib/Makefile.in: added sprintf.c
9820         * device/lib/libsdcc.lib: added sprintf module
9821         * device/lib/printf_large.c,
9822         * device/lib/vprintf.c,
9823         * device/lib/sprintf.c: totally refactored printf_large and vprintf
9824           into these 3 files
9825         * support/regression/Makefile: changed ALL_PORTS into a usefull default
9826         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
9827         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
9828           hc08 test
9829         * support/regression/tests/zeropad.c: define idata as data for hc08
9830
9831 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9832
9833         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
9834         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
9835         labels are referenced at least once (even if a reference is not found)
9836         * src/hc08/gen.c (emitcode): set isComment flag for comments
9837         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
9838         loads), rules 6a..6b (optimize jumps to return)
9839
9840 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9841
9842         * device/lib/acosf.c (acosf),
9843         * device/lib/asinf.c (asinf),
9844         * device/lib/atanf.c (atanf),
9845         * device/lib/ceilf.c (ceilf),
9846         * device/lib/cosf.c (cosf),
9847         * device/lib/coshf.c (coshf),
9848         * device/lib/cotf.c (cotf),
9849         * device/lib/fabsf.c (fabsf),
9850         * device/lib/floorf.c (floorf),
9851         * device/lib/log10f.c (log10f),
9852         * device/lib/logf.c (logf),
9853         * device/lib/sinf.c (sinf),
9854         * device/lib/sinhf.c (sinhf),
9855         * device/lib/sqrtf.c (sqrtf),
9856         * device/lib/tanf.c (tanf),
9857         * device/lib/tanhf.c (tanhf),
9858         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
9859         replaced all instances of "reentrant" in the library functions
9860         defined in math.h with this macro.
9861         * support/regression/tests/float_trans.c: reenabled test for hc08
9862
9863 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
9864
9865         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
9866         erroneously deleted
9867
9868 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9869
9870         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
9871         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
9872         multi-byte volatile operands are used
9873         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
9874         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
9875         initialization to area GSINIT0 so that it would always precede
9876         any static initializers in GSINIT
9877         * support/regression/tests/zeropad.c: fixed idata define for hc08
9878         * support/regression/tests/bug-927659.c,
9879         * support/regression/tests/float_trans.c: disabled tests for hc08
9880         pending missing library routines
9881         * .version: increased version number to 2.4.4 - hc08 port now passes
9882         regression tests
9883
9884
9885 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
9886
9887         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
9888         * Makefile.common.in,
9889         * as/Makefile,
9890         * as/hc08/Makefile.in,
9891         * as/mcs51/Makefile.in,
9892         * as/z80/Makefile.in,
9893         * debugger/mcs51/Makefile.in,
9894         * device/include/Makefile.in,
9895         * device/lib/Makefile.in,
9896         * doc/Makefile,
9897         * link/Makefile,
9898         * link/z80/Makefile.in,
9899         * packihx/Makefile.in,
9900         * sim/ucsim/main_in.mk,
9901         * sim/ucsim/avr.src/Makefile.in,
9902         * sim/ucsim/doc/Makefile.in,
9903         * sim/ucsim/gui.src/serio.src/Makefile.in,
9904         * sim/ucsim/hc08.src/Makefile.in,
9905         * sim/ucsim/s51.src/Makefile.in,
9906         * sim/ucsim/xa.src/Makefile.in,
9907         * sim/ucsim/z80.src/Makefile.in,
9908         * src/Makefile.in,
9909         * support/cpp2/Makefile.in,
9910         * support/librarian/Makefile,
9911         * support/makebin/Makefile: added DESTDIR to the install path proposed
9912         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
9913         * doc/sdccman.lyx: added DESTDIR documentation
9914
9915 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
9916
9917         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
9918         instruction for interrupt handlers, use fast returns when returning
9919         from high priority interrupts
9920
9921 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9922
9923         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
9924         code generation
9925         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
9926         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
9927         bugs, ported much of Bernhard's code from mcs51
9928         * src/mcs51/gen.c (genSend),
9929         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
9930         than one when calling a reentrant function
9931         * device/lib/_mullong.c: defined an alternate struct layout for big
9932         endian ports (hc08)
9933
9934 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9935
9936         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
9937         test
9938
9939 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9940
9941         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
9942         are sane and complete before asking the port its prefered parameter
9943         passing method (fixes bug #1017633)
9944         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
9945         and _ret3
9946
9947 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9948
9949         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
9950         problem in bitfields >= 8 bits.
9951
9952 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9953
9954         * src/SDCCsymt.c: undid changes that were not meant to be committed
9955
9956 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9957
9958         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
9959
9960 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9961
9962         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
9963           copied and wrong bit got inverted
9964
9965 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9966
9967         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
9968         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
9969         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
9970         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
9971         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
9972         assignments to bitfields at known addresses
9973         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
9974         reads from bitfields at known addresses
9975         * src/hc08/ralloc.c (packRegisters),
9976         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
9977         genhc08Code): optimize pointer get values used as conditionals
9978         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
9979         and branch
9980
9981 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9982
9983         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
9984         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
9985         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
9986         as conditionals
9987
9988 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9989
9990         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
9991
9992 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9993
9994         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
9995         related problems
9996
9997 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
9998
9999         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
10000
10001 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10002
10003         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
10004         mcs51 port
10005
10006 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
10007
10008         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
10009
10010 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10011
10012         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
10013         cases use more compact code.
10014
10015 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
10016
10017         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
10018
10019 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10020
10021         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
10022
10023 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10024
10025         * src/SDCCsymt.h,
10026         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
10027         parameter of changePointer() from symbol* to sym_link*
10028         * src/SDCCast.c (decorateType): call changePointer() for CAST op
10029         * src/SDCCsymt.c (compareType): void* type is castable to other
10030         pointers, but not necesarily an exact match.
10031         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
10032         is no longer blindly treated as an exact match.
10033         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
10034
10035 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
10036
10037         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
10038
10039 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
10040
10041         * src/pic/gen.c,
10042         * src/pic/pcode.c,
10043         * src/pic/ralloc.h,
10044         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
10045
10046 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
10047
10048         * src/pic/device.c,
10049         * src/pic/device.h,
10050         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
10051
10052 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10053
10054         * src/mcs51/gen.c (emitcode): fixed bug #992819
10055
10056 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
10057
10058         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
10059           there's no need to make it worse
10060
10061 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10062
10063         * src/mcs51/ralloc.c (deassignLR),
10064         * src/ds390/ralloc.c (deassignLR),
10065         * src/hc08/ralloc.c (deassignLR),
10066         * src/z80/ralloc.c (deassignLR),
10067         * src/pic/ralloc.c (deassignLR),
10068         * src/pic16/ralloc.c (deassignLR),
10069         * src/avr/ralloc.c (deassignLR),
10070         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
10071         rlivePoint): fixed another part of bug #971834
10072
10073 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10074
10075         * src/z80/main.c: enabled "critical" keyword
10076         * src/z80/mappings.i,
10077         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
10078         functions (fixes bug #979646)
10079         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
10080
10081 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10082
10083         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
10084           such as c:\mydir.
10085
10086 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
10087
10088         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
10089           doesn't disable too much optimizations
10090
10091 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
10092
10093         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
10094
10095 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
10096
10097         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
10098
10099 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
10100
10101         * src/pic/gen.c tidied up tabs
10102         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
10103         * src/pic/main.c tidied up tabs
10104         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
10105         * src/pic/pcoderegs.c tidied up tabs
10106         * src/pic/ralloc.c tidied up tabs
10107
10108 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
10109
10110         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
10111         to S_FIXED for pic16 port and when symbol is not in level 0,
10112         allocate for S_REGISTER storage class and pic16 port, too,
10113         * src/pic16/device.h: prototype for checkSym,
10114         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
10115         * (pic16_assignConfigWordValue): test the value and the mask to
10116         validate that the value is suitable for the configuration word,
10117         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
10118         collect extern declared symbols, don't emit symbol twice, check
10119         first if symbol is in publics set first,
10120         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
10121         * added command line '--fstack' which enables an experimental
10122         feature for stack access, too buggy to be used yet...
10123         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
10124         * (pic16_allocDirReg): when register has storage class S_REGISTER
10125         allocate in pic16_dynAccessRegs,
10126         * device/include/pic16/pic18f????.h: modified configuration word
10127         naming convention, words started as CONFIG0H but should be CONFIG1H
10128
10129 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
10130
10131         * device/include/mcs51reg.h: fixed bug 970993
10132
10133 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
10134
10135         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
10136         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
10137         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
10138         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
10139         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
10140         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
10141           error/warning numbers,
10142           added function setWarningDisabled()
10143         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
10144         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
10145           _memcmp.c _memmove.c calloc.c realloc.c free.c
10146         * support/regression/tests/malloc.c: added tests for new functionality
10147         * support/regression/tests/zeropad.c: added tests for truncated initializers
10148           and initialized char arrays starting with '\x0'
10149         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
10150
10151 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
10152
10153         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
10154
10155 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10156
10157         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
10158         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
10159         peephole 177.e. Thanks to anonymous
10160
10161 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
10162
10163         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
10164         function isn't used in the source but referenced as a
10165         variable initializer then declare it as extern in .asm file
10166
10167 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
10168
10169         * .version: increased version number to 2.4.3
10170
10171         Adding version extension according to ChangeLog CVS revision
10172         * src/Makefile.in (target all): added dependency 'version.h'
10173         * (rule version.h): added rule to create version.h from ChangeLog,
10174         * (rule dep): added dependency version.h,
10175         * src/version.awk: AWK script to create version.h
10176         * src/SDCCdwarf2.c (dwWriteModule),
10177         * src/SDCCglue.c (initialComments),
10178         * src/SDCCmain.c (printVersionInfo): modified to write after
10179         version string the version extension number,
10180         * src/SDCCutil.c: included "version.h"
10181         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
10182         number,
10183         * src/SDCCutil.h: added prototype for getBuildNumber
10184
10185         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
10186         includeDirsSet, too,
10187         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
10188         const char [] is found in function prototype...
10189
10190         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
10191         moving to WREG with source is already in WREG,
10192         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
10193         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
10194         * (aopForSym): stack'ed symbols are partially supported, added
10195         if-clause to support symbols in FARSPACE,
10196         * (sameRegs): added test for AOP_ACC to see if registers are same,
10197         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
10198         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
10199         * (pic16_popRegFromString): will not allocate a new register if it
10200         doesn't find one by name, bug may have introduced...
10201         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
10202         * (genIpush): revived to use pic16 port's stack,
10203         * (genAddrOf): added incomplete case for stack'ed operand,
10204         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
10205         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
10206         can handle multibyte operands,
10207         * src/pic16/glue.c (pic16_printIval*): some debug info added,
10208         * (pic16initialComments): added message for MPLAB compatibility
10209         mode enabled,
10210         * src/pic16/main.h: prototype for pic16_mplab_comp,
10211         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
10212         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
10213         * (_pic16_linkEdit): NEW, handles link stage, transferred here
10214         because of increased complexity of procedure,
10215         * (_process_pragma): stack pragma changed to format 'stack pos len',
10216         emit symbol '_stack_end' to conform with gplink,
10217         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
10218         to search for register,
10219         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
10220         PO_GPR_REGISTER,
10221         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
10222         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
10223         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
10224         case for PO_GPR_REGISTER,
10225         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
10226         dies, the new era is ahead !...
10227         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
10228         pic16_dynInternalRegs,
10229         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
10230         * (pic16_allocDirReg): minor optimizations and bug fixes,
10231         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
10232
10233         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
10234         load stack and frame pointer with address of 'stack_end' symbol
10235
10236 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
10237
10238         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
10239         without source code but only variable initializers
10240
10241 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
10242
10243         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
10244         external are not declared as extern to reduce overhead while linking
10245
10246 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
10247
10248         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
10249
10250 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
10251
10252         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
10253           Yee Keat for the patch
10254         * src/SDCCast.c (decorateType): fixed bug #979599
10255         * src/ds390/gen.h: removed local fReturnSizeDS390
10256         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
10257         * src/ds390/gen.c (genAnd, genOr, genXor),
10258         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
10259
10260 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
10261
10262         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
10263         add relFilesSet to $3, manipulate $2 to handle linking of object
10264         files without source files in command line,
10265         * device/include/pic16 (all headers): added ID location macros,
10266         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
10267         entries for ID location bytes,
10268         * (pic16_assignIdByteValue): NEW,
10269         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
10270         added field dumpcalltree to pic16_options_t,
10271         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
10272         is used instead of pic16_Gstack_base_addr, check if (ifx) before
10273         emitting rFalseIfx label after check_carry label,
10274         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
10275         pic16_emitDIRegs), NEW
10276         * (pic16glue): dump .calltree file when option --calltree found,
10277         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
10278         * (_pic16_genAssemblerPreamble): emit ID locations after
10279         configuration registers,
10280         * (pic16_linkCmd): modifications of the link command,
10281         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
10282         * (pic16_pCodeInitRegisters): don't init stack registers,
10283         * (pic16_findPrevInstruction): fixed bug,
10284         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
10285         bug with immediate registers,
10286         * (buildCallTree): traces stack push and pop,
10287         * (pct2): dump also stack usage for each function,
10288         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
10289         * (pic16_allocDirReg): various modifications,
10290         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
10291         fixed to 1,
10292
10293 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
10294
10295         * src/pic16/pcode.c: removed buggy double colon
10296
10297 2004-07-01 Borut Razem <borut.razem AT siol.net>
10298
10299         * support/scripts/sdcc.nsi: added include/pic16 to setup
10300
10301 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
10302
10303         * device/lib/Makefile.in: fixed bug in target objects-pic16,
10304         * device/lib/pic16/Makefile: prefixed with dash (-) command under
10305         target 'clean',
10306         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
10307         specific command line arguments. Also added sample lkr script
10308         for placing a variable at a specific memory bank.
10309         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
10310         at a specific memory bank,
10311         * (pic16_dump_isection): fixed bug which caused string literals to
10312         be omitted when dumping idata section,
10313         * (pic16_groupRegistersInSection): added code to handle registers
10314         in specific memory banks,
10315         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
10316         public, all references are renamed too,
10317         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
10318         AOP_DPTR2,
10319         * (pic16_storeForReturn): added case to handle when dest is WREG,
10320         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
10321         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
10322         pic16_rel_udata, check to see if that register is marked as being
10323         a member of a specific memory bank,
10324         * (pic16_printIvalCharPtr): added code to add string literals either
10325         to code or the idata sections,
10326         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
10327         also accept the 'udata' pragma,
10328         * src/pic16/main.h: new structure types sectName and sectSym
10329         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
10330         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
10331         * (pic16_findPrevInstruction): fixed, it returned nothing,
10332         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
10333         instruction combinations,
10334         * (pic16_FixRegisterBanking): heavily reorganised,
10335         * (pic16_AnalyzeBanking): if generating banksel directives is
10336         disabled, then don't call FixRegisterBanking at all,
10337         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
10338         completely removed,
10339         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
10340
10341 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
10342
10343         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
10344         Phuah Yee Keat <yk.phuah AT nestac.com>
10345
10346 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
10347
10348         * src/pic16/glue.c (pic16createInterruptVect): function now emits
10349         correctly the IVT even if it is relocated to some other location
10350
10351 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
10352
10353         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
10354         * device/include/pic16/pic18f2220.h: NEW,
10355         * device/lib/pic16/libdev/pic18f2220.c: NEW,
10356         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
10357         * src/pic16/device.c (struct Pics16): added info for 18f2220,
10358         * src/pic16/device.h (struct pic16_options): added ivt_loc and
10359         nodefaultlibs, ivt_loc is the location of the interrupt vector
10360         table, and nodefaultlibs signs that default libraries should not be
10361         linked in link stage,
10362         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
10363         according to --ivt-loc argument,
10364         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
10365         when pragma stack is found,
10366
10367 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10368
10369         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
10370         256 (range check), 257 (do while), 258.a-f (bit banging
10371         f.e. on 3-wire SPI bus)
10372
10373 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10374
10375         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
10376         variables used exclusively within a loop
10377
10378 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
10379
10380         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
10381
10382 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10383
10384         * src/SDCClrange.c (computeClash): fixed bug #971834
10385
10386 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10387
10388         * src/mcs51/gen.c (genCmp): fixed bug #975903
10389         * src/hc08/gen.c (operandsEqu),
10390         * src/ds390/gen.c (operandsEqu),
10391         * src/z80/gen.c (operandsEqu),
10392         * src/pic/gen.c (operandsEqu),
10393         * src/pic16/gen.c (operandsEqu),
10394         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
10395         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
10396
10397 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10398
10399         * src/SDCCcse.c (cseBBlock): fixed bug #966963
10400
10401 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
10402
10403         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
10404         default case in switch statement,
10405         * glue.c (pic16_initPointer): expr is initialised via decoarteType
10406         to eliminate problem with initialisation of pointers, but problem
10407         still exists,
10408         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
10409         * (emitStaticSegment): removed various lines emitting debug info,
10410         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
10411         added processor registers for utilizing EEPROM,
10412         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
10413         configurable and set 8
10414
10415 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
10416
10417         * .version: increased version number to 2.4.2,
10418
10419         Cumulative patch for pic16 port
10420         * src/pic16/device.c: changed scheme to dump initial values for
10421         variables in idata segment, all print_idata* functions were removed,
10422         now the pic16_printIval* will be called,
10423         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
10424         * _pic16_printPointerType, pic16_printPointerType,
10425         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
10426         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
10427         NEW, similar to the respective functions in SDCCglue.c,
10428         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
10429         way, emitting hex bytes,
10430         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
10431
10432 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10433
10434         * src/avr/ralloc.c (serialRegAssign),
10435         * src/xa51/ralloc.c (serialRegAssign),
10436         * src/pic/ralloc.c (serialRegAssign),
10437         * src/pic16/ralloc.c (serialRegAssign),
10438         * src/hc08/ralloc.c (serialRegAssign),
10439         * src/z80/ralloc.c (serialRegAssign),
10440         * src/ds390/ralloc.c (serialRegAssign),
10441         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
10442
10443 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10444
10445         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
10446         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
10447
10448 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
10449
10450         Cumulative patch for pic16 port:
10451         * src/pic16/device.h (typedef PIC16_device) modified fields for
10452         defining microcontrollers,
10453         * src/pic16/device.c: added new info for all devices in Pics16 array,
10454         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
10455         to be optimised out by the pCode optimiser,
10456         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
10457         specially, bug reported by G.M. Gallant,
10458         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
10459         as force'd so that cannot be optimised out by pCode optimiser,
10460         * src/pic16/pcode.c,
10461         * src/pic16/pcodepeeph.c,
10462         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
10463         they are disabled by default, but can be enabled explicit with
10464         command argument --denable-peeps, for testing,
10465         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
10466         --pomit-ivt in COMPILE_FLAGS
10467
10468 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
10469
10470         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
10471           compilation on MSVC
10472
10473 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
10474
10475         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
10476
10477 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10478
10479         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
10480         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
10481
10482 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
10483
10484         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
10485         would only assign 0x300001 register.
10486
10487 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
10488
10489         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
10490         in COMPILE_FLAGS. Thanks to G. Gallant for report.
10491
10492 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10493
10494         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
10495         for ds80c400
10496         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
10497         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
10498         added peephole 254 (left shift), 255 (jump table)
10499
10500 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
10501
10502         * device/lib/Makefile.in: removed comment line with model-pic16,
10503         * (target port-specific-objects-pic16): the libraries and objects
10504         are copied to the build directory form the device/lib/pic16/bin
10505         directory
10506
10507         Cumulative patch concerning pic16 port:
10508         * library directory has been re-organized,
10509         * added support for PIC18F1220,
10510         * added headers and library sources for chips 18f1220,18f6520,
10511         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
10512
10513         * configuration registers setting has changed, now each supported
10514         device has a complete description of the registers it uses,
10515         * all initialisations are moved to idata sections, these section
10516         can be absolute or relocatable,
10517         * fixed initialisation of codespace variables,
10518         * fixed warning about PCLATU and gpsim,
10519         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
10520         * (genAssign): use table reads when assigning from variables in codespace,
10521         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
10522         char/int variables placed in codespace,
10523         * (pic16_emitConfigRegs): NEW, emits a list with configuration
10524         registers set in .asm file, no need for --pomit-config-words anymore,
10525         * (pic16glue): some 8051 legacy segments are commented out
10526         (to be removed completely),
10527         * added support for alternative assembler and linker with --asm=
10528         and --link= command line arguments,
10529         * peepholes are disabled automatically in the port, no need to
10530         specify on command line,
10531         * port supports natively char/int/long multiplication, but converts
10532         all divisions to support functions,
10533         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
10534         to the file set in variable $2,
10535         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
10536         strings in ASCII format and not in hex,
10537         * ralloc.c (serialRegAssign): added a triplet of conditional calls
10538         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
10539         allocate proper register if iCodes aren't temporary,
10540
10541 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
10542
10543         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
10544
10545 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
10546
10547         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
10548         is commented out
10549
10550 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10551
10552         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
10553         computed address is reused
10554         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
10555         multi-byte bitfields
10556
10557 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
10558
10559         * src/z80/gen.c: (genArrayInit): must check for pointers too
10560
10561 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
10562
10563         * support/regression/tests/zeropad.c: never meant to commit the
10564           nestedstruct test: removed, added check for GCC version
10565
10566 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
10567
10568         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
10569         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
10570         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
10571           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
10572           bugs 928906 and 954082 half-empty initializers
10573         * src/SDCCsymt.h,
10574         * src/SDCCsymt.c (getAllocSize): added for above fix
10575         * src/z80/gen.c (genArrayInit): fixed bug 741044
10576         * support/regression/tests/zeropad.c: added tests
10577
10578 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
10579
10580         * src/pic16/device.c (pic16_dump_section): corrected bug which
10581         caused some symbols of the libraries to be misplaced
10582
10583 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
10584
10585         * src/pic16/glue.c,
10586         * src/pic16/ralloc.h,
10587         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
10588         to fix conflict with pic port
10589
10590 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
10591
10592         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
10593         externs configuration variables,
10594         * src/pic16/ralloc.h,
10595         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
10596         prototype in header, commented out some debug messages
10597
10598 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
10599
10600         * src/pic16/glue.c,
10601         * src/pic16/main.c,
10602         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
10603         for gpasm COFF object generation. Thanks to D. Hawkins for
10604         his patch info
10605
10606 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10607
10608         * src/ds390/main.c,
10609         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
10610         Brock for spotting this)
10611         * src/ds390/gen.c (genEndFunction),
10612         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
10613         interrupt handler and critical. Disable push/pop optimizations when
10614         peephole optimizations disabled.
10615
10616 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
10617
10618         Updated pic16 library sources and headers.
10619         * device/lib/pic16/pic18f*/ ,
10620         * device/include/pic16/*.h: modified to handle structured SFR
10621         definitions
10622
10623 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
10624
10625         * src/port.h (PORT structure): added hook initPaths, now each
10626         port can declare its own default search paths,
10627         which can been seen with the --print-search-dirs option,
10628         see pic16 port for example,
10629         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
10630         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
10631         * (doPrintSearchDirs): NEW, replaces in a central manner the
10632         printing of search dirs which was split in set*Paths functions,
10633         * (main): added call to port->initPaths and doPrintSearchDirs,
10634         * src/avr/main.c,
10635         * src/ds390/main.c,
10636         * src/hc08/main.c,
10637         * src/izt/i186.c,
10638         * src/izt/tlcs900h.c,
10639         * src/mcs51/main.c,
10640         * src/pic/main.c,
10641         * src/pic16/main.c: modified port structures to reflect addition of
10642         initPaths hook,
10643
10644         * src/pic16/device.c (regCompare): registers are finally sorted by name,
10645         * (pic16_dump_section): for registers in same address reserve memory once,
10646         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
10647         to no_banksel,
10648         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
10649         result is greater in size than right or left,
10650         * (pic16_genUMult8X8_8): there are some cases where the result can
10651         be 16 bits size, so handle these,
10652         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
10653         * (pic16_outBitC): modified to emit pcodes,
10654         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
10655         or not,
10656         * (genDivOneByte): implemented algorithm to divide 8-bits,
10657         * (genCmp): uncommented goto, but issues still exist,
10658         * (genAnd): fixed a bug with variables >8bits,
10659         * (genPackBits): optimization added that uses BCF/BSF to change a
10660         single bit,
10661         * (genAssign): fixed bug when assigning floating point literals,
10662         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
10663         __sdcc_gsinit_startup label,
10664         * src/pic16/main.c (_pic16_init): removed search directory
10665         initialisations,
10666         * (_pic16_initPaths): NEW, used to initialise search directories,
10667         * (_hasNativeMulFor): support functions for all except char/int
10668         multiplication, and char division,
10669         * (PIC16_port struct): modified entry for native mul support,
10670         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
10671         no_banksel option,
10672         * (buildCallTree): call to register_usage is ifdef'ed out,
10673
10674 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10675
10676         * device/include/string.h: applied Stas Sergeev's patch to make this
10677         header file compatible with the preprocessor -Wundef option
10678         * src/SDCCmain.c (main): abort compilation if preprocessor reports
10679         failure (fixes bug #941458)
10680
10681 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10682
10683         * src/SDCCopt.c (killDeadCode): fixed bug #907733
10684         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
10685         that the variable, not the function, should be static
10686         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
10687         to be consistent with non-literal case
10688
10689 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10690
10691         * src/SDCCast.c (isConformingBody): fixed bug #949967
10692         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
10693         convilong): fixed bug #952086
10694
10695 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10696
10697         * src/SDCCmem.c (allocVariables): fixed bug #955321
10698
10699 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10700
10701         * src/hc08/main.c (_hc08_genAssemblerEnd),
10702         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
10703         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
10704         completely eliminated the use of a temporary file
10705         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
10706         when more than one file linked
10707         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
10708
10709 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10710
10711         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
10712         which fixes bug #543481
10713         * support/regression/tests/bug-751703.c: fixed comments left from a
10714         cut and paste error
10715         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
10716         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
10717         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
10718         scopes
10719         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
10720         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
10721         are now changed to underscores in moduleName
10722
10723 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10724
10725         * as/mcs51/lkmem.c: better fix for bug #954173
10726
10727 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
10728         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10729
10730         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
10731         * device/include/c8051f000.h,
10732         * device/include/c8051f120.h,
10733         * device/include/c8051f300.h,
10734         * device/include/c8051f310.h,
10735         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
10736         PWM16) and detab'ed
10737
10738 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10739
10740         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
10741         and mailing lists, doc'ed --no-peep-comments, removed reference
10742         to knoppix (newest version has no LyX/LaTeX), other minor changes
10743         * src/SDCCglue.c (glue): save 2 bytes stack space with
10744         option --main-return. The ljmp could probably be avoided too
10745
10746 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10747
10748         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
10749
10750 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10751
10752         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
10753         * src/SDCCopt.c (isLocalWithoutDef),
10754         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
10755         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
10756         (credit to Maarten Brock for patch #949363, on which this is based)
10757         * support/regression/tests/bug-751703.c: some test cases of extern used
10758         within inner scopes.
10759
10760 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10761
10762         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
10763         SPEC_STRUCT
10764         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
10765         struct definitions
10766         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
10767         dwWriteLabel): fix to create valid debugger symbols even when
10768         the module name has non-alphanumeric symbols in it
10769         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
10770         when a variable's allocation has been optimized away
10771
10772
10773 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10774
10775         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
10776         * src/hc08/main.c,
10777         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
10778         * src/mcs51/main.c,
10779         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
10780         * src/ds390/main.c,
10781         * src/z80/gen.c (z80_emitDebuggerSymbol),
10782         * src/z80/main.c,
10783         * src/pic/gen.c (pic14_emitDebuggerSymbol),
10784         * src/pic/main.c,
10785         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
10786         * src/pic16/main.c,
10787         * src/avr/gen.c (avr_emitDebuggerSymbol),
10788         * src/avr/main.c,
10789         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
10790         * src/xa51/main.c,
10791         * src/SDCCdebug.c (emitDebuggerSymbol),
10792         * src/SDCCdebug.h,
10793         * src/port.h: added a debugger struct to the port struct. Added a
10794         callback for defining debugger symbols
10795
10796         * src/SDCCast.c (createLabel),
10797         * src/SDCC.y (labeled_statement): mark all compiler generated labels
10798         with isitmp = 1
10799         * src/SDCCicode.h,
10800         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
10801         iCode back to the ast for the function
10802
10803         * src/hc08/ralloc.c (hc08_assignRegisters),
10804         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
10805         unneeded fields from the regs struct.
10806         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
10807         pushReg() & pullReg() functions instead of emitcode()
10808
10809         * src/hc08/gen.c (genLabel, genhc08Code),
10810         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
10811
10812         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
10813         debugger hooks
10814
10815         * src/hc08/gen.c (genEndFunction, genhc08Code),
10816         * src/hc08/gen.h,
10817         * src/mcs51/gen.c (genEndFunction, gen51Code),
10818         * src/mcs51/gen.h,
10819         * src/ds390/gen.c (genEndFunction, gen390Code),
10820         * src/ds390/gen.h,
10821         * src/z80/gen.c (genEndFunction, genZ80Code),
10822         * src/z80/gen.h,
10823         * src/z80/z80.h,
10824         * src/pic/gen.c (genEndFunction, genpic14Code),
10825         * src/pic/gen.h,
10826         * src/pic16/gen.c (genEndFunction, genpic16Code),
10827         * src/pic16/gen.h,
10828         * src/avr/gen.c (genEndFunction, genAVRCode),
10829         * src/avr/gen.h,
10830         * src/xa51/gen.c (genEndFunction, genXA51Code),
10831         * src/xa51/gen.h,
10832         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
10833         specific code to cdbFile.c and out of the backend code generators
10834
10835         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
10836         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
10837         starting address is now 0
10838
10839         * as/hc08/asm.h,
10840         * as/hc08/m08pst.c,
10841         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
10842         assembler directive for DWARF support
10843         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
10844
10845         * src/src.dsp,
10846         * src/Makefile.in,
10847         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
10848
10849 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10850
10851         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
10852         and inappropriate peephole optimization in jump tables
10853
10854 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10855
10856         * as/hc08/m08pst.c,
10857         * src/SDCCglue.c: sdccopt works for the hc08 port now
10858
10859 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
10860
10861         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
10862
10863 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10864
10865         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
10866
10867 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10868
10869         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
10870         rules
10871         * src/SDCCmain.c,
10872         * src/SDCCglobl.h,
10873         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
10874         comments from the peephole optimizer replacement rules
10875         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
10876         symbols
10877         * src/SDCCcse.c (updateSpillLocation),
10878         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
10879         equivalents
10880         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
10881         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
10882         objects far pointers
10883
10884 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10885
10886         * src/SDCCsymt.h: a missing part of my last change
10887         * src/pic/ralloc.c (regTypeNum),
10888         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
10889
10890 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10891
10892         * src/SDCCicode.h,
10893         * src/SDCCicode.c (aggrToPtrDclType),
10894         * src/SDCCptropt.h,
10895         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
10896         ptrPseudoSymConvert),
10897         * src/pic/ralloc.c (regTypeNum),
10898         * src/pic16/ralloc.c (regTypeNum),
10899         * src/hc08/ralloc.c (regTypeNum),
10900         * src/ds390/ralloc.c (regTypeNum),
10901         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
10902         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
10903
10904 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10905
10906         * link/z80/lkmain.c (afile),
10907         * as/hc08/lkmain.c (afile),
10908         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
10909         prevent a pointer problem when a filename has no directory and
10910         no extension specified.
10911
10912 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10913
10914         * link/z80/lkmain.c (afile): allow periods in directory names
10915         * link/z80/lkmain.c (afile),
10916         * as/mcs51/lkmain.c (afile),
10917         * as/hc08/lkmain.c (afile): allow linker script file to have an
10918         extension other than ".lnk"
10919         * link/z80/lklex.c (getfid),
10920         * link/z80/lkmain.c (parse),
10921         * as/mcs51/lklex.c (getfid),
10922         * as/mcs51/lkmain.c (parse),
10923         * as/hc08/lklex.c (getfid),
10924         * as/hc08/lkmain.c (parse): Support comments in the linker script
10925         file on lines by themselves and after filenames
10926
10927 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10928
10929         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
10930
10931 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10932
10933         * src/z80/peeph-z80.def: removed some peephole rules that don't
10934         work with multibyte arithmetic (fixed bug #937126)
10935         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
10936         to registers and not global variables
10937         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
10938         geniCodePreInc, geniCodePostDec, geniCodePreDec,
10939         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
10940         checking for assignments not internally generated (fixed bug #931895)
10941         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
10942         structure member (fixed bug #930072)
10943
10944 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10945
10946         * src/SDCCmain.c (linkEdit),
10947         * src/hc08/main.c (_hc08_parseOptions),
10948         * as/hc08/Makefile.in,
10949         * as/hc08/aslink.h,
10950         * as/hc08/asm.h,
10951         * as/hc08/m08pst.c,
10952         * as/hc08/lkrloc.c (relr, rele),
10953         * as/hc08/lkarea.c (lnkarea)
10954         * as/hc08/lkmain.c (afile, parse),
10955         * as/hc08/lkelf.c: support for ELF output
10956         * as/hc08/lks19.c (s19),
10957         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
10958
10959 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10960
10961         * as/mcs51/lkihx.c: Fixed bug #899105.
10962
10963 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10964
10965         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
10966         .dsp files from Unix to DOS.
10967
10968 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10969
10970         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
10971         function pointers; we have been compliant for several months now.
10972         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
10973         change that was accidently commented out
10974         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
10975         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
10976         bug #922319
10977
10978 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10979
10980         * src/hc08/gen.c: output of all of the internal debugging information
10981         is now controlled by the D() macro; it is disabled by default
10982
10983 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10984
10985         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
10986         harder to keep the same registers during a CAST iCode
10987         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
10988         long via int can be done in a single cast, if the signedness is
10989         correct.
10990         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
10991         putchar() in tinibios.c in ds390's library
10992
10993 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
10994
10995         * src/SDCCast.c (decorateType): fixed bug #898889,
10996         cast result of a literal complement too
10997         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
10998         fixed check for bitfields
10999
11000 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
11001
11002         * src/SDCCicode.c (geniCodeLogic): made it static,
11003         (geniCodeLogicAndOr): added in order to fix bug #905492,
11004         (ast2iCode): fixed bug #905492
11005         * support/regression/tests/bug-905492.c: added
11006         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
11007         (processParms): fixed bug #927659: don't copy parms, this will clear
11008         decorated flag
11009         * support/regression/tests/bug-927659.c: added
11010
11011 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
11012
11013         * src/SDCCast.c (addCast): don't cast float to char
11014         * device/lib/libsdcc.lib: added _memmove
11015
11016 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
11017
11018         * device/lib/large/Makefile: fixed parallel execution by
11019         replacing `make` by `$(MAKE)`
11020
11021 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11022
11023         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
11024         offsets (fixes bug #923936)
11025
11026 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
11027
11028         * device/lib/small/Makefile: fixed parallel execution by
11029         replacing `make` by `$(MAKE)`
11030
11031 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
11032
11033         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
11034
11035 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
11036
11037         * src/pic/gen.c (genCpl): multi-byte complements were not working.
11038         * src/regression/Makefile: Regression test was not running.
11039
11040 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
11041
11042         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
11043         complement if possible
11044         * src/SDCCval.c (valComplement),
11045         * src/SDCCicode.c (operandOperation): fixed complement of literal
11046         * support/regression/tests/onebyte.c (testComplement): added
11047
11048 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
11049
11050         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
11051         return an optimized tree; actually replace actParm with the new tree
11052         * src/SDCCast.h: added some parantheses to remove side effects
11053         * support/regression/tests/bug-920866.c
11054
11055 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
11056         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
11057         Bit operands were not being handled properly in the pic14 port.
11058         (now src/regression/add.c passes again).
11059
11060 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11061
11062         * src/SDCC.y (labeled_statement): case and default no longer require
11063         a following statement (RFE #893037)
11064
11065 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11066
11067         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
11068         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
11069         disabled (fixes bug #916294)
11070         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
11071         "mov a,acc"; patch provided by Lenny Story
11072         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
11073
11074 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11075
11076         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
11077         functions
11078         * src/ds390/gen.c (genFunction, genEndFunction),
11079         * src/ds390/ralloc.c (ds390_assignRegisters),
11080         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
11081         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
11082         pushed if there are parameters passed on the stack. Also, a cleaner
11083         way to decide if r0/r1 should be pushed/popped. (Together they fix
11084         bug #918693)
11085
11086 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11087
11088         * doc/sdccman.lyx,
11089         * device/lib/mcs51/crtpagesfr.asm,
11090         * device/lib/mcs51/crtxinit.asm,
11091         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
11092         to avoid confusion with Si Lab's SFRPAGE register.
11093
11094 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11095
11096         * src/SDCCglue.c (emitMaps): allow public sfr variables
11097         * src/SDCCglue.c (initialComments): include compiler build date
11098         with compiler version and put the timestamp of the generated
11099         assembly file on a serperate line to be less confusing.
11100         * src/port.h: added genInitStartup hook
11101         * src/avr/main.c,
11102         * src/ds390/main.c,
11103         * src/hc08/main.c,
11104         * src/pic/main.c,
11105         * src/pic16/main.c,
11106         * src/xa51/main.c,
11107         * src/z80/main.c: genInitStartup initialize as NULL (default to
11108         historical behaviour)
11109         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
11110         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
11111         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
11112         library instead of hard coding it into the compiler.
11113         * support/regression/ports/mcs51-stack-auto/spec.mk,
11114         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
11115         * device/lib/mcs51/Makefile,
11116         * device/lib/small/Makefile,
11117         * device/lib/large/Makefile,
11118         * device/lib/mcs51/crtpagesfr.asm,
11119         * device/lib/mcs51/crtstart.asm,
11120         * device/lib/mcs51/crtxclear.asm,
11121         * device/lib/mcs51/crtxinit.asm,
11122         * device/lib/mcs51/crtclear.asm,
11123         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
11124         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
11125         and into user configurable files.
11126         * device/lib/clean.mk: clean mcs51 directory too
11127         * support/regression/tests/longlit.c: added static to T1 declaration
11128         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
11129         accesses in the initialization code
11130
11131 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11132
11133         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
11134         OSCTRIMVAL as noted in bug #916008
11135
11136 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11137
11138         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
11139         in loops with multiple exits (reported as incorrect registers
11140         used by Martin Helmling in Sdcc-user list)
11141
11142 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11143
11144         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
11145         made ds390 register extensions look less like error messages
11146
11147 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11148
11149         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
11150         reported by Adam Wozniak in Sdcc-user list
11151
11152 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
11153
11154         * src/SDCCast.c (decorateType): fixed with bug and promotion in
11155         arithmetic optimizations, added debug output
11156
11157 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
11158
11159         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
11160         * sdcc.spec: updated and split sdcc into 3 rpms
11161         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
11162         needed for literals of LEFT_OP and '+'
11163         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
11164         introduced RESULT_TYPE_NOPROM
11165         (geniCodeMultiply): fixed logic for decision if mul is optimized to
11166         left shift
11167         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
11168         limited promotion to int only for '*'
11169         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
11170
11171 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
11172
11173         * src/pic16/gen.c (genSkip),
11174         (genc16bit2lit), (gencjneshort): commented out
11175         (is_LitOp): new helper function, checks operand type
11176         (genCmpEq): rewritten
11177
11178 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
11179
11180         * support/regression/tests/bug-908454.c: added
11181
11182 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
11183
11184         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
11185         * src/SDCCicode.c (usualBinaryConversions): op needs int type
11186         (geniCodeCast): cosmetic, don't preserve bit storage class
11187         (geniCodeLeftShift): added promotion
11188         (geniCodeLogic): fixed regression
11189         * src/SDCCsymt.c (computeTypeOr): accept bits too
11190         (compareType): 2nd part of fix for bug #908454, needed for bitfields
11191
11192 2004-03-07  Borut Razem <borut.razem AT siol.net>
11193
11194         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
11195
11196 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
11197
11198         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
11199         version of pic16_genPackRegisters which does not check if ic is a
11200         CAST operator,
11201         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
11202         function cause string1.c regression test fails
11203
11204 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
11205
11206         * sim/ucsim/configure.in,
11207         * sim/ucsim/configure,
11208         * sim/ucsim/doc/Makefile.in: use docdir
11209         * src/SDCC.y: fixed sbit atrributes
11210         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
11211         * src/SDCCast.c (decorateType): |^& need special promotion handling
11212         * src/SDCCast.h,
11213         * src/SDCCsymt.h: moved definition of RESULT_TYPE
11214         * src/SDCCsymt.h (computeType),
11215         * src/SDCCicode.c: computeType() needs op
11216         * src/SDCCsymt.c (checkTypeSanity),
11217         * doc/sddman.lyx: "plain" bitfields are unsigned
11218         * src/SDCCsymt.c (computeTypeOr): added
11219         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
11220         |^& ops
11221         * src/SDCCval.c (val*): computeType() needs op
11222         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
11223         * support/regression/tests/onebyte.c: added tests for |^&
11224
11225 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
11226
11227         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
11228         for writing icode into asm output.
11229
11230 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
11231
11232         * src/pic16/device.c: added some debug lines enabled
11233         with macro DEBUG_CHECK,
11234         * src/pic16/genarith.c: more debug in genPlus,
11235         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
11236         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
11237         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
11238         * (aopForSym): onStack symbols are re-placed in data memspace,
11239         and onStack flag is cleared,
11240         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
11241         copy temporary pcodeop,
11242         * (genPcall): added warning for not updating PCLATU,
11243         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
11244         always true for pic16 port,
11245         * (genMultOneWord): NEW, supports integer multiplication,
11246         * (genMult): modified to call genMultOneWord,
11247         * (ifxForOp): added warning when return NULL,
11248         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
11249         flag is set before call to operandFromSymbol for implicit
11250         added structures,
11251         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
11252         options.intlong_rent are set by default,
11253         * (_hasNativeMulFor): modified to allow port generation of integer
11254         multiplication,
11255         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
11256         set regtype to REG_SFR for all registers, restricting seting the
11257         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
11258
11259 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11260
11261         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
11262         more than 500 times in the regression tests
11263
11264 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11265
11266         * support/Util/SDCCerr.h,
11267         * support/Util/SDCCerr.c,
11268         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
11269         enumerator_list),
11270         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
11271         for symbol conflicts.
11272         * support/valdiags/tests/enum.c,
11273         * support/valdiags/tests/tentdecl.c,
11274         * support/valdiags/tests/struct.c: expect possible error messages
11275         referring to original symbol definitions.
11276         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
11277         * src/SDCCsymt.h,
11278         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
11279
11280 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
11281
11282         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
11283
11284 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
11285
11286         * src/pic16/ralloc.c (newReg): fixed bug #908929
11287
11288 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11289
11290         * src/ds390/gen.c: added missing #include "main.h"
11291
11292 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
11293
11294         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
11295         checking if symbol is already in set,
11296         * src/pic16/device.h: prototype for checkAddSym,
11297         * src/pic16/gen.c: (_G): added entry interruptvector,
11298         * (assignResultValue): removed some commented out lines,
11299         * (genFunction): check for ISR via sym->type, absolute section for
11300         interrupt code is created via a new pBlock, the goto instruction is
11301         placed now correctly at the interrupt vector position, changed all
11302         references from ivec to _G.interruptvector,
11303         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
11304         is the interrupt is a high priority one, same for return from ISR,
11305         * src/pic16/glue.c: changed all calls of addSetHead for publics and
11306         externs to calls of checkAddSym,
11307         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
11308         pic16_pcode_verbose flag is set,
11309         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
11310         * src/pic16/pcoderegs.c: message about how many registers are saved
11311         will only be emitted if pic16_pcode_verbose flag is set,
11312
11313 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11314
11315         * src/ds390/ralloc.h,
11316         * src/ds390/ralloc.c (ds390_regWithIdx),
11317         * src/ds390/gen.c (emitcode),
11318         * src/ds390/main.h,
11319         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
11320         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
11321         ds390operandCompare, getRegsRead, getRegsWritten,
11322         initializeAsmLineNode): customized instruction size calculation for
11323         ds390, started basis for some register optimizations
11324         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
11325         corresponding assembly output
11326         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
11327         missing push/pop of r0/r1. Optimized push/pops
11328
11329 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11330
11331         * src/mcs51/main.c (instructionSize): fixed ACALL size
11332         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
11333
11334 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
11335
11336         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
11337         the sorting of rlist with NULL elements
11338         * (print_idataType, print_idata): NEW to create idata sections
11339         * src/pic16/device.h: idataSymSet new variable
11340         * src/pic16/gen.c (genFunction): fixed some bugs in string
11341         comparing, improved the absolute section creation for ISRs,
11342         added FSR0L/FSR0H in registers that are saved in an ISR,
11343         * (genInline): fixed the processing of inline snippets,
11344         now they undergo no process by the peephole optimizer
11345         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
11346         are placed in idataSymSet,
11347         * (pic16emitStaticSeg): extern symbols are added in externs,
11348         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
11349         switching when aboslute variables are placed in access bank memory
11350         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
11351         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
11352         commented out with #if,
11353         * (pic16_packRegisters): reintroduce the check for CAST because some
11354         symbols are not correctly handled,
11355         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
11356         pCodeInstruction instead of pCode,
11357         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
11358         pCodeAsmDir definition,
11359         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
11360         directive, then the argument directive is emitted without the leading
11361         tab, hack for inline labels which must be in the first column,
11362         * (compareLabel,pic16_findNextInstruction),
11363         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
11364         * (insertBankSwitch): modified for the new pCodeAsmDir,
11365
11366 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11367         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
11368
11369         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
11370         instance,
11371         * (pushSide): commented out with #if,
11372         * (assignResultValue): fixed some typos in saving
11373         registers,
11374         * (genPcall): FIXED and sync'ed with genCall,
11375         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
11376         * (genNearPointerGet): fixed to handle some more cases,
11377         implementation scheme via table reads,
11378         * (genConstPointerGet): modified to access code memory correct,
11379         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
11380         and improved to handle some cases
11381         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
11382         instead of "RETLW" for init data
11383         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
11384         not IN_DIRSPACE, work around to reduce bank switching when aboslute
11385         variables are placed in access bank memory (<0x80 and >=0xf80),
11386         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
11387         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
11388         TBLWT_POSTDEC,TBLWT_PREINC
11389         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
11390         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
11391         directives
11392         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
11393         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
11394         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
11395         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
11396
11397 2004-02-29  Borut Razem <borut.razem AT siol.net>
11398
11399         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
11400         support/Util/findme.h, support/Util/system.h: enhance binary relative
11401         search for lib and include by using findProgramPath()
11402
11403 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11404
11405         * src/SDCCpeeph.h,
11406         * src/SDCCpeeph.c (pcDistance),
11407         * src/port.h,
11408         * src/mcs51/ralloc.h,
11409         * src/mcs51/ralloc.c (mcs51_regWithIdx),
11410         * src/mcs51/main.h,
11411         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
11412         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
11413         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
11414         size calculation port specific, started basis for some register
11415         optimizations
11416         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
11417         missing push/pop of r0/r1. Optimized push/pops
11418         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
11419         * device/lib/_modsint.c (_modsint),
11420         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
11421         and stack version so regression tests pass
11422
11423 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
11424
11425         * src/Makefile.in (dep): include SLIBOBJS in dependency check
11426         * src/SDCCast.c (decorateType): catch another small optimization
11427         with '?' operator
11428         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
11429         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
11430         modified to finally use computeType() all over SDCC,
11431         see Feature Request #877103
11432         * src/SDCCval.h: cosmetic
11433         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
11434         valCompare(); regression tested in muldiv.c
11435         * support/regression/tests/muldiv.c (testMod): mod sign follows
11436         dividend only
11437
11438 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
11439
11440         * src/SDCCast.c (decorateType): fixed bug #902362
11441         * doc/INSTALL.txt: fixed install instructions for win32
11442
11443 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
11444
11445         * device/include/Makefile.in (install): fixed by replacing spaces
11446         by tabs
11447         * doc/README.txt,
11448         * doc/INSTALL.txt: updated for release
11449         * doc/sdccman.lyx: added warning for --xstack being buggy
11450
11451 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
11452
11453         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
11454         to eliminate build warnings.
11455         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
11456
11457 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
11458            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11459
11460         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
11461         removed -penable-stack, added comment for stack pragma, added
11462         warning for not initializing the stack/frame registers, removed
11463         comment at interrupts section
11464
11465         Stack is made permanent, there is no ability to disable stack usage.
11466         * src/pic16/device.h,
11467         * src/pic16/device.c: removed all references to USE_STACK macro,
11468         * src/pic16/device.c (pic16_dump_section): when no elements in
11469         rlist, free rlist before return,
11470         * (pic16_dump_int_registers): NEW, internal registers are a new set
11471         of general purpose registers reused by each function,
11472         * (checkAddReg): returns 1 if registers is added to set,
11473         * (pic16_groupRegistersInSection): when a registers is of type
11474         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
11475         * src/pic16/device.h: memRange and Assigned Memory are deleted,
11476         SRCASECMP macro is moved here from device.c
11477         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
11478         PO_PCLATU, PO_PRODL, PO_PRODH,
11479         * (pic16_pCodeOpType, genMinus,
11480         changed compares to "a" register, with AOP_ACC,
11481         * (pic16_genPlus): fixed some bugs and indented properly,
11482         * (pic16_addSign): changed size to size+offset in the MOVWF
11483         instruction,
11484         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
11485         multiply 8-bit operand by literal, result is 8-bit,
11486         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
11487         multiply 2 8-bit operand, result is 8-bit,
11488         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
11489         genUMult8X*_16,
11490         * src/pic16/gen.c: changed accUse to contain WREG only,
11491         * (pic16_emitcomment): renamed to pic16_emitpcomment,
11492         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
11493         true, do not use immediate addressing any more unless sym is a
11494         pointer in codespace,
11495         * (aopForRemat): do not use immediate addressing when symbol not in
11496         codespace and when symbol's address is requested,
11497         * (aopOp): for-loop in if(sym->accUse) is modified for the new
11498         accUse size (= 1),
11499         * (aopGet): added case for AOP_ACC and don't return "accumulator
11500         bug" but WREG instead,
11501         * (popGetTempReg): pushes contents of temporary register in stack,
11502         * (popReleaseTempReg): pops contents of temporary register from
11503         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
11504         * (pic16_popGet): separated case AOP_ACC to return register WREG
11505         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
11506         or PO_IMMEDIATE and initializes their instance/offset appropriately,
11507         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
11508         the use of immediate pointers to certain cases only.
11509
11510         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
11511         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
11512         * (assignResultValue, genCall, genRet): modified to use the new
11513         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
11514         genPcall is still broken,
11515         * (genFunction): added code to create 'A' type pBlocks when
11516         interrupt functions are generated, code not extensively tested yet,
11517         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
11518         * (genEndFunction): modified so ISRs pop stored registers from stack,
11519         * (genMultOneByte): cleanup,
11520         * (AccRsh): added flag andmask, to and result with appropriate mask,
11521         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
11522         * (genDataPointerGet): fixed and reenabled its use,
11523         * (genNearDataPointerGet): bugs fixed,
11524         * (genDataPointerSet): bugs fixed,
11525         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
11526         pic16_DumpSymbol, pic16_DumpOp,
11527         * src/pic16/genutils.h: function prototypes for the above functions,
11528         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
11529         pointers,
11530         * (pic16emitRegularMap): many many many improvements, but needs a
11531         major cleanup,
11532         * src/pic16/main.c: enable_stack in pic16_options is removed,
11533         * (_pic16_parseOptions): removed command line options -penable-stack,
11534         * (_process_pragma): emit stack symbol only when stack pragma is
11535         processed,
11536         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
11537         redirected to FSR0L/FSR0H pair,
11538         * (pic16_get_op, pic16_get_op2): modifications and improvements,
11539         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
11540         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
11541         for immediates,
11542         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
11543         * (dumpPicOptype): NEW,
11544         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
11545         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
11546         with movff instruction,
11547         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
11548         added pic16_int_regs, some packRegsFor* functions are commented out,
11549         because produce errors,
11550         * src/pic16/NOTES: minor modifications
11551
11552 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11553
11554         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
11555         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
11556         --pack-iram.
11557         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
11558         * as/mcs51/lkaomf51.c: fixed bug #895763
11559
11560 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
11561
11562         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
11563
11564 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11565
11566         * doc/sdccman.lyx: added details about the HC08 storage classes and
11567         interrupts, fixed the register usage info for z80 & gbz80
11568
11569 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
11570
11571         * doc/sdccman.lyx: added more pic16 port documentation
11572         * device/include/pic16/: added header pic18fregs.h
11573
11574 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
11575
11576         * doc/sdccman.lyx: added Vangelis' contribution
11577
11578 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11579
11580         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
11581         extend to the next CALL or PCALL, not just to the next CALL.
11582
11583 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
11584
11585         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
11586
11587 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11588
11589         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
11590         bug #895752 and a better fix for bug #716790
11591
11592 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11593
11594         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
11595
11596 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11597
11598         * doc/sdccman.lyx: minor changes, minor changed
11599
11600 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
11601
11602         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
11603         which can't handle SDCC_NEWONEBYTEOPS,
11604         (geniCodeMultiply): removed conversion from mult to shift for pic14
11605         and pic16
11606
11607 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11608
11609         * src/hc08/gen.h,
11610         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
11611         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
11612         thus fixing bug #895406
11613
11614 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
11615
11616         * device/lib/_modsint.c,
11617         * device/lib/_modslong.c: sign follows divisor only
11618         * src/hc08/gen.c (genMultOneByte): if result size is 1,
11619         signs or signedness can be ignored
11620         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
11621         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
11622         added optimization for IFX,
11623         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
11624         arguments;
11625         reenabled optimization for IFX, which was removed on 2004-01-11
11626         * src/SDCCast.h: added return type IFX
11627         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
11628         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
11629         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
11630         SDCC_OLDONEBYTEOPS selects the old behaviour
11631         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
11632         changed again and commented promotion rule
11633         * src/SDCCval.c (valDiv): promotion no longer necessary
11634         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
11635         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
11636         rewritten
11637         * support/regression/tests/onebyte.c: added
11638
11639 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
11640
11641         * gen.c (genInline): reverted to old code for assemnling inline
11642         code because of bug reported James Chadd
11643
11644 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
11645
11646         * ralloc.h: missing declarations from previous patch,
11647         seems that patch for ralloc.h was never applied, fixed
11648
11649 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11650            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
11651
11652         * pcode.c,
11653         * pcode.h,
11654         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
11655         indirect addressing. Marked FSR0 as deprecated
11656         * gen.c (pointerCode): commented out, not needed now
11657         (pic16_popGet2p): new MOVFF helper function
11658         (genGenPointerGet),
11659         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
11660         (shiftRLong): removed duplicate debugging info
11661
11662 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11663
11664         * src/ds390/gen.c (genNearPointerGet),
11665         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
11666         optimization with bits, but not bitfields.
11667         * src/ds390/ralloc.c (packRegisters),
11668         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
11669
11670 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
11671
11672         * src/SDCCcse.c (algebraicOpts): copy operands before modification
11673
11674 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11675
11676         * src/SDCCsymt.h,
11677         * src/SDCCicode.c (operandFromSymbol),
11678         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
11679         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
11680         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
11681         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
11682         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
11683         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
11684         bug #892038
11685         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
11686         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
11687         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
11688         * src/SDCCsymt.c (newSymbol),
11689         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
11690         enumerator_list),
11691         * src/SDCCval.h,
11692         * src/SDCCval.c (newiList): fixed bug #885705
11693
11694 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11695
11696         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
11697         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
11698
11699 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11700
11701         * device/include/c8051f120.h,
11702         * device/include/c8051f300.h,
11703         * device/include/c8051f310.h: added/updated header files for Silicon
11704         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
11705         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
11706         in new section Submitting patches
11707
11708 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11709
11710         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
11711         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11712         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11713         genGenPointerSet),
11714         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
11715         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11716         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11717         genGenPointerSet),
11718         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
11719         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11720         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11721         genGenPointerSet),
11722         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
11723         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11724         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11725         genGenPointerSet): fixed bug #892400
11726         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
11727         to eliminate build warnings.
11728         * src/SDCCast.c (processParms),
11729         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
11730         fixed bug 751859
11731         * support/valdiag/valdiag.py: added GCC to the list of defines active
11732         when compiling with gcc
11733
11734 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11735
11736         * support/Util/SDCCerr.h,
11737         * support/Util/SDCCerr.c,
11738         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
11739         with an incomplete type (fixed bug #883734)
11740         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
11741
11742 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11743
11744         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
11745
11746 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11747
11748         * src/SDCCast.c (decorateType),
11749         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
11750         function pointer implementation
11751         * support/regression/tests/funptrs.c: added tests to verify both forms
11752         of function pointers work correctly. Added tests to verify parameters
11753         are passed in the correct order.
11754
11755 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
11756
11757         * device.c (regCompare): registers are sorted by ascending
11758         address and increasing size,
11759         * main.c (_pic16_finaliseOptions): removed the declaration
11760         of compiler macro MCU. Now a macro of the format pic18fxxxx
11761         will be defined from the command line
11762
11763 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11764             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
11765
11766         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
11767         PCOP_RLCF was overwritten!
11768         * gen.c (genSkip): commented out calls to pic16_emitcode,
11769         * (genCmpEQ): fixed "long" compares, only high word did get compared,
11770         * (genlshTwo),
11771         * (genRRC): added debugging info,
11772         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
11773         overwritten while shifting,
11774         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
11775         overwritten while shifting,
11776         * (AccLsh),
11777         * (AccRsh),
11778         * (shiftLLeftOrResult),
11779         * (shiftRLeftOrResult),
11780         * (shiftRLong),
11781         * (shiftLLong): Implemented with pic16_emitpcode
11782         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
11783         * (genLeftShift): Fixed bug, operand for shift by variable always
11784         was "and"ed with 0x0f,
11785         * (genLeftShiftLiteral),
11786         * (genrshTwo),
11787         * (genRightShiftLiteral): added debugging info,
11788         * (genrshFour): added comment,
11789         * (genRightShift): determined signedness from operand "left"
11790         instead of "result"
11791
11792 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11793
11794         * src/SDCCicode.c (geniCodeParms),
11795         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
11796         function pointers, fixed function pointer bugs #861242 and #861896
11797
11798 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11799
11800         * device/include/c8051f000.h,
11801         * device/include/c8051f120.h,
11802         * device/include/c8051f300.h: added header files for Silicon
11803         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
11804
11805 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
11806
11807         * src/SDCCast.c (processParams): added new type flow and restructured
11808         (gatherAutoInit): added new type flow
11809         (addCast): cosmetic changes
11810         (getLeftResultType): added new type flow for array indices, patch
11811         provided by Stas, see FR #877103
11812         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
11813         array index patch by Stas
11814         * src/SDCCast.h: added prototype getResultTypeFromType()
11815         * src/SDCCval.h,
11816         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
11817         * src/pic/glue.c (pic14emitStaticSeg),
11818         * src/pic16/glue.c (pic16emitStaticSeg),
11819         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
11820         for initialization of symbols
11821         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
11822         * support/Util/SDCCerr.h:
11823         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
11824         * .version: bumped version number to 2.3.8
11825         * device/include/Makefile.in (install),
11826         * doc/Makefile (install): changed to 'rm `find ...`' construct to
11827         avoid warnings
11828
11829 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
11830
11831         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
11832         Slade Rich fixed an optimization bug
11833         * src/pic/pcodepeep.c,
11834         * src/pic/pcoderegs.c
11835         * doc/Makefile (install): added test for directory
11836
11837 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11838
11839         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
11840         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
11841         * src/pic/ralloc.c (getRegPtr, getRegGpr),
11842         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
11843         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
11844         * as/mcs51/asexpr.c (term),
11845         * as/hc08/asexpr.c (term): fixed bug #887146
11846
11847 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11848
11849         * src/z80/gen.c (genMult): handle single byte result product
11850         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
11851         DUMMY_READ_VOLATILE (fixed bug #886367)
11852
11853 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
11854
11855         * support/regression/tests/libmullong.c: fixed logic, on little endian
11856         hosts we ended without a mullong_wrapper()
11857
11858 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11859
11860         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
11861         virus/worm forged address usage.
11862
11863 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
11864
11865         Fixed promotion, it should be done on AST level:
11866         * src/SDCCast.c (addCast): added promotion to int
11867         (decorateType): updated call to upCast()
11868         * src/SDCCicode.c (geniCodeLeftShift): removed call to
11869         usualUnaryConversions()
11870
11871 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
11872
11873         * support/regression/tests/literalop.c (mulWrapper): Added a
11874         wrapper to remove integer overflow warnings.
11875
11876         * support/regression/tests/float_trans.c: Made work on host.
11877
11878         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
11879         location of sz80.
11880
11881         * support/regression/generate-cases.py (main): Changed from inline
11882         to a main method.
11883
11884         * doc/Makefile (install): Changed to depth first to get rid of
11885         missing directory install warning.
11886
11887         * as/Makefile (install-doc): Made work on Mac.
11888
11889 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
11890
11891         * src/SDCCast.c: added an additional type flow in decorateType() of
11892         opposite direction, see feature request #860006; it's enabled at runtime
11893         by setting the environment variable SDCC_NEWTYPEFLOW
11894         * src/SDCCast.h: changed prototype of decorateType()
11895         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
11896         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
11897         'char' to 'int' can be omitted, if both operands are 'unsigned char';
11898         see feature request #877103
11899         * src/SDCCval.c: updated call of decorateType()
11900         (valBitwise): fixed bug #882876
11901         (valMinus): added promotion
11902         (valLogicAndOr): result is unsigned
11903         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
11904         * src/SDCCsymt.c (computeType),
11905         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
11906         must not cause an unsigned operation
11907         * src/pic/glue (pic14emitRegularMap),
11908         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
11909
11910 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
11911
11912         * src/pic/pcode.c (PCodeID): commented out left over debug code
11913
11914 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
11915
11916         * support/valdiag/tests/overflow.c: added shift tests
11917         * src/pic/device.c,
11918         * src/pic/gen.c,
11919         * src/pic/gen.h,
11920         * src/pic/glue.c,
11921         * src/pic/main.c,
11922         * src/pic/pcode.c,
11923         * src/pic/pcode.h,
11924         * src/pic/pcodepeep.c,
11925         * src/pic/pcoderegs.c,
11926         * src/pic/ralloc.c,
11927         * src/pic/ralloc.h: applied patch from Slade Rich;
11928         added support for multiple code pages and multiple RAM banks on the
11929         PIC 14 port. The ASM files now no longer simply assume all the
11930         code / RAM are in the same page / bank. This means the linker can
11931         safely allocate code/RAM of separate ASM files to different pages/banks.
11932         * doc/sdccman.lyx: added Slade's tips
11933         * src/mcs51/peeph.def: fixed bug #880768
11934
11935 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11936
11937         * src/hc08/ralloc.c (rematStr): fixed bug #879282
11938         * src/SDCCast.c (decorateType): fixed bug #880197
11939
11940 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
11941
11942         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
11943         getopt.h.
11944
11945         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
11946         strtof is not part of C89 and isn't included with Mac OS X.
11947
11948 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11949
11950         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
11951         shiftL2Left2Result): fixed bug #879326
11952         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
11953         (genMultOneByte): fixed bug in signed vs unsigned multiplication
11954         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
11955         address fetch for clr instruction
11956         * device/lib/hc08/_mulint.c: created optimized assembly version
11957         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
11958
11959 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
11960
11961         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
11962         proposed in FR #877103
11963
11964 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
11965
11966         * src/SDCCval.c (cheapestVal): added missing checks
11967         * src/SDCCicode.c (usualBinaryConversions): fixed condition
11968         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
11969
11970 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
11971
11972         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
11973         equal operands
11974
11975 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
11976
11977         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
11978         loaded with the linker search paths (-L arguments) and the libraries
11979         to be linked with the current source (-l arguments). Changes
11980         currently will affect only the pic16 port.
11981         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
11982         include path the port specific paths and port specific libraries,
11983         * gplink command now contains the $3 argument,
11984         * src/pic16/device.h,
11985         * src/pic16/device.c,: structure PIC_device is made public and
11986         renamed to PIC16_device, the same for variable Pics which is renamed
11987         to Pics16. Updated all references to them.
11988         * src/pic16/glue.c (pic16glue): corrected bug with code
11989         initialization which bypassed the variable initializations block.
11990
11991         * device/lib/pic16/Makefile.rules: removed --penable-stack from
11992         COMPILE_FLAGS and added the --nostdinc option
11993
11994 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11995
11996         * device/include/mc68hc908jb8.h: Register defs for another member
11997         of the hc08 family. Contributed by Bjorn Bringert - thanks!
11998
11999 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
12000
12001         Documenting changes from previous commits.
12002         * configure.in (version 1.56),
12003         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
12004         when generating output files to configure the pic16 library,
12005         but now I've commented it out, since gputils aren't installed in the
12006         SF compile farm, so library won't compile
12007
12008         * device/lib/Makefile.in (version 1.56): initially I've added in
12009         target 'all' the prerequestive 'model-pic16' so it compiled the
12010         pic16 library, but now I've commented it out for the same reasons
12011         above,
12012         * added targets 'model-pic16' and 'objects-pic16' to compile the
12013         library
12014         * added target 'port-specific-objects-pic16' to handle the
12015         generated libraries and copy them into the build/ directory
12016         * added target 'clean-intermediate-pic16' to clean intermediate
12017         files into pic16 directory
12018         * in target 'installdirs' added line to create directory pic16 in
12019         the installation path
12020
12021         * device/include/Makefile.in (version 1.11): in target 'install'
12022         added lines to copy all header files to installation path,
12023         * in target 'installdirs' added line create directory for pic16
12024         headers in the installation path
12025
12026 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
12027
12028         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
12029          a function call
12030
12031 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
12032
12033         * configure,
12034         * device/lib/configure.in,
12035         * device/lib/configure: fixed for autoconf 2.57
12036
12037 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12038
12039         * src/z80/main.c (_parseOptions): fixed the portmode= command line
12040         option so that it actually works. Made it specific to the z80, since
12041         the gbz80 doesn't have these kinds of I/O ports.
12042
12043 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12044
12045         * device/include/z180.h,
12046         * device/lib/_memcpy.c,
12047         * device/lib/_memmove.c,
12048         * device/lib/_mulint.c,
12049         * device/lib/ser_ir.c,
12050         * device/lib/ser_ir_cts_rts.c,
12051         * device/lib/_strcmp.c,
12052         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
12053         * src/z80/main.c (_process_pragma): add support for pragmas bank and
12054         portmode; added deprecation warning for bank= and protmode= forms.
12055         Also, guard against buffer overflow.
12056         * src/z80/gen.c (aopGet): generate better code for sfr banked read
12057
12058 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12059
12060         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
12061         changed interrupt vector table generation to only emit declared vectors.
12062         * device/include/Makefile.in: added missing backslash
12063         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
12064
12065 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
12066
12067         Mainly changes to support compilation of the device libraries
12068         * src/pic16/device.c: stack is allocated via symbol and not
12069         via literal number. The symbol is placed in the corresponding
12070         position of the data ram
12071         * (pic16_dump_section): relocatable and absolute uninitialized
12072         data are now emitted in sorted order to reduce section naming,
12073         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
12074         weren't marked as being in the access bank,
12075
12076 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
12077
12078         Added portion of GNU PIC Library under the directory
12079         device/include/pic16 and device/lib/pic16. These files
12080         contain the declarations of SFRs for the PIC18Fxx2 devices.
12081         The directory is initialized via configure from toplevel.
12082
12083 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
12084
12085         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
12086         the spilllocations to be compared correctly
12087
12088 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
12089
12090         * src/SDCCast.c (decorateType): fixed bug introduced today
12091
12092 2004-01-12  Borut Razem <borut.razem AT siol.net>
12093
12094         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
12095         doc/sdccman.lyx: upper case pragmas are deprecated
12096
12097 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
12098
12099         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
12100         in simpler and even better code
12101
12102 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
12103
12104         * src/SDCCicode.c (operandOperation): fixed bug #874819
12105         * src/SDCCast.c (decorateType): fixed
12106         char foo (unsigned long ul) { return ul > 0; }
12107
12108 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12109
12110         * doc/sdccman.lyx: Moved and added some sections, small changes
12111         all over. Telling LaTeX to be less strict with word spacing
12112         to better keep the right margin. Changed some notes about
12113         maintainance of the ports in section 3.2.1 - is it OK like this?
12114
12115 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
12116
12117         SDCC source changes:
12118         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
12119         convilong): modified to inform the pic16 port that builtin functions
12120         are external
12121
12122         PIC16 PORT specific changes:
12123         * src/pic16/device.c pic16_dump_equates() added,
12124         processor registers declared internally by the port are emitted in
12125         the translation as equates,
12126         * src/pic16/gen.c: inline code is passed unprocessed to the
12127         translation,
12128         * (pic16_popGetLit2): fnuction modified to take second operand as
12129         pCodeOp pointer and not as literal,
12130         * (popRegFromIdx): prefixed with pic16_,
12131         * (pic16_popCombine2): modified to receive already allocated pCode
12132         operands,
12133         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
12134         * (genFunction): initializes local stack frame and pushes on stack
12135         all the registers used by this function,
12136         * (genEndFunction): restores all registers from stack and restores
12137         stack frame,
12138         * src/pic16/glue.c (pic16emitRegularMap): various changes and
12139         improvements,
12140         * (pic16glue): changed the program startup sequence,
12141         * added new dbName code 'A' for functions placed in absolute section
12142         * src/pic16/main.c: added function attribute _naked,
12143         * added pragma 'code' to place a fnuction at an absolute address,
12144         * added command line arguments --debug-ralloc and --pcode-verbose,
12145         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
12146         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
12147         * (pic16_newpCodeOpLit2): modified to take the second operand as
12148         pCodeOp pointer,
12149         * (pic16_printpBlock): modified to emit each function in a separate
12150         section,
12151         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
12152         UPPER for immediate operands,
12153         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
12154         instruction,
12155         * src/pic16/peeph.def: all peepholes with movff are commented out,
12156         because there is a problem in the pcode peep optimizer,
12157         * src/pic16/ralloc.c: the register allocator can now reuse local
12158         function symbols for another function. This saves register usage.
12159         * src/pic16/ralloc.h: added flag isLocal in structure regs,
12160
12161         Added file src/pic16/NOTES with information about program writing on
12162         the current port version.
12163
12164 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12165
12166         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
12167         and peephole 252 (array access)
12168
12169 2004-01-09  Borut Razem <borut.razem AT siol.net>
12170
12171         * src/SDCCmain.c : fixed #872250: -l command line defined library
12172           files are scanned before standard library files
12173
12174 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12175
12176         * src/SDCCast.c (decorateType): fixed bug #874046
12177
12178 2004-01-09  Borut Razem <borut.razem AT siol.net>
12179
12180         * support/scripts/sdcc.nsi: remove previous installation
12181
12182 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12183
12184         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
12185         bytes for last interrupt vector (mcs51)
12186         * sdcc.spec: fixed typo
12187
12188 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12189
12190         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
12191         gen51Code): more efficient parameter receive for --model-large
12192         ("bug" #845294)
12193
12194 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12195
12196         * src/ds390/main.c,
12197         * src/z80/main.c: added missed needLinkerScript flags (more than
12198         one port structure defined in these file)
12199         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
12200         bug #795325
12201
12202 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
12203
12204         * src/SDCCmain.c: removed various references to DEFAULT_PORT
12205         * src/port.h: added flag needLinkerScript in port->linker
12206         structure to inform whether to create a .lnk file or not,
12207         * src/avr/main.c,
12208         * src/ds390/main.c,
12209         * src/hc08/main.c,
12210         * src/mcs51/main.c,
12211         * src/pic/main.c,
12212         * src/pic16/main.c,
12213         * src/xa51/main.c,
12214         * src/z80/main.c: changed appropriately to configure
12215         needLinkerScript flag
12216         * src/pic/gen.c,
12217         * src/pic16/gen.c (genAddrOf): fixed bug #863624
12218         * src/pic/glue.c: added variable udata_section_name to
12219         override default uninitialized data segment definition for
12220         devices only with SHAREBANK memory (reported from Erik Epetrich)
12221         * (pic14emitOverlay): modified to emit a commented overlay segment
12222         directive when no overlay data exist
12223         * (picglue): modified to emit uninitialized data segment
12224         according to udata_section_name
12225         * src/pic/main.c (_pic14_parseOptions): added command line
12226         options --udata-section-name=[name] to override default
12227         udata definition name
12228         * modified _linkCmd and _asmCmd to include compiler passed
12229         arguments via -W option
12230         * src/pic16/main.c: added $l in _asmCmd, changed extension for
12231         object file from '.rel' to '.o' in port->linker structure,
12232         changed size of fptr from 2 to 3 in port structure
12233
12234 2004-01-07  Borut Razem <borut.razem AT siol.net>
12235
12236         * support/scripts/sdcc.nsi: update PATH
12237         * support/scripts/sdcc.ico: craeted
12238
12239 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
12240
12241         * device/include/Makefile.in: fix install
12242         * doc/Makefile: fix install
12243
12244 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12245
12246         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
12247         in bug #860505
12248         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
12249         how the function variable allocation summary is displayed; also
12250         include information about variables allocated to the overlay
12251         segment
12252
12253 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12254
12255         * as/mcs51/lkmain.c: Help about -Y option
12256         * as/mcs51/lkarea.c: Fixed gcc warnings
12257
12258 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
12259
12260         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
12261         fixed warning
12262         * support/valdiag/tests/overflow.c: added
12263         * src/SDCCast.c (decorateType),
12264         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
12265         LEFT_OP (left shift)
12266
12267 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12268
12269         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
12270         (default behaviour).
12271
12272 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12273
12274         A python script to validate compiler diagnostic messages. It can be
12275         used to verify that sdcc complains about bad c source code and
12276         gives a good location of the error.
12277         * support/valdiag/Makefile,
12278         * support/valdiag/valdiag.py,
12279         * support/valdiag/tests/*
12280
12281 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12282
12283         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
12284         * src/SDCCsymt.c (newEnumType),
12285         * src/SDCCsymt.h
12286         * support/Util/SDCCerr.c,
12287         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
12288         enum related bugs.
12289         * support/regression/tests/enum.c: added test for enum values that
12290         require at least 2 bytes of storage.
12291
12292 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
12293
12294         * src/common.h: added ifndef/define/endif macros
12295         around the header file.
12296         Bug reported from Jesus Calvino-Fraga
12297
12298 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
12299
12300         * sdcc.spec: updated
12301         * device/include/Makefile.in: don't install CVS directories
12302         * device/lib/Makefile.in: added removal of CVS directories after install
12303         * doc/Makefile: fixed install, added local_icons
12304         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
12305         * src/mcs51/gen.c (genRightShift): fixed bug #870788
12306         * src/ds390/gen.c (genRightShift): fixed bug #870788
12307         * src/SDCCast.c (decorateType): fixed bug #870781
12308
12309 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
12310
12311         PIC16 port related changes:
12312         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
12313         added variable stackPos,
12314
12315         * gen.c: genCall, assignResultValue: added support for
12316         pushing/retrieving function parameters to/from stack,
12317         genFunction,genEndFunction: setup stack frame for the
12318         generated function,
12319         genAddrOf: will be changed according to bug 863624
12320
12321         * added files genutils.c and genutils.h which contain gen*
12322         debugged and optimised functions extracted from gen.c
12323
12324         * glue.c: added variable 'externs' which holds extern symbols,
12325         pic16emitRegularMap: is modified to properly handle relocatable
12326          symbols under the new scheme,
12327         pic16createInterruptVect: is modified
12328         pic16printPublics: is modified to emit 'global' assembler directives,
12329         added pic16_printExterns to print extern symbols,
12330         pic16glue: initializes stack/frame pointer in the beginning of
12331         the assembly output. Temporary hack, will be corrected later,
12332         because gplink yet does not support stack and SDCC does not
12333         yet support a type of crt0.o object to create the final binary.
12334
12335         * Removed many lines that contain 8051 legacy code.
12336         * The code is finally placed under a 'code' directive.
12337         * Added port specific options.
12338
12339         * _process_pragma: simplified since now we do not need *special*
12340         include file to define SFR registers. But a separate header
12341         will be needed. This will be developed later.
12342         * _pic16_parseOptions: added, parses port specific options:
12343         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
12344         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
12345         --preplace-udata-with=
12346
12347         * _pic16_setDefaultOptions: modified to initialize section names,
12348         but hack is temporarly out of order since it needs improvement.
12349         * _pic16_genAssemblerPreamble: configuration words are emitted by
12350         their address instead of their name. This part is incomplete and
12351         supports only the 18Fxx2 devices. Other devices will emit an error
12352         during assembly since they do not contain the same set of config
12353         registers
12354         * _pic16_genIVT: is modified,
12355
12356         * pcode.c: added definitions for some hardware registers that are needed
12357         for stack support
12358         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
12359         All PCI entries are updated. Now LFSR is supported.
12360         * Removed pic16_pciTRIS is mentioned by mdubuc in source
12361         * added pic16_newpCodeOpLit2 to support instructions with
12362         two literal arguments
12363         * pic16_pCode2str: corrected code that emits assembler instructions
12364         with two literal operands and those that have an access bit modifier
12365         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
12366         this fixes a bug which caused some labels to be lost, when an
12367         assembler directive was added, i.e. banksel,
12368         * pic16_FixRegisterBanking: improved logic that causes the insertion
12369         of bank switching,
12370         * InlineFunction: functions that are called once, are not any more
12371         inlined. This can be a port option in the future,
12372
12373         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
12374
12375         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
12376         hold the corresponding uninitialized symbols,
12377         * pic16_allocProcessorRegister: registers have explicit marked the
12378         accessBank field,
12379         * pic16_allocInternalRegister: registers are explicit marked as
12380         not used,
12381         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
12382         processing list, so bit registers were lost,
12383         *
12384
12385         * ralloc.h: added field 'accessBank' and original symbol operand
12386         in register definition,
12387         * removed the field isMapped from register definition,
12388
12389         ** Several functions have been removed from various sources:
12390         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
12391         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
12392         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
12393         pic16_assignRelocatableRegisters
12394
12395         ** others have been introduced:
12396         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
12397         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
12398
12399 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
12400
12401         * support/scripts/inc2h.pl: changed definition of BIT_AT
12402         to emit 'sbit at' instead of 'bit at'. This was a request.
12403
12404         PIC16 port related preliminary changes:
12405         * gen.c: prefixed function popRegFromString with
12406         pic16_ and all references to it corrected
12407         * pcode.c: all pic16_pc_* hardware registers prefixed
12408         with underscore (_),
12409         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
12410         * ralloc.c: newReg(): when register is REG_SFR then
12411         set address to rIdx,
12412         pic16_allocProcessorRegister(): marks register wasUsed=0
12413         pic16_writeUsedRegs(): added a call to assign processor
12414         registers via pic16_assignFixedRegisters
12415
12416 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12417
12418         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
12419         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
12420         variables in unused register banks.  Also the SSEG is placed
12421         wherever there is enough space for it, and IDATA can be anywhere
12422         in internal RAM.  For now compile using -Wl-Y[stack_size].
12423         The mem file is different for this option as well, since it
12424         makes no sense of talking about DSEG lenght.
12425
12426 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
12427
12428         * src/SDCClrange.c: fixed bug 869095 that caused segfault
12429         in certain cases, e.g. when ROM assignment, patch provided
12430         from Albert den Haan.
12431
12432 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
12433
12434         Many signedness and type propagation fixes:
12435         * src/SDCCicode.c: made geniCodeCast() static
12436         replaced SPEC_ by IS_ (cosmetic)
12437         (operandOperation): fixed div and mod operation
12438         (usualBinaryConversions): added support for promotion of char
12439         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
12440         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
12441         (geniCodeAdd): an array index will stay unsigned, even if promoted
12442         from char to int
12443         (geniCodeArray): ditto
12444         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
12445         * src/SDCCsymt.c (computeType): added more support for char;
12446         promotion of char is selectable by promoteCharToInt, fixed signedness
12447         for all cases
12448         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
12449         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
12450         * src/SDCCval (val*): replaced signedness calculation by
12451         computeType()
12452         rearranged if-branches (cosmetic)
12453         (valShift): added warning W_SHIFT_CHANGED
12454         (valCompare): fixed problem with different types
12455         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
12456         * support/regression/tests/literalop.c: added many cases
12457         * support/regression/tests/ast_constant_folding.c: changed finally to
12458         'unsigned int'
12459         * .version: new year, new version: 2.3.7
12460         * src/SDCCmain.c (main): applied patch #866468
12461         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
12462         provided by Scott Bronson
12463         * doc/sdccman.lyx: updated documentation for sdcdb
12464         updated and added chapter tips
12465
12466 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12467
12468         * src/SDCCsymt.h: missing from yesterday's commits
12469
12470 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12471
12472         * src/SDCC.y (struct_or_union_specifier),
12473         * support/Util/SDCCerr.c,
12474         * support/Util/SDCCerr.h: verify that struct & union tags are used
12475         as declared.
12476
12477 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12478
12479         * src/SDCCglobl.h: missing from yesterday's commits
12480
12481 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12482
12483         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
12484         sft_attributes, struct_declaration, parameter_declaration,
12485         type_name, start_block, declaration_list),
12486         * src/SDCC.lex (check_type): support redefinition of typedef names
12487
12488 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12489
12490         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
12491         aligned xdata arrays. Erik helped me with the if clause.
12492
12493 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12494
12495         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
12496         warning
12497
12498 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12499
12500         * src/SDCCast.h,
12501         * src/SDCCast.c (newAst_),
12502         * src/SDCCicode.h,
12503         * src/SDCCicode.c (ast2iCode, newiCode),
12504         * src/SDCCglobl.h,
12505         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
12506         expr, statement, expression_statement, selection_statement,
12507         iteration_statement, expr_opt, jump_statement): foundation for tracking
12508         sequence points
12509         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
12510         point code too)
12511
12512 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12513
12514         * support/Util/SDCCerr.c,
12515         * src/SDCCast.h,
12516         * src/SDCCast.c (createCase, createDefault, decorateType),
12517         * src/SDCClabel.c (labelUnreach),
12518         * src/SDCC.y (labeled_statement, jump_statement): More improvements
12519         to error messages.
12520         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
12521         (with thanks to Stas Sergeev)
12522         * device/include/time.h,
12523         * device/lib/time.c (CheckTime): suppress unreachable code warning
12524
12525 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12526
12527         * src/SDCCast.c (createIvalCharPtr),
12528         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
12529         bug #753752)
12530         * support/regression/tests/nullstring.c: tests for these two bugs
12531
12532 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12533
12534         * support/Util/SDCCerr.h,
12535         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
12536         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
12537         about storage class and 'at' used inside struct or union
12538         * src/SDCCBBlock.c (iCodeFromeBBlock),
12539         * src/SDCCcse.c (ifxOptimize),
12540         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
12541         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
12542         printIval, emitStaticSeg, emitOverlay),
12543         * src/SDCClabel.c (deleteIfx),
12544         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
12545         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
12546         gatherAutoInit, processParms),
12547         * support/Util/SDCCerr.h,
12548         * support/Util/SDCCerr.c (werrorfl): Support for better error location
12549         reporting for post-parse errors.
12550
12551 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12552
12553         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
12554         implicit casts via union; they don't work on big endian systems
12555         (possible fix for bug #861138)
12556
12557 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12558
12559         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
12560         * src/mcs51/main.c: fixed the fix for bug #737001
12561
12562 2003-12-15  Borut Razem <borut.razem AT siol.net>
12563
12564         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
12565
12566 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12567
12568         * support/makebin/makebin.c: put output in binary mode
12569
12570 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12571
12572         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
12573         xdata and data memory on startup. Set the environment variable
12574         SDCC_NOGENRAMCLEAR to disable this.
12575         * src/mcs51/peephole.def,
12576         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
12577         (allows non-interrupt and interrupt code to safely compete for a resource
12578         without the non-interrupt code having to disable interrupts)
12579
12580 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12581
12582         * src/SDCCicode.c (geniCodeAdd),
12583         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
12584         with valFromType if type might be a pointer and host is big endian).
12585         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
12586         types, not just integer types.
12587         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
12588         multiply defined with mismatching "at" address.
12589
12590 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12591
12592         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
12593         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
12594         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
12595         with embedded nulls (fixed bug #753752)
12596
12597 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12598
12599         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
12600         Apparently this did not see much testing (endless loop)
12601
12602 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12603
12604         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
12605
12606 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12607
12608         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
12609         gracefully handle NULL memmap pointers
12610
12611 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12612
12613         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
12614         instead of deleting the iCode when an operand is volatile
12615         * src/z80/gen.c (genDummyRead),
12616         * src/mcs51/gen.c (genDummyRead),
12617         * src/ds390/gen.c (genDummyRead),
12618         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
12619         not just IC_RIGHT
12620         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
12621         * src/SDCC.y: fixed bug #850420
12622
12623 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12624
12625         Applied z80 i/o port patch from Peter Townson and fixed some operators
12626         to better handle operands in A register.
12627         * device/include/z180.h
12628         * src/SDCC.y
12629         * src/SDCCglue.c
12630         * src/z80/gen.c
12631         * src/z80/gen.h
12632         * src/z80/main.c
12633         * src/z80/peeph-z80.def
12634         * src/z80/peeph.def
12635         * src/z80/z80.h
12636
12637 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12638
12639         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
12640
12641 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12642
12643         * device/lib/hc08/_mullong.c: Removed extra #endif
12644
12645 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12646
12647         * sim/ucsim/hc08.src/inst.cc,
12648         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
12649         carries from x to h
12650         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
12651         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
12652         * device/include/stdarg.h: fixed varargs for hc08
12653         * device/lib/Makefile.in,
12654         * device/lib/hc08/Makefile,
12655         * device/lib/hc08/_mulint.c,
12656         * device/lib/hc08/_mullong.c: fixed some endian problems
12657
12658 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12659
12660         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
12661         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
12662         * device/lib/_gptrget.c,
12663         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
12664
12665 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12666
12667         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
12668         * src/SDCCast.c (astErrors): fixed bug #846007
12669         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
12670
12671 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12672
12673         * src/SDCCast.c (decorateType): disabled a transformation I added in
12674         revision 1.188 (access to fields of a structure at an absolute address);
12675         it breaks with bitfields, extern declarations, and gcse analysis.
12676         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
12677         could be assigned through a pointer, so don't complain.
12678         * src/SDCCast.c (astErrors),
12679         * src/SDCCast.h,
12680         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
12681
12682 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
12683
12684         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
12685         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
12686         output of __config directives, since gpasm now supports them
12687         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
12688         pre-processor macro, i.e. -DMCU=p18f452
12689         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
12690         and modified to handle 'cast' icode similarly to '=' icode
12691         * src/pic16/device.h (typedef struct PIC_device): added field
12692         'extMIface' to indicate that chip has external memory interface
12693         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
12694         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
12695         18F8720
12696
12697 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12698
12699         * src/SDCC.y (pointer): fixed bug #846006
12700         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
12701         * src/SDCCast.c (decorateType): fixed bug #846009
12702         * src/ds390/peeph.def,
12703         * src/ds390/gen.c (genAnd, genOr),
12704         * src/mcs51/peeph.def,
12705         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
12706
12707 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12708
12709         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
12710         * src/SDCCdflow.c
12711         * src/SDCCcse.c
12712         * src/SDCCcse.h
12713         * src/SDCCBBlock.h
12714         * src/SDCCBBlock.c
12715
12716 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
12717
12718         fixed bug #845089
12719         * src/SDCCbitv.h,
12720         * src/SDCCbitv.c: added function to free a bitvector
12721         * src/SDCClrange.h,
12722         * src/SDCClrange.c: added function to recompute the liveranges
12723         * src/avr/ralloc.c,
12724         * src/ds390/ralloc.c,
12725         * src/hc08/ralloc.c,
12726         * src/mcs51/ralloc.c,
12727         * src/pic/ralloc.c,
12728         * src/pic16/ralloc.c,
12729         * src/xa51/ralloc.c,
12730         * src/z80/ralloc.c: recompute the liveranges after register packing
12731
12732 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
12733
12734         * src/SDCCloop.c (newInduction): fixed bug #845630
12735
12736 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12737
12738         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
12739         inadvertantly left behind from my 2003-11-12 change
12740
12741 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12742
12743         Updated headers I neglected to commit yesterday.
12744         * src/SDCClrange.h,
12745         * src/SDCCicode.h
12746
12747 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12748
12749         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
12750         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
12751         * src/SDCCopt.c (eBBlockFromiCode),
12752         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
12753         the creation of the key hash table from the sequencing so it can be used
12754         earlier (for some GCSE bug fixes still pending)
12755
12756 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12757
12758         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
12759         * support/regression/tests/addsub.c: testing genPlus shortcut
12760
12761 2003-11-15  Borut Razem <borut.razem AT siol.net>
12762
12763         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
12764
12765 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12766
12767         * src/SDCCcse.c (cseBBlock): fixed bug #527779
12768         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
12769         ordering is immaterial.
12770         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
12771
12772 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12773
12774         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
12775         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
12776         (SIGSEV) of bug #840381
12777         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
12778         unlink new file before rename if new and old filenames are the same)
12779
12780 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12781
12782         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
12783         uninitialized variables) for the mcs51. Set environment variable
12784         SDCC_GENRAMCLEAR to test.
12785         xdata initialization slightly shorter
12786
12787 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12788
12789         * src/SDCCsymt.h,
12790         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
12791         #838241 & 780691 (basicly the same bug)
12792         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
12793         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
12794
12795 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
12796
12797         * src/SDCCmain.c (linkEdit): "fix" #834252
12798
12799 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12800
12801         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
12802         * src/SDCCast.h,
12803         * src/SDCC.y: fixed bug #819403
12804
12805 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12806
12807         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
12808         the reentrant attribute.
12809         * src/hc08/gen.c (genPackBits): added missing stack readjustment
12810         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
12811         simulation
12812         * src/SDCCast.c (decorateType): fixed bug with storage class not being
12813         updated during pointer dereference; f.e. ~(((char *)1)*) was being
12814         erroneously reduced to a literal.
12815         * src/hc08/ralloc.c (packRegisters, rematStr),
12816         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
12817         some cases
12818
12819 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12820
12821         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
12822         * doc/sdccman.lyx: changed from 'article' to 'book'
12823         * doc/Makefile: readded test_suite_spec and cdbfileformat
12824
12825 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
12826
12827         * device/include/stdlib.h: include malloc.h to comply with ANSI
12828         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
12829
12830 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12831
12832         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
12833         * doc/clean.mk: also remove *.out files
12834         * doc/sdccman.lyx: some additions, larger top/bottom margins
12835
12836 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12837
12838         * src/SDCC.y: fixed bug #837365
12839         * support/regression/tests/bitopcse.c
12840         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
12841         a symbol (might be valop instead)
12842         * device/lib/Makefile.in: added errno.c to HC08SOURCES
12843         * device/lib/clean.mk: added hc08 to the cleaning list
12844
12845 2003-11-04  Borut Razem <borut.razem AT siol.net>
12846
12847         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
12848           made 2003-11-04
12849         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
12850           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
12851           malloc is declared in standard stdlib.h
12852
12853 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12854
12855         * device/lib/hc08/Makefile: need to clean .rel not .o files
12856         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
12857
12858 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12859
12860         * src/port.h,
12861         * src/hc08/main.c,
12862         * src/mcs51/main.c,
12863         * src/ds390/main.c,
12864         * src/z80/main.c,
12865         * src/avr/main.c,
12866         * src/pic/main.c,
12867         * src/pic16/main.c,
12868         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
12869         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
12870         tests (which uses the port's oclsExpense function)
12871         * src/SDCC.y,
12872         * src/SDCCast.c,
12873         * src/SDCCicode.c,
12874         * src/hc08/gen.c,
12875         * src/ds390/gen.c,
12876         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
12877
12878 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12879
12880         * src/SDCCcse.c (ifxOptimize),
12881         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
12882         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
12883         deleting the IFX iCode.
12884         * src/hc08/ralloc.c: reduced unneeded slocs
12885         * src/hc08/gen.c: fixed bug in asmopToBoolean
12886
12887 2003-11-04  Borut Razem <borut.razem AT siol.net>
12888
12889         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
12890           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
12891           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
12892           transferred to configure
12893
12894 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
12895
12896         Use headers defined in the C[++] standards:
12897         * sim/ucsim/gui.src/serio.src/fileio.cc
12898         * sim/ucsim/gui.src/serio.src/frontend.cc
12899         * sim/ucsim/gui.src/serio.src/main.cc
12900         * sim/ucsim/gui.src/serio.src/posix_signal.cc
12901         * support/Util/NewAlloc.c
12902         * as/hc08/lklibr.c
12903         * as/mcs51/lklibr.c
12904         * as/z80/aslist.c
12905         * as/z80/assym.c
12906
12907 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12908
12909         * Added MSVC projects for hc08 assembler and linker:
12910         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
12911         /as/hc08/link_hc08.dsp
12912
12913 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
12914
12915         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
12916
12917 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
12918
12919         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
12920
12921 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12922
12923         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
12924
12925 2003-10-31  Borut Razem <borut.razem AT siol.net>
12926
12927         * support/cpp2/cpplib.h,
12928           support/cpp2/cpplib.c,
12929           support/cpp2/cpplex.c,
12930           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
12931           to switch _asm block preprocessing on / off. Default is
12932           #pragma preproc_asm +
12933
12934 2003-10-31  Borut Razem <borut.razem AT siol.net>
12935
12936         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
12937           when outputting comment blocks (when executed with -C option) and
12938           _asm (SDCPP specific) blocks
12939
12940 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12941
12942         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
12943
12944 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
12945
12946         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
12947
12948 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
12949
12950         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
12951         * src/SDCCast.c (decorateType): fixed bug #832664
12952
12953 2003-10-31  Borut Razem <borut.razem AT siol.net>
12954
12955         * support/cpp2/cpplex.c: fixed for SDCPP:
12956           comments(when executed with -C option) and _asm blocks
12957           were included even if they where in skipped #if block.
12958           Applied solution from GCC cpp 3.3.2
12959
12960 2003-10-31  Borut Razem <borut.razem AT siol.net>
12961
12962         * src/SDCC.lex: sdcc now understands both formats:
12963           '# <line_number> <file_name>' and
12964           '#line <line_number> <file_name>'
12965         * support/cpp2/cppmain.c: sdcpp now generates the standard
12966           '# <line_number> <file_name>' instead of former
12967           '#line <line_number> <file_name>'
12968
12969 2003-10-30  Borut Razem <borut.razem AT siol.net>
12970
12971         * support/cpp2/cpphash.h,
12972         * support/cpp2/cpplib.h
12973         * support/cpp2/cpplex.c,
12974         * support/cpp2/cppmain.c,
12975         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
12976
12977 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12978
12979         Fixed a number of problems revealed by bug #827883.
12980         * src/SDCCloop.c (loopInvariants): Spill location of the
12981         result operand should be recomputed if extracted from
12982         a loop. Also, don't extract assignments of an iTemp
12983         from a literal.
12984         * src/SDCCast.c (isConformingBody): loop reversal should
12985         not occur if the control variable is involved with a
12986         relational operator.
12987
12988 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
12989
12990         * .version: bumped to 2.3.6 to reflect the big improvements
12991         made by Erik and Klaus. Thanks!
12992
12993 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
12994
12995         Replaced the livrange code.
12996         * src/SDCClrange.c: added new LR code
12997         * src/SDCCloop.c,
12998         * src/SDCCBBlock.h: removed remainig parts from old LR code
12999         * src/ds390/ralloc.c,
13000         * src/ds390/gen.c: minor fixes to make it work with new code
13001
13002 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13003
13004         * as/hc08/asm.h,
13005         * as/hc08/lkrloc.c,
13006         * src/hc08/gen.c,
13007         * src/hc08/ralloc.c: Fix various warnings related to the hc08
13008         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
13009         (tweaked fix for bug #818696)
13010
13011 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13012
13013         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
13014
13015 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13016
13017         * src/SDCCmain.c,
13018         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
13019         * src/mcs51/gen.c (gencjneshort),
13020         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
13021         more efficient (per Scott Bronson's suggestion)
13022
13023 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13024
13025         Extended the semantics of the critical keyword to include
13026         individual statements. See RFE #827755 and #799831
13027         * src/SDCC.y
13028         * src/SDCCicode.c
13029         * src/SDCCopt.c
13030         * src/SDCCast.c
13031         * support/Util/SDCCerr.c
13032         * support/Util/SDCCerr.h
13033         * src/mcs51/gen.c
13034         * src/ds390/gen.c
13035         * src/hc08/gen.c
13036
13037 2003-10-19  Borut Razem <borut.razem AT siol.net>
13038
13039         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
13040
13041 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13042
13043         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
13044         Fixed bug #818696
13045         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
13046         and predecrement operand is displayed
13047
13048 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
13049
13050         * src/SDCCval.c (valMinus): fixed bug #826041
13051
13052 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13053
13054         Some hc08 related updates that I missed earlier
13055         * sim/ucsim/stypes.h
13056         * support/regression/ports/hc08/spec.mk
13057
13058 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13059
13060         New target "hc08" for the Motorola 68hc08 family of micros
13061
13062         * configure
13063         * configure.in
13064         * Makefile
13065         * src/hc08/*
13066         * src/SDCCmain.c
13067         * src/port.h
13068         * sim/ucsim/hc08.src/*
13069         * sim/ucsim/configure.in
13070         * src/ucsim/configure
13071         * sim/ucsim/packages_in.mk
13072         * as/hc08/*
13073         * as/Makefile
13074         * device/include/mc68hc908qy.h
13075         * device/lib/hc08/*
13076         * device/lib/Makefile.in
13077         * support/regression/ports/hc08/*
13078         * support/regression/Makefile
13079
13080 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13081
13082         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
13083         regression test
13084         * src/ds390/gen.c (genCast): fixed bug #821957
13085
13086 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
13087
13088         * device/lib/logf.c: "fixed" overlay bug
13089         * support/regression/ports/host/spec.mk: added m library
13090         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
13091         * support/regression/tests/float_trans: added (for Eric)
13092
13093 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
13094
13095         * src/mcs51/gen.c (genCpl): fixed bug
13096         http://sf.net/mailarchive/message.php?msg_id=6263915
13097
13098 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
13099
13100         * src/SDCCast.c (decorateType): added extended constant folding
13101         * src/SDCCsymt.c (computeType): cleanup
13102         * src/SDCCval.c (valShift): minor optimization
13103         * support/regression/tests/ast_constant_folding.c: added
13104
13105 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13106
13107         * src/SDCCmain.c: removed some unintended changes
13108
13109 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13110
13111         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
13112         * src/z80/gen.c: fixed part of bug #817589
13113         * src/SDCCsymt.c (checkFunction): fixed bug #817895
13114
13115 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
13116
13117         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
13118         * src/SDCCcflow.c
13119         * src/SDCCcse.c
13120         * src/SDCCdflow.c
13121         * src/SDCClabel.c
13122         * src/SDCClrange.c
13123         * src/SDCCmem.c
13124         * src/SDCCopt.c
13125         * src/SDCCpeeph.c
13126         * src/SDCCset.c
13127         * src/avr/ralloc.c
13128         * src/ds390/ralloc.c
13129         * src/izt/ralloc.c
13130         * src/mcs51/ralloc.c
13131         * src/pic/ralloc.c
13132         * src/pic16/ralloc.c
13133         * src/xa51/ralloc.c
13134         * src/z80/ralloc.c
13135         * src/z80/gen.c: removed unused label "release:"
13136
13137 2003-10-06  Borut Razem <borut.razem AT siol.net>
13138
13139         * src/SDCC.lex: removed definition of unused variables
13140           save_optimize and save_options
13141
13142 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
13143
13144         * clean.mk: removed '=' in "-maxdepth=1"
13145         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
13146         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
13147
13148 2003-10-06  Borut Razem <borut.razem AT siol.net>
13149
13150         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
13151           my_unput() replaced by unput()
13152
13153 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
13154
13155         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
13156         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
13157         type-punned pointer will break strict-aliasing rules"
13158         Old LR behaviour is again default; Klaus' LR can be choosen by
13159         defining the environment variable LRKLAUS
13160         * src/SDCCBBlock.h
13161         * src/SDCCloop.c
13162         * src/SDCClrange.c
13163         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
13164         * clean.mk: fixed removal of files in bin/CVS/
13165         * device/lib/clean.mk: fixed removal of directories small and large
13166         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
13167         * src/SDCCicode.c,
13168         * src/SDCCval.c: removed superflous test for pedantic
13169
13170 2003-10-05  Borut Razem <borut.razem AT siol.net>
13171
13172         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
13173           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
13174           message "unmatched #pragma SAVE and #pragma RESTORE"
13175
13176 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13177
13178         * doc/sdccman.lyx: various additions and updates (interrupts, inline
13179           assembly, critical functions, atomic, nojtbound)
13180
13181 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
13182
13183         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
13184         * src/SDCCBBlock.h
13185         * src/SDCCloop.c
13186         * src/SDCCloop.h
13187         * src/SDCClrange.c
13188
13189 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13190
13191         * src/z80/gen.h,
13192         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13193         * src/mcs51/gen.h
13194         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13195         * src/ds390/gen.h
13196         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13197         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
13198         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
13199
13200 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13201
13202         * src/z80/gen.c (genRet): fixed bug #524753
13203         * src/z80/gen.c (genCast): fixed internal error on cast from
13204         pointer to long
13205         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
13206         fix for bug #477835 to the z80
13207         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
13208         for tracking iCodes in the peephole optimizer for z80
13209
13210 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13211
13212         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
13213         the other part of bug #814548
13214         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
13215
13216 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
13217
13218         * src/SDCCcse.c: fixed part of bug #814548
13219
13220 2003-09-28  Borut Razem <borut.razem AT siol.net>
13221
13222         * src/asm.c: rewrite of printILine() to use temporary file instead
13223           a pipe
13224         * src/xa51/main.c: commented out declaration of int rewinds
13225
13226 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13227
13228         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
13229
13230 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13231
13232         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
13233         * src/asm.c (printILine): Fixed bug #811015
13234
13235 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13236
13237         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
13238         freeing.
13239
13240 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13241
13242         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
13243         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
13244         to correctly handle general case of AOP_PAIRPTR
13245         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
13246
13247 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13248
13249         * src/mcs51/ralloc.c (fillGaps),
13250         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
13251         register positioning bug)
13252
13253 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
13254
13255         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
13256
13257 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13258
13259         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
13260         genCodePointerGet, genGenPointerGet, genFarPointerSet,
13261         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
13262         (ralloc doesn't intentionally do this now, but perhaps later)
13263         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
13264         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
13265         register positioning bugs (Fixed bug #762602 and #795325)
13266         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
13267         (Fixed bug #808779)
13268         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
13269         lines that --i-code-in-asm generates
13270
13271 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13272
13273         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
13274         trying to fclose a FILE* that was already closed.
13275
13276 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13277
13278         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
13279         of const struct should be treated as if const themselves)
13280
13281 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
13282
13283         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
13284
13285 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13286
13287         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
13288         Unix (/n) and DOS (/r/n) line terminations.
13289
13290 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13291
13292         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
13293         bug #613775
13294
13295 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13296
13297         * src/mcs51/gen.c (genFunction, genEndFunction),
13298         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
13299         and restore of EA so that stack offsets to parameters are
13300         correct when using both critical and reentrant/stack-auto.
13301         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
13302         size (can be triggered in error if sloc is shared between
13303         different sized objects)
13304         * device/include/float.h: fixed macros to explicitly use
13305         unsigned long where needed
13306
13307 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
13308
13309         Feature req. 799831: added code to allow nesting of critical functions
13310         * src/mcs51/gen.c (genFunction, genEndFunction)
13311         * src/ds390/gen.c (genFunction, genEndFunction)
13312
13313 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13314
13315         * src/SDCCsymt.c (sclsFromPtr),
13316         * src/SDCCsymt.h,
13317         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
13318         support for standard C idiom of memory mapped variables; for
13319         example, *((xdata int*)0x1234) = 1 is now internally equivalent
13320         to xdata int at 0x1234 tempvar = 1.
13321         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
13322         provided by Akiya ISHIDA
13323
13324 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
13325
13326         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
13327         * src/SDCCval.c (constVal): added reduction from int to char
13328         * src/SDCCval.c (valMult, valDiv): fixed sign handling
13329         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
13330         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
13331         to ignore the sign
13332         * support/regression/tests/shifts.c: fixed
13333
13334 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13335
13336         * src/z80/gen.c (genXor): Fixed bug #805445
13337
13338 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13339
13340         Fixed bug #621531 (const & volatile confusion in the type chain).
13341         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
13342         refer to the const or volatile state of the pointer itself.
13343
13344         * src/SDCCast.c
13345         * src/SDCCglue.c
13346         * src/SDCCicode.c
13347         * src/SDCCsymt.c
13348         * src/SDCCval.c
13349         * src/SDCC.y
13350         * src/SDCCsymt.h
13351         * src/pic/gen.c
13352         * src/pic/ralloc.c
13353         * src/pic16/gen.c
13354         * src/pic16/ralloc.c
13355         * support/regression/tests/const.c
13356
13357 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13358
13359         When checking for duplicated modules, use absolute paths
13360         instead of relative paths.  Files changed:
13361
13362         * as/mcs51/lklib.c
13363         * link/z80/lklib.c
13364
13365 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13366
13367         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
13368
13369 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13370
13371         * device/include/string.h: added size_t typedef, changed
13372         prototypes to use size_t, eliminated separate reentrant and
13373         non-reentrant declarations, added _memmove declaration
13374         * device/lib/_memcpy.c: changed to use size_t instead of int,
13375         changed /4 to >>2 to avoid division library call
13376         * device/lib/_memcmp.c,
13377         * device/lib/_memset.c,
13378         * device/lib/_strncat.c,
13379         * device/lib/_strncpy.c,
13380         * device/lib/_strncmp.c: changed to use size_t instead of int
13381         * device/lib/_memmove.c: new file (fixed bug #772294)
13382         * device/lib/Makefile.in: added _memmove.c
13383         * device/lib/z80/asm_strings.s: fixed bug #772290
13384         * support/regression/tests/bitfields.c: attempt to fix host assertion
13385         failure on amd64-unknown-linux2.2
13386
13387 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13388
13389         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
13390         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
13391         * as/z80/asmain.c (main): fixed bug #801766
13392
13393 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
13394
13395         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
13396         compilers
13397
13398 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13399
13400         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
13401         reported in bug #800609
13402
13403 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
13404
13405         * Top header beautifications in src/pic16 directory:
13406           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
13407           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
13408           pcoderegs.h, ralloc.c, ralloc.h
13409         * main.c: added top header and GPL license notice
13410         * pcode.c: fixed the if-conditional warning
13411
13412 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
13413
13414         * device/lib/_mullong.c: replaced int by short for gcc
13415
13416 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13417
13418         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
13419         and JUMPTABLE iCodes properly now (worked by accident before)
13420         * src/mcs51/gen.c (leftRightUseAcc),
13421         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
13422         iCode properly now. Use getSize instead of nRegs since a & b
13423         aren't part of the nRegs tally.
13424
13425 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
13426
13427         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
13428         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
13429           before instructions that use the _STATUS register
13430
13431 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
13432
13433         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
13434         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
13435         fetching of the pointer
13436         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
13437         copied from genNearPointerSet()
13438         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
13439         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
13440         If they pop r0/r1 they must be called in the opposite order than aopOp().
13441         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
13442         (resp. --stack-auto), prepared for --xstack
13443
13444 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13445
13446         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
13447
13448 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
13449
13450         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
13451         these ports have their own __sdcc_external_start()
13452
13453 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
13454
13455         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
13456         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
13457         type for bits was changed. It resulted in bit variables becoming
13458         global, which is not permitted in PIC 14 assembly output.
13459
13460 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13461
13462         * doc/sdccman.lyx: various additions and updates. Rearranged sections
13463
13464 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13465
13466         Z80 and MCS51 linkers complaint if a public symbol is defined
13467         in more than one library module:
13468
13469         * as/mcs51/lklib.c
13470         * link/z80/lklib.c
13471         * as/mcs51/Makefile.in
13472
13473 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13474
13475         A few small changes that speed up the peephole optimizer.
13476
13477         * src/SDCCpeeph.c
13478
13479 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13480
13481         Try to make the peephole optimizer smarter by maintaining
13482         an association between the assembly source code and the
13483         iCodes that originated them. Put this information to use
13484         with a new peephole rule condition "notVolatile" so that
13485         the rules can be aggressive yet still safe.
13486
13487         * src/SDCCpeeph.c
13488         * src/SDCCpeeph.h
13489         * src/mcs51/gen.c
13490         * src/mcs51/peeph.def
13491
13492 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13493
13494         Fixed bug #741761
13495
13496         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
13497         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
13498         if the left or right operand symbols have the accuse flag set.
13499
13500 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13501
13502         Changed the type of the result of the ! (NOT) operator to char;
13503         previously it returned the same type as the source. This allows
13504         us to eliminate all the genFloatNot functions (all of its target
13505         implementations were very buggy) since !float can use the same
13506         code as !long now.
13507
13508         * src/SDCCicode.c (ast2iCode): ! returns char
13509         * src/mcs51/gen.c (genNot, genNotFloat),
13510         * src/ds390/gen.c (genNot, genNotFloat),
13511         * src/z80/gen.c (genNot, genNotFloat),
13512         * src/pic/gen.c (genNot, genNotFloat),
13513         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
13514
13515 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
13516
13517         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
13518         1. Interrupt would not compile properly. Ensure PCLATH register is saved
13519            during interrupts. Ensure WSAVE is located at a shared bank address.
13520         2. Fixed page selection in some places
13521         3. Fixed BTFSS/C to where necessary use registers directly and not simply
13522            the registers name strings.
13523         4. Fixed "signed / unsigned compare" compiler warnings.
13524         5. The PIC port manages its own allocation of the general purpose
13525            registers, but makes no attempt to reuse them. As a result when
13526            compiling it soon runs out of general purpose registers. Some
13527            additional code was added to the files pcode.c and device.c to walk
13528            through the function call tree and rename the registers so that they
13529            get reused.
13530
13531         * src/pic/device.c
13532         * src/pic/gen.c
13533         * src/pic/glue.c
13534         * src/pic/pcode.c
13535         * src/pic/pcode.h
13536         * src/pic/ralloc.c
13537         * src/pic/ralloc.h
13538         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
13539         genPlus() & genMinus() when the result is the same as left or right
13540
13541 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13542
13543         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
13544
13545 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13546
13547         Made bitfield a distinct type from bit so that bitfields
13548         convert as per ANSI C and bits retain their traditional
13549         boolean style behaviour. Implemented bitfield support in
13550         the z80 port.
13551
13552         * src/SDCCsymt.h,
13553         * src/SDCCsymt.c,
13554         * src/SDCCast.c,
13555         * src/cdbFile.c,
13556         * src/mcs51/gen.c,
13557         * src/ds390/gen.c: bit v bitfield split
13558         * src/z80/gen.c: New support for bitfields
13559         * support/regression/tests/bitfields.c: reenabled z80,
13560         added more tests
13561
13562 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13563
13564         Rules 246.x, 247.x relate to bitfields, the others speed up
13565         access to xdata mapped I/O devices.
13566
13567         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
13568
13569 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13570
13571         Cleaned up genPackBits and genUnpackBits and added two helper
13572         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
13573         for literal assignments in genPackBits (thanks to Frieder for
13574         reminding me).
13575
13576         * src/mcs51/gen.c
13577         * src/ds390/gen.c
13578
13579 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13580
13581         Fixed bug #748310 (pointer to function type mishandled when the
13582         function name is omitted). Also fixed a SIGSEGV when a function
13583         attribute (reentrant, etc) is used on a non-function or on a
13584         function but misplaced before the parameter list.
13585
13586         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
13587         bug #748310
13588         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
13589         * support/Util/SDCCerr.h,
13590         * support/Util/SDCCerr.c: Added func attr misuse error msg
13591
13592 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
13593
13594         Fixed bug #787649 by anonymous
13595         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
13596         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
13597
13598 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13599
13600         Fixed numerous bitfield problems.
13601
13602         * src/SDCC.y: More bitfield related error checking
13603         * src/SDCCsymt.h,
13604         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
13605         * support/Util/SDCCerr.h,
13606         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
13607         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
13608         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
13609         * support/regression/tests/bitfields.c: tests added
13610
13611 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13612
13613         Made the constant following the "interrupt" keyword optional. If
13614         omitted, the function will not automatically be given an entry
13615         in the interrupt vector table (similar to #pragma NOIV, but
13616         less syntacticly kludgy). The interrupt number is also now
13617         range checked. Also fixed a bug in the high order bit example
13618         in the manual.
13619
13620         * src/SDCC.y
13621         * src/SDCCmem.c
13622         * src/SDCCglue.c
13623         * src/SDCCsymt.h
13624         * support/Util/SDCCerr.c
13625         * support/Util/SDCCerr.h
13626         * doc/sdccman.lyx
13627
13628 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
13629
13630         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
13631         * src/SDCCicode.c (operandOperation): rewritten some ops
13632         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
13633         * src/SDCCsymt.c (computeType): literals are handled the same way as any
13634         other type
13635         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
13636         be re-activated by defining REDUCE_LITERALS)
13637         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
13638         unsigned, but are signed by default
13639         * src/SDCCval.c (constVal): rearranged
13640         * src/SDCCval.c (valMod): preliminary fix
13641         * src/SDCCval.c (valCastLiteral): use TYPE_* types
13642         * support/regression/literalop.c: added, work in progress
13643
13644 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13645
13646         Generate warnings for useless declarations like "char data;"
13647         that don't do what new users expect.
13648
13649         * src/SDCC.y
13650         * support/Util/SDCCerr.h
13651         * support/Util/SDCCerr.c
13652
13653 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
13654
13655         * src/SDCCval.c (valMult): fix overflow detection of negative int
13656
13657 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13658
13659         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
13660
13661         Changes to support big endian targets:
13662
13663         * src/ports.h
13664         * src/SDCCglue.c
13665         * src/avr/main.c
13666         * src/ds390/main.c
13667         * src/izt/i186.c
13668         * src/mcs51/main.c
13669         * src/pic/main.c
13670         * src/pic16/main.c
13671         * src/xa51/main.c
13672         * src/z80/main.c
13673
13674 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
13675
13676         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
13677         * device/lib/time.c: fixed warning "integer overflow in expression"
13678
13679 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
13680
13681         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
13682         * src/SDCCval.c (constVal): changed default to signed; hex and octal
13683         constants are unsigned; added recognition of "u" flag for unsigned
13684         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
13685         * src/SDCCval.c (valDiv, valMod): fixed signdness
13686         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
13687         signedness of modulo, left and right shift
13688         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
13689         * support/Util/SDCCerr.h: added warning W_INT_OVL
13690         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
13691         * src/SDCCast.c (ast_print): improved output of constants
13692
13693 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13694
13695         Fixed some warnings when building with MSVC:
13696
13697         * as/mcs51/asdata.c
13698         * as/z80/asdata.c
13699         * as/mcs51/asm.h
13700         * as/z80/asm.h
13701         * link/z80/aslink.h
13702         * link/z80/lkdata.c
13703         * link/z80/lkeval.c
13704         * link/z80/lkgb.c
13705         * link/z80/lkihx.c
13706         * link/z80/lks19.c
13707         * link/z80/lksym.c
13708         * support/cpp2/cpplib.c
13709         * src/ds390/gen.c
13710         * src/mcs51/gen.c
13711
13712 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
13713
13714         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
13715
13716 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13717
13718         * support/librarian/clean.mk: Do not remove Makefile.
13719         * support/librarian/Makefile: added.
13720
13721 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13722
13723         Added librarian to MSVC build:
13724         * all.dsp
13725         * sdcc.dsw
13726         * support/librarian/librarian.dsp
13727
13728         'configure' not needed for librarian, removed:
13729         * support/librarian/configure
13730         * support/librarian/configure.in
13731         * support/librarian/config_in.h
13732         * support/librarian/Makefile.in
13733
13734         Hopefully these ones built the librarian and the rest of sdcc properly:
13735         * Makefile
13736         * Makefile.common.in
13737
13738         Messed up 'configure', so revert to previous version:
13739         * configure
13740         * configure.in
13741
13742 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
13743
13744         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
13745         there, while the mantissa of a double is "only" 53 bits wide.
13746
13747 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13748
13749         Adding sdcclib to the build.  MSVC project coming soon.
13750         Files added/changed:
13751
13752         * support/librarian/clean.mk
13753         * support/librarian/configure
13754         * support/librarian/configure.in
13755         * support/librarian/config_in.h
13756         * support/librarian/Makefile.bcc
13757         * support/librarian/Makefile.in
13758         * support/librarian/sdcclib.c
13759         * Makefile.bcc
13760         * Makefile
13761         * Makefile.common.in
13762         * configure
13763         * configure.in
13764
13765 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13766
13767         Linker now complaints if linked modules have conflicting options, for
13768         example, one compiled using --model-large and another one compiled with
13769         --model-small.  The following files were modified:
13770
13771         * as/mcs51/asdata.c
13772         * as/mcs51/aslink.h
13773         * as/mcs51/asm.h
13774         * as/mcs51/asmain.c
13775         * as/mcs51/asout.c
13776         * as/mcs51/i51pst.c
13777         * as/mcs51/lkdata.c
13778         * as/mcs51/lklibr.c
13779         * as/mcs51/lkmain.c
13780         * as/z80/asdata.c
13781         * as/z80/asm.h
13782         * as/z80/asmain.c
13783         * as/z80/asout.c
13784         * as/z80/z80pst.c
13785         * link/z80/aslink.h
13786         * link/z80/lkdata.c
13787         * link/z80/lklibr.c
13788         * link/z80/lkmain.c
13789         * src/SDCCglue.c
13790
13791 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13792
13793         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
13794         as/mcs51/lklibr.c: Generate a warning when a library is not found.
13795
13796 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
13797
13798         * src/z80/mappings.i: fix _mul[us][int,long] entries
13799
13800 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13801
13802         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
13803
13804 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
13805
13806         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
13807         * support/regression/tests/bitopcse.c: added
13808         fixed warning:
13809         * src/avr/gen.c:
13810         * src/pic/gen.c:
13811         * src/pic16/gen.c:
13812         * src/z80/gen.c:
13813         * src/xa51/gen.c:
13814
13815 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13816
13817         added support for new library format to z80, gbz80 linkers:
13818         *link/z80/aslink.h
13819         *link/z80/lklex.c
13820         *link/z80/lklib.c
13821         *link/z80/lklist.c
13822
13823 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
13824
13825         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
13826         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
13827
13828 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
13829
13830         added DUMMY_READ_VOLATILE:
13831         * src/SDCC.y:
13832         * src/avr/gen.c:
13833         * src/xa51/gen.c:
13834         * src/z80/gen.c:
13835         * src/pic/gen.c:
13836         * src/pic16/gen.c:
13837         * src/mcs51/gen.c:
13838         * src/ds390/gen.c:
13839         * src/SDCCcse.c (algebraicOpts): many improvements
13840         * src/SDCCcse.h: removed algebraicOpts()
13841         * src/SDCCicode.c (picDummyRead): added
13842
13843 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13844
13845         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
13846         "Insufficient space in data memory".
13847
13848 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13849
13850         * src/mcs51/gen.c: fixed bug #771358
13851         * src/z80/gen.c: fixed bug #759087
13852
13853 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
13854
13855         * src/pic16/glue.c: minor cleanup by Vangelis
13856
13857 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13858
13859         * device/include/regc515c.h: fixed #758477
13860         * device/lib/_gptrget.c: saving some cycles in generic pointer get
13861         * device/lib/_gptrput.c: saved a few bytes
13862         * my tab spacing is 8, yours too?)
13863         * device/lib/_ser.c: process RX bytes earlier than TX bytes
13864         * device/lib/serial.c: process RX bytes earlier than TX bytes
13865         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
13866
13867 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13868
13869         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
13870
13871 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13872
13873     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
13874
13875 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
13876
13877         * device/lib/Makefile.in: bad fix, reverted to 1.43
13878
13879 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
13880
13881         * device/lib/Makefile.in: added missing z80 object files
13882
13883 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
13884
13885         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
13886         pic16 progress by Vangelis:
13887         * src/SDCCglobl.h:
13888         * src/SDCCmain.c:
13889         * src/pic/Makefile:
13890         * src/pic:
13891         * pic/Makefile:
13892         * pic16/device.c:
13893         * pic16/device.h:
13894         * pic16/gen.c:
13895         * pic16/gen.h:
13896         * pic16/genarith.c:
13897         * pic16/glue.c:
13898         * pic16/main.c:
13899         * pic16/pcode.c:
13900         * pic16/pcode.h:
13901         * pic16/pcodepeep.c:
13902         * pic16/peeph.def:
13903
13904 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13905
13906     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
13907
13908 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13909
13910     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
13911     added gbz80 build to MSVC project.
13912     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
13913     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
13914     from 8051 stuff and setup so it links using a .lnk file.
13915
13916 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13917
13918     * support/librarian/sdcclib.c: sdcc librarian.
13919     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
13920     with sdcclib.
13921
13922 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13923
13924     * as/mcs51/lkmain.c: properly handle extensions in function afile.
13925
13926 2003-07-02  Borut Razem <borut.razem AT siol.net>
13927
13928         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
13929         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
13930         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
13931         src/xa51/main.c, src/z80/main.c:
13932         virtualization of glue() function: each port has it's own glue function,
13933         which is accessed by do_glue function pointer in PORT.general structure
13934
13935 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
13936
13937         * DS800C400 fun, improved ROM interface and tinibios.
13938
13939 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
13940
13941         * More support for DS80C400. Now includes beginning of interface to ROM.
13942
13943 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
13944
13945         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
13946
13947 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13948
13949         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
13950
13951 2003-06-19  Borut Razem <borut.razem AT siol.net>
13952
13953         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
13954
13955 2003-06-19  Borut Razem <borut.razem AT siol.net>
13956
13957         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
13958         fixed Z80 port - crt0.o: cannot open.
13959
13960 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
13961
13962         * support/Util/MySystem.c (merge_command): revert bad fix
13963
13964 2003-06-18  Borut Razem <borut.razem AT siol.net>
13965
13966         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
13967
13968 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13969
13970         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
13971         option --use-stdout sends errors to stdout instead of stderr.
13972
13973 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
13974
13975         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
13976
13977 2003-06-15  Borut Razem <borut.razem AT siol.net>
13978
13979         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
13980         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
13981         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
13982         fixed width array of pointers replaced with sets;
13983         multiple include and lib paths ared transferred to preprocessor and linker
13984         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
13985         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
13986         fixed width array of pointers
13987         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
13988         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
13989         fixupPath(), getPathDifference()
13990         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
13991         fixed width array of pointers
13992
13993 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
13994
13995         * src/pic16/ralloc.c: fix warnings
13996         * src/pic16/pcode.c: fix warning
13997
13998 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
13999
14000          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
14001         know all the details, but essentially this set of changes enable
14002         the pic16 port to generate movff instructions and generate assembler
14003         directives,
14004         * src/SDCCmain.c:
14005         * src/pic16/gen.c:
14006         * src/pic16/glue.c:
14007         * src/pic16/pcode.c:
14008         * src/pic16/device.c:
14009         * src/pic16/main.c:
14010         * src/pic16/pcode.h:
14011         * src/pic16/pcoderegs.c:
14012         * src/pic16/ralloc.c:
14013         * src/pic16/ralloc.h:
14014
14015 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14016
14017         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
14018         added option --vc, so sdcc errors and warnings are compatible with
14019         Microsoft Visual Studio.
14020
14021 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14022
14023         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
14024           device/lib/libfloat.lib: added atof function.
14025
14026 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
14027
14028         * doc/sdccman.lyx: updated to Lyx 1.3
14029         * doc/cdbfileformat.lyx: updated to Lyx 1.3
14030         * doc/test_suite_spec.lyx: updated to Lyx 1.3
14031         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
14032
14033 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
14034
14035         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
14036
14037 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14038
14039         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
14040           additions to the "related tools/documentation" section
14041
14042 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
14043
14044         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
14045
14046 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
14047
14048         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
14049         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
14050
14051 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
14052
14053         * doc/sdccman.lyx: fix double dash and other minor things
14054         * doc/Makefile: fix double dash
14055
14056 2003-05-28  Karl Bongers(patches from Martin Helmling)
14057         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
14058           condition and ignore commands.
14059
14060 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14061
14062         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
14063           is in parts still quite out of date, I did changes as far as I felt makes sense
14064           for a non-native english speaker.
14065           Please feel free to add to the manual or to correct my changes.
14066         * doc/Makefile: undid touching the date of intermediate tex files.
14067
14068 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14069
14070         * doc/sdccman.lyx: Manual has an index now
14071
14072 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
14073
14074         Finalize muluint/mulsint and mululong/mulslong merging:
14075         * device/lib/_mulint.c
14076         * device/lib/_mullong.c
14077         * device/lib/gbz80/mul.s
14078         * device/lib/gbz80/stubs.s
14079         * device/lib/z80/mul.s
14080         * device/lib/z80/stubs.s
14081         * src/SDCCsymt.c (initCSupport)
14082
14083 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14084
14085         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
14086         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
14087           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
14088           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
14089           instead of /Zm500.
14090
14091 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14092
14093         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
14094           the regression tests I'm not brave enough to enable 245.b, 245.c
14095         * doc/sdccman.lyx: added latex preamble for hyperref package.
14096           Using pdflatex this will give you a hyperlinked pdf file with
14097           bookmarks. (prepend '%' before /usepackage if this breaks something)
14098
14099 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14100
14101          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
14102
14103 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
14104
14105         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
14106
14107 2003-05-21    <johan AT balder>
14108
14109         * src/SDCCglue.c (printIval): fixed bug #739934
14110
14111 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
14112
14113         Applied patch from bug 737905 (renamed yylineo to mylineno):
14114         * src/altlex.c
14115         * src/SDCCast.c
14116         * src/SDCglobl.h
14117         * src/SDCC.lex
14118         * src/SDCCsymt.c
14119         * src/SDCCval.c
14120         * src/pic16/pcode.c: Cleaned warnings
14121         * src/pic16/pcodeflow.c: Cleaned warnings
14122         * src/pic16/pcoderegs.c: Cleaned warnings
14123
14124 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
14125
14126         * src/pic16/pcode.c: Cleaned warnings
14127         * src/pic16/pcodepeep.c: Cleaned warnings
14128         * src/pic16/ralloc.c: Cleaned warnings
14129
14130 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
14131
14132         * doc/sdccman.lyx: fixed bug 739745
14133         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
14134
14135 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
14136
14137         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
14138         it can be defined with CFLAGS when running configure
14139         * src/SDCCmain.c: fixed compiling + linking with object files
14140
14141 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
14142
14143         * configure.in: configure for pic16 port,
14144             added --disable-pic16-port
14145         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
14146         * src/SDCCmain.c: linkOptions is changed to set *,
14147             added if/endif conditional macros to remove options help
14148             messages from optionsTable when a port is not configured, added
14149             support for the PIc16 port in the ports table, when executing
14150             the compiler with no port specified on command line, a default
14151             port is selected with the new macro DEFAULT_PORT which is
14152             defined in port.h, in setDefaultOptions() linkOptions is removed
14153             from initialization assignment, since now it is a set,
14154             parseCmdLine uses setParseWithComma for linkOptions, in
14155             linkEdit() linkOptions are accessed with new function indexSet()
14156             which returns the i'th item of a set variable. See SDCCset.c, in
14157             linkEdit() when calling buildCmdLine(), added linkOptions as
14158             last argument. Now users can pass arguments to gplink via the
14159             -Wl option, main() uses pic16glue() to glue up pic16 programs
14160         * src/SDCCpeeph.c: various changes to support pic16
14161         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
14162             return the i'th item of the set
14163         * src/SDCCset.h: added function prototype for indexSet()
14164         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
14165         * src/clean.mk: added pic16 in CLEANALLPORTS variable
14166         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
14167             added macro DEFAULT_PORT
14168         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
14169         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
14170             generated
14171         * src/pic16/glue.c: commented out some error producing lines
14172         * src/pic16/main.c: __config directives are commented out to stop
14173             gpasm complaining and test the linkage with gplink, _linkCmd and
14174             _asmCmd changed to be more gplink and gpasm friendly
14175         * src/pic16/peeph.def: peep rule 3 is commented out, since it
14176             produced an error when parsed, peep rule 12 is added to utilize
14177             movff, but it is commented out since the pCode does not support
14178             yet a command with 2 address arguments
14179
14180 2003-05-18    <johan AT balder>
14181
14182         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
14183         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
14184 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
14185
14186         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
14187   Added feature to script commands from file.
14188
14189 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
14190
14191         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
14192         * src/SDCCutil.c: include ctype.h for win32
14193
14194 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
14195
14196         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
14197
14198 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
14199
14200         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
14201   Fixed so you can set breakpoints prior to run, run does not stop
14202   on entry now.  Add tbreak.  Other enhancements and fixes for use
14203   with ddd.
14204
14205 2003-05-12  Borut Razem <borut.razem AT siol.net>
14206
14207         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
14208
14209 2003-05-11  Borut Razem <borut.razem AT siol.net>
14210
14211         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
14212         the path of bin directory, so that PATH is the only env. variable, which has to be set
14213         in case of standard installation.
14214         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
14215         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
14216         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
14217
14218 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
14219
14220         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
14221         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
14222         temp files are in the port dir; clean the gen/test directory when
14223         generating new test.c
14224         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
14225         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
14226         * support/regression/tests/zeropad.c: added
14227
14228 2003-05-09    <johan AT balder>
14229
14230         * src/SDCCglue.c: fixed bug #597940
14231
14232 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
14233
14234         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
14235   cache sfr, optimize next,step, fix off by one sourceline,
14236   support ddd list function.
14237         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
14238
14239 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
14240
14241         * support/regression/HTMLgen.py: added compare_s2f()
14242         * support/regression/Makefile: redo 1.27
14243         * support/regression/generate-cases.py: redo 1.5
14244
14245 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
14246
14247         * support/regression/tests/float.c: workaround 33 bit hex constant
14248         * support/regression/tests/simplefloat.c: fix division for host
14249
14250 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
14251
14252         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
14253         that tame's the PIC's over-aggressive optimizer.
14254
14255 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14256
14257          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
14258          support for MSVC.
14259
14260 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
14261
14262         Initial support for DS80C400. "Hello world" runs on TINIm400
14263         (with polled I/O).
14264
14265 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
14266
14267          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
14268          * Some notes on ddd usage added in debugger/README
14269          Martin Helmling adding more features and fixes for ddd GUI debugger.
14270          Code added for nexti, stepi, up, down, and other adjustments.
14271
14272 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
14273
14274         * src/pic/pCodepeep.c non-wildcard asmops are now handled
14275         * src/pic/peeph.def Added two rules to optimize carry manipulation
14276         * src/pic/* removed debug printfs
14277
14278 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
14279
14280         * debugger/mcs51/cmd.c: added header newalloc.h
14281
14282 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
14283
14284         * as/Makefile: new EXEEXT
14285         * as/z80/Makefile: remove trailing slash of BUILDIR
14286         * as/z80/clean.mk: new EXEEXT
14287         * Makefile.common.in: add to CFLAGS (and others), don't replace it
14288         * support/cpp2/Makefile.in: new EXEEXT
14289         * src/pic/glue.c (pic14emitRegularMap): fixed warning
14290
14291 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
14292
14293         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
14294         EXEEXT was introduced to fix all related problems with targets
14295         "clean", "install" and "uninstall"; a couple of further flaws
14296         especially with "clean" have been fixed too
14297         * as/mcs51/Makefile.in
14298         * as/mcs51/clean.mk
14299         * as/z80/Makefile
14300         * Makefile
14301         * clean.mk
14302         * debugger/mcs51/Makefile.in
14303         * debugger/mcs51/clean.mk
14304         * link/z80/Makefile
14305         * link/z80/Makefile.in
14306         * link/z80/clean.mk
14307         * link/Makefile
14308         * packihx/Makefile.in
14309         * packihx/clean.mk
14310         * sim/ucsim/Makefile
14311         * sim/ucsim/clean.mk
14312         * sim/ucsim/avr.src/Makefile.in
14313         * sim/ucsim/avr.src/clean.mk
14314         * sim/ucsim/s51.src/Makefile.in
14315         * sim/ucsim/s51.src/clean.mk
14316         * sim/ucsim/xa.src/Makefile.in
14317         * sim/ucsim/xa.src/clean.mk
14318         * sim/ucsim/z80.src/Makefile.in
14319         * sim/ucsim/z80.src/clean.mk
14320         * sim/ucsim/main_in.mk
14321         * sim/ucsim/packages_in.mk
14322         * sim/ucsim/gui.src/Makefile.in
14323         * sim/ucsim/gui.src/serio.src/Makefile.in
14324         * sim/ucsim/gui.src/serio.src/clean.mk
14325         * src/Makefile.in
14326         * src/clean.mk
14327         * support/cpp2/Makefile.in
14328         * support/cpp2/clean.mk
14329         * support/makebin/Makefile
14330         * support/makebin/clean.mk
14331         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
14332         * doc/sdccman.lyx: --program-suffix no longer needed
14333
14334 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
14335
14336          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
14337          Martin Helmling added support for ddd GUI debugger.
14338          Code added to display assembly, set variables, and other commands
14339          to interface to ddd.
14340
14341 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
14342
14343         * as/Makefile: fix target clean
14344         * as/clean.mk: fix target clean
14345         * as/z80/clean.mk: fix target clean
14346
14347 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
14348
14349         * Makefile.common.in: added  AT EXEEXT AT
14350         * configure.in: removed all mingw32 stuff
14351         * configure: rebuilt from configure.in
14352         * doc/sdccman.lyx: updated section "installation"
14353         * support/scripts/sdcc_mingw32: adapted to configure
14354         * support/scripts/sdcc_cygwin_mingw32: added
14355
14356 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
14357
14358         * src/pic Added object file support for the PIC port
14359         * src/pic Applied patch from Craig Franklin (this started the object file support)
14360         * src/regression Updated the PIC regression tests for object files
14361
14362 2003-04-20  Borut Razem <borut.razem AT siol.net>
14363
14364         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
14365           lklex.c: In function `getfid':
14366           lklex.c:203: warning: array subscript has type `char'
14367         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
14368           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
14369         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
14370           stack handling macros
14371
14372 2003-04-19  Borut Razem <borut.razem AT siol.net>
14373
14374         * "handling space characters in file path" task:
14375         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
14376         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
14377         * support/Util/MySystem.h: make it self-sufficient
14378         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
14379           src/z80/main.c, sdcc/as/mcs51/lklex.c:
14380           handling space characters in file path
14381         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
14382           (it will be used by assemblers, which have their own includes, e.g. gpasm)
14383         * support/Util/MySystem.c: handling space characters in executable's path
14384
14385 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
14386
14387         * as/z80/Makefile: fix permanent rebuild of z80
14388         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
14389         * support/regression/tests/bitfields.c: added Johan's bitfields.c
14390
14391 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
14392
14393         * src/SDCCopt.c: add special case optimization to replace modulo by
14394           a power of two with a bitwise AND.
14395
14396 2003-04-18    <johan AT balder>
14397
14398         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
14399
14400 2003-04-17    <johan AT balder>
14401
14402         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
14403         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
14404
14405 2003-04-13  Borut Razem <borut.razem AT siol.net>
14406
14407         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
14408         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
14409           fixed mingw problem in adl_NORMALIZE_PATH
14410
14411 2003-04-12  Borut Razem <borut.razem AT siol.net>
14412
14413         * fixed "#pragma SAVE/RESTORE can not be nested":
14414         * src/SDCC.lex: reworked pragma handling functions
14415         * sdcc/src/SDCCglobl.h: reworked stack handling macros
14416         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
14417
14418 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
14419
14420         * src/SDCCutil.c (pathEquivalent): defined but not used
14421         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
14422         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
14423         * configure: rebuilt from configure.in
14424         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
14425         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
14426         * device/include/Makefile.in: replace sdcc_datadir
14427         * device/lib/Makefile.in: replace sdcc_datadir
14428         * Makefile.common.in: add LDFLAGS from configure
14429         * packihx/Makefile.in: use LDFLAGS
14430         * src/Makefile.in: use LDFLAGS
14431         * support/cpp2/Makefile.in: add LDFLAGS from configure
14432         * support/makebin/Makefile: use LDFLAGS
14433         * .version: bumped version number to 2.3.5
14434
14435 2003-04-12  Borut Razem <borut.razem AT siol.net>
14436
14437         * completed "different paths" task:
14438         * src/SDCCmacro.c: fixed bug in handling quotes
14439         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
14440         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
14441
14442 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
14443
14444         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
14445
14446 2003-04-11 kevin Vigor <kevin AT vigor.nu>
14447
14448         * ds390/gen.c ds390/peeph.def: fix bug 706781
14449
14450 2003-04-11  Borut Razem <borut.razem AT siol.net>
14451
14452         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
14453
14454 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
14455
14456         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
14457         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
14458          set - this bit used to not be set...).
14459         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
14460           bad code in PIC Port
14461         * src/regression/and2.c added to test bug 609268
14462         * src/regression/Makefile added and2.c to regression test
14463
14464
14465 2003-04-08    <johan AT CP255758-A>
14466
14467         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
14468         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
14469         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
14470
14471 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
14472
14473         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
14474         fix bug #487815
14475         * support/cpp2/Makefile.in: fix bug #487815
14476         * configure: rebuilt from configure.in
14477         * Makefile.common.in: docdir changed, new path suffixes
14478         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
14479         * sdcc_vc_in.h: reflect changes from sdccconf.h
14480         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
14481         * src/SDCCutil.h: remove BINDIR hack
14482         * doc/sdccman.lyx: update new path hierarchy
14483
14484 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
14485
14486         * src/SDCCpeeph.c: added okToRemoveSLOC test
14487
14488 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
14489
14490         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
14491
14492 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
14493
14494         * src/SDCCpeeph.c: added labelIsReturnOnly test
14495         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
14496
14497 2003-04-05    <johan AT balder>
14498
14499         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
14500         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
14501         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
14502         * src/SDCCast.c: fixed a warning
14503         * src/SDCCast.h: fixed a warning
14504         * src/SDCCicode.c (operandFromAst): fixed a warning
14505
14506 2003-04-04    <johan AT balder>
14507
14508         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
14509         * src/SDCCast.c (decorateType): fixed bug #715076
14510         * src/SDCC.y: fixed bug #702907
14511
14512 2003-04-03    <johan AT balder>
14513
14514         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
14515         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
14516         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
14517         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
14518         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
14519
14520 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
14521
14522         * _decdptr.c: fix return values
14523         * _gptrget.c: fix return values
14524         * _gptrgetc.c: fix return values
14525         * _gptrput.c: fix return values
14526         * _mulint.c: fix return values
14527         * as/z80/Makefile: fix 'make -j' problem
14528
14529 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
14530
14531         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
14532         * configure.in: big cleanup, updated to autoconf 2.5x
14533         * configure: rebuilt from configure.in
14534         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
14535         * sdcc_vc_in.h: reflect changes from sdccconf.h
14536         * doc/Makefile: fixed a flaw in "make install"
14537
14538 2003-04-02    <johan AT balder>
14539
14540         * src/ds390/gen.c (genCmp): no comments
14541         * src/mcs51/gen.c (genCmp): no comments
14542         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
14543         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
14544
14545 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
14546
14547         * support/regression/generate-cases.py: place generated file in given sub directory
14548         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
14549         * support/regression/Makefile: improvements for 'make -j';
14550         side effect: it's simpler and faster now
14551
14552 2003-03-31  Borut Razem <borut.razem AT siol.net>
14553
14554         * src/z80/main.c: link-{port} and as-{port} defined without path
14555         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
14556
14557 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
14558
14559         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
14560
14561 2003-03-30  Borut Razem <borut.razem AT siol.net>
14562
14563         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
14564           changed type of list parameter to set
14565         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
14566         * src/port.h: changed type of do_assemble() parameter to set
14567         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
14568           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
14569           definition of "cppoutfilename" macro with NULL value in preProcess()
14570         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
14571         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
14572         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
14573           replaced with set *binPathSet
14574         * shash_add() deallocates the item, if allready exsists, before adding the new one
14575         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
14576
14577 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
14578
14579         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
14580           a nested for loop bug in the PIC port
14581         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
14582           for loops
14583
14584 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
14585
14586         * support/Util/dbuf.h: remove C++ stuff to make it portable
14587
14588 2003-03-28  Borut Razem <borut.razem AT siol.net>
14589
14590         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
14591           literal strings in stringLiteral()
14592         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
14593         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
14594           to the project
14595
14596 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
14597
14598         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
14599
14600 2003-03-26    <johan AT balder>
14601
14602         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
14603         * src/ds390/gen.c (saveRegisters): catched symbol abuse
14604         * src/SDCCast.c (decorateType): fixed " -v < 3"
14605
14606 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
14607
14608         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
14609         Added Lenny Story's debug infrastructure changes:
14610         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
14611         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
14612         * src/cdbFile.c: added
14613         * src/SDCCdebug.c: added
14614         * src/SDCCdebug.h: added
14615         * src/SDCCast.c (createFunction)
14616         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
14617         * src/SDCCmain.c (parseCmdLine, main)
14618         * src/SDCCmem.c (redoStackOffsets)
14619         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
14620         * src/SDCCsymt.h
14621         * src/common.h
14622         * src/avr/gen.c (genAVRCode)
14623         * src/ds390/gen.c (gen390Code)
14624         * src/mcs51/gen.c (gen51Code)
14625         * src/pic/gen.c (genpic14Code)
14626         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
14627         * src/xa51/gen.c (genXA51Code)
14628         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
14629
14630 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14631
14632         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
14633         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
14634
14635 2003-03-22    <johan AT balder>
14636
14637         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
14638
14639 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
14640
14641         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
14642         * doc/cdbfileformat.lyx: added, written by Lenny Story
14643         * doc/Makefile: added cdbfileformat.lyx
14644         * doc/clean.mk: added cdbfileformat.lyx
14645
14646 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
14647
14648         * src/mcs51/peeph.def: fix bug #705773
14649
14650 2003-03-20    <johan AT balder>
14651
14652         An sfr/sbit can have an "at #" AND an initializer
14653         * src/SDCCsymt.c (checkSClass):
14654         * src/SDCCmem.c (allocGlobal):
14655         * src/SDCCmem.c (allocLocal):
14656         * src/SDCCast.c (createBlock):
14657
14658 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
14659
14660         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
14661
14662 2003-03-16    <johan AT balder>
14663
14664         Undid the hackup of const and volatile, the problem is much bigger
14665         * src/SDCC.y:1.65
14666         * src/SDCCast.c:1.171
14667         * src/SDCCglue.c:1.138
14668         * src/SDCCicode.c:1.146
14669         * src/SDCCsymt.c:1.150
14670         * src/SDCCval.c:1.65
14671
14672 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
14673
14674         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
14675         * src/ds390/gen.c (genAddrOf): fixed bug #704087
14676
14677 2003-03-13    <johan AT balder>
14678
14679         Hackup const and volatile modifiers in type chains a bit:
14680         * src/SDCC.y:1.63
14681         * src/SDCCast.c:1.169
14682         * src/SDCCglue.c:1.136
14683         * src/SDCCicode.c:1.143
14684         * src/SDCCsymt.c1.146
14685         * src/SDCCsymt.h1.59
14686         * src/SDCCval.c:1.63
14687
14688 2003-03-12    <johan AT balder>
14689
14690         * src/SDCCBBlock.h: more LRH debugging junk
14691         * src/SDCCcflow.h: more LRH debugging junk
14692         * src/SDCCloop.c: more LRH debugging junk
14693         * src/SDCC.y (struct_declaration): fixed bug #697590
14694         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
14695         * src/ds390/gen.c (aopForRemat): fixed bug #700031
14696         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
14697
14698 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14699         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
14700         test function names must now match exactly).
14701         * src/SDCCcse.c: added special case in findCheaperOp to allow
14702         extending a short integer. Makes less awful code for bug 700121 test case.
14703
14704 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14705
14706         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
14707         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
14708
14709 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14710
14711         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
14712         actually called (operandsNotEqual() was called for all
14713         operandsNotEqualX tests).
14714
14715 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14716
14717         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
14718         with shorter literals. Fixes bug 700121.
14719
14720 2003-03-11    <johan AT balder>
14721
14722         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
14723
14724 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
14725
14726         * src/SDCCloop.c (mergeRegions): an evil beast is dead
14727         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
14728
14729 2003-03-10  Borut Razem <borut.razem AT siol.net>
14730
14731         * src/SDCCmain.c: pipe preprocessor's output
14732         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
14733         * sdcc_vc_in.h: define pclose as _pclose for WIN32
14734         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
14735         which closes all pipes in pipeSet set
14736         * src/SDCCset.c: free deleted item in function deleteSetItem()
14737         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
14738         moved from z80 to src subproject
14739         * .version: increased version number to 2.3.4
14740
14741 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
14742
14743         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
14744         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
14745         * support/regression/ports/xa51/spec.mk: fix typo
14746
14747 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
14748
14749         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
14750
14751 2003-03-09  Borut Razem <borut.razem AT siol.net>
14752
14753         * src/SDCCmain.c: pipe preprocessor's output
14754         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
14755         * sdcc_vc_in.h: define pclose as _pclose for WIN32
14756         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
14757         which closes all pipes in pipeSet set
14758         * src/SDCCset.c: free deleted item in function deleteSetItem()
14759         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
14760         moved from z80 to src subproject
14761
14762 2003-03-09  Borut Razem <borut.razem AT siol.net>
14763
14764         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
14765         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
14766         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
14767         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
14768         * src/SDCCglobl.h: unification of WIN32 native definitions
14769
14770 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14771
14772         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
14773
14774 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
14775
14776         * src/configure.in:   check for endianess (even while cross-compiling)
14777         * src/configure:      check for endianess (even while cross-compiling)
14778         * src/configure_in.h: check for endianess (even while cross-compiling)
14779         * src/avr/gen.c:        remove old endianess stuff
14780         * src/mcs51/gen.c:      remove old endianess stuff
14781         * src/ds390/gen.c:      remove old endianess stuff
14782         * src/pic/gen.c:        remove old endianess stuff
14783         * src/pic/genarith.c:   remove old endianess stuff
14784         * src/pic/glue.c:       fix endianess check
14785         * src/pic16/gen.c:      remove old endianess stuff
14786         * src/pic16/genarith.c: remove old endianess stuff
14787         * src/pic16/glue.c:     fix endianess check
14788         * src/xa51/gen.c:       remove old endianess stuff
14789         * src/z80/gen.c:        fix endianess check
14790         * src/SDCCglue.c:       fix endianess check
14791         * src/ds390/peeph.def: fix bug 700036
14792
14793 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
14794
14795         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
14796         * src/configure: find appropriate data-types on host for SDCC's int and long
14797         * src/configure.in: find appropriate data-types on host for SDCC's int and long
14798         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
14799         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
14800
14801 2003-03-07    <johan AT balder>
14802
14803         Just a big NOOP:
14804                 some minor cleanups before the big shot
14805                 OP_DEFS and OP_USES now use Kevin's protection
14806                 new option --nolabelopt
14807
14808         * src/SDCCBBlock.c:
14809         * src/SDCCast.c,:
14810         * src/SDCCcflow.c:
14811         * src/SDCCcse.c:
14812         * src/SDCCicode.c:
14813         * src/SDCCicode.h:
14814         * src/SDCClabel.c:
14815         * src/SDCCloop.c:
14816         * src/SDCCmain.c:
14817         * src/ds390/ralloc.c:
14818         * src/mcs51/ralloc.c:
14819         * src/pic/ralloc.c:
14820         * src/xa51/ralloc.c:
14821         * src/z80/ralloc.c:
14822
14823 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
14824
14825         * src/pic/pcode.c (get_op): fix 64 bit warnings
14826         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
14827         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
14828         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
14829         * support/regression/tests/malloc.c: fix 64 bit warnings
14830
14831 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
14832
14833         * src/mcs51/gen.c (genMinus): fixed bug 696436
14834
14835 2003-03-02  Borut Razem <borut.razem AT siol.net>
14836
14837         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
14838
14839 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
14840
14841         * configure.in: test for mkstemp
14842         * sdccconf_in.h: add HAVE_MKSTEMP
14843
14844 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
14845
14846         * device/include/ctype.h: removed warning while using --stack-auto
14847         * device/include/malloc.h: removed warning while using --stack-auto
14848         * device/include/string.h: removed warning while using --stack-auto
14849
14850 2003-02-23  Borut Razem <borut.razem AT siol.net>
14851
14852         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
14853         because NDEBUG is defined (see man assert)
14854         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
14855
14856 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14857
14858         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
14859         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
14860
14861 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14862
14863         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
14864         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
14865
14866 2003-02-18    <johan AT balder>
14867
14868         * as/mcs51/asmain.c (asmbl): module can start with a digit
14869         * as/z80/asmain.c (asmbl): module can start with a digit
14870
14871 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
14872
14873         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
14874         * src/asm.c: fix pipe() for Mingw32
14875
14876 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
14877
14878         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
14879         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
14880         make -V work again; --c1mode reads now from stdin
14881         * doc/sdccman.lyx: added --c1mode
14882         * support/Util/SDCCerr.c: new messages for c1 mode
14883         * support/Util/SDCCerr.h: new messages for c1 mode
14884         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
14885
14886 2003-02-15    <johan AT balder>
14887
14888         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
14889
14890 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
14891
14892         * doc/sdccman.lyx: Environment variables, -o and other minor things
14893
14894 2003-02-14    <johan AT balder>
14895
14896         * src/xa51/main.c: before anyone really tries to use it :)
14897
14898         * Install doc's in share/sdcc/doc
14899         * removed some obsolete files
14900         * Do a proper make distclean and uninstall
14901         M Makefile.common.in
14902         R sdccbuild.sh
14903         M as/Makefile
14904         M device/include/Makefile.in
14905         M device/lib/Makefile.in
14906         M doc/sdccman.lyx
14907         M link/Makefile
14908         M sim/ucsim/doc/Makefile.in
14909         M src/clean.mk
14910         R src/avr/peeph.rul
14911         R src/xa51/peeph.rul
14912         M support/cpp2/Makefile.in
14913         M support/makebin/Makefile
14914
14915
14916 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
14917
14918         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
14919
14920 2003-02-10  Borut Razem <borut.razem AT siol.net>
14921
14922         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
14923         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
14924         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
14925         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
14926         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
14927         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
14928         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
14929         src/z80/Makefile.bcc: Borland Makefile cleanup
14930         * as/z80/Makefile.bcc: Added Borland Makefile
14931         * support/cpp2/borland.h: Removed
14932
14933 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
14934
14935         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
14936         * src/SDCC.lex: new pragma NOIV
14937         * src/SDCCglobl.h: new pragma NOIV
14938         * src/SDCCmem.c: new pragma NOIV
14939
14940 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
14941
14942         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
14943
14944 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
14945
14946         * src/SDCCmain.c: signal handling is switched off by --debug
14947         * doc/Makefile: small fix for install; use clean.mk again
14948         * doc/clean.mk: clean *.pdf and *.html too
14949
14950 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
14951
14952         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
14953         * device/lib/printfl.c: fix a ds390 bug by making it portable
14954         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
14955         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
14956         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
14957         * debugger/mcs51/cmd.c: converted multi-line string literals
14958         * sim/ucsim/globals.cc: converted multi-line string literals
14959         * src/SDCCmain.c: introduced signal handler to remove temp files
14960         * doc/Makefile: small tweaks, implement clean
14961         * doc: removed generated files
14962
14963 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14964
14965         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
14966         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
14967         Address Record is not correctly generated for DS390."
14968
14969 2003-02-02  Borut Razem <borut.razem AT siol.net>
14970
14971         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
14972         * as/mcs51/asm.h: fixed compilation with Borland C
14973         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
14974         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
14975         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
14976         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
14977         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
14978         src/z80/Makefile.bcc: delete $(LIB) only if exist
14979         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
14980
14981 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
14982
14983         * device/include/malloc.h: introduced NULL
14984         * device/include/string.h: introduced NULL
14985         * device/include/stdlib.h: introduced NULL
14986         * device/lib/_memcpy.c: removed NULL
14987         * device/lib/_strcat.c: removed NULL
14988         * device/lib/_strchr.c: removed NULL
14989         * device/lib/_strcmp.c: removed NULL
14990         * device/lib/_strcpy.c: removed NULL
14991         * device/lib/_strcspn.c: removed NULL
14992         * device/lib/_strlen.c: removed NULL
14993         * device/lib/_strncat.c: removed NULL
14994         * device/lib/_strncmp.c: removed NULL
14995         * device/lib/_strncpy.c: removed NULL
14996         * device/lib/_strpbrk.c: removed NULL
14997         * device/lib/_strrchr.c: removed NULL
14998         * device/lib/_strspn.c: removed NULL
14999         * device/lib/_strstr.c: removed NULL
15000         * device/lib/_strtok.c: removed NULL
15001         * device/lib/malloc.c: removed NULL, include own header
15002
15003 2003-02-02    <johan AT balder>
15004
15005         * 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
15006         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
15007         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
15008         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
15009         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
15010         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
15011
15012 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15013
15014         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
15015         area 'DATA'"
15016
15017 2003-02-01    <johan AT balder>
15018
15019         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
15020
15021 2003-01-31    <johan AT CP255758-A>
15022
15023         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
15024
15025 2003-01-30    <johan AT balder>
15026
15027         * src/SDCCBBlock.c: automatic bug detection
15028         * src/SDCCicode.c: automatic bug detection
15029
15030 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15031
15032         * src/SDCCglobl.h:   now --xram-size 0 works
15033         * src/SDCCmain.c:    now --xram-size 0 works
15034
15035 2003-01-29    <johan AT balder>
15036
15037         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
15038
15039 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15040
15041         * as/mcs51/aslink.h: Added options --xram-size and --code-size
15042         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
15043         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
15044         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
15045         * src/SDCCglobl.h:   Added options --xram-size and --code-size
15046         * src/SDCCmain.c:    Added options --xram-size and --code-size
15047
15048 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
15049
15050         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
15051         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
15052
15053 2003-01-27    <johan AT balder>
15054
15055         * src/SDCC.y: fixed bug #613764
15056
15057 2003-01-26    <johan AT balder>
15058
15059         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
15060         * src/SDCCsymt.h: fixed bug #673374
15061         * src/SDCCglue.c: fixed bug #661910
15062         * src/SDCCast.c: fixed bug #458099 and 673374
15063
15064 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
15065
15066         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
15067         * as/mcs51/strcmpi.h: added
15068         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
15069         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
15070         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
15071         * as/mcs51/assym.c: strcmpi -> as_strcmpi
15072         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
15073         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
15074         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
15075         * as/mcs51/Makefile.aslink: new module strcmpi
15076         * as/mcs51/Makefile.asx8051: new module strcmpi
15077         * as/mcs51/Makefil.bcc: new module strcmpi
15078         * as/mcs51/Makefile.in: new module strcmpi
15079         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
15080
15081 2003-01-26    <johan AT balder>
15082
15083         * src/SDCCglue.c: reverted back to 1.124
15084         * src/SDCCast.c: reverted back to 1.156
15085         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
15086
15087 2003-01-25    <johan AT balder>
15088
15089         * src/SDCCglue.c: A better fix for bug #661910
15090         * src/SDCCast.c: A better fix for bug #661910
15091         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
15092
15093 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
15094
15095         * src/Makefile.in: remove spawn.o
15096         * src/SDCCmain.c: remove spawn.h
15097         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
15098         * src/spawn.c: removed
15099         * src/spawn.h: removed
15100         * support/regression/ports/ds390/spec.mk: link with -r
15101
15102 2003-01-24    <johan AT CP255758-A>
15103
15104         * src/ds390/gen.c (aopOp): fixed bug #667458
15105         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
15106         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
15107         (createIvalCharPtr): an ival doesn't always have a storage class anymore
15108
15109 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
15110
15111         * src/mcs51/peeph.def: better assembler identation by Frieder
15112         * src/mcs51/gen.c: better assembler identation by Frieder
15113
15114 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
15115
15116         * as/z80/string.h: removed for gcc 3.2
15117         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
15118         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
15119
15120 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
15121
15122         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
15123         * src/SDCCpeeph.c (replaceRule): fix bug #663503
15124         * support/regression/Makefile: separate temp files for ports
15125         * support/regression/generate-cases.py: separate temp files for ports
15126         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
15127         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
15128
15129 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
15130
15131         * moved tinitalk to device/examples/ds390
15132
15133 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
15134
15135         * as/mcs51/lkmem.c: rflag is for DS390
15136         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
15137         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
15138                          (linkEdit): move mem- and map-files the same way as ihx-files
15139         * src/z80/main.c (_setDefaultOptions): removed --generic
15140         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
15141         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
15142         * src/pic/glue.c (picglue): --c1mode works again
15143         * src/pic16/glue.c (pic16glue): --c1mode works again
15144         * src/asm.c (printCLine): fix #660034
15145
15146 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
15147
15148         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
15149         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
15150         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
15151         * as/mcs51/lkmem (summary): better fix for sp problem
15152         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
15153         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
15154         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
15155                                               remove --stack-after-data
15156
15157 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
15158
15159         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
15160         * src/SDCCutil.c (join): ugly bug: missing '\0'
15161         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
15162
15163 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
15164
15165         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
15166         * src/port.h: typo
15167         * src/pic/main.c (_asmCmd): gpasm supports -o
15168         * src/z80/main.c: more general macros
15169         * device/lib/Makefile.in: remove intermediate files
15170
15171 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
15172
15173         * .version: Bumped version number to 2.3.3
15174         * src/SDCCBBlock.c: new option -o
15175         * src/SDCCglobl.h: new option -o
15176         * src/SDCCglue.c: new option -o
15177         * src/SDCCmain.c: new option -o
15178         * src/asm.c: new option -o
15179         * src/ds390/main.c: new option -o
15180         * src/pic/glue.c: new option -o
15181         * src/pic/pcode.c: new option -o
15182         * src/pic/ralloc.c: new option -o
15183         * src/pic16/glue.c: new option -o
15184         * src/pic16/pcode.c: new option -o
15185         * src/pic16/ralloc.c: new option -o
15186         * src/z80/main.c: new option -o
15187         * device/lib/Makefile.in: use -o
15188         * support/regression/ports/ds390/spec.mk: use -o
15189         * support/regression/ports/gbz80/spec.mk: use -o
15190         * support/regression/ports/mcs51/spec.mk: use -o
15191         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
15192         * support/regression/ports/z80/spec.mk: use -o
15193         * support/regression/ports/ucz80/spec.mk: use -o
15194         * support/regression/ports/xa51/spec.mk: use -o
15195         * support/regression/fwk/lib/timeout.c: fix usage string
15196
15197 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
15198         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
15199
15200 2003-01-07    <johan AT balder>
15201
15202         * src/SDCCast.c (decorateType): fixed bug #600035
15203
15204 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
15205         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
15206         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
15207         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
15208         * src/pic/pcode.c: outcommented unused variable to remove warnings
15209         * src/pic/ralloc.c: outcommented unused variable to remove warnings
15210
15211 2003-01-06    <karl AT turbobit.com>
15212         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
15213    regression tests.
15214
15215 2003-01-06    <johan AT balder>
15216
15217         * src/SDCCicode.c: fixed array add
15218
15219 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
15220         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
15221         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
15222
15223 2003-01-04    <johan AT balder>
15224
15225         * src/SDCCval.c (getNelements): fixed the initialized array of structures
15226
15227 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15228         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
15229
15230 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
15231         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
15232         * support/regression/tests/bug-524697.c: fit mem usage into 8032
15233
15234 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
15235         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
15236
15237 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
15238         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
15239
15240 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
15241         * src/mcs51/main.c: removed {bindir}{sep} from aslink
15242
15243 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15244
15245     * in /sdcc/as/mcs51/ changed these files in order to create an
15246     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
15247     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
15248     following files to include the previous two files: aslink.dsp,
15249     Makefile.aslink, Makefile.bcc, and Makefile.in.
15250
15251     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
15252     .adb instead of .cdb
15253
15254 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15255
15256         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
15257         value from option --iram-size.
15258
15259 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15260
15261         * /sdcc/as/mcs51/lklist.c: added boundary check before using
15262         dram[] array.
15263
15264 2002-09-18    <wiml AT hhhh.org>
15265
15266         * SDCClrange.h: exposed setFromRange() and setToRange()
15267         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
15268           packRegsForAccUse() (bug 542397)
15269         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
15270           multiple times and emitting the fetch operations more than once
15271           added aopGetUsesAcc() function to allow binary operators to
15272           fetch their operands in the correct order; made genMinus() emit
15273           compact code for X = LITERAL - Y
15274
15275 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15276         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
15277         sprintf() in line 1267.
15278
15279 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15280         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
15281         like ports.
15282
15283 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15284         Changes to aslink (All the changes are marked with 'JCF'):
15285
15286         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
15287         summary().
15288
15289         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
15290         area BSEG.  Also moves, if possible, the DATA area down into the internal
15291         ram so more space is available.
15292
15293         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
15294         sflag.
15295
15296         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
15297         not bytes.  Function summary() which creates a memory usage summary
15298         file with extension .mem.  Reports of overlaping stack and small stack
15299         size.  If the space for the stack is less than 16 bytes aslink trows a
15300         warning.
15301
15302         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
15303         the 8051.  Option 'y' for memory summary output file.
15304
15305         Changes to sdcc (All the changes are marked with 'JCF'):
15306
15307         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
15308
15309         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
15310         overlaying area for it (uses RegBankUsed[4]).
15311
15312         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
15313         bank zero as used by default.  By default aslink locates the stack
15314         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
15315         the creation of the .mem file.  Delegates the allocation of data area
15316         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
15317         the begining of the stack area to aslink.
15318
15319         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
15320         glue() in SDCCglue.c creates an area for it.
15321
15322 2002-09-03  Borut Razem <borut.razem AT siol.net>
15323         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
15324         sdcc/src/pic/glue.c:
15325         introduced atexit() handler for teporay files removal in case of
15326         errors, assertions, ...
15327
15328 2002-08-29  Borut Razem <borut.razem AT siol.net>
15329         * sdcc/support/cpp2/auto-host_vc_in.h:
15330         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
15331         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
15332         Maybe there is a similar problem with BORLANDC? It should be checked!
15333
15334         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
15335         corrected improper use of assert: the assignment to clr variable was done inside the assert.
15336         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
15337         was not executed, and the compiler (cl) launched a warning:
15338         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
15339
15340 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
15341         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
15342
15343 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
15344         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
15345
15346         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
15347           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
15348           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
15349           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
15350           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
15351           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
15352           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
15353         - added Release configuration in VS projects
15354         - review of compiler an linker options
15355         - VC .exe files are generated in bin_vc directory, not to interfere
15356           with binaries generated from other projects (cygwin, mingw, bcc ...)
15357
15358         * sdcc/src/yacc.dsp: added
15359
15360         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
15361         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
15362         and insert the version number definitions from .version
15363
15364         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
15365
15366         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
15367         added - genarate auto-host.h using auto-host_vc_in.h as template
15368
15369         * sdcc/sdcc_vc.h,
15370         removed from CVS, generated automatically
15371
15372 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
15373         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
15374
15375 2002-08-11  Borut Razem <borut.razem AT siol.net>
15376         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
15377
15378 2002-08-10  Borut Razem <borut.razem AT siol.net>
15379         * src/SDCCmain.c (main):
15380         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
15381         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
15382         The consequence was that some temporary files were not removed.
15383
15384         * src/SDCCglue.c:
15385         unification of code in functions tempfilename() and tempfile():
15386         function tempnam() is defined in Visual Studio 6.0 and .NET
15387
15388         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
15389
15390         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
15391           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
15392         - removed compiler command line option /WX: Treats all warnings as errors
15393         - update a list of source files, included into the project
15394
15395         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
15396           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
15397         changed project type to Generic Project so that can be correcly converted to VS.NET project
15398
15399         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
15400
15401         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
15402
15403         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
15404
15405         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
15406         added return 0 statements after assert() to make compiler happy
15407
15408         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
15409         added newline in the def file to keep MSC compiler satisfied
15410
15411         * sdcc/src/z80/gen.c:
15412         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
15413           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
15414         - solved MSC error in function aopDump()
15415
15416         * sdcc_vc.h: define PREFIX as "\\sdcc"
15417
15418 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
15419         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
15420
15421 2002-06-22  Scott Dattalo <scott AT dattalo.com>
15422         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
15423         - Rewrote the register banking algorithm.
15424         - Added pCode live-range analysis to registers (for now, only non-used and
15425         singly-used registers optimized away)
15426
15427         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
15428
15429         * 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.
15430
15431 2002-05-10  Scott Dattalo <scott AT dattalo.com>
15432         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
15433
15434 2002-04-22  Michael Hope  <michaelh AT vroom>
15435
15436         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
15437
15438         * configure.in (DD_COPT): Added include support required for gbdk.
15439
15440         * .version: Bumped version number just to increase it.
15441
15442         * src/SDCCmain.c: Added -nostdinc to the default options.
15443
15444 2002-04-15  Michael Hope  <michaelh AT vroom>
15445
15446         * device/lib/z80/printf.c (sprintf): Added.
15447
15448         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
15449
15450         * src/z80/peeph.def: Added transpose redundent load rule.
15451
15452         * src/z80/main.c: Added force callee saves for jaune.
15453
15454         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
15455
15456         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
15457
15458 2002-03-28  Johan Knol  <johan AT balder>
15459
15460         * src/SDCCval.c: fixed bug #532436
15461
15462 2002-03-14  Scott Dattalo <scott AT dattalo.com>
15463         * /src/port.h:
15464         Added "char *Processor" field to the port structure.
15465
15466         * /src/SDCCmain.c:
15467         Added -p option. Allows port dependent processor to be specified.
15468
15469         * all ports:
15470         Initialized the new field char *Processor field to NULL in all ports
15471
15472         * /src/pic/*:
15473         Compiler generated registers for interrupt context saving
15474         were not getting allocated.
15475
15476 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
15477
15478         * /src/SDCCast.c:
15479         Fixed left shift. Will promote the left side of a left shift
15480         if a) left shifting more than size of operand or b) when assigned
15481         to something size > size of left side
15482
15483 2002-03-14  Scott Dattalo <scott AT dattalo.com>
15484         * src/pic/*
15485         tons of changes. Register allocation has been
15486         rewritten. Added customization for the various PICs. Flow
15487         analysis is restructured. ...
15488
15489         * src/pic/device.h:
15490         Added
15491
15492         * src/pic/device.c:
15493         Added. device.c is a PIC port hack to accomodate variations
15494         in PIC devices.
15495
15496 2002-03-13  Michael Hope  <michaelh AT vroom>
15497
15498         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
15499
15500 2002-03-04  johanknol  <johanknol AT manik>
15501
15502         * /src/SDCCval.c: fixed
15503
15504         const unsigned char arr[][2] = { { 0, 1 } };
15505         t18.c:1: error: Initializer element is not constant
15506
15507 2002-03-04  bela  <bela AT manik>
15508
15509         * /device/include/mcs51reg.h:
15510         ds89c420 register definition update
15511
15512 2002-03-03    <johan AT FRIJA>
15513
15514         * support/Util/SDCCerr.c: did something, but don't no why anymore
15515
15516         * support/regression/tests/bug-524691.c: made it a little less shy
15517
15518         * src/SDCCast.c (decorateType): fixed bug #524697
15519
15520         * src/SDCCast.c: made some lineno improvements
15521
15522         * src/SDCCval.c (getNelements): changed warning to error
15523
15524         * src/SDCCglue.c (printIvalArray): changed warning to error
15525
15526         * src/SDCCicode.c: fixed a warning for mingw
15527
15528         * src/SDCCast.c (decorateType): fixed the << promotion for ops
15529
15530         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
15531
15532 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
15533
15534         * src/ds390/peeph.def:
15535         Added some more peephole rules
15536
15537         * src/ds390/gen.c: Various fixes & enhancements
15538
15539         * src/SDCClrange.c, src/SDCClrange.h:
15540         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
15541
15542         * src/ds390/ralloc.c:
15543         various fixes & enhancements (ds390) specific
15544
15545         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
15546         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
15547         from rallocs.
15548
15549         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
15550
15551 2002-03-02    <johan AT FRIJA>
15552
15553         * src/SDCCast.c (decorateType): fixed bug #524708
15554
15555         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
15556
15557         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
15558
15559 2002-03-01  Michael Hope  <michaelh AT vroom>
15560
15561         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
15562
15563         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
15564
15565 2002-03-01    <johan AT FRIJA>
15566
15567         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
15568
15569         * src/SDCCast.c (decorateType): fixed bug #524209
15570
15571         * src/SDCCval.c (valNot): fixed bug #524195
15572
15573 2002-02-26    <johan AT balder>
15574
15575         * src/xa51/gen.c: fixed a warning
15576
15577         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
15578
15579         * src/SDCCast.c (decorateType): fixed bug #522534
15580
15581 2002-02-23    <johan AT balder>
15582
15583         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
15584
15585 2002-02-22    <johan AT balder>
15586
15587         * src/SDCCast.c: fixed bug #514865
15588
15589         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
15590
15591 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
15592
15593         * sdcc/src/SDCCloop.c:
15594         Previous fix was not good. basic blocks that have "break" or "return" are
15595         not really partof a loop , but live ranges used in these blocks should
15596         be live thru the entire loop, so set partOfLoop but don't add them to
15597         loop region
15598
15599 2002-02-21    <johan AT FRIJA>
15600
15601         * src/SDCCcse.c: fixed bug #514308
15602
15603 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
15604
15605         * src/SDCCloop.c:
15606         Fixed BUG #519583. If a conditional block ended in a return/break
15607         statement inside a loop, it was not being considered part of the loop.
15608
15609         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
15610
15611 2002-02-10  Karl Bongers <karl AT turbobit.com>
15612
15613         * debugger/*:
15614         Fixed up SDCDB debugger somewhat.  Updated debugger/README
15615         with lots of comments and notes.
15616
15617         * device/examples/test2.c:
15618         Fix bug, "red" variable not being initialized(compiler complained).
15619
15620         * device/examples/Makefile, examples/test3.c:
15621         Add Makefile in device/examples folder, compiles test3.c
15622         for use as a multiple module SDCDB test case.
15623
15624         * sim/ucsim/cmd.src/cmdset.cc:
15625         Took out debug printfs in ucsim "next" command.
15626
15627         * sim/ucsim/xa.src:
15628         Karl and Johan start ucsim XA support.  Most dissassembly working,
15629         about 75% emulation done(plenty of work remaining).
15630
15631         * sim/ucsim/z80.src:
15632         Add Z80 support to ucsim, add test-ucz80 regression test,
15633         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
15634         Notice z80 compiler fails on examples/test3.c/crc code.
15635
15636 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
15637
15638         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
15639         Added support for --parms-in-bank1
15640
15641         * src/ds390/peeph.def:
15642         added a few more peephole optimzations
15643
15644         * src/ds390/main.c:
15645         1) added __builtin_inp & __builtin_outp used to read in data of given length
15646            from a memory mapped port
15647         2) added __builtin_memcmp
15648         3) added __builtin_swapw swap bytes of a short
15649
15650         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
15651         1) handle multiple send & receives from register bank1
15652         2) ralloc can now allocate DPTR1 to some liveRanges
15653
15654         * src/SDCCsymt.c, src/SDCCsymt.h:
15655         changes to handle multiple sends & receives
15656
15657         * src/SDCCptropt.h:
15658         added some pointer arithmetic optimization
15659
15660         * src/SDCCptropt.c:
15661         added some pointer arithmetic optimizations but not stable yet so not
15662         called from anywhere (will get this working shortly)
15663
15664         * src/SDCCopt.c: fixed for multiple sends & receives
15665
15666         * src/SDCCmain.c:
15667         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
15668         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
15669            set preprocessor defines (depending on options)
15670
15671         * src/SDCCicode.c, src/SDCCicode.h:
15672         changes made to handle multiple sends & receives
15673
15674         * src/SDCCglobl.h:
15675         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
15676
15677         * src/SDCCcse.c, src/SDCCcse.h:
15678         added function findbackward def (to be used in upcoming optimization)
15679
15680         * src/SDCCcflow.c, src/SDCCcflow.h:
15681         added function returnAtEnd - to determine if a basic block terminates with
15682         a RETURN iCode
15683
15684         * src/SDCCast.c, src/SDCCast.h:
15685         added option parms-in-bank1
15686
15687         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
15688         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
15689         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
15690         adjusted for --parms-in-bank1 option
15691
15692         * device/include/string.h:
15693         donot redefine "reentrant" keyword
15694
15695         * device/include/ds80c390.h: Added some more SFRs
15696
15697 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
15698
15699         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
15700
15701 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
15702
15703         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
15704
15705 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
15706
15707         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
15708
15709 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
15710
15711         * Added --xram-movc option
15712
15713 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
15714
15715         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
15716
15717 2002-01-11  Johan Knol
15718
15719         * Added math lib of Jesus Calvino-Fraga
15720
15721 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
15722
15723         * src/SDCCmain.c (processFile): fix processing of ../../src.c
15724         * support/regression/Makefile: new target test-mcs51-stack-auto
15725         * support/regression/ports/mcs51-stack-auto/spec.mk: added
15726
15727 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
15728
15729         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
15730
15731 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
15732
15733         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
15734
15735 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
15736
15737         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
15738
15739         * src/SDCCglue.h: add definition for printIvalChar()
15740
15741 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
15742
15743         * src/SDCCast.c: fix #498138 by Johan
15744
15745         * src/SDCCglue.c: fix #498138 by Johan
15746
15747 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
15748
15749         * support/regression/Makefile: fix clean
15750
15751         * support/regression/ports/ds390/support.c: fix transmission of last character
15752
15753 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
15754
15755         * /sdcc/src/ds390/gen.c:
15756         a) improved computing address of stack variable
15757         b) took out some #if 0 code
15758         c) improved parmBytes adjustment
15759         d) improved genPlusIncr & genMinusIncr
15760         e) genCmp could generate bad code (when left assigned to DPTR)
15761         f) Fixed bug in hasInc
15762
15763         * /sdcc/src/ds390/ralloc.c:
15764         a) packRegsForSupport could mess up live information (Fixed)
15765         b) packRegsDPTRuse could be incorrect for left & right shift
15766
15767         * /sdcc/src/mcs51/ralloc.c:
15768         packRegsForSupport could mess up the live information (Fixed)
15769
15770         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
15771
15772         * /sdcc/src/SDCCast.c:
15773         can reverse a loop even if function call is present as long
15774         as the loop control variable is local & is not passed as parameter
15775
15776 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15777
15778         * /sdcc/ChangeLog: *** empty log message ***
15779
15780         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
15781         More builtin function additions for TININative
15782
15783         * /sdcc/src/ds390/ralloc.c:
15784         Had broken the regression testsuite
15785
15786         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
15787
15788         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
15789         Added funcattr hasStackParms will be set for reentrant functions when there
15790         are paramteres on the stack, this helps in minimizing frame pointer generation
15791         typeFromStr can handle function pointers now
15792
15793         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
15794         *** empty log message ***
15795
15796 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15797
15798         * /src/ds390/gen.c, /src/ds390/main.c:
15799         More builtin function additions for TININative
15800
15801         * /src/ds390/ralloc.c:
15802         Had broken the regression testsuite
15803
15804         * /src/SDCCast.c: Fixed a bug in dumptree
15805
15806         * /src/SDCCsymt.c, /src/SDCCsymt.h:
15807         Added funcattr hasStackParms will be set for reentrant functions when there
15808         are paramteres on the stack, this helps in minimizing frame pointer generation
15809         typeFromStr can handle function pointers now
15810
15811         * /doc/builtins.txt, /doc/TININative.txt:
15812         *** empty log message ***
15813
15814
15815 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15816
15817         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
15818         ALPHA version for -mTININative
15819
15820         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
15821         updated to reflect changes in the port structure
15822
15823         * /src/port.h:
15824         added function do_assemble (similar to do_link) if non-null this function
15825         will be called to do assembly (-mTININative) requires a multi command
15826         assembly
15827         added function genAssemblerEnd will be called to generate assembler Epilogue
15828
15829         * /src/SDCCsymt.c:
15830         added _JavaNative to debug info printing
15831
15832         * /src/SDCCmain.c: added option --tini-libid
15833         added port->do_assemble function (-mTININative) has a multi command assemble
15834
15835         * /src/SDCCglue.c: Disabled "constExpr" check
15836         added port->genAssemblerEnd function
15837
15838         * /src/SDCCglobl.h: Added option --tini-libid value
15839
15840         * /src/SDCCast.h:
15841         tookout optimizeCompare from the header (has no external references)
15842
15843         * /src/SDCCast.c: made one more function "static"
15844
15845 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
15846
15847         * src/z80/mappings.i: Added z80asm support.
15848
15849         * src/z80/main.c: Added z80asm support on --asm=z80asm
15850
15851         * src/z80/gen.c: Fixed asm portability issues.
15852
15853         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
15854
15855         * src/SDCCglue.c (printExterns): Added global/extern split.
15856
15857 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
15858
15859         * support/regression/Makefile: added test for mcs51 model large
15860
15861         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
15862
15863         * support/regression/ports/gbz80/spec.mk: added -mgbz80
15864
15865 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
15866
15867         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
15868
15869 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
15870
15871         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
15872
15873         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
15874
15875 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
15876
15877         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
15878
15879         * support/regression/tests/simplefloat.c: Port to mcs51.
15880
15881 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
15882         * support/regression/tests/bug-485362.c: Added.
15883
15884         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
15885
15886         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
15887
15888         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
15889
15890         * src/z80/gen.c (aopDump): Added a dump function.
15891
15892 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
15893         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
15894
15895         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
15896
15897         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
15898
15899         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
15900
15901         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
15902
15903         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
15904
15905         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
15906
15907         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
15908
15909         * support/regression/ports/ds390/support.c: Use tinibios.
15910
15911         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
15912
15913 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
15914
15915         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
15916         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
15917
15918         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
15919
15920         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
15921
15922 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
15923
15924         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
15925
15926         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
15927         (packRegsForIYUse): Created and optimised.
15928
15929 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
15930
15931         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
15932 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
15933
15934         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
15935
15936         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
15937
15938         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
15939
15940 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15941
15942         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
15943
15944         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
15945
15946 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15947
15948         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
15949
15950         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
15951
15952         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
15953
15954 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
15955
15956         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
15957         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
15958         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
15959
15960         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
15961
15962         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
15963         (genNotFloat): Added.
15964         (genUminusFloat): Added.
15965
15966         * device/lib/z80/Makefile: Added floating pt stubs.
15967
15968         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
15969
15970         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
15971
15972         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
15973
15974 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15975
15976         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
15977
15978         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
15979
15980         * sdcc/support/regression/Makefile: Add port ds390.
15981
15982         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
15983
15984         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
15985
15986         * sdcc/support/regression/ports/ds390/spec.mk: Added.
15987
15988         * sdcc/support/regression/ports/ds390/support.c: Added.
15989
15990         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
15991
15992         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
15993
15994         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
15995
15996 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
15997
15998         * device/include/malloc.h: Added z80 and gbz80 support.
15999
16000         * device/lib/gbz80/heap.s: Added.
16001
16002         * device/lib/z80/heap.s: Added.
16003
16004         * device/lib/malloc.c: Added z80 and gbz80 support.
16005
16006         * support/regression/tests/malloc.c (testMalloc): Added.
16007
16008         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
16009
16010         * support/regression/tests/bug-478094.c: Added.
16011
16012         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
16013
16014 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
16015
16016         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
16017
16018         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
16019
16020         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
16021
16022         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
16023
16024         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
16025
16026 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
16027
16028         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
16029
16030 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
16031
16032         * support/regression/tests/bug-477927.c: Added.
16033
16034         * src/z80/peeph.def: Added minor rules.
16035
16036         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
16037
16038         * src/z80/peeph.def: Added jump optimisation modification.
16039
16040 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
16041
16042         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
16043
16044 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
16045
16046         * support/regression/tests/funptrs.c: Added.
16047
16048 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
16049
16050         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
16051
16052 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
16053
16054         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
16055
16056         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
16057
16058         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
16059         (movLeft2ResultLong): Created.
16060
16061         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
16062         (joinPushes): Added.  Joins two char pushes into a word push.
16063
16064 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
16065
16066         * support/cpp2/Makefile.in (install): Added creation of dest dir.
16067
16068         * support/makebin/Makefile (install): Added creation of dest dir.
16069
16070 2001-10-24 Karl Bongers <karl AT turbobit.com>
16071
16072         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
16073
16074 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
16075
16076         * src/z80/ralloc.c: Turned off faulty pack for one use.
16077
16078         * src/z80/peeph-gbz80.def: Removed redundent restart options.
16079
16080         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
16081
16082 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
16083
16084         * support/regression/Makefile: Improved clean
16085
16086         * support/regression/ports/gbz80/spec.mk: Added clean
16087
16088         * support/regression/ports/host/spec.mk: Added clean
16089
16090         * support/regression/ports/z80/spec.mk: Added clean
16091
16092         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
16093
16094         * support/regression/ports/mcs51/timeout.c: little improvements
16095
16096 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
16097
16098         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
16099
16100         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
16101
16102         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
16103
16104 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
16105
16106         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
16107
16108         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
16109
16110 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
16111         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
16112
16113         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
16114
16115         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
16116
16117         * src/mcs51/main.c (_linkCmd): Added bin path to command.
16118
16119         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
16120
16121         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
16122
16123         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
16124
16125         * support/regression/tests/longor.c: Added.
16126
16127 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
16128
16129         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
16130
16131         * as/mcs51/aslink.h: define PATH_MAX
16132
16133         * as/mcs51/asm.h: define PATH_MAX
16134
16135         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
16136
16137         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
16138
16139         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
16140
16141         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
16142
16143         * src/SDCCglobl.h: define PATH_MAX
16144
16145         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
16146
16147         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
16148
16149 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
16150
16151         * src/z80/gen.c (gencjneshort): Fixed
16152
16153         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
16154
16155 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
16156
16157         * support/regression/tests/bug-469671.c: Added.
16158
16159         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
16160
16161 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
16162
16163         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
16164
16165         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
16166
16167 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
16168
16169         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
16170
16171         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
16172
16173         * src/device/lib/_mullong.c : removed hint: nooverlay bug
16174
16175         * src/device/lib/_divuint.c : removed hint: nooverlay bug
16176
16177         * src/device/lib/_divulong.c: removed hint: nooverlay bug
16178
16179         * src/device/lib/_moduint.c : removed hint: nooverlay bug
16180
16181         * src/device/lib/_modulong.c: removed hint: nooverlay bug
16182
16183 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
16184
16185         * 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.
16186
16187         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
16188
16189         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
16190
16191 2001-10-07    <johan AT FRIJA>
16192
16193         * device/lib/gets.c (gets): fixed the return value.
16194
16195 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
16196         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
16197
16198         * 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.
16199
16200         * 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.
16201
16202         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
16203
16204         * src/pic/gen.c: Removed Safe_strdup.
16205
16206         * configure.in: Added option to enable libgc support.
16207
16208         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
16209         (bitVectUnion): Optimised.
16210         (bitVectIntersect): Optimised.
16211         (bitVectBitsInCommon): Optimised.
16212         (bitVectCplAnd): Optimised.
16213
16214         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
16215
16216 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16217
16218         * src/SDCCmain.c: distinguish between assembler debug and plain options
16219
16220         * src/avr/main.c:   remove standard assembler options
16221
16222         * src/ds390/main.c: remove standard assembler options
16223
16224         * src/mcs51/main.c: remove standard assembler options
16225
16226         * src/port.h: removed "PENDING" comment
16227
16228 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16229
16230         * src/device/lib/_mulint.c  : new, with assember functions
16231
16232         * src/device/lib/_mullong.c : new, with assember functions
16233
16234         * src/device/lib/_divuint.c : with assember functions
16235
16236         * src/device/lib/_divsint.c : with assember functions
16237
16238         * src/device/lib/_divulong.c: with assember functions
16239
16240         * src/device/lib/_divslong.c: with assember functions
16241
16242         * src/device/lib/_moduint.c : with assember functions
16243
16244         * src/device/lib/_modsint.c : with assember functions
16245
16246         * src/device/lib/_modulong.c: with assember functions
16247
16248         * src/device/lib/_modslong.c: with assember functions
16249
16250         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
16251
16252         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
16253
16254         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
16255                                       replaced _mululong.c and _mulslong.c by _mullong.c
16256
16257 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16258
16259         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
16260
16261 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
16262
16263         * src/SDCCglue.c: test, if win32api is available for MINGW
16264
16265 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
16266
16267         * src/SDCCsymt.c: no more _modifier in printTypeChain()
16268         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
16269         * support/regression/ports/gbz80/spec.mk: removed GENERIC
16270         * support/regression/ports/host/spec.mk: removed GENERIC
16271         * support/regression/ports/mcs51/spec.mk: removed GENERIC
16272         * support/regression/ports/z80/spec.mk: removed GENERIC
16273
16274 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
16275
16276         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
16277
16278         * support/regression/tests/bug-467035.c: Created.
16279
16280 2001-10-01    <johan AT FRIJA>
16281
16282         * src/SDCC.y: fixed bug #466586 part 1
16283
16284 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
16285
16286         * SDCCicode.c: z80 has no generic pointers
16287         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
16288
16289 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
16290
16291         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
16292
16293 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
16294
16295         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
16296
16297         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
16298
16299 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
16300
16301         * configure.in: Fixed up so that ucsim is only configured once.
16302
16303         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
16304
16305         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
16306         (getPathDifference): As above.
16307
16308         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
16309
16310         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
16311
16312 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
16313         * .version: Updated to 2.3.1
16314
16315         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
16316         Added copyright header.
16317
16318         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
16319         (assemble): Added support for macro based assembler commands.
16320         (linkEdit): Added support for macro based linker commands.
16321         (preProcess): Changed the pre-processor to use macros.
16322         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
16323         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
16324
16325         * device/lib/z80/crt0.s: Added module name for debugging.
16326
16327 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
16328
16329         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
16330
16331         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
16332
16333         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
16334
16335         * src/Makefile.in: Added SDCCmacro and SDCCutil
16336
16337 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
16338
16339         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
16340
16341 2001-09-16    <johan AT FRIJA>
16342
16343         * 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.
16344
16345 2001-09-15    <johan AT FRIJA>
16346
16347         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
16348         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
16349
16350 2001-09-11    <johan AT FRIJA>
16351
16352         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
16353
16354 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
16355
16356         * support/regression/tests/bug-460444.c: Added test case.
16357
16358         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
16359         (genCast): Added justification for all of the asserts.
16360
16361 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
16362
16363         * support/regression/support.c: _xdata replaced by xdata
16364
16365         * support/regression/spec.mk: removed _generic
16366
16367 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
16368
16369         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
16370
16371         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
16372         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
16373
16374         * src/z80/peeph.def: Added a rule to optimise shift then compare.
16375
16376         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
16377
16378         * support/regression/tests/bug-460010.c: Added test case.
16379
16380         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
16381
16382 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
16383
16384         * support/regression/Makefile: inter-port-clean adjusted for mcs51
16385
16386         * support/regression/testfwk.c: removed workaround for bug #436344
16387
16388         * support/regression/tests/bp.c: use less memory with mcs51
16389
16390         * support/regression/tests/bug-441448.c: use less memory
16391
16392         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
16393
16394         * support/regression/collate-results.py: typo
16395
16396 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
16397
16398         * support/regression/tests/fetchoverlap.c: Added new test case.
16399
16400         * support/regression/tests/bp.c: Added new test case.
16401
16402         * support/regression/tests/bug-448984.c: Added new test case.
16403
16404         * support/regression/tests/pow2shifts.c: Added new test case.
16405
16406         * src/z80/gen.c: Turned off the noise it normally generates for the release.
16407         (genlshTwo): Fixed right shift for count > 8.
16408
16409         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
16410
16411 2001-09-08    <johan AT FRIJA>
16412
16413         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
16414
16415 2001-09-07    <johan AT FRIJA>
16416
16417         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
16418
16419         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
16420
16421 2001-09-06    <johan AT FRIJA>
16422
16423         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
16424         * bernhard noted me at this: "() equals to (void)" (1.38)
16425
16426 2001-09-05    <johan AT FRIJA>
16427
16428         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
16429
16430 2001-09-04    <johan AT FRIJA>
16431
16432         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
16433
16434
16435 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
16436
16437         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
16438
16439 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
16440
16441         * link/z80/aslink.h: Fixed path for PATH_MAX
16442
16443 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
16444
16445         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
16446
16447         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
16448
16449         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
16450
16451         * 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.
16452
16453 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
16454
16455         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
16456         (genCmp): Fixed up genCmp for the GB with longs.
16457
16458         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
16459
16460         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
16461
16462         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
16463
16464         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
16465
16466 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
16467
16468         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
16469
16470 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
16471
16472         * 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.
16473
16474         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
16475
16476 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
16477
16478         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
16479
16480         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
16481
16482 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
16483
16484   * sim/ucsim/configure:    little improvement of Cygwin-detection
16485   * sim/ucsim/configure.in: little improvement of Cygwin-detection
16486   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
16487   * support/regression/tests/bug-221100.c: small changes for mcs51
16488   * support/regression/tests/bug-221168.c: small changes for mcs51
16489   * support/regression/tests/bug-227710.c: small changes for mcs51
16490   * support/regression/tests/staticinit.c: small changes for mcs51
16491   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
16492   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
16493   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
16494
16495 $Revision$