* doc/sdccman.lyx,
[fw/sdcc] / ChangeLog
1 2008-08-04 Raphael Neider <rneider AT web.de>
2
3         * doc/sdccman.lyx,
4         * src/pic16/device.h,
5         * src/pic16/glue.c,
6         * src/pic16/main.c: enable --optimize-goto by default
7
8         * device/lib/pic16/Makefile.common.in: suppress removed option
9
10         * src/pic16/gen.c,
11         * src/pic16/genutils.c: avoid too long relative branches (#2031890)
12
13 2008-07-30 Borut Razem <borut.razem AT siol.net>
14
15         * src/pic16/device.c, src/pic16/glue.c, src/pic16/pcode.c:
16           applied patch 22032433: PIC16: fix constant strings,
17           thanks Mauro Giachero
18
19 2008-07-29 Borut Razem <borut.razem AT siol.net>
20
21         * src/pic16/gen.c: applied patches:
22           2030306: [1/3] PIC16: fix failing rotate.c tests on 16-bit variables,
23           2030307: [2/3] PIC16: fix failing rotate.c tests for 32-bit var (1),
24           2030310: [3/3] PIC16: fix failing rotate.c tests for 32-bit var (2),
25           thanks Mauro Giachero
26
27 2008-07-13 Philipp Klaus Krause <pkk AT spth.de>
28         * src/port.h: Fixed typo in comment
29
30 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
31         * src/z80/mappings.i: Implemented RFE #1919415
32         * src/z80/peeph-z80.def: Implemented RFE #1919415, #1861376,
33           #1880202, #1914434, prepared for RFE #1703943
34
35 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
36
37         * src/z80/peeph.def,
38         * src/z80/peeph-z80.def,
39         * src/z80/peeph-gbz80.def: separate Z80 from GBZ80 peepholes in
40           preparation for Z80 peephole improvements
41
42 2008-06-21 Raphael Neider <rneider AT web.de>
43
44         * device/include/pic16/pic18f66j60.h,
45         * device/include/pic16/pic18f66j65.h,
46         * device/include/pic16/pic18f67j60.h,
47         * device/include/pic16/pic18f86j60.h,
48         * device/include/pic16/pic18f86j65.h,
49         * device/include/pic16/pic18f87j60.h,
50         * device/include/pic16/pic18f96j60.h,
51         * device/include/pic16/pic18f96j65.h,
52         * device/include/pic16/pic18f97j60.h,
53         * device/lib/pic16/libdev/pic18f66j60.c,
54         * device/lib/pic16/libdev/pic18f66j65.c,
55         * device/lib/pic16/libdev/pic18f67j60.c,
56         * device/lib/pic16/libdev/pic18f86j60.c,
57         * device/lib/pic16/libdev/pic18f86j65.c,
58         * device/lib/pic16/libdev/pic18f87j60.c,
59         * device/lib/pic16/libdev/pic18f96j60.c,
60         * device/lib/pic16/libdev/pic18f96j65.c,
61         * device/lib/pic16/libdev/pic18f97j60.c,
62         * device/include/pic16/pic16devices.txt,
63         * device/include/pic16/pic18fregs.h,
64         * device/lib/pic16/pics.all: added new devices
65
66         * device/include/pic16/adc.h,
67         * device/lib/pic16/libio/adc/adcbusy.c,
68         * device/lib/pic16/libio/adc/adcopen.c,
69         * device/lib/pic16/libio/adc/adcsetch.c,
70         * device/lib/pic16/libio/i2c/i2copen.c,
71         * device/lib/pic16/libio/usart/uopen.c: adapted to new devices,
72           all changes from a patch by Anton Strobl
73
74 2008-06-12 Borut Razem <borut.razem AT siol.net>
75
76         * sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/bp.cc,
77           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
78           sim/ucsim/z80.src/z80cl.h, sim/ucsim/z80.src/z80.cc,
79           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
80           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
81           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/uc390.cc,
82           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/uc390cl.h,
83           sim/ucsim/avr.src/avrcl.h, sim/ucsim/avr.src/avr.cc:
84           fixed bug 1990586: s51 simulator, uc::disass() unimplemented
85           by applying the modified patch from Risto Huotari
86
87 2008-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
88
89         * .version,
90         * doc/sdccman.lyx: bumped sdcc version to 2.8.2
91         * src/ds390/gen.c (aopPutUsesAcc, genAddrOf): fixed bug 1015185
92         * src/mcs51/gen.c (genNearPointerGet, genNearPointerSet): fixed bug 1938300
93         * support/regression/tests/bug1938300.c: new, added
94
95 2008-06-03 Maarten Brock <sourceforge.brock AT dse.nl>
96
97         * device/include/asm/ds390/features.h,
98         * device/include/asm/mcs51/features.h,
99         * device/include/mcs51/regc515c.h: inserted LGPL notice
100
101 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
102
103         * device/lib/gbz80/div.s,
104         * device/lib/z80/div.s: fixed bug 1904314 by applying a modified part of
105           patch 1597883, Thanks Robert Ramey
106
107 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
108
109         * src/SDCCast.c (createIvalType, createIvalStruct, createIvalArray,
110           createIvalCharPtr, createIvalPtr, createIval),
111         * src/SDCCval.h
112         * src/SDCCval.c (convertIListToConstList, list2expr): handle incomplete
113           initializers for local auto variables
114         * support/regression/tests/zeropad.c: added testcase for auto initializers
115
116 2008-05-26 Raphael Neider <rneider AT web.de>
117
118         * device/lib/pic16/startup/crt0.c,
119         * device/lib/pic16/startup/crt0i.c,
120         * device/lib/pic16/startup/crt0iz.c: clean up, make use of access bank
121           explicit, fixed curr_entry loop for >= 256 initializer records,
122           removed debug code (write to 0xf7e)
123
124 2008-05-25 Raphael Neider <rneider AT web.de>
125
126         * device/include/pic/pic16f627a.h,
127         * device/include/pic/pic16f628a.h,
128         * device/include/pic/pic16f648a.h: added missing ports
129
130 2008-05-20 Maarten Brock <sourceforge.brock AT dse.nl>
131
132         * device/include/float.h: added __INFINITY
133         * device/lib/_fsadd.c: handle overflows
134         * device/lib/_fsmul.c,
135         * device/lib/_fsdiv.c: use __INFINITY
136         * device/lib/_fseq.c,
137         * device/lib/_fsneq.c: handle -0.0
138         * sim/ucsim/s51.src/uc89c51r.cc,
139         * sim/ucsim/s51.src/uc89c51rcl.h: fixed bug 1385430
140         * sim/ucsim/sim.src/hwcl.h: */* confuses VC
141         * src/mcs51/gen.c (genSend): fixed bug with --xstack
142         * support/regression/ports/mcs51-xstack-auto/spec.mk: print floats
143         * support/regression/tests/snprintf.c: test bug with --xstack
144
145 2008-05-19  Philipp Klaus Krause <pkk AT spth.de>
146
147         * src/SDCCpeeph.c (callFuncByName):
148           Support nested parenthesis in peephole function arguments (#1967300)
149
150 2008-05-19 Raphael Neider <rneider AT web.de>
151
152         * src/pic16/gen.c (pic16_emitpLabel,pic16_emitpLabelFORCE):
153           fixed duplicate labels (#1911325)
154
155 2008-05-19 Raphael Neider <rneider AT web.de>
156
157         * src/regression/empty.c: suppress warning
158         * src/regression/pointer1.c: enabled index_by_pointer()
159         * src/regression/inline.c: now works for pic16 as well
160
161         * src/pic16/device.c: include dbuf declarations
162         * src/pic16/device.h: removed obsolete prototypes
163
164         * src/pic16/gen.c, src/pic16/gen.h: moved generic pointer tags
165         * src/pic16/glue.c: made purely local functions static,
166           (pic16_printGPointerType, pic16_printIvalCharPtr,
167           pic16_printIvalFuncPtr, pic16_printIvalPtr): fixed initialized
168           generic pointers' tags (#1961866)
169
170         * src/pic16/pcode.c (assignValnums): optimize literal assignments
171
172 2008-05-19 Borut Razem <borut.razem AT siol.net>
173
174         * support/scripts/sdcc.nsi: remove uninstall.exe after uninstallation,
175           fixed typo, uninstall include/pic16/pic16devices.txt
176
177 2008-05-18 Borut Razem <borut.razem AT siol.net>
178
179         * support/Utils/dbuf_string.[ch]: added dbuf_chomp(),
180           the buffer is null terminated
181         * src/device/pic16.c:
182           applied modified patch 1965676: Patch for Win32 16 bit PIC
183         * sdcc_vc_in.h: defined YY_NO_UNISTD_H
184
185 2008-05-16 Maarten Brock <sourceforge.brock AT dse.nl>
186
187         * src/SDCC.lex (check_type),
188         * src/SDCC.y (type_specifier2 TYPE_NAME): fixed bug 1925942
189         * as/hc08/clean.mk,
190         * as/mcs51/clean.mk,
191         * as/z80/clean.mk: also clean *.dep
192         * device/lib/pic16/libsdcc/stack/Makefile,
193         * sim/ucsim/libtool: removed as they are rebuild by configure
194         * src/clean.mk: removed izt, so Makefile is not deleted for distclean
195
196 2008-05-13 Maarten Brock <sourceforge.brock AT dse.nl>
197
198         * src/SDCCast.c (fixupInline, createFunction): save currBlockno in
199           fixupInline instead of createFunction to fix bug 1864577
200           (inlineFindMaxBlockno): removed, use global blockNo
201         * src/SDCCglobl.h: added blockNo
202         * src/z80/peep.c,
203         * src/z80/peep.h: modified properties
204         * support/regression/tests/bug1864577.c: new, added
205
206 2008-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
207
208         * as/mcs51/asdata.c,
209         * as/mcs51/asm.h: added org_cnt
210         * as/mcs51/asmain.c (main, asmbl): fixed bug 1957716, changed old K&R to ANSI
211         * as/mcs51/asout.c: changed old K&R to ANSI
212         * as/mcs51/Makefile.in: use common identifiers
213         * as/hc08/asdata.c,
214         * as/hc08/asexpr.c,
215         * as/hc08/asm.h,
216         * as/hc08/asmain.c,
217         * as/hc08/asout.c,
218         * as/hc08/Makefile.bcc,
219         * as/hc08/Makefile.in: synchronized with as/mcs51/*
220         * sdcc_vc_in.h: added define __func__
221         * src/SDCCast.c (expandInlineFuncs): applied patch 1957148 to fix bug 1717305,
222           Thanks Ruud van Silfhout
223         * support/regression/tests/bug1717305.c: new, added
224
225 2008-05-05 Borut Razem <borut.razem AT siol.net>
226
227         * support/regression/Makefile.in,
228           support/regression/ports/ds390/spec.mk,
229           support/regression/ports/hc08/spec.mk,
230           support/regression/ports/mcs51-common/spec.mk,
231           support/regression/ports/pic14/spec.mk,
232           support/regression/ports/pic16/spec.mk,
233           support/regression/ports/ucz80/spec.mk,
234           support/regression/ports/z80/spec.mk:
235           added INC_DIR and LIBDIR paths
236         * src/ds390/gen.c: removed duplicated selicolon
237
238 2008-05-04 Borut Razem <borut.razem AT siol.net>
239
240         * support/regression/Makefile.in,
241           support/regression/fwk/lib/testfwk.c,
242           support/regression/ports/ds390/spec.mk,
243           support/regression/ports/hc08/spec.mk,
244           support/regression/ports/mcs51-common/spec.mk,
245           support/regression/ports/mcs51-large/spec.mk,
246           support/regression/ports/mcs51-medium/spec.mk,
247           support/regression/ports/mcs51-small/spec.mk,
248           support/regression/ports/mcs51-stack-auto/spec.mk,
249           support/regression/ports/mcs51-xstack-auto/spec.mk,
250           support/regression/ports/pic14/spec.mk,
251           support/regression/ports/pic16/spec.mk,
252           support/regression/ports/ucz80/spec.mk:
253           added possibility to define the sdcc binary directory SDCC_BIN_PATH
254           used to run regeression tests
255
256 2008-05-01 Raphael Neider <rneider AT web.de>
257
258         * doc/sdccman.lyx, support/scripts/inc2h-pic16.pl: updated list of
259           supported devices and instructions to add new ones
260
261 2008-05-01 Raphael Neider <rneider AT web.de>
262
263         * device/include/pic16/adc.h,
264           device/lib/pic16/libio/adc/adcbusy.c,
265           device/lib/pic16/libio/adc/adcopen.c,
266           device/lib/pic16/libio/adc/adcsetch.c: support old 18f242 and new
267           18f2455 style ADC devices, based on patch #1776197
268         * device/lib/pic16/libio/adc/adcclose.c,
269           device/lib/pic16/libio/adc/adcconv.c,
270           device/lib/pic16/libio/adc/adcread.c: cosmetic changes
271         * device/include/pic16/{pic18f2331.h,pic18f2431.h},
272           device/lib/pic16/libdev/{pic18f2331.c,pic18f2431.c}: reuse 18f4331
273         * device/include/pic16/pic18f4431.h,
274           device/lib/pic16/libdev/pic18f4431.c: remove outdated comments
275         * device/lib/pic16/libio/adc.ignore: forbid unhandled devices
276
277 2008-05-01 Raphael Neider <rneider AT web.de>
278
279         * src/pic16/device.h: removed unused field PIC16_device.sfrRange,
280           moved xinst flag into pic16_options_t
281         * src/pic16/device.c (default_device, pic16_list_devices,
282           pic16_find_device): removed references to sfrrange
283         * src/pic16/gen.c (genFunction),
284           src/pic16/glue.c (pic16initialComments),
285           src/pic16/main.c (pic16_optionsTable),
286           src/pic16/ralloc.c (newReg, pic16_writeUsedRegs): updated references
287           to xinst
288         * device/include/pic16/pic16devices.txt: removed sfrrange lines
289
290 2008-04-29 Raphael Neider <rneider AT web.de>
291
292         * src/pic16/devices.inc,
293           device/include/pic16/pic16devices.txt: replaced compiled-in list
294           of devices with a variant parsed at runtime
295         * src/pic16/device.c: added support for parsing pic16devices.txt,
296           clean up
297         * src/pic16/device.h: removed (now) unused fields from PIC_device
298         * src/pic16/main.c: removed #pragma maxram,
299           (_pic16_initPaths): removed bogus generation of search paths,
300           setup the port proper only after the search paths (for
301           pic16devices.txt) are set up,
302           (_pic16_finaliseOptions): moved processor dependant code here
303           from _pic16_initPaths(), clean up
304         * src/pic16/ralloc.c (pic16_init_stack),
305         * src/pic16/ralloc.h,
306         * src/pic16/pcode.c: clean up
307         * device/include/Makefile.in,
308           support/scripts/sdcc.nsi: also install/package pic16devices.txt
309         * support/scripts/inc2h-pic16.pl: updated instructions
310
311 2008-04-29 Raphael Neider <rneider AT web.de>
312
313         * device/include/pic16/{pic18f2480.h, pic18f2580.h, pic18f4423.h,
314           pic18f4480.h, pic18f4523.h, pic18f4580.h, pic18f6585.h, pic18f8585.h},
315           device/lib/pic16/libdev/{pic18f2480.c, pic18f2580.c, pic18f4423.c,
316           pic18f4480.c, pic18f4523.c, pic18f4580.c, pic18f6585.c, pic18f8585.c}:
317           added missing family members and 18f2480/2580/4480/4580 family
318         * device/include/pic16/{pic18f2423.h, pic18f2523.h}: use 18f4523.h
319         * device/include/pic16/pic18f2525.h: use 18f4620.h
320         * device/include/pic16/pic18f6680.h: use 18f8680.h
321         * device/include/pic16/pic18fregs.h,
322           device/lib/pic16/pics.all,
323           src/pic16/devices.inc: add new devices
324         * device/lib/pic16/libdev/{pic18f2423.c, pic18f2523.c}: use 18f4523.c
325         * device/lib/pic16/libdev/pic18f2525.c: use 18f4620.c
326         * device/lib/pic16/libdev/pic18f6680.c: uso 18f8680.c
327         * device/lib/pic16/libio/{adc.ignore, i2c.ignore, usart.ignore}:
328           prevent attempting to build the libio for some new devices
329
330 2008-04-29 Raphael Neider <rneider AT web.de>
331
332         * debugger/mcs51/Makefile.in: fixed paths to sources
333
334 2008-04-25 Borut Razem <borut.razem AT siol.net>
335
336         * as/link/lklibr.c: moved from as/link/z80/lklibr.c
337         * as/link/hc08/lklibr.c, as/link/mcs51/lklibr.c: deleted
338         * as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
339         * as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
340           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
341           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
342           as/link/z80/linkz80.dsp: lklibr.c moved
343         * doc/INSTALL.txt: binary archives in bz2 format
344         * support/cpp/auto-host_vc_in.h: CPP2 replaced with CPP
345
346 2008-04-23 Maarten Brock <sourceforge.brock AT dse.nl>
347
348         * src/SDCCglue.c (printIvalType, printIvalBitFields): fixed bug 1856409
349         * support/regression/tests/bug1856409.c: new, added
350
351 2008-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
352
353         * src/z80/peep.c,
354         * src/mcs51/peep.c: Use werror for error messages.
355         * src/SDCCicode.c (geniCodeConditional),
356         * src/SDCCsymt.c (structElemType): fixed bug 1839321
357         * src/z80/Makefile.bcc,
358         * src/z80/z80.dsp: added src/z80/peep.c/h
359         * support/regression/tests/bug1839321.c: new, added
360
361 2008-04-20 Raphael Neider <rneider AT web.de>
362
363         * device/include/pic16/pic18f2455.h: added bitfields for port C
364
365 2008-04-20 Philipp Klaus Krause <pkk AT spth.de>
366
367         * src/z80/peep.c: Use werror for error messages.
368
369 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
370
371         * src/z80/peep.h (declaration of notUsed()),
372         * src/z80/main.c (enabled notUsed() for z80 port, documented z80_port
373           struct),
374         * src/z80/z80.h (added dependency on peep.h),
375         * src/z80/peep.c (definition of notUsed()): Implemented RFE #1880202
376           for Z80.
377
378 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
379
380         * src/SDCCpeeph.c (added support for notUsed()),
381         * src/mcs51/main.c (added dependency on peep.h, documented mcs51_port
382           struct),
383         * src/port.h (removed dependency on mcs51/peep.h, added declaration
384           for notUsed()): Implemented generic (that is not port-specific) part
385           of RFE #1880202.
386
387 2008-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
388
389         * as/link/mcs51/lkmem.c (summary2): fixed bug 1796077
390         * device/lib/libsdcc.lib,
391         * device/lib/Makefile.in,
392         * support/regression/ports/mcs51-xstack-auto/spec.mk,
393         * device/lib/calloc.c: renamed to _calloc.c
394         * device/lib/free.c: renamed to _free.c
395         * device/lib/malloc.c: renamed to _malloc.c
396         * device/lib/realloc.c: renamed to _realloc.c
397         * src/ds390/gen.c (aopGet, aopPut, genPlusBits, genDataPointerSet,
398           genNearPointerSet, genPagedPointerSet): synchronized with mcs51/gen.c
399         * src/ds390/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq, ifxForOp,
400           genAnd, genOr, genXor, genIfx, gen390Code): fixed bug 1509084
401         * src/mcs51/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq,
402           ifxForOp, genAnd, genOr, genXor, genNearPointerGet,
403           genPagedPointerGet, genFarPointerGet, genCodePointerGet,
404           genGenPointerGet, genIfx, gen51Code): fixed bug 1509084
405         * src/ds390/gen.c,
406         * src/mcs51/gen.c: throughout cosmetic changes for syncing both
407         * src/SDCCsymt.h: updated IS_OP_RUONLY, IS_OP_ACCUSE
408         * support/regression/tests/bug1509084.c: new, added
409
410 2008-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
411
412         * device/include/mcs51/cc2510fx.h: added _XPAGE
413         * device/include/mcs51/compiler.h: cosmetic changes
414
415 2008-03-31 Maarten Brock <sourceforge.brock AT dse.nl>
416
417         * sdcc.dsw: adapted for moved cpp2, added dependency for as_z80 on
418           config
419
420 2008-03-31 Borut Razem <borut.razem AT siol.net>
421
422         * support/cpp2 renamed to support/cpp
423         * support/cpp2/libiberty/filenames.h, support/cpp2/libiberty/hex.c,
424           support/cpp2/libiberty/splay-tree.c,
425           support/cpp2/libiberty/splay-tree.h, support/cpp2/libcpp/macro.c,
426           support/cpp2/libcpp/directives.c,
427           support/cpp2/libcpp/include/cpplib.h,
428           support/cpp2/libcpp/include/symtab.h,
429           support/cpp2/libcpp/include/line-map.h,
430           support/cpp2/libcpp/line-map.c, support/cpp2/libcpp/files.c,
431           support/cpp2/libcpp/init.c, support/cpp2/libcpp/traditional.c,
432           support/cpp2/libcpp/expr.c, support/cpp2/libcpp/internal.h,
433           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/system.h,
434           support/cpp2/libcpp/charset.c: SDCPP synchronized with GCC CPP
435           release version 4.3.0
436         * configure.in, configure, Makefile.in, Makefile.bcc:
437           adapted for moved cpp2
438
439 2008-03-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
440
441         * device/include/hc08/mc68hc908jkjl.h: committed fix for bug #1929739,
442           thanks Alejandro Pustowka <alejo_pustowka AT yahoo.com.mx>
443
444 2008-03-30 Maarten Brock <sourceforge.brock AT dse.nl>
445
446         * src/SDCCloop.c (loopInvariants): applied fix for bug 1717943, thanks
447           Robert Larice
448         * support/regression/tests/bug1717943.c: new, added
449
450 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
451
452         * src/z80/gen.c (assignResultValue): Reverted reversal of order of
453           bytewise return value assignments introduced in last commit.
454
455 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
456
457         * src/z80/gen.c (emitDebug, assignResultValue, genPlus, genMinus,
458           genMult, genJumpTab):
459           Use 16-bit instructions for addition in some additional cases,
460           implemented RFEs #1914251, #1914245, #1922090, #1921382, #1918323.
461
462 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
463
464         * src/z80/ralloc.c (serialRegAssign, allocReg, tryAllocatingRegPair):
465           Implemented RFE #1921450, changed some debug messages.
466
467 2008-03-30 Borut Razem <borut.razem AT siol.net>
468
469         * Small Device C Compiler 2.8.0 released
470         * .version, doc/sdccman.lyx: changed sdcc version to 2.8.1
471         * support/scripts/sdcc.nsi: added finish page; this version
472           was used for 2.8.0 release
473         * doc/knownbugs.html: removed; magically generated by the build
474           process using gen_known_bugs.pl from now on
475
476 2008-03-23 Borut Razem <borut.razem AT siol.net>
477
478         * src/pic/gen.h: Q&D solution for the bug, found by Jim Paris
479           and reverted it, since it was already fixed by Raphael ;-)
480         * doc/knownbugs.html: updated for RC2
481
482 2008-03-22 Raphael Neider <rneider AT web.de>
483
484         * src/SDCCicode.c (getPtrType): avoid unnecessary extra assignments
485           for PIC16 targets
486
487 2008-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
488
489         * src/mcs51/gen.c (adjustArithmeticResult): fixed bug 1839299
490         * support/regression/tests/bug1839277.c: added related testBug1839299
491
492 2008-03-21 Maarten Brock <sourceforge.brock AT dse.nl>
493
494         * src/ds390/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign),
495         * src/mcs51/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign):
496           fixed bug 1839277
497         * src/mcs51/gen.c: throughout only output hex constants
498         * src/SDCCicode.c (getPtrType, geniCodeCast): fixed code size regression
499         * support/regression/tests/bug1839277.c: new, added
500
501 2008-03-21 Philipp Klaus Krause <pkk AT spth.de>
502
503         * src/z80/ralloc.c (callFuncByName): Used // instead of /**/ to fix
504           compilation warning about nested comments.
505
506 2008-03-20 Maarten Brock <sourceforge.brock AT dse.nl>
507
508         * src/SDCCsymt.c (comparePtrType): fixed bug 1921073
509         * support/regression/tests/bug1921073.c: new, added
510
511 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
512
513         * src/z80/SDCCpeeph.c.c (callFuncByName):
514           Commented function parameters.
515
516 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
517
518         * src/z80/ralloc.c (packRegsForAccUse2):
519           disabled a broken accumulator packing optimization (fixed #1292721).
520         * support/regression/tests/bug-1292721: Regression test for #1292721.
521
522 2008-03-16 Raphael Neider <rneider AT web.de>
523
524         * src/pic/gen.c (SetIrp,genNearPointerGet,genNearPointerSet):
525           fixed code bloat regression using a variant of patch #1915618
526
527 2008-03-16 Borut Razem <borut.razem AT siol.net>
528
529         * support/scripts/sdcc.nsi: added section debugging macros, added SDCC
530           icon, changed startup menu for release distribution, code cleaning,
531           create url files instead links in startup menu
532
533 2008-03-16 Maarten Brock <sourceforge.brock AT dse.nl>
534
535         * src/SDCCcse.c (algebraicOpts): fixed bug 1579949
536         * support/regression/tests/bug1579949.c: new, added
537
538 2008-03-14 Paul Stoffregen <paul AT pjrc.com>
539
540         * device/lib/printf_fast.c: fixed bug 1255403
541
542 2008-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
543
544         * doc/sdccman.lyx: enhanced paragraph about bankswitching for mcs51
545         * src/cdbFile.c (cdbWriteBasicSymbol): fixed bug 1909409 for locals
546
547 2008-03-14 Borut Razem <borut.razem AT siol.net>
548
549         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated link-xx and aslink
550           command line options
551         * as/link/hc08/lkmain.c: converted tabs to spaces so that the usage
552           is correctly displayed
553         * as/link/z80/lkmain.c: usage line commented out
554
555 2008-03-13 Borut Razem <borut.razem AT siol.net>
556
557         * doc/sdccman.lyx: corrected to be able to convert to PDF,
558           updated the list pf supported pic14 devices
559
560 2008-03-12 Maarten Brock <sourceforge.brock AT dse.nl>
561
562         * doc/sdccman.lyx: added paragraph about bankswitching for mcs51
563
564 2008-03-12 Borut Razem <borut.razem AT siol.net>
565
566         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated command line options,
567           fixed documentation request #1718191
568         * as/hc80/asmain.c, as/mcs51/asmain.c: added option -c to usage
569         * doc/sdccman.lyx: added description of --no-std-crt0 gbz80
570           command line option
571
572 2008-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
573
574         * src/SDCCast.c (isConformingBody): fixed bug 1505811, thanks Robert Larice
575         * support/regression/tests/bug1505811.c: new, added
576
577 2008-03-09 Raphael Neider <rneider AT web.de>
578
579         * device/include/pic16/pic18f2620.h,
580         * device/include/pic16/pic18f4620.h,
581         * device/lib/pic16/libdev/pic18f2620.c,
582         * device/lib/pic16/libdev/pic18f4525.c,
583         * device/lib/pic16/libdev/pic18f4620.c: merged 18f2525/2620/4525/4620
584           family to consistently use pic18f4620.[ch], fixes #1832562
585
586 2008-03-09 Borut Razem <borut.razem AT siol.net>
587
588         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
589           changed sdcc version to 2.8.0
590         * knownbugs.html: regenerated
591         * support/scripts/gen_known_bugs.pl: added number of open bugs
592
593 2008-03-09 Raphael Neider <rneider AT web.de>
594
595         * src/pic16/gen.c (pic16_mov2w_volatile): NEW, read volatile operands,
596           (genOr): read volatile operand even if the result is known,
597           closes #1511838
598           (genOr,genXor): removed unused legacy code,
599           (genDummyRead): use pic16_mov2w_volatile()
600
601 2008-03-08 Borut Razem <borut.razem AT siol.net>
602
603         * src/SDCCglue.c: fixed bug #1864582: multiple definition of char
604           cons w. --model-large
605         * support/regression/staticinit.c: added regression test for bug
606           #1864582
607
608 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
609
610         * src/ds390/gen.c (pushSide, genPcall),
611         * src/hc08/gen.c (pushSide, genPcall): synchronized with mcs51
612         * src/mcs51/gen.c: cosmetic changes
613         * support/regression/fwk/include/testfwk.h: added macro reentrant
614         * support/regression/tests/bug1908493.c: new, added
615
616 2008-03-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
617
618         * src/SDCCdebug.c:, as/link/lkaomf51.c: Fixed bug 1909409: Pdata in OMF file
619
620 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
621
622         * src/mcs51/gen.c (pushSide, genPcall): fixed bug 1908493
623         * src/SDCCmain.c (preProcess): removed -DSDCC_PARMS_IN_BANK1 because it is
624           already set in ds390/main.c and mcs51/main.c
625
626 2008-03-07 Raphael Neider <rneider AT web.de>
627
628         * src/regression/init0.c: new test for initialized arrays of function
629           pointers
630         * src/regression/Makefile: made a bit more flexible, added init0.c
631         * src/pic/glue.c (emitIvals): hacky fix for initializing from function
632           pointers, closes #1427663
633
634 2008-03-05 Borut Razem <borut.razem AT siol.net>
635
636         * dos/sdccman.lyx: docummented predefined macros SDCC_REVISION,
637           SDCC_PARMS_IN_BANK1, SDCC_FLOAT_REENT and SDCC_INT_LONG_REENT
638
639 2008-03-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
640
641         * support/librarian/sdcclib.c:Added feature request 1908061:
642           Synchronise sdcclib commands with ar.
643
644 2008-03-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
645
646         * src/SDCCmain.c: added predefined macros SDCC_REVISION (RFE #1907229),
647           and (depending on corresponding compiler option) SDCC_PARMS_IN_BANK1,
648           SDCC_FLOAT_REENT, SDCC_INT_LONG_REENT
649         * device/include/mcs51/compiler.h: removed umlauts, added double
650           underscore
651
652 2008-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
653
654         * src/SDCCptropt.c (ptrPseudoSymConvert): fixed bug 1536762
655         * support/regression/tests/bug1536762.c: new, added
656         * src/SDCCutil.c,
657         * src/SDCCutil.h: added getBuildDate()
658         * src/SDCCmain.c (printVersionInfo),
659         * src/SDCCglue.c (initialComments): use getBuildDate() instead of
660           __DATE__
661         * src/*/ralloc.c: removed IS_OP_RUONLY macro
662         * src/ds390/ralloc.c (packRegisters),
663         * src/mcs51/ralloc.c (packRegisters),
664         * src/z80/ralloc.c (packRegisters): applied fix for bug 1618050, thanks
665           Robert Larice
666         * support/regression/tests/bug1618050.c: new, added
667         * src/SDCCsymt.h: fixed typo in DECLSPEC2TXT
668         * support/regression/fwk/include/testfwk.h,
669         * support/regression/tests/bug1838000.c: moved _AUTOMEM and _STATMEM to
670           testfwk.h
671
672 2008-03-04 Raphael Neider <rneider AT web.de>
673
674         * src/pic/gen.c: removed unused prototypes, prevent internal errors
675           on accessing OP_SYM_TYPE(op)
676         * src/pic/gen.h: removed unused prototype of genMinusDec()
677         * src/pic/genarith.c (genMinus): cosmetic changes, rewritten to
678           fix #1876953 (invalid subtraction code), removed unused code
679
680 2008-03-03 Raphael Neider <rneider AT web.de>
681
682         * src/pic/gen.c,
683         * src/pic/gen.h,
684         * src/pic/genarith.c,
685         * src/pic/ralloc.c,
686         * src/pic/ralloc.h: removed AOP_R0, AOP_R1, AOP_DPTR, AOP_DPTR2,
687           AOP_ACC, and *_IDX and adjusted code, removed unused legacy code
688
689 2008-03-03 Raphael Neider <rneider AT web.de>
690
691         * src/pic/device.c (find_device): search user-specified paths first
692           for pic14devices.txt, fixes #1900827
693
694 2008-03-02 Borut Razem <borut.razem AT siol.net>
695
696         * support/scripts/sdcc.nsi: fixed bug in IsNT, LogicLib-isation of
697           AddToPath and RemoveFromPath
698
699 2008-03-01 Borut Razem <borut.razem AT siol.net>
700
701         * support/scripts/sdcc.nsi: reverted MULTIUSER page since it didn't
702           work correctly, added debugging support if -DSDCC.DEBUG command line
703           option is defined
704
705 2008-02-28 Borut Razem <borut.razem AT siol.net>
706
707         * doc/sdccman.lyx: cosmetic changes
708
709 2008-02-28 Maarten Brock <sourceforge.brock AT dse.nl>
710
711         * src/mcs51/ralloc.c (fillGaps): fixed bug 1839671
712         * doc/sdccman.lyx: fixed unmeant removal of spaces
713
714 2008-02-27 Borut Razem <borut.razem AT siol.net>
715
716         * support/scripts/sdcc.nsi: corrected installation directory for
717           current user installation mode
718         * doc/README.txt: added Philipp Klaus Krause to the developers list
719
720 2008-02-27 Maarten Brock <sourceforge.brock AT dse.nl>
721
722         * src/mcs51/gen.c (genUnpackBits): don't generate ifxJump, instead
723           return ifx condition
724           (genNearPointerGet, genPagedPointerGet, genFarPointerGet,
725           genCodePointerGet, genGenPointerGet): cleanup aop before generating
726             ifxJump to fix bug 1838000
727         * src/SDCCsymt.c (aggregateToPointer): fix problem for xstack
728         * support/regression/tests/bug1838000.c: new, added
729         * device/include/mcs51/cc1110.h: new, added, thanks to Pravin Angolkar
730
731 2008-02-26 Borut Razem <borut.razem AT siol.net>
732
733         * src/SDCCast.c, doc/sdccman.lyx: fixed RFE #1901171: inerger promotion
734           of casted varargs
735         * support/scripts/sdcc.nsi: added MULTIUSER page,
736           NSIS upgraded to version 2.35
737
738 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
739
740         * src/mcs51/ralloc.c (isSpiltOnStack): fixed bug 1565152
741         * support/regression/tests/bug1565152.c: new, added
742
743 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
744
745         * src/mcs51/gen.c (genPagedPointerSet): fixed bug 1670148
746         * support/regression/ports/mcs51-xstack-auto/spec.mk: added expf.c
747         * support/regression/tests/bug1670148.c: new, added
748
749 2008-02-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
750
751         * device/include/mcs51/at89c51ed2.h: fixed bug 1901469.
752
753 2008-02-24 Borut Razem <borut.razem AT siol.net>
754
755         * src/SDCCast.c, src/SDCCast.h: fixed bug #1874922: explicit typecast
756           is ineffective for unsigned char parameter
757
758 2008-02-24 Maarten Brock <sourceforge.brock AT dse.nl>
759
760         * src/SDCCast.c (expandInlineFuncs): fixed bug 1875869
761         * src/SDCCglue.c (printIvalBitFields): fixed bug 1806631
762         * support/regression/tests/bitopcse.c: removed hc08 exception, see testfwk.h
763         * support/Util/MySystem.c (my_system): output errorcode when verbose
764
765 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
766
767         * src/z80/gen.c (genMult): Rewrote 8-bit multiplication by constant,
768           implements #1898231
769
770 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
771
772         * device/lib/z80/mul.s: Rewrote __muluchar_rrx_s, to improve 8-bit mult.,
773           implements #1896290
774
775 2008-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
776
777         * src/SDCCast.c (createIvalStruct): fixed bug 1466761
778
779 2008-02-21 Borut Razem <borut.razem AT siol.net>
780
781         * support/regression/Makefile.in,
782           support/regression/ports/ds390/spec.mk,
783           support/regression/ports/hc08/spec.mk,
784           support/regression/ports/mcs51-common/spec.mk,
785           support/regression/ports/pic14/spec.mk,
786           support/regression/ports/pic16/spec.mk,
787           support/regression/ports/ucz80/spec.mk,
788           support/regression/ports/xa51/spec.mk:
789           added CFLAGS when compiling timeout
790
791 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
792
793         * support/regression/tests/bugs-1596270-1736867.c: Regression test for
794           #1596270, #1736867
795
796 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
797
798         * src/SDCClrange.c (findPrevUse): fixed bug 1888147
799         * support/regression/tests/bug1888147.c: new, added
800
801 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
802
803         * src/z80/gen.c: fixed bugs #1596270, #1736867
804
805 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
806
807         * src/z80/gen.c: fixed bug in register pair loading when swapping register
808           contents, mostly fixes #1596270
809
810 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
811
812         * src/z80/peeph.def,
813         * src/z80/peeph-z80.def: moved peephole that breaks gbz80 to z80-specific
814           peepholes, fixes #1806565
815
816 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
817
818         * src/SDCCpeeph.c (operandBaseName): added check for @Ri
819         * src/mcs51/peeph.def (rule 177.c): added operandsNotRelated(%1 %3)
820           fixes bug 1739475, thanks Robert Larice
821           (rule 271): new, added
822
823 2008-02-18 Borut Razem <borut.razem AT siol.net>
824
825         * sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
826
827 2008-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
828
829         * src/SDCCmain.c (linkEdit): emit -z when using --debug for z80
830
831 2008-02-17 Raphael Neider <rneider AT web.de>
832
833         * src/pic16/genarith.c,
834         * src/pic16/gen.c,
835         * src/pic16/gen.h,
836         * src/pic16/genutils.c: removed unused legacy code,
837           removed unused fields from struct asmop and struct _G
838
839 2008-02-17 Raphael Neider <rneider AT web.de>
840
841         * src/pic16/gen.c (AccRsh): cosmetic changes,
842           (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
843           genRightShiftLiteral): fixed to work with SFRs as result by
844           assigning only once to result,
845           removed a lot of unused/excluded code fragments
846
847 2008-02-17 Raphael Neider <rneider AT web.de>
848
849         * device/include/pic/pic16f88.h,
850         * device/include/pic/pic16f886.h,
851         * device/include/pic/pic16f887.h: added TRISA6 and TRISA7
852
853 2008-02-17 Borut Razem <borut.razem AT siol.net>
854
855         * src/z80/peeph.def: applied patch
856           #1893626: Optimize tail calls on Z80, thanks to Philipp Krause
857         * src/z80/gen.c, src/z80/peeph.def: applied patch
858           #1893510: Improve logical left shift on Z80, thanks to Philipp Krause
859         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
860           sim/ucsim/s51.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
861           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
862           sim/ucsim/main_in.mk: renamed libutil.a to libucsimutil.a in order to
863           enable compilation on Mac OS X 10.5 (Leopard) and XCode v3.0
864
865 2008-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
866
867         * as/link/mcs51/aslink.dsp: removed SDK define
868         * as/link/z80/clean.mk: brought in sync with other ports
869         * as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
870         * as/hc08/Makefile.bcc,
871         * as/mcs51/Makefile.bcc,
872         * as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
873         * src/z80/main.c (_setValues): use the now capitalized -Z,
874           (z80_port, gbz80_port): generate debug information when asked
875
876 2008-02-16 Borut Razem <borut.razem AT siol.net>
877
878         * as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
879           as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
880           as/z80/Makefile.in. as/z80/Makefile.bcc:
881           applied patch #1893393: patch for as-z80 and link-z80 to generate
882           cdb, thanks to Armin Diehl
883         * as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
884           as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
885           asnoice.c moved to as/asxxsrc/asnoice.c
886         * src/z80/peeph-gbz80.def: applied patch
887           #1880235: Z80 return peephole, thanks to Philipp Krause
888
889 2008-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
890
891         * .version,
892         * doc/sdccman.lyx: bumped version to 2.7.5
893         * src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583
894
895 2008-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
896
897         * device/include/pic16/stdlib.h,
898         * device/lib/pic16/libc/stdlib/ltoa.c,
899         * device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*
900
901 2008-02-13 Borut Razem <borut.razem AT siol.net>
902
903         * src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
904         * src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
905           src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
906           src/SDCCopt.c,  src/SDCCval.c:
907           fixed bug #1890273: SDCC Warning 154 shows wrong filename
908
909 2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
910
911         * src/SDCCsymt.c (compareType): fixed bug 1309013
912
913 2008-02-09 Borut Razem <borut.razem AT siol.net>
914
915         * src/SDCCval.c, src/SDCCval.h:
916           code cleaning, added function constChrVal()
917         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
918           call constChrVal() instead constVal()
919
920 2008-02-01 Maarten Brock <sourceforge.brock AT dse.nl>
921
922         * src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
923           of function pointer
924         * src/SDCCerr.h,
925         * src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
926         * support/regression/tests/absolute.c: added TestStruct TestVar (see also
927           bug 1859853)
928
929 2008-02-01 Raphael Neider <rneider AT web.de>
930
931         * device/include/pic/pic16f886.h,
932         * device/include/pic/pic16f887.h: added RA6 and RA7
933
934 2008-01-24 Raphael Neider <rneider AT web.de>
935
936         * device/include/pic/pic16f88.h: added RA6 and RA7
937         * device/lib/pic/libdev/disabled_pic16f886.c,
938         * device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled
939
940         * src/pic16/devices.inc,
941         * device/include/pic16/pic18f2423.h,
942         * device/include/pic16/pic18f2523.h,
943         * device/include/pic16/pic18fregs.h,
944         * device/lib/pic16/pics.all
945         * device/lib/pic16/libdev/pic18f2423.c,
946         * device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
947         * device/lib/pic16/libio/i2c.ignore,
948         * device/lib/pic16/libio/usart.ignore,
949         * device/lib/pic16/libio/adc.ignore: ignore new devices
950
951 2008-01-23 Maarten Brock <sourceforge.brock AT dse.nl>
952
953         * src/SDCCast.c (createRMW): fixed bug 1582651
954
955 2008-01-20 Borut Razem <borut.razem AT siol.net>
956
957         * src/SDCCcse.c: partially fixed enhancement request
958           #1793872 - multiply by -1 not collapsed
959         * support/regression/tests/arithcsi.c: added regression test
960
961 2008-01-19 Maarten Brock <sourceforge.brock AT dse.nl>
962
963         * as/mcs51/asx8051.dsp: removed define SDK
964         * as/mcs51/i51mch.c (machine): fixed bug 1865114
965         * device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
966         * as/link/lklex.c,
967         * as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
968           cosmetic changes, brought more in sync, changed old K&R to ANSI
969
970 2008-01-13 Borut Razem <borut.razem AT siol.net>
971
972         * support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...
973         * src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
974
975 2007-12-30 Borut Razem <borut.razem AT siol.net>
976
977         * src/pic16/gen.c: fixed implementation of bitwise operations for
978           pic16 target
979         * support/regression/tests/bitwise.c: added test cases
980
981 2007-12-29 Borut Razem <borut.razem AT siol.net>
982
983         * src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
984         * src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
985           src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
986         * support/Util/dbuf_string.[ch]: added function dbuf_getline()
987         * src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
988           src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
989           src/pic16/pcode.[ch]: added const qualifier
990         * as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
991           as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
992           as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
993           as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
994         * as/asxxsrc/aslex.c: use dbuf_getline()
995         * as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
996           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
997           as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
998           as/z80/asm.h, as/z80/z80adr.c:
999           changed type of ib and ip to const char *
1000
1001 2007-12-28 Borut Razem <borut.razem AT siol.net>
1002
1003         * as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
1004           introduced (readlin) - long lines are turuncated
1005         * as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
1006           as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
1007           as/z80/Makefile.in: moved aslex.c to asxxsrc
1008         * as/hc08/aslex.c, as/z80/aslex.c: deleted
1009         * as/hc08/asmain.c, as/mcs51/asmain.c:
1010           added missing initialization of a_addr field
1011         * support/regression/tests/long_asm_line.c: added regtest for long
1012           assembler line
1013
1014 2007-12-22 Borut Razem <borut.razem AT siol.net>
1015
1016         * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
1017
1018 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
1019
1020         * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
1021
1022 2007-12-16 Borut Razem <borut.razem AT siol.net>
1023
1024         * device/include/pic16/stdbool.h: removed, since already exists in
1025          device/include/; this also fixes bitopcse.c regression test for pic16
1026          target
1027         * support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
1028         * src/pic16/glue.c: fixed bug #1851855: generic static pointer
1029           dereference doesn't work; covered by regression test bug1399290
1030
1031 2007-12-05 Borut Razem <borut.razem AT siol.net>
1032
1033         * doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
1034           Adding new PIC16
1035
1036 2007-12-01 Borut Razem <borut.razem AT siol.net>
1037
1038         * sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
1039           corrected handling of the highest_valid_address
1040
1041 2007-11-17 Raphael Neider <rneider AT web.de>
1042
1043         * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
1044         * src/pic/glue.c (picglue): emit .file if --debug is given
1045
1046 2007-11-17 Raphael Neider <rneider AT web.de>
1047
1048         * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
1049         care when left or right operand resides in result, fixes #1830220
1050
1051 2007-11-17 Borut Razem <borut.razem AT siol.net>
1052
1053         * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
1054           #983491 - "Merge duplicate strings function is ineffective"
1055         * support/regression/tests/bug-983491.c: regtest disabled
1056         * as/asxxsrc: created
1057           as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
1058           as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
1059           as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
1060           as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
1061           as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
1062           as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
1063           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
1064           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
1065           as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
1066           as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
1067           as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
1068           as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
1069           created as/asxxsrc directory, assym.c and strcpi.c moved into it
1070
1071 2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
1072
1073         * device/include/stdarg.h: added and removed some casts
1074         * src/SDCCsymt.c (compareType): Fully check types between generic and
1075           non-generic pointers, also accept ptr-ptr to void-ptr assignments
1076
1077 2007-11-13 Borut Razem <borut.razem AT siol.net>
1078
1079         * support/regression/tests/bug-1817005.c:
1080           added regtest for bug #1817005 - as-z80 chokes on long labels
1081
1082 2007-11-12 Borut Razem <borut.razem AT siol.net>
1083
1084         * as\z80\asmain.c, as\z80\asm.h, as\z80\assym.c, as\z80\asdata.c,
1085           as\z80\asout.c, as\z80\aslist.c:
1086           fixed bug #1817005 - as-z80 chokes on long labels
1087
1088 2007-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
1089
1090         * as/hc08/asmain.c,
1091         * as/z80/asmain.c: cosmetic changes
1092         * as/hc08/alloc.h,
1093         * as/mcs51/alloc.h,
1094         * as/z80/alloc.h: removed
1095         * as/hc08/assym.c,
1096         * as/mcs51/assym.c: replaced alloc.h with stdlib.h
1097         * as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
1098         * as/link/hc08/Makefile.in,
1099         * as/link/mcs51/Makefile.in,
1100         * as/link/z80/Makefile.in: added -DUNIX to CFLAGS
1101         * as/link/lklex.c,
1102         * as/link/mcs51/lkarea.c,
1103         * as/link/mcs51/lkmain.c: cosmetic changes
1104         * as/link/hc08/lklibr.c,
1105         * as/link/z80/lklibr.c,
1106         * as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
1107           used cygwin_conv_to_full_posix_path,
1108           added warnings, cosmetic changes, brought more in sync
1109           changed old K&R into ANSI function declarations
1110         * as/link/z80/lklibr.c (loadAdb): added
1111         * as/link/z80/lkmain.c: removed -- option from usage text
1112
1113 2007-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
1114
1115         * src/mcs51/gen.c (outBitC): optimized for no result
1116
1117 2007-10-31 Borut Razem <borut.razem AT siol.net>
1118
1119         * src/SDCCsymt.c: fixed (hopeful properly) bug
1120           #1805702 - order of extern matters
1121         * support/regression/tests/bug-1805702.c: enabled regtest for bug
1122           #1805702
1123
1124 2007-10-29 Borut Razem <borut.razem AT siol.net>
1125
1126         * src/SDCCsymt.c: reverted bad fixed of bug #1805702
1127           - order of extern matters
1128         * support/regression/tests/bug-1805702.c: disabled regtest for bug
1129           #1805702
1130
1131 2007-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
1132
1133         * src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
1134           24bitMode, portIsDS390
1135         * src/mcs51/gen.c (genOr): optimized for RFE 1750727
1136         * src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
1137           (notVolatileVariable): also check sloc names,
1138           (callFuncByName): moved ftab[] out of function and sorted it by use
1139
1140 2007-10-28 Maarten Brock <sourceforge.brock AT dse.nl>
1141
1142         * device/include/stdarg.h: fixed bug in va_start macro for --xstack
1143         * src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
1144           aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
1145         * src/SDCCicode.c (geniCodeCast): fixed bug 880197
1146         * support/regression/tests/bug-880197.c: new, added
1147
1148 2007-10-28 Borut Razem <borut.razem AT siol.net>
1149
1150         * support/regression/Makefile.in,
1151           support/regression/ports/mcs51-large/spec.mk,
1152           support/regression/ports/mcs51-xstack-auto/spec.mk,
1153           support/regression/ports/mcs51-stack-auto/spec.mk,
1154           support/regression/ports/mcs51-medium/spec.mk,
1155           support/regression/ports/mcs51-common/spec.mk,
1156           support/regression/ports/mcs51-common/*,
1157           support/regression/ports/mcs51-small/*:
1158           mcs51 renamed to mcs51-common, created mcs51-small
1159         * src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
1160         * support/regression/tests/bug-1805702.c: added regtest for bug
1161           #1805702
1162
1163 2007-10-26 Maarten Brock <sourceforge.brock AT dse.nl>
1164
1165         * src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b,
1166           added new rules 265 - 270
1167         * support/regression/tests/bug1721024.c:new, added
1168         * support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
1169           introduced new test-mcs51 to run all mcs51 tests
1170
1171 2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
1172
1173         * support/regression/tests/bug1816470.c: new, added
1174
1175 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
1176
1177         * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
1178           propagate for *,+,- with float, fixed bug 1816470
1179           (decorateType): cast to resultTypeProp instead of resultType
1180
1181 2007-10-19 Borut Razem <borut.razem AT siol.net>
1182
1183         * src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
1184           function is ineffective" for pic16 tareget
1185         * support/scripts/listerr.c: corrected include path
1186         * device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
1187           adjacent memory
1188
1189 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
1190
1191         * support/regression/tests/using.c: new, added
1192         * support/regression/tests/vaargs.c: fixed and enabled test
1193
1194 2007-10-18 Borut Razem <borut.razem AT siol.net>
1195
1196         * src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
1197           is ineffective
1198         * support/regression/tests/bug-983491.c: added regtest for bug #983491
1199
1200 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
1201
1202         * doc/sdccman.lyx: documented option --Werror
1203         * src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
1204           RegBankUsed[] earlier
1205
1206 2007-10-14 Maarten Brock <sourceforge.brock AT dse.nl>
1207
1208         * device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
1209         * src/pic/glue.c,
1210         * src/SDCCval.c,
1211         * src/SDCCast.c,
1212         * src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
1213           AST_ULONG_VALUE
1214         * src/SDCCast.c (decorateType): improved optimization of tri-op
1215         * src/SDCCerr.c (vwerror, setWError),
1216         * src/SDCCerr.h,
1217         * src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
1218           warnings as errors, thanks Stas Sergeev for PATCH 1813211
1219
1220 2007-10-13 Maarten Brock <sourceforge.brock AT dse.nl>
1221
1222         * src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
1223         * src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
1224         * support/regression/tests/bug-223113.c,
1225         * support/regression/tests/bug-426632.c,
1226         * support/regression/tests/bug-468811.c,
1227         * support/regression/tests/bug-477835.c,
1228         * support/regression/tests/bug-478094.c,
1229         * support/regression/tests/bug-499644.c,
1230         * support/regression/tests/bug-524209.c,
1231         * support/regression/tests/bug-524211.c,
1232         * support/regression/tests/packcast.c,
1233         * support/regression/tests/structidx.c: added empty tests
1234         * support/regression/tests/bug-607243.c: enabled test
1235
1236 2007-10-06 Borut Razem <borut.razem AT siol.net>
1237
1238         * .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
1239            support of universal binaries on Mac OS X
1240
1241 2007-10-02 Borut Razem <borut.razem AT siol.net>
1242
1243         * src/SDCCval.h: unified double2ul macro for all platforms
1244         * src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
1245         * support/regression/tests/bitwise.c: added regtest for bug #1777758
1246
1247 2007-09-30 Borut Razem <borut.razem AT siol.net>
1248
1249         * src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
1250           platforms
1251         * sdcc_vc_in.h: enabled warnings
1252         * src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
1253           unsigned type, result still unsigned
1254         * src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
1255
1256 2007-09-28 Raphael Neider <rneider AT web.de>
1257
1258         * src/pic/device.c (find_device): prevent buffer underflow error
1259         * src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
1260           the just destroyed list entry
1261
1262 2007-09-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1263
1264         * doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks
1265           Alexander Neundorf
1266
1267 2007-09-18 Borut Razem <borut.razem AT siol.net>
1268
1269         * src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
1270          applied to unsigned type, result still unsigned
1271
1272 2007-09-17 Borut Razem <borut.razem AT siol.net>
1273
1274         * src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c,
1275           src/SDCCicode.c, src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c,
1276           src/SDCCval.h, src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c,
1277           src/mcs51/gen.c, src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c,
1278           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/genarith.c,
1279           src/pic16/genutils.c, src/pic16/glue.c, src/pic16/main.c,
1280           src/z80/gen.c, src/z80/ralloc.c:
1281           fixed bug #1739860 - sdcc does not work correctly on some platforms
1282           (not finished)
1283           introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()
1284
1285 2007-09-17 Raphael Neider <rneider AT web.de>
1286
1287         * src/pic16/device.c: reverted to previous version
1288         * device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q
1289
1290 2007-09-16 Raphael Neider <rneider AT web.de>
1291
1292         * src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
1293           as this raises a ton of gpasm warnings, just emit a second label
1294         * src/pic16/devices.inc,
1295         * device/lib/pic16/pics.all,
1296         * device/lib/pic16/libdev/pic18f2585.c,
1297         * device/lib/pic16/libdev/pic18f2680.c,
1298         * device/lib/pic16/libdev/pic18f2682.c,
1299         * device/lib/pic16/libdev/pic18f2685.c,
1300         * device/lib/pic16/libdev/pic18f4585.c,
1301         * device/lib/pic16/libdev/pic18f4680.c,
1302         * device/lib/pic16/libdev/pic18f4682.c,
1303         * device/lib/pic16/libdev/pic18f4685.c,
1304         * device/include/pic16/pic18f2585.h,
1305         * device/include/pic16/pic18f2680.h,
1306         * device/include/pic16/pic18f2682.h,
1307         * device/include/pic16/pic18f2685.h,
1308         * device/include/pic16/pic18f4585.h,
1309         * device/include/pic16/pic18f4680.h,
1310         * device/include/pic16/pic18f4682.h,
1311         * device/include/pic16/pic18f4685.h,
1312         * device/include/pic16/pic18fregs.h: added 18f2585, 18f2680,
1313           18f2682, 18f2685, 18f4585, 18f4680, 18f4682, 18f4685,
1314           patch contributed by Anton Strobl, applied with changes
1315
1316 2007-09-16 Raphael Neider <rneider AT web.de>
1317
1318         * device/include/pic16/pic18f2431.h,
1319         * device/include/pic16/pic18f25j10.h,
1320         * device/include/pic16/pic18f4431.h,
1321         * device/include/pic16/pic18f45j10.h: adopted common include style
1322         * device/include/pic16/pic18f1320.h,
1323         * device/include/pic16/pic18f2320.h,
1324         * device/include/pic16/pic18f2525.h,
1325         * device/include/pic16/pic18f4320.h,
1326         * device/include/pic16/pic18f4525.h: NEW, just include proper .h file
1327         * device/include/pic16/pic18fregs.h: prepared for automatic include
1328           file selection by having DEVICE.h for every DEVICE
1329         * device/lib/pic16/libdev/pic18f2320.c,
1330         * device/lib/pic16/libdev/pic18f4320.c: just include proper .c file
1331
1332         * device/lib/pic16/configure.in,
1333         * device/lib/pic16/configure: use rm -rf instead of rmdir
1334         * device/lib/pic16/Makefile.in: use RMDIR to remove build directories
1335         * device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast
1336
1337 2007-09-09 Borut Razem <borut.razem AT siol.net>
1338
1339         * src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
1340           distingush between i386 and ppc Mac OS X versions
1341
1342 2007-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
1343
1344         * src/mcs51/gen.c (genReceive): fixed bug 1788177
1345         * support/regression/tests/bug1788177.c: new, added
1346
1347 2007-09-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1348
1349         * doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
1350         * device/include/mcs51/lint.h added keyword __naked
1351
1352 2007-09-04 Maarten Brock <sourceforge.brock AT dse.nl>
1353
1354         * src/pic16/glue.c,
1355         * src/pic/glue.c,
1356         * src/SDCCmem.h: removed maxRegBank
1357         * src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
1358           RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
1359         * src/SDCCsymt.c (checkFunction): set RegBankUsed[] here
1360         * src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
1361           name and behaviour to handle banked functions
1362           (scan4op): and use it to fix bug 1786213
1363
1364 2007-09-03 Raphael Neider <rneider AT web.de>
1365
1366         * device/include/pic16/pic18f248.h,
1367         * device/include/pic16/pic18f258.h,
1368         * device/include/pic16/pic18f448.h,
1369         * device/lib/pic16/libdev/pic18f248.c,
1370         * device/lib/pic16/libdev/pic18f258.c,
1371         * device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
1372           added T0CONbits, fixes #1786891
1373
1374 2007-08-29 Maarten Brock <sourceforge.brock AT dse.nl>
1375
1376         * src/ds390/gen.c (genFarPointerSet),
1377         * src/hc08/ralloc.c (packRegisters),
1378         * src/mcs51/ralloc.c (packRegisters),
1379         * src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
1380           bug 1750318
1381         * src/SDCCicode.h: POINTER_SET can be true for literals too
1382         * support/regression/tests/bug1750318.c: new, added
1383
1384 2007-08-23 Borut Razem <borut.razem AT siol.net>
1385
1386         * debugger/mcs51/sdcdb.c: fixed compilation with older readline
1387           library versions without the completition functionality
1388
1389 2007-08-22 Raphael Neider <rneider AT web.de>
1390
1391         * device/include/pic16/pic18f1220.h,
1392         * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
1393
1394 2007-08-12 Borut Razem <borut.razem AT siol.net>
1395
1396         * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
1397
1398 2007-08-11 Borut Razem <borut.razem AT siol.net>
1399
1400         * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
1401           src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
1402           support/Util/SDCCerr.[ch] moved to src
1403         * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
1404           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
1405           device/examples/ds390/tinitalk/tinitalk.dsp,
1406           device/examples/serialcomm/windows/serialcomm.dsp,
1407           support/librarian/librarian.dsp:
1408           removed linking of unused odbc32.lib and odbccp32.lib
1409         * support/scripts/winres.h:
1410           added for compilation with Visual C++ 2005 Express Edition
1411
1412 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1413
1414         * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
1415           and CKCON1.
1416
1417 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1418
1419         * sdccconf_in.h: update the endian test so that SPARC Solaris
1420           does not throw syntax errors
1421
1422 2007-08-06 Borut Razem <borut.razem AT siol.net>
1423
1424         * doc/sdccman.lyx: removed two index entries which prevented the
1425           generation of sdcc doc archive
1426
1427 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1428
1429         * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
1430           instead of lyx 1.5.0.
1431
1432 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1433
1434         * device/include/hc08/mc68hc908apxx.h: new header contributed by
1435           Lucas Loizaga, with minor modifications. Thanks!
1436
1437 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1438
1439         * doc/sdccman.lyx: Documented --acall-ajmp and described new features
1440           in sdcclib.
1441
1442 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1443
1444         * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
1445           src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
1446           with acall/ajmp.
1447
1448 2007-07-22 Borut Razem <borut.razem AT siol.net>
1449
1450         * configure.in, configure: re-introduced .version
1451         * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
1452           the version reverted to 2.7.0
1453
1454 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
1455
1456         * configure.in,
1457         * doc/sdccman.lyx: bumped version to 2.7.3
1458         * device/include/mcs51/compiler.h: fixed elif->else
1459         * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
1460         * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
1461           (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
1462            enable accuse for bit operands
1463         * src/SDCCmain.c (printVersionInfo),
1464         * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
1465           environment descriptor
1466         * src/SDCCutil.h: added getBuildEnvironment
1467         * src/SDCCglue.c (initialComments): use getBuildEnvironment
1468         * support/regression/tests/bug1464657.c: enabled test test_Peephole251
1469         * support/regression/tests/bug-408972.c: enabled test leftShiftLong
1470         * support/regression/tests/bug1348008.c,
1471         * support/regression/tests/bug1496419.c,
1472         * support/regression/tests/bug1503067.c,
1473         * support/regression/tests/preproc.c: added empty tests
1474
1475 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
1476
1477         * support/regression/tests/bug1678803.c: new, added
1478
1479 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
1480
1481         * as/link/aslink.h,
1482         * as/link/hc08/lkihx.c,
1483         * as/link/hc08/lkrloc.c,
1484         * as/link/mcs51/lkihx.c,
1485         * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
1486           ihxExtendedLinearAddress
1487         * as/link/mcs51/lkrloc.c (relr),
1488         * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
1489           acall/ajmp, see bug 830513
1490
1491 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
1492
1493         * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
1494           (cseBBlock): remember aggr2ptr has been used
1495         * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
1496           (geniCodeAssign): fixed bug 868103
1497         * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
1498           added operandSize prototype
1499         * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
1500           (genDataPointerSet): use max of size of right and result,
1501           (gencjne): added parameter useCarry for optimization,
1502           (genCmpEq): use carry if appropriate,
1503           (genXor): check if operand already in carry
1504         * support/regression/tests/bug-868103.c: enabled test
1505
1506 2007-07-12 Raphael Neider <rneider AT web.de>
1507
1508         * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
1509
1510 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
1511
1512         * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
1513           from Robert Larice, thanks
1514         * support/regression/tests/bitopcse.c,
1515         * support/regression/tests/bitvars.c,
1516         * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
1517         * support/regression/tests/bug-927659.c: enabled test for z80
1518         * support/regression/tests/bug1738367.c: added extra tests by Frieder
1519         * support/regression/tests/bug1745717.c: new, added
1520         * support/regression/tests/literalop.c,
1521         * support/regression/tests/nullstring.c: removed storage definitions that
1522           are now in testfwk.h
1523
1524 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
1525
1526         * device/include/stdbool.h: do not define __bool_true_false_are_defined
1527           and bool for targets that do not fully support it.
1528         * support/regression/tests/bug1546986.c,
1529         * support/regression/tests/bug1723128.c,
1530         * support/regression/tests/bug1734654.c,
1531         * support/regression/tests/bug1738367.c,
1532         * support/regression/tests/constantRange.c: only use bool if allowed
1533
1534 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
1535
1536         * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
1537           Larice, also handle function pointers
1538         * support/regression/tests/bug1749275.c: new, added
1539
1540 2007-07-03 Borut Razem <borut.razem AT siol.net>
1541
1542         * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
1543           src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
1544           #1746528: SDCC should ignore ':' in inline assembler comments
1545         * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
1546
1547 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
1548
1549         * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
1550         * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
1551
1552 2007-06-29 Borut Razem <borut.razem AT siol.net>
1553
1554         * src/SDCCmain.c: fixed bug
1555           #1744746: SDCC #4867: broken option --xram-size
1556
1557 2007-06-28 Borut Razem <borut.razem AT siol.net>
1558
1559         * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
1560           find out the endianess of host machine for ucsim
1561
1562 2007-06-27 Borut Razem <borut.razem AT siol.net>
1563
1564         * support/regression/generate-cases.py: corrected the file name
1565           in warning
1566         * configure.in, configure, sdccconf_in.h: find out the endianess of
1567           host machine
1568         * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
1569           negative size
1570
1571 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
1572
1573         * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
1574
1575 2007-06-26 Borut Razem <borut.razem AT siol.net>
1576
1577         * support/regression/generate-cases.py: display warning if function
1578           list is empty; implemented more flexible rule for detection of
1579           testing functions, allowing return type 'void' in the same line as
1580           the function name in the function definition
1581         * support/regression/tests/bug-1654060.c: corrected test
1582         * support/librarian/sdcclib.c: fixed warning:
1583           format '%s' expects type 'char *', but argument 2 has type 'int'
1584
1585 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1586
1587         * support/librarian/sdcclib.c: Added feature Requests [1510635]
1588           Multiple infiles for sdcclib.
1589
1590 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1591
1592         * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
1593           bug 1731741
1594
1595 2007-06-18 Borut Razem <borut.razem AT siol.net>
1596
1597         * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
1598           how to handle comments, so they have to be removed by the
1599           preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
1600         * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
1601           src/pic16/main.c, src/pic/main.c, src/z80/main.c,
1602           support/Util/SDCCerr.c, support/Util/SDCCerr.h:
1603           table driven option hadling
1604
1605 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
1606
1607         * src/SDCCast.c (decorateType),
1608         * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
1609           iCode to ast level to fix bug 1738367
1610         * support/regression/tests/bug1738367.c: new, added
1611
1612 2007-06-15 Raphael Neider <rneider AT web.de>
1613
1614         * src/pic16/devices.inc,
1615         * device/lib/pic16/pics.all,
1616         * device/include/pic16/pic18fregs.h,
1617         * device/include/pic16/pic18f[24][45]20.h,
1618         * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
1619           18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
1620         * device/lib/pic16/Makefile.in: faster cleanup
1621
1622 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1623
1624         * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
1625
1626 2007-06-13 Raphael Neider <rneider AT web.de>
1627
1628         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
1629
1630 2007-06-12 Raphael Neider <rneider AT web.de>
1631
1632         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
1633           suppress bit defines if NO_BIT_DEFINES is #define'd
1634         * device/include/pic/pic*.h: recreated all headers to include
1635           conditional bit defines
1636         * device/include/pic/pic16f886.h,
1637         * device/include/pic/pic16f887.h: fixed based on newer .inc file
1638         * device/include/pic/recreate.sh: script to recreate the complete
1639           device library files based on the currently supported devices
1640
1641 2007-06-12 Borut Razem <borut.razem AT siol.net>
1642
1643         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
1644           support/regression/Makefile.in, support/scripts/build.mak,
1645           support/scripts/Makefile.snapshot:
1646           use new svn URL scheme
1647         * doc/sdccman.lyx: SDCC Wiki moved to
1648           http://sdcc.wiki.sourceforge.net/
1649
1650 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1651
1652         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
1653         * support/regression/tests/bug1734654.c: added
1654
1655 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
1656
1657         * src/SDCCast.c (decorateType): optimized '?' for equal operands
1658         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
1659           with literal operands
1660
1661 2007-06-10 Borut Razem <borut.razem AT siol.net>
1662
1663         * as/link/z80/lklibr.c: fixed mingw build warning
1664           lklibr.c:575: warning: implicit declaration of function 'tolower'
1665         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
1666           src/z80/main.c: move target specific options from src/SDCCmain.c
1667           to src/<target>/main.c
1668
1669 2007-06-09 Borut Razem <borut.razem AT siol.net>
1670
1671         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
1672           removed unused swap_sense; removed outBitCLong, replaced with outBitC
1673         * support/regression/tests/bug-1294691.c: added
1674
1675 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
1676
1677         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
1678           can also be static, fixes bug 1733438
1679         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
1680           have absolute address too
1681           (computeType): added optimization for 'cond ? true : false'
1682         * support/regression/tests/absolute.c: added test for static absolute var
1683
1684 2007-06-08 Raphael Neider <rneider AT web.de>
1685
1686         * src/regression/Makefile: suppress parallel builds, allow easy
1687           switching between pic14/pic16 ports
1688         * src/regression/picregs.h: added pic14/16 header file switch
1689         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
1690           inline.c,nestfor.c,string1.c}: include "picregs.h"
1691
1692 2007-06-07 Borut Razem <borut.razem AT siol.net>
1693
1694         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
1695           permanent solution to suppress GCC 4.2.0 c++ warning:
1696           deprecated conversion from string constant to `char *'
1697           use 'const char *' where ever required
1698         * support/regression/generate-cases.py: implemented more flexible rule
1699           for detection of testing functions, allowing white-spaces surrounding
1700           the function name and the 'void' parameter.
1701         * support/regression/tests/constantRange.c,
1702           support/regression/tests/scott-compare3.c: fixed failing regression
1703           tests, uncovered by implementation of more flexible rule for detection
1704           of testing functions
1705
1706 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
1707
1708         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
1709
1710 2007-06-04 Borut Razem <borut.razem AT siol.net>
1711
1712         * configure.in, configure, config_vc.awk: sdcc version number is now
1713           stored in configure.in; removed .version
1714         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
1715           doc/INSTALL.txt: version bumped to 2.7.2
1716         * sim/ucsim/configure.in, sim/ucsim/configure:
1717           use "read" to read from .version
1718
1719 2007-06-03 Borut Razem <borut.razem AT siol.net>
1720
1721         * */Makefile.in: removed annoying warning:
1722           Makefile:xx: Makefile.dep: No such file or directory
1723
1724 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
1725
1726         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
1727           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
1728         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
1729         * src/SDCCast.c (resultTypePropagate): propagate for '!',
1730           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
1731           bugfix: only use newBoolLink for bit result type
1732         * src/SDCCicode.c (geniCodeLogic): added param tree,
1733           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
1734           (geniCodeLogicAndOr): use IS_BIT,
1735           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
1736           (ast2iCode): added tree param to geniCodeLogic for comparisons
1737         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
1738         * support/regression/tests/bug1723128.c: added test NotZero
1739
1740 2007-06-01 Borut Razem <borut.razem AT siol.net>
1741
1742         * SDCPP synchronized with GCC CPP release version 4.2.0,
1743           currently the latest release:
1744         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1745           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
1746           support/cpp2/cppdefault.h, support/cpp2/except.h,
1747           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
1748           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
1749           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
1750           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
1751           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
1752           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
1753           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
1754           support/cpp2/opts.h, support/cpp2/output.h,
1755           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
1756           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
1757           support/cpp2/system.h, support/cpp2/version.c,
1758           support/cpp2/Makefile.in: modified
1759         * support/cpp2/opts-common.c: added
1760         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
1761         * device/lib/pic16/libdev/pic18f[24]5j10.c:
1762           search for included source file in local directory
1763         * sim/ucsim/configure, sim/ucsim/configure.in:
1764           temporary solution to suppress GCC 4.2.0 c++ warning:
1765           deprecated conversion from string constant to `char *'
1766
1767 2007-06-01 Raphael Neider <rneider AT web.de>
1768
1769         * device/lib/pic/libdev/pic12f683.c,
1770         * device/include/pic/pic12f683.h: added GPIO bits
1771
1772 2007-06-01 Raphael Neider <rneider AT web.de>
1773
1774         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
1775           quotation marks, clarified role of PIC14 vs. PIC16 ports
1776         * src/pic16/devices.inc,
1777         * device/include/pic16/pic18fregs.h,
1778         * device/include/pic16/pic18f[24][45]j10.h,
1779         * device/lib/pic16/pics.all,
1780         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
1781           18f24j10, 18f25j10, 18f44j10, and 18f45j10
1782         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
1783           for new devices as they are not yet supported by gputils
1784
1785 2007-05-31 Borut Razem <borut.razem AT siol.net>
1786
1787         * Small Device C Compiler 2.7.0 released
1788         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
1789           changed sdcc version to 2.7.1
1790         * support/scripts/sdcc.nsi: added How to create WIN32 release
1791           setup.exe package
1792
1793 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1794
1795         * doc/sdccman.lyx: documented initialization and allocation of absolute
1796           variables, bit parameter passing, the need for function pointers to be
1797           reentrant and alpha quality support of inline and retrict
1798
1799 2007-05-26 Borut Razem <borut.razem AT siol.net>
1800
1801         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
1802           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
1803         * docs/knownbugs.html: updated
1804
1805 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
1806
1807         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
1808           thanks Jan Waclawek
1809         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
1810           AOP_CRY and ruonly
1811           (gencjneshort): optimized when left is AOP_DIR
1812         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
1813           initializing unions in a struct/array
1814         * support/regression/fwk/include/testfwk.h: added defines for data, near
1815           and far for host and z80
1816         * support/regression/tests/bug1723128.c: new, added
1817
1818 2007-05-22 Borut Razem <borut.razem AT siol.net>
1819
1820         * doc/knownbugs.html: updated
1821
1822 2007-05-21 Raphael Neider <rneider AT web.de>
1823
1824         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
1825           error message instead
1826         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
1827
1828 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
1829
1830         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
1831
1832 2007-05-21 Raphael Neider <rneider AT web.de>
1833
1834         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
1835           closes #1722392
1836         * src/regression/gpsim_assert.h,
1837         * src/regression/Makefile,
1838         * src/regression/pcodeopt.c: regression test for the above fix
1839
1840 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
1841
1842         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
1843           jumps to self, fixed bug 1717281
1844
1845 2007-05-10 Borut Razem <borut.razem AT siol.net>
1846
1847         * support/scripts/gen_known_bugs.pl: cosmetic fix
1848         * doc/knownbugs.html: generated by gen_known_bugs.pl
1849
1850 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1851
1852         * src/SDCCast.c (createFunction): also generate non-inlined version of
1853           function for functions declared as "static inline"
1854         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
1855           function can be inlined after non-inlined version generated.
1856
1857 2007-05-10 Borut Razem <borut.razem AT siol.net>
1858
1859         * support/scripts/gen_known_bugs.pl: added script
1860           which generates knownbugs.html
1861
1862 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
1863
1864         * doc/knownbugs.html: updated for release 2.7.0
1865
1866 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1867
1868         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
1869
1870 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
1871
1872         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
1873           (throughout): updated generating comments
1874         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
1875           (throughout): updated generating comments
1876         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
1877           rule instead of at the second, or it might skip lines when removing the
1878           complete match
1879         * support/regression/tests/bug1714204.c: changed test to foo
1880
1881 2007-05-08 Borut Razem <borut.razem AT siol.net>
1882
1883         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
1884           thanks to SDCC Distributed Compile Farm members,
1885           added Z80 and GBZ80 command line options
1886         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
1887
1888 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
1889
1890         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
1891         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
1892         * support/regression/tests/longlit.c: modified to be tested at all and
1893           to pass the actual test
1894
1895 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1896
1897         * device/include/mcs51/uPSD33xx.h: Added.
1898
1899 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
1900
1901         * device/lib/_gptrput.c,
1902         * device/lib/_gptrget.c: removed old code,
1903          (_gptrgetWord),
1904         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
1905         * support/regression/tests/bug1714204.c: new, added
1906
1907 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1908
1909         * support/regression/tests/regtrack.c: test was never executed
1910           because of the regression test being picky about white spaces.
1911         * device/lib/mcs51/crtclear.asm: added comment
1912
1913 2007-05-06 Raphael Neider <rneider AT web.de>
1914
1915         * device/lib/pic/Makefile.rules,
1916         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
1917           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
1918
1919 2007-05-06 Raphael Neider <rneider AT web.de>
1920
1921         * src/pic16/device.h,
1922         * src/pic16/main.h,
1923         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
1924           _pic16_setDefaultOptions): removed/reordered command-line args
1925         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
1926           devices, regrouped command line args, environment variables),
1927           clarified sone points, added sections on how to add devices to the
1928           PIC14/PIC16 ports
1929
1930 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
1931
1932         * src/z80/peeph.def: fixed bug in rule 2
1933
1934 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
1935
1936         * src/port.h: added TARGET_MCS51_LIKE
1937         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
1938           take advantage of it too
1939         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
1940           (shiftR2Left2Result): Optimized: don't check shifting by 0
1941         * src/z80/peeph-z80.def,
1942         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
1943           modifications, see patch 1700823
1944         * src/mcs51/peep.c (): fixed bug 1712928
1945         * support/regression/tests/bug1712928.c: new, added
1946
1947 2007-05-05 Borut Razem <borut.razem AT siol.net>
1948
1949         * device/lib/pic16/Makefile.common.in,
1950           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
1951           removed bash dependencies
1952
1953 2007-05-01 Borut Razem <borut.razem AT siol.net>
1954
1955         * src/SDCCicode.c:
1956           fixed bug #1710507: --i-code-in-asm makes compile fail
1957           all iCode comments are now one liners
1958         * src/mcs51/gen.c: fixed memory leak
1959
1960 2007-05-01 Raphael Neider <rneider AT web.de>
1961
1962         * device/lib/pic/libdev/*.c
1963         * device/include/pic/*.h: regenerated all device libs from updated
1964           .inc files
1965         * support/scripts/inc2h.pl: documented usage, now uses strict to
1966           catch more bugs
1967
1968 2007-04-30 Borut Razem <borut.razem AT siol.net>
1969
1970         * doc/sdccman.lyx:
1971           fixed bug #1669175: Problem with space in output paths
1972           documented how to use paths with spaces for Windows users
1973
1974 2007-04-29 Borut Razem <borut.razem AT siol.net>
1975
1976         * Fixed svn:eol-style and svn:keywords properties
1977         * src/SDCCval.c: fixed bug
1978           #1592871: Segfault with "large" const arrays of characters
1979           replaced recursion with iteration
1980         * Removed svn:executable property from non-executable files
1981
1982 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
1983
1984         * src/mcs51/gen.c (genRet): fixed bug 1707003
1985
1986 2007-04-27 Raphael Neider <rneider AT web.de>
1987
1988         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
1989           createReachingDefinitions,assignValnums,pic16_destructDF,
1990           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
1991           prevent NULL pointer dereferences
1992         * device/lib/pic/libdev/pic16f886.c,
1993         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
1994           prevent building them, gputils do not really support them yet
1995
1996 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1997
1998         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
1999           helps printf_small. 32 bytes more __idata mem.
2000
2001 2007-04-27 Raphael Neider <rneider AT web.de>
2002
2003         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
2004           return early when pb or pb->pcHead is NULL (patch #1708427)
2005         * src/regression/empty.c,
2006         * src/regression/Makefile: added test with empty functions
2007         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
2008
2009 2007-04-27 Borut Razem <borut.razem AT siol.net>
2010
2011         * src/SDCCast.c: fixed feature request
2012           #1547512: Redundant strings linked when using sizeof("abc")
2013
2014 2007-04-23 Borut Razem <borut.razem AT siol.net>
2015
2016         * doc/sdccman.lyx, src/SDCCmain.c:
2017           peep-hole comments are generated only if --fverbose-asm option is
2018           specified and --no-peep-comments is not, as proposed by Frieder.
2019         * support/regression/Makefile.in: compile regression tests with
2020           --fverbose-asm option so one can "grep" whether a new (or an old)
2021           peephole is (still) applied; requested by Frieder.
2022
2023 2007-04-23 Kevin Buettner <kevin AT buettner.to>
2024
2025         * device/include/pic/pic16f886.h,
2026         * device/include/pic/pic16f887.h,
2027         * device/lib/pic/libdev/pic16f886.c,
2028         * device/lib/pic/libdev/pic16f887.c,
2029         * device/include/pic/pic14devices.txt,
2030         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
2031
2032 2007-04-23 Kevin Buettner <kevin AT buettner.to>
2033
2034         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
2035           fixes #1704666
2036
2037 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2038
2039         * device/lib/_memset.c: assembler version for mcs51
2040
2041 2007-04-22 Borut Razem <borut.razem AT siol.net>
2042
2043         * support/scripts/listerr.c: program to create the list of errors and
2044           warnings list from - added
2045         * doc/sdccman.lyx: removed the note
2046           "For list of warnings and corresponding codes, see err_warn.txt"
2047         * src/SDCCsymt.c: fixed bug #1699804:
2048           Bug with some uses of sizeof(static local array) (MCS51)
2049         * support/regression/tests/bug-1699804.c: added
2050
2051 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
2052
2053         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
2054           (main): added option -i,
2055           (asmbl, case S_INCL): use search_path_fopen,
2056           mostly from patch 1579668 by Peter Miller, thanks
2057         * src/z80/main.c: fixed typo --callee-saves-bc
2058         * device/include/mcs51/compiler.h: added sfrword for Tasking
2059
2060 2007-04-20 Borut Razem <borut.razem AT siol.net>
2061
2062         * src/z80/main.c: replaced reserved keyword asm with asmblr
2063
2064 2007-04-19 Borut Razem <borut.razem AT siol.net>
2065
2066         * src/port.h: use const pointers to strings
2067         * src/SDCCargs.h: declared getStringArg() and getIntArg()
2068         * src/pic16/main.c: include SDCCargs.h
2069         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
2070           const char, since the strings are dynamically allocated
2071         * src/SDCCmain.c: options.code_seg and options.const_seg are
2072           dynamically allocated; check port specific command line options
2073           before the general ones
2074         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
2075
2076 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
2077
2078         * device/include/ds400rom.h,
2079         * device/lib/ds390/lcd390.c,
2080         * device/lib/ds390/memcpyx.c,
2081         * device/lib/ds390/rtc390.c,
2082         * device/lib/ds400/ds400rom.c,
2083         * device/lib/ds400/memcpyx.c,
2084         * device/lib/hc08/_ret.c: more replacements of keywords with their
2085           double underscore equivalents
2086         * device/lib/ds390/Makefile.in,
2087         * device/lib/ds400/Makefile.in,
2088         * device/lib/gbz80/Makefile.in,
2089         * device/lib/hc08/Makefile.in,
2090         * device/lib/mcs51/Makefile.in,
2091         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
2092
2093 2007-04-17 Borut Razem <borut.razem AT siol.net>
2094
2095         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
2096           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
2097           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
2098           to --fverbose-asm, to be gcc'ish
2099
2100 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
2101
2102         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
2103
2104 2007-04-17 Borut Razem <borut.razem AT siol.net>
2105
2106         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
2107         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
2108           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
2109           with their double underscore equivalent
2110
2111 2007-04-14 Borut Razem <borut.razem AT siol.net>
2112
2113         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
2114           source"
2115
2116 2007-04-13 Borut Razem <borut.razem AT siol.net>
2117
2118         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
2119           C99 standard
2120         * device/examples/serialcomm/windows/serial.[ch],
2121           device/examples/serialcomm/windows/test_serialcomm.cpp:
2122           updated by Bela Torok
2123         * device/examples/serialcomm/windows/serialcomm.dsw,
2124           device/examples/serialcomm/windows/serialcomm.dsp: added
2125
2126 2007-04-13 Jan Waclawek <wek AT efton.sk>
2127
2128         * doc/sdccman.lyx: additions and changes at various places
2129           (submitted as #1697136).
2130           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
2131
2132 2007-04-10 Borut Razem <borut.razem AT siol.net>
2133
2134         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
2135           LyX file format changed to 245
2136         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
2137           "FreeWare" replaced with "free open source"
2138
2139 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
2140
2141         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
2142
2143 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
2144
2145         * device/include/pic16/pic18fregs.h,
2146         * device/lib/_bp.c,
2147         * device/lib/_decdptr.c,
2148         * device/lib/_divsint.c,
2149         * device/lib/_divslong.c,
2150         * device/lib/_divuint.c,
2151         * device/lib/_divulong.c,
2152         * device/lib/_fs2schar.c,
2153         * device/lib/_fs2sint.c,
2154         * device/lib/_fs2slong.c,
2155         * device/lib/_fs2uchar.c,
2156         * device/lib/_fs2uint.c,
2157         * device/lib/_fs2ulong.c,
2158         * device/lib/_fsadd.c,
2159         * device/lib/_fscmp.c,
2160         * device/lib/_fsdiv.c,
2161         * device/lib/_fseq.c,
2162         * device/lib/_fsget1arg.c,
2163         * device/lib/_fsget2args.c,
2164         * device/lib/_fsgt.c,
2165         * device/lib/_fslt.c,
2166         * device/lib/_fsmul.c,
2167         * device/lib/_fsneq.c,
2168         * device/lib/_fsnormalize.c,
2169         * device/lib/_fsreturnval.c,
2170         * device/lib/_fsrshift.c,
2171         * device/lib/_fssub.c,
2172         * device/lib/_fsswapargs.c,
2173         * device/lib/_gptrget.c,
2174         * device/lib/_gptrgetc.c,
2175         * device/lib/_gptrput.c,
2176         * device/lib/_logexpf.c,
2177         * device/lib/_modsint.c,
2178         * device/lib/_modslong.c,
2179         * device/lib/_moduint.c,
2180         * device/lib/_modulong.c,
2181         * device/lib/_mulint.c,
2182         * device/lib/_mullong.c,
2183         * device/lib/_schar2fs.c,
2184         * device/lib/_ser.c,
2185         * device/lib/_setjmp.c,
2186         * device/lib/_sint2fs.c,
2187         * device/lib/_slong2fs.c,
2188         * device/lib/_spx.c,
2189         * device/lib/_uchar2fs.c,
2190         * device/lib/_uint2fs.c,
2191         * device/lib/_ulong2fs.c,
2192         * device/lib/asincosf.c,
2193         * device/lib/atanf.c,
2194         * device/lib/calloc.c,
2195         * device/lib/ds390/tinibios.c,
2196         * device/lib/ds400/tinibios.c,
2197         * device/lib/expf.c,
2198         * device/lib/free.c,
2199         * device/lib/hc08/_mulint.c,
2200         * device/lib/logf.c,
2201         * device/lib/malloc.c,
2202         * device/lib/printf_fast.c,
2203         * device/lib/printf_tiny.c,
2204         * device/lib/printfl.c,
2205         * device/lib/realloc.c,
2206         * device/lib/ser_ir.c,
2207         * device/lib/serial.c,
2208         * support/regression/tests/libmullong.c: replaced all special keywords
2209           with their double underscore equivalent
2210         * support/regression/ports/mcs51-xstack-auto/spec.mk,
2211         * device/lib/Makefile.in: compile libs with --std-c99 instead of
2212           --std-sdcc99
2213         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
2214           (genRet): if the bit-symbol is ruonly it already is in the carry
2215         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
2216         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
2217         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
2218           type UCHAR if dest is not bit
2219
2220 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
2221
2222         * device/include/math.h,
2223         * device/lib/cotf.c,
2224         * device/lib/expf.c,
2225         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
2226
2227 2007-04-01 Borut Razem <borut.razem AT siol.net>
2228
2229         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
2230           fixed bug #1692042: input buffer overflow...scanner uses REJECT
2231         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
2232           gcc_unreachable() called internal_error()...
2233
2234 2007-03-30 Raphael Neider <rneider AT web.de>
2235
2236         * src/pic/ralloc.c (isData): suppress garbage debug output
2237
2238 2007-03-28 Borut Razem <borut.razem AT siol.net>
2239
2240         * doc/sdccman.lyx:
2241           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
2242           is developed, built and used worldwide, and the word "night" doesn't
2243           make any sense.
2244
2245 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
2246
2247         * device/include/mcs51/C8051F360.h: new, added
2248         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
2249
2250 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2251
2252         * src/SDCC.y (declaration_specifiers, function_specifier),
2253         * support/Util/SDCCerr.c,
2254         * support/Util/SDCCerr.h,
2255         * src/SDCCsymt.h,
2256         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
2257           inline keyword
2258         * src/SDCCmem.c (deallocParms),
2259         * src/SDCCast.c: support for function inlining, not quite complete
2260         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
2261           'restrict' qualifier
2262
2263 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
2264
2265         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
2266           (saveRBank, unsaveRBank): don't save bits,
2267           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
2268         * support/regression/tests/bug1535242.c: new, added
2269         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
2270           thanks Alexey Shamrin <shamrin AT gmail.com>,
2271           made assert.h header ANSI compliant (added a check for NDEBUG macro,
2272           removed header guard)
2273         * .version,
2274         * sdcc.spec: bumped version to 2.6.5
2275         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
2276
2277 2007-03-22 Borut Razem <borut.razem AT siol.net>
2278
2279         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
2280           fixed bug #1653671: sdcdb integration into ddd is broken
2281
2282 2007-03-22 Raphael Neider <rneider AT web.de>
2283
2284         * src/pic/gen.c (popGetExternal): augmented to also create references
2285           to external variables (not only labels),
2286           (genCall): comment on plan to reduce PAGESEL overhead,
2287           (genFunction, genEndFunction): also save/restore FSR around interrupt
2288           handling code, removed lots of unused code
2289           (genDivOneByte): release acquired temp register
2290         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
2291           of popGetExternal
2292         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
2293           for registers that need to be saved during interrupts (FSR, STATUS,
2294           PCLATH; W needs special handling), currently only FSR is used
2295
2296 2007-03-22 Raphael Neider <rneider AT web.de>
2297
2298         * device/include/pic/pic14devices.txt: 16f688 has only one config word
2299
2300 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2301
2302         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
2303
2304 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
2305
2306         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
2307
2308 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
2309
2310         * as/link/aslink.h: added LKOBJEXT
2311         * as/link/hc08/link_hc08.dsp,
2312         * as/link/hc08/Makefile.bcc,
2313         * as/link/hc08/Makefile.in,
2314         * as/link/mcs51/aslink.dsp,
2315         * as/link/mcs51/Makefile.bcc,
2316         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
2317         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
2318         * as/link/lkaomf51.c: merged and moved
2319         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
2320         * as/link/z80/lkdata.c,
2321         * as/link/lkdata.c: merged and moved
2322         * as/link/hc08/lkmain.c,
2323         * as/link/mcs51/lkmain.c: cosmetic changes
2324         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
2325         * as/link/lklex.c: use LKOBJEXT
2326         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
2327           ANSI-fied functions, removed bubble-sorts
2328         * as/link/z80/lksym.c           as/link/lksym.c: merged,
2329           ANSI-fied functions
2330         * as/link/z80/linkgbz80.dsp,
2331         * as/link/z80/linkz80.dsp,
2332         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
2333           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
2334         * as/link/z80/lkhead.c,
2335         * as/link/z80/lklex.c: deleted
2336         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
2337         * as/link/z80/lkmain.c: added copyfile()
2338
2339 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2340
2341         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
2342
2343 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2344
2345         * device/lib/_strlen.c: assembler version for mcs51
2346
2347 2007-03-13 Raphael Neider <rneider AT web.de>
2348
2349         * device/include/pic16/pic18f2221.h,
2350         * device/include/pic16/pic18f2321.h,
2351         * device/include/pic16/pic18f2331.h,
2352         * device/include/pic16/pic18f4221.h,
2353         * device/include/pic16/pic18f4321.h,
2354         * device/include/pic16/pic18f4331.h: fixed config byte location names
2355         * support/scripts/inc2h-pic16.pl: removed debug output, emit
2356           consistently named config byte locations
2357
2358 2007-03-13 Borut Razem <borut.razem AT siol.net>
2359
2360         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
2361           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
2362           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
2363           as/link/z80/Makefile.in, as/z80/Makefile.in:
2364           introduced LDFLAGS
2365
2366 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2367
2368         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
2369         * device/lib/printf_large.c: pointer was converted to generic
2370         pointer for mcs51 models other than model-small (Maarten noticed)
2371
2372 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2373
2374         * device/include/mcs51/ADuC84x.h: Added.
2375
2376 2007-03-10 Borut Razem <borut.razem AT siol.net>
2377
2378         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
2379           fixed RFE #1624219: double backslashes in filenames;
2380           functions hexEscape(), octalEscape() and copyStr() moved from
2381           SDCCval.c to SDCCutil.c and made them glovbally available
2382
2383 2007-03-09 Borut Razem <borut.razem AT siol.net>
2384
2385         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
2386           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
2387           1673361: Missaligned comments in output files
2388
2389 2007-03-09 Raphael Neider <rneider AT web.de>
2390
2391         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
2392
2393 2007-03-09 Raphael Neider <rneider AT web.de>
2394
2395         * src/pic/gen.c,
2396         * src/pic/glue.c,
2397         * src/pic/ralloc.c: suppress undesired debug output
2398         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
2399
2400 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2401
2402         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
2403
2404 2007-03-07 Borut Razem <borut.razem AT siol.net>
2405
2406         * device/lib/pic16/libdev/pic18f[24][34]31.c:
2407           search include files in the current directory
2408
2409 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
2410
2411         * src/SDCCglue.c (emitMaps, glue),
2412         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
2413           absolute xdata
2414         * support/regression/tests/absolute.c: added xdata test
2415
2416 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
2417
2418         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
2419           added condition to macro, fixes bug 1666080
2420
2421 2007-03-02 Raphael Neider <rneider AT web.de>
2422
2423         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
2424
2425 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2426
2427         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
2428         be cleared. Unconditionally set __XPAGE
2429         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
2430
2431 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2432
2433         * src/SDCCglobl.h,
2434         * src/SDCCmain.c,
2435         * src/mcs51/gen.c,
2436         * src/mcs51/rtrack.c,
2437         * src/ds390/gen.c,
2438         * doc/sdccman.lyx: added --no-gen-comments
2439         * src/mcs51/peeph.def: added 192.b, disabled 185
2440
2441 2007-02-25 Raphael Neider <rneider AT web.de>
2442
2443         * src/pic16/gen.c (genCast): fixed typo
2444         * device/lib/pic16/Makefile.subdir: only install existing files
2445         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
2446
2447 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
2448
2449         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
2450         * device/lib/mcs51/crtclear.asm,
2451         * device/lib/mcs51/crtxclear.asm: renumbered labels
2452         * device/lib/mcs51/Makefile.in: added crtcall.asm
2453         * doc/sdccman.lyx: documented mcs51 crt* library startup code
2454         * src/mcs51/gen.c (movc): removed,
2455           (aopGet, genPlusBits): clear a after loading the carry (possibly from
2456             acc.x or psw.x),
2457           (toCarry, genSend, genRet): added function toCarry,
2458           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
2459           (assignBit, genAssign, genCast): added function assignBit
2460         * src/mcs51/Makefile.bcc: added rtrack.c
2461         * src/mcs51/ralloc.h: made valueKnown a bitfield
2462         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
2463           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
2464           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
2465         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
2466         * src/z80/gen.c: added AOP_IS_PAIRPTR,
2467           (_pop): only pop valid pairs, see gencjneshort,
2468           (gencjneshort): return pair that still needs to be popped, restructured,
2469           (gencjne, genCmpEq): call _pop
2470
2471 2007-02-23 Raphael Neider <rneider AT web.de>
2472
2473         * device/include/pic/pic14devices.txt: 16f684 has only one config word
2474
2475 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2476
2477         * device/include/mcs51/P89LPC925.h: Added.
2478
2479 2007-02-18 Raphael Neider <rneider AT web.de>
2480
2481         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
2482
2483 2007-02-17 Borut Razem <borut.razem AT siol.net>
2484
2485         * support/cpp2/directives.c, support/cpp2/version.c:
2486           synchronized with GCC CPP 4.1.2
2487
2488 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2489
2490         * src/mcs51/rtrack.h,
2491         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
2492           by checking the strings passed by emitcode() to the assembler.
2493           Feel free to change. This in part addresses RFE #482179.
2494           Set environment variable SDCC_RTRACK to enable.
2495         * src/mcs51/gen.c: inserted hooks
2496         * src/mcs51/ralloc.h: added two members to struct regs
2497         * support/regression/tests/regtrack.c: added
2498
2499 2007-02-14 Borut Razem <borut.razem AT siol.net>
2500
2501         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
2502         * Makefile.in: applied patch from Makefile related part of
2503           #1469393: Compiler does not initialize static data
2504
2505 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
2506
2507         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
2508           for better fix of bug 1273984, compiles pic16 rand.c
2509
2510 2007-02-12 Borut Razem <borut.razem AT siol.net>
2511
2512         * src/pic16/main.c: fixed pic16 standard library directory bug
2513
2514 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
2515
2516         * src/hc08/gen.c (genSwap): fix swap regression test
2517
2518 2007-02-10 Borut Razem <borut.razem AT siol.net>
2519
2520         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
2521           with same scope
2522         * support/regression/tests/bug-1654060.c: added regression test for
2523           #1654060
2524
2525 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
2526
2527         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
2528         bit moves in return statement
2529
2530 2007-02-09 Borut Razem <borut.razem AT siol.net>
2531
2532         * src/SDCC.y: fixed bug #1654060 typedef within function causes
2533           syntax error
2534
2535 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
2536
2537         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
2538         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
2539
2540 2007-02-07 Raphael Neider <rneider AT web.de>
2541
2542         * src/pic16/devices.inc,
2543         * device/include/pic16/pic18fregs.h,
2544         * device/include/pic16/pic18f[24][34]31.h,
2545         * device/lib/pic16/libdev/pic18f[24][34]31.c,
2546         * device/lib/pic16/pics.all: added 18f[24][34]31 family
2547         * device/lib/pic16/libio/i2c.ignore: do not build i2c
2548
2549 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
2550
2551         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
2552           can this have lived here for so many years?
2553         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
2554           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
2555         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
2556
2557 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
2558
2559         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
2560         appended by loop induction must be at the very end of the eBBlock
2561
2562 2007-02-05 Kevin Vigor
2563
2564         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
2565
2566 2007-02-05 Borut Razem <borut.razem AT siol.net>
2567
2568         * support/regression/fwk/lib/timeout.c: native WIN32 port,
2569           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
2570
2571 2007-02-03 Borut Razem <borut.razem AT siol.net>
2572
2573         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
2574           applied patch #1646602 option to set default signedness of char to
2575           unsigned, added -funsigned-char command line option,
2576           thanks to Gunther Jehle
2577         * device/lib/Makefile.in: added the -f option to rm so it doesn't
2578           prompt for file deletion a few hundred times (especially the
2579           subversion files, which have ro permissions so it asks for
2580           confirmation), thanks to Simon McAuliffe;
2581           added {} + option to find in order to remove multiple files from a
2582           single rm commad
2583
2584 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2585
2586         * device/include/mcs51/SST89x5xRDx.h: Added.
2587
2588 2007-02-02 Raphael Neider <rneider AT web.de>
2589
2590         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
2591         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
2592
2593 2007-02-01 Raphael Neider <rneider AT web.de>
2594
2595         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
2596           config words again
2597
2598 2007-01-31 Borut Razem <borut.razem AT siol.net>
2599
2600         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
2601           if compiled with GCC. Thanks to Raphael Neider
2602
2603 2007-01-31 Raphael Neider <rneider AT web.de>
2604
2605         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
2606             operand names, handles name and (name + n) for all n,
2607           (sameBank): restructured, also check bank allocation policy,
2608         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
2609           (pic14_operandsAllocatedInSameBank): check whether to operands
2610             will be allocated into the same bank (i.e., section) to reduce
2611             BANKSEL overhead, queried from pcode.c:sameBank,
2612           (pic14printLocals): reintroduced clustering registers into a single
2613             section: all compiler generated symbols will now reside in one
2614             bank (per file), reducing BANKSEL overhead and code size,
2615           (showAllMemmaps): use local dbuf where possible
2616
2617 2007-01-29 Raphael Neider <rneider AT web.de>
2618
2619         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
2620           (call_libraryfunc): retrieve/create symbol and mark as used,
2621           (genFunction): mark defined functions as non-extern and add again
2622            to code memmap for later output
2623         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
2624           (pic14printLocals): reworked for new symbol emission,
2625           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
2626           showAllMemmaps): reworked symbol output using dbufs, added handling
2627             of string literals (still incomplete),
2628           (picglue): removed symbol emission, moved into showAllMemmaps,
2629           (emitSymbolSet): new workhorse for symbol output,
2630           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
2631
2632 2007-01-29 Borut Razem <borut.razem AT siol.net>
2633
2634         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
2635           component contains the extension separator.
2636
2637 2007-01-28 Borut Razem <borut.razem AT siol.net>
2638
2639         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
2640           on WIN32
2641         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
2642           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
2643           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
2644           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
2645           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
2646           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
2647           src/z80/gen.c, support/Util/MySystem.c:
2648           accept slash and backslash as directory separator on WIN32 and
2649           Cygwin ports
2650
2651 2007-01-28 Raphael Neider <rneider AT web.de>
2652
2653         * src/pic16/devices.inc,
2654         * device/include/pic16/pic18f[24][23]21.h,
2655         * device/include/pic16/pic18fregs.h,
2656         * device/lib/pic16/libdev/pic18f[24][23]21.c,
2657         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
2658         * device/lib/pic16/libio/adc.ignore,
2659         * device/lib/pic16/libio/i2c.ignore,
2660         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
2661           family, as gputils do not yet support the devices
2662         * device/lib/pic16/Makefile.subdir: ignore errors on install
2663         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
2664           headers and libraries from gputils .inc files
2665
2666 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
2667
2668         * doc/sdccman.lyx: add printf_fast_f precision limitation note
2669
2670 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
2671
2672         * doc/sdccman.lyx: add printf benchmarks
2673
2674 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
2675
2676         * device/lib/printf_fast.c: fix %c, char promoted to int
2677         * device/lib/printf_tiny.c: fix %c, char promoted to int
2678
2679 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
2680
2681         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
2682
2683 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2684
2685         * support/regression/tests/swap.c: 64 bit hosts failed
2686         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
2687
2688 2007-01-25 Raphael Neider <rneider AT web.de>
2689
2690         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
2691           based on absolute register address, patch by Alex Blond
2692
2693 2007-01-22 Raphael Neider <rneider AT web.de>
2694
2695         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
2696           emitted, do not emit them again...
2697
2698 2007-01-22 Raphael Neider <rneider AT web.de>
2699
2700         * src/regression/bank1.c, src/regression/compare6.c,
2701           src/regression/add.c: cosmetic changes
2702         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
2703         * src/pic/gen.c: fixed global zero and one,
2704           (aopForSym): removed unued code,
2705           (aopGet): assert aop is defined, check and use `index' of
2706             pCodeImmd operands (fixes #1630908),
2707         * src/pic/pcode.c (get_op): added output of generic pointer tag,
2708           (register_reassign): prevent accidental register unification,
2709           (ReuseReg): cosmetic changes (also above)
2710         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
2711           pic14emitStaticSeg): do not emit initialized data,
2712           (printIval*): replaced with working versions,
2713           (pic14createInterruptVect,picglue): use idata for initialized data,
2714             now init data should work in all modules (not only main()),
2715         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
2716
2717 2007-01-21 Borut Razem <borut.razem AT siol.net>
2718
2719         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
2720           use -fPIC or -fpic if they are supported and not ignored
2721         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
2722         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
2723
2724 2007-01-20 Borut Razem <borut.razem AT siol.net>
2725
2726         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
2727           implemented RFE #1470316: allow "$" in variable names
2728
2729 2007-01-20 Raphael Neider <rneider AT web.de>
2730
2731         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
2732
2733 2007-01-20 Raphael Neider <rneider AT web.de>
2734
2735         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
2736         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
2737         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
2738         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
2739           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
2740         * device/lib/pic/libdev/pic*.c,
2741         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
2742         * device/lib/pic/libdev/Makefile.in: show progress
2743
2744 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
2745
2746         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
2747         * support/scripts/sdcc_cygwin_mingw32,
2748         * support/scripts/sdcc_mingw32,
2749         * support/scripts/build.mak: replaced --datadir by --datarootdir for
2750         conformance with autoconf 2.6
2751
2752 2007-01-19 Raphael Neider <rneider AT web.de>
2753
2754         * src/pic/device.c (register_map): fixed list construction
2755         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
2756           (genMod): removed case for genModbits,
2757           (genModbits): removed as now unused/unimplemented
2758         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
2759
2760 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2761
2762         * support/regression/tests/swap.c: added in response to #1638622
2763         * doc/sdccman.lyx: synced version, minor changes
2764
2765 2007-01-18 Borut Razem <borut.razem AT siol.net>
2766
2767         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
2768           thanks to Gunther Jehle
2769         * src/asm.c: don't die if the file drfined in #line couldn't be opened
2770         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
2771           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
2772           use filename in lineno instead.
2773         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
2774           print the file name in ast_print()
2775
2776 2007-01-18 Borut Razem <borut.razem AT siol.net>
2777
2778         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
2779           defined in MSVC
2780         * src/SDCC.lex: stringLiteral() returns const char pointer,
2781           EOF detection in stringLiteral(), fixed asmbuf memory leak,
2782           fixed column counting
2783         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
2784           accept const char pointer as parameter
2785         * src/SDCCdwarf2.c: corrected buffer size
2786
2787 2007-01-17 Borut Razem <borut.razem AT siol.net>
2788
2789         * support/Util/dbuf_string.c: fixed for amd64
2790
2791 2007-01-15 Borut Razem <borut.razem AT siol.net>
2792
2793         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
2794           removed terminal symbol ELIPSIS, since it was never generated by the
2795           lexer and it was wrongly used in parameter_identifier_list rule
2796
2797 2007-01-15 Raphael Neider <rneider AT web.de>
2798
2799         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
2800             code page and data banking description
2801         * src/pic/genarith.c,
2802         * src/pic/gen.h: removed bit arithmetic functions,
2803             updated exit(1) to exit(EXIT_FAILURE)
2804         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
2805         * device/include/pic16/pic18f2455.h,
2806         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
2807             TRISD and TRISE, fixed/added some bit names
2808         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
2809         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
2810             updated pic18f2455.{c,h} instead of duplicating them
2811
2812 2007-01-14 Borut Razem <borut.razem AT siol.net>
2813
2814         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
2815           Cannot debug files that contain spaces in the path name
2816           by converting spaces in asm file name to underscores
2817
2818 2007-01-13 Borut Razem <borut.razem AT siol.net>
2819
2820         * doc/sdccman.lyx: fixed format errors
2821
2822 2007-01-10 Borut Razem <borut.razem AT siol.net>
2823
2824         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
2825           codeseg/constseg #pragma fail
2826         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
2827         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
2828           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
2829           suppoprt/cpp2/sdcpp.[ch]: house cleaning
2830
2831 2007-01-09 Borut Razem <borut.razem AT siol.net>
2832
2833         * get rid of diagnistic.[ch], pretty-print.[ch],
2834           c-pretty-print.[ch], ... used just for error, warning, ...
2835           message formatting
2836         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
2837           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
2838           suppoprt/cpp2/pretty-print.[ch]:
2839           removed
2840         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
2841           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
2842           suppoprt/cpp2/sdcpp.dsp:
2843           changed
2844
2845 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
2846
2847         * device/lib/printf_large.c (output_float): removed recursion,
2848           use smaller buffer on stack for mcs51,
2849           fixed bug printing 1.96
2850         * support/regression/tests/snprintf.c: added test
2851
2852 2007-01-07 Borut Razem <borut.razem AT siol.net>
2853
2854         * use dynamic memory buffers instead temporary files
2855         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
2856           added
2857         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
2858           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
2859           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
2860           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
2861           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
2862           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
2863           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
2864           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
2865           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
2866           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
2867           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
2868           support/Util/dbuf.c, support/Util/dbuf.h:
2869           modified
2870         * .version, sdcc.spec: bumped version to 2.6.4
2871
2872 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
2873
2874         * src/port.h: added TARGET_Z80_LIKE macro
2875         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
2876           output PSEG location if --xram-loc or --xstack-loc was used
2877         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
2878
2879 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
2880
2881         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
2882         * as/as_z80.dsp,   as/z80/as_z80.dsp,
2883         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
2884         * sdcc.dsw: moved project files into subdir
2885         * as/hc08/as_hc08.dsp,
2886         * as/hc08/Makefile.bcc,
2887         * as/hc08/Makefile.in,
2888         * as/mcs51/Makefile.bcc,
2889         * as/mcs51/Makefile.in,
2890         * as/z80/Makefile.bcc,
2891         * as/z80/Makefile.in,
2892         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
2893         * as/hc08/asm.h,
2894         * as/mcs51/asm.h,
2895         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
2896         * as/hc08/asmain.c,
2897         * as/hc08/assym.c,
2898         * as/mcs51/asmain.c,
2899         * as/mcs51/assym.c,
2900         * as/z80/assym.c: removed include "strcmpi.h"
2901         * as/hc08/strcmpi.c,
2902         * as/hc08/strcmpi.h,
2903         * as/mcs51/strcmpi.c,
2904         * as/mcs51/strcmpi.h,
2905         * support/Util/strcmpi.c,
2906         * support/Util/strcmpi.h: removed files
2907         * as/strcmpi.c: added as_strncmpi()
2908
2909 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2910
2911         * sdcc.dsw: Added some dependencies on project config.dsp
2912
2913 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
2914
2915         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
2916           with [di]ram_start to fix a regresion
2917
2918 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
2919
2920         * configure.in: added missing mcs51 in status output
2921         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
2922         directory
2923         * debugger/mcs51/clean.mk (distclean): remove config.h
2924         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
2925         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
2926         options.h, s-options-h and options.c
2927         * support/cpp2/clean.mk: unused, removed
2928         * Makefile.common.in,
2929         * main_in.mk,
2930         * as/Makefile.in,
2931         * as/hc08/Makefile.in,
2932         * as/hc08/clean.mk,
2933         * as/mcs51/Makefile.in,
2934         * as/mcs51/clean.mk,
2935         * as/z80/clean.mk,
2936         * as/z80/conf.mk,
2937         * as/z80/Makefile.in,
2938         * as/z80/clean.mk,
2939         * as/link/Makefile.in,
2940         * as/link/hc08/Makefile.in,
2941         * as/link/hc08/clean.mk,
2942         * as/link/mcs51/Makefile.in,
2943         * as/link/mcs51/clean.mk,
2944         * as/link/z80/Makefile.in,
2945         * as/link/z80/clean.mk,
2946         * as/link/z80/conf.mk,
2947         * debugger/mcs51/Makefile.in,
2948         * debugger/mcs51/clean.mk,
2949         * device/include/Makefile.in,
2950         * device/lib/Makefile.in,
2951         * device/lib/mcs51/Makefile.in,
2952         * device/lib/pic/Makefile.in,
2953         * device/lib/pic/Makefile.common.in,
2954         * device/lib/pic/Makefile.subdir,
2955         * device/lib/pic/Makefile.rules,
2956         * device/lib/pic16/libio/Makefile.in,
2957         * device/lib/pic16/Makefile.subdir,
2958         * device/lib/pic16/libdev/Makefile.in,
2959         * device/lib/pic16/Makefile.rules,
2960         * device/lib/pic16/Makefile.common.in,
2961         * sim/ucsim/avr.src/Makefile.in,
2962         * sim/ucsim/main_in.mk,
2963         * sim/ucsim/cmd.src/Makefile.in,
2964         * sim/ucsim/doc/Makefile.in,
2965         * sim/ucsim/gui.src/Makefile.in,
2966         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
2967         * sim/ucsim/gui.src/serio.src/Makefile.in,
2968         * sim/ucsim/hc08.src/Makefile.in,
2969         * sim/ucsim/libltdl/Makefile.in,
2970         * sim/ucsim/s51.src/Makefile.in,
2971         * sim/ucsim/sim.src/Makefile.in,
2972         * sim/ucsim/sim.src/conf.mk,
2973         * sim/ucsim/xa.src/Makefile.in,
2974         * sim/ucsim/z80.src/Makefile.in,
2975         * src/Makefile.in,
2976         * src/clean.mk,
2977         * src/port.mk,
2978         * support/cpp2/Makefile.in,
2979         * support/librarian/Makefile.in,
2980         * support/librarian/clean.mk,
2981         * support/makebin/Makefile.in,
2982         * support/makebin/clean.mk,
2983         * support/packihx/Makefile.in,
2984         * support/regression/Makefile.in,
2985         * support/regression/ports/ds390/spec.mk,
2986         * support/regression/ports/gbz80/spec.mk,
2987         * support/regression/ports/hc08/spec.mk,
2988         * support/regression/ports/mcs51/spec.mk,
2989         * support/regression/ports/mcs51-large/spec.mk,
2990         * support/regression/ports/mcs51-medium/spec.mk,
2991         * support/regression/ports/mcs51-xstack-auto/spec.mk,
2992         * support/regression/ports/pic14/spec.mk,
2993         * support/regression/ports/pic16/spec.mk,
2994         * support/regression/ports/mcs51-stack-auto/spec.mk,
2995         * support/regression/ports/ucz80/spec.mk,
2996         * support/regression/ports/xa51/spec.mk,
2997         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
2998         adding a slash after $(top_builddir) and/or adding @datarootdir@
2999         * configure.in,
3000         * debugger/mcs51/configure.in,
3001         * device/lib/pic/configure.in,
3002         * device/lib/pic16/configure.in,
3003         * sim/ucsim/configure.in,
3004         * support/cpp2/configure.in,
3005         * support/packihx/configure.in: changed AC_PREREQ to 2.60
3006         * configure,
3007         * debugger/mcs51/configure,
3008         * device/lib/pic/configure,
3009         * device/lib/pic16/configure,
3010         * sim/ucsim/configure,
3011         * support/cpp2/configure,
3012         * support/packihx/configure: generated with autoconf 2.60
3013
3014 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
3015
3016         * as/link/hc08/lkihx.c (newArea),
3017         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
3018
3019 2007-01-02 Borut Razem <borut.razem AT siol.net>
3020
3021         * doc/sdccman.lyx: documented #pragma sdcc_hash
3022         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
3023           initialized to 0
3024         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
3025
3026 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
3027
3028         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
3029         empty 'while'-loop to work correctly, see regression test 'while.c'
3030         * support/regression/tests/while.c: added
3031
3032 2007-01-01 Borut Razem <borut.razem AT siol.net>
3033
3034         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
3035           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
3036           support/cpp2/libcpp/sdcpp.c:
3037           sdcpp specific pragma/directive/option handling moved to sdcpp.c
3038         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
3039         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
3040
3041 2006-12-31 Borut Razem <borut.razem AT siol.net>
3042
3043         * SDCPP synchronized with GCC CPP release version 4.1.1,
3044           currently the latest release:
3045         * support/cpp2/libcpp, support/cpp2/libcpp/include,
3046           support/cpp2/libcpp/include/cpp-id-data.h
3047           support/cpp2/libiberty/fopen_unlocked.c
3048           support/cpp2/libiberty/md5.c
3049           support/cpp2/md5.h
3050           support/cpp2/opt-functions.awk
3051           support/cpp2/opt-gather.awk
3052           support/cpp2/optc-gen.awk
3053           support/cpp2/opth-gen.awk:
3054           added
3055         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
3056           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
3057           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
3058           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
3059           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
3060           support/cpp2/diagnostic.h, support/cpp2/except.h,
3061           support/cpp2/hwint.h, support/cpp2/input.h,
3062           support/cpp2/intl.h, support/cpp2/move-if-change,
3063           support/cpp2/opts.c, support/cpp2/opts.h,
3064           support/cpp2/output.h, support/cpp2/prefix.c,
3065           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
3066           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
3067           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
3068           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
3069           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
3070           support/cpp2/version.c:
3071           modified
3072         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
3073           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
3074           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
3075           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
3076           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
3077           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
3078           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
3079           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
3080           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
3081           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
3082           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
3083           moved
3084         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
3085           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
3086           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
3087           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
3088           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
3089           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
3090           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
3091           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
3092           support/cpp2/hashtable.h, support/cpp2/line-map.c,
3093           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
3094           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
3095           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
3096           support/cpp2/system.h:
3097           deleted / moved
3098
3099 2006-12-31 Borut Razem <borut.razem AT siol.net>
3100
3101         * configure.in, configure: fixed bug #1538756: configure dies if bison
3102           and flex are not installed, 2nd try
3103
3104 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
3105
3106         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
3107         400.x for better code in RFE 899102
3108
3109 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
3110
3111         * src/SDCCpeeph.c (deadMove),
3112         * src/port.h,
3113         * src/mcs51/peep.h: renamed 'op' by 'reg'
3114         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
3115         (scan4op): small change for removeDeadMove(), added support for
3116         'callee saves' and/or PACLL function calls,
3117         (removeDeadMove): added, removes superflous 'mov r%1,%2',
3118         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
3119         left in new dispatcher mcs51DeadMove()
3120         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
3121         removeDeadMove()
3122         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
3123
3124 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3125
3126         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
3127           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
3128
3129 2006-12-30 Borut Razem <borut.razem AT siol.net>
3130
3131         * support/cpp2/spacs.h: deleted from svn
3132         * configure.in, configure: fixed bug #1538756: configure dies if bison
3133           and flex are not installed
3134
3135 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
3136
3137         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
3138           with this z80 passes printf float test when enabled
3139         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
3140
3141 2006-12-28 Borut Razem <borut.razem AT siol.net>
3142
3143         * support/cpp2/config.in, support/cpp2/configure.in,
3144           support/cpp2/configure, support/cpp2/Makefile.in:
3145           fix for the solaris build
3146
3147 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3148
3149         * src/SDCC.y (type_specifier2, pointer),
3150         * src/SDCCsymt.h,
3151         * src/SDCCsymt.c (mergeSpec, checkSClass),
3152         * support/Util/SDCCerr.c,
3153         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
3154         * support/valdiag/valdiag.py: Allow test cases to specify
3155           required language standard
3156         * support/valdiag/tests/restrict.c: New file to test restrict keyword
3157         * support/valdiag/tests/tentdecl.c: Supress empty source file error
3158
3159 2006-12-27 Borut Razem <borut.razem AT siol.net>
3160
3161         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
3162         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
3163           mbchar removed
3164         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
3165           fixed for borland C
3166         * support/cpp2/libiberty/Makefile.bcc: updated
3167         * src/pic16/main.c: fixed #pragma udata handling
3168         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
3169
3170 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
3171
3172         * src/SDCCpeeph.c: made labelHashEntry global,
3173         made pcDistance, FBYNAME static,
3174         (pcDistance): made static, use isComment and isLabel,
3175         (deadMove): added,
3176         (getLabelRef): added, extracted from labelRefCount(),
3177         (labelRefCount): use new getLabelRef(),
3178         (callFuncByName): made static, added deadMove,
3179         use isComment and isLabel,
3180         (newPeepRule): made static, set isLabel,
3181         (isLabelDefinition): added parameter isPeepRule to allow '%' in
3182         labels from peephole rules,
3183         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
3184         when isComment or isLabel is set
3185         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
3186         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
3187         to make them global
3188         * src/mcs51/peep.h: added
3189         * src/mcs51/peep.c: added, implements mcs51DeadMove()
3190         * src/port.h: added peep->deadMove to port structure
3191         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
3192         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
3193         deadMove, finally removed no. 1 and 2
3194         * src/mcs51/gen.c,
3195         * src/pic/gen.c,
3196         * src/z80/gen.c,
3197         * src/z80/ralloc.c,
3198         * src/pic16/gen.c,
3199         * src/ds390/gen.c,
3200         * src/hc08/gen.c: mark lines with isComment or isLabel
3201         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
3202         * .version,
3203         * sdcc.spec: bumped version to 2.6.3
3204
3205 2006-12-26 Borut Razem <borut.razem AT siol.net>
3206
3207         * support/cpp2/Makefile.in: added dependency on options.h
3208         * configure: regenerated
3209         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
3210         * support/cpp2/Makefile.in: added vasprintf.c
3211
3212 2006-12-25 Borut Razem <borut.razem AT siol.net>
3213
3214         * SDCPP synchronized with GCC CPP release version 3.4.6,
3215           the latest release before 4.x:
3216         * support/cpp2/Makefile.in, support/cpp2/config.h,
3217           support/cpp2/configure, support/cpp2/configure.in,
3218           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
3219           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
3220           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
3221           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
3222           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
3223           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
3224           support/cpp2/cpptrad.c, support/cpp2/except.h,
3225           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
3226           support/cpp2/hwint.h, support/cpp2/intl.h,
3227           support/cpp2/line-map.c, support/cpp2/line-map.h,
3228           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
3229           support/cpp2/output.h, support/cpp2/prefix.c,
3230           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
3231           support/cpp2/system.h, support/cpp2/version.c:
3232           modified
3233         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
3234           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
3235           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
3236           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
3237           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
3238           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
3239           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
3240           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
3241           support/cpp2/move-if-change, support/cpp2/opts.c,
3242           support/cpp2/opts.h, support/cpp2/opts.sh,
3243           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
3244           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
3245           support/cpp2/win32, support/cpp2/win32/dirent.c,
3246           support/cpp2/win32/dirent.h:
3247           added
3248         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
3249         * support/cpp2/sdcpp.h: renamed from sdcc.h
3250         * sdcppinit.c: deleted
3251
3252 2006-12-23 Borut Razem <borut.razem AT siol.net>
3253
3254         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
3255           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
3256           preproc.c: an other try to fix bug #982435: introduced
3257           -pedantic-parse-number command line option and pedantic_parse_number
3258           pragma
3259
3260 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
3261
3262         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
3263            BSEG handling,
3264           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
3265            corrected overlayed areax addresses, warn about memory overlaps
3266         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
3267         * src/avr/main.c,
3268         * src/ds390/main.c,
3269         * src/hc08/main.c,
3270         * src/mcs51/main.c,
3271         * src/pic16/main.c,
3272         * src/pic/main.c,
3273         * src/xa51/main.c,
3274         * src/z80/main.c,
3275         * src/port.h: added xabs_name and iabs_name
3276         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
3277           (glue, emitMaps): create and emit maps d_abs and i_abs
3278         * src/SDCCglue.h: cosmetic changes
3279         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
3280         * src/SDCCmem.h,
3281         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
3282           (allocDefault): put absolute, initialized globals in them
3283         * support/regression/tests/absolute.c: added absolute bdata test
3284         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
3285
3286 2006-12-20 Borut Razem <borut.razem AT siol.net>
3287
3288         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
3289         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
3290           added regression test for bug #982435
3291
3292 2006-12-18 Borut Razem <borut.razem AT siol.net>
3293
3294         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
3295         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
3296           small cosmetic changes
3297         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
3298         * support/regression/tests/bug-1351710.c: added regression test
3299
3300 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3301
3302         * doc/sdccman.lyx: added the long missed iCode table
3303           "<where is figure II?>", added links to wiki
3304
3305 2006-12-17 Borut Razem <borut.razem AT siol.net>
3306
3307         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
3308           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
3309           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
3310           unified table driven pragma handling, pragma argument type checking
3311         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
3312           current one - version 1.1.3
3313         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
3314
3315 2006-12-13 Raphael Neider <rneider AT web.de>
3316
3317         * src/pic/device.h: removed AssignedMemory structure and macros
3318         * src/pic/device.c: removed global finalMapping (linker assigns
3319             memory locations),
3320           (register_map): add SFRs to remembered memRanges
3321           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
3322           assignFixedRegisters,assignRelocatableRegisters): removed,
3323           (setMaxRAM,validAddress): adapted accordingly,
3324           (pic14_hasSharebank,pic14_getSharedStack): only report and use
3325             reasonably sized sharebanks,
3326         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
3327           (allDefsOutOfRange): removed unused code,
3328         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
3329             handling
3330         * src/pic/pcode.c (register_reassign): removed recursion warning,
3331             fired far too often,
3332         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
3333             to use existing pic14_stringInSet() to avoid duplicate symbols,
3334             tidied up the code a bit,
3335           (pic14printLocals): added in symmetry to printExterns, replaces
3336             writeUsedRegs more or less,
3337           (picglue): call new pic14_printLocals(),
3338         * device/include/pic/pic*.h: removed #pragma memmap directives,
3339             information gathered from include/pic/pic14devices.txt
3340         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
3341
3342 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
3343
3344         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
3345
3346 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3347
3348         * device/include/mcs51/cc2430.h: fixed missing ';'
3349
3350 2006-12-10 Raphael Neider <rneider AT web.de>
3351
3352         * device/lib/pic16/libc/stdio/vfprintf.c,
3353         * device/lib/pic16/libc/stdio/printf_small.c,
3354         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
3355           char arguments, as char varargs are cast to int by the caller,
3356           hopefully fixes #1604915 (other device libraries are still affected)
3357
3358 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3359
3360         * src/mcs51/ralloc.c (packRegsForAssign),
3361         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
3362
3363 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
3364
3365         * device/include/malloc.h: removed init_dynamic_memory
3366         * device/lib/malloc.c: made init_dynamic_memory static and automatically
3367           call it once from malloc. Also use _sdcc_heap[] from _heap.c
3368         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
3369         * device/lib/libsdcc.lib,
3370         * device/lib/Makefile.in,
3371         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
3372         * doc/sdccman.lyx: documented use of new _heap.c
3373         * support/regression/tests/malloc.c: removed init_dynamic_memory
3374         * src/cdbFile.c(spacesToUnderscores): new function,
3375           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
3376           1068030
3377         * device/include/tinibios.h: removed defines for putchar and getchar
3378         * device/lib/ds390/Makefile.in: added putchar.c
3379         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
3380
3381 2006-12-09 Borut Razem <borut.razem AT siol.net>
3382
3383         * support/cpp2/sdcc.h: prevent multiple inclusion
3384         * support/cpp2/options.h: deleted
3385
3386 2006-12-08 Borut Razem <borut.razem AT siol.net>
3387
3388         * support/cpp2/sdcc.h: removed x*alloc() macros
3389         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
3390         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
3391           support/cpp2/sdcpp.sdc: x*alloc files added to the project
3392         * support/cpp2/system.h: moved #include "sdcc.h"
3393         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
3394           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
3395           added
3396         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
3397           -funsigned-char options
3398         * support/cpp2/sdcppmain.c: fixed bug 1611411
3399
3400 2006-12-07 Borut Razem <borut.razem AT siol.net>
3401
3402         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
3403           directive
3404
3405 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
3406
3407         * src/SDCCsymt.c (addDecl): fixed bug 1609244
3408         * src/SDCCmain.c (linkEdit): fixed bug 1609279
3409         * doc/sdccman.lyx,
3410         * .version: bumped to 2.6.2 because a) it's been a while
3411           b) the linker sources have moved c) the preprocessor is upgraded
3412
3413 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3414
3415         * support/regression/tests/snprintf.c: some checks
3416         * lib/src/printf_large.c: %bc: read char instead of int from stack
3417
3418 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
3419
3420         * device/include/mcs51/cc2430.h: inserted _XPAGE
3421
3422 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3423
3424         * device/include/mcs51/cc2430.h: added
3425
3426 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
3427
3428         * device/include/asm/default/features.h,
3429         * device/include/asm/ds390/features.h,
3430         * device/include/mcs51/at89s53.h,
3431         * device/include/ser.h,
3432         * device/include/ser_ir.h,
3433         * device/include/serial.h: changed keywords to double underscore variants,
3434           fixes bug 1590261 some more, thanks Steven Borley
3435
3436 2006-12-01 Raphael Neider <rneider AT web.de>
3437
3438         * src/pic/pcode.c (register_reassign): do not crash on recursive code
3439           but emit warning (recursion is not supported for pic14)
3440
3441 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3442
3443         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
3444         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
3445
3446 2006-11-30 Raphael Neider <rneider AT web.de>
3447
3448         * src/pic/device.c (dump_sfr): always emit symbols
3449         * src/pic/glue.c (pic14printPublics): fixed typo
3450
3451 2006-11-30 Raphael Neider <rneider AT web.de>
3452
3453         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
3454           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
3455           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
3456            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
3457            a sharebank, use a non-shared bank for the stack if none available
3458         * src/pic/device.h (struct memRange): added linked list next field,
3459           added prototypes for above functions
3460         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
3461           (typeRegWithIdx): accept fixed and unfixed stack registers
3462         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
3463           the stack, handle shared and banked stack (except for WSAVE),
3464           (insertBankSel): removed useless optimization (will never fire),
3465           (FixRegisterBanking): added optimization for devices with only one
3466           possibly aliased bank of memory, like 16f84
3467         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
3468           devices have no SHAREBANK in the linker script
3469         * device/include/pic/pic14devices.txt: documented memmap
3470         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
3471
3472 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3473
3474         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
3475           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
3476           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
3477           genhc08Code): switched most of the D (debug) macros to DD (detailed
3478           debug) macros to better control clutter in the generated .asm file.
3479         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
3480           genRightShift): fixed bug with non-constant bit shift stored to
3481           a volatile result (SF Open Discussion forum thread #1616749).
3482           Single byte case is not yet optimized.
3483
3484 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
3485
3486         * device/include/asm/mcs51/features.h,
3487         * device/include/malloc.h,
3488         * device/include/stdio.h: changed keywords to double underscore variants,
3489           fixes bug 1590261
3490
3491 2006-11-27 Borut Razem <borut.razem AT siol.net>
3492
3493         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
3494           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
3495           support/cpp2/output.h, support/cpp2/cppinit.c,
3496           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
3497           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
3498           support/cpp2/cppdefault.c, support/cpp2/system.h,
3499           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
3500           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
3501           support/cpp2/prefix.c, support/cpp2/except.h,
3502           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
3503           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
3504           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
3505           support/cpp2/version.c, support/cpp2/cppmain.c,
3506           support/cpp2/version.h, support/cpp2/hashtable.c,
3507           support/cpp2/cpperror.c:
3508           synchronized with GCC CPP release version 3.3.6,
3509           the latest where cppmain.c still exists.
3510         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
3511           support/cpp2/sdcppinit.c: added
3512
3513 2006-11-27 Borut Razem <borut.razem AT siol.net>
3514
3515         * support/cpp2/cpplex.c:
3516           fixed _asm ... _endasm handling bug, introduce with GCC CPP
3517           synchronization
3518         * support/cpp2/cpplib.c: removed definitions of unused variables
3519
3520 2006-11-26 Borut Razem <borut.razem AT siol.net>
3521
3522         * support/cpp2/libiberty.h: commented out x*alloc() declarations
3523           since they are redefined by macros in support/cpp2/sdcc.h
3524         * support/cpp2/sdcc.h: x*alloc macro redefinition
3525
3526 2006-11-25 Borut Razem <borut.razem AT siol.net>
3527
3528         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
3529           support/cpp2/configure, support/cpp2/Makefile.in,
3530           support/cpp2/cppfiles.c, support/cpp2/output.h,
3531           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
3532           support/cpp2/config.h, support/cpp2/cpplib.h,
3533           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
3534           support/cpp2/cppdefault.c, support/cpp2/config.in,
3535           support/cpp2/system.h, support/cpp2/cpplex.c,
3536           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
3537           support/cpp2/cppdefault.h, support/cpp2/prefix.c
3538           support/cpp2/hwint.h, support/cpp2/mbchar.h,
3539           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
3540           support/cpp2/configure.in, support/cpp2/intl.h,
3541           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
3542           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
3543           support/cpp2/version.c, support/cpp2/cppmain.c,
3544           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
3545           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
3546           support/cpp2/cpperror.c,
3547           support/cpp2/libiberty/safe-ctype.c,
3548           support/cpp2/libiberty/safe-ctype.h,
3549           support/cpp2/libiberty/splay-tree.c,
3550           support/cpp2/libiberty/obstack.c,
3551           support/cpp2/libiberty/lbasename.c,
3552           support/cpp2/libiberty/splay-tree.h,
3553           support/cpp2/libiberty/obstack.h:
3554           synchronized with GCC CPP release version 3.2.3,
3555           the latest before integration of cpp into gcc
3556         * support/cpp2/except.h, support/cpp2/line-map.c,
3557           support/cpp2/line-map.h,
3558           support/cpp2/libiberty/hex.c,
3559           support/cpp2/libiberty/concat.c,
3560           support/cpp2/libiberty/filenames.h: added
3561         * support/cpp2/intl.c: deleted
3562
3563 2006-11-24 Borut Razem <borut.razem AT siol.net>
3564
3565         * src/SDCC.y: enabled compilation of empty source file
3566         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
3567           "ISO C forbids an empty source file"
3568         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
3569           if all the code is ifdefed out.
3570
3571 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3572
3573         * src/hc08/gen.c (genPcall): fix for bug #1601032
3574
3575 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
3576
3577         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
3578         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
3579         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
3580         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
3581         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
3582         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
3583         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
3584         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
3585         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
3586         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
3587         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
3588         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
3589         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
3590         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
3591         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
3592           Renamed to all upper case as per the standard set by SiLabs
3593
3594 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
3595
3596         * device/include/mcs51/C8051F520.h: new, added
3597         * device/include/mcs51/compiler.h: added link about predefined macros
3598
3599 2006-11-23 Raphael Neider <rneider AT web.de>
3600
3601         * src/regression/Makefile: add -L path to fresh library
3602         * src/regression/simulate: emphasize FAILED output
3603         * src/regression/create_stc: output _failures from gpsim
3604         * src/regression/compare4.c,
3605         * src/regression/rotate6.c: fixed char literals,
3606           all compile, all run =8-D
3607
3608         * src/pic/pcode.h: added isPCASMDIR macro
3609         * src/pic/gen.c (genAnd): fixed bit offset
3610         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
3611           packBits): unified register numbering schemes,
3612           (newReg): do not insert stack registers into hash table,
3613           (initStack): unpinned pseudo stack, simplified,
3614           (typeRegWithIdx): fixed retrieval of stack registers,
3615         * src/pic/pcode.c (addpCodeComment,sameBank): added,
3616           (pCodeReplace): removed invalid assertion,
3617           (insertPCodeInstruction): fixed newly added labels,
3618           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
3619           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
3620           DumpFlow): removed unsed (broken?) code,
3621           (insertBankSel): prevent STATUS from being BANKSELed,
3622           (FixRegisterBanking): rewritten from scratch, implemented generic
3623             optimizations (suppress BANKSELs to same register and to registers
3624             present in all banks),
3625           (AnalyzeBanking): update flow after BANKSELection
3626
3627         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
3628             sharebank, let linker place it, mark STKxx symbols as emitted
3629
3630 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3631
3632         * src/regression/arrays.c,
3633         * src/regression/bank1.c,
3634         * src/regression/bool2.c,
3635         * src/regression/compare7.c,
3636         * src/regression/compare8.c,
3637         * src/regression/compare9.c,
3638         * src/regression/compare10.c,
3639         * src/regression/configword.c,
3640         * src/regression/for.c,
3641         * src/regression/mult1.c,
3642         * src/regression/pointer1.c,
3643         * src/regression/rotate6.c,
3644         * src/regression/string1.c,
3645         * src/regression/struct1.c,
3646         * src/regression/Makefile: make PIC14 regression tests run again
3647           (3 fail, 6 won't compile)
3648
3649 2006-11-21 Raphael Neider <rneider AT web.de>
3650
3651         * device/include/pic16/pic18f4550.h,
3652         * device/include/pic16/pic18f4455.h,
3653         * device/lib/pic16/libdev/pic18f4550.c,
3654         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
3655         * configure.in: removed superfluous closing bracket
3656
3657 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3658
3659         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
3660           always positive.
3661
3662 2006-11-21 Raphael Neider <rneider AT web.de>
3663
3664         * src/pic/device.{c,h}: added pic14_getPIC()
3665         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
3666           (genAnd): added PIC code for one case, fixes #1597044
3667         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
3668           SFRs that are present in all banks (e.g., STATUS)
3669
3670 2006-11-20 Raphael Neider <rneider AT web.de>
3671
3672         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
3673           INCFSZ/INCFSZW and declared them as changing Z bit,
3674           (insertPCodeInstruction): correctly invert the above instructions,
3675           fixes #1599333,
3676           (DoBankSelect): don't panic on po_immediates
3677
3678 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
3679
3680         * as/link/aslink.h,
3681         * as/link/mcs51/lkihx.c (newArea),
3682         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
3683         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
3684
3685 2006-11-11 Raphael Neider <rneider AT web.de>
3686
3687         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
3688           bitfield symbols, fixes #1579535 (once more...).
3689
3690 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3691
3692         * support/regression/generate-cases.py,
3693         * support/regression/fwk/include/testfwk.h,
3694         * support/regression/fwk/lib/testfwk.c: used code pointers,
3695           (about 50kByte less code generated for mcs51)
3696
3697 2006-11-06 Borut Razem <borut.razem AT siol.net>
3698
3699         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3700           debugger/mcs51/configure: fixed failed check because the function
3701           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
3702           who submitted the patch for gpsim.
3703         * debugger/mcs51/configure.in: removed the result message
3704         * debugger/mcs51/Makefile.in: fixed the config.status warning
3705           "... seems to ignore the --datarootdir setting"
3706
3707 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
3708
3709         * device/include/mcs51/c8051f020.h,
3710         * device/include/mcs51/c8051f040.h,
3711         * device/include/mcs51/c8051f060.h,
3712         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
3713         * src/z80/gen.c (gencjneshort),
3714         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
3715
3716 2006-10-31 Borut Razem <borut.razem AT siol.net>
3717
3718         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3719           debugger/mcs51/configure: get readline version
3720
3721 2006-10-30 Borut Razem <borut.razem AT siol.net>
3722
3723         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
3724         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3725           debugger/mcs51/configure: locate readline even when cross compiling
3726         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
3727
3728 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3729
3730         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
3731           serial port.
3732
3733 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
3734
3735         * device/include/malloc.h,
3736         * device/lib/calloc.c,
3737         * device/lib/free.c,
3738         * device/lib/malloc.c,
3739         * device/lib/realloc.c: moved definition of struct into sources
3740         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
3741
3742 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
3743
3744         * as/asx8051.dsp: corrected output directories
3745         * as/link/hc08: new directory for hc08 linker
3746         * as/hc08/aslink.h,             as/link/aslink.h,
3747         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
3748         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
3749         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
3750         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
3751         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
3752         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
3753         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
3754         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
3755         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
3756         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
3757         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
3758         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
3759         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
3760         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
3761         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
3762         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
3763         * as/link/hc08/conf.mk,
3764         * configure,
3765         * configure.in,
3766         * Makefile.in,
3767         * sdcc.dsw: moved hc08 linker to as/link/hc08
3768         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
3769         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
3770         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
3771         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
3772         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
3773         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
3774         * as/link/mcs51/aslink.dsp,
3775         * as/link/mcs51/Makefile.in: factored out the common files
3776         * as/hc08/lkstore.c: deleted, use the one already in as/link/
3777         * as/clean.mk: extra cleaning common files
3778         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
3779         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
3780         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
3781
3782 2006-10-29 Raphael Neider <rneider AT web.de>
3783
3784         * src/pic/ralloc.c (newReg): create aliases for registers with
3785           multiple names to fix #1579535 and #1584001,
3786           (regWithIdx,dirregWithName): resolve aliases on lookup
3787         * src/pic/pcode.c (DoBankSelect): die with error message on failing
3788           bankselect
3789         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
3790           to prevent build errors on small devices
3791
3792 2006-10-28 Raphael Neider <rneider AT web.de>
3793
3794         * src/pic/gen.c (genFunction,genCall): drop "same code page"
3795           assumption within interrupt handlers, fixes #1584940
3796         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
3797           "emitted" to avoid emitting them again in udata
3798
3799 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3800
3801         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
3802         Removed.
3803
3804 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3805
3806         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
3807         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
3808         on/off CR to CRLF conversion.
3809
3810 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3811
3812         * doc/sdccman.lyx: updated IRQ section
3813
3814 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3815
3816         * device/lib/serial_io.c: removed
3817         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
3818         replacements for serial_io.c
3819
3820 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
3821
3822         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
3823
3824 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3825
3826         * device/lib/serial_io.c: Default putchar() and getchar() for
3827           mcs51 uses serial port.
3828
3829 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
3830
3831         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
3832
3833 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3834
3835         * support/regression/ports/mcs51/support.c: smaller
3836         _sdcc_external_startup()
3837         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
3838
3839 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
3840
3841         * device/lib/gbz80/crt0.s,
3842         * device/lib/gbz80/crt0_rle.s,
3843         * device/lib/gbz80/div.s,
3844         * device/lib/gbz80/fstubs.s,
3845         * device/lib/gbz80/heap.s,
3846         * device/lib/gbz80/mul.s,
3847         * device/lib/gbz80/putchar.s,
3848         * device/lib/gbz80/stubs.s,
3849         * device/lib/z80/crt0.s,
3850         * device/lib/z80/crt0_rle.s,
3851         * device/lib/z80/div.s,
3852         * device/lib/z80/fstubs.s,
3853         * device/lib/z80/heap.s,
3854         * device/lib/z80/mul.s,
3855         * device/lib/z80/putchar.s,
3856         * device/lib/z80/stubs.s: reverted, I was mistaken
3857
3858 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3859
3860         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
3861         * support/regression/ports/mcs51/support.c: removed race
3862         condition on TI in _putchar allowing to use serial port mode 0
3863
3864 2006-10-20 Borut Razem <borut.razem AT siol.net>
3865
3866         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
3867
3868 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
3869
3870         * device/lib/gbz80/crt0.s,
3871         * device/lib/gbz80/crt0_rle.s,
3872         * device/lib/gbz80/div.s,
3873         * device/lib/gbz80/fstubs.s,
3874         * device/lib/gbz80/heap.s,
3875         * device/lib/gbz80/mul.s,
3876         * device/lib/gbz80/putchar.s,
3877         * device/lib/gbz80/stubs.s,
3878         * device/lib/z80/crt0.s,
3879         * device/lib/z80/crt0_rle.s,
3880         * device/lib/z80/div.s,
3881         * device/lib/z80/fstubs.s,
3882         * device/lib/z80/heap.s,
3883         * device/lib/z80/mul.s,
3884         * device/lib/z80/putchar.s,
3885         * device/lib/z80/stubs.s: removed all leading underscores from area names
3886
3887 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
3888
3889         * support/regression/ports/mcs51/support.c: use highest baudrate so the
3890           regression tests are not waiting in the simulator for simulated
3891           transmission of debug output
3892
3893 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3894
3895         * device/lib/printf_large.c: slightly smaller
3896         * doc/sdccman.lyx: do not use spaces within html links
3897
3898 2006-10-16 Borut Razem <borut.razem AT siol.net>
3899
3900         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
3901           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
3902           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
3903           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
3904           debugger/mcs51/configure:
3905           [ 1185668 ] add gnu readline support to sdcdb - enabled
3906
3907 2006-10-16 Raphael Neider <rneider AT web.de>
3908
3909         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
3910           fixes #1577882, removes close to all banking optimizations
3911
3912 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
3913
3914         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
3915           variables in code memory
3916         * support/regression/tests/absolute.c: added test for this
3917
3918 2006-10-15 Raphael Neider <rneider AT web.de>
3919
3920         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
3921           devices,
3922           (BankSelect): emit BANKSEL before touching linker-placed regs,
3923           fixes #1570934
3924
3925 2006-10-10 Raphael Neider <rneider AT web.de>
3926
3927         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
3928         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
3929         * src/pic/main.c (_pic14_parseOptions),
3930         * src/pic/main.h: mostly reverted to previous state, now use results
3931             from SDCCmain.c's argument parsing
3932
3933 2006-10-10 Borut Razem <borut.razem AT siol.net>
3934
3935         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
3936           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
3937           [ 1185668 ] add gnu readline support to sdcdb -
3938           prepared for READLINE, not enabled yet,
3939           thanks to <tal.bav AT gmail.com>
3940
3941 2006-10-10 Raphael Neider <rneider AT web.de>
3942
3943         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
3944         * src/pic16/devices.inc,
3945         * device/include/pic16 (pic18f[24]620.h),
3946         * device/include/pic18fregs.h,
3947         * device/lib/pic16/pics.all,
3948         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
3949             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
3950             Gary Plumbridge and Anton Strobl
3951
3952 2006-10-10 Raphael Neider <rneider AT web.de>
3953
3954         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
3955           --stack-siz=NUM options to configure the argument passing stack
3956         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
3957         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
3958           (pic14_getSharebankSize): obey --stack-siz=NUM,
3959           (pic14_getSharebankAddress): obey --stack-loc=NUM
3960
3961 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3962
3963         * doc/sdccman.lyx: added to the manual
3964         * doc/figures/ddd_example.png: added (neither pdflatex nor
3965         most browsers seem to like the .eps file)
3966
3967 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
3968
3969         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
3970         to /tmp and /var/tmp acc. LSB
3971         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
3972         RESULT_TYPE_IFX
3973         * support/regression/tests/onebyte.c: added test
3974
3975 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3976
3977         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
3978
3979 2006-10-05 Borut Razem <borut.razem AT siol.net>
3980
3981         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
3982           thanks to dfulab:
3983           - sdcc.dsw: changed property eol-style to CRLF
3984           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
3985
3986 2006-10-04 Raphael Neider <rneider AT web.de>
3987
3988         * device/include/pic/{pic16f84.h,pic16f84a.h},
3989         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
3990           from patch #1522504, thanks to Robas Teodor
3991
3992 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
3993
3994         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
3995           fixes bug 1566015
3996
3997 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
3998
3999         * src/pic16/glue.c (pic16emitMaps),
4000         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
4001         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
4002         * device/lib/pic16/libc/string/memcpypgm2ram.c,
4003         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
4004           Philipp Krause
4005         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
4006         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
4007
4008 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4009
4010         * support/librarian/sdcclib.c: Added option -l.
4011         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
4012           usage totals.
4013         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
4014           using Windows command prompt.
4015
4016 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
4017
4018         * device/lib/libsdcc.lib: added module rand
4019         * src/ds390/ralloc.c (rematStr),
4020         * src/hc08/ralloc.c (rematStr),
4021         * src/mcs51/ralloc.c (rematStr),
4022         * src/z80/ralloc.c (rematStr): made output more consistent
4023         * src/mcs51/gen.c: cosmetic changes
4024
4025 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
4026
4027         * src/port.h: added mem.cabs_name to PORT
4028         * src/ds390/main.c,
4029         * src/hc08/main.c,
4030         * src/mcs51/main.c,
4031         * src/pic16/main.c,
4032         * src/pic/main.c,
4033         * src/xa51/main.c,
4034         * src/z80/main.c: added cabs_name initializers
4035         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
4036           constants
4037           (emitMaps): emit absolutes in code memory into cabs_name
4038         * src/SDCCmem.c,
4039         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
4040         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
4041         * support/regression/fwk/include/testfwk.h: added define for at
4042         * support/regression/tests/absolute.c: added, new
4043
4044 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
4045
4046         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
4047           optimizations, see also patch 887161 by Stas Sergeev
4048         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
4049           to be necessary anymore,
4050           (102, 103, 104, 127): renamed all occurances of bp to _bp
4051
4052 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
4053
4054         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
4055           thanks Weston T. Schmidt for patch 1555221
4056         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
4057         * src/SDCCicode.c(geniCodeMultiply): small optimization
4058
4059 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
4060
4061         * device/include/stdlib.h: added rand prototypes
4062         * device/lib/rand.c: new, added
4063         * device/lib/Makefile.in: added rand.c
4064         * src/z80/peeph.def,
4065         * src/z80/peeph-gbz80.def,
4066         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
4067
4068 2006-09-20 Raphael Neider <rneider AT web.de>
4069
4070         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
4071
4072 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
4073
4074         * as/link/aslink.h: cosmetic changes
4075         * as/link/mcs51/Makefile.in,
4076         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
4077
4078 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
4079
4080         * as/link/aslink.h,
4081         * as/link/mcs51/aslink.h,
4082         * as/link/z80/aslink.h: merged and moved to as/link/
4083         * as/link/lkstore.c,
4084         * as/link/mcs51/lkstore.c: moved to as/link/
4085         * as/link/clean.mk: remove *.o
4086         * as/link/mcs51/alloc.h: deleted
4087         * as/link/mcs51/lkarea.c: added lnksect prototype
4088         * as/link/mcs51/lkdata.c,
4089         * as/link/mcs51/lklex.c,
4090         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
4091         * as/link/mcs51/lkmem.c,
4092         * as/link/mcs51/lknoice.c: removed include strcmpi.h
4093         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
4094         * as/link/mcs51/aslink.dsp,
4095         * as/link/mcs51/Makefile.aslink,
4096         * as/link/mcs51/Makefile.bcc,
4097         * as/link/mcs51/Makefile.in: updated for moved files
4098         * as/link/z80/lkarea.c,
4099         * as/link/z80/lkhead.c,
4100         * as/link/z80/lklex.c,
4101         * as/link/z80/lklibr.c,
4102         * as/link/z80/lklist.c,
4103         * as/link/z80/lkmain.c,
4104         * as/link/z80/lkrloc.c,
4105         * as/link/z80/lksym.c: synced with mcs51
4106         * as/link/z80/lkdata.c,
4107         * as/link/z80/lkeval.c,
4108         * as/link/z80/lkihx.c,
4109         * as/link/z80/lks19.c: cosmetic changes
4110         * as/link/z80/Makefile.in,
4111         * as/link/z80/linkgbz80.dsp,
4112         * as/link/z80/linkz80.dsp: updated for moved files
4113
4114 2006-09-16 Borut Razem <borut.razem AT siol.net>
4115
4116         * debugger/mcs51/sdcdb.c: partially fixed
4117           [ 1203664 ] sdcdb fails to open files w. two "." periods
4118         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
4119           debugger/mcs51/symtab.h: fixed indenting
4120         * configure.in, configure: up to date with latest Maarten's changes
4121
4122 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
4123
4124         as/link/mcs51
4125         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
4126         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
4127         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
4128         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
4129         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
4130         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
4131         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
4132         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
4133         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
4134         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
4135         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
4136         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
4137         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
4138         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
4139         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
4140         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
4141         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
4142         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
4143         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
4144         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
4145         as/link/mcs51/alloc.h,
4146         as/link/mcs51/clean.mk,
4147         as/link/mcs51/conf.mk,
4148         as/link/mcs51/Makefile.bcc,
4149         as/link/mcs51/Makefile.in,
4150         as/link/mcs51/readme.390,
4151         as/link/mcs51/strcmpi.c,
4152         as/link/mcs51/strcmpi.h,
4153         as/mcs51/clean.mk,
4154         as/mcs51/Makefile.bcc,
4155         as/mcs51/Makefile.in,
4156         configure,
4157         Makefile.in,
4158         sdcc.dsw: moved mcs51 linker to as/link/mcs51
4159
4160 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
4161
4162         * as/link,
4163         * as/link/Makefile.in,
4164         * as/link/z80/linkgbz80.dsp,
4165         * as/link/z80/linkz80.dsp,
4166         * configure,
4167         * link,
4168         * link/clean.mk,
4169         * link/Makefile.in,
4170         * link/README,
4171         * link/z80,
4172         * link/z80/aslink.h,
4173         * link/z80/clean.mk,
4174         * link/z80/conf.mk,
4175         * link/z80/linkgbz80.dsp,
4176         * link/z80/linkz80.dsp,
4177         * link/z80/lkarea.c,
4178         * link/z80/lkdata.c,
4179         * link/z80/lkeval.c,
4180         * link/z80/lkgb.c,
4181         * link/z80/lkgg.c,
4182         * link/z80/lkhead.c,
4183         * link/z80/lkihx.c,
4184         * link/z80/lklex.c,
4185         * link/z80/lklibr.c,
4186         * link/z80/lklist.c,
4187         * link/z80/lkmain.c,
4188         * link/z80/lkrloc.c,
4189         * link/z80/lks19.c,
4190         * link/z80/lksym.c,
4191         * link/z80/Makefile.in,
4192         * Makefile.in,
4193         * sdcc.dsw: moved link/ to as/link/
4194
4195 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
4196
4197         * as/mcs51/i51mch.c (machine): fixed warning
4198
4199 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
4200
4201         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
4202
4203 2006-09-09 Borut Razem <borut.razem AT siol.net>
4204
4205         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
4206           sdcdb WIN32 native port
4207         * src/clean.mk: fixed
4208
4209 2006-09-08 Borut Razem <borut.razem AT siol.net>
4210
4211         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
4212
4213 2006-09-08 Raphael Neider <rneider AT web.de>
4214
4215         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
4216         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
4217             to gplink to disable processor mismatch warning and to allow
4218             the use of devices with only aliased (shared) memory banks,
4219           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
4220
4221 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4222
4223         * doc/sdccman.lyx: Some re-formating plus example on using
4224           #pragma preproc_asm +/-
4225
4226 2006-09-07 Borut Razem <borut.razem AT siol.net>
4227
4228         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
4229           section
4230
4231 2006-09-06 Borut Razem <borut.razem AT siol.net>
4232
4233         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
4234           line at sdcc.nsi:153
4235         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
4236
4237 2006-09-05 Borut Razem <borut.razem AT siol.net>
4238
4239         * configure.in, configure: support for winsock2
4240         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
4241           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
4242           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
4243           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
4244           debugger/mcs51/symtab.h: sdcdb WIN32 native port
4245
4246 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
4247
4248         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
4249           and OP_DEFS
4250         * support/regression/tests/bug1551947.c: new, added
4251         * src/SDCCsymt.h: strings are char* not byte*
4252
4253 2006-09-05 Raphael Neider <rneider AT web.de>
4254
4255         * device/lib/pic16/libdev/pic18f4550.c,
4256           device/include/pic16/pic18f4550.h: added PORTD/TRISD
4257             declarations/definitions from patch #1520949
4258
4259 2006-09-05 Raphael Neider <rneider AT web.de>
4260
4261         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
4262           byte-aligned bitfields, fixes #1539278
4263
4264 2006-09-05 Raphael Neider <rneider AT web.de>
4265
4266         * src/pic/gen.c (genReceive): skip unreferenced arguments,
4267           fixes #1544120
4268
4269 2006-09-04 Borut Razem <borut.razem AT siol.net>
4270
4271         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
4272         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
4273           -mno-cygwin is a part of the compiler name
4274         * support/scripts/sdcc_mingw32: don't disable ucsim
4275
4276 2006-09-03 Borut Razem <borut.razem AT siol.net>
4277
4278         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
4279         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
4280
4281 2006-09-03 Raphael Neider <rneider AT web.de>
4282
4283         * src/pic/ralloc.c,
4284         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
4285           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
4286           fixes #1550049
4287
4288 2006-09-01 Borut Razem <borut.razem AT siol.net>
4289
4290         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
4291           to make ppc-osx happy
4292
4293 2006-08-31 Borut Razem <borut.razem AT siol.net>
4294
4295         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
4296         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
4297         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
4298         * support/regression/ports/ds390/spec.mk,
4299           support/regression/ports/mcs51/spec.mk,
4300           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
4301           To run regression tests in mingw environment:
4302           make DEV_NULL=NUL CC=gcc
4303
4304 2006-08-30 Borut Razem <borut.razem AT siol.net>
4305
4306         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
4307           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
4308           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
4309           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
4310           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
4311           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
4312           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
4313           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
4314           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
4315           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
4316           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
4317           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
4318           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
4319           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
4320           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
4321           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
4322           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
4323           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
4324           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
4325           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
4326           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
4327           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
4328           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
4329           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
4330           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
4331           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
4332           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
4333           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
4334           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
4335           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
4336           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
4337           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
4338           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
4339           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
4340           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
4341           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
4342           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4343           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
4344           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
4345           ucsim WIN32 native port
4346
4347 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4348
4349         * doc/sdccman.lyx: added note on dynamic memory heap initialization
4350
4351 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4352
4353         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
4354         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
4355
4356 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
4357
4358         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
4359         * support/regression/tests/bug1546986.c: new, added
4360         * as/mcs51/.cvsignore,
4361         * debugger/mcs51/.cvsignore,
4362         * src/.cvsignore: deleted
4363
4364 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4365
4366         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
4367           definitions)
4368
4369 2006-08-20 Borut Razem <borut.razem AT siol.net>
4370
4371         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
4372           removed cl_listen_console::match(), cl_console::match(),
4373           restructured cl_commander::proc_input()
4374
4375 2006-08-16 Borut Razem <borut.razem AT siol.net>
4376
4377         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
4378           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
4379           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
4380
4381 2006-08-14 Borut Razem <borut.razem AT siol.net>
4382
4383         * support/regression/Makefile.in,
4384           support/regression/ports/pic14/gpsim.cmd,
4385           support/regression/ports/pic14/spec.mk,
4386           support/regression/ports/pic14/support.c:
4387           added pic14 regression test
4388
4389 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
4390
4391         * as/doc/asxhtm.html: documented changed ABS behaviour
4392         * as/doc/README: fixed some typos
4393
4394 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
4395
4396         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
4397           not defined on host
4398
4399 2006-08-12 Borut Razem <borut.razem AT siol.net>
4400
4401         * support/regression/fwk/include/testfwk.h,
4402           support/regression/fwk/lib/testfwk.c,
4403           support/regression/generate-cases.py,
4404           support/regression/Makefile.in:
4405           regression test framework does not depend on function pointers and
4406           variable arguments
4407
4408 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
4409
4410         * device/include/stddef.h: c temporary hack to fix bug 1518273
4411
4412 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4413
4414         * device/include/mcs51/cc2510fx.h: added
4415         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
4416           to projects.
4417
4418 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
4419
4420         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
4421         * as/z80/Makefile.in: added strcmpi.c
4422         * as/z80/z80adr.c: added upper case registers and lower case conditionals
4423         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
4424
4425 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
4426
4427         * device/lib/gbz80/asm_strings.s,
4428         * device/lib/gbz80/crt0_rle.s,
4429         * device/lib/gbz80/div.s,
4430         * device/lib/gbz80/mul.s,
4431         * device/lib/gbz80/shift.s,
4432         * device/lib/z80/asm_strings.s,
4433         * device/lib/z80/crt0_rle.s,
4434         * device/lib/z80/div.s,
4435         * device/lib/z80/mul.s,
4436         * device/lib/z80/shift.s: changed to all lower case menmonics except the
4437           flags which are all upper case
4438
4439 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
4440
4441         * as/z80/asm.h: made CASE_SENSITIVE 1
4442         * link/z80/aslink.h: made CASE_SENSITIVE 1
4443         * src/z80/gen.c (throughout): made all conditionals upper case
4444         * support/regression/tests/bug1503067.c: new
4445
4446 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
4447
4448         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
4449           (shiftIntoPair): added case 2 for PAIR_IY,
4450           (setupToPreserveCarry): replaced parameters with iCode and check if
4451            PAIR_DE is in use to fix bug 1399290,
4452           (genPlus, genMinus): updated call to setupToPreserveCarry
4453         * support/regression/tests/bug1399290.c: new
4454
4455 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
4456
4457         * device/lib/Makefile.in (Z80SOURCES): enabled float support
4458         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
4459         * src/ds390/gen.c (shiftRLong),
4460         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
4461         * src/mcs51/gen.c (sameReg): changed to sameByte,
4462           (xch_a_aopGet): new,
4463           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
4464            shiftRLong): fixed bug 1533966
4465         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
4466           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
4467         * support/regression/Makefile.in: disabled z80, enabled ucz80
4468         * support/regression/tests/float_trans.c: enabled test for z80 and host
4469         * support/regression/tests/shifts2.c: new, for testing bug 1533966
4470
4471 2006-08-01 Borut Razem <borut.razem AT siol.net>
4472
4473         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
4474           comparison is always false due to limited range of data type
4475           on PPC64 machine (openpower-linux1) where "char = unsigned char"
4476
4477 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
4478
4479         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
4480         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
4481         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
4482         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
4483
4484 2006-07-31 Borut Razem <borut.razem AT siol.net>
4485
4486         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
4487           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
4488           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
4489           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
4490           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
4491           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
4492           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
4493           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
4494           enable ucsim mingw compilation. Serial port is disabled,
4495           since it uses termios.h API, which is not available on native
4496           WIN32
4497
4498 2006-07-31 Borut Razem <borut.razem AT siol.net>
4499
4500         * Small Device C Compiler 2.6.0 released
4501         * support/scripts/sdcc.nsi: added FULL_DOC option
4502         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
4503
4504 2006-07-28 Borut Razem <borut.razem AT siol.net>
4505
4506         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
4507         * doc/INSTALL.txt: updated
4508
4509 2006-07-27 Borut Razem <borut.razem AT siol.net>
4510
4511         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
4512           device/lib/pic/libdev/Makefile.in: fixed bug
4513           [ 1438354 ] pic libsdcc: distclean doesn't work
4514         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
4515           device/lib/pic16/libio/Makefile.in: fixed bug
4516           [ 1438344 ] pic16 lib: clean doesn't work properly
4517         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
4518
4519 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
4520
4521         * device/lib/pic/libsdcc/fsdiv.c,
4522         * device/lib/pic/libsdcc/fsmul.c,
4523         * device/lib/pic16/libsdcc/float/fsdiv.c,
4524         * device/lib/pic16/libsdcc/float/fsmul.c,
4525         * device/lib/_fsdiv.c,
4526         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
4527         * support/regression/tests/bug1520966.c: added
4528         * doc/knownbugs.html: removed [ 1520966 ] from the list
4529
4530 2006-07-25 Borut Razem <borut.razem AT siol.net>
4531
4532         * configure.in, configure, sdccconf_in.h: fixed bug
4533           [ 1519095 ] regression test onebyte.c fails on ppc64 host
4534         * doc/knownbugs.html: removed [ 1519095 ] from the list
4535
4536 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
4537
4538         * doc/knownbugs.html: added, contains list of known bugs at release
4539         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
4540
4541 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
4542
4543         * device/include/mcs51/compiler.h: added SFRX for xdata based special
4544           function registers and corrected defaults with additional warning
4545         * device/lib/malloc.c: cosmetic changes
4546         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
4547         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
4548           (fillGaps): and used it
4549
4550 2006-07-20 Raphael Neider <rneider AT web.de>
4551
4552         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
4553           output unless SDCCPICDEBUG is set
4554         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
4555           output if SILENT is set
4556
4557 2006-07-11 Borut Razem <borut.razem AT siol.net>
4558
4559         * doc/README.txt: updated
4560
4561 2006-07-10 Borut Razem <borut.razem AT siol.net>
4562
4563         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
4564           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
4565           in WIN32 installation
4566         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
4567           release candidate 1
4568
4569 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
4570
4571         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
4572         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
4573
4574 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
4575
4576         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
4577
4578 2006-07-06 Borut Razem <borut.razem AT siol.net>
4579
4580         * support/regression/tests/bitfields.c:
4581           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
4582         * support/regression/tests/constantRange.c:
4583           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
4584
4585 2006-07-04 Borut Razem <borut.razem AT siol.net>
4586
4587         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
4588           src/port.mk,
4589           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
4590           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
4591           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
4592           reverted changes from 2006-07-03
4593         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
4594         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
4595           added CPPFLAGS, used by the host port
4596
4597 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
4598
4599         * support/regression/valdiag/tests/switch.c,
4600         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
4601         * support/regression/tests/libmullong.c: fixed for host
4602         * support/regression/ports/host/spec.mk: disable all warnings for host,
4603         SDCC runs with --less-pedantic too
4604
4605 2006-07-03 Borut Razem <borut.razem AT siol.net>
4606
4607         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
4608           defined CPPFLAGS
4609         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
4610         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
4611           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
4612           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
4613           include ../port.mk
4614         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
4615           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
4616           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
4617           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
4618
4619 2006-07-02 Raphael Neider <rneider AT web.de>
4620
4621         * src/pic16/devices.inc,
4622         * device/include/pic16/pic18fregs.h,
4623         * device/include/pic16/pic18f4550.h,
4624         * device/lib/pic16/pics.all,
4625         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
4626
4627 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
4628
4629         * as/hc08/lkaomf51.c (OutputName),
4630         * as/mcs51/lkaomf51.c (OutputName),
4631         * as/z80/asmain.c (asmbl),
4632         * src/ds390/main.c (asmLineNodeFromLineNode),
4633         * src/hc08/ralloc.c (hc08_assignRegisters),
4634         * src/mcs51/main.c (asmLineNodeFromLineNode),
4635         * src/xa51/ralloc.c (checkRegMask),
4636         * src/xa51/gen.c (emitcode),
4637         * src/z80/gen.c (_emit2),
4638         * src/SDCCast.c (searchLitOp),
4639         * src/SDCCglobl.h,
4640         * support/packihx/packihx.c,
4641         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
4642         * src/ds390/gen.c (aopPutUsesAcc),
4643         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
4644         * support/regression/tests/libmullong.c (mullong_wrapper),
4645         * src/SDCCsymt.c (powof2),
4646         * src/SDCCast.c,
4647         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
4648         * src/SDCCsymt.h: added TYPE_TARGET_*
4649         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
4650         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
4651         SDCCast because 1) header problems 2) this is the right place
4652         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
4653         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
4654         prototype
4655
4656 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
4657
4658         * src/SDCCicode.h: removed buggy semicolon in unused macro
4659         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
4660         search for previous definiton of auto symbols too,
4661         (findPrevUse): fixed logic of emitWarnings
4662
4663 2006-06-26 Raphael Neider <rneider AT web.de>
4664
4665         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
4666           PCLATH and PCLATU on interrupts, potentially fixes #1505141
4667
4668 2006-06-25 Raphael Neider <rneider AT web.de>
4669
4670         * device/lib/pic/libm: NEW, added math library functions
4671         * device/lib/pic/libsdcc: NEW; added float support functions
4672         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
4673         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
4674           NEW, added math related headers
4675         * device/include/asm/pic/features.h: NEW
4676         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
4677           (popGet): allow larger offsets for AOP_PCODE,
4678           (genDataPointerSet): handle literals explicitly, more debug output,
4679           (genAssign): fixed for float using aopLiteral ;-)
4680         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
4681           GOTO initialisation routine
4682         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
4683           flag on registers, fixes #1469043 (local variables do not work)
4684         * src/pic/main.c (_pic14_do_link),
4685         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
4686           available
4687
4688 2006-06-25 Borut Razem <borut.razem AT siol.net>
4689
4690         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
4691           characters printed (not including the trailing '\0' used to end
4692           output to strings). Problem detected in regression test bug-927659.c.
4693           NOTE: printf() family functions should return int instead
4694           unsigned int!
4695         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
4696           specifier are printed as themselves
4697         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
4698           support flags, width and precision specifiers
4699
4700 2006-06-24 Borut Razem <borut.razem AT siol.net>
4701
4702         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
4703           to the list of sdcc tagrets not supporting bit type
4704         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
4705           testfor pic16 due to bug:
4706           [ 1511794 ] pic16: regression test bug-895992.c fails
4707
4708 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
4709
4710         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
4711         * src/SDCCglue.c (initPointer), fixed bug 1496419
4712         * support/regression/tests/bug1496419.c: new, added
4713
4714 2006-06-22 Borut Razem <borut.razem AT siol.net>
4715
4716         * support/regression/ports/pic16/support.c: use gpsim usart module from
4717           libgpsim_modules library
4718
4719 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4720
4721         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
4722         IP0H to IPH0.
4723
4724 2006-06-19 Raphael Neider <rneider AT web.de>
4725
4726         * src/pic/glue.h,src/pic16/glue.h: added prototypes
4727         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
4728           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
4729           (pic14printExterns,pic14printPublics,pic16printPublics,
4730           pic16_printExterns): use new functions to emit symbols
4731           (picglue,pic16glue): emit publics before emitting externs
4732         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
4733           locally defined functions to avoid bug #1443651
4734         * support/regression/tests/bug-716242.c: removed pic16 workaround
4735         * support/regression/ports/pic16/spec.mk: ignore errors during build
4736
4737 2006-06-19 Raphael Neider <rneider AT web.de>
4738
4739         * src/pic/glue.h: added pic14aopLiteral prototype
4740         * src/pic/glue.c (pic14aopLiteral): return unsigned int
4741         * src/pic/gen.c: removed stdint.h dependency
4742           (aopGet): use Safe_strdup()
4743           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
4744           (genDataPointerSet): use pic14aopLiteral()
4745         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
4746           for pic16; thanks to Bernhard and Maarten
4747
4748 2006-06-18 Borut Razem <borut.razem AT siol.net>
4749
4750         * support/regression/tests/structflexarray.c: flexible array members
4751           not supported by gcc < 3
4752         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
4753           GUI tool by default
4754         * src/pic/gen.c: don't include [p]strdin.h on solaris
4755         * support/Util/pstdint.h: addad svn attributes
4756         * support/regression/tests/constantRange.c,
4757           support/regression/tests/rotate.c: include inttypes.h instead
4758           stdint.h on solaris, addad svn attributes
4759
4760 2006-06-18 Raphael Neider <rneider AT web.de>
4761
4762         * src/SDCCsymt.c (initCSupport): change return type of divschar to
4763           int for PIC16
4764         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
4765           (pic16_genMinusBits): simplified sign-extension
4766           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
4767             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
4768             adjusted to correctly handle mixed-signed operands, disabled
4769             now unused multiplciation routines
4770         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
4771           (assignResultValue): added argument denoting the size of the result
4772             as returned by the function (fixes upcasts in assigning from
4773             function calls: char foo(); int i = foo();)
4774           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
4775             function result to assignResultValue
4776           (genMult): disabled inlined multiplication code
4777           (genDiv): augmented to also handle the modulus operator, fixed to
4778             handle mixed-signed operands correctly
4779           (genMod): simply call genDiv, disabled unused code
4780           (genAssign): fixed missing (sign-)extension on result
4781         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
4782             valid char operands, allow signed operands for native code, added
4783             division and modulo operator handling
4784         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
4785
4786         As a consequence, onebyte.c (if split into two files) and muldiv.c
4787         pass regression tests.
4788
4789 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4790
4791         * doc/Makefile.in: two runs of makeindex seem needed to get
4792         correct page references in the index of sdccman.pdf
4793         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
4794
4795 2006-06-17 Borut Razem <borut.razem AT siol.net>
4796
4797         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
4798
4799 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4800
4801         * doc/sdccman.lyx: updated, added (porting source code, debugging),
4802         mentioned ec2drv and paulmon
4803
4804 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
4805
4806         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
4807           consecutive abs areas
4808           (find_empty_space, allocate_space): added map to handle codemap or
4809            xdatamap,
4810           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
4811            absolute idata and xdata
4812         * as/mcs51/lkmem.c (summary2): updated legend
4813
4814 2006-06-16 Raphael Neider <rneider AT web.de>
4815
4816         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
4817
4818 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
4819
4820         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
4821           1208515
4822         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
4823
4824 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
4825
4826         * src/port.h (struct PORT): added field gp_tags, to hold the tag
4827         value of generic pointers,
4828         * src/avr/main.c,
4829           src/ds390/main.c,
4830           src/hc08/main.c,
4831           src/izt/i186.c,
4832           src/izt/tlcs900h.c,
4833           src/mcs51/main.c,
4834           src/pic/main.c,
4835           src/pic16/main.c,
4836           src/xa51/main.c,
4837           src/z80/main.c: PORT structure, added elements for gp_tags field,
4838         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
4839         fields in the PORT structure of each port,
4840         * src/SDCCast.c (decorateType): allow processing of generic pointers
4841         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
4842         S_FIXED symbols
4843
4844 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
4845
4846         * link/z80/lkgb.c,
4847         * link/z80/lkgg.c,
4848         * src/pic16/gen.c,
4849         * src/pic16/main.c,
4850         * src/pic16/pcode.c,
4851         * src/pic/main.c,
4852         * src/pic/pcoderegs.c,
4853         * src/SDCCicode.c,
4854         * src/SDCCmain.c,
4855         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
4856           bug 1504689 on minGW
4857
4858 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4859
4860         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
4861
4862 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
4863
4864         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
4865
4866 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
4867
4868         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
4869           for optimization
4870
4871 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
4872
4873         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
4874         to a char variable. Fixed bug #1504211
4875         * device/include/pic16/adc.h,
4876         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
4877         and fixed bug #1364390
4878
4879 2006-06-10 Borut Razem <borut.razem AT siol.net>
4880
4881         * CVSROOT: removed the CVS left-over
4882
4883 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
4884
4885         * as/hc08/asmain.c (asexit),
4886         * as/hc08/lkmain.c (lkexit),
4887         * as/mcs51/asmain.c (asexit),
4888         * as/mcs51/lkmain.c (lkexit),
4889         * src/SDCCglue.c (DEFSETFUNC),
4890         * src/SDCCmain.c (linkEdit, assemble),
4891         * support/librarian/sdcclib.c (AddRel),
4892           replaced unlink() by standard C remove()
4893         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
4894         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
4895           gatherImplicitVariables): new, added to fix bug 608752,
4896           (createFunction): added gatherImplicitVariables()
4897         * src/SDCCast.h: added createRMW prototype
4898         * src/SDCCsymt.h (struct symbol): added infertype
4899         * support/regression/tests/bug608752.c: new, added
4900
4901 2006-06-10 Raphael Neider <rneider AT web.de>
4902
4903         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
4904           multibyte dummy reads (fixes #1503234)
4905
4906 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
4907
4908         * device/include/mcs51/compiler.h: new, added header file to enable
4909           creating common sfr definition header files for different compilers
4910
4911 2006-06-05 Raphael Neider <rneider AT web.de>
4912
4913         * src/pic16/{pcode.h,genarith.c}:
4914           introduced pCodeOp combining any two pCodeOps (previously only
4915           two register operands could be combined), removed pcop2 from
4916           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
4917         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
4918         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
4919           rewritten to use new PO_TWO_OPS
4920         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
4921         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
4922           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
4923           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
4924           (pic16_get_op): embraced return arg to allow #define return(x),
4925             added new case for combined opcodes
4926           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
4927           (pic16_pCode2str,pic16_getRegFrompCodeOp,
4928            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
4929
4930 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
4931
4932         * src/SDCCval.c (checkConstantRange): added
4933         * src/SDCCval.h: added checkConstantRange
4934         * support/Util/SDCCerr.c,
4935         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
4936         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
4937         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
4938         * src/SDCCast.c (decorateType): added checkConstantRange,
4939         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
4940         can be emitted with the correct always true/false warning,
4941         added optimization for double '!';
4942         result of decorateType() must be assigned back to the tree, because
4943         decorateType() can change the tree
4944         * src/SDCCicode.c (geniCodeLogic),
4945         (geniCodeAssign): replaced new checkConstantRange, added warnings,
4946         (checkConstantRange): removed, it was only a fragment which never
4947         emitted a warning
4948         * src/SDCCsymt.c (computeType): fixed promotion for
4949         "-1 < (unsigned bit) b"
4950         * src/pic/ralloc.c (packRegsForAssign),
4951         * src/pic16/ralloc.c (packRegsForAssign),
4952         * src/hc08/ralloc.c (packRegsForAssign),
4953         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
4954         from mcs51
4955         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
4956         * support/regression/tests/constantRange.c: added
4957         * support/valdiag/tests/constantRange.c: added
4958         * support/valdiag/valdiag.py: added -DPORT_HOST=1
4959
4960 2006-06-02 Borut Razem <borut.razem AT siol.net>
4961
4962         * support/regression/ports/pic16/support.c: increase stack size
4963           to 255 bytes
4964         * support/regression/Makefile.in: sort tests by name so that the
4965           resutlts can be compared on different machines / platforms
4966
4967 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
4968
4969         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
4970         * src/ds390/gen.c (emitLabel): new, added,
4971           (genDjnz): fixed stack overflow bug,
4972           (throughout): cosmetic changes to sync with mcs51/gen.c,
4973           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
4974         * src/mcs51/gen.c (genEndFunction): small optimization,
4975           (throughout): cosmetic changes to sync with ds390/gen.c
4976
4977 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
4978
4979         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
4980           (_print_format): fixed printing pointers
4981         * src/mcs51/gen.c (emitLabel, movb): new, added,
4982           (genAssign): small optimization,
4983           (genDjnz): fixed stack overflow bug,
4984           (throughout): replaced sprintf with SNPRINTF,
4985           replaced mcs51_regWithIdx with REG_WITH_INDEX,
4986           replaced emitcode("mov", "b,...") with MOVB(...),
4987           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
4988           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
4989         * src/mcs51/peeph.def: added rules 140 and 264
4990         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
4991           so they may get optimized into registers
4992
4993 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
4994
4995         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
4996           immediately when encountered,
4997           (printUsage): always use stderr even on windows
4998
4999 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
5000
5001         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
5002         (processParms): fixed bug #1247551
5003         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
5004         parseCmdLine, main): print '--version' to stdout,
5005         print 'help' to stdout if --help is given,
5006         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
5007         arguments are given; fixed --help
5008
5009 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
5010
5011         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
5012         * support/regression/tests/bug-1493710.c: added
5013
5014 2006-05-27 Borut Razem <borut.razem AT siol.net>
5015
5016         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
5017           static instead auto
5018         * support/regression/ports/pic16/support.c: increase stack size
5019           from default 64 bytes to 128 bytes
5020         * support/regression/tests/staticinit.c,
5021           support/regression/tests/float.c: regression tests fully enabled
5022           for pic16 port by putting the initialized data arrays into the code
5023           section
5024         * support/regression/ports/pic16/spec.mk: don't link default libraries.
5025           This was changed by mistake in the previous version.
5026
5027 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
5028
5029         * src/pic16/gen.c (genFunction, genEndFunction): some
5030         beautifications, fixed bug with falsely restoring FSR2 in large
5031         stack model, thanks to Beau E. Cox for reporting the bug
5032
5033 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
5034
5035         * debugger/mcs51/break.c,
5036         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
5037           use %p to print pointers, made address variables unsigned
5038         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
5039         * debugger/mcs51/symtab.c (parseSymbol): must return something
5040         * src/mcs51/gen.c (aopForSym): small optimization,
5041            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
5042           (freeAsmop): added missing break,
5043           (aopPut): removed parameter bvolatile, determine it inside the function,
5044           (saveRegisters, unsaveRegisters): small optimization,
5045           (genIpush): removed pointless check,
5046           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
5047           replaced sprintf with SNPRINTF,
5048           replaced strcpy with strncpyz,
5049           updated aopPut calls,
5050           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
5051         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
5052
5053 2006-05-24 Borut Razem <borut.razem AT siol.net>
5054
5055         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
5056           modification of test for the pic16 port, put the array to the code
5057           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
5058
5059 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5060
5061         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
5062         * support/Util/pstdint.h: added
5063
5064 2006-05-22 Borut Razem <borut.razem AT siol.net>
5065
5066         * src/regression/Makefile: removed bool2.c test, added -q linker option
5067         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
5068           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
5069           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
5070           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
5071           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
5072           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
5073           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
5074           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
5075           define SUPPORT_BIT_TYPES 0, removed unused bit variables
5076
5077 2006-05-22 Raphael Neider <rneider AT web.de>
5078
5079         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
5080           bug #1492360 (problematic due to generic pointers, see code)
5081
5082 2006-05-22 Borut Razem <borut.razem AT siol.net>
5083
5084         * support/regression/ports/pic16/specs.mk: removed stack size linker
5085           directive
5086         * support/regression/tests/array.c,
5087           support/regression/tests/bitopcse.c,
5088           support/regression/tests/bug-908454.c,
5089           support/regression/tests/malloc.c: modified for pic16 regression test
5090         * support/regression/tests/bitfields.c:
5091           pic16 - excluded bitfileds of size > 8
5092         * support/regression/tests/bp.c: pic16 - reduced data size
5093         * support/regression/tests/bug-221100.c: pic16 - reduced data size
5094         * support/regression/tests/bug-460010.c:
5095           pic16 - used the absolute address the fits in memory
5096         * support/regression/tests/bug-716242.c:
5097           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
5098         * support/regression/tests/float.c:
5099           pic16 - excluded - data size too big
5100         * support/regression/tests/onebyte.c:
5101           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
5102         * support/regression/tests/shifts.c:
5103           pic16 - function names probably have to differ in first X characters
5104           (gpasm limitation?)
5105         * support/regression/tests/staticinit.c:
5106           pic16 - excluded some tests due error: no target memory available for
5107           section ".idata"
5108
5109 2006-05-22 Borut Razem <borut.razem AT siol.net>
5110
5111         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
5112           second try. Thanks Stas Sergeev once more.
5113
5114 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
5115
5116         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
5117           (genLeftShift, genRightShift): fixed bug 1491627
5118         * src/hc08/peeph.def (rules 7, 8.x): added
5119         * support/regression/tests/shifts.c (ShiftLeftByParam,
5120           ShiftRightByParam, testShiftByParam): added to test variable shifting
5121
5122 2006-05-20 Raphael Neider <rneider AT web.de>
5123
5124         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
5125         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
5126           (allocReg): add only new registers to dynAllocRegs,
5127           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
5128             #1489055, #1445850, and probably #1483693
5129
5130 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
5131
5132         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
5133         bug in for-loop that didn't emit the last of CONFIG and ID registers
5134
5135 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
5136
5137         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
5138           with offset
5139         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
5140           1489016, 1434401 and 1490124
5141         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
5142           1489016, 1434401 and 1490124
5143
5144 2006-05-17 Borut Razem <borut.razem AT siol.net>
5145
5146         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
5147           thanks Stas Sergeev
5148
5149 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5150
5151         * device/include/mcs51/P89c51RD2.h,
5152         * device/include/mcs51/P89LPC901.h,
5153         * device/include/mcs51/P89LPC922.h,
5154         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
5155
5156 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
5157
5158         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
5159         to fix missing stack pragma in compiled binary object file,
5160
5161 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
5162
5163         * support/packihx/configure.in,
5164         * support/packihx/configure: removed warning, autoconf >= 2.5x can
5165         determine sizeof basic types even while cross compiling
5166
5167 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
5168
5169         * src/avr/gen.c (aopop),
5170         * src/ds390/gen.c (aopOp),
5171         * src/hc08/gen.c (aopOp),
5172         * src/mcs51/gen.c (aopop),
5173         * src/pic16/gen.c (pic16_aopOp),
5174         * src/pic/gen.c (aopOp),
5175         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
5176         if size of operand is smaller than spill location
5177
5178 2006-05-12 Borut Razem <borut.razem AT siol.net>
5179
5180         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
5181           have to have CR/LF line endings even if they are checked out on *nix
5182           or on WIN32 in cygwin binmode
5183
5184 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
5185
5186         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
5187         * device/include/ds80c390.h: added sfr16 definitions
5188         * src/ds390/gen.c,
5189         * src/ds390/gen.h,
5190         * src/ds390/main.c,
5191         * src/ds390/ralloc.c,
5192         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
5193           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
5194           bit returning functions
5195         * support/regression/tests/sfr16.c: enabled test on ds390
5196
5197 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5198
5199         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
5200         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
5201
5202 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
5203
5204         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
5205         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
5206           (cl_address_space constructor): removed expensive initialization,
5207           (cl_address_space::get_cell): extended for late initialization,
5208           (cl_address_space::*): use late initialization,
5209           (cl_address_decoder::activate): removed expensive initialization,
5210           This reduced regression test running time by 25%
5211
5212 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
5213
5214         * packihx/,
5215         * configure.in,
5216         * configure,
5217         * sdcc.dsw,
5218         * Makefile.bcc,
5219         * Makefile.in,
5220         * support/packihx/Makefile.in,
5221         * support/packihx/clean.mk,
5222         * support/packihx/Makefile.bcc,
5223         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
5224
5225 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5226
5227         * src/SDCCval.c (valNot): fix for regression test failure
5228           of not.c on big endian hosts
5229
5230 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
5231
5232         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
5233
5234 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5235
5236         * device/lib/mcs51/Makefile.in: changed string comparison operator
5237           to = for POSIX compliance; == is bash extension
5238
5239 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
5240
5241         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
5242           kosmonaut_pirx
5243
5244 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
5245
5246         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
5247         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
5248         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
5249         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
5250         bug report #1478657,
5251
5252 2006-05-05 Borut Razem <borut.razem AT siol.net>
5253
5254         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
5255           making the html
5256
5257 2006-05-02 Borut Razem <borut.razem AT siol.net>
5258
5259         * doc/Makefile.in: removed *.ind dependency since there is no rule to
5260           create *.ind, which made make to fail if invoked with -j 2
5261
5262 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
5263
5264         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
5265           Hubert Sack for patch 1479782
5266
5267 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
5268
5269         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
5270
5271 2006-05-01 Raphael Neider <rneider AT web.de>
5272
5273         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
5274           (create_pic): store only prefix-free device name,
5275           (init_pic): check for device names with "16" prefix,
5276           (list_valid_pics),
5277         * src/pic/device.h (struct PIC_device),
5278         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
5279             stored device name,
5280         * device/include/pic/pic12f{635,675,629,683}.h,
5281         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
5282         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
5283         * device/include/pic/pic16f505.h,
5284         * device/lib/pic/libdev/pic16f505.c: removed
5285         * device/include/pic/pic14devices.txt: added support for pic12f
5286             devices, removed unsupported non 16-bit devices
5287             [above changes provided by patch from Zik Saleeba]
5288         * src/pic/*, src/pic16/*, device/include/pic16/*,
5289           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
5290
5291 2006-05-01 Borut Razem <borut.razem AT siol.net>
5292
5293         * configure.in, configure, doc/Makefile.in:
5294           sync with nightly build makefile - latex, dvipdf and dvips
5295           not needed any more
5296
5297 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
5298
5299         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
5300         in the library source
5301
5302 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
5303
5304         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
5305
5306 2006-04-28 Raphael Neider <rneider AT web.de>
5307
5308         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
5309         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
5310           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
5311         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
5312
5313 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
5314
5315         * device/lib/pic/libdev/Makefile.in,
5316         * device/lib/hc08/Makefile.in,
5317         * device/lib/gbz80/Makefile.in,
5318         * device/lib/z80/Makefile.in,
5319         * device/lib/ds390/Makefile.in,
5320         * device/lib/ds400/Makefile.in: added srcdir to include search path,
5321         thanks to Borut for the bug report
5322         * configure.in,
5323         * configure: always create doc/Makefile independent from --enable-doc
5324         * Makefile.in: always install from directory doc independent from
5325         --enable-doc
5326         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
5327         removed
5328         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
5329         * doc/Makefile.in: install *.txt if present
5330         * device/include/Makefile.in (install): added installation of pic/*.inc
5331         and pic/*.txt files again, they were erroneously removed
5332
5333 2006-04-28 Raphael Neider <rneider AT web.de>
5334
5335         * src/pic/{gen.c,main.h,pcode.c},
5336         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
5337             concerning signedness with casts
5338
5339 2006-04-28 Raphael Neider <rneider AT web.de>
5340
5341         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
5342             definition of an interrupt handler,
5343         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
5344             interrupt handler stuff from picglue() to separate routine,
5345           (picglue): enabled definition of intr handlers in files w/o main()
5346
5347 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5348
5349         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
5350           compilation with MSVC 2005 Express Edition (VC8)
5351
5352 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
5353
5354         * device/lib/Makefile: fixed build of gbz80 lib
5355
5356 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5357
5358         * support/regression/tests/bug-460010.c,
5359         * support/regression/tests/bug-524691.c,
5360         * support/regression/tests/bug-716242.c: removed conditional defines
5361           that are already in testfwk.h
5362
5363 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
5364
5365         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
5366           (AccAXRsh1): added, shift right by 1,
5367           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
5368            AccAXLrl1
5369         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
5370
5371 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
5372
5373         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
5374         remove cast to same type
5375         * src/SDCCast.c (decorateType): fix for RFE 1475742,
5376         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
5377         * as/z80/Makefile,
5378         * link/z80/Makefile: removed, they have moved to
5379         Makefile.in files
5380         * configure,
5381         * configure.in: replaced duplicate message about ucsim by missing sdcpp
5382         * install-sh: fix bug #1204398 by setting umask 0022
5383         * device/lib/Makefile: separate build of z80 and gbz80 lib
5384
5385 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
5386
5387         Enabled VPATH feature: changed nearly all Makefiles (149 files).
5388         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
5389
5390         One basic decision: e.g. src/clean.mk includes further files. In order
5391         to make this work there are two solutions:
5392         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
5393           run configure on them. This way they can use
5394           'include $(srcdir)/port-clean.mk'
5395         - always include clean.mk by the Makefile at the same level. To avoid
5396           that `make clean` tries to include and build Makefile.dep the
5397           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
5398           implemented, because now even `make uninstall` doesn't create
5399           Makefile.in. clean.mk could be eliminated by pasting it in
5400           Makefile.in.
5401
5402         * debugger/mcs51/Makefile.in: build own objects from library sources
5403         (SLIB, SDCC) in current directory
5404
5405         * configure, configure.in: renamed --disable-device-lib-build in
5406         --disable-device-lib; added --enable-doc, the required tools are
5407         searched by configure; added result message; the toolchain for the
5408         belonging ports are now only built, if the port is enabled.
5409
5410         * support/regression/*: all output is written in directory gen, because
5411         the fwk and ports directories don't livet in the build tree using vpath
5412
5413         * doc/sdccman.lyx: renamed --disable-device-lib-build to
5414         --disable-device-lib, added --enable-doc, added section VPATH
5415
5416         * sim/ucsim/configure.in,
5417         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
5418         z80 are enabled by default
5419
5420 2006-04-24 Raphael Neider <rneider AT web.de>
5421
5422         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
5423             to config word, "pic14_"-prefixed some extern functions
5424           (pic14_emitConfigWord): emit __config directive(s) if assignment to
5425             config word has been found
5426         * src/pic/device.h: added prototypes
5427         * src/pic/pcode.c: added "pic14_"-prefix where needed
5428         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
5429             fixup
5430         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
5431             words,
5432           (pic14emitRegularMap): ignore config words,
5433           (pic14createInterruptVect): moved generating __config directives away
5434           (picglue): have __config directives emitted
5435
5436 2006-04-24 Borut Razem <borut.razem AT siol.net>
5437
5438         * doc/Makefile: sync with nightly build makefile
5439
5440 2006-04-24 Raphael Neider <rneider AT web.de>
5441
5442         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
5443             registers that have not been assigned proper liveranges,
5444             fixes #1469504 and #1474602,
5445           (pCodeRegOptimizeRegUsage): fixed typo in comment
5446
5447 2006-04-24 Borut Razem <borut.razem AT siol.net>
5448
5449         * device/examples/main8051.c: deleted - it was removed from CVS
5450           24.mar.2000 and after that modified 18.feb.2001, so it reappered
5451           after the transition to Subversion
5452         * src/SDCCalloc.h: deleted - it was removed  from CVS
5453           3.feb.2001 and after that modified 18.feb.2001, so it reappered
5454           after the transition to Subversion
5455         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
5456           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
5457           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
5458           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
5459
5460 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
5461
5462         * as/asx8051.dsp: added mcs51/strcmpi.h
5463         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
5464         * as/hc08/aslink.h: updated lnksect prototype
5465         * as/hc08/asm.h,
5466         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
5467         * as/hc08/asmain.c,
5468         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
5469           (newdot): handle A_ABS
5470         * as/hc08/asout.c,
5471         * as/mcs51/asout.c (outarea): output address
5472         * as/hc08/lkaomf51.c,
5473         * as/mcs51/lkaomf51.c: disabled unused array UsageType
5474         * as/hc08/m08pst.c,
5475         * as/mcs51/i51pst.c,
5476         * as/z80/z80pst.c: "ABS" is not A_OVR
5477         * as/hc08/lkarea.c (newarea): read a_addr,
5478           (lnkarea): added codemap array, sort absolute areas to the front,
5479            combine all GSINITx/GSFINAL,
5480           (find_empty_space, allocate_space): new functions,
5481           (lnksect): return next address, handle absolute sections
5482         * as/mcs51/lkarea.c (newarea): read a_addr,
5483           lnksect2 prototype changed,
5484           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
5485           (find_empty_space, allocate_space): new, factored out of lnksect2,
5486           (lnksect2): return next address, handle absolute sections
5487         * as/hc08/lkhead.c,
5488         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
5489         * as/hc08/lklibr.c (addfile, fndsym),
5490         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
5491           index out of range and detect both '\' and '/'
5492         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
5493         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
5494           regression tests (ds390 cannot return bool yet)
5495         * doc/sdccman.lyx: changed version number, document changed --no-peep,
5496           document critical interrupts on z80, document changed SDCC define
5497         * src/asm.c (_asxxxx_mapping): fixed .org directive,
5498           (_a390_mapping): added .org directive
5499         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
5500           (genMultOneByte): fixed warnings
5501         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
5502           ones
5503         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
5504         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
5505           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
5506         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
5507         * src/pic16/main.c: removed newReg prototype
5508         * src/pic16/pcode.c,
5509         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
5510           warnings
5511         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
5512           ones
5513         * src/pic16/ralloc.c
5514         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
5515           to fix warnings
5516         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
5517           from short to PIC_OPTYPE
5518         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
5519         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
5520           optype from short to PIC_OPTYPE
5521         * src/port.h: made int_size unsigned to fix warnings
5522         * src/SDCC.y: fixed warning on MSVC
5523         * src/SDCCicode.c (getArraySizePtr): return unsigned int
5524         * src/SDCCopt.c (convertToFcall): fixed warnings
5525         * src/SDCCsymt.h: removed double prototype for genSymName
5526         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
5527           offset int to fix warnings
5528
5529 2006-04-22 Borut Razem <borut.razem AT siol.net>
5530
5531         * doc/sdccman.lyx, */Makefile, */Makefile.in:
5532           references to CVS replaced with Subversion
5533
5534 2006-04-21 Borut Razem <borut.razem AT siol.net>
5535
5536         * doc/sdccman.lyx, */Makefile, */Makefile.in:
5537           references to CVS replaced with Subversion
5538
5539 2006-04-19 Borut Razem <borut.razem AT siol.net>
5540
5541         * src/version.awk: adapted for svn
5542         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
5543           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
5544           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
5545           /binutils-avr/etc/*.vi, *.jin: removed all properties
5546           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
5547
5548 2006-04-19 Borut Razem <borut.razem AT siol.net>
5549
5550         * CVS to Subversion migration completed
5551
5552 2006-04-18 Borut Razem <borut.razem AT siol.net>
5553
5554         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
5555           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
5556
5557 2006-04-17 Borut Razem <borut.razem AT siol.net>
5558
5559         * device/include/Makefile.in: added pic/*.inc to the installation
5560
5561 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
5562
5563         * support/regression/collate-results.py: fixed output in case of
5564         a valdiag error
5565         * support/regression/generate-cases.py: fixed splitting of pathnames
5566         with dots
5567         * as/hc08/lklibr.c (addfile),
5568         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
5569
5570 2006-04-11 Raphael Neider <rneider AT web.de>
5571
5572         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
5573         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
5574         * src/pic16/pcode.c (assignValnums): fixed #1460578
5575
5576 2006-04-11 Raphael Neider <rneider AT web.de>
5577
5578         * device/lib/pic/libdev/*.c,
5579         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
5580           fixes #1468739, enables compilation in --std-c99 mode
5581         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
5582
5583 2006-04-11 Raphael Neider <rneider AT web.de>
5584
5585         * src/pic/device.c (find_device): removed debug output
5586           (list_valid_pics): enabled verbose listing of supported devices
5587         * device/include/stdbool.h: define bool as char for pic14/16 as well
5588
5589 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5590
5591         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
5592
5593 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5594
5595         * .version: bumped version to 2.5.6
5596         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
5597
5598 2006-04-06 Raphael Neider <rneider AT web.de>
5599
5600         * .version: bumped version to 2.5.6 (pic14 ABI changed)
5601         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
5602         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
5603           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
5604             pic14_constructAbsMap
5605           (pic14printPublics): declare absolute global symbols as global
5606           (pic14createInterruptVect),
5607         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
5608           (newReg): assume new registers unused, use correct name in
5609             hashtable (reg->name instead of name), more debugLog output
5610         * src/pic/device.h (PIC_device): added fields for verbose output
5611         * src/pic/device.c: moved device definition to pic14devices.txt,
5612             added routines for runtime parsing of pic14devices.txt,
5613             added support for second config word
5614         * src/pic/main.c (_process_pragma): removed #pragma maxram,
5615           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
5616           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
5617           (_pic14_parseOptions): moved pCodeInitRegisters here
5618           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
5619         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
5620           (pCodeInitRegisters): rewrapped comments, perpared new approach to
5621             handling the pseudo stack
5622         * device/lib/Makefile.in: ignore failures in objects-pic16,
5623         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
5624         * device/lib/pic/NEWS: document new dependency on picXXX.lib
5625         * device/lib/pic/Makefile.subdir,
5626         * device/lib/pic16/Makefile.subdir: improved clean rules
5627         * device/lib/pic/libdev/: NEW, pic14 device libraries
5628         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
5629         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
5630         * device/include/Makefile.in: create subdir and install pic14 headers
5631         * device/include/pic/p16f_common.inc: removed unused declarations
5632         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
5633             PICs from inc2h.pl v1.6,
5634             replaced BIT_AT macros with struct declarations
5635         * device/include/pic/pic14devices.txt: definition of supported devices,
5636             all above improvements contributed by Zik Saleeba, thanks
5637         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
5638         * support/scripts/sdcc.nsi: also install pic14 device libraries and
5639             headers
5640
5641 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
5642
5643         * device/include/mcs51/c8051f410.h: added interrupt numbers,
5644         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
5645           thanks to Charles Olds
5646
5647 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5648
5649         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
5650
5651 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
5652
5653         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
5654         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
5655         * support/regression/bug1464657.c: added, new test
5656
5657 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5658
5659         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
5660           version number
5661
5662 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5663
5664         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
5665           --no-peep and --peep-file <file> are used don't use default rules but
5666           do use the <file>
5667
5668 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5669
5670         * src/mcs51/gen.c (genCall): fixed bug 1457608
5671
5672 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5673
5674         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
5675         changes seem to cause (trigger?) problems with the build system.
5676
5677 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
5678
5679         * src/SDCCpeeph.c (operandsLiteral): new, added,
5680           (callFuncByName): inserted operandsLiteral
5681         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
5682
5683 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5684
5685         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
5686         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
5687
5688 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
5689
5690         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
5691           implemented patch 1120823 Thanks to Willy De la Court (normal
5692           interrupts need an interrupt number now if they are made critical),
5693           and enabled nesting of critical functions though not for gbz80
5694           (genCritical, genEndCritical): added functions
5695           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
5696         * src/z80/mappings.i: added "ei" to all mappings
5697
5698 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5699
5700         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
5701         submitted by the Debian SDCC maintainer Aurelien Jarno:
5702         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
5703         archive with gcc 4.1 on mips and wrote the patch"
5704
5705 2006-03-16 Raphael Neider <rneider AT web.de>
5706
5707         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
5708           the left operand is shorter than the result (c* = lit-c* + int),
5709           fixes bug #1450796
5710         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
5711           OP_SYMBOL
5712
5713 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
5714
5715         * src/.version: increased version number to 2.5.5
5716         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
5717         linking is done manually in pic16 port's _linkEdit,
5718         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
5719         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
5720         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
5721         allocate asmop as AOP_ACC,
5722         (aopForRemat): added parameter 'bool result' in function declaration,
5723         (pic16_aopGet): return AOP_ACC when accessing WREG,
5724         (pic16_popGetTempReg): minor modification,
5725         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
5726         'pic16_allocWithIdx',
5727         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
5728         calling function in absolute addresses,
5729         (genAssign): take into account AOP_ACC asmop,
5730         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
5731         * src/pic16/pcoderegs.c: some debug functions and lines added,
5732         * src/pic16/ralloc.c (decodeRegType): added but commented out,
5733         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
5734         register too,
5735         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
5736         call to allocReg, not by manually allocating a new one,
5737         (pic16_assignRegisters): now before going through the register
5738         allocating functions mark all registers as free. This eliminates some
5739         side effects resulting from peephole parser done earlier in the backbone
5740
5741 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
5742
5743         * src/SDCCicode.c (geniCodeLogic),
5744         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
5745
5746 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
5747
5748         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
5749           (genSend): bugfix, do not allocate and free twice,
5750           (shiftRLong): handle partially overlapping aops
5751         * support/regression/tests/bitopcse.c: fixed warning redefined idata
5752
5753 2006-03-08 Borut Razem <borut.razem AT siol.net>
5754
5755         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
5756           for pic16
5757
5758 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
5759
5760         * support/regression/tests/bug1409955.c: new, added
5761         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
5762         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
5763           (aopForSym, aopOp): increment asmop.allocated if reused,
5764           (freeAsmop): decrement asmop.allocated and check for zero instead of
5765           using asmop.freed,
5766           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
5767           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
5768            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
5769            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
5770            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
5771            genSignedRightShift, genRightShift, genDataPointerGet,
5772            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
5773            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
5774             in reverse order from allocation,
5775           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
5776             added swappedLR to keep track
5777         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
5778           pdata & code for GCC, z80, gbz80 & hc08
5779         * support/regression/tests/zeropad.c: moved defines to testfwk.h
5780
5781 2006-03-08 Raphael Neider <rneider AT web.de>
5782
5783         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
5784
5785 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
5786
5787         * device/include/mcs51/c8051f410.h: new SiLabs mcu
5788         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
5789         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
5790
5791 2006-03-06 Borut Razem <borut.razem AT siol.net>
5792
5793         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
5794           made the linker quiet
5795
5796 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
5797
5798         * src/pic16/gen.c (genPcall): fixed bug #1443644
5799         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
5800         which dumps before the function entry point a data byte which represents
5801         the number of the local variables used by the specified function, added
5802         'xinst' for initial support for Extended Instruction Support,
5803         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
5804         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
5805         port->fun_prefix anymore (may change later),
5806         (genFunction, genEndFunction): do not store/restore local registers for
5807         _main (this should take care the --main-return command line option in
5808         the future),
5809         (genOr): removed some legacy pic-port instructions,
5810         * src/pic16/genarith.c (genAddLit): re-enabled old code because
5811         performing operations with SFR's causes data to be written more than
5812         once to each SFR. Perhaps SFRs should be handled in special cases...
5813         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
5814         pcode.h
5815         * src/pic16/main.c (_process_pragma): stack bound checking did not take
5816         into account for stack starting position,
5817         (struct OPTIONS pic16_optionsTable): added command line argument
5818         --extended or -y for Extended Instruction Support,
5819         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
5820         (deassignLRs): *** perhaps the most important change, old 'for' code
5821         (commented out for reference), didn't account for some registers which
5822         were left marked 'not free' after a pointer operation. The change
5823         reduces register usage a lot in some cases
5824
5825 2006-03-04 Borut Razem <borut.razem AT siol.net>
5826
5827         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
5828           _clean
5829         * support/regression/tests/bug-524697.c: decreased array size for
5830           mcs51 to fit into the internal RAM
5831         * support/regression/Makefile.in: a little bit more verbose
5832
5833 2006-03-03 Borut Razem <borut.razem AT siol.net>
5834
5835         * support/regression/fwk/lib/testfwk.c,
5836           support/regression/fwk/include/testfwk.h: introduced function
5837           _prints(), nonrecursive _printn(), call _initEmu() from main()
5838         * support/regression/ports/gbz80/support.asm,
5839           support/regression/ports/ucz80/support.asm,
5840           support/regression/ports/z80/support.asm,
5841           support/regression/ports/ds390/support.c,
5842           support/regression/ports/hc08/support.c,
5843           support/regression/ports/host/support.c,
5844           support/regression/ports/mcs51/support.c,
5845           support/regression/ports/xa51/support.c: added empty _initEmu()
5846           function
5847         * support/regression/ports/pic16/gpsim.cmd,
5848           support/regression/ports/pic16/spec.mk,
5849           support/regression/ports/pic16/support.c,
5850           support/regression/Makefile.in: added pic16 regression test
5851
5852 2006-03-01 Raphael Neider <rneider AT web.de>
5853
5854         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
5855           genConstPointerGet): use safe way of generating MOVFF to cover
5856             literals as well as registers, fixes bug #1440527
5857         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
5858             dereference
5859           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
5860             more correctly, fixes bug #1232186
5861           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
5862         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
5863             gplink guess the correct processor in more cases, applied patch
5864             from Till Riedel attached to and fixing bug #1436552
5865
5866 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5867
5868         * support/regression/tests/array.c: added, contains check for #1434401
5869         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
5870
5871 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
5872
5873         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
5874         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
5875         * device/include/mcs51/c8051f326.h,
5876         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
5877         * device/include/mcs51/c8051f000.h,
5878         * device/include/mcs51/c8051f018.h,
5879         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
5880           PCON_IDLE,PCON_STOP and added sfr16 definitions
5881
5882 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
5883
5884         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
5885           genGetWord): fixed bug 1409955
5886
5887 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
5888
5889         * device/include/hc08/mc68hc908gp32.h,
5890         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
5891
5892 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
5893
5894         * src/SDCCast.c (constExprValue): return NULL if not a value
5895         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
5896         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
5897         * support/regression/tests/bitfields.c: enabled signed bitfield for all
5898
5899 2006-02-13 Borut Razem <borut.razem AT siol.net>
5900
5901         * src/regression/ptrarg.c: added, fails due to bug #1430967
5902         * src/regression/Makefile: ptrarg.c added, ...
5903
5904 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
5905
5906         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
5907         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
5908
5909 2006-02-11 Borut Razem <borut.razem AT siol.net>
5910
5911         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
5912           print "Processor: xxx" message to stdout only if --verbose
5913
5914 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
5915
5916         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
5917         * support/regression/tests/bug1426356.c: added
5918         * support/regression/tests/bitfields.c: removed 2 tests
5919
5920 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
5921
5922         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
5923         * device/include/mcs51/c8051f330.h,
5924         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
5925           PCON_IDLE,PCON_STOP and added sfr16 definitions
5926         * device/lib/_divsint.c,
5927         * device/lib/_divuint.c,
5928         * device/lib/_divulong.c,
5929         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
5930           register bank bug for small stackauto
5931
5932 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
5933
5934         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
5935
5936 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
5937
5938         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
5939         * all.dsp: corrected several bin paths
5940         * device/include/mcs51/c8051f120.h,
5941         * device/include/mcs51/c8051f300.h,
5942         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
5943           to PCON_IDLE,PCON_STOP
5944         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
5945         * device/lib/printf_large.c (output_float): fixed bug 1388703
5946         * support/regression/tests/bug1057979.c: added test for bug 1388703
5947
5948 2006-02-08 Raphael Neider <rneider AT web.de>
5949
5950         * src/pic/pcode.c (pciTRIS): fixed typo,
5951           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
5952           (LinkFlow): fixed handling of flows that end in a call,
5953           (ReuseReg): perform safety check earlier
5954         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
5955             to work with flows at the beginning of a pBlock,
5956             fixes #1426557 (Symbol not previously defined),
5957           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
5958             usage information
5959           (RemoveUnusedRegisters): update register usage info
5960         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
5961             created, reuse existing ones instead
5962         * src/pic/gen.c (genPcall): fixed #1424719
5963
5964 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
5965
5966         * link/z80/lkmain.c,
5967         * link/z80/lklex.c,
5968         * link/z80/lkdata.c,
5969         * link/z80/aslink.h: fixed build on current cygwin:
5970         replaced getline() by lk_getline()
5971
5972 2006-02-01 Borut Razem <borut.razem AT siol.net>
5973
5974         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
5975           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
5976           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
5977           src/regression/bool1.c, src/regression/bool2.c,
5978           src/regression/bool3.c, src/regression/call1.c,
5979           src/regression/compare.c, src/regression/compare10.c,
5980           src/regression/compare2.c, src/regression/compare3.c,
5981           src/regression/compare4.c, src/regression/compare5.c,
5982           src/regression/compare6.c, src/regression/compare7.c,
5983           src/regression/compare8.c, src/regression/compare9.c,
5984           src/regression/configword.c, src/regression/for.c,
5985           src/regression/inline.c, src/regression/mult1.c,
5986           src/regression/nestfor.c, src/regression/or1.c,
5987           src/regression/pointer1.c, src/regression/ptrfunc.c,
5988           src/regression/rotate1.c, src/regression/rotate2.c,
5989           src/regression/rotate3.c, src/regression/rotate4.c,
5990           src/regression/rotate5.c, src/regression/rotate6.c,
5991           src/regression/rotate7.c, src/regression/string1.c,
5992           src/regression/struct1.c, src/regression/sub.c,
5993           src/regression/sub2.c, src/regression/switch1.c,
5994           src/regression/while.c, src/regression/xor.c,
5995           src/regression/create_stc, src/regression/simulate,
5996           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
5997           regression tests
5998         * src/regression/gpsim_assert.h: added
5999
6000 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
6001
6002         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
6003         ((void (code *) (void)) 0) ();
6004         * as/hc08/aslex.c,
6005         * as/hc08/aslink.h,
6006         * as/hc08/asm.h,
6007         * as/hc08/asmain.c,
6008         * as/hc08/lkdata.c,
6009         * as/hc08/lklex.c,
6010         * as/hc08/lkmain.c,
6011         * as/mcs51/aslex.c,
6012         * as/mcs51/aslink.h,
6013         * as/mcs51/asm.h,
6014         * as/mcs51/asmain.c,
6015         * as/mcs51/lkdata.c,
6016         * as/mcs51/lklex.c,
6017         * as/mcs51/lkmain.c,
6018         * as/z80/aslex.c,
6019         * as/z80/asm.h,
6020         * as/z80/asmain.c: fixed build on current cygwin:
6021         replaced getline() by as_getline()
6022
6023 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
6024
6025         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
6026         declarator in the symbol chain
6027         * src/SDCCsymt.h,
6028         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
6029         parameter list for function pointers
6030         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
6031         * support/regression/tests/bug-716242.c: added
6032
6033 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
6034
6035         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
6036         offset if possible
6037         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
6038
6039 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
6040
6041         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
6042         inifinitely recurseable, added static
6043         * support/regression/tests/bug-1408066.c: added
6044
6045 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
6046
6047         * src/SDCCicode.h,
6048         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
6049         renamed, added possibility to create "postLoopLbl"-labels
6050         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
6051         newiTempLoopHeaderLabel
6052         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
6053         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
6054         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
6055         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
6056         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
6057         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
6058         (basicInduction): fixed bug #136564, made static,
6059         (loopInduction): changed parameter of basicInduction, made static,
6060         (addPostLoopBlock): added
6061         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
6062         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
6063         findLoopEndSeq
6064         * support/regression/tests/bug-136564.c: added
6065         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
6066         --std-sdcc99 to LIBSDCCFLAGS
6067
6068 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
6069
6070         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
6071         while loop
6072         * support/regression/tests/bug-1406131.c: added
6073
6074 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
6075
6076         * src/SDCCast.c (decorateType): fix promotion of unary minus
6077         * src/SDCCsymt.c (computeType): beautified
6078         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
6079         (valUnaryPM, valComplement): fix sign and promotion,
6080         (valNot): ANSI: result type is int (SDCC: unsigned char)
6081         * support/regression/tests/uminus.c: speedup by removing superflous
6082         test case 'int'
6083         * support/regression/tests/onebyte.c: added promotion and signedness
6084         tests for unary minus
6085         * support/regressions/tests/bug-477927.c: disable warning about
6086         uninitialized variables
6087         * support/regression/tests/not.c: added
6088
6089 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
6090
6091         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
6092         * src/mcs51/gen.c (gen51Code): show final register usage after
6093         fillGaps in asm with --i-code-in-asm
6094         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
6095         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
6096         incUsed, rliveClear, adjustIChain): made static,
6097         (setFromRange): excluded because it's unused,
6098         (findPrevUseSym, markWholeLoop): added,
6099         (findPrevUse): rewritten; fixes bug 895992; now a complete search
6100         through all branches of predecessors enables sdcc to emit the warning
6101         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
6102         (rlivePoint): made static, added parameter emitWarnings which is only
6103         true during the first run out of two,
6104         (findRecursiveSucc, findRecursivePred): removed,
6105         (computeLiveRanges): made static, added parameter emitWarnings,
6106         (dumpIcRlive): added for debugging only
6107         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
6108         removed prototype of setFromRange()
6109         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
6110         in call of computeLiveRanges()
6111         * support/regression/tests/bug-895992.c: added
6112         * support/regression/tests/bug-971834.c: added
6113         * support/valdiag/tests/bug-895992.c: added
6114         * support/valdiag/tests/bug-971834.c: added
6115
6116 2005-12-18 Raphael Neider <rneider AT web.de>
6117
6118         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
6119           (genUnpackBits): improved code for direct operands,
6120           (genPackBits): improved code for literal assignment to bitfields
6121             and for direct destination operands (no FSR indirection),
6122             prevented redundant AND, fixes #1362800,
6123           (AccLsh): added parameter to disable masking of the result
6124         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
6125           skip instructions with side-effects (like incfsz),
6126           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
6127         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
6128         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
6129           fixes #1375263
6130
6131 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
6132
6133         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
6134         volatile variables as spill location
6135
6136 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
6137
6138         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
6139         replacing literals
6140         * support/regression/tests/bug-1376320.c: added
6141
6142 2005-12-08 Raphael Neider <rneider AT web.de>
6143
6144         * src/pic/device.c: renamed is_shared to pic14_is_shared
6145         * src/pic/gen.c (genIfx): re-enabled handling of sbits
6146         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
6147           (is_valid_identifier): added for above workaround
6148
6149 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
6150
6151         * device/lib/Makefile.in: fixed to enable port-specific-objects
6152         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
6153           char, thanks Hubert Sack
6154         * doc/sdccman.lyx: documented --xstack-loc,
6155           elaborated a bit more on interrupts and pitfalls,
6156           removed "setjmp/longjmp unsupported",
6157           documented some unsupported C99 features
6158         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
6159         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
6160           if, thanks Hubert Sack
6161         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
6162         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
6163           make make_library
6164         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
6165           regression tests can report resource usage (rfe 700441)
6166         * support/regression/collate-results.py: report resource usage
6167         * support/regression/ports/ds390/spec.mk,
6168         * support/regression/ports/hc08/spec.mk,
6169         * support/regression/ports/mcs51/spec.mk,
6170         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
6171         * support/regression/ports/ds390/uCsim.cmd,
6172         * support/regression/ports/hc08/uCsim.cmd,
6173         * support/regression/ports/mcs51/uCsim.cmd,
6174         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
6175         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
6176           library, use the default one
6177         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
6178           building the library
6179
6180 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
6181
6182         * config.dsp: added dependency on .version and configure_vc.awk
6183         * device/include/setjmp.h: updated for --stack-auto and --xstack
6184         * device/include/mcs51/at89c51snd1c.h: corrected line endings
6185         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
6186         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
6187         * device/lib/libsdcc.lib: added _setjmp
6188         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
6189           (decorateType): fixed bug 1372851,
6190           (optimizeGetHbit): fixed warning
6191         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
6192           array initialisation
6193         * support/regression/tests/bug1057979.c: added test for bug 1358192
6194         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
6195
6196 2005-12-03 Borut Razem <borut.razem AT siol.net>
6197
6198         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
6199           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
6200
6201 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
6202
6203         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
6204         createIval): implement symbol independant "flexible array member",
6205         (createIvalCharPtr): implemented flexible array initialisation with a
6206         string
6207         * src/SDCCsymt.c (copyStruct): removed,
6208         (getSize): fixed misleading comment,
6209         (getAllocSize): removed, the additional allocation size is now in
6210         sym->flexArrayLength,
6211         (checkStructFlexArray): new, syntax checks for flexible array members,
6212         (compStructSize): added syntax checks for "flexible array members"
6213         (copyStruct): removed,
6214         (copyLinkChain): removed inefficient fix for bug 770487
6215         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
6216         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
6217         symbol->flexArrayLength
6218         * src/SDCCerr.c,
6219         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
6220         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
6221         * support/regression/tests/structflexarray.c: added
6222         * support/valdiag/tests/structflexiblearray.c: added
6223
6224 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
6225
6226         * src/SDCCast.c (decorateType): fixed bug 1368489
6227         * support/Util/SDCCerr.c,
6228         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
6229
6230 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6231
6232         * device/include/mcs51/at89c51snd1c.h: added file submitted by
6233           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
6234
6235 2005-11-27 Borut Razem <borut.razem AT siol.net>
6236
6237         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
6238           support/cpp2/mkdeps.h: added command line option
6239           -obj-ext=<extension> to SDCPP to define object file externion, used
6240           for generation of make dependencies (-M)
6241         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
6242
6243 2005-11-26 Borut Razem <borut.razem AT siol.net>
6244
6245         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
6246           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
6247           added pic and pic16 libraries
6248
6249 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6250
6251         * device/include/float.h: Corrected typo in prototype of __fsgt
6252
6253 2005-11-25 Borut Razem <borut.razem AT siol.net>
6254
6255         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
6256           added creation of model-mcs51-stack-auto libraries
6257
6258 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
6259
6260         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
6261         and fields-list too
6262         * src/SDCCast.c (createIvalArray): removed obsolete comment
6263
6264 2005-11-24 Borut Razem <borut.razem AT siol.net>
6265
6266         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
6267           added missing device/lib/mcs51/crt*.asm sources
6268
6269 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
6270
6271         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
6272
6273 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
6274
6275         * device/lib/_fs2schar.c,
6276         * device/lib/_fs2sint.c,
6277         * device/lib/_fs2slong.c: optimized inline asm
6278
6279 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6280
6281         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
6282           Better handling of floats between -1.0 and 0.0.
6283
6284 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6285
6286         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
6287           (the missing "if"s prohibited removal of redundant labels)
6288
6289 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6290
6291         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
6292           Properly convert floats between -1.0 and 0.0 to long, int, and char
6293           types (max integer value of negative floats tends to zero).
6294         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
6295           Removed changes made so to work properly with floats between
6296           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
6297           and _fs2char.c
6298
6299 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
6300
6301         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
6302         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
6303         (genCast) cosmetic change
6304         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
6305         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
6306         from mcs51
6307         * support/regression/tests/bitfields (testSignedBitfields): added
6308
6309 2005-11-18 Borut Razem <borut.razem AT siol.net>
6310
6311         * sdcc/device/lib/Makefile.in: remove all unnecessary files
6312         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
6313           introduced SILENT option to make building of pic16 libraries less
6314
6315 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6316
6317         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
6318           Now they work properly with floats between -1.0 and 0.0
6319         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
6320
6321 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
6322
6323         * src/SDCCicode.c (printOperand): added missing else
6324
6325 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
6326
6327         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
6328         reformatted for better readability
6329         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
6330         signed bitfields
6331
6332 2005-11-17 Borut Razem <borut.razem AT siol.net>
6333
6334         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
6335           introduced SILENT option to make building of pic16 libraries less
6336           verbose - used for nightly snapshot build
6337         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
6338           available on Win32 platforms.
6339         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
6340           medium, large, pic and pic16
6341
6342 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6343
6344         * device/lib/printf_large.c: Temporary patch for bug 1358192:
6345           printf("%f"...) sets fraction to zero.
6346
6347 2005-11-16 Raphael Neider <rneider AT web.de>
6348
6349         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
6350           fixes #1357221
6351         * src/pic/gen.c (genIfx): implemented for CARRY bit
6352         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
6353           to generic pointers, fixes #1357332,
6354           (pic16_movLit2f): NEW,
6355           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
6356
6357 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
6358
6359         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
6360
6361 2005-11-11 Raphael Neider <rneider AT web.de>
6362
6363         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
6364         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
6365           compute pointer's type from operand,
6366           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
6367           improved single bit reads, fixes bug #1353379
6368
6369 2005-11-09 Borut Razem <borut.razem AT siol.net>
6370
6371         * support/scripts/sdcc.nsi: added lib/pic to the package
6372
6373 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
6374
6375         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
6376
6377 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
6378
6379         * support/regression/tests/bug1348008.c: added
6380         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
6381         * support/regression/tests/bug1337835.c: updated comment
6382
6383 2005-11-06 Borut Razem <borut.razem AT siol.net>
6384
6385         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
6386           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
6387           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
6388           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
6389           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
6390           dynamic construction of cl_error_class and derivates - 2.nd try
6391
6392 2005-11-05 Borut Razem <borut.razem AT siol.net>
6393
6394         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
6395           bug, which caused Bus Errors on sparc solaris
6396
6397 2005-11-04 Borut Razem <borut.razem AT siol.net>
6398
6399         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
6400           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
6401           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
6402           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
6403           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
6404           and derivates to resolve the initialization problem on OSX
6405
6406 2005-11-02 Borut Razem <borut.razem AT siol.net>
6407
6408         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
6409           corrected typo - #include <winsock2.h>
6410
6411 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
6412
6413         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
6414           (_asxxxx_mapping): added org directive for future enhancements
6415
6416 2005-11-01 Borut Razem <borut.razem AT siol.net>
6417
6418         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
6419           enabled sockets on WIN32
6420         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
6421
6422 2005-10-31 Borut Razem <borut.razem AT siol.net>
6423
6424         * support/regression/generate-cases.py: escape backslashes in {testcase}:
6425           WIN32 backslash path delimiters should be escaped when used in C strings
6426         * support/regression/tests/bitfields.c: exclude failing assertions for
6427           __CYGWIN32__ and __MINGW32__ hosts
6428
6429 2005-10-30 Borut Razem <borut.razem AT siol.net>
6430
6431         * src/SDCCutil.c: corrected double comparison typo
6432
6433 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
6434
6435         * device/lib/medium/Makefile: added for new memory model medium
6436         * device/include/asm/mcs51/features.h: updated for medium/pdata
6437         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
6438           added Multiply & Accumulate sbit's and MAC0_PAGE define
6439         * device/include/mcs51/c8051f300.h: added sfr16 definitions
6440         * device/include/mcs51/c8051f310.h: added sfr16 definitions
6441         * device/lib/_mullong.c: update for medium model
6442         * device/lib/incl.mk: added medium model
6443         * doc/sdccman.lyx: documented medium model
6444         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
6445         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
6446         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
6447         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
6448           (allocParms): set SCLS and OCLS to pdata for medium model
6449         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
6450           for pdata,
6451           (powof2): return <0 if not power of 2
6452         * src/avr/gen.c (genBitWise): use updated powof2
6453         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
6454           (shiftR2Left2Result): small optimization in setup, save acc when storing,
6455           (shiftLLeftOrResult): use B if necessary
6456         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
6457         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
6458         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
6459         * support/regression/Makefile.in: added test-mcs51-medium
6460         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
6461
6462 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
6463
6464         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
6465         specifier unsigned
6466         * device/lib/time.c (mktime): fixed bug 1334315
6467
6468 2005-10-28 Raphael Neider <rneider AT web.de>
6469
6470         * device/include/pic/p16f_common.inc: added common declarations
6471         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
6472
6473 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
6474
6475         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
6476           (aopPutUsesAcc): added to predict accumulator use,
6477           (assignResultValue): save acc if necessary,
6478           (genMinusDec): store result if indirectly addressed,
6479           (genDivOneByte):  save acc if necessary,
6480           (movLeft2Result): bugfix if left already in acc,
6481           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
6482             attention to accumulator use (esp. pdata),
6483           (genReceive): receive pdata correctly
6484         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
6485         * src/SDCCicode.h: added isOperandInPagedSpace prototype
6486
6487 2005-10-27 Raphael Neider <rneider AT web.de>
6488
6489         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
6490
6491 2005-10-27 Raphael Neider <rneider AT web.de>
6492
6493         * .version: changed version to 2.5.4
6494         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
6495         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
6496           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
6497             arithmetics support routines
6498         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
6499         * device/lib/Makefile.in: also create installdir for pic
6500
6501         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
6502           pic14 port as well
6503         * src/pic/device.c (dump_sfr): rewritten to delegate register
6504           placement to the linker (use `extern sym' rather than sym EQU addr),
6505           (validAddress): fixed to check last specified address
6506         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
6507           (popGetLit): truncate literal value to 8 bit,
6508           (popGet): moved assert to more appropriate place
6509           (popGetExternal): create pCode operand from and mark the according
6510             symbol as being `extern'
6511           (popGetAddr): added sanity check on immediate's offset, provide
6512             GPOINTER tag on demand
6513           (aopPut): fixed for immediates,
6514           (mov2w_op): move operand's address or contents to WREG (depending on
6515             operand type), safer variant of mov2w,
6516           (movwf,call_libraryfunc): NEW, handy abbreviations,
6517           (get_argument_pcop,get_return_val_pcop,pass_argument,
6518           get_returnvalue): interface for accessing function parameters and
6519             return values,
6520           (assignResultValuei,genRet): use new parameter/return value interface
6521           (pic14_getDataSize): back to old version handling generic pointers,
6522           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
6523             provided implementation and/or fixed old one,
6524           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
6525             calls, removed legacy 8051 reference code
6526           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
6527           (loadSignToC): NEW, move the operands sign bit to CARRY,
6528           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
6529             genRightShiftSigned, accepts negative shift counts,
6530           (setup_fsr): load FSR and adjust IRP (indirect memory access),
6531           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
6532             generic pointers, __data pointers and __code pointers,
6533           (genUnpackBits,genPackBits): rewritten to work with generic pointers
6534             and signed bitfields, limit bitfields to 8 bit,
6535           (genDataPointerGet): fixed number of bytes read,
6536           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
6537           (genPointerGet,genPointerSet): fixed handling of __code pointers,
6538             pointers to constant data are no longer assumed to point to __code
6539             space, removed invalid pointer types,
6540           (bitpatternFromVal): retrieve the PICs representation of an integer
6541             or float literal,
6542           (genDataPointerSet): fixed assigning to po_immediate operands,
6543           (genGenPointerSet): implemented as library call,
6544           (genIfx): fixed incorrect condition,
6545           (genAddrOf): limit generic pointers' addresses to 2 bytes,
6546             provide GPOINTER tag according to destination's storage class,
6547           (genCast): added code to handle casting to generic pointers, added
6548             sign-/zero extension of the result
6549           (aop_isLitLike,op_isLitLike): fixed handling of immediates
6550         * src/pic/gen.h: added macros to access IRP bit in STATUS register
6551         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
6552           extend the result
6553         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
6554           address/register resides in the shared banks
6555           (emitSymbolToFile): improved to handle global and `pinned' symbols,
6556             put all variables into separate sections (have the linker arrange
6557             them)
6558           (picglue): put init code and interrupt handlers in separate sections
6559         * src/pic/main.c: added port specific options table, modified to PORT
6560           structure to make GPOINTERs 3 byte, added pic14_options
6561           (_pic14_do_link): private linking routine (update paths to libraries,
6562             add libsdcc.lib by default)
6563         * src/pic/main.h: declare pic14_options
6564         * src/pic/pcode.c: fixed instructions i/o relations,
6565           (RegCond): reverted to correct version,
6566           (newpCodeOpLit): truncate literals to 8 bit,
6567           (genericPrint): added debug output,
6568           (getRegFromInstruction): fixed for various operand types, simplified
6569           (BuildFlow): fixed broken handling of isntructions with labels
6570           (LinkFlow): start at last instruction in flow (skip trailing comments),
6571             pass the flow on to the next instruction after CALL
6572           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
6573           (insertPCodeInstruction): fixed inserting after a skip instruction,
6574           (DoBankSelect): fixed for labeled instructions
6575           (OptimizepBlock): honor --nopeep switch
6576           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
6577         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
6578         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
6579           (pCodeOptime2pCodes): allow disabling this optimization via
6580             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
6581             but is still buggy), started implementation of a dataflow based
6582             pCode optimization (CSE + dead code elimination)
6583           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
6584         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
6585           names are independant of the stack location and therefore portable across
6586           devices
6587
6588 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
6589
6590         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
6591           (selectSpil): fixed bug 1337835 by not spilling bit variables
6592         * support/regression/tests/bug1337835.c: added test for this bug
6593         * src/mcs51/peeph.def: restart after rule 3.c,
6594           addded rules 263.x to optimize loading constants
6595
6596 2005-10-26 Raphael Neider <rneider AT web.de>
6597
6598         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
6599         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
6600           (genAssign): emit warning when casting literals to generic pointer
6601             type, also applies when taking the address of a fixed variable,
6602           (genCast): improved casting to generic pointers
6603         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
6604           extern variables, added verbose error message
6605         * device/include/pic16/{string.h,errno.h}: added #pragma library c
6606
6607 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
6608
6609         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
6610         carry must be complemented too
6611         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
6612         could be emitted by genMinus
6613         * src/SDCCval.c (constVal): fixed bug 1305065
6614
6615 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
6616
6617         * src/SDCCast.c (addCast): added promotion for bit variables
6618         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
6619         promotion casts + optimisation
6620         (optimizeGetWord): fix warning 'i' might be used uninitialized
6621         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
6622         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
6623
6624 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
6625
6626         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
6627         all chars are promoted to int; promotion should be handled in SDCCast.c
6628
6629 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6630
6631         * device/lib/_strcmp.c: Fixed bug 1326457
6632
6633 2005-10-11 Raphael Neider <rneider AT web.de>
6634
6635         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
6636         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
6637
6638 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
6639
6640         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
6641         * support/regression/tests/sfr16.c: added test for the sfr32 bug
6642
6643 2005-10-04 Raphael Neider <rneider AT web.de>
6644
6645         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
6646           device/lib/pic16/pics.all: added pic18f1320
6647         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
6648
6649 2005-09-30 Raphael Neider <rneider AT web.de>
6650
6651         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
6652         * src/pic16/devices.inc: NEW, provides device descriptions
6653         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
6654
6655 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
6656
6657         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
6658           GETHBIT
6659
6660 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
6661
6662         * doc/sdccman.lyx: updated Highest Order Bit documentation,
6663           documented Any Order Bit, Higher Order Byte and Higher Order Word
6664         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
6665         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
6666           (optimizeGetAbit): new, to get any bit, not only the high bit,
6667           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
6668           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
6669           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
6670           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
6671             RIGHT_OP: also try GETBYTE, GETWORD optimization,
6672             GETABIT, GETBYTE, GETWORD: decorate them,
6673           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
6674           (ast_print): added GETABIT, GETBYTE, GETWORD
6675         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
6676         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
6677           (geniCodeBinary): new generic binary icode,
6678           (ast2iCode): added GETABIT, GETBYTE, GETWORD
6679         * src/port.h: updated comment for PORT.hasExtBitOp
6680         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
6681           (genGetByte): new, to get a single byte,
6682           (genGetWord): new, to get a word from a long,
6683           (gen51Code): added GETABIT, GETBYTE, GETWORD
6684         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
6685
6686 2005-09-23 Raphael Neider <rneider AT web.de>
6687
6688         * configure.in, configure: have device/lib/pic configured
6689         * device/lib/Makefile.in: added model-pic14
6690         * device/lib/clean.mk: added pic/ to clean rule
6691         * device/lib/pic: added rudimentary pic14 library providing support
6692           functions for multiplication/division/generic pointer access
6693         * src/SDCCopt.c (convilong): mark support functions as extern
6694           for pic14 port as well
6695         * src/pic/gen.c (genMult): added assertions,
6696           (genpic14Code): emit warning on unhandled iCodes
6697         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
6698         * src/pic/pcode.c (pCodeOpCopy),
6699         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
6700           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
6701           SFR_REGISTER}), made safe for future extensions
6702         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
6703           instructions even if preceeded by SKIP instructions (also remove
6704           them); removed unused code
6705         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
6706           prevents leaving parts of the structure uninitialized after copying
6707
6708 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
6709
6710         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
6711           ago by me
6712         * support/regression/tests/addsub.c: added test for the bug
6713
6714 2005-09-21 Raphael Neider <rneider AT web.de>
6715
6716         * device/include/pic16/pic18f1220.h,
6717           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
6718         * device/lib/pic16/Makefile.rules: added missing opening paren
6719         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
6720           are provided in genutils.c,
6721           (genUminusFloat,genUminus,genCmpEq): added asserts on different
6722           operand/result sizes,
6723           (genCmp): assert on NULL pointers first, then check deref'ed values
6724         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
6725           result size
6726
6727 2005-09-18 Raphael Neider <rneider AT web.de>
6728
6729         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
6730           as these are now unused,
6731           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
6732         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
6733           local, avoids uninitialized pointer dereference on r->name
6734         * src/pic16/ralloc.c (newReg): fixed indentation
6735
6736 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
6737
6738         * src/SDCCval.c (constVal): fixed bug 730366
6739         * support/Util/SDCCerr.c,
6740         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
6741
6742 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
6743
6744         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
6745
6746 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
6747
6748         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
6749
6750 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
6751
6752         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
6753           (hex2dec): made hex_digit unsigned char, removed ascii dependance
6754         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
6755           (hex2dec): made hex_digit unsigned char, removed ascii dependance
6756         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
6757         * packihx/packihx.c (hexDigit): made c unsigned char
6758         * as/mcs51/lklibr.c (fndsym),
6759         * link/z80/lkgb.c (gb),
6760         * link/z80/lklibr.c (fndsym),
6761         * link/z80/lkrloc.c (relr),
6762         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
6763         * src/SDCC.lex (checkCurrFile, process_pragma),
6764         * src/SDCCglue.c (spacesToUnderscores),
6765         * src/SDCCmain.c (setParseWithComma, processFile),
6766         * src/asm.c (tvsprintf, printCLine),
6767         * src/avr/gen.c (emitcode, aopPut),
6768         * src/ds390/gen.c (emitcode),
6769         * src/hc08/gen.c (emitcode, emitinline),
6770         * src/mcs51/gen.c (emitcode, genInline),
6771         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
6772           tokenizeLineNode),
6773         * src/pic/ralloc.c (debugLog),
6774         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
6775           tokenizeLineNode),
6776         * src/pic16/ralloc.c (debugLog),
6777         * src/z80/main.c (_process_pragma):
6778            made all ctype.h function calls safe
6779         * src/SDCCopt.c: include math.h for fabs
6780         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
6781           and used them throughout the code to make ctype.h function calls safe
6782         * src/ds390/main.c (asmLineNodeFromLineNode),
6783         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
6784         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
6785            unsigned char*
6786         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
6787           (newpCodeAsmDir): made ctype.h function calls safe
6788         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
6789           pic16_emitcode):  made lbp unsigned char*
6790         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
6791           (pic16_newpCodeAsmDir): made ctype.h function calls safe
6792         * src/xa51/gen.c (emitcode),
6793         * src/z80/gen.c (_emit2): made lbp unsigned char*
6794         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
6795            char*
6796
6797 2005-09-05 Raphael Neider <rneider AT web.de>
6798
6799         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
6800           access bank splitpoint
6801
6802 2005-09-05 Raphael Neider <rneider AT web.de>
6803
6804         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
6805
6806 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
6807
6808         * .version: changed to version 2.5.3
6809         * doc/sdccman.lyx: changed version to 2.5.3,
6810           documented --codeseg and --constseg and pragma codeseg and constseg,
6811           documented bit parameters (reentrant) and bit returning
6812         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
6813            currFunc->recvSize, but is this ok for all ports?
6814           (ast2iCode): result of ~ on unsigned char must be cast to int for
6815            bool to work
6816         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
6817           function pointers in bit space
6818         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
6819           (processFuncArgs): call port.reg_parm() with reentrancy info
6820         * src/port.h,
6821         * src/avr/main.c,
6822         * src/ds390/main.c,
6823         * src/hc08/main.c,
6824         * src/pic/main.c,
6825         * src/pic16/main.c,
6826         * src/xa51/main.c,
6827         * src/z80/main.c: port.reg_parm prototype extended with
6828           "bool reentrant" parameter
6829         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
6830           options.stackAuto for allocating bit register parameters
6831         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
6832           (genSend): set BitBankUsed if it is,
6833           (selectRegBank): factored out of genCall for use in genPcall,
6834           (genCall): removed redundant dtype assignmen, use selectRegBank,
6835           (genPcall): handle returning in Carry properly, save in F0 if needed,
6836           (genReceive): handle bit register parameters
6837         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
6838           (mcs51_assignRegisters): enable bit registers for all reentrant
6839            functions and don't set BitBankUsed unconditionally
6840         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
6841         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
6842         * support/regression/tests/funptrs.c: added tests for BOOL and for return
6843
6844 2005-08-27 Borut Razem <borut.razem AT siol.net>
6845
6846         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
6847         ppc-osx (Darwin) does not support -u option. It seems that it is
6848         supported only on Linux - GNU cp
6849
6850 2005-08-25 Borut Razem <borut.razem AT siol.net>
6851
6852         * sim/ucsim/gui.src/serio.src/Makefile.in,
6853           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
6854           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
6855           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
6856           install and strip, since the strip at /usr/ccs/bin should be used
6857           on solaris
6858
6859 2005-08-24 Borut Razem <borut.razem AT siol.net>
6860
6861         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
6862
6863 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
6864
6865         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
6866         ffffffffu
6867
6868 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
6869
6870         * as/mcs51/aslink.h: completed lkrloc.c prototypes
6871         * as/mcs51/lkmain.c (link_main): fixed warning
6872         * device/include/stdbool.h: ds390 has no advanced bit support yet
6873         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
6874         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
6875         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
6876           and updated their macros
6877         * src/SDCCval.c (constVal): updated comment for renamed b_long
6878
6879 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
6880
6881         * as/mcs51/asdata.c: changed ctype['['] to BINOP
6882         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
6883           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
6884           (oprio): set priority for '['
6885         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
6886            and adb_24_bit
6887         * as/mcs51/asm.h: added defines R_BIT and S_BIT
6888         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
6889         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
6890         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
6891           added overlayable BIT_BANK area
6892         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
6893           (summary2): explain 'T' in legenda
6894         * as/mcs51/lkrloc.c: replaced old K&R style,
6895           (relr): added R_BIT processing,
6896           (errmsg): added "Bit-addressable relocation error",
6897           (adb_bit): added for converting from byte- to bit-addressable space,
6898           (adb_24_bit): added for converting from byte- to bit-addressable space
6899         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
6900            used in reentrant functions now even as return value
6901         * device/lib/_gptrput.c (_gptrput): removed obsolete code
6902         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
6903           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
6904         * src/SDCCglobl.h: added indicator BitBankUsed
6905         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
6906            the bit registers b0-b7
6907         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
6908           (geniCodeCast): fixed bug 1263853,
6909           (geniCodeLogicAndOr): put result in bool or char,
6910           (geniCodeReceive): added parameter func for accessing the return type,
6911           (geniCodeFunctionBody): pass func to geniCodeReceive
6912         * src/SDCCmain.c: added indicator BitBankUsed
6913         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
6914         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
6915           (checkSClass): don't put automatic bool/bit on stack,
6916           (checkFunction): removed check on function cannot return bit
6917         * src/SDCCsymt.h: added newBoolLink prototype
6918         * src/mcs51/gen.c (rb1regs): added bit registers,
6919           (movc): created for assigning to carry,
6920           (pushReg, popReg): created for pushing registers,
6921           (sameRegs): check both AOP_REG and AOP_CRY types,
6922           (aopOp): handle bit registers,
6923           (aopPut): optimization no self-assign,
6924           (saveRegisters): push reg->base (bits) only once for bit registers,
6925            and use pushReg,
6926           (unsaveRegisters): pop reg->base only once and use popReg,
6927           (assignResultValue): added parameter func and return in carry for bits,
6928           (genIpush): optimization no reload in A if not changed,
6929           (genSend): bit parameters in reentrant functions are passed in bit
6930            registers by first assigning to bits in B, then save registers and
6931            copy B to bits,
6932           (genCall): handle returning in Carry properly, save it in F0 if needed,
6933           (genPcall): updated assignResultValue call, this is not safe yet for bit
6934            returning function !!!
6935           (genFunction): don't generate equ's for bit registers and use pushReg,
6936           (genEndFunction): take care of bit returning functions and use popReg,
6937           (genRet): return bit in Carry,
6938           (genIfx): optimize bit registers and other directly addressable bits,
6939           (genReceive): updated assignResultValue call
6940         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
6941           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
6942            registers when using stack-auto
6943         * src/mcs51/ralloc.c (_G): added allBitregs,
6944           (regs8051): added the bit registers,
6945           (createStackSpil): use macro IS_BIT,
6946           (getRegBit): added to allocate a bit register, else spill,
6947           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
6948           (updateRegUsage): factored out to ease stepping while debugging,
6949           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
6950            also allocate bit registers,
6951           (fillGaps): handle bit registers,
6952           (findAllBitregs): added to create bit vector with all bit registers,
6953           (mcs51_allBitregs): returns this bit vector,
6954           (mcs51_assignRegisters): when using stack-auto use bit registers for
6955            passing parameters and creating local variables
6956         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
6957
6958 2005-08-22 Borut Razem <borut.razem AT siol.net>
6959
6960         * device/lib/Makefile.in: replaced find option -or with -o
6961           to make it run on solaris
6962
6963 2005-08-22 Raphael Neider <rneider AT web.de>
6964
6965         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
6966           fixes #1265442 (crash on Solaris)
6967
6968 2005-08-20 Borut Razem <borut.razem AT siol.net>
6969
6970         * configure, configure.in: added tests for libsocket and libnsl libraries,
6971           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
6972           from support/regression/Makefile.in
6973         * support/regression/Makefile.in: added
6974         * device/lib/pic16/Makefile.common.in: force make to use bash shell
6975         * sim/ucsim/libtool: regenerated on sparc-solaris
6976         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
6977           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
6978           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
6979           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
6980           sparc-solaris, which doesn't use GNU ld linker
6981         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
6982         * as/Makefile: find on sparc-solaris does not support -maxdepth option
6983
6984 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
6985
6986         * src/mcs51/peeph.def: updated comments
6987
6988 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6989
6990         * device/lib/_gptrget.c,
6991         * device/lib/_gptrput.c: slightly shorter
6992         * doc/sdccman.lyx: incremented version
6993         * src/mcs51/peeph.def: moved peephole comments to the line of first
6994           change to better keep line correlation, reanimated 186.e
6995         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
6996
6997 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
6998
6999         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
7000           David Saxton with quotes around file name.
7001
7002 2005-08-15 Borut Razem <borut.razem AT siol.net>
7003
7004         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
7005           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
7006           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
7007           make tests run on x86_64 platform
7008
7009 2005-08-13 Raphael Neider <rneider AT web.de>
7010
7011         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
7012           as it might be executed DURING a build (parallel make is wonderful)
7013
7014 2005-08-13 Raphael Neider <rneider AT web.de>
7015
7016         * device/lib/Makefile.in (port-specific-objects-pic16):
7017           revert to cp $(PORT)/bin/*.* $(PORTDIR)
7018         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
7019           dependency
7020         * device/lib/pic16/Makefile.rules: build subdirs before creating
7021           the library, removed builddir rule, create $(builddir) early in
7022           recurse rule, use empty recurse rule for leaf directories
7023         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
7024           mkdir errors (race condition), removed duplicate suffix "hex"
7025           from clean rules
7026         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
7027         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
7028           prevents mkdir -p from aborting on Alpha
7029
7030 2005-08-12 Raphael Neider <rneider AT web.de>
7031
7032         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
7033           db-statements in order to allow for arrays of pointers in code
7034           sections to be placed without interspersed 0-padding, fixes
7035           bug #1256215
7036         * (emitStatistics): fixed division by zero for pic18f1220
7037         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
7038           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
7039         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
7040         * (pic16_pCodeConstString): keep track of already emitted string
7041           literals to prevent "duplicate definitions of symbol _str_NR"
7042         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
7043           debug message
7044         * device/lib/Makefile.in: ignore failing PIC16 library builds
7045         * device/lib/pic16/Makefile: do not build if gputils are missing
7046         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
7047
7048 2005-08-10 Raphael Neider <rneider AT web.de>
7049
7050         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
7051           my last commit)
7052
7053 2005-08-10 Raphael Neider <rneider AT web.de>
7054
7055         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
7056           Rokas' patch to add the new fixed point type "__fixed16x16"
7057         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
7058           functions for __fixed16x16 arithmetics
7059         * device/lib/pic16: reimplemented the build system to support
7060           a separate build directory, better handling of libio (create
7061           the library in a separate subdir for each architecture) and
7062           easier configuration (centralized in Makefile.common)
7063
7064 2005-08-07 Raphael Neider <rneider AT web.de>
7065
7066         * src/pic16/gen.c (genrshTwo): fixed sign extension
7067         * src/pic16/device.c: added pic18f2320, 4220 and 4320
7068         * device/include/pic16/pic18f2220.h: changed some bit definitions,
7069           added T0CONbits
7070         * device/include/pic16/pic18f4220.h: NEW, header for
7071           pic18f4220 and pic18f4320
7072         * device/include/pic16/pic18fregs.h: added new devices,
7073           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
7074         * device/include/pic16/signal.h: resolved name clashes
7075           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
7076           to also allow testing for interrupt enable bits, added
7077           comments on how to use the macros
7078         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
7079         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
7080           register definitions for the devices
7081         * device/lib/pic16/pics.all: added new devices
7082         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
7083           allocated memory
7084         * device/lib/pic16/libc/stdlib/memfree: do not count
7085           the block header as free memory
7086         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
7087           simplified and added missing end-of-blocklist-marker
7088           (reported by Peter Onion, fixes #1252814)
7089         * (_mergeHeapBlock): fixed loop condition
7090         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
7091           len==0, restructured code
7092         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
7093           up a bit, reduced bitfield accesses, prevent endless loops
7094           in case of heap corruption
7095         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
7096           "unreferenced arguments/must return a value" warnings
7097         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
7098           replaced BAUDREG with SPBRG
7099         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
7100           device/lib/pic16/debug/gstack/gstack.c: replaced
7101           _naked, _asm, _endasm with __naked, __asm, __endasm
7102
7103 2005-08-05 Raphael Neider <rneider AT web.de>
7104
7105         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
7106           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
7107
7108 2005-08-05 Borut Razem <borut.razem AT siol.net>
7109
7110         * device/lib/Makefile.in: added missing ';'
7111         * configure: removed ^M characters
7112
7113 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7114
7115         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
7116           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
7117           License
7118
7119 2005-08-04 Borut Razem <borut.razem AT siol.net>
7120
7121         * configure.in: pic16 libraries build 2nd try - enable running
7122           configure in device/lib/pic16
7123         * configure: regenerated from configure.in
7124         * device/lib/Makefile.in: create $(PORT)/bin directory
7125
7126 2005-08-03 Raphael Neider <rneider AT web.de>
7127
7128         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
7129           to get/set values via pointers
7130         * (genUnpackBits,genPackBits): changed detection of
7131           ptr->bitfield vs. sym.bitfield, fixed access via generic
7132           pointers, removed dead (wrong) code for multibyte bitfields
7133         * (genNearPointerGet, genGenPointerGet): removed useless code,
7134           fixed bitfield detection, fixes #1250594
7135         * (genNearPointerSet): removed useless code
7136         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
7137           and introduced macro pic16_emitpcode that conditionally emits
7138           the origin of the following pCode (useful for debugging SDCC)
7139         * src/pic16/pcode.c: changed (and disabled) some debug outputs
7140         * (createDefmap): fixed handling of LFSR for --optimize-df
7141
7142 2005-08-02 Borut Razem <borut.razem AT siol.net>
7143
7144         * device/lib/Makefile.in: pic16 libraries build enabled since
7145           gputils-0.13.2 are now localy installed at sourceforge's compile farm
7146
7147 2005-08-02 Raphael Neider <rneider AT web.de>
7148
7149         * src/pic16/gen.c (genPackBits): removed deprecated warning
7150         * (genGenPointerSet): fixed bitfield detection
7151
7152 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7153
7154         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
7155
7156 2005-07-31 Raphael Neider <rneider AT web.de>
7157
7158         * device/lib/pic16/libdev/pic18f458.c,
7159           device/include/pic16/pic18f458.h: added missing T0CONbits
7160
7161 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
7162
7163         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
7164
7165 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
7166
7167         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
7168
7169 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7170
7171         * device/include/mcs51/at89c51ed2.h: added.
7172
7173 2005-07-23 Raphael Neider <rneider AT web.de>
7174
7175         * src/pic/gen.h: added emitpcode macro for debugging
7176         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
7177           and replace by macro adding debug information on demand
7178         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
7179         * (gencjne): tried to fix; replaced with correct (slower) code
7180         * (gen{Unp,P}ackBits): fixed single bit access
7181         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
7182         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
7183           previous instruction
7184         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
7185           register has to be handled with care (forbidding movement
7186           of assignments/uses, removing assignments completely, ...)
7187         * (pCodeOptime2pCodes): make use of regIsSpecial
7188         * added lots of debugging output (commented out)
7189         * src/pic/rallloc.c (deassignLRs): prevent operand registers
7190           from being reused as result UNLESS it is known to work
7191
7192 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
7193
7194         * support/Util/dbuf.h: include <stddef.h> for size_t
7195         * .version: changed to version 2.5.2
7196
7197 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7198
7199         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
7200
7201 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7202
7203         * src/hc08/gen.c (genMinus): fixed bug #1241835,
7204           (genModOneByte): removed needless psha/pula
7205
7206 2005-07-22 Raphael Neider <rneider AT web.de>
7207
7208         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
7209           have PIC14 handled like PIC16, fixes broken pic14 linker calls
7210         * src/pic/gen.c (resolveIfx): do not "invent" labels
7211         * (genSkipc): changed to positive logic
7212         * (genSkipCond): removed as no longer needed
7213         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
7214           backport from PIC16
7215         * (genLeftShift): check operands are in different registers
7216         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
7217           INCF does not update CARRY...
7218         * src/pic/main.c: fixed _linkCmd
7219         * src/pic/pcode.c (unlinkpCode): added inactive code
7220         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
7221           alive (do not assign result and operand overlapping registers)
7222
7223 2005-07-22 Raphael Neider <rneider AT web.de>
7224
7225         * src/pic/device.c (dump_sfr): replaced register declaration with
7226           call to emitSymbolToFile() to avoid duplicate symbols
7227         * (assignRelocatableRegisters): do not declare external symbols
7228         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
7229           right (take size of type, not etype)
7230         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
7231         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
7232         * (packRegsForAccUse): disabled assignment of WREG as
7233           the result reg to prevent occurence of just fixed #1235003,
7234           fixes #1242954
7235         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
7236           symbols (avoids duplicate symbols in .asm file)
7237         * (pic14emitRegularMap): use emitSymbolToFile()
7238         * src/pic/gen.c (aopOp): fixed spillLocation handling
7239         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
7240         * (genDataPointerSet): removed unneccessary variables/output
7241
7242 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
7243
7244         * as/mcs51/lkarea.c: enlarged codemap for banked memory
7245         * device/lib/mcs51/crtbank.asm: added # to 0x0F
7246
7247 2005-07-21 Raphael Neider <rneider AT web.de>
7248
7249         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
7250           architecture cannot handle them efficiently, fixes bug #1235003
7251         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
7252           check for empty sets before using them (fixes bug #1232190)
7253
7254 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
7255
7256         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
7257           (lnksect2): generate warnings for memory overlap
7258         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
7259           constseg to set the name of these segments so you can instruct the linker
7260           to place them in banks
7261         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
7262         * src/SDCCglobl.h: added MODEL_HUGE to enum,
7263           added code_seg and const_seg to options
7264         * src/SDCCglue.c (emitMaps): use options.const_seg,
7265           (createInterruptVect): put interrupt vectors in segment HOME,
7266           (glue): put HOME before static segment and put the main glue in HOME,
7267           (glue): use options.code_seg
7268         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
7269         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
7270           these segments so you can instruct the linker to place them in banks
7271           (linkEdit): use code_loc for HOME segment which should be the first
7272           segment in code memory now
7273         * src/SDCCmem.c: fixed more stuff like bug 1238386
7274         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
7275           (changePointer): don't change function pointers to code pointers for
7276           banked functions,
7277           (compareType): added exceptional check for banked function pointers
7278         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
7279         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
7280           after static in code memory
7281         * src/mcs51/gen.c: added aopLiteralLong prototype,
7282           (aopForSym): use getSize for functions,
7283           (genCall): generate banked calls over one trampoline __sdcc_banked_call
7284           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
7285           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
7286           the segment,
7287           (genPcall): use call for literal function pointers and generate banked
7288           calls over the one trampoline so there's only one place for the user to
7289           modify according to his/hers hardware,
7290           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
7291           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
7292         * src/mcs51/main.c: added keyword banked,
7293           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
7294         * support/Util/SDCCerr.c,
7295         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
7296           needed for passing the bank and address to the trampoline
7297         * device/lib/mcs51/crtbank.asm: added for bankswitching
7298         * device/lib/mcs51/Makefile: added crtbank
7299
7300 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7301
7302         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
7303           for fields at offset 0 of a struct or union as reported
7304           on 2005-07-07 in the developer mailing list.
7305
7306 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
7307
7308         * src/SDCCmem.c: fixed bug 1238386
7309
7310 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7311
7312         * src/mcs51/peeph.def: added labelrefcounting for peepholes
7313           (patch #1144962), added peephole 300, enabled 259.x
7314         * doc/sdccman.lyx: removed screenshot and provided link instead
7315
7316 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7317
7318         * doc/sdccman.lyx: added section about debugging with ddd
7319         * doc/figures/ddd_example.eps: screenshot of debugging session
7320
7321 2005-07-04 Raphael Neider <rneider AT web.de>
7322
7323         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
7324           like CODE pointers, fixes #1115683
7325         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
7326           call, fixes bugs #1232211, #1228110,
7327           fixed wrong casts to pCodeFlow from pCodeInstructions
7328
7329 2005-07-04 Raphael Neider <rneider AT web.de>
7330
7331         * src/pic/gen.c (popGet): changed assert to allow for
7332           bit operands
7333         * (popGetAddr): changed signature to provide
7334           an additional index, patched all call sites
7335         * (genCmpEq): handle literal-like operands correctly
7336         * (genAddrOf): added sanity checks on __code/__data pointers
7337         * (genAssign): added handling of symbols from __code section
7338         * (gencjne): do not generate code for comparisons whose result
7339           is neither stored nor used, fixes bug #1171114
7340         * (AccLsh, AccRsh): operate on operand instead of WREG
7341         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
7342           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
7343           by known count
7344         * rewrote complete shift-by-literal logic, commented unused
7345           functions out
7346         * (genConstPointerGet): get multiple bytes (if result size > 1),
7347           fixed handling of non-immediate addresses
7348         * (genPointerGet): handle CODE pointers like CONST pointers
7349         * (genpic14Code): insert C-SRC lines as Cource-pCodes
7350         * ({aop,op}_isLitLike): NEW, single place to decide whether an
7351           operand is to be treated as a literal or not
7352         * (mov2w,genPcall,genCmpEq),
7353           src/pic/genarith.c: use aop_isLitLike() to decide between
7354           literal/register contents
7355         * (addSign): added missing offset
7356         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
7357           only emit comment in debug-mode,
7358           use {aop,op}_isLitLike throughout the file
7359         * src/pic/glue.c: fix initializers for pointers (work in progress)
7360         * src/pic/pcode.c (get_op): honor index on _const symbols
7361         * ({reset,dump}pCodeStatistics): NEW, estimate code size
7362         * (dumppBlock): added pCode size estimation
7363         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
7364           check for IS_SYMOP before OP_SYMBOL'ing
7365         * fixed indentation, compacted switch-statements
7366         * (allocReg): find free register and allocate it instead of
7367           allocating new registers all the time
7368         * (deassignLRs): prevent POINTER_GET's from being assigned the same
7369           registers as its operands (necessary only for multibyte GETs)
7370
7371 2005-07-01 Raphael Neider <rneider AT web.de>
7372
7373         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
7374           debugging .asm-output macros FENTRY + FEXIT
7375         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
7376           way... I wonder...
7377         * (emitpComment): NEW, printf to pCode
7378         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
7379           offset handling
7380         * (popGetAddr): NEW, variant of popGet to access an immediates
7381           high(er) bytes instead of the n'th byte of memory they reference,
7382           replaced popGet with popGetAddr where neccessary
7383         * (genDataPointerGet): reactivated and fixed implementation
7384         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
7385           accesses
7386         * (genDataPointerSet): fixed multibyte assignments
7387         * (genpic14Code): fixed --i-code-in-asm handling
7388         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
7389         * (genPlus): fixed index-out-of-bounds error
7390         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
7391         * src/pic/ralloc.c: added debugging output macro FENTRY2
7392         * (spillThis): fixed indentation, enbraced for-body for clarity
7393         * (rematStr): commented out as now unused
7394         * (regTypeNum): commented out special spill case (overwrites
7395           arbitrary values)
7396         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
7397
7398 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
7399
7400         * doc/sdccman.lyx: documented sfr16/sfr32,
7401           added example for using storage class with function pointers
7402         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
7403
7404 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
7405
7406         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
7407         * device/lib/_itoa.c,
7408         * device/lib/_ltoa.c: optimized codesize
7409         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
7410           but don't know how to suppress the double warning.
7411         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
7412         * support/Util/SDCCerr.c,
7413         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
7414
7415 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
7416
7417         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
7418           fixed old K&R prototypes
7419         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
7420         * device/lib/_gptrget.c,
7421         * device/lib/_gptrgetc.c,
7422         * device/lib/_gptrput.c: changed versions for new memory indicator values,
7423           also new versions for small generic pointers and banked generic pointers
7424         * src/port.h: added const_name
7425         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
7426         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
7427         * src/SDCCcse.c (findPrevIc): check all associative operators
7428         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
7429         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
7430         * src/SDCCmem.c: updated comments,
7431           set far-space to 0 for pdata, results in optimized code
7432         * src/SDCCmem.h: added macro CONST_NAME
7433         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
7434           moving the info into the highest bits, see also gptrget/gptrput
7435         * src/src.dsp: added sdcc.ico to project files
7436         * src/avr/gen.c (genCast): fixed bug 0x%d
7437         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
7438         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
7439           relation between ptr_type and DCL_TYPE,
7440           (genCast): fixed bug 0x%d
7441         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
7442           (CODE)" for const_name
7443         * src/hc08/gen.c (genCast): fixed bug 0x%d
7444         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
7445           (hc08_port): added "CONST (CODE)" for const_name
7446         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
7447           (aopForRemat, adjustArithmeticResult): disconnected direct relation
7448           between ptr_type and DCL_TYPE,
7449           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
7450           operand* and took AOP() inside function so sfr-ness can be checked,
7451           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
7452           new prototype,
7453           (genFunction, genEndFunction): optimized stack setup,
7454           (genMinus): optimized for literals with ending zeroes (in bytes),
7455           (genCast): fixed bug 0x%d
7456         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
7457           (mcs51_port): added "CONST (CODE)" for const_name
7458         * src/mcs51/peeph.def: made rule 226 more generic
7459         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
7460         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
7461         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
7462         * src/z80/main.c (z80_port): added NULL for const_name,
7463           (gbz80_port): added NULL for const_name
7464         * support/regression/tests/bug663539.c,
7465         * support/regression/tests/sfr16.c: new tests
7466
7467 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7468
7469         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
7470
7471 2005-06-24 Raphael Neider <rneider AT web.de>
7472
7473         * device/lib/pic16/libdev/pic18f[68][567]20.c:
7474           corrected typos...
7475         * device/include/pic16/signal.h: added USBIF
7476           and SIG_USB
7477
7478 2005-06-24 Raphael Neider <rneider AT web.de>
7479
7480         * device/lib/pic16/libdev/pic18f2455.c,
7481           device/include/pic16/pic18f2455.h: NEW
7482         * device/include/pic16/pic18fregs.h,
7483           device/lib/pic16/pics.all,
7484           src/pic16/device.c: added 18f2455
7485         * device/lib/pic16/libdev/pic18f[68][567]20.c,
7486           device/include/pic16/{pic18f[68][567].h,usart.h}:
7487           replaced MULTIPLE_USARTS define with more relaible
7488           compatibility sfrs (for USART access)
7489
7490 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
7491
7492         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
7493           and the output asm file line is printed on two lines.
7494
7495 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7496
7497         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
7498           BGT, BLE, BHI, and BLS instructions
7499         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
7500           genCmpEq): removed
7501         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
7502           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
7503           fixes bug #1216342
7504         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
7505
7506 2005-06-15 Raphael Neider <rneider AT web.de>
7507
7508         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
7509         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
7510         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
7511           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
7512           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
7513
7514 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7515
7516         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
7517           Marcel Telka in bug #1215704
7518
7519 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
7520
7521         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
7522           located in shared memory bank.
7523
7524 2005-05-31 Raphael Neider <rneider AT web.de>
7525
7526         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
7527           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
7528           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
7529
7530 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
7531
7532         * device/lib/_strncpy.c: fixed the fix
7533
7534 2005-05-26 Raphael Neider <rneider AT web.de>
7535
7536         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
7537           initializers with \0, bug #1208187
7538         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
7539           intializers with \0, bug #1208187
7540
7541 2005-05-26 Raphael Neider <rneider AT web.de>
7542
7543         * src/pic16/glue.c (pic16_printIvalChar): fixed string
7544           initializers with \0, bug #1208187
7545         * src/pic16/main.c (_process_pragma): added sanity checks
7546           for stack position and size, emit warnings when appropriate
7547
7548 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
7549
7550         * device/lib/_strncpy.c: fixed not filling with \0
7551
7552 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7553
7554         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
7555           createFunction),
7556         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
7557           compound_statement),
7558         * src/SDCCsymt.h,
7559         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
7560
7561 2005-05-24 Raphael Neider <rneider AT web.de>
7562
7563         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
7564
7565 2005-05-24 Raphael Neider <rneider AT web.de>
7566
7567         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
7568           TRISE definitions, closes bug #1162453
7569
7570 2005-05-22 Raphael Neider <rneider AT web.de>
7571
7572         * src/pic16/main.c (_process_pragma): check for missing
7573           arguments to pragmas code and udata
7574         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
7575           consistency fixes to match other headers (thanks to Jim Paris)
7576         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
7577
7578 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
7579
7580         * src/SDCCicode.c (isOperandEqual): fixed missing ;
7581
7582 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
7583
7584         * support/regression/tests/bug1198642.c: new test
7585         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
7586         * src/SDCCcse.c (findPrevIc): added comment, please have a look
7587         * support/scripts/resource.h,
7588         * support/scripts/resource.rc,
7589         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
7590         * support/scripts/sdcc.ico: added 32x32 icon
7591
7592 2005-05-18 Raphael Neider <rneider AT web.de>
7593
7594         * device/lib/pic16/libdev/pic18f*.c,
7595         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
7596           keywords to "__sfr" and "__at (X)"
7597         * device/include/pic16/pic18fregs.h: added pic18f4520
7598         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
7599           #1203088 (MPLAB compatibility)
7600
7601 2005-05-17 Raphael Neider <rneider AT web.de>
7602
7603         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
7604         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
7605         * device/lib/pic16/pics.all: added new devices
7606         * src/pic16/device.c: added support for pic18f4520
7607
7608 2005-05-16 Raphael Neider <rneider AT web.de>
7609         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
7610         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
7611         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
7612           convenience function for bit access
7613
7614 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
7615
7616         * device/lib/printf_large.c: fixed bug 1193299
7617         * support/regression/tests/bug1057979.c: added test %3.3s
7618
7619 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7620
7621         * device/include/mcs51/8051.h,
7622         * device/include/mcs51/8052.h: made parseable with lint
7623         * device/include/mcs51/lint.h: added include file for (sp)lint
7624         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
7625         * doc/cdbfileformat.lyx,
7626         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
7627
7628 2005-05-14 Raphael Neider <rneider AT web.de>
7629
7630         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
7631         * device/lib/pic16/libc/stdlib/itoa.c (new)
7632         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
7633         * device/lib/pic16/libio/Makefile: exclude subdir according to
7634           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
7635         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
7636         * src/pic16/gen.c (genFunction): prevent annoying warning
7637         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
7638           nameclashes on BeOS
7639         * support/cpp2/cppmain.c (cpp_output_string): new
7640         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
7641           fixes bug 1116802
7642
7643 2005-05-13 Borut Razem <borut.razem AT siol.net>
7644
7645         * src/SDCCmain.c (linkEdit): fixed bug 1195202
7646
7647 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7648
7649         * .version: changed to version 2.5.1; back to bleeding edge development
7650
7651 2005-05-11 Borut Razem <borut.razem AT siol.net>
7652
7653         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
7654           generate PDF version 1.3 documents
7655
7656 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7657
7658         * .version: changed to version 2.5.0
7659
7660 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7661
7662         * doc/sdccman.lyx: updated weblinks, index and smaller updates
7663
7664 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7665
7666         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
7667         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
7668         well as many smaller updates.
7669         * .version: changed to version 2.5.0-pre1
7670
7671 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7672
7673         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
7674
7675 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
7676
7677         * support/regression/tests/bug1185672.c: added
7678         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
7679           bug 1185672
7680         * src/mcs51/gen.c (genCall): added comments, made it look safer
7681         * src/mcs51/gen.c (genEndFunction): simplified
7682
7683 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
7684
7685         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
7686
7687 2005-04-14 Borut Razem <borut.razem AT siol.net>
7688
7689         * fixed bug 1045046 - SIGSEGV with really simple code?:
7690           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
7691           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
7692
7693 2005-04-14 Borut Razem <borut.razem AT siol.net>
7694
7695         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
7696           src/pic16/device.h: temporarily disabled experimental #inline pragma
7697           for 2.5.0 release
7698
7699 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
7700
7701         * device/include/z80/stdio.h,
7702         * device/include/z80/string.h: removed these highly incomplete files so
7703           SDCC can use the default ones in device/include/
7704
7705 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7706
7707         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
7708         gcc warning.
7709         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
7710         fix sdcpp warnings.
7711
7712 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
7713
7714         * device/include/malloc.h: removed redundant __reentrant prototypes
7715         * device/lib/_mullong.c: added working xstack variant in asm (C version
7716           doesn't pass regression tests)
7717         * device/lib/bpx.c: used __data and made bpx char for mcs51
7718         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
7719           (createFunction): fixed bug with xstackPtr
7720         * src/SDCCcse.c: corrected comments
7721         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
7722           (killDeadCode, eBBlockFromiCode): removed unused code
7723         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
7724           corrected comments
7725         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
7726           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
7727           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
7728           (genModOneByte): fixed warning in MSVC
7729         * src/mcs51/main.c (): added comments
7730         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
7731
7732 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
7733
7734         * src/SDCCmain.c (linkEdit): oops, changed one line too many
7735
7736 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
7737
7738         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
7739
7740 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
7741
7742         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
7743         characters arrays of larger size than the declared one.
7744
7745 2005-04-10 Borut Razem <borut.razem AT siol.net>
7746
7747         * src/pic/gen.c (genInline),
7748           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
7749           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
7750           (findNextInstruction), (findPrevInstruction),
7751           (findInstructionUsingLabel),
7752           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
7753         * src/pic/pcode.c (findLabel): added missing '\n'
7754         * src/src.dsp: added SDCCdwarf2.c to the project
7755
7756 2005-04-09 Borut Razem <borut.razem AT siol.net>
7757
7758         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
7759
7760 2005-04-08 Raphael Neider <rneider AT web.de>
7761
7762         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
7763           into the chain after a given one) and mergeDefmapSymbols (combine
7764           defmap entries for each symbol per pcode)
7765         * (createDefmap): have defmap entries merged in the end
7766         * (defmapReplaceSymRef): split defmap entries covering two accesses to
7767           a symbol before replacing one access type's symbol, merge symbols in
7768           the end (replacement symbol might already have an entry)
7769         * (assignValnums): keep reference to written WREG intact
7770
7771 2005-04-08 Raphael Neider <rneider AT web.de>
7772
7773         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
7774           Alpha)
7775
7776 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
7777
7778         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
7779         bytes
7780
7781 2005-04-07 Raphael Neider <rneider AT web.de>
7782
7783         * device/include/pic16/usart.h: added compatibility defines for
7784           devices with more than one USART
7785         * device/include/pic16/pic18f[68][567]20.h: activated above defines
7786
7787 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7788
7789         * device/lib/Makefile.in: updated for port specific include
7790
7791 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7792
7793         * support/regression/ports/mcs51/spec.mk: added mcs51 include
7794
7795 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7796
7797         * device/include/8051.h,
7798         * device/include/8052.h,
7799         * device/include/at89S8252.h,
7800         * device/include/at89c55.h,
7801         * device/include/at89x051.h,
7802         * device/include/at89x51.h,
7803         * device/include/at89x52.h,
7804         * device/include/mcs51reg.h,
7805         * device/include/reg51.h,
7806         * device/include/reg764.h,
7807         * device/include/regc515c.h,
7808         * device/include/sab80515.h: (re)moved these 12 files
7809         * device/include/mcs51/8051.h,
7810         * device/include/mcs51/8052.h,
7811         * device/include/mcs51/at89S8252.h,
7812         * device/include/mcs51/at89c55.h,
7813         * device/include/mcs51/at89x051.h,
7814         * device/include/mcs51/at89x51.h,
7815         * device/include/mcs51/at89x52.h,
7816         * device/include/mcs51/mcs51reg.h,
7817         * device/include/mcs51/reg51.h,
7818         * device/include/mcs51/reg764.h,
7819         * device/include/mcs51/regc515c.h,
7820         * device/include/mcs51/sab80515.h: and added them here
7821
7822 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
7823
7824         * device/include/stdarg.h: changed SDCC specific keywords to double
7825           underlined form.
7826         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
7827           mcs51 and ds390.
7828         * device/include/hc08/mc68hc908gp32.h,
7829         * device/include/hc08/mc68hc908jb8.h,
7830         * device/include/hc08/mc68hc908jkjl.h,
7831         * device/include/hc08/mc68hc908qy.h: fixed comments
7832         * device/include/mcs51/README: updated
7833         * device/include/mcs51/c8051f120.h: added PINRSF
7834         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
7835         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
7836           amidst code. Also inline is not supported.
7837
7838 2005-04-06 Raphael Neider <rneider AT web.de>
7839
7840         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
7841         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
7842           callers stack/frame pointers
7843
7844 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
7845
7846         * device/include/pic16/usart.h: added, missing in previous commit,
7847         * device/include/pic16/adc.h: fixed typo,
7848         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
7849         commit,
7850         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
7851         <p18fxxx.inc>
7852         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
7853         uninitialized because a bug appears with gplink
7854         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
7855         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
7856         complains for unrecognised option
7857
7858 2005-04-05 Raphael Neider <rneider AT web.de>
7859
7860         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
7861           structs as well (using memcpy)
7862         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
7863           on ISRs (GOTO has no label)
7864         * src/pic16/device.h: added OF_OPTIMIZE_DF
7865         * src/pic16/main.c: added compiler switch --optimize-df to enable the
7866           new data flow analysis/optimization
7867         * src/pic16/pcode.c: added (prototypes for and implementation of)
7868           dataflow analysis functions, fixed pCodeInstructions' inCond and
7869           outCond values, made RCALL a branch instruction
7870         * (pic16_unlinkpCode): keep C line if possible
7871         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
7872           C line moved if possible
7873         * (pic16_getRegFrompCodeOp): NEW, improved version of...
7874         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
7875           to use new pic16_getRegFrompCodeOp (works for more SFRs)
7876         * (pic16_BuildFlow): fixed skip instructions with label (did not start
7877           new flow)
7878         * (pic16_getJumptabpCode): NEW, needed in...
7879         * (LinkFlow): fixed handling of jumptables, calls and conditional
7880           branches
7881         * (pic16_InsertCommentAfter): NEW
7882         * (pic16_pCodeReplace): made verbose and flow preserving
7883         * (AnalyzeFlow): added call to data flow analysis
7884         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
7885         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
7886         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
7887
7888 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7889
7890         * src/SDCCast.c (decorateType): fixed bug #1105626
7891
7892 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
7893
7894         * device/include/asm/pic16/features.h,
7895         * pic18f*.h headers,
7896         * device/include/pic16/adc.h,
7897         * device/include/pic16/delay.h,
7898         * device/include/pic16/i2c.h,
7899         * device/include/pic16/malloc.h,
7900         * device/include/pic16/stdio.h,
7901         * device/include/pic16/stdlib.h,
7902         * device/include/pic16/string.h,
7903         * device/lib/pic16/libc/stdio/printf_tiny.c,
7904         * device/lib/pic16/libc/stdio/printf_small.c,
7905         * device/lib/pic16/libc/stdio/strmgpsim.c,
7906         * device/lib/pic16/libc/stdio/strmmssp.c,
7907         * device/lib/pic16/libc/stdio/strmusart.c,
7908         * device/lib/pic16/libc/stdio/vfprintf.c,
7909         * device/lib/pic16/libc/stdlib/ltoa.c,
7910         * device/lib/pic16/libc/stdlib/putchar.c,
7911         * device/lib/pic16/libc/stdlib/x_ftoa.c,
7912         * device/lib/pic16/libc/stdlib/memchrpgm.c,
7913         * device/lib/pic16/libc/stdlib/memchrram.c,
7914         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
7915         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
7916         * device/lib/pic16/libio/adc/adcbusy.c,
7917         * device/lib/pic16/libio/adc/adcread.c,
7918         * device/lib/pic16/libio/adc/adcsetch.c,
7919         * device/lib/pic16/libio/usart/ubaud.c,
7920         * device/lib/pic16/libio/usart/ubusy.c,
7921         * device/lib/pic16/libio/usart/udrdy.c,
7922         * device/lib/pic16/libio/usart/uopen.c,
7923         * device/lib/pic16/libio/usart/uputc.c,
7924         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
7925         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
7926         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
7927         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
7928         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
7929         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
7930         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
7931         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
7932         specific keywords to double underlined form,
7933         * device/lib/pic16/libc/Makefile.rules,
7934         * device/lib/pic16/libsdcc/Makefile.rules,
7935         * device/lib/pic16/libm/Makefile,
7936         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
7937         to compile with C standard set in Makefile.common
7938         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
7939         rand.c and crc.c in compilation process,
7940         * device/lib/pic16/libsdcc/int/divuint.c,
7941         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
7942         `c' from signed to unsigned,
7943         * device/lib/pic16/startup/crt0.c,
7944         * device/lib/pic16/startup/crt0i.c,
7945         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
7946         keywords to double underlined form, bug fixes in _do_cinit function
7947         which prevented the correct initialization of the .idata segment,
7948         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
7949         core to enter a infinite loop
7950         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
7951
7952 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7953
7954         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
7955
7956 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7957
7958         * device/include/Makefile.in: add support for hc08 subdirectory
7959         * device/include/hc08/: new subdirectory
7960         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
7961         Lucas Loizaga, thanks!
7962         * device/include/hc08/mc68hc908qy.h,
7963         * device/include/hc08/mc68hc908gp32.h,
7964         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
7965         their own directory. Changed internal macro names to use the compiler
7966         reserved namespace. Changed SDCC specific keywords to double
7967         underlined form.
7968         * device/include/math.h,
7969         * device/include/malloc.h,
7970         * device/include/stdarg.h,
7971         * device/include/stdbool.h
7972         * device/include/string.h,
7973         * device/include/tinibios.h,
7974         * device/include/ds400rom.h,
7975         * device/include/8051.h,
7976         * device/include/8052.h,
7977         * device/include/80c51xa.h,
7978         * device/include/at89c55.h,
7979         * device/include/at89S8252.h,
7980         * device/include/at89x51.h,
7981         * device/include/at89x52.h,
7982         * device/include/ds80c390.h,
7983         * device/include/reg764.h,
7984         * device/include/regc515c.h,
7985         * device/include/sab80515.h,
7986         * device/include/mcs51/c8051f000.h,
7987         * device/include/mcs51/c8051f018.h,
7988         * device/include/mcs51/c8051f020.h,
7989         * device/include/mcs51/c8051f040.h,
7990         * device/include/mcs51/c8051f060.h,
7991         * device/include/mcs51/c8051f120.h,
7992         * device/include/mcs51/c8051f300.h,
7993         * device/include/mcs51/c8051f310.h,
7994         * device/include/mcs51/c8051f320.h,
7995         * device/include/mcs51/c8051f330.h,
7996         * device/include/mcs51/c8051f350.h,
7997         * device/include/z180.h: Changed SDCC specific keywords to double
7998         underlined form.
7999
8000 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
8001
8002         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
8003         18F4455,
8004         * (pic16_assignConfigWordValue): disable testing of configuration
8005         register value with config mask,
8006         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
8007         function with port->fun_prefix,
8008         * (genFunction): when generating a naked interrupt function never
8009         create an absolute segment placed in interrupt vector address, place
8010         the actual interrupt function at IVA instead, when an interrupt
8011         function is generated with unspecified interrupt then do not create
8012         the absolute section,
8013         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
8014         code for generating a call to generic pointer get/put function with
8015         a call to function pic16_callGenericPointer(),
8016         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
8017         the call to the generic pointer get/put functions with prefixing the
8018         function name with port->fun_prefix,
8019         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
8020         * src/pic16/main.c (_process_pragma): prefix function with
8021         port->fun_prefix,
8022         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
8023         calling assembler, old 18Fxxxx macro is deprecated,
8024         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
8025         PC_ASMDIR in while condition,
8026         * (findInstruction): add PC_ASMDIR in while condition,
8027         * (buildCallTree): prefix main with port->fun_prefix,
8028         * (pic16_pCode2str): fixed bug that didn't emit the memory access
8029         identifier for variable with banked access in instructions BTFSS,
8030         BTFSC, BCF, BSF, BTG
8031         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
8032         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
8033         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
8034         perform optimization when enviroment variable NO_REG_OPT is set,
8035         * (insideLRBlock): NEW, return 1 if register is inside an
8036         INF_LOCALREGS block,
8037         * (RemoveRegFromLRBlock): remove a register that is completely
8038         eliminated by register optimization, but it is still left in local
8039         register store/restore in/from stack block,
8040         * (Remove2pcodes): after removing register, check to see if it
8041         should be removed from local register store/restore in/from stack
8042         block,
8043         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
8044         DUMMY_READ_VOLATILE,
8045
8046         * device/include/pic16/adc.h: minor prototype modifications and
8047         update,
8048         * device/include/pic16/malloc.h: added GPL notice various
8049         modifications,
8050         * device/include/pic16/stdint.h: NEW, standard header for ints
8051         * device/include/pic16/delay.h: NEW, header for delay functions,
8052         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
8053         delay1mtcy,
8054         * device/include/pic16/signal.h: NEW, header providing helper macros
8055         for implementing signal handlers,
8056         * device/include/pic16/stdio.h: added prototypes for functions,
8057         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
8058         prototypes for stdin and stdout, added macro PUTCHAR to
8059         automatically implement putchar function prototype,
8060         * device/include/pic16/usart.h: modified and updated USART library,
8061         * device/lib/pic16/libio/adc/,
8062         * device/lib/pic16/libio/i2c: some modifications to improve library
8063         performance,
8064         * device/lib/pic16/libc/stdio/: modifications for the new printf*
8065         family of functions,
8066         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
8067         family of functions and other sources,
8068         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
8069         of the PIC18Fxx[28] devices,
8070         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
8071         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
8072         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
8073         _do_cinit function, because the previous failed when local variables
8074         where not placed in the same memory bank,
8075         * device/lib/pic16/libsdcc/char/: various modifications to improve
8076         library performance,
8077         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
8078         information on the new functions of the c library and more...
8079
8080 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8081
8082         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
8083
8084 2005-03-26 Raphael Neider <rneider AT web.de>
8085
8086         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
8087           if condition == CARRY)
8088         * (genCmp): adapted to new genSkipc semantics
8089         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
8090           on rIfx (genCmp was broken)
8091
8092 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8093
8094         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
8095         * src/z80/main.c (_keywords[]),
8096         * src/SDCCglobal.h (struct options),
8097         * src/SDCC.y,
8098         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
8099         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
8100         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
8101         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
8102         always available in leading double underscore form. The C99 support is
8103         mostly missing, but it's a start.
8104         * support/regression/tests/bug-227710.c: fixed nonconforming use of
8105         reserved identifier "__data".
8106
8107 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
8108
8109         * src/mcs51/peeph.def: fixed bug 1170013
8110
8111 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
8112
8113         * device/include/mcs51reg.h: fixed bug 842007
8114
8115 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8116
8117         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
8118         last time.
8119
8120 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8121
8122         * src/port.h (struct PORT),
8123         * src/avr/ralloc.c (avr_assignRegisters),
8124         * src/avr/main.c,
8125         * src/ds390/ralloc.c (ds390_assignRegisters),
8126         * src/ds390/main.c,
8127         * src/hc08/ralloc.c (hc08_assignRegisters),
8128         * src/hc08/main.c,
8129         * src/mcs51/ralloc.c (mcs51_assignRegisters),
8130         * src/mcs51/main.c,
8131         * src/pic/ralloc.c (pic14_assignRegisters),
8132         * src/pic/main.c,
8133         * src/pic16/ralloc.c (pic16_assignRegisters),
8134         * src/pic16/main.c,
8135         * src/xa51/ralloc.c (xa51_assignRegisters),
8136         * src/xa51/main.c,
8137         * src/z80/ralloc.c (z80_assignRegisters),
8138         * src/z80/ralloc.h,
8139         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
8140         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
8141         * src/SDCCcse.h,
8142         * src/SDCCdflow.c (computeDataFlow),
8143         * src/SDCCdflow.h,
8144         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
8145         * src/SDCCloop.h,
8146         * src/SDCCcflow.c (*),
8147         * src/SDCCcflow.h,
8148         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
8149         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
8150         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
8151         immedDom() returning wrong block; probably fixes bug #1160833)
8152
8153 2005-03-20 Borut Razem <borut.razem AT siol.net>
8154
8155         * support/scripts/inc2h.pl: WIN32 port
8156
8157 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
8158
8159         * device/lib/makefile.in: added abs.c and labs.c
8160
8161 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
8162
8163         * device/include/stdint.h: added
8164         * device/lib/abs.c: added
8165         * device/lib/labs.c: added
8166         * device/include/stdlib.h: added abs() and labs() prototypes
8167         * device/lib/libsdcc.lib: added abs and labs
8168         * device/include/float.h,
8169         * device/lib/_fsmul.c,
8170         * device/lib/printf_fast.c,
8171         * device/lib/printf_tiny.c: updated comments
8172
8173 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8174
8175         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
8176         bug #1164313
8177
8178 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8179
8180         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
8181         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
8182
8183 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
8184
8185         * device/lib/printf_large.c: removed inline assembly for portability and
8186           readability. Use printf_fast if speed or size are more important.
8187         * src/pic16/gen.c: removed conditions around use of DEBUGpc
8188         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
8189
8190 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
8191
8192         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
8193         prevent compiler warning
8194
8195 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
8196
8197         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
8198         moved to level 0 and declared as static. Also they are explicit
8199         placed in access bank. This was necessery because some times they
8200         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
8201         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
8202         optimizations. Currently only compare to unsigned char is implemented,
8203         * src/pic16/gen.c: added fReturnIdx array,
8204         * (struct resolvedIfx) is moved to gen.h and made public,
8205         * (struct _G): added sregsAlloc and sregsAllocSet fields,
8206         * (aopForSym): added an optimization to directly store in stack of
8207         the operand of a SEND iCode,
8208         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
8209         but as registers instead (AOP_REG) using the fReturnIdx array,
8210         * (pic16_freeAsmop): remove the freed register from the
8211         _G.sregsAlloc field,
8212         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
8213         a compare of 'WREG',
8214         * (pic16_popGetTempRegCond): changed function prototype, now
8215         function takes also a bitVector argument v which holds the current
8216         set of registers that are allocated for stack access by aopForSym,
8217         registers allocated in aopForSym for accessing stack symbols are not
8218         any more part of the functions usedRegs field,
8219         * (genCall): some times aopOp is called for a stack variable to be
8220         send, aopForSym might perform the push, if this is true make sure
8221         that genCall doesn't push the variable twice by testing _G.resDirect,
8222         * (genFunction): changed testing for unspecified interrupt number
8223         from 256 to INTNO_UNSPEC,
8224         * modified selection scheme of frame pointer generation. Previously
8225         if function did use local registers a frame pointer was generated,
8226         now a frame pointer is generated only if function has arguments
8227         (that need PLUSW2 register access), or has stack arguments, or the
8228         compiler is not instructed to omit the frame pointer,
8229         * (genEndFunction): before restoring local registers that were saved
8230         in the function preamble, also restore the registers that *might*
8231         have been allocated for stack access,
8232         * (genRet): removed some old comments,
8233         * (genCmp, the active (RN's) version): added a call to the
8234         pic16_genCmp_special function to perform the compare with a more
8235         robust and optimized way,
8236         * (genInline): a feature has been added in inline code generation,
8237         which allows a wildcard variable substitution when writing inline
8238         assembly. Code is incomplete and experimental therefore undocumented,
8239         * (genCast): changed order of aopOp for result and right to allow
8240         aopForSym to directly load the result if possible,
8241         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
8242         perform an optimized compare on some selected special occasions,
8243         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
8244         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
8245         generate an IVT any more,
8246         * src/pic16/main.c (pic16_optionsTable): added command line option
8247         --optimize-cmp,
8248         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
8249         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
8250         macros,
8251         * src/pic16/NOTES: Raphael Neider added in list of active developers
8252         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
8253         jumptable_end to prevent bug #,
8254         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
8255         inCond and outCond fields,
8256         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
8257         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
8258         turn off register spilling,
8259         * (packRegsForOneUse): synced with other ports' versions although it
8260         is not used currently,
8261         * (pic16_packRegisters): added an optimization while reading
8262         structure bitfields, some registers may be saved (malloc code is
8263         decreased by 80 bytes)
8264
8265 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
8266
8267         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
8268         left is a bitfield, if yes, then don't optimize assignment. Perhaps
8269         this can be optimized more?
8270
8271 2005-03-10 Raphael Neider <rneider AT web.de>
8272
8273         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
8274           genNearPointerGet): (hopefully) fixed access to bitfields via
8275           pointers (p->bitN = x; and x = p->bitN; failed)
8276
8277 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
8278
8279         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
8280
8281 2005-03-09 Raphael Neider <rneider AT web.de>
8282
8283         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
8284
8285 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
8286
8287         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
8288         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
8289           (regTypeNum): set REG_BIT type if necessary
8290         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
8291         * support/regression/tests/critical.c: check bug 1144613
8292
8293 2005-03-02 Raphael Neider <rneider AT web.de>
8294
8295         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
8296
8297 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8298
8299         * src/avr/ralloc.c (serialRegAssign),
8300         * src/ds390/ralloc.c (serialRegAssign),
8301         * src/hc08/ralloc.c (serialRegAssign),
8302         * src/mcs51/ralloc.c (serialRegAssign),
8303         * src/pic/ralloc.c (serialRegAssign),
8304         * src/pic16/ralloc.c (serialRegAssign),
8305         * src/xa51/ralloc.c (serialRegAssign),
8306         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
8307
8308 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
8309
8310         * src/SDCCast.c (decorateType): fixed bug 1124787
8311
8312 2005-02-20 Hubert Sack <sack AT digiplan.de>
8313         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8314
8315         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
8316         patch #1121755
8317
8318 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8319
8320         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
8321         to keep the correct label reference count when adding/removing references
8322         to labels. A peephole file using this is appended to patch #1144962.
8323
8324 2005-02-14 Raphael Neider <rneider AT web.de>
8325
8326         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
8327         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
8328         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
8329           retrievals of result operand's value on assignment
8330
8331 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
8332
8333         * device/include/pic16/string.h: modified prototype for memccpy()
8334         to memccpy(void *, void *, char, size_t)
8335         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
8336         check whether to omit frame pointer or not,
8337         * (genInline): convert all occurences of "\n" to LF in inline
8338         assembler blocks, this helps formatting the inline text,
8339         * (pic16_loadFSR0): modified prototype,
8340         * (genNearPointerGet, genNearPointerSet): reorganization of code,
8341         removed some 8051 legacy code,
8342         * (genPackBits): enabled handling bitfields exceeding one byte in size,
8343         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
8344         before allocating temporary registers in functions,
8345
8346 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
8347
8348         * support/regression/tests/bitvars.c: corrected the "fix"
8349
8350 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
8351
8352         * support/regression/tests/bitvars.c,
8353         * support/regression/tests/bitwise.c,
8354         * support/regression/tests/rotate.c: "fixed" problems on Alpha
8355
8356 2005-02-10 Raphael Neider <rneider AT web.de>
8357
8358         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
8359           different size for Alpha
8360         * src/pic16/gen.c (genCmpEq) : improved compare with 0
8361
8362 2005-02-09 Raphael Neider <rneider AT web.de>
8363
8364         * src/SDCC.lex(doPragma) : save and restore warning options as well
8365           (also added new stack plus clone- and copyAndFreeSDCCERRG())
8366         * have #pragma less_pedantic set the errorlevel to WARNING
8367           (fixes #1117001)
8368         * (cloneOptimize) : fixed wrong malloc's size
8369         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
8370           facilitate correct handling of #pragma (save|restore)
8371
8372 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
8373
8374         * src/mcs51/gen.c: removed non-standard C nameless struct/union
8375
8376 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
8377
8378         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
8379
8380 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
8381
8382         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
8383
8384 2005-02-02 Raphael Neider <rneider AT web.de>
8385
8386         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
8387         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
8388         * (pic16_storeForReturn): fixed to allow returning function pointers
8389         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
8390         * device/include/pic16/{stddef.h,stdbool.h}: added
8391
8392 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
8393
8394         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
8395
8396 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
8397
8398         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
8399         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
8400          appeared to be required
8401
8402 2005-01-31 Borut Razem <borut.razem AT siol.net>
8403
8404         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
8405           include/mcs51 and include/z80 directories to the package
8406
8407 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8408
8409         * src/hc08/gen.c (genFunction): fixed bug #1112752
8410
8411 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8412
8413         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
8414
8415 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8416
8417         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
8418
8419 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
8420
8421         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
8422
8423 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
8424
8425         * device/include/c8051fxxx.h: removed these 6 files
8426         * device/include/mcs51/c8051fxxx.h: added these 11 new files
8427
8428 2005-01-26 Raphael Neider <rneider AT web.de>
8429
8430         * src/pic16/gen.c (genAssign): fixed assignment from longs
8431           in codespace (were cut to three bytes)
8432         * (genDummyRead): implemented (except for CODESPACE...),
8433           fixed bug #1108575
8434         * src/pic16/glue.c (emitStatistics): beautified
8435         * device/lib/pic16/libm/Makefile: added include path
8436
8437 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8438
8439         * src/z80/gen.c (aopPut): fixed bug #1103902
8440
8441 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8442
8443         * device/lib/expf.c: fixed bug #1095792
8444
8445 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
8446
8447         * device/lib/pic16/libm: added Math library sources
8448
8449 2005-01-24 Raphael Neider <rneider AT web.de>
8450
8451         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
8452           to enable upcast to pCodeOpReg2 (there is no type tag to
8453           differenciate the two and pic16_popGet2p cast into PCOR2)
8454         * src/pic16/main.c (_process_pragma): fixed another malloc bug
8455           (sizeof(sectNames) changed to sizeof(sectName))
8456           Both patches fix segfaults under MinGW.
8457
8458 2005-01-23 Raphael Neider <rneider AT web.de>
8459
8460         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
8461           Safe_[mc]?alloc()'ed variables
8462         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
8463           of (byte sized) temporaries (assign them to WREG for now)
8464         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
8465           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
8466           this might fix SIGSEGVs on MinGW...
8467         * src/SDCCopt.c (killDeadCode): restored original behaviour
8468           (volatile operands might get thrown away though)
8469
8470 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
8471
8472         * src/pic16/gen.c: fixed bug #1106975,
8473         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
8474         pointer update, INTCON is saved, global interrupts are disabled and
8475         restored after updateing TOS.
8476         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
8477         * added function attribute 'shadowregs' to take advantage of shadow
8478         registers,
8479         * added function attribute 'wparam' as an alternative to the wparam
8480         pragma,
8481         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
8482         user declares a non-ISR function as 'shadowregs',
8483         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
8484
8485 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
8486
8487         * .version: bumped version number to 2.4.8
8488         * device/lib/pic16/pics.all: list of PIC18F devices supported by
8489         pic16 port,
8490         * device/lib/pic16/libio/i2c/: I2C module support library,
8491         * device/include/pic16/i2c.h: I2C support library header,
8492         * device/lib/pic16/libc/stdio/: standard IO support sources,
8493         * (printf_small.c): printf_small() source, supports float print,
8494         * (printf_tiny.c): printf_tiny() source, does not support floats,
8495         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
8496         enable global optimizations for entire library source, other
8497         Makefiles in the source tree are also modified to reflect this,
8498         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
8499         function,
8500         * doc/sdccman.lyx: updated to reflect new changes,
8501         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
8502         sym->onStack if-case,
8503         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
8504         sbit, idata, _idata, xdata, _xdata,
8505         * added pragma library, to link an external library, (see doc),
8506         * removed command line options, --pomit-config-words, --pomit-ivt,
8507         --pleave-reset-vector,
8508         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
8509         when calling assembler to reflect memory model used, also define
8510         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
8511         reflect stack model used,
8512         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
8513         on stack return NULL,
8514
8515 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
8516
8517         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
8518           of the operands is volatile. Fixes #1020220
8519
8520 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
8521
8522         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
8523         * (OptimizeRegUsage): make sure that there is really no other flow where
8524           the first pCode is used
8525
8526 2005-01-22 Raphael Neider <rneider AT web.de>
8527
8528         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
8529           to fix #1106967 (pCode->seq are not set up correctly)
8530
8531 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8532
8533         * src/SDCCglue.c (glue): make sure code area is declared before the
8534         static initialization area.
8535
8536 2005-01-21 Raphael Neider <rneider AT web.de>
8537
8538         * device/lib/Makefile.in: fixed test for pic16 install dir
8539         * device/lib/pic16/*/Makefile*: modified compile flags to enable
8540           optimizations
8541         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
8542           added --optimize-goto compiler switch and pragma wparam documentation
8543         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
8544         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
8545           and PRODH closing bug #1071770 (peephole optimizer)
8546
8547 2005-01-19 Raphael Neider <rneider AT web.de>
8548
8549         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
8550           cmdLine buffers (used when calling sdcpp...) are large enough
8551           (MAX_PATH=256 truncates arguments leading to system halts when
8552           used in MinGW...)
8553         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
8554         * (genUminus): rewritten to for efficiency
8555         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
8556           used uninitialized in some cases)
8557         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
8558           copy the third byte from the int -- now assumes 0x80 (data memory)
8559         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
8560           operands (genAddLit expects the iCode's operands to swapped as
8561           well), fixed leftover bytes (crashed for short left operands)
8562         * (pic16_genMinusDec): performance improvements, removed false
8563           PIC14 emitSKPNCs
8564         * (pic16_genMinus): fixed to cope with differently sized operands
8565         * src/pic16/glue.c (pic16_glue): added new banksel optimization
8566           for --obanksel > 1
8567         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
8568         * src/pic16/graph.[ch]: implementation of directed graphs, used by
8569           new banksel optimization
8570         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
8571           analysis for temporary registers (segfaults...)
8572         * src/pic16/peeph.def: added rule
8573
8574 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
8575
8576         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
8577         which converts a float number to its ASCII representation
8578         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
8579         functions to convert the fractional and integer part of a float to ASCII,
8580         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
8581         realloc.c): added _MALLOC_SPEC to explicit place variables in data
8582         ram
8583         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
8584         _STATMEM macros,
8585         * device/include/pic16/adc.h: added GPL info,
8586         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
8587         a pCodeOp as tested operand,
8588         * (genNearPointerGet): optimized bit testing, does not use
8589         intermediate register for bit value, test directly instead with
8590         BTFSS, BTFSC, works only for single bits,
8591         * (genpic16Code): dump the name of the iCode in the asm,
8592         * src/pic16/ralloc.c (decodeOp): removed static declaration and
8593         renamed to pic16_decodeOp,
8594         * (serialRegAssign): do not allocate a temporary register for iCode
8595         sequences that test a single bit for 1/0
8596
8597 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
8598
8599         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
8600         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
8601         access stack and frame pointers. They are initially assigned to
8602         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
8603         accessing SFRs. Updated all occurences of modification of stack or
8604         frame pointer in gen.c and pcode.c,
8605         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
8606         assigning of a literal value to pointers,
8607         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
8608         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
8609         selected
8610
8611 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
8612
8613         * doc/sdccman.lyx: update documentation about stack pragma, added
8614         some info for stack memory models
8615
8616 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8617
8618         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
8619
8620 2005-01-08 Raphael Neider <rneider AT web.de>
8621
8622         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
8623           udata sections to fix bug #1097823
8624
8625 2005-01-05 Raphael Neider <rneider AT web.de>
8626
8627         * src/pic16/gen.c (genGenericShift): added handling of differently
8628           sized left operand and result
8629
8630 2005-01-04 Raphael Neider <rneider AT web.de>
8631
8632         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
8633         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
8634           to hold the condition bit)
8635         * added new version of genCmp (old code available via #define)
8636         * added new version of genShiftLeft/genShiftRight in a generic
8637           way, now supports shifting by negative values
8638         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
8639           shiftCount (expected by genGenericShift)
8640         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
8641         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
8642           dump
8643         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
8644           is an invalid literal too...)
8645
8646 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
8647
8648         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
8649         from Raphael Neider,
8650         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
8651         for 8-bit literals. This fixes some literal operands which are sign
8652         extended to 16-bits ints when instruction needs only 8-bits.
8653
8654 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
8655
8656         * device/lib/logf.c: added mcs51 assembly version
8657         * device/lib/expf.c: added mcs51 assembly version
8658         * device/lib/_logexpf.c: new shared asm code for expf and logf
8659         * device/include/math.h: add defines for assembly math library
8660         * device/lib/Makefile.in: build new _logexpf.c
8661         * device/lib/libfloat.lib: use new _logexpf.c
8662
8663 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
8664
8665         * src/pic/device.c
8666         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
8667           device types which have less than 0x7f registers.
8668
8669 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
8670
8671         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
8672
8673 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
8674
8675         * device/lib/printf_fast.c: only build on supported arch.
8676         * device/lib/printf_tiny.c: only build on supported arch.
8677         * device/lib/printf_fast_f.c: only build if asm float lib
8678         * device/lib/_fsget1arg.c: only build if asm float lib
8679         * device/lib/_fsget2args.c: only build if asm float lib
8680         * device/lib/_fsnormalize.c: only build if asm float lib
8681         * device/lib/_fsreturnval.c: only build if asm float lib
8682         * device/lib/_fsrshift.c: only build if asm float lib
8683         * device/lib/_fsswapargs.c: only build if asm float lib
8684         * device/include/stdio.h: don't provide print_fast,
8685           print_fast_f, print_tiny prototypes if --xstack used
8686
8687 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
8688
8689         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
8690         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
8691           to the SOURCES
8692
8693 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
8694
8695         * device/lib/printf_fast_f.c: same as printf_fast, but
8696           with floating point enabled
8697         * device/lib/printf_fast.c: minor tweaks
8698         * device/include/stdio.h: add printf_fast_f
8699
8700 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
8701
8702         * src/SDCCmain.c: make --float-reent default for mcs51
8703         * device/lib/_fsadd.c: added mcs51 assembly version
8704         * device/lib/_fssub.c: added mcs51 assembly version
8705         * device/lib/_fsmul.c: added mcs51 assembly version
8706         * device/lib/_fsdiv.c: added mcs51 assembly version
8707         * device/lib/_fseq.c: added mcs51 assembly version
8708         * device/lib/_fsneq.c: added mcs51 assembly version
8709         * device/lib/_fsgt.c: added mcs51 assembly version
8710         * device/lib/_fslt.c: added mcs51 assembly version
8711         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
8712         * device/lib/Makefile.in: add _fscmp to build
8713         * device/lib/libfloat.lib: add _fscmp to build
8714
8715 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
8716
8717         * device/lib/_fs2slong.c: added mcs51 assembly version
8718         * device/lib/_fs2sint.c: added mcs51 assembly version
8719         * device/lib/_fs2schar.c: added mcs51 assembly version
8720         * device/lib/_fs2ulong.c: added mcs51 assembly version
8721         * device/lib/_fs2uint.c: added mcs51 assembly version
8722         * device/lib/_fs2uchar.c: added mcs51 assembly version
8723         * device/lib/_slong2fs.c: added mcs51 assembly version
8724         * device/lib/_sint2fs.c: added mcs51 assembly version
8725         * device/lib/_schar2fs.c: added mcs51 assembly version
8726         * device/lib/_ulong2fs.c: added mcs51 assembly version
8727         * device/lib/_uint2fs.c: added mcs51 assembly version
8728         * device/lib/_uchar2fs.c: added mcs51 assembly version
8729         * device/include/float.h: added #define to select asm vs c
8730
8731 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
8732
8733         * device/lib/printf_fast.c: improvements to float output
8734         * device/include/float.h: add defines for assembly float library
8735         * device/lib/_fsget1arg.c: receive 1 float arg
8736         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
8737         * device/lib/_fsnormalize.c: normalize a float
8738         * device/lib/_fsreturnval.c: return float, various helper routines
8739         * device/lib/_fsrshift.c: right shift a float's mantissa
8740         * device/lib/_fsswapargs.c: swap 2 floats
8741         * device/lib/Makefile.in: build these 6 new files for mcs51
8742         * device/lib/libfloat.lib: add these 6 files to the library
8743
8744 2004-12-26 Borut Razem <borut.razem AT siol.net>
8745
8746         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
8747           built by gcc 3.4.2
8748
8749 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
8750
8751         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
8752           and fully reentrant and register bank neutral.
8753         * device/lib/printf_fast.c: added float (not enabled by default),
8754           added compact/slower integer (also not enabled by default),
8755           improved size/speed of fast integer code, other minor changes
8756         * device/include/stdio.h, device/lib/Makefile.in,
8757           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
8758
8759 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
8760
8761         * src/pic16/pcode.c: declaring variables other than at the start of a
8762           block is not supported in C by VC6.
8763
8764 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
8765
8766         * applied a previous patch from Raphael Neider that wasn't included
8767         in the previous commits, which fixes infinite loops within jumptable
8768         improvements,
8769         * made some fixes that previous patches introduced
8770
8771 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
8772
8773         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
8774         that fixes an issue with AOP_PCODE asmop's offset,
8775         * (pic16_popCopyReg): update instance field too,
8776         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
8777         function of pic port,
8778         * (genCmp, genAnd, genAssign),
8779         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
8780
8781 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
8782
8783         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
8784         variables initial values to idata section,
8785         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
8786         variables in some functions. This utilizes parmBytes field of iCode
8787         structure to hold the offset of the variable in stack. (might be
8788         able to use the stack field too?)
8789         * applied patch from Raphael Neider # ### , # ###
8790         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
8791         variable initial values in idata section,
8792         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
8793         for static variables with initial value
8794         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
8795         applied fix in while loop from Raphael Neider.
8796
8797 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
8798
8799         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
8800         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
8801         * src/ds390/ralloc.c (serialRegAssign): spill bits
8802         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
8803         * support/Util/SDCCerr.c,
8804         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
8805         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
8806         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
8807
8808 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
8809
8810         * device/include/sdcc-lib.h: inserted LGPL, added includes
8811           asm/ds390/features.h and asm/mcs51/features.h
8812         * device/include/asm/default/features.h,
8813         * device/include/asm/gbz80/features.h,
8814         * device/include/asm/z80/features.h: added empty _AUTOMEM
8815           and _STATMEM
8816         * device/include/asm/ds390/features.h,
8817         * device/include/asm/mcs51/features.h: added files with defines for
8818           _AUTOMEM and _STATMEM indicating automatic and static storage class
8819         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
8820         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
8821         * src/SDCCicode.c (geniCodeCast),
8822         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
8823         * src/SDCCloop.c (loopInduction): removed unused variable lr
8824         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
8825           to convertToFcall to include char modulo (RFE 1065037), added check
8826           if left operand is unsigned and use abs of literal value
8827         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
8828           as it doesn't work after conversion from peephole.def to peephole.rul
8829         * src/mcs51/gen.c (toBoolean): added check for size,
8830           (genModOneByte): optimized code for signed char modulo a literal
8831           power of 2 (thanks to Hubert Sack),
8832           (genRRC): removed unnecessary "clr c",
8833           (genRLC): replaced "add a,acc" with cheaper "rlc a"
8834         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
8835           jump optimization,
8836           swapped rules 256.c and 256.d,
8837           extended 256.d by using new multiple checks (thanks Erik),
8838           added rules 256.e and 256.f,
8839           updated rule 261.a and 261.b to new generated code
8840         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
8841
8842 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8843
8844         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
8845           induction related bugs, including first part of bug #1074377
8846
8847 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
8848
8849         * applied patch from bug-report #1076292,
8850         * applied patches for genAnd and Goto-optimizations for Raphael
8851         Neider,
8852         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
8853         dump a less iCode information,
8854         * src/pic16/device.h (pic16_options_t): added field debgen,
8855         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
8856         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
8857         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
8858         puclic,
8859         * (various functions): added macros FENTRY and FENTRY2 to functions,
8860         to emit function prologue,
8861         * (various functions): fixed indentation,
8862         * (genNearPointerGet): fixed loading of FSR0,
8863         * (genPackBits): applied patch from Raphael Neider to fix updating
8864         of FSR0 and touching only the modified bits,
8865         * src/pic16/genarith.c (various functions): added macros FENTRY to
8866         emit function prologue in comments,
8867         * src/pic16/pcode.h: added functions debugf2, debugf3,
8868         * src/pic16/ralloc.c: partial fix for packForPush caused
8869         segmentation fault,
8870
8871 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8872
8873         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
8874           <stsp AT users.sourceforge.net> with reversed byte order
8875         * support/regression/tests/rotate.c: added (ds390 skips some tests)
8876
8877 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8878
8879         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
8880           bug #1074377
8881         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
8882         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
8883
8884 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
8885
8886         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
8887
8888 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8889
8890         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
8891           conditions,
8892           (setFromConditionArgs): friendly operand parser for peephole rules,
8893           (operandBaseName, operandsNotRelated): new peephole condition
8894           "operandsNotRelated" -- similar to "operandsNotSame", but takes
8895           architecture specific register naming into account, handles n-way
8896           comparisons, and supports quoted literals
8897         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
8898
8899 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8900
8901         * src/mcs51/peeph.def: fixed bug #1076940
8902
8903 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
8904
8905         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
8906
8907 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8908
8909         Adding support for replacing ljmps with sjmps in jumptables
8910         generated for switch statements. For now you need to set the
8911         environment variable SDCC_SJMP_JUMPTABLE to enable this.
8912         Now 4 algorithms for mcs51 jumptable generation are used:
8913         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
8914         addresses loaded pc-relative for up to 112 cases and stack-pushing
8915         target addresses loaded with offset from dptr for up to 256 cases.
8916
8917         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
8918         * src/mcs51/main.c: adapted constants for switch table generation
8919         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
8920
8921 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
8922
8923         * device/lib/printf_large.c (_print_format): fixed bug 1073386
8924         * support/regression/tests/bug1057979.c: added test for bug 1073386
8925
8926 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
8927
8928         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
8929         compilers
8930
8931 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
8932
8933         * src/pic16/device.h,
8934         * src/pic16/genarith.c,
8935         * src/pic16/glue.c,
8936         * src/pic16/main.c,
8937         * src/pic16/pcode.c: applied patches #1068154 and #1070213
8938
8939 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
8940
8941         Large cummulative patch for pic16 port.
8942         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
8943         to call when a stack overflow occurs,
8944         * (malloc.h): added CVS Id tag,
8945         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
8946         variable,
8947         * added libc directory. The current version of LibC contains string
8948         functions, ctype functions and macros and some functions of the
8949         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
8950         be extensively tested in the future. Standard disclaimer here.
8951         Library is not automatically build yet. But one can build it by
8952         invoking 'make' inside the libc directory.
8953         * added ADC library under libio. Preliminary version yet.
8954
8955         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
8956         * src/pic16/gen.c (aopForRemat): asmop size is filled by
8957         aopForRemat() now and not by pic16_aopOp(),
8958         * (pic16_popGetTempReg): removed warning messgae when allocating
8959         temporary registers, its a buggy feature and will be removed,
8960         * (pic16_popGet): set register instance field in AOP_CRY,
8961         * (pic16_outBitC): fixed for results in size greater than 1,
8962         * (genUminusFloat): fixed for pic16, ported code from mcs51,
8963         * (pic16_storeForReturn): optimized return of 0,
8964         * (genCmp): experimental code for new genCmp which uses PIC18's
8965         special compare&skip instructions. Initial tests fail some times
8966         with variables grater than 1 byte in size, so new code is disabled,
8967         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
8968         a single bit,
8969         * (genCast): began a fix to optimize the casting of a bit to another
8970         bit, now assigning a bitfield to another bitfield will fail, sorry,
8971         * src/pic16/main.c: disabled the use of lr-support feature,
8972         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
8973         * added some function prototypes, added function _debugf prototype,
8974         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
8975         bits with offset (case PO_GPR_BIT),
8976         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
8977         command line,
8978         * (isBankInstruction): modified to return 0 for no banking instruction,
8979         and 1 for banking instruction,
8980         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
8981         caused stop processing pCodes after a inline assembly block,
8982         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
8983         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
8984         registers when it shouldn't,
8985         * src/pic16/ralloc.c (allocReg): add preliminary support for
8986         supporting a limited set of temporary registers,
8987
8988 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8989
8990         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
8991           genDataPointerSet): ensure assignments always copy in MSB to LSB
8992           order,
8993           (loadRegFromAop): recognize CLRH optimization,
8994           (genFunction): optimize RECEIVE iCodes in reentrant functions
8995
8996 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8997
8998         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
8999           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
9000           selected.
9001         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
9002         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
9003           contiguous with data
9004
9005 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9006
9007         * device/lib/_gptrget.c (_gptrget),
9008         * device/lib/_gptrgetc.c (_gptrgetc),
9009         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
9010           instead of sjmp to ret
9011         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
9012           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
9013
9014 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
9015
9016         * .version: bumped version to 2.4.7
9017         * device/lib/_gptrget.c (_gptrget): is now _naked
9018         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
9019         * device/lib/_gptrput.c (_gptrput): is now _naked
9020         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
9021           (createFunction): fixed xstack
9022         * src/SDCCglue.c (emitMaps): set allocation required for bit area
9023         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
9024           or bit either,
9025           (geniCodeCritical): store original interrupt state in an iTemp bit
9026           var unless stack-auto
9027         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
9028         * src/SDCCmain.c (setIncludePath): added include/target to search path
9029         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
9030         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
9031           prototype,
9032           (processFuncArgs): put bit vars in bit area
9033         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
9034           unsaveRBank): fixed xstack,
9035           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
9036           (genFunction, genEndFunction): fixed xstack,
9037           (genAssign): optimization don't walk backwards through mem
9038         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
9039         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
9040         * support/regression/Makefile: also make library (for stack-auto) when
9041           making "all" and added "test-mcs51-xstack-auto"
9042         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
9043         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
9044         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
9045         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
9046         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
9047           make-library by MAKE_LIBRARY
9048         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
9049           regression tests for xstack
9050         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
9051         * support/regression/tests/critical.c: test for critical on mcs51
9052
9053 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9054
9055         * support/regression/ports/ucz80/spec.mk: use include and lib files from
9056           built version of sdcc instead of installed version
9057
9058 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
9059
9060         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
9061         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
9062           vprintf.c now
9063         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
9064         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
9065           WARNING: remove device/lib/build/z80/printf.o by hand when
9066           updating from previous build!
9067         * device/lib/z80/printf.c: updated comment
9068         * support/regression/tests/bug1057979.c: test all ports now
9069         * support/regression/tests/bug1065458.c: file added
9070
9071 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9072
9073         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
9074           *_start and *_end symbols for static functions
9075
9076 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
9077
9078         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
9079           and search crt0.o in all library paths,
9080           (setIncludePath): proper handling of --nostdinc,
9081           (setLibPath): proper handling of --nostdlib
9082         * support/regression/Makefile,
9083         * support/regression/ports/ds390/spec.mk,
9084         * support/regression/ports/gbz80/spec.mk,
9085         * support/regression/ports/hc08/spec.mk,
9086         * support/regression/ports/mcs51/spec.mk,
9087         * support/regression/ports/mcs51-large/spec.mk,
9088         * support/regression/ports/mcs51-stack-auto/spec.mk,
9089         * support/regression/ports/z80/spec.mk: use include and lib files from
9090           built version of sdcc instead of installed version
9091         * doc/sdccman.lyx: fixed typo in --nostdinc
9092
9093 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
9094
9095         * src/pic/pcode.c,
9096         * src/pic/device.c,
9097         * src/pic/ralloc.c,
9098         * src/pic/gen.c : added support to generate code for struct bit fields.
9099
9100 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
9101
9102         * as/xa51/xa_version.h,
9103         * device/include/errno.h,
9104         * device/include/regc515c.h,
9105         * device/lib/_itoa.c,
9106         * device/lib/_ltoa.c,
9107         * device/lib/ser_ir_cts_rts.c,
9108         * sim/ucsim/xa.src/glob.cc,
9109         * sim/ucsim/xa.src/inst_gen.cc,
9110         * sim/ucsim/xa.src/xa_bit.cc,
9111         * sim/ucsim/xa.src/xa_sfr.cc,
9112         * sim/ucsim/z80.src/inst_dd.cc,
9113         * sim/ucsim/z80.src/inst_fdcb.cc,
9114         * support/scripts/keil2sdcc.pl,
9115         * src/pic16/pic16.dsp,
9116         * src/pic16/pic16a.dsp: corrected cvs line endings
9117         * device/lib/printf_large.c: fixed bug 1057979
9118         * src/pic16/gen.c: fixed non-C standard code
9119         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
9120         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
9121         * support/regression/ports/mcs51/support.c: reload T1 asap
9122         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
9123           pdata use and clear idata startup behaviour
9124         * support/regression/tests/bug1057979.c: added
9125
9126 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
9127
9128         * device/examples/ds390/ow390/ad26.h,
9129         * device/examples/ds390/ow390/cnt1d.h,
9130         * device/examples/ds390/ow390/crcutil.c,
9131         * device/examples/ds390/ow390/ownet.h,
9132         * device/examples/ds390/ow390/owsesu.c,
9133         * device/examples/ds390/ow390/swt12.h,
9134         * device/examples/ds390/ow390/swtoper.c,
9135         * device/examples/ds390/ow390/temp10.h,
9136         * device/examples/ds390/ow390/thermodl.c,
9137         * device/examples/ds390/tinitalk/tinitalk.dsp,
9138         * device/examples/ds390/tinitalk/tinitalk.dsw,
9139         * device/examples/mcs51/clock/hw.h,
9140         * device/examples/mcs51/simple2/go.bat,
9141         * device/examples/serialcomm/windows/serial.h,
9142         * device/examples/xa51/dummy.c,
9143         * device/examples/xa51/hello.c,
9144         * device/include/80c51xa.h,
9145         * device/include/at89x051.h: corrected cvs line endings
9146
9147 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
9148
9149         * src/pic16/main.c (options): added command line --gstack, to trace
9150         stack over/under flows,
9151         * added pragma 'wparam' to allow passing first byte of function
9152         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
9153         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
9154         call to __gstack_test function and sets up the symbol as extern,
9155         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
9156         * popaop): added call to pic16_testStackOverflow,
9157         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
9158         wparamList list,
9159         * (genCall, genPcall): now all parameters are passed via stack
9160         except in functions that are pass to wparam pragma in which WREG is
9161         used too,
9162         * (genPcall): REENTRANT flag is checked to see if variable prototype
9163         contains reentrant keyword, don't call a non-reentrant function, via
9164         a reentrant function pointer or vice versa, functions are never
9165         passed via WREG,
9166         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
9167         D.Winkler,
9168         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
9169         SIGSEGV when accessing a NULL register stucture,
9170         * (pic16_printGPointerType): modified to handle UPPER modifier for
9171         function initializers, changed prototype of function to simpler one,
9172         * (pic16_printIvalFuncPtr): check to see if function is already
9173         added in externs list,
9174         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
9175         optimized a move from W to SFR with a move to the same register
9176         later after a CALL,
9177         * device/lib/pic16/debug: NEW directory, contains debug features
9178         which are enabled when linking with libdebug.lib, currently command
9179         line option --gstack enables stack pointer tracing for over/under
9180         flow, corresponding sources are in debug/gstack
9181
9182 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
9183
9184         * doc/sdccman.lyx: updated SDCC version,
9185         * (PIC16 port): update list of command line options,
9186         * src/pic16/device.h (structure pic16_options_t): added field gstack
9187         to enable stack overflow tracing on push/pops,
9188         * src/pic16/device.c (statistics structure): added statistics
9189         structure,
9190         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
9191         pic16_dump_int_registers): increase statistics counters for each
9192         * variable which is encountered
9193         * (pic16_dump_usection): emit each .udata variable to its own udata
9194         section,
9195         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
9196         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
9197         parameters via stack, otherwise use old scheme,
9198         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
9199         assembler output file,
9200         * src/pic16/main.c: added command line options --gstack to enable
9201         push/pop tracing for stack overflow,
9202         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
9203         instructions): added size of each instruction,
9204         * (pic16_countInstruction): estimate size of instructions in
9205         the_pFile list, inline assembly blocks are not counted,
9206         * (pic16_FixRegisterBanking): trace previous register usage, when
9207         banksel optimizations is greater than 0, don't emit a redudant
9208         banksel directive,
9209
9210 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
9211
9212         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
9213         * src/pic16/ralloc.c : applied same fix for pic16.
9214         * src/pic/gen.c : tidied it up a little.
9215
9216 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9217
9218         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
9219         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
9220
9221 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9222
9223         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
9224
9225 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9226
9227         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
9228         non-reentrant function __modsint in the interrupt function (thus
9229         corrupting math operations during serial I/O)
9230         * device/lib/ser_ir.c: as above, changed buffersize
9231         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
9232         256.c,d for zeroing
9233         * doc/Makefile: added option -t for rsync
9234
9235 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9236
9237         * src/SDCCast.h (struct ast),
9238         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
9239
9240 2004-10-20 Borut Razem <borut.razem AT siol.net>
9241
9242         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
9243         package
9244
9245 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
9246
9247         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
9248         makefile targets,
9249         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
9250         support functions to replace long sequences of MOVFF's from access
9251         bank registers to stack and vice versa,
9252         * src/pic16/device.h: added new field opt_flags, where optimization
9253         flags can be set to enable certain features,
9254         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
9255         * pBlock, (genFunction, genEndFunction): surroung loop for
9256         saving/loading used registers in stack with PC_INFO pCodes,
9257         INF_LREGS. Code in between can then be optimized by pCode optimizer
9258         to support function calls,
9259         * (genDataPointerSet): fixed bug which loaded float fields in
9260         structures with corrupt data,
9261         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
9262         in a standard way debug info on stderr. Feature used for developing
9263         and debugging only,
9264         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
9265         obsolete chunks of code,
9266         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
9267         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
9268         * pic16/src/pcode.c (pic16_newpCodeInfo,
9269         * (pic16_newpCodeOpLocalRegs),
9270         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
9271         feature,
9272         * (pic16_pCodeConstString): printing of the initial value of a
9273         symbol as a comment is inhibited since parsing was already done by
9274         copyStr and output is corrupt,
9275         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
9276
9277 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9278
9279         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
9280
9281 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
9282
9283         * as/mcs51/lkarea.c: removed old K&R style,
9284           (lnksect): changed check on boundary error,
9285           (lnksect2): changed check on boundary error,
9286           (lnksect2): extend XSTK to end of page if size = 1
9287         * as/mcs51/lkmain.c: removed old K&R style,
9288           (Areas51): create l_IRAM symbol
9289         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
9290         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
9291           model-mcs51-stack-auto, added model-mcs51-xstack-auto
9292         * device/lib/_mullong.c: added version to be compiled with xstack
9293         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
9294         * device/lib/mcs51/crtxclear.asm: clear pdata as well
9295         * device/lib/mcs51/crtxstack.asm: fixed comment
9296         * src/SDCCglue.c: maxInterrupts defaults to 0,
9297           (emitMaps): added pdata,
9298           (createInterruptVect): (re)moved default,
9299           (glue): added pdata,
9300           (glue): moved __start__xstack to XSTK with default size 1
9301         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
9302           and options.float_rent when options.stackAuto is set,
9303           (linkEdit): only write XDATA_NAME if provided on command line
9304         * src/SDCCmem.h,
9305         * src/SDCCmem.c: added pdata
9306         * src/port.h: added pdata_name to PORT
9307         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
9308           (saveRegisters, unsaveRegisters): removed usage of B,
9309           (genMinus): fixed accumulator clash,
9310           (genJumpTab): added comment, this needs another look
9311         * src/mcs51/gen.c: added check for "B in use" paranoia,
9312           added pushB() and popB()
9313         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
9314           chance
9315         * src/avr/main.c,
9316         * src/ds390/main.c,
9317         * src/hc08/main.c,
9318         * src/mcs51/main.c,
9319         * src/pic/main.c,
9320         * src/pic16/main.c,
9321         * src/xa51/main.c,
9322         * src/z80/main.c: (reset_regparms) made void parameter explicit and
9323           added PSEG (PAG,XDATA) or NULL to port specifier
9324         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
9325         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
9326           (_mcs51_genInitStartup): removed __start__xstack equ,
9327           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
9328         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
9329         * src/z80/gen.c (_rleAppend): fixed warnings
9330         * support/regression/tests/zeropad.c: added pdata test
9331         * .version: bumped to 2.4.6
9332
9333 2004-10-17 Borut Razem <borut.razem AT siol.net>
9334
9335         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
9336         as a part of nightly build
9337
9338 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
9339
9340         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
9341         WREG holds the first byte function parameters,
9342         * (aopForSym): take special case for symbols which are in FARSPACE
9343         but in CODESPACE too,
9344         * (assignResultValue): modified to take into account _G.useWreg,
9345         * (genCall): don't use wreg for parameter passing when function is
9346         declared as reentrant, too, added optimization INCF to stack
9347         pointer when stack parameter count is 1,
9348         * (genFunction, genEndFunction): refurnished and fixed to not using
9349         wreg for passing parameters when function has varargs or is
9350         reentrant, fixed bug with symbol name compare for generating
9351         functions in absolute address,
9352         * (pic16_storeForReturn): refurnished,
9353         * (genCmp): began writing a new version of the function, not ready
9354         yet, therefore it is disabled,
9355         * (genAssign): do not read code memory when assigning a function to
9356         a pointer function,
9357         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
9358         array of characters, not pointer,
9359         * (pic16initialComments): in debug mode emit an .ident directive for
9360         the assembler,
9361         * (_process_pragma): emit a new warning type (internal to pic16)
9362         when setting stack to default length, emit a similar warning when
9363         placing a function at absolute address and address is not word aligned
9364         * (_pic16_parseOptions): added 'return TRUE' statement,
9365         * (_pic16_linkEdit): if compiling a source, then add the source's
9366         file object, first in the list of objects to link,
9367
9368 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
9369
9370         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
9371         * src/pic/main.c : removed VC warning.
9372         * src/pic/gen.c : changed comment.
9373
9374 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
9375
9376         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
9377         reference to a deprecated symbol _GPTRREG was causing failure to
9378         link. Thanks G. M. Gallant for the info.
9379
9380 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
9381
9382         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
9383         comments for Bugs item #954788.
9384
9385 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
9386
9387         * src/pic16/device.c (pic16_dump_gsection,
9388         * pic16_groupRegistersInSection): handle symbols declared to be in
9389         access bank differently,
9390         * src/pic16/gen.c (struct _G): added field resDirect,
9391         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
9392         send values read from stack directly to result and don't allocate
9393         temporary values,
9394         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
9395         same registers,
9396         * (pic16_sameRegsOfs): NEW,
9397         * (freeAsmop): if _G.resDirect is set then do not mark registers as
9398         free because they were not allocated from temporary pool,
9399         * pic16_popRegFromString): workaround to fix a problem with
9400         allocating variables twice or never,
9401         * (genGenPointerGet): using PRODL instead of FSR0H,
9402         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
9403         instead of FSR0H,
9404         * (genAssign): take advantage of the _G.resDirect flag,
9405         * (genCast): around line 11844, use mov2f instead of directly
9406         MOVFF'ing between operands to account for literal values,
9407         * src/pic16/genutils.c: some new debug functions for gpsim have been
9408         added,
9409         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
9410         float with integer part only,
9411         * src/pic16/main.c (_process_pragma): handle pragma udata access to
9412         place variables in access bank
9413         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
9414         updated sources to reflect recent changes in gen.c
9415
9416 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
9417
9418         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
9419         sources that searched for headers in installation path, now the
9420         device/include/pic16 is used,
9421         * src/pic16/glue.c (pic16glue),
9422         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
9423         .line directives if not in debug mode, this suppresses assembler's
9424         warnings for ignored directives
9425
9426 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
9427
9428         * src/port.h: made reset_regparms prototype void parameter explicit.
9429         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
9430         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
9431         * doc/sdccman.lyx: documented warning disabling and how to use
9432           printf_large to make it print floats.
9433         * device/include/stdbool.h: NEW
9434         * device/lib/_atof.c,
9435         * device/lib/_divuint.c,
9436         * device/lib/_divulong.c,
9437         * device/lib/expf.c,
9438         * device/lib/printf_large.c,
9439         * device/lib/sincosf.c,
9440         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
9441         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
9442           a completely reentrant lib.
9443
9444 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
9445
9446         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
9447         * device/include/pic16/stdio.h: fixed bug with colon
9448
9449 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
9450
9451         * device/include/pic16/stdio.h,
9452         * device/include/pic16/stdlib.h,
9453         * device/include/pic16/math.h: NEW
9454         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
9455         declared as _naked to reduce overhead
9456         * device/lib/Makefile.in (target port-specific-objects-pic16):
9457         changed * to *.* so to ignore the CVS directory,
9458         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
9459         stacked variables back in stack,
9460         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
9461         corruption
9462
9463 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
9464
9465         * .version: bumped version number to 2.4.5
9466         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
9467         * support/Util/SDCCerr.c (messages structure): added entry for
9468         W_POSSBUG2
9469
9470         Large cumulative patch for pic16 port and libraries.
9471         * device/include/pic16/sdcc-lib.h,
9472         * device/include/pic16/stdarg.h,
9473         * device/include/asm/pic16/features.h,
9474         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
9475         * device/include/pic16/float.h: changes reentrant keyword with
9476         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
9477         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
9478         updated target build-libraries to include objects from gptr,
9479         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
9480         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
9481         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
9482         all function headings,
9483         * src/SDCCmain.c: added global parameter userIncDirsSet,
9484         * (parseCmdLine): when option -I is encountered add directory to
9485         userIncDirsSet too,
9486         * src/version.awk: added space between control and long,
9487         * src/pic16/NOTES: added some notes for the port,
9488         * src/pic16/gen.c: added prototype for mov2fp function,
9489         * (fReturnpic16[]): properly named return value registers,
9490         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
9491         * (aopForSym): added code to handle symbols with onStack flag set,
9492         symbols onStack are allocated PTRSIZE bytes,
9493         * (aopFreeAsmop): handles special case where asmops are stack objects,
9494         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
9495         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
9496         added argument lock to trace flaws in allocating temporary registers
9497         when developing port,
9498         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
9499         * (pic16_popRegFromString): reenabled allocating a direct register
9500         from string,
9501         * (assignResultValue): various beautifications,
9502         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
9503         referenced function argument,
9504         * (genIpush): reenabled to allow stacked arguments, handles only
9505         ic->parmPush iCodes,
9506         * (genCall, genPcall): major changes to allow for variable argument
9507         functions, fixed a bug with falsely restoring stack pointer after
9508         returning from call,
9509         * (genFunction): pending code for critical function,
9510         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
9511         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
9512         * (genNearPointerGet): fixed bug with indirect reading, was always
9513         reading from INDF0
9514         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
9515         pointers,
9516         * (genAddrOf): rewrote code to take address of a stacked function parameter
9517         * (genCast): fixed casting to generic pointer type,
9518         * src/pic16/gen.h: added AOP_STA,
9519         * (struct asmop): added field stk,
9520         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
9521         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
9522         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
9523         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
9524         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
9525         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
9526         generic pointers,
9527         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
9528         and library paths,
9529         * (pic16_port structure): generic pointer size is set to 3,
9530         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
9531         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
9532         compiler warning,
9533         * src/pic16/ralloc.c (allocReg): prevent allocating register when
9534         operand is an iTemp,
9535
9536 2004-09-24 Martin Helmling <mh AT octo-soft.de>
9537
9538         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
9539         * debugger/mcs51/simi.c: addapt new syntax of s51
9540
9541 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
9542
9543         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
9544         * src/pic16/pcode.c: commented out some calls to free() in order to
9545         fix bug #989576,
9546
9547 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9548
9549         * src/SDCCicode.h,
9550         * src/SDCCicode.c (isiCodeInFunctionCall),
9551         * src/avr/ralloc.c (selectSpil),
9552         * src/pic/ralloc.c (selectSpil),
9553         * src/pic16/ralloc.c (selectSpil),
9554         * src/ds390/ralloc.c (selectSpil),
9555         * src/hc08/ralloc.c (selectSpil),
9556         * src/xa51/ralloc.c (selectSpil),
9557         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
9558         stack in the middle of a function call sequence (fixes bug #1020268)
9559         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
9560         costs associated with the minimum switch case.
9561
9562 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9563
9564         * src/SDCC.lex: fixed bug #1030549
9565
9566 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9567
9568         * src/SDCCcse.h (struct cseDef),
9569         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
9570         over a function call if the CSE is derived from a symbol whose
9571         address has been taken (fixes bug #1029883)
9572         * support/regression/tests/bug-1029883: a new regression test for
9573         this bug
9574
9575 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9576
9577         * src/hc08/gen.c (emitinline): fixed bug #1029778
9578         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
9579         to a cast object is no longer a syntax error ("fixes" bug #1030006,
9580         and starts toward RFE #905167)
9581
9582 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
9583
9584         * src/pic16/gen.c (mov2f): New function to move an operand to
9585         another without considering if it is a literal or a register,
9586         * (pic16_sameRegs): don't check if they are both AOP_REG,
9587         * (AccRsh): removed andmask=0 lines,
9588         * (genLeftShift): duplicated to be improved in future versions,
9589         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
9590         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
9591         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
9592         * (pic16initMnemonics): added initialization for POC_INFSNZW,
9593         * (insertBankSwitch): fixed inserting banksel directives algorithm
9594         for instructions that follow a skip instruction, this fixes a report
9595         for broken subtraction code generation,
9596         * src/pic16/ralloc.c (deassignLRs): do not free register if current
9597         iCode is a left op, just in case result and right share the same
9598         registers
9599
9600 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9601
9602         * src/hc08/main.c,
9603         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
9604         preservation of HX
9605         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
9606         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
9607         on 2004-09-12; it was buggy
9608
9609 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
9610
9611         * src/SDCCsymt.h: removed RESULT_CHECK
9612         * src/SDCCast.c,
9613         * src/SDCCglue.c,
9614         * src/SDCCval.c,
9615         * src/pic/glue.c,
9616         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
9617
9618 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
9619
9620         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
9621         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
9622         configuration values no more rejected by compiler, they are assigned
9623         to configuration registers with a warning message instead,
9624         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
9625         the for-loop so last conf register is emitted too,
9626         * (_pic16_initPaths): link library libsdcc.lib by default,
9627         * (_hasNativeMulFor): modified test for multiplication according to
9628         Raphael Neider's remarks. Integer multiplication is also done with
9629         support functions,
9630         * device/include/pic16/pic18fregs.h: corrected type error in while
9631         testing and including 18f6720 header file
9632
9633 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
9634
9635         * src/pic16/device.h (pic16_options): removed field use_crt,
9636         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
9637         until an optimization to handle single bits is added,
9638         * (pic16_loadFSR0): moved before genUnpackBits,
9639         * (genAnd): some white lines removed,
9640         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
9641         leave_reset flags in pic16_options when using crt modules,
9642
9643 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
9644
9645         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
9646           for bugs 898889 & 979599. Also used some safer print instructions.
9647
9648 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
9649
9650         * src/pic16/device.h (pic16_options_t): added field use_crt,
9651         crt_name, no_crt,
9652         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
9653         catch a probable future bug,
9654         * src/pic16/gen.c: aopIdx function commented out,
9655         * (genAssign): commented out old code which used aopIdx,
9656         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
9657         code, added if conditionals to take into account the --use-crt
9658         command line options,
9659         * src/pic16/main.c (pic16_optionsTable): added new command line
9660         options, --use-crt= and --no-crt,
9661         * (_pic16_linkEdit): now the proper crt object is added in the
9662         linker command line except than when --no-crt is specified,
9663         * src/pic16/pcode.c,
9664         * src/pic16/pcode.h: added some structures and functions for a new
9665         optimization scheme to compansate for instruction overhead between
9666         same iCodes, this scheme is currently under development and is not
9667         working in any way,
9668         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
9669         to && operator,
9670         * device/lib/pic16/startup/crt0i.c,
9671         * device/lib/pic16/startup/crt0iz.c: added global char variable
9672         __uflags to force the generation of an idata section
9673
9674 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
9675
9676         * doc/Makefile,
9677         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
9678         * doc/sdccman.lyx: updated sdcc version to 2.4.4
9679
9680 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9681
9682         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
9683         Frieder) and clarified the default code optimization mode
9684
9685 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9686
9687         * src/SDCC.lex (doPragma, process_pragma),
9688         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
9689         "opt_code_size", and "opt_code_balanced"
9690         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
9691         regrouped options by category, added support for category headers
9692         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
9693         and "--opt-code-size"
9694         * doc/sdccman.lyx: documented these new options and pragmas
9695         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
9696         preference into account
9697
9698 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
9699
9700         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
9701           geniCodePreDec): Fixed bug 904237 by generating a warning
9702         * src/SDCCerr.h,
9703         * src/SDCCerr.c: added warning W_SIZEOF_VOID
9704
9705 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
9706
9707         * src/pic/device.c : When no max ram set validate full memory range.
9708         * src/pic/pcode.c,
9709         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
9710
9711 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
9712
9713         * device/lib/_gptrget.c,
9714         * device/lib/_gptrput.c: updated comment
9715         * device/lib/calloc.c,
9716         * device/lib/free.c,
9717         * device/lib/malloc.c,
9718         * device/lib/realloc.c: added LGPL, made them reentrant-safe
9719         * src/SDCCcse.c (cseBBlock),
9720         * src/SDCCicode.c (printOperand, geniCodeArray),
9721         * src/SDCCicode.h (struct operand): fixed bug 868103
9722         * support/regression/tests/bug-868103.c: added
9723         * src/SDCCast.c (searchLitOp),
9724         * src/SDCCcse.h (struct cseDef),
9725         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
9726         * src/SDCCicode.h (struct operand),
9727         * src/SDCCsymt.h (struct sym_link),
9728         * src/avr/gen.c (hasInc),
9729         * src/ds390/gen.c (hasInc),
9730         * src/hc08/gen.c (genPlusIncr, hasInc),
9731         * src/mcs51/gen.c (hasInc),
9732         * src/pic16/glue.c (pic16_printIvalChar),
9733         * src/pic16/ralloc.c (regWithIdx),
9734         * src/xa51/gen.c (hasInc) : removed warnings
9735         * src/SDCCast.c (createBlock): added comment ???
9736         * src/hc08/ralloc.c: updated comments
9737
9738 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9739
9740         * doc/sdccman.lyx: updated section on switch statements, added
9741         section about semaphore locking
9742         * doc/Makefile: added option -info for latex2html
9743         * device/lib/_gptrget.c,
9744         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
9745
9746 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
9747
9748         * src/pic/device.h,
9749         * src/pic/device.c,
9750         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
9751          maxram is less than 0x100.
9752
9753 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
9754
9755         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
9756
9757 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9758
9759         * src/port.h,
9760         * src/mcs51/main.c,
9761         * src/ds390/main.c,
9762         * src/z80/main.c,
9763         * src/hc08/main.c,
9764         * src/pic/main.c,
9765         * src/pic16/main.c,
9766         * src/avr/main.c,
9767         * src/xa51/main.c
9768         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
9769         a jump table is the best form for a switch statement, including
9770         automatic insertion of missing cases to make the case range
9771         continuous. Developed in collaboration with Frieder Ferlemann.
9772
9773 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9774
9775         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
9776         accumulator result if it needs sign extension
9777
9778 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9779
9780         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
9781
9782 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9783
9784         * device/lib/gbz80/printf.c,
9785         * device/lib/z80/printf.c: removed define for NULL
9786
9787 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9788
9789         * as/xa51/xa_link.c,
9790         * device/examples/ds390/ow390/ad26.c,
9791         * device/examples/ds390/ow390/cnt1d.c,
9792         * device/examples/ds390/ow390/counter.c,
9793         * device/examples/ds390/ow390/ds2480.h,
9794         * device/examples/ds390/ow390/ds2480ut.c,
9795         * device/examples/ds390/ow390/findtype.c,
9796         * device/examples/ds390/ow390/gethumd.c,
9797         * device/examples/ds390/ow390/owllu.c,
9798         * device/examples/ds390/ow390/ownetu.c,
9799         * device/examples/ds390/ow390/swt12.c,
9800         * device/examples/ds390/ow390/swtloop.c,
9801         * device/examples/ds390/ow390/temp.c,
9802         * device/examples/ds390/ow390/temp10.c,
9803         * device/examples/ds390/ow390/thermo21.c,
9804         * device/examples/ds390/ow390/tinilnk.c,
9805         * device/examples/ds390/ow390/tstfind.c,
9806         * device/examples/serialcomm/windows/serial.cpp,
9807         * device/examples/serialcomm/windows/test_serialcomm.cpp,
9808         * device/include/reg51.h: fixed line endings for cvs
9809
9810 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9811
9812         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
9813         packRegsForAccUse, packRegisters): new accumulator register
9814         packing algorithm
9815         * support/regression/ports/hc08/support.c (_putchar): suppress
9816         warning of unused variable
9817         * src/SDCCicode.c: added SWAP entry to codeTable
9818
9819 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
9820
9821         * device/lib/sprintf.c: forgot to add this file before previous commit
9822
9823 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
9824
9825         * src/pic16/gen.c (genPackBits): added operand right in function
9826         parameters, load result directly if p_type is POINTER (that is
9827         called by genNearPointerSet)
9828         * (genUnPackBits): added operand left in function parameters,
9829         * (genNearPointerGet, genNearPointerSet): prevent the loading of
9830         FSR0 if accessing bitfields,
9831
9832 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
9833
9834         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
9835           _print_format; updated printf, sprintf, vsprintf
9836         * device/include/asm/default/features.h: corrected comment/define
9837         * device/lib/Makefile.in: added sprintf.c
9838         * device/lib/libsdcc.lib: added sprintf module
9839         * device/lib/printf_large.c,
9840         * device/lib/vprintf.c,
9841         * device/lib/sprintf.c: totally refactored printf_large and vprintf
9842           into these 3 files
9843         * support/regression/Makefile: changed ALL_PORTS into a usefull default
9844         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
9845         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
9846           hc08 test
9847         * support/regression/tests/zeropad.c: define idata as data for hc08
9848
9849 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9850
9851         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
9852         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
9853         labels are referenced at least once (even if a reference is not found)
9854         * src/hc08/gen.c (emitcode): set isComment flag for comments
9855         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
9856         loads), rules 6a..6b (optimize jumps to return)
9857
9858 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9859
9860         * device/lib/acosf.c (acosf),
9861         * device/lib/asinf.c (asinf),
9862         * device/lib/atanf.c (atanf),
9863         * device/lib/ceilf.c (ceilf),
9864         * device/lib/cosf.c (cosf),
9865         * device/lib/coshf.c (coshf),
9866         * device/lib/cotf.c (cotf),
9867         * device/lib/fabsf.c (fabsf),
9868         * device/lib/floorf.c (floorf),
9869         * device/lib/log10f.c (log10f),
9870         * device/lib/logf.c (logf),
9871         * device/lib/sinf.c (sinf),
9872         * device/lib/sinhf.c (sinhf),
9873         * device/lib/sqrtf.c (sqrtf),
9874         * device/lib/tanf.c (tanf),
9875         * device/lib/tanhf.c (tanhf),
9876         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
9877         replaced all instances of "reentrant" in the library functions
9878         defined in math.h with this macro.
9879         * support/regression/tests/float_trans.c: reenabled test for hc08
9880
9881 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
9882
9883         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
9884         erroneously deleted
9885
9886 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9887
9888         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
9889         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
9890         multi-byte volatile operands are used
9891         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
9892         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
9893         initialization to area GSINIT0 so that it would always precede
9894         any static initializers in GSINIT
9895         * support/regression/tests/zeropad.c: fixed idata define for hc08
9896         * support/regression/tests/bug-927659.c,
9897         * support/regression/tests/float_trans.c: disabled tests for hc08
9898         pending missing library routines
9899         * .version: increased version number to 2.4.4 - hc08 port now passes
9900         regression tests
9901
9902
9903 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
9904
9905         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
9906         * Makefile.common.in,
9907         * as/Makefile,
9908         * as/hc08/Makefile.in,
9909         * as/mcs51/Makefile.in,
9910         * as/z80/Makefile.in,
9911         * debugger/mcs51/Makefile.in,
9912         * device/include/Makefile.in,
9913         * device/lib/Makefile.in,
9914         * doc/Makefile,
9915         * link/Makefile,
9916         * link/z80/Makefile.in,
9917         * packihx/Makefile.in,
9918         * sim/ucsim/main_in.mk,
9919         * sim/ucsim/avr.src/Makefile.in,
9920         * sim/ucsim/doc/Makefile.in,
9921         * sim/ucsim/gui.src/serio.src/Makefile.in,
9922         * sim/ucsim/hc08.src/Makefile.in,
9923         * sim/ucsim/s51.src/Makefile.in,
9924         * sim/ucsim/xa.src/Makefile.in,
9925         * sim/ucsim/z80.src/Makefile.in,
9926         * src/Makefile.in,
9927         * support/cpp2/Makefile.in,
9928         * support/librarian/Makefile,
9929         * support/makebin/Makefile: added DESTDIR to the install path proposed
9930         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
9931         * doc/sdccman.lyx: added DESTDIR documentation
9932
9933 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
9934
9935         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
9936         instruction for interrupt handlers, use fast returns when returning
9937         from high priority interrupts
9938
9939 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9940
9941         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
9942         code generation
9943         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
9944         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
9945         bugs, ported much of Bernhard's code from mcs51
9946         * src/mcs51/gen.c (genSend),
9947         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
9948         than one when calling a reentrant function
9949         * device/lib/_mullong.c: defined an alternate struct layout for big
9950         endian ports (hc08)
9951
9952 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9953
9954         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
9955         test
9956
9957 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9958
9959         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
9960         are sane and complete before asking the port its prefered parameter
9961         passing method (fixes bug #1017633)
9962         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
9963         and _ret3
9964
9965 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9966
9967         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
9968         problem in bitfields >= 8 bits.
9969
9970 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9971
9972         * src/SDCCsymt.c: undid changes that were not meant to be committed
9973
9974 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9975
9976         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
9977
9978 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9979
9980         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
9981           copied and wrong bit got inverted
9982
9983 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9984
9985         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
9986         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
9987         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
9988         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
9989         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
9990         assignments to bitfields at known addresses
9991         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
9992         reads from bitfields at known addresses
9993         * src/hc08/ralloc.c (packRegisters),
9994         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
9995         genhc08Code): optimize pointer get values used as conditionals
9996         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
9997         and branch
9998
9999 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10000
10001         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
10002         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
10003         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
10004         as conditionals
10005
10006 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10007
10008         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
10009
10010 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10011
10012         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
10013         related problems
10014
10015 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
10016
10017         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
10018
10019 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10020
10021         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
10022         mcs51 port
10023
10024 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
10025
10026         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
10027
10028 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10029
10030         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
10031         cases use more compact code.
10032
10033 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
10034
10035         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
10036
10037 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10038
10039         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
10040
10041 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10042
10043         * src/SDCCsymt.h,
10044         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
10045         parameter of changePointer() from symbol* to sym_link*
10046         * src/SDCCast.c (decorateType): call changePointer() for CAST op
10047         * src/SDCCsymt.c (compareType): void* type is castable to other
10048         pointers, but not necesarily an exact match.
10049         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
10050         is no longer blindly treated as an exact match.
10051         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
10052
10053 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
10054
10055         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
10056
10057 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
10058
10059         * src/pic/gen.c,
10060         * src/pic/pcode.c,
10061         * src/pic/ralloc.h,
10062         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
10063
10064 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
10065
10066         * src/pic/device.c,
10067         * src/pic/device.h,
10068         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
10069
10070 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10071
10072         * src/mcs51/gen.c (emitcode): fixed bug #992819
10073
10074 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
10075
10076         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
10077           there's no need to make it worse
10078
10079 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10080
10081         * src/mcs51/ralloc.c (deassignLR),
10082         * src/ds390/ralloc.c (deassignLR),
10083         * src/hc08/ralloc.c (deassignLR),
10084         * src/z80/ralloc.c (deassignLR),
10085         * src/pic/ralloc.c (deassignLR),
10086         * src/pic16/ralloc.c (deassignLR),
10087         * src/avr/ralloc.c (deassignLR),
10088         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
10089         rlivePoint): fixed another part of bug #971834
10090
10091 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10092
10093         * src/z80/main.c: enabled "critical" keyword
10094         * src/z80/mappings.i,
10095         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
10096         functions (fixes bug #979646)
10097         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
10098
10099 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10100
10101         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
10102           such as c:\mydir.
10103
10104 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
10105
10106         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
10107           doesn't disable too much optimizations
10108
10109 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
10110
10111         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
10112
10113 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
10114
10115         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
10116
10117 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
10118
10119         * src/pic/gen.c tidied up tabs
10120         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
10121         * src/pic/main.c tidied up tabs
10122         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
10123         * src/pic/pcoderegs.c tidied up tabs
10124         * src/pic/ralloc.c tidied up tabs
10125
10126 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
10127
10128         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
10129         to S_FIXED for pic16 port and when symbol is not in level 0,
10130         allocate for S_REGISTER storage class and pic16 port, too,
10131         * src/pic16/device.h: prototype for checkSym,
10132         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
10133         * (pic16_assignConfigWordValue): test the value and the mask to
10134         validate that the value is suitable for the configuration word,
10135         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
10136         collect extern declared symbols, don't emit symbol twice, check
10137         first if symbol is in publics set first,
10138         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
10139         * added command line '--fstack' which enables an experimental
10140         feature for stack access, too buggy to be used yet...
10141         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
10142         * (pic16_allocDirReg): when register has storage class S_REGISTER
10143         allocate in pic16_dynAccessRegs,
10144         * device/include/pic16/pic18f????.h: modified configuration word
10145         naming convention, words started as CONFIG0H but should be CONFIG1H
10146
10147 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
10148
10149         * device/include/mcs51reg.h: fixed bug 970993
10150
10151 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
10152
10153         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
10154         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
10155         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
10156         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
10157         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
10158         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
10159           error/warning numbers,
10160           added function setWarningDisabled()
10161         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
10162         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
10163           _memcmp.c _memmove.c calloc.c realloc.c free.c
10164         * support/regression/tests/malloc.c: added tests for new functionality
10165         * support/regression/tests/zeropad.c: added tests for truncated initializers
10166           and initialized char arrays starting with '\x0'
10167         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
10168
10169 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
10170
10171         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
10172
10173 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10174
10175         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
10176         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
10177         peephole 177.e. Thanks to anonymous
10178
10179 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
10180
10181         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
10182         function isn't used in the source but referenced as a
10183         variable initializer then declare it as extern in .asm file
10184
10185 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
10186
10187         * .version: increased version number to 2.4.3
10188
10189         Adding version extension according to ChangeLog CVS revision
10190         * src/Makefile.in (target all): added dependency 'version.h'
10191         * (rule version.h): added rule to create version.h from ChangeLog,
10192         * (rule dep): added dependency version.h,
10193         * src/version.awk: AWK script to create version.h
10194         * src/SDCCdwarf2.c (dwWriteModule),
10195         * src/SDCCglue.c (initialComments),
10196         * src/SDCCmain.c (printVersionInfo): modified to write after
10197         version string the version extension number,
10198         * src/SDCCutil.c: included "version.h"
10199         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
10200         number,
10201         * src/SDCCutil.h: added prototype for getBuildNumber
10202
10203         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
10204         includeDirsSet, too,
10205         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
10206         const char [] is found in function prototype...
10207
10208         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
10209         moving to WREG with source is already in WREG,
10210         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
10211         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
10212         * (aopForSym): stack'ed symbols are partially supported, added
10213         if-clause to support symbols in FARSPACE,
10214         * (sameRegs): added test for AOP_ACC to see if registers are same,
10215         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
10216         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
10217         * (pic16_popRegFromString): will not allocate a new register if it
10218         doesn't find one by name, bug may have introduced...
10219         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
10220         * (genIpush): revived to use pic16 port's stack,
10221         * (genAddrOf): added incomplete case for stack'ed operand,
10222         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
10223         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
10224         can handle multibyte operands,
10225         * src/pic16/glue.c (pic16_printIval*): some debug info added,
10226         * (pic16initialComments): added message for MPLAB compatibility
10227         mode enabled,
10228         * src/pic16/main.h: prototype for pic16_mplab_comp,
10229         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
10230         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
10231         * (_pic16_linkEdit): NEW, handles link stage, transferred here
10232         because of increased complexity of procedure,
10233         * (_process_pragma): stack pragma changed to format 'stack pos len',
10234         emit symbol '_stack_end' to conform with gplink,
10235         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
10236         to search for register,
10237         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
10238         PO_GPR_REGISTER,
10239         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
10240         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
10241         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
10242         case for PO_GPR_REGISTER,
10243         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
10244         dies, the new era is ahead !...
10245         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
10246         pic16_dynInternalRegs,
10247         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
10248         * (pic16_allocDirReg): minor optimizations and bug fixes,
10249         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
10250
10251         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
10252         load stack and frame pointer with address of 'stack_end' symbol
10253
10254 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
10255
10256         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
10257         without source code but only variable initializers
10258
10259 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
10260
10261         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
10262         external are not declared as extern to reduce overhead while linking
10263
10264 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
10265
10266         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
10267
10268 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
10269
10270         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
10271           Yee Keat for the patch
10272         * src/SDCCast.c (decorateType): fixed bug #979599
10273         * src/ds390/gen.h: removed local fReturnSizeDS390
10274         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
10275         * src/ds390/gen.c (genAnd, genOr, genXor),
10276         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
10277
10278 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
10279
10280         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
10281         add relFilesSet to $3, manipulate $2 to handle linking of object
10282         files without source files in command line,
10283         * device/include/pic16 (all headers): added ID location macros,
10284         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
10285         entries for ID location bytes,
10286         * (pic16_assignIdByteValue): NEW,
10287         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
10288         added field dumpcalltree to pic16_options_t,
10289         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
10290         is used instead of pic16_Gstack_base_addr, check if (ifx) before
10291         emitting rFalseIfx label after check_carry label,
10292         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
10293         pic16_emitDIRegs), NEW
10294         * (pic16glue): dump .calltree file when option --calltree found,
10295         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
10296         * (_pic16_genAssemblerPreamble): emit ID locations after
10297         configuration registers,
10298         * (pic16_linkCmd): modifications of the link command,
10299         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
10300         * (pic16_pCodeInitRegisters): don't init stack registers,
10301         * (pic16_findPrevInstruction): fixed bug,
10302         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
10303         bug with immediate registers,
10304         * (buildCallTree): traces stack push and pop,
10305         * (pct2): dump also stack usage for each function,
10306         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
10307         * (pic16_allocDirReg): various modifications,
10308         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
10309         fixed to 1,
10310
10311 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
10312
10313         * src/pic16/pcode.c: removed buggy double colon
10314
10315 2004-07-01 Borut Razem <borut.razem AT siol.net>
10316
10317         * support/scripts/sdcc.nsi: added include/pic16 to setup
10318
10319 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
10320
10321         * device/lib/Makefile.in: fixed bug in target objects-pic16,
10322         * device/lib/pic16/Makefile: prefixed with dash (-) command under
10323         target 'clean',
10324         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
10325         specific command line arguments. Also added sample lkr script
10326         for placing a variable at a specific memory bank.
10327         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
10328         at a specific memory bank,
10329         * (pic16_dump_isection): fixed bug which caused string literals to
10330         be omitted when dumping idata section,
10331         * (pic16_groupRegistersInSection): added code to handle registers
10332         in specific memory banks,
10333         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
10334         public, all references are renamed too,
10335         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
10336         AOP_DPTR2,
10337         * (pic16_storeForReturn): added case to handle when dest is WREG,
10338         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
10339         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
10340         pic16_rel_udata, check to see if that register is marked as being
10341         a member of a specific memory bank,
10342         * (pic16_printIvalCharPtr): added code to add string literals either
10343         to code or the idata sections,
10344         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
10345         also accept the 'udata' pragma,
10346         * src/pic16/main.h: new structure types sectName and sectSym
10347         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
10348         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
10349         * (pic16_findPrevInstruction): fixed, it returned nothing,
10350         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
10351         instruction combinations,
10352         * (pic16_FixRegisterBanking): heavily reorganised,
10353         * (pic16_AnalyzeBanking): if generating banksel directives is
10354         disabled, then don't call FixRegisterBanking at all,
10355         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
10356         completely removed,
10357         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
10358
10359 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
10360
10361         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
10362         Phuah Yee Keat <yk.phuah AT nestac.com>
10363
10364 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
10365
10366         * src/pic16/glue.c (pic16createInterruptVect): function now emits
10367         correctly the IVT even if it is relocated to some other location
10368
10369 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
10370
10371         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
10372         * device/include/pic16/pic18f2220.h: NEW,
10373         * device/lib/pic16/libdev/pic18f2220.c: NEW,
10374         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
10375         * src/pic16/device.c (struct Pics16): added info for 18f2220,
10376         * src/pic16/device.h (struct pic16_options): added ivt_loc and
10377         nodefaultlibs, ivt_loc is the location of the interrupt vector
10378         table, and nodefaultlibs signs that default libraries should not be
10379         linked in link stage,
10380         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
10381         according to --ivt-loc argument,
10382         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
10383         when pragma stack is found,
10384
10385 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10386
10387         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
10388         256 (range check), 257 (do while), 258.a-f (bit banging
10389         f.e. on 3-wire SPI bus)
10390
10391 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10392
10393         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
10394         variables used exclusively within a loop
10395
10396 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
10397
10398         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
10399
10400 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10401
10402         * src/SDCClrange.c (computeClash): fixed bug #971834
10403
10404 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10405
10406         * src/mcs51/gen.c (genCmp): fixed bug #975903
10407         * src/hc08/gen.c (operandsEqu),
10408         * src/ds390/gen.c (operandsEqu),
10409         * src/z80/gen.c (operandsEqu),
10410         * src/pic/gen.c (operandsEqu),
10411         * src/pic16/gen.c (operandsEqu),
10412         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
10413         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
10414
10415 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10416
10417         * src/SDCCcse.c (cseBBlock): fixed bug #966963
10418
10419 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
10420
10421         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
10422         default case in switch statement,
10423         * glue.c (pic16_initPointer): expr is initialised via decoarteType
10424         to eliminate problem with initialisation of pointers, but problem
10425         still exists,
10426         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
10427         * (emitStaticSegment): removed various lines emitting debug info,
10428         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
10429         added processor registers for utilizing EEPROM,
10430         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
10431         configurable and set 8
10432
10433 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
10434
10435         * .version: increased version number to 2.4.2,
10436
10437         Cumulative patch for pic16 port
10438         * src/pic16/device.c: changed scheme to dump initial values for
10439         variables in idata segment, all print_idata* functions were removed,
10440         now the pic16_printIval* will be called,
10441         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
10442         * _pic16_printPointerType, pic16_printPointerType,
10443         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
10444         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
10445         NEW, similar to the respective functions in SDCCglue.c,
10446         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
10447         way, emitting hex bytes,
10448         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
10449
10450 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10451
10452         * src/avr/ralloc.c (serialRegAssign),
10453         * src/xa51/ralloc.c (serialRegAssign),
10454         * src/pic/ralloc.c (serialRegAssign),
10455         * src/pic16/ralloc.c (serialRegAssign),
10456         * src/hc08/ralloc.c (serialRegAssign),
10457         * src/z80/ralloc.c (serialRegAssign),
10458         * src/ds390/ralloc.c (serialRegAssign),
10459         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
10460
10461 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10462
10463         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
10464         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
10465
10466 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
10467
10468         Cumulative patch for pic16 port:
10469         * src/pic16/device.h (typedef PIC16_device) modified fields for
10470         defining microcontrollers,
10471         * src/pic16/device.c: added new info for all devices in Pics16 array,
10472         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
10473         to be optimised out by the pCode optimiser,
10474         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
10475         specially, bug reported by G.M. Gallant,
10476         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
10477         as force'd so that cannot be optimised out by pCode optimiser,
10478         * src/pic16/pcode.c,
10479         * src/pic16/pcodepeeph.c,
10480         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
10481         they are disabled by default, but can be enabled explicit with
10482         command argument --denable-peeps, for testing,
10483         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
10484         --pomit-ivt in COMPILE_FLAGS
10485
10486 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
10487
10488         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
10489           compilation on MSVC
10490
10491 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
10492
10493         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
10494
10495 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10496
10497         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
10498         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
10499
10500 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
10501
10502         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
10503         would only assign 0x300001 register.
10504
10505 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
10506
10507         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
10508         in COMPILE_FLAGS. Thanks to G. Gallant for report.
10509
10510 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10511
10512         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
10513         for ds80c400
10514         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
10515         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
10516         added peephole 254 (left shift), 255 (jump table)
10517
10518 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
10519
10520         * device/lib/Makefile.in: removed comment line with model-pic16,
10521         * (target port-specific-objects-pic16): the libraries and objects
10522         are copied to the build directory form the device/lib/pic16/bin
10523         directory
10524
10525         Cumulative patch concerning pic16 port:
10526         * library directory has been re-organized,
10527         * added support for PIC18F1220,
10528         * added headers and library sources for chips 18f1220,18f6520,
10529         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
10530
10531         * configuration registers setting has changed, now each supported
10532         device has a complete description of the registers it uses,
10533         * all initialisations are moved to idata sections, these section
10534         can be absolute or relocatable,
10535         * fixed initialisation of codespace variables,
10536         * fixed warning about PCLATU and gpsim,
10537         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
10538         * (genAssign): use table reads when assigning from variables in codespace,
10539         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
10540         char/int variables placed in codespace,
10541         * (pic16_emitConfigRegs): NEW, emits a list with configuration
10542         registers set in .asm file, no need for --pomit-config-words anymore,
10543         * (pic16glue): some 8051 legacy segments are commented out
10544         (to be removed completely),
10545         * added support for alternative assembler and linker with --asm=
10546         and --link= command line arguments,
10547         * peepholes are disabled automatically in the port, no need to
10548         specify on command line,
10549         * port supports natively char/int/long multiplication, but converts
10550         all divisions to support functions,
10551         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
10552         to the file set in variable $2,
10553         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
10554         strings in ASCII format and not in hex,
10555         * ralloc.c (serialRegAssign): added a triplet of conditional calls
10556         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
10557         allocate proper register if iCodes aren't temporary,
10558
10559 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
10560
10561         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
10562
10563 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
10564
10565         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
10566         is commented out
10567
10568 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10569
10570         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
10571         computed address is reused
10572         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
10573         multi-byte bitfields
10574
10575 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
10576
10577         * src/z80/gen.c: (genArrayInit): must check for pointers too
10578
10579 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
10580
10581         * support/regression/tests/zeropad.c: never meant to commit the
10582           nestedstruct test: removed, added check for GCC version
10583
10584 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
10585
10586         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
10587         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
10588         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
10589           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
10590           bugs 928906 and 954082 half-empty initializers
10591         * src/SDCCsymt.h,
10592         * src/SDCCsymt.c (getAllocSize): added for above fix
10593         * src/z80/gen.c (genArrayInit): fixed bug 741044
10594         * support/regression/tests/zeropad.c: added tests
10595
10596 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
10597
10598         * src/pic16/device.c (pic16_dump_section): corrected bug which
10599         caused some symbols of the libraries to be misplaced
10600
10601 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
10602
10603         * src/pic16/glue.c,
10604         * src/pic16/ralloc.h,
10605         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
10606         to fix conflict with pic port
10607
10608 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
10609
10610         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
10611         externs configuration variables,
10612         * src/pic16/ralloc.h,
10613         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
10614         prototype in header, commented out some debug messages
10615
10616 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
10617
10618         * src/pic16/glue.c,
10619         * src/pic16/main.c,
10620         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
10621         for gpasm COFF object generation. Thanks to D. Hawkins for
10622         his patch info
10623
10624 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10625
10626         * src/ds390/main.c,
10627         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
10628         Brock for spotting this)
10629         * src/ds390/gen.c (genEndFunction),
10630         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
10631         interrupt handler and critical. Disable push/pop optimizations when
10632         peephole optimizations disabled.
10633
10634 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
10635
10636         Updated pic16 library sources and headers.
10637         * device/lib/pic16/pic18f*/ ,
10638         * device/include/pic16/*.h: modified to handle structured SFR
10639         definitions
10640
10641 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
10642
10643         * src/port.h (PORT structure): added hook initPaths, now each
10644         port can declare its own default search paths,
10645         which can been seen with the --print-search-dirs option,
10646         see pic16 port for example,
10647         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
10648         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
10649         * (doPrintSearchDirs): NEW, replaces in a central manner the
10650         printing of search dirs which was split in set*Paths functions,
10651         * (main): added call to port->initPaths and doPrintSearchDirs,
10652         * src/avr/main.c,
10653         * src/ds390/main.c,
10654         * src/hc08/main.c,
10655         * src/izt/i186.c,
10656         * src/izt/tlcs900h.c,
10657         * src/mcs51/main.c,
10658         * src/pic/main.c,
10659         * src/pic16/main.c: modified port structures to reflect addition of
10660         initPaths hook,
10661
10662         * src/pic16/device.c (regCompare): registers are finally sorted by name,
10663         * (pic16_dump_section): for registers in same address reserve memory once,
10664         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
10665         to no_banksel,
10666         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
10667         result is greater in size than right or left,
10668         * (pic16_genUMult8X8_8): there are some cases where the result can
10669         be 16 bits size, so handle these,
10670         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
10671         * (pic16_outBitC): modified to emit pcodes,
10672         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
10673         or not,
10674         * (genDivOneByte): implemented algorithm to divide 8-bits,
10675         * (genCmp): uncommented goto, but issues still exist,
10676         * (genAnd): fixed a bug with variables >8bits,
10677         * (genPackBits): optimization added that uses BCF/BSF to change a
10678         single bit,
10679         * (genAssign): fixed bug when assigning floating point literals,
10680         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
10681         __sdcc_gsinit_startup label,
10682         * src/pic16/main.c (_pic16_init): removed search directory
10683         initialisations,
10684         * (_pic16_initPaths): NEW, used to initialise search directories,
10685         * (_hasNativeMulFor): support functions for all except char/int
10686         multiplication, and char division,
10687         * (PIC16_port struct): modified entry for native mul support,
10688         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
10689         no_banksel option,
10690         * (buildCallTree): call to register_usage is ifdef'ed out,
10691
10692 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10693
10694         * device/include/string.h: applied Stas Sergeev's patch to make this
10695         header file compatible with the preprocessor -Wundef option
10696         * src/SDCCmain.c (main): abort compilation if preprocessor reports
10697         failure (fixes bug #941458)
10698
10699 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10700
10701         * src/SDCCopt.c (killDeadCode): fixed bug #907733
10702         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
10703         that the variable, not the function, should be static
10704         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
10705         to be consistent with non-literal case
10706
10707 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10708
10709         * src/SDCCast.c (isConformingBody): fixed bug #949967
10710         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
10711         convilong): fixed bug #952086
10712
10713 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10714
10715         * src/SDCCmem.c (allocVariables): fixed bug #955321
10716
10717 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10718
10719         * src/hc08/main.c (_hc08_genAssemblerEnd),
10720         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
10721         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
10722         completely eliminated the use of a temporary file
10723         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
10724         when more than one file linked
10725         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
10726
10727 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10728
10729         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
10730         which fixes bug #543481
10731         * support/regression/tests/bug-751703.c: fixed comments left from a
10732         cut and paste error
10733         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
10734         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
10735         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
10736         scopes
10737         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
10738         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
10739         are now changed to underscores in moduleName
10740
10741 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10742
10743         * as/mcs51/lkmem.c: better fix for bug #954173
10744
10745 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
10746         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10747
10748         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
10749         * device/include/c8051f000.h,
10750         * device/include/c8051f120.h,
10751         * device/include/c8051f300.h,
10752         * device/include/c8051f310.h,
10753         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
10754         PWM16) and detab'ed
10755
10756 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10757
10758         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
10759         and mailing lists, doc'ed --no-peep-comments, removed reference
10760         to knoppix (newest version has no LyX/LaTeX), other minor changes
10761         * src/SDCCglue.c (glue): save 2 bytes stack space with
10762         option --main-return. The ljmp could probably be avoided too
10763
10764 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10765
10766         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
10767
10768 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10769
10770         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
10771         * src/SDCCopt.c (isLocalWithoutDef),
10772         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
10773         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
10774         (credit to Maarten Brock for patch #949363, on which this is based)
10775         * support/regression/tests/bug-751703.c: some test cases of extern used
10776         within inner scopes.
10777
10778 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10779
10780         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
10781         SPEC_STRUCT
10782         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
10783         struct definitions
10784         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
10785         dwWriteLabel): fix to create valid debugger symbols even when
10786         the module name has non-alphanumeric symbols in it
10787         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
10788         when a variable's allocation has been optimized away
10789
10790
10791 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10792
10793         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
10794         * src/hc08/main.c,
10795         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
10796         * src/mcs51/main.c,
10797         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
10798         * src/ds390/main.c,
10799         * src/z80/gen.c (z80_emitDebuggerSymbol),
10800         * src/z80/main.c,
10801         * src/pic/gen.c (pic14_emitDebuggerSymbol),
10802         * src/pic/main.c,
10803         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
10804         * src/pic16/main.c,
10805         * src/avr/gen.c (avr_emitDebuggerSymbol),
10806         * src/avr/main.c,
10807         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
10808         * src/xa51/main.c,
10809         * src/SDCCdebug.c (emitDebuggerSymbol),
10810         * src/SDCCdebug.h,
10811         * src/port.h: added a debugger struct to the port struct. Added a
10812         callback for defining debugger symbols
10813
10814         * src/SDCCast.c (createLabel),
10815         * src/SDCC.y (labeled_statement): mark all compiler generated labels
10816         with isitmp = 1
10817         * src/SDCCicode.h,
10818         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
10819         iCode back to the ast for the function
10820
10821         * src/hc08/ralloc.c (hc08_assignRegisters),
10822         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
10823         unneeded fields from the regs struct.
10824         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
10825         pushReg() & pullReg() functions instead of emitcode()
10826
10827         * src/hc08/gen.c (genLabel, genhc08Code),
10828         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
10829
10830         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
10831         debugger hooks
10832
10833         * src/hc08/gen.c (genEndFunction, genhc08Code),
10834         * src/hc08/gen.h,
10835         * src/mcs51/gen.c (genEndFunction, gen51Code),
10836         * src/mcs51/gen.h,
10837         * src/ds390/gen.c (genEndFunction, gen390Code),
10838         * src/ds390/gen.h,
10839         * src/z80/gen.c (genEndFunction, genZ80Code),
10840         * src/z80/gen.h,
10841         * src/z80/z80.h,
10842         * src/pic/gen.c (genEndFunction, genpic14Code),
10843         * src/pic/gen.h,
10844         * src/pic16/gen.c (genEndFunction, genpic16Code),
10845         * src/pic16/gen.h,
10846         * src/avr/gen.c (genEndFunction, genAVRCode),
10847         * src/avr/gen.h,
10848         * src/xa51/gen.c (genEndFunction, genXA51Code),
10849         * src/xa51/gen.h,
10850         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
10851         specific code to cdbFile.c and out of the backend code generators
10852
10853         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
10854         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
10855         starting address is now 0
10856
10857         * as/hc08/asm.h,
10858         * as/hc08/m08pst.c,
10859         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
10860         assembler directive for DWARF support
10861         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
10862
10863         * src/src.dsp,
10864         * src/Makefile.in,
10865         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
10866
10867 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10868
10869         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
10870         and inappropriate peephole optimization in jump tables
10871
10872 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10873
10874         * as/hc08/m08pst.c,
10875         * src/SDCCglue.c: sdccopt works for the hc08 port now
10876
10877 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
10878
10879         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
10880
10881 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10882
10883         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
10884
10885 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10886
10887         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
10888         rules
10889         * src/SDCCmain.c,
10890         * src/SDCCglobl.h,
10891         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
10892         comments from the peephole optimizer replacement rules
10893         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
10894         symbols
10895         * src/SDCCcse.c (updateSpillLocation),
10896         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
10897         equivalents
10898         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
10899         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
10900         objects far pointers
10901
10902 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10903
10904         * src/SDCCsymt.h: a missing part of my last change
10905         * src/pic/ralloc.c (regTypeNum),
10906         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
10907
10908 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10909
10910         * src/SDCCicode.h,
10911         * src/SDCCicode.c (aggrToPtrDclType),
10912         * src/SDCCptropt.h,
10913         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
10914         ptrPseudoSymConvert),
10915         * src/pic/ralloc.c (regTypeNum),
10916         * src/pic16/ralloc.c (regTypeNum),
10917         * src/hc08/ralloc.c (regTypeNum),
10918         * src/ds390/ralloc.c (regTypeNum),
10919         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
10920         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
10921
10922 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10923
10924         * link/z80/lkmain.c (afile),
10925         * as/hc08/lkmain.c (afile),
10926         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
10927         prevent a pointer problem when a filename has no directory and
10928         no extension specified.
10929
10930 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10931
10932         * link/z80/lkmain.c (afile): allow periods in directory names
10933         * link/z80/lkmain.c (afile),
10934         * as/mcs51/lkmain.c (afile),
10935         * as/hc08/lkmain.c (afile): allow linker script file to have an
10936         extension other than ".lnk"
10937         * link/z80/lklex.c (getfid),
10938         * link/z80/lkmain.c (parse),
10939         * as/mcs51/lklex.c (getfid),
10940         * as/mcs51/lkmain.c (parse),
10941         * as/hc08/lklex.c (getfid),
10942         * as/hc08/lkmain.c (parse): Support comments in the linker script
10943         file on lines by themselves and after filenames
10944
10945 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10946
10947         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
10948
10949 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10950
10951         * src/z80/peeph-z80.def: removed some peephole rules that don't
10952         work with multibyte arithmetic (fixed bug #937126)
10953         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
10954         to registers and not global variables
10955         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
10956         geniCodePreInc, geniCodePostDec, geniCodePreDec,
10957         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
10958         checking for assignments not internally generated (fixed bug #931895)
10959         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
10960         structure member (fixed bug #930072)
10961
10962 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10963
10964         * src/SDCCmain.c (linkEdit),
10965         * src/hc08/main.c (_hc08_parseOptions),
10966         * as/hc08/Makefile.in,
10967         * as/hc08/aslink.h,
10968         * as/hc08/asm.h,
10969         * as/hc08/m08pst.c,
10970         * as/hc08/lkrloc.c (relr, rele),
10971         * as/hc08/lkarea.c (lnkarea)
10972         * as/hc08/lkmain.c (afile, parse),
10973         * as/hc08/lkelf.c: support for ELF output
10974         * as/hc08/lks19.c (s19),
10975         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
10976
10977 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10978
10979         * as/mcs51/lkihx.c: Fixed bug #899105.
10980
10981 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10982
10983         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
10984         .dsp files from Unix to DOS.
10985
10986 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10987
10988         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
10989         function pointers; we have been compliant for several months now.
10990         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
10991         change that was accidently commented out
10992         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
10993         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
10994         bug #922319
10995
10996 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10997
10998         * src/hc08/gen.c: output of all of the internal debugging information
10999         is now controlled by the D() macro; it is disabled by default
11000
11001 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11002
11003         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
11004         harder to keep the same registers during a CAST iCode
11005         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
11006         long via int can be done in a single cast, if the signedness is
11007         correct.
11008         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
11009         putchar() in tinibios.c in ds390's library
11010
11011 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
11012
11013         * src/SDCCast.c (decorateType): fixed bug #898889,
11014         cast result of a literal complement too
11015         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
11016         fixed check for bitfields
11017
11018 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
11019
11020         * src/SDCCicode.c (geniCodeLogic): made it static,
11021         (geniCodeLogicAndOr): added in order to fix bug #905492,
11022         (ast2iCode): fixed bug #905492
11023         * support/regression/tests/bug-905492.c: added
11024         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
11025         (processParms): fixed bug #927659: don't copy parms, this will clear
11026         decorated flag
11027         * support/regression/tests/bug-927659.c: added
11028
11029 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
11030
11031         * src/SDCCast.c (addCast): don't cast float to char
11032         * device/lib/libsdcc.lib: added _memmove
11033
11034 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
11035
11036         * device/lib/large/Makefile: fixed parallel execution by
11037         replacing `make` by `$(MAKE)`
11038
11039 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11040
11041         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
11042         offsets (fixes bug #923936)
11043
11044 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
11045
11046         * device/lib/small/Makefile: fixed parallel execution by
11047         replacing `make` by `$(MAKE)`
11048
11049 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
11050
11051         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
11052
11053 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
11054
11055         * src/pic/gen.c (genCpl): multi-byte complements were not working.
11056         * src/regression/Makefile: Regression test was not running.
11057
11058 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
11059
11060         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
11061         complement if possible
11062         * src/SDCCval.c (valComplement),
11063         * src/SDCCicode.c (operandOperation): fixed complement of literal
11064         * support/regression/tests/onebyte.c (testComplement): added
11065
11066 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
11067
11068         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
11069         return an optimized tree; actually replace actParm with the new tree
11070         * src/SDCCast.h: added some parantheses to remove side effects
11071         * support/regression/tests/bug-920866.c
11072
11073 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
11074         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
11075         Bit operands were not being handled properly in the pic14 port.
11076         (now src/regression/add.c passes again).
11077
11078 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11079
11080         * src/SDCC.y (labeled_statement): case and default no longer require
11081         a following statement (RFE #893037)
11082
11083 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11084
11085         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
11086         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
11087         disabled (fixes bug #916294)
11088         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
11089         "mov a,acc"; patch provided by Lenny Story
11090         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
11091
11092 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11093
11094         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
11095         functions
11096         * src/ds390/gen.c (genFunction, genEndFunction),
11097         * src/ds390/ralloc.c (ds390_assignRegisters),
11098         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
11099         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
11100         pushed if there are parameters passed on the stack. Also, a cleaner
11101         way to decide if r0/r1 should be pushed/popped. (Together they fix
11102         bug #918693)
11103
11104 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11105
11106         * doc/sdccman.lyx,
11107         * device/lib/mcs51/crtpagesfr.asm,
11108         * device/lib/mcs51/crtxinit.asm,
11109         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
11110         to avoid confusion with Si Lab's SFRPAGE register.
11111
11112 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11113
11114         * src/SDCCglue.c (emitMaps): allow public sfr variables
11115         * src/SDCCglue.c (initialComments): include compiler build date
11116         with compiler version and put the timestamp of the generated
11117         assembly file on a serperate line to be less confusing.
11118         * src/port.h: added genInitStartup hook
11119         * src/avr/main.c,
11120         * src/ds390/main.c,
11121         * src/hc08/main.c,
11122         * src/pic/main.c,
11123         * src/pic16/main.c,
11124         * src/xa51/main.c,
11125         * src/z80/main.c: genInitStartup initialize as NULL (default to
11126         historical behaviour)
11127         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
11128         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
11129         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
11130         library instead of hard coding it into the compiler.
11131         * support/regression/ports/mcs51-stack-auto/spec.mk,
11132         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
11133         * device/lib/mcs51/Makefile,
11134         * device/lib/small/Makefile,
11135         * device/lib/large/Makefile,
11136         * device/lib/mcs51/crtpagesfr.asm,
11137         * device/lib/mcs51/crtstart.asm,
11138         * device/lib/mcs51/crtxclear.asm,
11139         * device/lib/mcs51/crtxinit.asm,
11140         * device/lib/mcs51/crtclear.asm,
11141         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
11142         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
11143         and into user configurable files.
11144         * device/lib/clean.mk: clean mcs51 directory too
11145         * support/regression/tests/longlit.c: added static to T1 declaration
11146         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
11147         accesses in the initialization code
11148
11149 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11150
11151         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
11152         OSCTRIMVAL as noted in bug #916008
11153
11154 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11155
11156         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
11157         in loops with multiple exits (reported as incorrect registers
11158         used by Martin Helmling in Sdcc-user list)
11159
11160 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11161
11162         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
11163         made ds390 register extensions look less like error messages
11164
11165 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11166
11167         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
11168         reported by Adam Wozniak in Sdcc-user list
11169
11170 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
11171
11172         * src/SDCCast.c (decorateType): fixed with bug and promotion in
11173         arithmetic optimizations, added debug output
11174
11175 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
11176
11177         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
11178         * sdcc.spec: updated and split sdcc into 3 rpms
11179         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
11180         needed for literals of LEFT_OP and '+'
11181         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
11182         introduced RESULT_TYPE_NOPROM
11183         (geniCodeMultiply): fixed logic for decision if mul is optimized to
11184         left shift
11185         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
11186         limited promotion to int only for '*'
11187         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
11188
11189 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
11190
11191         * src/pic16/gen.c (genSkip),
11192         (genc16bit2lit), (gencjneshort): commented out
11193         (is_LitOp): new helper function, checks operand type
11194         (genCmpEq): rewritten
11195
11196 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
11197
11198         * support/regression/tests/bug-908454.c: added
11199
11200 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
11201
11202         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
11203         * src/SDCCicode.c (usualBinaryConversions): op needs int type
11204         (geniCodeCast): cosmetic, don't preserve bit storage class
11205         (geniCodeLeftShift): added promotion
11206         (geniCodeLogic): fixed regression
11207         * src/SDCCsymt.c (computeTypeOr): accept bits too
11208         (compareType): 2nd part of fix for bug #908454, needed for bitfields
11209
11210 2004-03-07  Borut Razem <borut.razem AT siol.net>
11211
11212         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
11213
11214 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
11215
11216         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
11217         version of pic16_genPackRegisters which does not check if ic is a
11218         CAST operator,
11219         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
11220         function cause string1.c regression test fails
11221
11222 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
11223
11224         * sim/ucsim/configure.in,
11225         * sim/ucsim/configure,
11226         * sim/ucsim/doc/Makefile.in: use docdir
11227         * src/SDCC.y: fixed sbit atrributes
11228         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
11229         * src/SDCCast.c (decorateType): |^& need special promotion handling
11230         * src/SDCCast.h,
11231         * src/SDCCsymt.h: moved definition of RESULT_TYPE
11232         * src/SDCCsymt.h (computeType),
11233         * src/SDCCicode.c: computeType() needs op
11234         * src/SDCCsymt.c (checkTypeSanity),
11235         * doc/sddman.lyx: "plain" bitfields are unsigned
11236         * src/SDCCsymt.c (computeTypeOr): added
11237         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
11238         |^& ops
11239         * src/SDCCval.c (val*): computeType() needs op
11240         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
11241         * support/regression/tests/onebyte.c: added tests for |^&
11242
11243 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
11244
11245         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
11246         for writing icode into asm output.
11247
11248 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
11249
11250         * src/pic16/device.c: added some debug lines enabled
11251         with macro DEBUG_CHECK,
11252         * src/pic16/genarith.c: more debug in genPlus,
11253         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
11254         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
11255         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
11256         * (aopForSym): onStack symbols are re-placed in data memspace,
11257         and onStack flag is cleared,
11258         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
11259         copy temporary pcodeop,
11260         * (genPcall): added warning for not updating PCLATU,
11261         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
11262         always true for pic16 port,
11263         * (genMultOneWord): NEW, supports integer multiplication,
11264         * (genMult): modified to call genMultOneWord,
11265         * (ifxForOp): added warning when return NULL,
11266         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
11267         flag is set before call to operandFromSymbol for implicit
11268         added structures,
11269         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
11270         options.intlong_rent are set by default,
11271         * (_hasNativeMulFor): modified to allow port generation of integer
11272         multiplication,
11273         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
11274         set regtype to REG_SFR for all registers, restricting seting the
11275         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
11276
11277 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11278
11279         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
11280         more than 500 times in the regression tests
11281
11282 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11283
11284         * support/Util/SDCCerr.h,
11285         * support/Util/SDCCerr.c,
11286         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
11287         enumerator_list),
11288         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
11289         for symbol conflicts.
11290         * support/valdiags/tests/enum.c,
11291         * support/valdiags/tests/tentdecl.c,
11292         * support/valdiags/tests/struct.c: expect possible error messages
11293         referring to original symbol definitions.
11294         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
11295         * src/SDCCsymt.h,
11296         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
11297
11298 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
11299
11300         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
11301
11302 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
11303
11304         * src/pic16/ralloc.c (newReg): fixed bug #908929
11305
11306 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11307
11308         * src/ds390/gen.c: added missing #include "main.h"
11309
11310 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
11311
11312         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
11313         checking if symbol is already in set,
11314         * src/pic16/device.h: prototype for checkAddSym,
11315         * src/pic16/gen.c: (_G): added entry interruptvector,
11316         * (assignResultValue): removed some commented out lines,
11317         * (genFunction): check for ISR via sym->type, absolute section for
11318         interrupt code is created via a new pBlock, the goto instruction is
11319         placed now correctly at the interrupt vector position, changed all
11320         references from ivec to _G.interruptvector,
11321         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
11322         is the interrupt is a high priority one, same for return from ISR,
11323         * src/pic16/glue.c: changed all calls of addSetHead for publics and
11324         externs to calls of checkAddSym,
11325         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
11326         pic16_pcode_verbose flag is set,
11327         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
11328         * src/pic16/pcoderegs.c: message about how many registers are saved
11329         will only be emitted if pic16_pcode_verbose flag is set,
11330
11331 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11332
11333         * src/ds390/ralloc.h,
11334         * src/ds390/ralloc.c (ds390_regWithIdx),
11335         * src/ds390/gen.c (emitcode),
11336         * src/ds390/main.h,
11337         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
11338         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
11339         ds390operandCompare, getRegsRead, getRegsWritten,
11340         initializeAsmLineNode): customized instruction size calculation for
11341         ds390, started basis for some register optimizations
11342         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
11343         corresponding assembly output
11344         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
11345         missing push/pop of r0/r1. Optimized push/pops
11346
11347 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11348
11349         * src/mcs51/main.c (instructionSize): fixed ACALL size
11350         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
11351
11352 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
11353
11354         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
11355         the sorting of rlist with NULL elements
11356         * (print_idataType, print_idata): NEW to create idata sections
11357         * src/pic16/device.h: idataSymSet new variable
11358         * src/pic16/gen.c (genFunction): fixed some bugs in string
11359         comparing, improved the absolute section creation for ISRs,
11360         added FSR0L/FSR0H in registers that are saved in an ISR,
11361         * (genInline): fixed the processing of inline snippets,
11362         now they undergo no process by the peephole optimizer
11363         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
11364         are placed in idataSymSet,
11365         * (pic16emitStaticSeg): extern symbols are added in externs,
11366         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
11367         switching when aboslute variables are placed in access bank memory
11368         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
11369         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
11370         commented out with #if,
11371         * (pic16_packRegisters): reintroduce the check for CAST because some
11372         symbols are not correctly handled,
11373         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
11374         pCodeInstruction instead of pCode,
11375         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
11376         pCodeAsmDir definition,
11377         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
11378         directive, then the argument directive is emitted without the leading
11379         tab, hack for inline labels which must be in the first column,
11380         * (compareLabel,pic16_findNextInstruction),
11381         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
11382         * (insertBankSwitch): modified for the new pCodeAsmDir,
11383
11384 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11385         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
11386
11387         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
11388         instance,
11389         * (pushSide): commented out with #if,
11390         * (assignResultValue): fixed some typos in saving
11391         registers,
11392         * (genPcall): FIXED and sync'ed with genCall,
11393         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
11394         * (genNearPointerGet): fixed to handle some more cases,
11395         implementation scheme via table reads,
11396         * (genConstPointerGet): modified to access code memory correct,
11397         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
11398         and improved to handle some cases
11399         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
11400         instead of "RETLW" for init data
11401         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
11402         not IN_DIRSPACE, work around to reduce bank switching when aboslute
11403         variables are placed in access bank memory (<0x80 and >=0xf80),
11404         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
11405         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
11406         TBLWT_POSTDEC,TBLWT_PREINC
11407         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
11408         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
11409         directives
11410         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
11411         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
11412         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
11413         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
11414
11415 2004-02-29  Borut Razem <borut.razem AT siol.net>
11416
11417         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
11418         support/Util/findme.h, support/Util/system.h: enhance binary relative
11419         search for lib and include by using findProgramPath()
11420
11421 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11422
11423         * src/SDCCpeeph.h,
11424         * src/SDCCpeeph.c (pcDistance),
11425         * src/port.h,
11426         * src/mcs51/ralloc.h,
11427         * src/mcs51/ralloc.c (mcs51_regWithIdx),
11428         * src/mcs51/main.h,
11429         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
11430         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
11431         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
11432         size calculation port specific, started basis for some register
11433         optimizations
11434         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
11435         missing push/pop of r0/r1. Optimized push/pops
11436         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
11437         * device/lib/_modsint.c (_modsint),
11438         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
11439         and stack version so regression tests pass
11440
11441 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
11442
11443         * src/Makefile.in (dep): include SLIBOBJS in dependency check
11444         * src/SDCCast.c (decorateType): catch another small optimization
11445         with '?' operator
11446         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
11447         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
11448         modified to finally use computeType() all over SDCC,
11449         see Feature Request #877103
11450         * src/SDCCval.h: cosmetic
11451         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
11452         valCompare(); regression tested in muldiv.c
11453         * support/regression/tests/muldiv.c (testMod): mod sign follows
11454         dividend only
11455
11456 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
11457
11458         * src/SDCCast.c (decorateType): fixed bug #902362
11459         * doc/INSTALL.txt: fixed install instructions for win32
11460
11461 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
11462
11463         * device/include/Makefile.in (install): fixed by replacing spaces
11464         by tabs
11465         * doc/README.txt,
11466         * doc/INSTALL.txt: updated for release
11467         * doc/sdccman.lyx: added warning for --xstack being buggy
11468
11469 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
11470
11471         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
11472         to eliminate build warnings.
11473         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
11474
11475 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
11476            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11477
11478         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
11479         removed -penable-stack, added comment for stack pragma, added
11480         warning for not initializing the stack/frame registers, removed
11481         comment at interrupts section
11482
11483         Stack is made permanent, there is no ability to disable stack usage.
11484         * src/pic16/device.h,
11485         * src/pic16/device.c: removed all references to USE_STACK macro,
11486         * src/pic16/device.c (pic16_dump_section): when no elements in
11487         rlist, free rlist before return,
11488         * (pic16_dump_int_registers): NEW, internal registers are a new set
11489         of general purpose registers reused by each function,
11490         * (checkAddReg): returns 1 if registers is added to set,
11491         * (pic16_groupRegistersInSection): when a registers is of type
11492         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
11493         * src/pic16/device.h: memRange and Assigned Memory are deleted,
11494         SRCASECMP macro is moved here from device.c
11495         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
11496         PO_PCLATU, PO_PRODL, PO_PRODH,
11497         * (pic16_pCodeOpType, genMinus,
11498         changed compares to "a" register, with AOP_ACC,
11499         * (pic16_genPlus): fixed some bugs and indented properly,
11500         * (pic16_addSign): changed size to size+offset in the MOVWF
11501         instruction,
11502         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
11503         multiply 8-bit operand by literal, result is 8-bit,
11504         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
11505         multiply 2 8-bit operand, result is 8-bit,
11506         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
11507         genUMult8X*_16,
11508         * src/pic16/gen.c: changed accUse to contain WREG only,
11509         * (pic16_emitcomment): renamed to pic16_emitpcomment,
11510         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
11511         true, do not use immediate addressing any more unless sym is a
11512         pointer in codespace,
11513         * (aopForRemat): do not use immediate addressing when symbol not in
11514         codespace and when symbol's address is requested,
11515         * (aopOp): for-loop in if(sym->accUse) is modified for the new
11516         accUse size (= 1),
11517         * (aopGet): added case for AOP_ACC and don't return "accumulator
11518         bug" but WREG instead,
11519         * (popGetTempReg): pushes contents of temporary register in stack,
11520         * (popReleaseTempReg): pops contents of temporary register from
11521         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
11522         * (pic16_popGet): separated case AOP_ACC to return register WREG
11523         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
11524         or PO_IMMEDIATE and initializes their instance/offset appropriately,
11525         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
11526         the use of immediate pointers to certain cases only.
11527
11528         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
11529         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
11530         * (assignResultValue, genCall, genRet): modified to use the new
11531         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
11532         genPcall is still broken,
11533         * (genFunction): added code to create 'A' type pBlocks when
11534         interrupt functions are generated, code not extensively tested yet,
11535         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
11536         * (genEndFunction): modified so ISRs pop stored registers from stack,
11537         * (genMultOneByte): cleanup,
11538         * (AccRsh): added flag andmask, to and result with appropriate mask,
11539         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
11540         * (genDataPointerGet): fixed and reenabled its use,
11541         * (genNearDataPointerGet): bugs fixed,
11542         * (genDataPointerSet): bugs fixed,
11543         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
11544         pic16_DumpSymbol, pic16_DumpOp,
11545         * src/pic16/genutils.h: function prototypes for the above functions,
11546         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
11547         pointers,
11548         * (pic16emitRegularMap): many many many improvements, but needs a
11549         major cleanup,
11550         * src/pic16/main.c: enable_stack in pic16_options is removed,
11551         * (_pic16_parseOptions): removed command line options -penable-stack,
11552         * (_process_pragma): emit stack symbol only when stack pragma is
11553         processed,
11554         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
11555         redirected to FSR0L/FSR0H pair,
11556         * (pic16_get_op, pic16_get_op2): modifications and improvements,
11557         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
11558         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
11559         for immediates,
11560         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
11561         * (dumpPicOptype): NEW,
11562         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
11563         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
11564         with movff instruction,
11565         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
11566         added pic16_int_regs, some packRegsFor* functions are commented out,
11567         because produce errors,
11568         * src/pic16/NOTES: minor modifications
11569
11570 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11571
11572         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
11573         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
11574         --pack-iram.
11575         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
11576         * as/mcs51/lkaomf51.c: fixed bug #895763
11577
11578 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
11579
11580         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
11581
11582 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11583
11584         * doc/sdccman.lyx: added details about the HC08 storage classes and
11585         interrupts, fixed the register usage info for z80 & gbz80
11586
11587 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
11588
11589         * doc/sdccman.lyx: added more pic16 port documentation
11590         * device/include/pic16/: added header pic18fregs.h
11591
11592 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
11593
11594         * doc/sdccman.lyx: added Vangelis' contribution
11595
11596 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11597
11598         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
11599         extend to the next CALL or PCALL, not just to the next CALL.
11600
11601 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
11602
11603         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
11604
11605 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11606
11607         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
11608         bug #895752 and a better fix for bug #716790
11609
11610 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11611
11612         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
11613
11614 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11615
11616         * doc/sdccman.lyx: minor changes, minor changed
11617
11618 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
11619
11620         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
11621         which can't handle SDCC_NEWONEBYTEOPS,
11622         (geniCodeMultiply): removed conversion from mult to shift for pic14
11623         and pic16
11624
11625 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11626
11627         * src/hc08/gen.h,
11628         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
11629         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
11630         thus fixing bug #895406
11631
11632 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
11633
11634         * device/lib/_modsint.c,
11635         * device/lib/_modslong.c: sign follows divisor only
11636         * src/hc08/gen.c (genMultOneByte): if result size is 1,
11637         signs or signedness can be ignored
11638         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
11639         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
11640         added optimization for IFX,
11641         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
11642         arguments;
11643         reenabled optimization for IFX, which was removed on 2004-01-11
11644         * src/SDCCast.h: added return type IFX
11645         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
11646         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
11647         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
11648         SDCC_OLDONEBYTEOPS selects the old behaviour
11649         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
11650         changed again and commented promotion rule
11651         * src/SDCCval.c (valDiv): promotion no longer necessary
11652         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
11653         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
11654         rewritten
11655         * support/regression/tests/onebyte.c: added
11656
11657 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
11658
11659         * gen.c (genInline): reverted to old code for assemnling inline
11660         code because of bug reported James Chadd
11661
11662 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
11663
11664         * ralloc.h: missing declarations from previous patch,
11665         seems that patch for ralloc.h was never applied, fixed
11666
11667 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11668            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
11669
11670         * pcode.c,
11671         * pcode.h,
11672         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
11673         indirect addressing. Marked FSR0 as deprecated
11674         * gen.c (pointerCode): commented out, not needed now
11675         (pic16_popGet2p): new MOVFF helper function
11676         (genGenPointerGet),
11677         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
11678         (shiftRLong): removed duplicate debugging info
11679
11680 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11681
11682         * src/ds390/gen.c (genNearPointerGet),
11683         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
11684         optimization with bits, but not bitfields.
11685         * src/ds390/ralloc.c (packRegisters),
11686         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
11687
11688 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
11689
11690         * src/SDCCcse.c (algebraicOpts): copy operands before modification
11691
11692 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11693
11694         * src/SDCCsymt.h,
11695         * src/SDCCicode.c (operandFromSymbol),
11696         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
11697         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
11698         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
11699         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
11700         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
11701         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
11702         bug #892038
11703         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
11704         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
11705         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
11706         * src/SDCCsymt.c (newSymbol),
11707         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
11708         enumerator_list),
11709         * src/SDCCval.h,
11710         * src/SDCCval.c (newiList): fixed bug #885705
11711
11712 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11713
11714         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
11715         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
11716
11717 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11718
11719         * device/include/c8051f120.h,
11720         * device/include/c8051f300.h,
11721         * device/include/c8051f310.h: added/updated header files for Silicon
11722         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
11723         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
11724         in new section Submitting patches
11725
11726 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11727
11728         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
11729         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11730         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11731         genGenPointerSet),
11732         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
11733         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11734         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11735         genGenPointerSet),
11736         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
11737         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11738         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11739         genGenPointerSet),
11740         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
11741         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11742         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11743         genGenPointerSet): fixed bug #892400
11744         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
11745         to eliminate build warnings.
11746         * src/SDCCast.c (processParms),
11747         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
11748         fixed bug 751859
11749         * support/valdiag/valdiag.py: added GCC to the list of defines active
11750         when compiling with gcc
11751
11752 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11753
11754         * support/Util/SDCCerr.h,
11755         * support/Util/SDCCerr.c,
11756         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
11757         with an incomplete type (fixed bug #883734)
11758         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
11759
11760 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11761
11762         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
11763
11764 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11765
11766         * src/SDCCast.c (decorateType),
11767         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
11768         function pointer implementation
11769         * support/regression/tests/funptrs.c: added tests to verify both forms
11770         of function pointers work correctly. Added tests to verify parameters
11771         are passed in the correct order.
11772
11773 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
11774
11775         * device.c (regCompare): registers are sorted by ascending
11776         address and increasing size,
11777         * main.c (_pic16_finaliseOptions): removed the declaration
11778         of compiler macro MCU. Now a macro of the format pic18fxxxx
11779         will be defined from the command line
11780
11781 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11782             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
11783
11784         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
11785         PCOP_RLCF was overwritten!
11786         * gen.c (genSkip): commented out calls to pic16_emitcode,
11787         * (genCmpEQ): fixed "long" compares, only high word did get compared,
11788         * (genlshTwo),
11789         * (genRRC): added debugging info,
11790         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
11791         overwritten while shifting,
11792         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
11793         overwritten while shifting,
11794         * (AccLsh),
11795         * (AccRsh),
11796         * (shiftLLeftOrResult),
11797         * (shiftRLeftOrResult),
11798         * (shiftRLong),
11799         * (shiftLLong): Implemented with pic16_emitpcode
11800         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
11801         * (genLeftShift): Fixed bug, operand for shift by variable always
11802         was "and"ed with 0x0f,
11803         * (genLeftShiftLiteral),
11804         * (genrshTwo),
11805         * (genRightShiftLiteral): added debugging info,
11806         * (genrshFour): added comment,
11807         * (genRightShift): determined signedness from operand "left"
11808         instead of "result"
11809
11810 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11811
11812         * src/SDCCicode.c (geniCodeParms),
11813         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
11814         function pointers, fixed function pointer bugs #861242 and #861896
11815
11816 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11817
11818         * device/include/c8051f000.h,
11819         * device/include/c8051f120.h,
11820         * device/include/c8051f300.h: added header files for Silicon
11821         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
11822
11823 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
11824
11825         * src/SDCCast.c (processParams): added new type flow and restructured
11826         (gatherAutoInit): added new type flow
11827         (addCast): cosmetic changes
11828         (getLeftResultType): added new type flow for array indices, patch
11829         provided by Stas, see FR #877103
11830         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
11831         array index patch by Stas
11832         * src/SDCCast.h: added prototype getResultTypeFromType()
11833         * src/SDCCval.h,
11834         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
11835         * src/pic/glue.c (pic14emitStaticSeg),
11836         * src/pic16/glue.c (pic16emitStaticSeg),
11837         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
11838         for initialization of symbols
11839         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
11840         * support/Util/SDCCerr.h:
11841         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
11842         * .version: bumped version number to 2.3.8
11843         * device/include/Makefile.in (install),
11844         * doc/Makefile (install): changed to 'rm `find ...`' construct to
11845         avoid warnings
11846
11847 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
11848
11849         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
11850         Slade Rich fixed an optimization bug
11851         * src/pic/pcodepeep.c,
11852         * src/pic/pcoderegs.c
11853         * doc/Makefile (install): added test for directory
11854
11855 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11856
11857         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
11858         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
11859         * src/pic/ralloc.c (getRegPtr, getRegGpr),
11860         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
11861         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
11862         * as/mcs51/asexpr.c (term),
11863         * as/hc08/asexpr.c (term): fixed bug #887146
11864
11865 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11866
11867         * src/z80/gen.c (genMult): handle single byte result product
11868         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
11869         DUMMY_READ_VOLATILE (fixed bug #886367)
11870
11871 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
11872
11873         * support/regression/tests/libmullong.c: fixed logic, on little endian
11874         hosts we ended without a mullong_wrapper()
11875
11876 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11877
11878         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
11879         virus/worm forged address usage.
11880
11881 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
11882
11883         Fixed promotion, it should be done on AST level:
11884         * src/SDCCast.c (addCast): added promotion to int
11885         (decorateType): updated call to upCast()
11886         * src/SDCCicode.c (geniCodeLeftShift): removed call to
11887         usualUnaryConversions()
11888
11889 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
11890
11891         * support/regression/tests/literalop.c (mulWrapper): Added a
11892         wrapper to remove integer overflow warnings.
11893
11894         * support/regression/tests/float_trans.c: Made work on host.
11895
11896         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
11897         location of sz80.
11898
11899         * support/regression/generate-cases.py (main): Changed from inline
11900         to a main method.
11901
11902         * doc/Makefile (install): Changed to depth first to get rid of
11903         missing directory install warning.
11904
11905         * as/Makefile (install-doc): Made work on Mac.
11906
11907 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
11908
11909         * src/SDCCast.c: added an additional type flow in decorateType() of
11910         opposite direction, see feature request #860006; it's enabled at runtime
11911         by setting the environment variable SDCC_NEWTYPEFLOW
11912         * src/SDCCast.h: changed prototype of decorateType()
11913         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
11914         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
11915         'char' to 'int' can be omitted, if both operands are 'unsigned char';
11916         see feature request #877103
11917         * src/SDCCval.c: updated call of decorateType()
11918         (valBitwise): fixed bug #882876
11919         (valMinus): added promotion
11920         (valLogicAndOr): result is unsigned
11921         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
11922         * src/SDCCsymt.c (computeType),
11923         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
11924         must not cause an unsigned operation
11925         * src/pic/glue (pic14emitRegularMap),
11926         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
11927
11928 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
11929
11930         * src/pic/pcode.c (PCodeID): commented out left over debug code
11931
11932 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
11933
11934         * support/valdiag/tests/overflow.c: added shift tests
11935         * src/pic/device.c,
11936         * src/pic/gen.c,
11937         * src/pic/gen.h,
11938         * src/pic/glue.c,
11939         * src/pic/main.c,
11940         * src/pic/pcode.c,
11941         * src/pic/pcode.h,
11942         * src/pic/pcodepeep.c,
11943         * src/pic/pcoderegs.c,
11944         * src/pic/ralloc.c,
11945         * src/pic/ralloc.h: applied patch from Slade Rich;
11946         added support for multiple code pages and multiple RAM banks on the
11947         PIC 14 port. The ASM files now no longer simply assume all the
11948         code / RAM are in the same page / bank. This means the linker can
11949         safely allocate code/RAM of separate ASM files to different pages/banks.
11950         * doc/sdccman.lyx: added Slade's tips
11951         * src/mcs51/peeph.def: fixed bug #880768
11952
11953 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11954
11955         * src/hc08/ralloc.c (rematStr): fixed bug #879282
11956         * src/SDCCast.c (decorateType): fixed bug #880197
11957
11958 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
11959
11960         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
11961         getopt.h.
11962
11963         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
11964         strtof is not part of C89 and isn't included with Mac OS X.
11965
11966 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11967
11968         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
11969         shiftL2Left2Result): fixed bug #879326
11970         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
11971         (genMultOneByte): fixed bug in signed vs unsigned multiplication
11972         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
11973         address fetch for clr instruction
11974         * device/lib/hc08/_mulint.c: created optimized assembly version
11975         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
11976
11977 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
11978
11979         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
11980         proposed in FR #877103
11981
11982 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
11983
11984         * src/SDCCval.c (cheapestVal): added missing checks
11985         * src/SDCCicode.c (usualBinaryConversions): fixed condition
11986         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
11987
11988 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
11989
11990         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
11991         equal operands
11992
11993 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
11994
11995         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
11996         loaded with the linker search paths (-L arguments) and the libraries
11997         to be linked with the current source (-l arguments). Changes
11998         currently will affect only the pic16 port.
11999         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
12000         include path the port specific paths and port specific libraries,
12001         * gplink command now contains the $3 argument,
12002         * src/pic16/device.h,
12003         * src/pic16/device.c,: structure PIC_device is made public and
12004         renamed to PIC16_device, the same for variable Pics which is renamed
12005         to Pics16. Updated all references to them.
12006         * src/pic16/glue.c (pic16glue): corrected bug with code
12007         initialization which bypassed the variable initializations block.
12008
12009         * device/lib/pic16/Makefile.rules: removed --penable-stack from
12010         COMPILE_FLAGS and added the --nostdinc option
12011
12012 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12013
12014         * device/include/mc68hc908jb8.h: Register defs for another member
12015         of the hc08 family. Contributed by Bjorn Bringert - thanks!
12016
12017 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
12018
12019         Documenting changes from previous commits.
12020         * configure.in (version 1.56),
12021         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
12022         when generating output files to configure the pic16 library,
12023         but now I've commented it out, since gputils aren't installed in the
12024         SF compile farm, so library won't compile
12025
12026         * device/lib/Makefile.in (version 1.56): initially I've added in
12027         target 'all' the prerequestive 'model-pic16' so it compiled the
12028         pic16 library, but now I've commented it out for the same reasons
12029         above,
12030         * added targets 'model-pic16' and 'objects-pic16' to compile the
12031         library
12032         * added target 'port-specific-objects-pic16' to handle the
12033         generated libraries and copy them into the build/ directory
12034         * added target 'clean-intermediate-pic16' to clean intermediate
12035         files into pic16 directory
12036         * in target 'installdirs' added line to create directory pic16 in
12037         the installation path
12038
12039         * device/include/Makefile.in (version 1.11): in target 'install'
12040         added lines to copy all header files to installation path,
12041         * in target 'installdirs' added line create directory for pic16
12042         headers in the installation path
12043
12044 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
12045
12046         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
12047          a function call
12048
12049 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
12050
12051         * configure,
12052         * device/lib/configure.in,
12053         * device/lib/configure: fixed for autoconf 2.57
12054
12055 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12056
12057         * src/z80/main.c (_parseOptions): fixed the portmode= command line
12058         option so that it actually works. Made it specific to the z80, since
12059         the gbz80 doesn't have these kinds of I/O ports.
12060
12061 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12062
12063         * device/include/z180.h,
12064         * device/lib/_memcpy.c,
12065         * device/lib/_memmove.c,
12066         * device/lib/_mulint.c,
12067         * device/lib/ser_ir.c,
12068         * device/lib/ser_ir_cts_rts.c,
12069         * device/lib/_strcmp.c,
12070         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
12071         * src/z80/main.c (_process_pragma): add support for pragmas bank and
12072         portmode; added deprecation warning for bank= and protmode= forms.
12073         Also, guard against buffer overflow.
12074         * src/z80/gen.c (aopGet): generate better code for sfr banked read
12075
12076 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12077
12078         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
12079         changed interrupt vector table generation to only emit declared vectors.
12080         * device/include/Makefile.in: added missing backslash
12081         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
12082
12083 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
12084
12085         Mainly changes to support compilation of the device libraries
12086         * src/pic16/device.c: stack is allocated via symbol and not
12087         via literal number. The symbol is placed in the corresponding
12088         position of the data ram
12089         * (pic16_dump_section): relocatable and absolute uninitialized
12090         data are now emitted in sorted order to reduce section naming,
12091         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
12092         weren't marked as being in the access bank,
12093
12094 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
12095
12096         Added portion of GNU PIC Library under the directory
12097         device/include/pic16 and device/lib/pic16. These files
12098         contain the declarations of SFRs for the PIC18Fxx2 devices.
12099         The directory is initialized via configure from toplevel.
12100
12101 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
12102
12103         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
12104         the spilllocations to be compared correctly
12105
12106 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
12107
12108         * src/SDCCast.c (decorateType): fixed bug introduced today
12109
12110 2004-01-12  Borut Razem <borut.razem AT siol.net>
12111
12112         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
12113         doc/sdccman.lyx: upper case pragmas are deprecated
12114
12115 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
12116
12117         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
12118         in simpler and even better code
12119
12120 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
12121
12122         * src/SDCCicode.c (operandOperation): fixed bug #874819
12123         * src/SDCCast.c (decorateType): fixed
12124         char foo (unsigned long ul) { return ul > 0; }
12125
12126 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12127
12128         * doc/sdccman.lyx: Moved and added some sections, small changes
12129         all over. Telling LaTeX to be less strict with word spacing
12130         to better keep the right margin. Changed some notes about
12131         maintainance of the ports in section 3.2.1 - is it OK like this?
12132
12133 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
12134
12135         SDCC source changes:
12136         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
12137         convilong): modified to inform the pic16 port that builtin functions
12138         are external
12139
12140         PIC16 PORT specific changes:
12141         * src/pic16/device.c pic16_dump_equates() added,
12142         processor registers declared internally by the port are emitted in
12143         the translation as equates,
12144         * src/pic16/gen.c: inline code is passed unprocessed to the
12145         translation,
12146         * (pic16_popGetLit2): fnuction modified to take second operand as
12147         pCodeOp pointer and not as literal,
12148         * (popRegFromIdx): prefixed with pic16_,
12149         * (pic16_popCombine2): modified to receive already allocated pCode
12150         operands,
12151         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
12152         * (genFunction): initializes local stack frame and pushes on stack
12153         all the registers used by this function,
12154         * (genEndFunction): restores all registers from stack and restores
12155         stack frame,
12156         * src/pic16/glue.c (pic16emitRegularMap): various changes and
12157         improvements,
12158         * (pic16glue): changed the program startup sequence,
12159         * added new dbName code 'A' for functions placed in absolute section
12160         * src/pic16/main.c: added function attribute _naked,
12161         * added pragma 'code' to place a fnuction at an absolute address,
12162         * added command line arguments --debug-ralloc and --pcode-verbose,
12163         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
12164         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
12165         * (pic16_newpCodeOpLit2): modified to take the second operand as
12166         pCodeOp pointer,
12167         * (pic16_printpBlock): modified to emit each function in a separate
12168         section,
12169         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
12170         UPPER for immediate operands,
12171         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
12172         instruction,
12173         * src/pic16/peeph.def: all peepholes with movff are commented out,
12174         because there is a problem in the pcode peep optimizer,
12175         * src/pic16/ralloc.c: the register allocator can now reuse local
12176         function symbols for another function. This saves register usage.
12177         * src/pic16/ralloc.h: added flag isLocal in structure regs,
12178
12179         Added file src/pic16/NOTES with information about program writing on
12180         the current port version.
12181
12182 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12183
12184         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
12185         and peephole 252 (array access)
12186
12187 2004-01-09  Borut Razem <borut.razem AT siol.net>
12188
12189         * src/SDCCmain.c : fixed #872250: -l command line defined library
12190           files are scanned before standard library files
12191
12192 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12193
12194         * src/SDCCast.c (decorateType): fixed bug #874046
12195
12196 2004-01-09  Borut Razem <borut.razem AT siol.net>
12197
12198         * support/scripts/sdcc.nsi: remove previous installation
12199
12200 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12201
12202         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
12203         bytes for last interrupt vector (mcs51)
12204         * sdcc.spec: fixed typo
12205
12206 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12207
12208         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
12209         gen51Code): more efficient parameter receive for --model-large
12210         ("bug" #845294)
12211
12212 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12213
12214         * src/ds390/main.c,
12215         * src/z80/main.c: added missed needLinkerScript flags (more than
12216         one port structure defined in these file)
12217         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
12218         bug #795325
12219
12220 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
12221
12222         * src/SDCCmain.c: removed various references to DEFAULT_PORT
12223         * src/port.h: added flag needLinkerScript in port->linker
12224         structure to inform whether to create a .lnk file or not,
12225         * src/avr/main.c,
12226         * src/ds390/main.c,
12227         * src/hc08/main.c,
12228         * src/mcs51/main.c,
12229         * src/pic/main.c,
12230         * src/pic16/main.c,
12231         * src/xa51/main.c,
12232         * src/z80/main.c: changed appropriately to configure
12233         needLinkerScript flag
12234         * src/pic/gen.c,
12235         * src/pic16/gen.c (genAddrOf): fixed bug #863624
12236         * src/pic/glue.c: added variable udata_section_name to
12237         override default uninitialized data segment definition for
12238         devices only with SHAREBANK memory (reported from Erik Epetrich)
12239         * (pic14emitOverlay): modified to emit a commented overlay segment
12240         directive when no overlay data exist
12241         * (picglue): modified to emit uninitialized data segment
12242         according to udata_section_name
12243         * src/pic/main.c (_pic14_parseOptions): added command line
12244         options --udata-section-name=[name] to override default
12245         udata definition name
12246         * modified _linkCmd and _asmCmd to include compiler passed
12247         arguments via -W option
12248         * src/pic16/main.c: added $l in _asmCmd, changed extension for
12249         object file from '.rel' to '.o' in port->linker structure,
12250         changed size of fptr from 2 to 3 in port structure
12251
12252 2004-01-07  Borut Razem <borut.razem AT siol.net>
12253
12254         * support/scripts/sdcc.nsi: update PATH
12255         * support/scripts/sdcc.ico: craeted
12256
12257 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
12258
12259         * device/include/Makefile.in: fix install
12260         * doc/Makefile: fix install
12261
12262 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12263
12264         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
12265         in bug #860505
12266         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
12267         how the function variable allocation summary is displayed; also
12268         include information about variables allocated to the overlay
12269         segment
12270
12271 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12272
12273         * as/mcs51/lkmain.c: Help about -Y option
12274         * as/mcs51/lkarea.c: Fixed gcc warnings
12275
12276 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
12277
12278         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
12279         fixed warning
12280         * support/valdiag/tests/overflow.c: added
12281         * src/SDCCast.c (decorateType),
12282         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
12283         LEFT_OP (left shift)
12284
12285 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12286
12287         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
12288         (default behaviour).
12289
12290 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12291
12292         A python script to validate compiler diagnostic messages. It can be
12293         used to verify that sdcc complains about bad c source code and
12294         gives a good location of the error.
12295         * support/valdiag/Makefile,
12296         * support/valdiag/valdiag.py,
12297         * support/valdiag/tests/*
12298
12299 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12300
12301         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
12302         * src/SDCCsymt.c (newEnumType),
12303         * src/SDCCsymt.h
12304         * support/Util/SDCCerr.c,
12305         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
12306         enum related bugs.
12307         * support/regression/tests/enum.c: added test for enum values that
12308         require at least 2 bytes of storage.
12309
12310 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
12311
12312         * src/common.h: added ifndef/define/endif macros
12313         around the header file.
12314         Bug reported from Jesus Calvino-Fraga
12315
12316 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
12317
12318         * sdcc.spec: updated
12319         * device/include/Makefile.in: don't install CVS directories
12320         * device/lib/Makefile.in: added removal of CVS directories after install
12321         * doc/Makefile: fixed install, added local_icons
12322         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
12323         * src/mcs51/gen.c (genRightShift): fixed bug #870788
12324         * src/ds390/gen.c (genRightShift): fixed bug #870788
12325         * src/SDCCast.c (decorateType): fixed bug #870781
12326
12327 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
12328
12329         PIC16 port related changes:
12330         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
12331         added variable stackPos,
12332
12333         * gen.c: genCall, assignResultValue: added support for
12334         pushing/retrieving function parameters to/from stack,
12335         genFunction,genEndFunction: setup stack frame for the
12336         generated function,
12337         genAddrOf: will be changed according to bug 863624
12338
12339         * added files genutils.c and genutils.h which contain gen*
12340         debugged and optimised functions extracted from gen.c
12341
12342         * glue.c: added variable 'externs' which holds extern symbols,
12343         pic16emitRegularMap: is modified to properly handle relocatable
12344          symbols under the new scheme,
12345         pic16createInterruptVect: is modified
12346         pic16printPublics: is modified to emit 'global' assembler directives,
12347         added pic16_printExterns to print extern symbols,
12348         pic16glue: initializes stack/frame pointer in the beginning of
12349         the assembly output. Temporary hack, will be corrected later,
12350         because gplink yet does not support stack and SDCC does not
12351         yet support a type of crt0.o object to create the final binary.
12352
12353         * Removed many lines that contain 8051 legacy code.
12354         * The code is finally placed under a 'code' directive.
12355         * Added port specific options.
12356
12357         * _process_pragma: simplified since now we do not need *special*
12358         include file to define SFR registers. But a separate header
12359         will be needed. This will be developed later.
12360         * _pic16_parseOptions: added, parses port specific options:
12361         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
12362         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
12363         --preplace-udata-with=
12364
12365         * _pic16_setDefaultOptions: modified to initialize section names,
12366         but hack is temporarly out of order since it needs improvement.
12367         * _pic16_genAssemblerPreamble: configuration words are emitted by
12368         their address instead of their name. This part is incomplete and
12369         supports only the 18Fxx2 devices. Other devices will emit an error
12370         during assembly since they do not contain the same set of config
12371         registers
12372         * _pic16_genIVT: is modified,
12373
12374         * pcode.c: added definitions for some hardware registers that are needed
12375         for stack support
12376         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
12377         All PCI entries are updated. Now LFSR is supported.
12378         * Removed pic16_pciTRIS is mentioned by mdubuc in source
12379         * added pic16_newpCodeOpLit2 to support instructions with
12380         two literal arguments
12381         * pic16_pCode2str: corrected code that emits assembler instructions
12382         with two literal operands and those that have an access bit modifier
12383         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
12384         this fixes a bug which caused some labels to be lost, when an
12385         assembler directive was added, i.e. banksel,
12386         * pic16_FixRegisterBanking: improved logic that causes the insertion
12387         of bank switching,
12388         * InlineFunction: functions that are called once, are not any more
12389         inlined. This can be a port option in the future,
12390
12391         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
12392
12393         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
12394         hold the corresponding uninitialized symbols,
12395         * pic16_allocProcessorRegister: registers have explicit marked the
12396         accessBank field,
12397         * pic16_allocInternalRegister: registers are explicit marked as
12398         not used,
12399         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
12400         processing list, so bit registers were lost,
12401         *
12402
12403         * ralloc.h: added field 'accessBank' and original symbol operand
12404         in register definition,
12405         * removed the field isMapped from register definition,
12406
12407         ** Several functions have been removed from various sources:
12408         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
12409         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
12410         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
12411         pic16_assignRelocatableRegisters
12412
12413         ** others have been introduced:
12414         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
12415         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
12416
12417 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
12418
12419         * support/scripts/inc2h.pl: changed definition of BIT_AT
12420         to emit 'sbit at' instead of 'bit at'. This was a request.
12421
12422         PIC16 port related preliminary changes:
12423         * gen.c: prefixed function popRegFromString with
12424         pic16_ and all references to it corrected
12425         * pcode.c: all pic16_pc_* hardware registers prefixed
12426         with underscore (_),
12427         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
12428         * ralloc.c: newReg(): when register is REG_SFR then
12429         set address to rIdx,
12430         pic16_allocProcessorRegister(): marks register wasUsed=0
12431         pic16_writeUsedRegs(): added a call to assign processor
12432         registers via pic16_assignFixedRegisters
12433
12434 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12435
12436         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
12437         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
12438         variables in unused register banks.  Also the SSEG is placed
12439         wherever there is enough space for it, and IDATA can be anywhere
12440         in internal RAM.  For now compile using -Wl-Y[stack_size].
12441         The mem file is different for this option as well, since it
12442         makes no sense of talking about DSEG lenght.
12443
12444 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
12445
12446         * src/SDCClrange.c: fixed bug 869095 that caused segfault
12447         in certain cases, e.g. when ROM assignment, patch provided
12448         from Albert den Haan.
12449
12450 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
12451
12452         Many signedness and type propagation fixes:
12453         * src/SDCCicode.c: made geniCodeCast() static
12454         replaced SPEC_ by IS_ (cosmetic)
12455         (operandOperation): fixed div and mod operation
12456         (usualBinaryConversions): added support for promotion of char
12457         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
12458         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
12459         (geniCodeAdd): an array index will stay unsigned, even if promoted
12460         from char to int
12461         (geniCodeArray): ditto
12462         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
12463         * src/SDCCsymt.c (computeType): added more support for char;
12464         promotion of char is selectable by promoteCharToInt, fixed signedness
12465         for all cases
12466         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
12467         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
12468         * src/SDCCval (val*): replaced signedness calculation by
12469         computeType()
12470         rearranged if-branches (cosmetic)
12471         (valShift): added warning W_SHIFT_CHANGED
12472         (valCompare): fixed problem with different types
12473         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
12474         * support/regression/tests/literalop.c: added many cases
12475         * support/regression/tests/ast_constant_folding.c: changed finally to
12476         'unsigned int'
12477         * .version: new year, new version: 2.3.7
12478         * src/SDCCmain.c (main): applied patch #866468
12479         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
12480         provided by Scott Bronson
12481         * doc/sdccman.lyx: updated documentation for sdcdb
12482         updated and added chapter tips
12483
12484 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12485
12486         * src/SDCCsymt.h: missing from yesterday's commits
12487
12488 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12489
12490         * src/SDCC.y (struct_or_union_specifier),
12491         * support/Util/SDCCerr.c,
12492         * support/Util/SDCCerr.h: verify that struct & union tags are used
12493         as declared.
12494
12495 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12496
12497         * src/SDCCglobl.h: missing from yesterday's commits
12498
12499 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12500
12501         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
12502         sft_attributes, struct_declaration, parameter_declaration,
12503         type_name, start_block, declaration_list),
12504         * src/SDCC.lex (check_type): support redefinition of typedef names
12505
12506 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12507
12508         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
12509         aligned xdata arrays. Erik helped me with the if clause.
12510
12511 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12512
12513         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
12514         warning
12515
12516 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12517
12518         * src/SDCCast.h,
12519         * src/SDCCast.c (newAst_),
12520         * src/SDCCicode.h,
12521         * src/SDCCicode.c (ast2iCode, newiCode),
12522         * src/SDCCglobl.h,
12523         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
12524         expr, statement, expression_statement, selection_statement,
12525         iteration_statement, expr_opt, jump_statement): foundation for tracking
12526         sequence points
12527         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
12528         point code too)
12529
12530 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12531
12532         * support/Util/SDCCerr.c,
12533         * src/SDCCast.h,
12534         * src/SDCCast.c (createCase, createDefault, decorateType),
12535         * src/SDCClabel.c (labelUnreach),
12536         * src/SDCC.y (labeled_statement, jump_statement): More improvements
12537         to error messages.
12538         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
12539         (with thanks to Stas Sergeev)
12540         * device/include/time.h,
12541         * device/lib/time.c (CheckTime): suppress unreachable code warning
12542
12543 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12544
12545         * src/SDCCast.c (createIvalCharPtr),
12546         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
12547         bug #753752)
12548         * support/regression/tests/nullstring.c: tests for these two bugs
12549
12550 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12551
12552         * support/Util/SDCCerr.h,
12553         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
12554         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
12555         about storage class and 'at' used inside struct or union
12556         * src/SDCCBBlock.c (iCodeFromeBBlock),
12557         * src/SDCCcse.c (ifxOptimize),
12558         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
12559         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
12560         printIval, emitStaticSeg, emitOverlay),
12561         * src/SDCClabel.c (deleteIfx),
12562         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
12563         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
12564         gatherAutoInit, processParms),
12565         * support/Util/SDCCerr.h,
12566         * support/Util/SDCCerr.c (werrorfl): Support for better error location
12567         reporting for post-parse errors.
12568
12569 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12570
12571         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
12572         implicit casts via union; they don't work on big endian systems
12573         (possible fix for bug #861138)
12574
12575 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12576
12577         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
12578         * src/mcs51/main.c: fixed the fix for bug #737001
12579
12580 2003-12-15  Borut Razem <borut.razem AT siol.net>
12581
12582         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
12583
12584 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12585
12586         * support/makebin/makebin.c: put output in binary mode
12587
12588 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12589
12590         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
12591         xdata and data memory on startup. Set the environment variable
12592         SDCC_NOGENRAMCLEAR to disable this.
12593         * src/mcs51/peephole.def,
12594         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
12595         (allows non-interrupt and interrupt code to safely compete for a resource
12596         without the non-interrupt code having to disable interrupts)
12597
12598 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12599
12600         * src/SDCCicode.c (geniCodeAdd),
12601         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
12602         with valFromType if type might be a pointer and host is big endian).
12603         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
12604         types, not just integer types.
12605         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
12606         multiply defined with mismatching "at" address.
12607
12608 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12609
12610         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
12611         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
12612         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
12613         with embedded nulls (fixed bug #753752)
12614
12615 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12616
12617         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
12618         Apparently this did not see much testing (endless loop)
12619
12620 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12621
12622         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
12623
12624 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12625
12626         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
12627         gracefully handle NULL memmap pointers
12628
12629 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12630
12631         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
12632         instead of deleting the iCode when an operand is volatile
12633         * src/z80/gen.c (genDummyRead),
12634         * src/mcs51/gen.c (genDummyRead),
12635         * src/ds390/gen.c (genDummyRead),
12636         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
12637         not just IC_RIGHT
12638         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
12639         * src/SDCC.y: fixed bug #850420
12640
12641 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12642
12643         Applied z80 i/o port patch from Peter Townson and fixed some operators
12644         to better handle operands in A register.
12645         * device/include/z180.h
12646         * src/SDCC.y
12647         * src/SDCCglue.c
12648         * src/z80/gen.c
12649         * src/z80/gen.h
12650         * src/z80/main.c
12651         * src/z80/peeph-z80.def
12652         * src/z80/peeph.def
12653         * src/z80/z80.h
12654
12655 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12656
12657         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
12658
12659 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12660
12661         * device/lib/hc08/_mullong.c: Removed extra #endif
12662
12663 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12664
12665         * sim/ucsim/hc08.src/inst.cc,
12666         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
12667         carries from x to h
12668         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
12669         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
12670         * device/include/stdarg.h: fixed varargs for hc08
12671         * device/lib/Makefile.in,
12672         * device/lib/hc08/Makefile,
12673         * device/lib/hc08/_mulint.c,
12674         * device/lib/hc08/_mullong.c: fixed some endian problems
12675
12676 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12677
12678         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
12679         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
12680         * device/lib/_gptrget.c,
12681         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
12682
12683 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12684
12685         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
12686         * src/SDCCast.c (astErrors): fixed bug #846007
12687         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
12688
12689 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12690
12691         * src/SDCCast.c (decorateType): disabled a transformation I added in
12692         revision 1.188 (access to fields of a structure at an absolute address);
12693         it breaks with bitfields, extern declarations, and gcse analysis.
12694         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
12695         could be assigned through a pointer, so don't complain.
12696         * src/SDCCast.c (astErrors),
12697         * src/SDCCast.h,
12698         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
12699
12700 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
12701
12702         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
12703         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
12704         output of __config directives, since gpasm now supports them
12705         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
12706         pre-processor macro, i.e. -DMCU=p18f452
12707         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
12708         and modified to handle 'cast' icode similarly to '=' icode
12709         * src/pic16/device.h (typedef struct PIC_device): added field
12710         'extMIface' to indicate that chip has external memory interface
12711         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
12712         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
12713         18F8720
12714
12715 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12716
12717         * src/SDCC.y (pointer): fixed bug #846006
12718         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
12719         * src/SDCCast.c (decorateType): fixed bug #846009
12720         * src/ds390/peeph.def,
12721         * src/ds390/gen.c (genAnd, genOr),
12722         * src/mcs51/peeph.def,
12723         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
12724
12725 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12726
12727         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
12728         * src/SDCCdflow.c
12729         * src/SDCCcse.c
12730         * src/SDCCcse.h
12731         * src/SDCCBBlock.h
12732         * src/SDCCBBlock.c
12733
12734 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
12735
12736         fixed bug #845089
12737         * src/SDCCbitv.h,
12738         * src/SDCCbitv.c: added function to free a bitvector
12739         * src/SDCClrange.h,
12740         * src/SDCClrange.c: added function to recompute the liveranges
12741         * src/avr/ralloc.c,
12742         * src/ds390/ralloc.c,
12743         * src/hc08/ralloc.c,
12744         * src/mcs51/ralloc.c,
12745         * src/pic/ralloc.c,
12746         * src/pic16/ralloc.c,
12747         * src/xa51/ralloc.c,
12748         * src/z80/ralloc.c: recompute the liveranges after register packing
12749
12750 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
12751
12752         * src/SDCCloop.c (newInduction): fixed bug #845630
12753
12754 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12755
12756         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
12757         inadvertantly left behind from my 2003-11-12 change
12758
12759 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12760
12761         Updated headers I neglected to commit yesterday.
12762         * src/SDCClrange.h,
12763         * src/SDCCicode.h
12764
12765 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12766
12767         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
12768         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
12769         * src/SDCCopt.c (eBBlockFromiCode),
12770         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
12771         the creation of the key hash table from the sequencing so it can be used
12772         earlier (for some GCSE bug fixes still pending)
12773
12774 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12775
12776         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
12777         * support/regression/tests/addsub.c: testing genPlus shortcut
12778
12779 2003-11-15  Borut Razem <borut.razem AT siol.net>
12780
12781         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
12782
12783 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12784
12785         * src/SDCCcse.c (cseBBlock): fixed bug #527779
12786         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
12787         ordering is immaterial.
12788         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
12789
12790 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12791
12792         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
12793         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
12794         (SIGSEV) of bug #840381
12795         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
12796         unlink new file before rename if new and old filenames are the same)
12797
12798 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12799
12800         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
12801         uninitialized variables) for the mcs51. Set environment variable
12802         SDCC_GENRAMCLEAR to test.
12803         xdata initialization slightly shorter
12804
12805 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12806
12807         * src/SDCCsymt.h,
12808         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
12809         #838241 & 780691 (basicly the same bug)
12810         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
12811         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
12812
12813 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
12814
12815         * src/SDCCmain.c (linkEdit): "fix" #834252
12816
12817 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12818
12819         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
12820         * src/SDCCast.h,
12821         * src/SDCC.y: fixed bug #819403
12822
12823 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12824
12825         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
12826         the reentrant attribute.
12827         * src/hc08/gen.c (genPackBits): added missing stack readjustment
12828         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
12829         simulation
12830         * src/SDCCast.c (decorateType): fixed bug with storage class not being
12831         updated during pointer dereference; f.e. ~(((char *)1)*) was being
12832         erroneously reduced to a literal.
12833         * src/hc08/ralloc.c (packRegisters, rematStr),
12834         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
12835         some cases
12836
12837 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12838
12839         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
12840         * doc/sdccman.lyx: changed from 'article' to 'book'
12841         * doc/Makefile: readded test_suite_spec and cdbfileformat
12842
12843 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
12844
12845         * device/include/stdlib.h: include malloc.h to comply with ANSI
12846         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
12847
12848 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12849
12850         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
12851         * doc/clean.mk: also remove *.out files
12852         * doc/sdccman.lyx: some additions, larger top/bottom margins
12853
12854 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12855
12856         * src/SDCC.y: fixed bug #837365
12857         * support/regression/tests/bitopcse.c
12858         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
12859         a symbol (might be valop instead)
12860         * device/lib/Makefile.in: added errno.c to HC08SOURCES
12861         * device/lib/clean.mk: added hc08 to the cleaning list
12862
12863 2003-11-04  Borut Razem <borut.razem AT siol.net>
12864
12865         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
12866           made 2003-11-04
12867         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
12868           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
12869           malloc is declared in standard stdlib.h
12870
12871 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12872
12873         * device/lib/hc08/Makefile: need to clean .rel not .o files
12874         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
12875
12876 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12877
12878         * src/port.h,
12879         * src/hc08/main.c,
12880         * src/mcs51/main.c,
12881         * src/ds390/main.c,
12882         * src/z80/main.c,
12883         * src/avr/main.c,
12884         * src/pic/main.c,
12885         * src/pic16/main.c,
12886         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
12887         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
12888         tests (which uses the port's oclsExpense function)
12889         * src/SDCC.y,
12890         * src/SDCCast.c,
12891         * src/SDCCicode.c,
12892         * src/hc08/gen.c,
12893         * src/ds390/gen.c,
12894         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
12895
12896 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12897
12898         * src/SDCCcse.c (ifxOptimize),
12899         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
12900         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
12901         deleting the IFX iCode.
12902         * src/hc08/ralloc.c: reduced unneeded slocs
12903         * src/hc08/gen.c: fixed bug in asmopToBoolean
12904
12905 2003-11-04  Borut Razem <borut.razem AT siol.net>
12906
12907         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
12908           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
12909           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
12910           transferred to configure
12911
12912 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
12913
12914         Use headers defined in the C[++] standards:
12915         * sim/ucsim/gui.src/serio.src/fileio.cc
12916         * sim/ucsim/gui.src/serio.src/frontend.cc
12917         * sim/ucsim/gui.src/serio.src/main.cc
12918         * sim/ucsim/gui.src/serio.src/posix_signal.cc
12919         * support/Util/NewAlloc.c
12920         * as/hc08/lklibr.c
12921         * as/mcs51/lklibr.c
12922         * as/z80/aslist.c
12923         * as/z80/assym.c
12924
12925 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12926
12927         * Added MSVC projects for hc08 assembler and linker:
12928         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
12929         /as/hc08/link_hc08.dsp
12930
12931 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
12932
12933         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
12934
12935 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
12936
12937         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
12938
12939 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12940
12941         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
12942
12943 2003-10-31  Borut Razem <borut.razem AT siol.net>
12944
12945         * support/cpp2/cpplib.h,
12946           support/cpp2/cpplib.c,
12947           support/cpp2/cpplex.c,
12948           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
12949           to switch _asm block preprocessing on / off. Default is
12950           #pragma preproc_asm +
12951
12952 2003-10-31  Borut Razem <borut.razem AT siol.net>
12953
12954         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
12955           when outputting comment blocks (when executed with -C option) and
12956           _asm (SDCPP specific) blocks
12957
12958 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12959
12960         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
12961
12962 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
12963
12964         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
12965
12966 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
12967
12968         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
12969         * src/SDCCast.c (decorateType): fixed bug #832664
12970
12971 2003-10-31  Borut Razem <borut.razem AT siol.net>
12972
12973         * support/cpp2/cpplex.c: fixed for SDCPP:
12974           comments(when executed with -C option) and _asm blocks
12975           were included even if they where in skipped #if block.
12976           Applied solution from GCC cpp 3.3.2
12977
12978 2003-10-31  Borut Razem <borut.razem AT siol.net>
12979
12980         * src/SDCC.lex: sdcc now understands both formats:
12981           '# <line_number> <file_name>' and
12982           '#line <line_number> <file_name>'
12983         * support/cpp2/cppmain.c: sdcpp now generates the standard
12984           '# <line_number> <file_name>' instead of former
12985           '#line <line_number> <file_name>'
12986
12987 2003-10-30  Borut Razem <borut.razem AT siol.net>
12988
12989         * support/cpp2/cpphash.h,
12990         * support/cpp2/cpplib.h
12991         * support/cpp2/cpplex.c,
12992         * support/cpp2/cppmain.c,
12993         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
12994
12995 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12996
12997         Fixed a number of problems revealed by bug #827883.
12998         * src/SDCCloop.c (loopInvariants): Spill location of the
12999         result operand should be recomputed if extracted from
13000         a loop. Also, don't extract assignments of an iTemp
13001         from a literal.
13002         * src/SDCCast.c (isConformingBody): loop reversal should
13003         not occur if the control variable is involved with a
13004         relational operator.
13005
13006 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
13007
13008         * .version: bumped to 2.3.6 to reflect the big improvements
13009         made by Erik and Klaus. Thanks!
13010
13011 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
13012
13013         Replaced the livrange code.
13014         * src/SDCClrange.c: added new LR code
13015         * src/SDCCloop.c,
13016         * src/SDCCBBlock.h: removed remainig parts from old LR code
13017         * src/ds390/ralloc.c,
13018         * src/ds390/gen.c: minor fixes to make it work with new code
13019
13020 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13021
13022         * as/hc08/asm.h,
13023         * as/hc08/lkrloc.c,
13024         * src/hc08/gen.c,
13025         * src/hc08/ralloc.c: Fix various warnings related to the hc08
13026         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
13027         (tweaked fix for bug #818696)
13028
13029 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13030
13031         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
13032
13033 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13034
13035         * src/SDCCmain.c,
13036         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
13037         * src/mcs51/gen.c (gencjneshort),
13038         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
13039         more efficient (per Scott Bronson's suggestion)
13040
13041 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13042
13043         Extended the semantics of the critical keyword to include
13044         individual statements. See RFE #827755 and #799831
13045         * src/SDCC.y
13046         * src/SDCCicode.c
13047         * src/SDCCopt.c
13048         * src/SDCCast.c
13049         * support/Util/SDCCerr.c
13050         * support/Util/SDCCerr.h
13051         * src/mcs51/gen.c
13052         * src/ds390/gen.c
13053         * src/hc08/gen.c
13054
13055 2003-10-19  Borut Razem <borut.razem AT siol.net>
13056
13057         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
13058
13059 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13060
13061         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
13062         Fixed bug #818696
13063         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
13064         and predecrement operand is displayed
13065
13066 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
13067
13068         * src/SDCCval.c (valMinus): fixed bug #826041
13069
13070 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13071
13072         Some hc08 related updates that I missed earlier
13073         * sim/ucsim/stypes.h
13074         * support/regression/ports/hc08/spec.mk
13075
13076 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13077
13078         New target "hc08" for the Motorola 68hc08 family of micros
13079
13080         * configure
13081         * configure.in
13082         * Makefile
13083         * src/hc08/*
13084         * src/SDCCmain.c
13085         * src/port.h
13086         * sim/ucsim/hc08.src/*
13087         * sim/ucsim/configure.in
13088         * src/ucsim/configure
13089         * sim/ucsim/packages_in.mk
13090         * as/hc08/*
13091         * as/Makefile
13092         * device/include/mc68hc908qy.h
13093         * device/lib/hc08/*
13094         * device/lib/Makefile.in
13095         * support/regression/ports/hc08/*
13096         * support/regression/Makefile
13097
13098 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13099
13100         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
13101         regression test
13102         * src/ds390/gen.c (genCast): fixed bug #821957
13103
13104 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
13105
13106         * device/lib/logf.c: "fixed" overlay bug
13107         * support/regression/ports/host/spec.mk: added m library
13108         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
13109         * support/regression/tests/float_trans: added (for Eric)
13110
13111 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
13112
13113         * src/mcs51/gen.c (genCpl): fixed bug
13114         http://sf.net/mailarchive/message.php?msg_id=6263915
13115
13116 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
13117
13118         * src/SDCCast.c (decorateType): added extended constant folding
13119         * src/SDCCsymt.c (computeType): cleanup
13120         * src/SDCCval.c (valShift): minor optimization
13121         * support/regression/tests/ast_constant_folding.c: added
13122
13123 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13124
13125         * src/SDCCmain.c: removed some unintended changes
13126
13127 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13128
13129         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
13130         * src/z80/gen.c: fixed part of bug #817589
13131         * src/SDCCsymt.c (checkFunction): fixed bug #817895
13132
13133 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
13134
13135         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
13136         * src/SDCCcflow.c
13137         * src/SDCCcse.c
13138         * src/SDCCdflow.c
13139         * src/SDCClabel.c
13140         * src/SDCClrange.c
13141         * src/SDCCmem.c
13142         * src/SDCCopt.c
13143         * src/SDCCpeeph.c
13144         * src/SDCCset.c
13145         * src/avr/ralloc.c
13146         * src/ds390/ralloc.c
13147         * src/izt/ralloc.c
13148         * src/mcs51/ralloc.c
13149         * src/pic/ralloc.c
13150         * src/pic16/ralloc.c
13151         * src/xa51/ralloc.c
13152         * src/z80/ralloc.c
13153         * src/z80/gen.c: removed unused label "release:"
13154
13155 2003-10-06  Borut Razem <borut.razem AT siol.net>
13156
13157         * src/SDCC.lex: removed definition of unused variables
13158           save_optimize and save_options
13159
13160 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
13161
13162         * clean.mk: removed '=' in "-maxdepth=1"
13163         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
13164         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
13165
13166 2003-10-06  Borut Razem <borut.razem AT siol.net>
13167
13168         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
13169           my_unput() replaced by unput()
13170
13171 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
13172
13173         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
13174         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
13175         type-punned pointer will break strict-aliasing rules"
13176         Old LR behaviour is again default; Klaus' LR can be choosen by
13177         defining the environment variable LRKLAUS
13178         * src/SDCCBBlock.h
13179         * src/SDCCloop.c
13180         * src/SDCClrange.c
13181         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
13182         * clean.mk: fixed removal of files in bin/CVS/
13183         * device/lib/clean.mk: fixed removal of directories small and large
13184         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
13185         * src/SDCCicode.c,
13186         * src/SDCCval.c: removed superflous test for pedantic
13187
13188 2003-10-05  Borut Razem <borut.razem AT siol.net>
13189
13190         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
13191           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
13192           message "unmatched #pragma SAVE and #pragma RESTORE"
13193
13194 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13195
13196         * doc/sdccman.lyx: various additions and updates (interrupts, inline
13197           assembly, critical functions, atomic, nojtbound)
13198
13199 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
13200
13201         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
13202         * src/SDCCBBlock.h
13203         * src/SDCCloop.c
13204         * src/SDCCloop.h
13205         * src/SDCClrange.c
13206
13207 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13208
13209         * src/z80/gen.h,
13210         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13211         * src/mcs51/gen.h
13212         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13213         * src/ds390/gen.h
13214         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13215         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
13216         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
13217
13218 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13219
13220         * src/z80/gen.c (genRet): fixed bug #524753
13221         * src/z80/gen.c (genCast): fixed internal error on cast from
13222         pointer to long
13223         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
13224         fix for bug #477835 to the z80
13225         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
13226         for tracking iCodes in the peephole optimizer for z80
13227
13228 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13229
13230         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
13231         the other part of bug #814548
13232         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
13233
13234 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
13235
13236         * src/SDCCcse.c: fixed part of bug #814548
13237
13238 2003-09-28  Borut Razem <borut.razem AT siol.net>
13239
13240         * src/asm.c: rewrite of printILine() to use temporary file instead
13241           a pipe
13242         * src/xa51/main.c: commented out declaration of int rewinds
13243
13244 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13245
13246         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
13247
13248 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13249
13250         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
13251         * src/asm.c (printILine): Fixed bug #811015
13252
13253 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13254
13255         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
13256         freeing.
13257
13258 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13259
13260         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
13261         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
13262         to correctly handle general case of AOP_PAIRPTR
13263         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
13264
13265 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13266
13267         * src/mcs51/ralloc.c (fillGaps),
13268         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
13269         register positioning bug)
13270
13271 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
13272
13273         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
13274
13275 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13276
13277         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
13278         genCodePointerGet, genGenPointerGet, genFarPointerSet,
13279         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
13280         (ralloc doesn't intentionally do this now, but perhaps later)
13281         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
13282         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
13283         register positioning bugs (Fixed bug #762602 and #795325)
13284         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
13285         (Fixed bug #808779)
13286         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
13287         lines that --i-code-in-asm generates
13288
13289 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13290
13291         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
13292         trying to fclose a FILE* that was already closed.
13293
13294 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13295
13296         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
13297         of const struct should be treated as if const themselves)
13298
13299 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
13300
13301         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
13302
13303 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13304
13305         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
13306         Unix (/n) and DOS (/r/n) line terminations.
13307
13308 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13309
13310         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
13311         bug #613775
13312
13313 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13314
13315         * src/mcs51/gen.c (genFunction, genEndFunction),
13316         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
13317         and restore of EA so that stack offsets to parameters are
13318         correct when using both critical and reentrant/stack-auto.
13319         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
13320         size (can be triggered in error if sloc is shared between
13321         different sized objects)
13322         * device/include/float.h: fixed macros to explicitly use
13323         unsigned long where needed
13324
13325 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
13326
13327         Feature req. 799831: added code to allow nesting of critical functions
13328         * src/mcs51/gen.c (genFunction, genEndFunction)
13329         * src/ds390/gen.c (genFunction, genEndFunction)
13330
13331 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13332
13333         * src/SDCCsymt.c (sclsFromPtr),
13334         * src/SDCCsymt.h,
13335         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
13336         support for standard C idiom of memory mapped variables; for
13337         example, *((xdata int*)0x1234) = 1 is now internally equivalent
13338         to xdata int at 0x1234 tempvar = 1.
13339         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
13340         provided by Akiya ISHIDA
13341
13342 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
13343
13344         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
13345         * src/SDCCval.c (constVal): added reduction from int to char
13346         * src/SDCCval.c (valMult, valDiv): fixed sign handling
13347         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
13348         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
13349         to ignore the sign
13350         * support/regression/tests/shifts.c: fixed
13351
13352 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13353
13354         * src/z80/gen.c (genXor): Fixed bug #805445
13355
13356 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13357
13358         Fixed bug #621531 (const & volatile confusion in the type chain).
13359         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
13360         refer to the const or volatile state of the pointer itself.
13361
13362         * src/SDCCast.c
13363         * src/SDCCglue.c
13364         * src/SDCCicode.c
13365         * src/SDCCsymt.c
13366         * src/SDCCval.c
13367         * src/SDCC.y
13368         * src/SDCCsymt.h
13369         * src/pic/gen.c
13370         * src/pic/ralloc.c
13371         * src/pic16/gen.c
13372         * src/pic16/ralloc.c
13373         * support/regression/tests/const.c
13374
13375 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13376
13377         When checking for duplicated modules, use absolute paths
13378         instead of relative paths.  Files changed:
13379
13380         * as/mcs51/lklib.c
13381         * link/z80/lklib.c
13382
13383 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13384
13385         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
13386
13387 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13388
13389         * device/include/string.h: added size_t typedef, changed
13390         prototypes to use size_t, eliminated separate reentrant and
13391         non-reentrant declarations, added _memmove declaration
13392         * device/lib/_memcpy.c: changed to use size_t instead of int,
13393         changed /4 to >>2 to avoid division library call
13394         * device/lib/_memcmp.c,
13395         * device/lib/_memset.c,
13396         * device/lib/_strncat.c,
13397         * device/lib/_strncpy.c,
13398         * device/lib/_strncmp.c: changed to use size_t instead of int
13399         * device/lib/_memmove.c: new file (fixed bug #772294)
13400         * device/lib/Makefile.in: added _memmove.c
13401         * device/lib/z80/asm_strings.s: fixed bug #772290
13402         * support/regression/tests/bitfields.c: attempt to fix host assertion
13403         failure on amd64-unknown-linux2.2
13404
13405 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13406
13407         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
13408         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
13409         * as/z80/asmain.c (main): fixed bug #801766
13410
13411 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
13412
13413         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
13414         compilers
13415
13416 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13417
13418         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
13419         reported in bug #800609
13420
13421 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
13422
13423         * Top header beautifications in src/pic16 directory:
13424           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
13425           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
13426           pcoderegs.h, ralloc.c, ralloc.h
13427         * main.c: added top header and GPL license notice
13428         * pcode.c: fixed the if-conditional warning
13429
13430 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
13431
13432         * device/lib/_mullong.c: replaced int by short for gcc
13433
13434 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13435
13436         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
13437         and JUMPTABLE iCodes properly now (worked by accident before)
13438         * src/mcs51/gen.c (leftRightUseAcc),
13439         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
13440         iCode properly now. Use getSize instead of nRegs since a & b
13441         aren't part of the nRegs tally.
13442
13443 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
13444
13445         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
13446         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
13447           before instructions that use the _STATUS register
13448
13449 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
13450
13451         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
13452         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
13453         fetching of the pointer
13454         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
13455         copied from genNearPointerSet()
13456         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
13457         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
13458         If they pop r0/r1 they must be called in the opposite order than aopOp().
13459         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
13460         (resp. --stack-auto), prepared for --xstack
13461
13462 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13463
13464         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
13465
13466 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
13467
13468         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
13469         these ports have their own __sdcc_external_start()
13470
13471 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
13472
13473         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
13474         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
13475         type for bits was changed. It resulted in bit variables becoming
13476         global, which is not permitted in PIC 14 assembly output.
13477
13478 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13479
13480         * doc/sdccman.lyx: various additions and updates. Rearranged sections
13481
13482 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13483
13484         Z80 and MCS51 linkers complaint if a public symbol is defined
13485         in more than one library module:
13486
13487         * as/mcs51/lklib.c
13488         * link/z80/lklib.c
13489         * as/mcs51/Makefile.in
13490
13491 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13492
13493         A few small changes that speed up the peephole optimizer.
13494
13495         * src/SDCCpeeph.c
13496
13497 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13498
13499         Try to make the peephole optimizer smarter by maintaining
13500         an association between the assembly source code and the
13501         iCodes that originated them. Put this information to use
13502         with a new peephole rule condition "notVolatile" so that
13503         the rules can be aggressive yet still safe.
13504
13505         * src/SDCCpeeph.c
13506         * src/SDCCpeeph.h
13507         * src/mcs51/gen.c
13508         * src/mcs51/peeph.def
13509
13510 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13511
13512         Fixed bug #741761
13513
13514         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
13515         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
13516         if the left or right operand symbols have the accuse flag set.
13517
13518 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13519
13520         Changed the type of the result of the ! (NOT) operator to char;
13521         previously it returned the same type as the source. This allows
13522         us to eliminate all the genFloatNot functions (all of its target
13523         implementations were very buggy) since !float can use the same
13524         code as !long now.
13525
13526         * src/SDCCicode.c (ast2iCode): ! returns char
13527         * src/mcs51/gen.c (genNot, genNotFloat),
13528         * src/ds390/gen.c (genNot, genNotFloat),
13529         * src/z80/gen.c (genNot, genNotFloat),
13530         * src/pic/gen.c (genNot, genNotFloat),
13531         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
13532
13533 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
13534
13535         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
13536         1. Interrupt would not compile properly. Ensure PCLATH register is saved
13537            during interrupts. Ensure WSAVE is located at a shared bank address.
13538         2. Fixed page selection in some places
13539         3. Fixed BTFSS/C to where necessary use registers directly and not simply
13540            the registers name strings.
13541         4. Fixed "signed / unsigned compare" compiler warnings.
13542         5. The PIC port manages its own allocation of the general purpose
13543            registers, but makes no attempt to reuse them. As a result when
13544            compiling it soon runs out of general purpose registers. Some
13545            additional code was added to the files pcode.c and device.c to walk
13546            through the function call tree and rename the registers so that they
13547            get reused.
13548
13549         * src/pic/device.c
13550         * src/pic/gen.c
13551         * src/pic/glue.c
13552         * src/pic/pcode.c
13553         * src/pic/pcode.h
13554         * src/pic/ralloc.c
13555         * src/pic/ralloc.h
13556         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
13557         genPlus() & genMinus() when the result is the same as left or right
13558
13559 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13560
13561         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
13562
13563 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13564
13565         Made bitfield a distinct type from bit so that bitfields
13566         convert as per ANSI C and bits retain their traditional
13567         boolean style behaviour. Implemented bitfield support in
13568         the z80 port.
13569
13570         * src/SDCCsymt.h,
13571         * src/SDCCsymt.c,
13572         * src/SDCCast.c,
13573         * src/cdbFile.c,
13574         * src/mcs51/gen.c,
13575         * src/ds390/gen.c: bit v bitfield split
13576         * src/z80/gen.c: New support for bitfields
13577         * support/regression/tests/bitfields.c: reenabled z80,
13578         added more tests
13579
13580 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13581
13582         Rules 246.x, 247.x relate to bitfields, the others speed up
13583         access to xdata mapped I/O devices.
13584
13585         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
13586
13587 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13588
13589         Cleaned up genPackBits and genUnpackBits and added two helper
13590         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
13591         for literal assignments in genPackBits (thanks to Frieder for
13592         reminding me).
13593
13594         * src/mcs51/gen.c
13595         * src/ds390/gen.c
13596
13597 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13598
13599         Fixed bug #748310 (pointer to function type mishandled when the
13600         function name is omitted). Also fixed a SIGSEGV when a function
13601         attribute (reentrant, etc) is used on a non-function or on a
13602         function but misplaced before the parameter list.
13603
13604         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
13605         bug #748310
13606         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
13607         * support/Util/SDCCerr.h,
13608         * support/Util/SDCCerr.c: Added func attr misuse error msg
13609
13610 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
13611
13612         Fixed bug #787649 by anonymous
13613         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
13614         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
13615
13616 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13617
13618         Fixed numerous bitfield problems.
13619
13620         * src/SDCC.y: More bitfield related error checking
13621         * src/SDCCsymt.h,
13622         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
13623         * support/Util/SDCCerr.h,
13624         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
13625         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
13626         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
13627         * support/regression/tests/bitfields.c: tests added
13628
13629 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13630
13631         Made the constant following the "interrupt" keyword optional. If
13632         omitted, the function will not automatically be given an entry
13633         in the interrupt vector table (similar to #pragma NOIV, but
13634         less syntacticly kludgy). The interrupt number is also now
13635         range checked. Also fixed a bug in the high order bit example
13636         in the manual.
13637
13638         * src/SDCC.y
13639         * src/SDCCmem.c
13640         * src/SDCCglue.c
13641         * src/SDCCsymt.h
13642         * support/Util/SDCCerr.c
13643         * support/Util/SDCCerr.h
13644         * doc/sdccman.lyx
13645
13646 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
13647
13648         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
13649         * src/SDCCicode.c (operandOperation): rewritten some ops
13650         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
13651         * src/SDCCsymt.c (computeType): literals are handled the same way as any
13652         other type
13653         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
13654         be re-activated by defining REDUCE_LITERALS)
13655         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
13656         unsigned, but are signed by default
13657         * src/SDCCval.c (constVal): rearranged
13658         * src/SDCCval.c (valMod): preliminary fix
13659         * src/SDCCval.c (valCastLiteral): use TYPE_* types
13660         * support/regression/literalop.c: added, work in progress
13661
13662 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13663
13664         Generate warnings for useless declarations like "char data;"
13665         that don't do what new users expect.
13666
13667         * src/SDCC.y
13668         * support/Util/SDCCerr.h
13669         * support/Util/SDCCerr.c
13670
13671 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
13672
13673         * src/SDCCval.c (valMult): fix overflow detection of negative int
13674
13675 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13676
13677         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
13678
13679         Changes to support big endian targets:
13680
13681         * src/ports.h
13682         * src/SDCCglue.c
13683         * src/avr/main.c
13684         * src/ds390/main.c
13685         * src/izt/i186.c
13686         * src/mcs51/main.c
13687         * src/pic/main.c
13688         * src/pic16/main.c
13689         * src/xa51/main.c
13690         * src/z80/main.c
13691
13692 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
13693
13694         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
13695         * device/lib/time.c: fixed warning "integer overflow in expression"
13696
13697 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
13698
13699         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
13700         * src/SDCCval.c (constVal): changed default to signed; hex and octal
13701         constants are unsigned; added recognition of "u" flag for unsigned
13702         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
13703         * src/SDCCval.c (valDiv, valMod): fixed signdness
13704         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
13705         signedness of modulo, left and right shift
13706         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
13707         * support/Util/SDCCerr.h: added warning W_INT_OVL
13708         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
13709         * src/SDCCast.c (ast_print): improved output of constants
13710
13711 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13712
13713         Fixed some warnings when building with MSVC:
13714
13715         * as/mcs51/asdata.c
13716         * as/z80/asdata.c
13717         * as/mcs51/asm.h
13718         * as/z80/asm.h
13719         * link/z80/aslink.h
13720         * link/z80/lkdata.c
13721         * link/z80/lkeval.c
13722         * link/z80/lkgb.c
13723         * link/z80/lkihx.c
13724         * link/z80/lks19.c
13725         * link/z80/lksym.c
13726         * support/cpp2/cpplib.c
13727         * src/ds390/gen.c
13728         * src/mcs51/gen.c
13729
13730 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
13731
13732         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
13733
13734 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13735
13736         * support/librarian/clean.mk: Do not remove Makefile.
13737         * support/librarian/Makefile: added.
13738
13739 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13740
13741         Added librarian to MSVC build:
13742         * all.dsp
13743         * sdcc.dsw
13744         * support/librarian/librarian.dsp
13745
13746         'configure' not needed for librarian, removed:
13747         * support/librarian/configure
13748         * support/librarian/configure.in
13749         * support/librarian/config_in.h
13750         * support/librarian/Makefile.in
13751
13752         Hopefully these ones built the librarian and the rest of sdcc properly:
13753         * Makefile
13754         * Makefile.common.in
13755
13756         Messed up 'configure', so revert to previous version:
13757         * configure
13758         * configure.in
13759
13760 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
13761
13762         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
13763         there, while the mantissa of a double is "only" 53 bits wide.
13764
13765 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13766
13767         Adding sdcclib to the build.  MSVC project coming soon.
13768         Files added/changed:
13769
13770         * support/librarian/clean.mk
13771         * support/librarian/configure
13772         * support/librarian/configure.in
13773         * support/librarian/config_in.h
13774         * support/librarian/Makefile.bcc
13775         * support/librarian/Makefile.in
13776         * support/librarian/sdcclib.c
13777         * Makefile.bcc
13778         * Makefile
13779         * Makefile.common.in
13780         * configure
13781         * configure.in
13782
13783 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13784
13785         Linker now complaints if linked modules have conflicting options, for
13786         example, one compiled using --model-large and another one compiled with
13787         --model-small.  The following files were modified:
13788
13789         * as/mcs51/asdata.c
13790         * as/mcs51/aslink.h
13791         * as/mcs51/asm.h
13792         * as/mcs51/asmain.c
13793         * as/mcs51/asout.c
13794         * as/mcs51/i51pst.c
13795         * as/mcs51/lkdata.c
13796         * as/mcs51/lklibr.c
13797         * as/mcs51/lkmain.c
13798         * as/z80/asdata.c
13799         * as/z80/asm.h
13800         * as/z80/asmain.c
13801         * as/z80/asout.c
13802         * as/z80/z80pst.c
13803         * link/z80/aslink.h
13804         * link/z80/lkdata.c
13805         * link/z80/lklibr.c
13806         * link/z80/lkmain.c
13807         * src/SDCCglue.c
13808
13809 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13810
13811         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
13812         as/mcs51/lklibr.c: Generate a warning when a library is not found.
13813
13814 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
13815
13816         * src/z80/mappings.i: fix _mul[us][int,long] entries
13817
13818 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13819
13820         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
13821
13822 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
13823
13824         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
13825         * support/regression/tests/bitopcse.c: added
13826         fixed warning:
13827         * src/avr/gen.c:
13828         * src/pic/gen.c:
13829         * src/pic16/gen.c:
13830         * src/z80/gen.c:
13831         * src/xa51/gen.c:
13832
13833 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13834
13835         added support for new library format to z80, gbz80 linkers:
13836         *link/z80/aslink.h
13837         *link/z80/lklex.c
13838         *link/z80/lklib.c
13839         *link/z80/lklist.c
13840
13841 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
13842
13843         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
13844         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
13845
13846 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
13847
13848         added DUMMY_READ_VOLATILE:
13849         * src/SDCC.y:
13850         * src/avr/gen.c:
13851         * src/xa51/gen.c:
13852         * src/z80/gen.c:
13853         * src/pic/gen.c:
13854         * src/pic16/gen.c:
13855         * src/mcs51/gen.c:
13856         * src/ds390/gen.c:
13857         * src/SDCCcse.c (algebraicOpts): many improvements
13858         * src/SDCCcse.h: removed algebraicOpts()
13859         * src/SDCCicode.c (picDummyRead): added
13860
13861 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13862
13863         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
13864         "Insufficient space in data memory".
13865
13866 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13867
13868         * src/mcs51/gen.c: fixed bug #771358
13869         * src/z80/gen.c: fixed bug #759087
13870
13871 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
13872
13873         * src/pic16/glue.c: minor cleanup by Vangelis
13874
13875 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13876
13877         * device/include/regc515c.h: fixed #758477
13878         * device/lib/_gptrget.c: saving some cycles in generic pointer get
13879         * device/lib/_gptrput.c: saved a few bytes
13880         * my tab spacing is 8, yours too?)
13881         * device/lib/_ser.c: process RX bytes earlier than TX bytes
13882         * device/lib/serial.c: process RX bytes earlier than TX bytes
13883         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
13884
13885 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13886
13887         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
13888
13889 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13890
13891     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
13892
13893 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
13894
13895         * device/lib/Makefile.in: bad fix, reverted to 1.43
13896
13897 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
13898
13899         * device/lib/Makefile.in: added missing z80 object files
13900
13901 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
13902
13903         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
13904         pic16 progress by Vangelis:
13905         * src/SDCCglobl.h:
13906         * src/SDCCmain.c:
13907         * src/pic/Makefile:
13908         * src/pic:
13909         * pic/Makefile:
13910         * pic16/device.c:
13911         * pic16/device.h:
13912         * pic16/gen.c:
13913         * pic16/gen.h:
13914         * pic16/genarith.c:
13915         * pic16/glue.c:
13916         * pic16/main.c:
13917         * pic16/pcode.c:
13918         * pic16/pcode.h:
13919         * pic16/pcodepeep.c:
13920         * pic16/peeph.def:
13921
13922 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13923
13924     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
13925
13926 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13927
13928     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
13929     added gbz80 build to MSVC project.
13930     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
13931     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
13932     from 8051 stuff and setup so it links using a .lnk file.
13933
13934 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13935
13936     * support/librarian/sdcclib.c: sdcc librarian.
13937     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
13938     with sdcclib.
13939
13940 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13941
13942     * as/mcs51/lkmain.c: properly handle extensions in function afile.
13943
13944 2003-07-02  Borut Razem <borut.razem AT siol.net>
13945
13946         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
13947         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
13948         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
13949         src/xa51/main.c, src/z80/main.c:
13950         virtualization of glue() function: each port has it's own glue function,
13951         which is accessed by do_glue function pointer in PORT.general structure
13952
13953 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
13954
13955         * DS800C400 fun, improved ROM interface and tinibios.
13956
13957 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
13958
13959         * More support for DS80C400. Now includes beginning of interface to ROM.
13960
13961 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
13962
13963         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
13964
13965 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13966
13967         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
13968
13969 2003-06-19  Borut Razem <borut.razem AT siol.net>
13970
13971         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
13972
13973 2003-06-19  Borut Razem <borut.razem AT siol.net>
13974
13975         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
13976         fixed Z80 port - crt0.o: cannot open.
13977
13978 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
13979
13980         * support/Util/MySystem.c (merge_command): revert bad fix
13981
13982 2003-06-18  Borut Razem <borut.razem AT siol.net>
13983
13984         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
13985
13986 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13987
13988         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
13989         option --use-stdout sends errors to stdout instead of stderr.
13990
13991 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
13992
13993         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
13994
13995 2003-06-15  Borut Razem <borut.razem AT siol.net>
13996
13997         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
13998         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
13999         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
14000         fixed width array of pointers replaced with sets;
14001         multiple include and lib paths ared transferred to preprocessor and linker
14002         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
14003         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
14004         fixed width array of pointers
14005         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
14006         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
14007         fixupPath(), getPathDifference()
14008         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
14009         fixed width array of pointers
14010
14011 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
14012
14013         * src/pic16/ralloc.c: fix warnings
14014         * src/pic16/pcode.c: fix warning
14015
14016 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
14017
14018          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
14019         know all the details, but essentially this set of changes enable
14020         the pic16 port to generate movff instructions and generate assembler
14021         directives,
14022         * src/SDCCmain.c:
14023         * src/pic16/gen.c:
14024         * src/pic16/glue.c:
14025         * src/pic16/pcode.c:
14026         * src/pic16/device.c:
14027         * src/pic16/main.c:
14028         * src/pic16/pcode.h:
14029         * src/pic16/pcoderegs.c:
14030         * src/pic16/ralloc.c:
14031         * src/pic16/ralloc.h:
14032
14033 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14034
14035         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
14036         added option --vc, so sdcc errors and warnings are compatible with
14037         Microsoft Visual Studio.
14038
14039 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14040
14041         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
14042           device/lib/libfloat.lib: added atof function.
14043
14044 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
14045
14046         * doc/sdccman.lyx: updated to Lyx 1.3
14047         * doc/cdbfileformat.lyx: updated to Lyx 1.3
14048         * doc/test_suite_spec.lyx: updated to Lyx 1.3
14049         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
14050
14051 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
14052
14053         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
14054
14055 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14056
14057         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
14058           additions to the "related tools/documentation" section
14059
14060 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
14061
14062         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
14063
14064 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
14065
14066         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
14067         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
14068
14069 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
14070
14071         * doc/sdccman.lyx: fix double dash and other minor things
14072         * doc/Makefile: fix double dash
14073
14074 2003-05-28  Karl Bongers(patches from Martin Helmling)
14075         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
14076           condition and ignore commands.
14077
14078 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14079
14080         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
14081           is in parts still quite out of date, I did changes as far as I felt makes sense
14082           for a non-native english speaker.
14083           Please feel free to add to the manual or to correct my changes.
14084         * doc/Makefile: undid touching the date of intermediate tex files.
14085
14086 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14087
14088         * doc/sdccman.lyx: Manual has an index now
14089
14090 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
14091
14092         Finalize muluint/mulsint and mululong/mulslong merging:
14093         * device/lib/_mulint.c
14094         * device/lib/_mullong.c
14095         * device/lib/gbz80/mul.s
14096         * device/lib/gbz80/stubs.s
14097         * device/lib/z80/mul.s
14098         * device/lib/z80/stubs.s
14099         * src/SDCCsymt.c (initCSupport)
14100
14101 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14102
14103         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
14104         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
14105           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
14106           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
14107           instead of /Zm500.
14108
14109 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14110
14111         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
14112           the regression tests I'm not brave enough to enable 245.b, 245.c
14113         * doc/sdccman.lyx: added latex preamble for hyperref package.
14114           Using pdflatex this will give you a hyperlinked pdf file with
14115           bookmarks. (prepend '%' before /usepackage if this breaks something)
14116
14117 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14118
14119          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
14120
14121 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
14122
14123         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
14124
14125 2003-05-21    <johan AT balder>
14126
14127         * src/SDCCglue.c (printIval): fixed bug #739934
14128
14129 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
14130
14131         Applied patch from bug 737905 (renamed yylineo to mylineno):
14132         * src/altlex.c
14133         * src/SDCCast.c
14134         * src/SDCglobl.h
14135         * src/SDCC.lex
14136         * src/SDCCsymt.c
14137         * src/SDCCval.c
14138         * src/pic16/pcode.c: Cleaned warnings
14139         * src/pic16/pcodeflow.c: Cleaned warnings
14140         * src/pic16/pcoderegs.c: Cleaned warnings
14141
14142 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
14143
14144         * src/pic16/pcode.c: Cleaned warnings
14145         * src/pic16/pcodepeep.c: Cleaned warnings
14146         * src/pic16/ralloc.c: Cleaned warnings
14147
14148 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
14149
14150         * doc/sdccman.lyx: fixed bug 739745
14151         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
14152
14153 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
14154
14155         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
14156         it can be defined with CFLAGS when running configure
14157         * src/SDCCmain.c: fixed compiling + linking with object files
14158
14159 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
14160
14161         * configure.in: configure for pic16 port,
14162             added --disable-pic16-port
14163         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
14164         * src/SDCCmain.c: linkOptions is changed to set *,
14165             added if/endif conditional macros to remove options help
14166             messages from optionsTable when a port is not configured, added
14167             support for the PIc16 port in the ports table, when executing
14168             the compiler with no port specified on command line, a default
14169             port is selected with the new macro DEFAULT_PORT which is
14170             defined in port.h, in setDefaultOptions() linkOptions is removed
14171             from initialization assignment, since now it is a set,
14172             parseCmdLine uses setParseWithComma for linkOptions, in
14173             linkEdit() linkOptions are accessed with new function indexSet()
14174             which returns the i'th item of a set variable. See SDCCset.c, in
14175             linkEdit() when calling buildCmdLine(), added linkOptions as
14176             last argument. Now users can pass arguments to gplink via the
14177             -Wl option, main() uses pic16glue() to glue up pic16 programs
14178         * src/SDCCpeeph.c: various changes to support pic16
14179         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
14180             return the i'th item of the set
14181         * src/SDCCset.h: added function prototype for indexSet()
14182         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
14183         * src/clean.mk: added pic16 in CLEANALLPORTS variable
14184         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
14185             added macro DEFAULT_PORT
14186         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
14187         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
14188             generated
14189         * src/pic16/glue.c: commented out some error producing lines
14190         * src/pic16/main.c: __config directives are commented out to stop
14191             gpasm complaining and test the linkage with gplink, _linkCmd and
14192             _asmCmd changed to be more gplink and gpasm friendly
14193         * src/pic16/peeph.def: peep rule 3 is commented out, since it
14194             produced an error when parsed, peep rule 12 is added to utilize
14195             movff, but it is commented out since the pCode does not support
14196             yet a command with 2 address arguments
14197
14198 2003-05-18    <johan AT balder>
14199
14200         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
14201         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
14202 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
14203
14204         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
14205   Added feature to script commands from file.
14206
14207 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
14208
14209         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
14210         * src/SDCCutil.c: include ctype.h for win32
14211
14212 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
14213
14214         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
14215
14216 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
14217
14218         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
14219   Fixed so you can set breakpoints prior to run, run does not stop
14220   on entry now.  Add tbreak.  Other enhancements and fixes for use
14221   with ddd.
14222
14223 2003-05-12  Borut Razem <borut.razem AT siol.net>
14224
14225         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
14226
14227 2003-05-11  Borut Razem <borut.razem AT siol.net>
14228
14229         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
14230         the path of bin directory, so that PATH is the only env. variable, which has to be set
14231         in case of standard installation.
14232         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
14233         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
14234         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
14235
14236 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
14237
14238         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
14239         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
14240         temp files are in the port dir; clean the gen/test directory when
14241         generating new test.c
14242         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
14243         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
14244         * support/regression/tests/zeropad.c: added
14245
14246 2003-05-09    <johan AT balder>
14247
14248         * src/SDCCglue.c: fixed bug #597940
14249
14250 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
14251
14252         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
14253   cache sfr, optimize next,step, fix off by one sourceline,
14254   support ddd list function.
14255         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
14256
14257 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
14258
14259         * support/regression/HTMLgen.py: added compare_s2f()
14260         * support/regression/Makefile: redo 1.27
14261         * support/regression/generate-cases.py: redo 1.5
14262
14263 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
14264
14265         * support/regression/tests/float.c: workaround 33 bit hex constant
14266         * support/regression/tests/simplefloat.c: fix division for host
14267
14268 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
14269
14270         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
14271         that tame's the PIC's over-aggressive optimizer.
14272
14273 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14274
14275          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
14276          support for MSVC.
14277
14278 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
14279
14280         Initial support for DS80C400. "Hello world" runs on TINIm400
14281         (with polled I/O).
14282
14283 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
14284
14285          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
14286          * Some notes on ddd usage added in debugger/README
14287          Martin Helmling adding more features and fixes for ddd GUI debugger.
14288          Code added for nexti, stepi, up, down, and other adjustments.
14289
14290 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
14291
14292         * src/pic/pCodepeep.c non-wildcard asmops are now handled
14293         * src/pic/peeph.def Added two rules to optimize carry manipulation
14294         * src/pic/* removed debug printfs
14295
14296 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
14297
14298         * debugger/mcs51/cmd.c: added header newalloc.h
14299
14300 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
14301
14302         * as/Makefile: new EXEEXT
14303         * as/z80/Makefile: remove trailing slash of BUILDIR
14304         * as/z80/clean.mk: new EXEEXT
14305         * Makefile.common.in: add to CFLAGS (and others), don't replace it
14306         * support/cpp2/Makefile.in: new EXEEXT
14307         * src/pic/glue.c (pic14emitRegularMap): fixed warning
14308
14309 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
14310
14311         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
14312         EXEEXT was introduced to fix all related problems with targets
14313         "clean", "install" and "uninstall"; a couple of further flaws
14314         especially with "clean" have been fixed too
14315         * as/mcs51/Makefile.in
14316         * as/mcs51/clean.mk
14317         * as/z80/Makefile
14318         * Makefile
14319         * clean.mk
14320         * debugger/mcs51/Makefile.in
14321         * debugger/mcs51/clean.mk
14322         * link/z80/Makefile
14323         * link/z80/Makefile.in
14324         * link/z80/clean.mk
14325         * link/Makefile
14326         * packihx/Makefile.in
14327         * packihx/clean.mk
14328         * sim/ucsim/Makefile
14329         * sim/ucsim/clean.mk
14330         * sim/ucsim/avr.src/Makefile.in
14331         * sim/ucsim/avr.src/clean.mk
14332         * sim/ucsim/s51.src/Makefile.in
14333         * sim/ucsim/s51.src/clean.mk
14334         * sim/ucsim/xa.src/Makefile.in
14335         * sim/ucsim/xa.src/clean.mk
14336         * sim/ucsim/z80.src/Makefile.in
14337         * sim/ucsim/z80.src/clean.mk
14338         * sim/ucsim/main_in.mk
14339         * sim/ucsim/packages_in.mk
14340         * sim/ucsim/gui.src/Makefile.in
14341         * sim/ucsim/gui.src/serio.src/Makefile.in
14342         * sim/ucsim/gui.src/serio.src/clean.mk
14343         * src/Makefile.in
14344         * src/clean.mk
14345         * support/cpp2/Makefile.in
14346         * support/cpp2/clean.mk
14347         * support/makebin/Makefile
14348         * support/makebin/clean.mk
14349         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
14350         * doc/sdccman.lyx: --program-suffix no longer needed
14351
14352 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
14353
14354          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
14355          Martin Helmling added support for ddd GUI debugger.
14356          Code added to display assembly, set variables, and other commands
14357          to interface to ddd.
14358
14359 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
14360
14361         * as/Makefile: fix target clean
14362         * as/clean.mk: fix target clean
14363         * as/z80/clean.mk: fix target clean
14364
14365 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
14366
14367         * Makefile.common.in: added  AT EXEEXT AT
14368         * configure.in: removed all mingw32 stuff
14369         * configure: rebuilt from configure.in
14370         * doc/sdccman.lyx: updated section "installation"
14371         * support/scripts/sdcc_mingw32: adapted to configure
14372         * support/scripts/sdcc_cygwin_mingw32: added
14373
14374 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
14375
14376         * src/pic Added object file support for the PIC port
14377         * src/pic Applied patch from Craig Franklin (this started the object file support)
14378         * src/regression Updated the PIC regression tests for object files
14379
14380 2003-04-20  Borut Razem <borut.razem AT siol.net>
14381
14382         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
14383           lklex.c: In function `getfid':
14384           lklex.c:203: warning: array subscript has type `char'
14385         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
14386           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
14387         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
14388           stack handling macros
14389
14390 2003-04-19  Borut Razem <borut.razem AT siol.net>
14391
14392         * "handling space characters in file path" task:
14393         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
14394         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
14395         * support/Util/MySystem.h: make it self-sufficient
14396         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
14397           src/z80/main.c, sdcc/as/mcs51/lklex.c:
14398           handling space characters in file path
14399         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
14400           (it will be used by assemblers, which have their own includes, e.g. gpasm)
14401         * support/Util/MySystem.c: handling space characters in executable's path
14402
14403 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
14404
14405         * as/z80/Makefile: fix permanent rebuild of z80
14406         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
14407         * support/regression/tests/bitfields.c: added Johan's bitfields.c
14408
14409 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
14410
14411         * src/SDCCopt.c: add special case optimization to replace modulo by
14412           a power of two with a bitwise AND.
14413
14414 2003-04-18    <johan AT balder>
14415
14416         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
14417
14418 2003-04-17    <johan AT balder>
14419
14420         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
14421         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
14422
14423 2003-04-13  Borut Razem <borut.razem AT siol.net>
14424
14425         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
14426         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
14427           fixed mingw problem in adl_NORMALIZE_PATH
14428
14429 2003-04-12  Borut Razem <borut.razem AT siol.net>
14430
14431         * fixed "#pragma SAVE/RESTORE can not be nested":
14432         * src/SDCC.lex: reworked pragma handling functions
14433         * sdcc/src/SDCCglobl.h: reworked stack handling macros
14434         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
14435
14436 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
14437
14438         * src/SDCCutil.c (pathEquivalent): defined but not used
14439         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
14440         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
14441         * configure: rebuilt from configure.in
14442         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
14443         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
14444         * device/include/Makefile.in: replace sdcc_datadir
14445         * device/lib/Makefile.in: replace sdcc_datadir
14446         * Makefile.common.in: add LDFLAGS from configure
14447         * packihx/Makefile.in: use LDFLAGS
14448         * src/Makefile.in: use LDFLAGS
14449         * support/cpp2/Makefile.in: add LDFLAGS from configure
14450         * support/makebin/Makefile: use LDFLAGS
14451         * .version: bumped version number to 2.3.5
14452
14453 2003-04-12  Borut Razem <borut.razem AT siol.net>
14454
14455         * completed "different paths" task:
14456         * src/SDCCmacro.c: fixed bug in handling quotes
14457         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
14458         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
14459
14460 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
14461
14462         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
14463
14464 2003-04-11 kevin Vigor <kevin AT vigor.nu>
14465
14466         * ds390/gen.c ds390/peeph.def: fix bug 706781
14467
14468 2003-04-11  Borut Razem <borut.razem AT siol.net>
14469
14470         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
14471
14472 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
14473
14474         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
14475         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
14476          set - this bit used to not be set...).
14477         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
14478           bad code in PIC Port
14479         * src/regression/and2.c added to test bug 609268
14480         * src/regression/Makefile added and2.c to regression test
14481
14482
14483 2003-04-08    <johan AT CP255758-A>
14484
14485         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
14486         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
14487         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
14488
14489 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
14490
14491         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
14492         fix bug #487815
14493         * support/cpp2/Makefile.in: fix bug #487815
14494         * configure: rebuilt from configure.in
14495         * Makefile.common.in: docdir changed, new path suffixes
14496         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
14497         * sdcc_vc_in.h: reflect changes from sdccconf.h
14498         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
14499         * src/SDCCutil.h: remove BINDIR hack
14500         * doc/sdccman.lyx: update new path hierarchy
14501
14502 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
14503
14504         * src/SDCCpeeph.c: added okToRemoveSLOC test
14505
14506 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
14507
14508         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
14509
14510 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
14511
14512         * src/SDCCpeeph.c: added labelIsReturnOnly test
14513         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
14514
14515 2003-04-05    <johan AT balder>
14516
14517         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
14518         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
14519         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
14520         * src/SDCCast.c: fixed a warning
14521         * src/SDCCast.h: fixed a warning
14522         * src/SDCCicode.c (operandFromAst): fixed a warning
14523
14524 2003-04-04    <johan AT balder>
14525
14526         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
14527         * src/SDCCast.c (decorateType): fixed bug #715076
14528         * src/SDCC.y: fixed bug #702907
14529
14530 2003-04-03    <johan AT balder>
14531
14532         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
14533         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
14534         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
14535         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
14536         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
14537
14538 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
14539
14540         * _decdptr.c: fix return values
14541         * _gptrget.c: fix return values
14542         * _gptrgetc.c: fix return values
14543         * _gptrput.c: fix return values
14544         * _mulint.c: fix return values
14545         * as/z80/Makefile: fix 'make -j' problem
14546
14547 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
14548
14549         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
14550         * configure.in: big cleanup, updated to autoconf 2.5x
14551         * configure: rebuilt from configure.in
14552         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
14553         * sdcc_vc_in.h: reflect changes from sdccconf.h
14554         * doc/Makefile: fixed a flaw in "make install"
14555
14556 2003-04-02    <johan AT balder>
14557
14558         * src/ds390/gen.c (genCmp): no comments
14559         * src/mcs51/gen.c (genCmp): no comments
14560         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
14561         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
14562
14563 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
14564
14565         * support/regression/generate-cases.py: place generated file in given sub directory
14566         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
14567         * support/regression/Makefile: improvements for 'make -j';
14568         side effect: it's simpler and faster now
14569
14570 2003-03-31  Borut Razem <borut.razem AT siol.net>
14571
14572         * src/z80/main.c: link-{port} and as-{port} defined without path
14573         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
14574
14575 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
14576
14577         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
14578
14579 2003-03-30  Borut Razem <borut.razem AT siol.net>
14580
14581         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
14582           changed type of list parameter to set
14583         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
14584         * src/port.h: changed type of do_assemble() parameter to set
14585         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
14586           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
14587           definition of "cppoutfilename" macro with NULL value in preProcess()
14588         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
14589         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
14590         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
14591           replaced with set *binPathSet
14592         * shash_add() deallocates the item, if allready exsists, before adding the new one
14593         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
14594
14595 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
14596
14597         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
14598           a nested for loop bug in the PIC port
14599         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
14600           for loops
14601
14602 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
14603
14604         * support/Util/dbuf.h: remove C++ stuff to make it portable
14605
14606 2003-03-28  Borut Razem <borut.razem AT siol.net>
14607
14608         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
14609           literal strings in stringLiteral()
14610         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
14611         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
14612           to the project
14613
14614 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
14615
14616         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
14617
14618 2003-03-26    <johan AT balder>
14619
14620         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
14621         * src/ds390/gen.c (saveRegisters): catched symbol abuse
14622         * src/SDCCast.c (decorateType): fixed " -v < 3"
14623
14624 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
14625
14626         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
14627         Added Lenny Story's debug infrastructure changes:
14628         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
14629         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
14630         * src/cdbFile.c: added
14631         * src/SDCCdebug.c: added
14632         * src/SDCCdebug.h: added
14633         * src/SDCCast.c (createFunction)
14634         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
14635         * src/SDCCmain.c (parseCmdLine, main)
14636         * src/SDCCmem.c (redoStackOffsets)
14637         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
14638         * src/SDCCsymt.h
14639         * src/common.h
14640         * src/avr/gen.c (genAVRCode)
14641         * src/ds390/gen.c (gen390Code)
14642         * src/mcs51/gen.c (gen51Code)
14643         * src/pic/gen.c (genpic14Code)
14644         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
14645         * src/xa51/gen.c (genXA51Code)
14646         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
14647
14648 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14649
14650         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
14651         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
14652
14653 2003-03-22    <johan AT balder>
14654
14655         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
14656
14657 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
14658
14659         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
14660         * doc/cdbfileformat.lyx: added, written by Lenny Story
14661         * doc/Makefile: added cdbfileformat.lyx
14662         * doc/clean.mk: added cdbfileformat.lyx
14663
14664 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
14665
14666         * src/mcs51/peeph.def: fix bug #705773
14667
14668 2003-03-20    <johan AT balder>
14669
14670         An sfr/sbit can have an "at #" AND an initializer
14671         * src/SDCCsymt.c (checkSClass):
14672         * src/SDCCmem.c (allocGlobal):
14673         * src/SDCCmem.c (allocLocal):
14674         * src/SDCCast.c (createBlock):
14675
14676 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
14677
14678         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
14679
14680 2003-03-16    <johan AT balder>
14681
14682         Undid the hackup of const and volatile, the problem is much bigger
14683         * src/SDCC.y:1.65
14684         * src/SDCCast.c:1.171
14685         * src/SDCCglue.c:1.138
14686         * src/SDCCicode.c:1.146
14687         * src/SDCCsymt.c:1.150
14688         * src/SDCCval.c:1.65
14689
14690 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
14691
14692         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
14693         * src/ds390/gen.c (genAddrOf): fixed bug #704087
14694
14695 2003-03-13    <johan AT balder>
14696
14697         Hackup const and volatile modifiers in type chains a bit:
14698         * src/SDCC.y:1.63
14699         * src/SDCCast.c:1.169
14700         * src/SDCCglue.c:1.136
14701         * src/SDCCicode.c:1.143
14702         * src/SDCCsymt.c1.146
14703         * src/SDCCsymt.h1.59
14704         * src/SDCCval.c:1.63
14705
14706 2003-03-12    <johan AT balder>
14707
14708         * src/SDCCBBlock.h: more LRH debugging junk
14709         * src/SDCCcflow.h: more LRH debugging junk
14710         * src/SDCCloop.c: more LRH debugging junk
14711         * src/SDCC.y (struct_declaration): fixed bug #697590
14712         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
14713         * src/ds390/gen.c (aopForRemat): fixed bug #700031
14714         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
14715
14716 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14717         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
14718         test function names must now match exactly).
14719         * src/SDCCcse.c: added special case in findCheaperOp to allow
14720         extending a short integer. Makes less awful code for bug 700121 test case.
14721
14722 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14723
14724         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
14725         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
14726
14727 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14728
14729         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
14730         actually called (operandsNotEqual() was called for all
14731         operandsNotEqualX tests).
14732
14733 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14734
14735         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
14736         with shorter literals. Fixes bug 700121.
14737
14738 2003-03-11    <johan AT balder>
14739
14740         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
14741
14742 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
14743
14744         * src/SDCCloop.c (mergeRegions): an evil beast is dead
14745         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
14746
14747 2003-03-10  Borut Razem <borut.razem AT siol.net>
14748
14749         * src/SDCCmain.c: pipe preprocessor's output
14750         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
14751         * sdcc_vc_in.h: define pclose as _pclose for WIN32
14752         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
14753         which closes all pipes in pipeSet set
14754         * src/SDCCset.c: free deleted item in function deleteSetItem()
14755         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
14756         moved from z80 to src subproject
14757         * .version: increased version number to 2.3.4
14758
14759 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
14760
14761         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
14762         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
14763         * support/regression/ports/xa51/spec.mk: fix typo
14764
14765 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
14766
14767         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
14768
14769 2003-03-09  Borut Razem <borut.razem AT siol.net>
14770
14771         * src/SDCCmain.c: pipe preprocessor's output
14772         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
14773         * sdcc_vc_in.h: define pclose as _pclose for WIN32
14774         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
14775         which closes all pipes in pipeSet set
14776         * src/SDCCset.c: free deleted item in function deleteSetItem()
14777         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
14778         moved from z80 to src subproject
14779
14780 2003-03-09  Borut Razem <borut.razem AT siol.net>
14781
14782         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
14783         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
14784         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
14785         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
14786         * src/SDCCglobl.h: unification of WIN32 native definitions
14787
14788 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14789
14790         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
14791
14792 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
14793
14794         * src/configure.in:   check for endianess (even while cross-compiling)
14795         * src/configure:      check for endianess (even while cross-compiling)
14796         * src/configure_in.h: check for endianess (even while cross-compiling)
14797         * src/avr/gen.c:        remove old endianess stuff
14798         * src/mcs51/gen.c:      remove old endianess stuff
14799         * src/ds390/gen.c:      remove old endianess stuff
14800         * src/pic/gen.c:        remove old endianess stuff
14801         * src/pic/genarith.c:   remove old endianess stuff
14802         * src/pic/glue.c:       fix endianess check
14803         * src/pic16/gen.c:      remove old endianess stuff
14804         * src/pic16/genarith.c: remove old endianess stuff
14805         * src/pic16/glue.c:     fix endianess check
14806         * src/xa51/gen.c:       remove old endianess stuff
14807         * src/z80/gen.c:        fix endianess check
14808         * src/SDCCglue.c:       fix endianess check
14809         * src/ds390/peeph.def: fix bug 700036
14810
14811 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
14812
14813         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
14814         * src/configure: find appropriate data-types on host for SDCC's int and long
14815         * src/configure.in: find appropriate data-types on host for SDCC's int and long
14816         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
14817         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
14818
14819 2003-03-07    <johan AT balder>
14820
14821         Just a big NOOP:
14822                 some minor cleanups before the big shot
14823                 OP_DEFS and OP_USES now use Kevin's protection
14824                 new option --nolabelopt
14825
14826         * src/SDCCBBlock.c:
14827         * src/SDCCast.c,:
14828         * src/SDCCcflow.c:
14829         * src/SDCCcse.c:
14830         * src/SDCCicode.c:
14831         * src/SDCCicode.h:
14832         * src/SDCClabel.c:
14833         * src/SDCCloop.c:
14834         * src/SDCCmain.c:
14835         * src/ds390/ralloc.c:
14836         * src/mcs51/ralloc.c:
14837         * src/pic/ralloc.c:
14838         * src/xa51/ralloc.c:
14839         * src/z80/ralloc.c:
14840
14841 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
14842
14843         * src/pic/pcode.c (get_op): fix 64 bit warnings
14844         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
14845         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
14846         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
14847         * support/regression/tests/malloc.c: fix 64 bit warnings
14848
14849 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
14850
14851         * src/mcs51/gen.c (genMinus): fixed bug 696436
14852
14853 2003-03-02  Borut Razem <borut.razem AT siol.net>
14854
14855         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
14856
14857 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
14858
14859         * configure.in: test for mkstemp
14860         * sdccconf_in.h: add HAVE_MKSTEMP
14861
14862 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
14863
14864         * device/include/ctype.h: removed warning while using --stack-auto
14865         * device/include/malloc.h: removed warning while using --stack-auto
14866         * device/include/string.h: removed warning while using --stack-auto
14867
14868 2003-02-23  Borut Razem <borut.razem AT siol.net>
14869
14870         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
14871         because NDEBUG is defined (see man assert)
14872         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
14873
14874 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14875
14876         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
14877         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
14878
14879 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14880
14881         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
14882         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
14883
14884 2003-02-18    <johan AT balder>
14885
14886         * as/mcs51/asmain.c (asmbl): module can start with a digit
14887         * as/z80/asmain.c (asmbl): module can start with a digit
14888
14889 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
14890
14891         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
14892         * src/asm.c: fix pipe() for Mingw32
14893
14894 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
14895
14896         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
14897         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
14898         make -V work again; --c1mode reads now from stdin
14899         * doc/sdccman.lyx: added --c1mode
14900         * support/Util/SDCCerr.c: new messages for c1 mode
14901         * support/Util/SDCCerr.h: new messages for c1 mode
14902         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
14903
14904 2003-02-15    <johan AT balder>
14905
14906         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
14907
14908 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
14909
14910         * doc/sdccman.lyx: Environment variables, -o and other minor things
14911
14912 2003-02-14    <johan AT balder>
14913
14914         * src/xa51/main.c: before anyone really tries to use it :)
14915
14916         * Install doc's in share/sdcc/doc
14917         * removed some obsolete files
14918         * Do a proper make distclean and uninstall
14919         M Makefile.common.in
14920         R sdccbuild.sh
14921         M as/Makefile
14922         M device/include/Makefile.in
14923         M device/lib/Makefile.in
14924         M doc/sdccman.lyx
14925         M link/Makefile
14926         M sim/ucsim/doc/Makefile.in
14927         M src/clean.mk
14928         R src/avr/peeph.rul
14929         R src/xa51/peeph.rul
14930         M support/cpp2/Makefile.in
14931         M support/makebin/Makefile
14932
14933
14934 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
14935
14936         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
14937
14938 2003-02-10  Borut Razem <borut.razem AT siol.net>
14939
14940         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
14941         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
14942         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
14943         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
14944         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
14945         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
14946         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
14947         src/z80/Makefile.bcc: Borland Makefile cleanup
14948         * as/z80/Makefile.bcc: Added Borland Makefile
14949         * support/cpp2/borland.h: Removed
14950
14951 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
14952
14953         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
14954         * src/SDCC.lex: new pragma NOIV
14955         * src/SDCCglobl.h: new pragma NOIV
14956         * src/SDCCmem.c: new pragma NOIV
14957
14958 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
14959
14960         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
14961
14962 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
14963
14964         * src/SDCCmain.c: signal handling is switched off by --debug
14965         * doc/Makefile: small fix for install; use clean.mk again
14966         * doc/clean.mk: clean *.pdf and *.html too
14967
14968 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
14969
14970         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
14971         * device/lib/printfl.c: fix a ds390 bug by making it portable
14972         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
14973         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
14974         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
14975         * debugger/mcs51/cmd.c: converted multi-line string literals
14976         * sim/ucsim/globals.cc: converted multi-line string literals
14977         * src/SDCCmain.c: introduced signal handler to remove temp files
14978         * doc/Makefile: small tweaks, implement clean
14979         * doc: removed generated files
14980
14981 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14982
14983         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
14984         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
14985         Address Record is not correctly generated for DS390."
14986
14987 2003-02-02  Borut Razem <borut.razem AT siol.net>
14988
14989         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
14990         * as/mcs51/asm.h: fixed compilation with Borland C
14991         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
14992         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
14993         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
14994         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
14995         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
14996         src/z80/Makefile.bcc: delete $(LIB) only if exist
14997         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
14998
14999 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
15000
15001         * device/include/malloc.h: introduced NULL
15002         * device/include/string.h: introduced NULL
15003         * device/include/stdlib.h: introduced NULL
15004         * device/lib/_memcpy.c: removed NULL
15005         * device/lib/_strcat.c: removed NULL
15006         * device/lib/_strchr.c: removed NULL
15007         * device/lib/_strcmp.c: removed NULL
15008         * device/lib/_strcpy.c: removed NULL
15009         * device/lib/_strcspn.c: removed NULL
15010         * device/lib/_strlen.c: removed NULL
15011         * device/lib/_strncat.c: removed NULL
15012         * device/lib/_strncmp.c: removed NULL
15013         * device/lib/_strncpy.c: removed NULL
15014         * device/lib/_strpbrk.c: removed NULL
15015         * device/lib/_strrchr.c: removed NULL
15016         * device/lib/_strspn.c: removed NULL
15017         * device/lib/_strstr.c: removed NULL
15018         * device/lib/_strtok.c: removed NULL
15019         * device/lib/malloc.c: removed NULL, include own header
15020
15021 2003-02-02    <johan AT balder>
15022
15023         * 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
15024         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
15025         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
15026         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
15027         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
15028         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
15029
15030 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15031
15032         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
15033         area 'DATA'"
15034
15035 2003-02-01    <johan AT balder>
15036
15037         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
15038
15039 2003-01-31    <johan AT CP255758-A>
15040
15041         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
15042
15043 2003-01-30    <johan AT balder>
15044
15045         * src/SDCCBBlock.c: automatic bug detection
15046         * src/SDCCicode.c: automatic bug detection
15047
15048 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15049
15050         * src/SDCCglobl.h:   now --xram-size 0 works
15051         * src/SDCCmain.c:    now --xram-size 0 works
15052
15053 2003-01-29    <johan AT balder>
15054
15055         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
15056
15057 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15058
15059         * as/mcs51/aslink.h: Added options --xram-size and --code-size
15060         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
15061         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
15062         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
15063         * src/SDCCglobl.h:   Added options --xram-size and --code-size
15064         * src/SDCCmain.c:    Added options --xram-size and --code-size
15065
15066 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
15067
15068         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
15069         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
15070
15071 2003-01-27    <johan AT balder>
15072
15073         * src/SDCC.y: fixed bug #613764
15074
15075 2003-01-26    <johan AT balder>
15076
15077         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
15078         * src/SDCCsymt.h: fixed bug #673374
15079         * src/SDCCglue.c: fixed bug #661910
15080         * src/SDCCast.c: fixed bug #458099 and 673374
15081
15082 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
15083
15084         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
15085         * as/mcs51/strcmpi.h: added
15086         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
15087         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
15088         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
15089         * as/mcs51/assym.c: strcmpi -> as_strcmpi
15090         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
15091         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
15092         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
15093         * as/mcs51/Makefile.aslink: new module strcmpi
15094         * as/mcs51/Makefile.asx8051: new module strcmpi
15095         * as/mcs51/Makefil.bcc: new module strcmpi
15096         * as/mcs51/Makefile.in: new module strcmpi
15097         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
15098
15099 2003-01-26    <johan AT balder>
15100
15101         * src/SDCCglue.c: reverted back to 1.124
15102         * src/SDCCast.c: reverted back to 1.156
15103         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
15104
15105 2003-01-25    <johan AT balder>
15106
15107         * src/SDCCglue.c: A better fix for bug #661910
15108         * src/SDCCast.c: A better fix for bug #661910
15109         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
15110
15111 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
15112
15113         * src/Makefile.in: remove spawn.o
15114         * src/SDCCmain.c: remove spawn.h
15115         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
15116         * src/spawn.c: removed
15117         * src/spawn.h: removed
15118         * support/regression/ports/ds390/spec.mk: link with -r
15119
15120 2003-01-24    <johan AT CP255758-A>
15121
15122         * src/ds390/gen.c (aopOp): fixed bug #667458
15123         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
15124         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
15125         (createIvalCharPtr): an ival doesn't always have a storage class anymore
15126
15127 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
15128
15129         * src/mcs51/peeph.def: better assembler identation by Frieder
15130         * src/mcs51/gen.c: better assembler identation by Frieder
15131
15132 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
15133
15134         * as/z80/string.h: removed for gcc 3.2
15135         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
15136         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
15137
15138 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
15139
15140         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
15141         * src/SDCCpeeph.c (replaceRule): fix bug #663503
15142         * support/regression/Makefile: separate temp files for ports
15143         * support/regression/generate-cases.py: separate temp files for ports
15144         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
15145         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
15146
15147 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
15148
15149         * moved tinitalk to device/examples/ds390
15150
15151 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
15152
15153         * as/mcs51/lkmem.c: rflag is for DS390
15154         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
15155         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
15156                          (linkEdit): move mem- and map-files the same way as ihx-files
15157         * src/z80/main.c (_setDefaultOptions): removed --generic
15158         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
15159         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
15160         * src/pic/glue.c (picglue): --c1mode works again
15161         * src/pic16/glue.c (pic16glue): --c1mode works again
15162         * src/asm.c (printCLine): fix #660034
15163
15164 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
15165
15166         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
15167         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
15168         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
15169         * as/mcs51/lkmem (summary): better fix for sp problem
15170         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
15171         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
15172         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
15173                                               remove --stack-after-data
15174
15175 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
15176
15177         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
15178         * src/SDCCutil.c (join): ugly bug: missing '\0'
15179         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
15180
15181 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
15182
15183         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
15184         * src/port.h: typo
15185         * src/pic/main.c (_asmCmd): gpasm supports -o
15186         * src/z80/main.c: more general macros
15187         * device/lib/Makefile.in: remove intermediate files
15188
15189 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
15190
15191         * .version: Bumped version number to 2.3.3
15192         * src/SDCCBBlock.c: new option -o
15193         * src/SDCCglobl.h: new option -o
15194         * src/SDCCglue.c: new option -o
15195         * src/SDCCmain.c: new option -o
15196         * src/asm.c: new option -o
15197         * src/ds390/main.c: new option -o
15198         * src/pic/glue.c: new option -o
15199         * src/pic/pcode.c: new option -o
15200         * src/pic/ralloc.c: new option -o
15201         * src/pic16/glue.c: new option -o
15202         * src/pic16/pcode.c: new option -o
15203         * src/pic16/ralloc.c: new option -o
15204         * src/z80/main.c: new option -o
15205         * device/lib/Makefile.in: use -o
15206         * support/regression/ports/ds390/spec.mk: use -o
15207         * support/regression/ports/gbz80/spec.mk: use -o
15208         * support/regression/ports/mcs51/spec.mk: use -o
15209         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
15210         * support/regression/ports/z80/spec.mk: use -o
15211         * support/regression/ports/ucz80/spec.mk: use -o
15212         * support/regression/ports/xa51/spec.mk: use -o
15213         * support/regression/fwk/lib/timeout.c: fix usage string
15214
15215 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
15216         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
15217
15218 2003-01-07    <johan AT balder>
15219
15220         * src/SDCCast.c (decorateType): fixed bug #600035
15221
15222 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
15223         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
15224         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
15225         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
15226         * src/pic/pcode.c: outcommented unused variable to remove warnings
15227         * src/pic/ralloc.c: outcommented unused variable to remove warnings
15228
15229 2003-01-06    <karl AT turbobit.com>
15230         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
15231    regression tests.
15232
15233 2003-01-06    <johan AT balder>
15234
15235         * src/SDCCicode.c: fixed array add
15236
15237 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
15238         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
15239         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
15240
15241 2003-01-04    <johan AT balder>
15242
15243         * src/SDCCval.c (getNelements): fixed the initialized array of structures
15244
15245 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15246         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
15247
15248 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
15249         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
15250         * support/regression/tests/bug-524697.c: fit mem usage into 8032
15251
15252 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
15253         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
15254
15255 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
15256         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
15257
15258 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
15259         * src/mcs51/main.c: removed {bindir}{sep} from aslink
15260
15261 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15262
15263     * in /sdcc/as/mcs51/ changed these files in order to create an
15264     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
15265     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
15266     following files to include the previous two files: aslink.dsp,
15267     Makefile.aslink, Makefile.bcc, and Makefile.in.
15268
15269     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
15270     .adb instead of .cdb
15271
15272 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15273
15274         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
15275         value from option --iram-size.
15276
15277 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15278
15279         * /sdcc/as/mcs51/lklist.c: added boundary check before using
15280         dram[] array.
15281
15282 2002-09-18    <wiml AT hhhh.org>
15283
15284         * SDCClrange.h: exposed setFromRange() and setToRange()
15285         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
15286           packRegsForAccUse() (bug 542397)
15287         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
15288           multiple times and emitting the fetch operations more than once
15289           added aopGetUsesAcc() function to allow binary operators to
15290           fetch their operands in the correct order; made genMinus() emit
15291           compact code for X = LITERAL - Y
15292
15293 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15294         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
15295         sprintf() in line 1267.
15296
15297 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15298         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
15299         like ports.
15300
15301 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15302         Changes to aslink (All the changes are marked with 'JCF'):
15303
15304         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
15305         summary().
15306
15307         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
15308         area BSEG.  Also moves, if possible, the DATA area down into the internal
15309         ram so more space is available.
15310
15311         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
15312         sflag.
15313
15314         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
15315         not bytes.  Function summary() which creates a memory usage summary
15316         file with extension .mem.  Reports of overlaping stack and small stack
15317         size.  If the space for the stack is less than 16 bytes aslink trows a
15318         warning.
15319
15320         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
15321         the 8051.  Option 'y' for memory summary output file.
15322
15323         Changes to sdcc (All the changes are marked with 'JCF'):
15324
15325         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
15326
15327         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
15328         overlaying area for it (uses RegBankUsed[4]).
15329
15330         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
15331         bank zero as used by default.  By default aslink locates the stack
15332         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
15333         the creation of the .mem file.  Delegates the allocation of data area
15334         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
15335         the begining of the stack area to aslink.
15336
15337         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
15338         glue() in SDCCglue.c creates an area for it.
15339
15340 2002-09-03  Borut Razem <borut.razem AT siol.net>
15341         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
15342         sdcc/src/pic/glue.c:
15343         introduced atexit() handler for teporay files removal in case of
15344         errors, assertions, ...
15345
15346 2002-08-29  Borut Razem <borut.razem AT siol.net>
15347         * sdcc/support/cpp2/auto-host_vc_in.h:
15348         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
15349         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
15350         Maybe there is a similar problem with BORLANDC? It should be checked!
15351
15352         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
15353         corrected improper use of assert: the assignment to clr variable was done inside the assert.
15354         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
15355         was not executed, and the compiler (cl) launched a warning:
15356         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
15357
15358 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
15359         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
15360
15361 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
15362         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
15363
15364         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
15365           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
15366           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
15367           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
15368           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
15369           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
15370           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
15371         - added Release configuration in VS projects
15372         - review of compiler an linker options
15373         - VC .exe files are generated in bin_vc directory, not to interfere
15374           with binaries generated from other projects (cygwin, mingw, bcc ...)
15375
15376         * sdcc/src/yacc.dsp: added
15377
15378         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
15379         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
15380         and insert the version number definitions from .version
15381
15382         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
15383
15384         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
15385         added - genarate auto-host.h using auto-host_vc_in.h as template
15386
15387         * sdcc/sdcc_vc.h,
15388         removed from CVS, generated automatically
15389
15390 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
15391         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
15392
15393 2002-08-11  Borut Razem <borut.razem AT siol.net>
15394         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
15395
15396 2002-08-10  Borut Razem <borut.razem AT siol.net>
15397         * src/SDCCmain.c (main):
15398         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
15399         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
15400         The consequence was that some temporary files were not removed.
15401
15402         * src/SDCCglue.c:
15403         unification of code in functions tempfilename() and tempfile():
15404         function tempnam() is defined in Visual Studio 6.0 and .NET
15405
15406         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
15407
15408         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
15409           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
15410         - removed compiler command line option /WX: Treats all warnings as errors
15411         - update a list of source files, included into the project
15412
15413         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
15414           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
15415         changed project type to Generic Project so that can be correcly converted to VS.NET project
15416
15417         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
15418
15419         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
15420
15421         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
15422
15423         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
15424         added return 0 statements after assert() to make compiler happy
15425
15426         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
15427         added newline in the def file to keep MSC compiler satisfied
15428
15429         * sdcc/src/z80/gen.c:
15430         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
15431           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
15432         - solved MSC error in function aopDump()
15433
15434         * sdcc_vc.h: define PREFIX as "\\sdcc"
15435
15436 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
15437         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
15438
15439 2002-06-22  Scott Dattalo <scott AT dattalo.com>
15440         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
15441         - Rewrote the register banking algorithm.
15442         - Added pCode live-range analysis to registers (for now, only non-used and
15443         singly-used registers optimized away)
15444
15445         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
15446
15447         * 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.
15448
15449 2002-05-10  Scott Dattalo <scott AT dattalo.com>
15450         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
15451
15452 2002-04-22  Michael Hope  <michaelh AT vroom>
15453
15454         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
15455
15456         * configure.in (DD_COPT): Added include support required for gbdk.
15457
15458         * .version: Bumped version number just to increase it.
15459
15460         * src/SDCCmain.c: Added -nostdinc to the default options.
15461
15462 2002-04-15  Michael Hope  <michaelh AT vroom>
15463
15464         * device/lib/z80/printf.c (sprintf): Added.
15465
15466         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
15467
15468         * src/z80/peeph.def: Added transpose redundent load rule.
15469
15470         * src/z80/main.c: Added force callee saves for jaune.
15471
15472         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
15473
15474         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
15475
15476 2002-03-28  Johan Knol  <johan AT balder>
15477
15478         * src/SDCCval.c: fixed bug #532436
15479
15480 2002-03-14  Scott Dattalo <scott AT dattalo.com>
15481         * /src/port.h:
15482         Added "char *Processor" field to the port structure.
15483
15484         * /src/SDCCmain.c:
15485         Added -p option. Allows port dependent processor to be specified.
15486
15487         * all ports:
15488         Initialized the new field char *Processor field to NULL in all ports
15489
15490         * /src/pic/*:
15491         Compiler generated registers for interrupt context saving
15492         were not getting allocated.
15493
15494 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
15495
15496         * /src/SDCCast.c:
15497         Fixed left shift. Will promote the left side of a left shift
15498         if a) left shifting more than size of operand or b) when assigned
15499         to something size > size of left side
15500
15501 2002-03-14  Scott Dattalo <scott AT dattalo.com>
15502         * src/pic/*
15503         tons of changes. Register allocation has been
15504         rewritten. Added customization for the various PICs. Flow
15505         analysis is restructured. ...
15506
15507         * src/pic/device.h:
15508         Added
15509
15510         * src/pic/device.c:
15511         Added. device.c is a PIC port hack to accomodate variations
15512         in PIC devices.
15513
15514 2002-03-13  Michael Hope  <michaelh AT vroom>
15515
15516         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
15517
15518 2002-03-04  johanknol  <johanknol AT manik>
15519
15520         * /src/SDCCval.c: fixed
15521
15522         const unsigned char arr[][2] = { { 0, 1 } };
15523         t18.c:1: error: Initializer element is not constant
15524
15525 2002-03-04  bela  <bela AT manik>
15526
15527         * /device/include/mcs51reg.h:
15528         ds89c420 register definition update
15529
15530 2002-03-03    <johan AT FRIJA>
15531
15532         * support/Util/SDCCerr.c: did something, but don't no why anymore
15533
15534         * support/regression/tests/bug-524691.c: made it a little less shy
15535
15536         * src/SDCCast.c (decorateType): fixed bug #524697
15537
15538         * src/SDCCast.c: made some lineno improvements
15539
15540         * src/SDCCval.c (getNelements): changed warning to error
15541
15542         * src/SDCCglue.c (printIvalArray): changed warning to error
15543
15544         * src/SDCCicode.c: fixed a warning for mingw
15545
15546         * src/SDCCast.c (decorateType): fixed the << promotion for ops
15547
15548         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
15549
15550 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
15551
15552         * src/ds390/peeph.def:
15553         Added some more peephole rules
15554
15555         * src/ds390/gen.c: Various fixes & enhancements
15556
15557         * src/SDCClrange.c, src/SDCClrange.h:
15558         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
15559
15560         * src/ds390/ralloc.c:
15561         various fixes & enhancements (ds390) specific
15562
15563         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
15564         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
15565         from rallocs.
15566
15567         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
15568
15569 2002-03-02    <johan AT FRIJA>
15570
15571         * src/SDCCast.c (decorateType): fixed bug #524708
15572
15573         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
15574
15575         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
15576
15577 2002-03-01  Michael Hope  <michaelh AT vroom>
15578
15579         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
15580
15581         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
15582
15583 2002-03-01    <johan AT FRIJA>
15584
15585         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
15586
15587         * src/SDCCast.c (decorateType): fixed bug #524209
15588
15589         * src/SDCCval.c (valNot): fixed bug #524195
15590
15591 2002-02-26    <johan AT balder>
15592
15593         * src/xa51/gen.c: fixed a warning
15594
15595         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
15596
15597         * src/SDCCast.c (decorateType): fixed bug #522534
15598
15599 2002-02-23    <johan AT balder>
15600
15601         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
15602
15603 2002-02-22    <johan AT balder>
15604
15605         * src/SDCCast.c: fixed bug #514865
15606
15607         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
15608
15609 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
15610
15611         * sdcc/src/SDCCloop.c:
15612         Previous fix was not good. basic blocks that have "break" or "return" are
15613         not really partof a loop , but live ranges used in these blocks should
15614         be live thru the entire loop, so set partOfLoop but don't add them to
15615         loop region
15616
15617 2002-02-21    <johan AT FRIJA>
15618
15619         * src/SDCCcse.c: fixed bug #514308
15620
15621 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
15622
15623         * src/SDCCloop.c:
15624         Fixed BUG #519583. If a conditional block ended in a return/break
15625         statement inside a loop, it was not being considered part of the loop.
15626
15627         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
15628
15629 2002-02-10  Karl Bongers <karl AT turbobit.com>
15630
15631         * debugger/*:
15632         Fixed up SDCDB debugger somewhat.  Updated debugger/README
15633         with lots of comments and notes.
15634
15635         * device/examples/test2.c:
15636         Fix bug, "red" variable not being initialized(compiler complained).
15637
15638         * device/examples/Makefile, examples/test3.c:
15639         Add Makefile in device/examples folder, compiles test3.c
15640         for use as a multiple module SDCDB test case.
15641
15642         * sim/ucsim/cmd.src/cmdset.cc:
15643         Took out debug printfs in ucsim "next" command.
15644
15645         * sim/ucsim/xa.src:
15646         Karl and Johan start ucsim XA support.  Most dissassembly working,
15647         about 75% emulation done(plenty of work remaining).
15648
15649         * sim/ucsim/z80.src:
15650         Add Z80 support to ucsim, add test-ucz80 regression test,
15651         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
15652         Notice z80 compiler fails on examples/test3.c/crc code.
15653
15654 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
15655
15656         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
15657         Added support for --parms-in-bank1
15658
15659         * src/ds390/peeph.def:
15660         added a few more peephole optimzations
15661
15662         * src/ds390/main.c:
15663         1) added __builtin_inp & __builtin_outp used to read in data of given length
15664            from a memory mapped port
15665         2) added __builtin_memcmp
15666         3) added __builtin_swapw swap bytes of a short
15667
15668         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
15669         1) handle multiple send & receives from register bank1
15670         2) ralloc can now allocate DPTR1 to some liveRanges
15671
15672         * src/SDCCsymt.c, src/SDCCsymt.h:
15673         changes to handle multiple sends & receives
15674
15675         * src/SDCCptropt.h:
15676         added some pointer arithmetic optimization
15677
15678         * src/SDCCptropt.c:
15679         added some pointer arithmetic optimizations but not stable yet so not
15680         called from anywhere (will get this working shortly)
15681
15682         * src/SDCCopt.c: fixed for multiple sends & receives
15683
15684         * src/SDCCmain.c:
15685         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
15686         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
15687            set preprocessor defines (depending on options)
15688
15689         * src/SDCCicode.c, src/SDCCicode.h:
15690         changes made to handle multiple sends & receives
15691
15692         * src/SDCCglobl.h:
15693         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
15694
15695         * src/SDCCcse.c, src/SDCCcse.h:
15696         added function findbackward def (to be used in upcoming optimization)
15697
15698         * src/SDCCcflow.c, src/SDCCcflow.h:
15699         added function returnAtEnd - to determine if a basic block terminates with
15700         a RETURN iCode
15701
15702         * src/SDCCast.c, src/SDCCast.h:
15703         added option parms-in-bank1
15704
15705         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
15706         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
15707         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
15708         adjusted for --parms-in-bank1 option
15709
15710         * device/include/string.h:
15711         donot redefine "reentrant" keyword
15712
15713         * device/include/ds80c390.h: Added some more SFRs
15714
15715 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
15716
15717         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
15718
15719 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
15720
15721         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
15722
15723 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
15724
15725         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
15726
15727 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
15728
15729         * Added --xram-movc option
15730
15731 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
15732
15733         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
15734
15735 2002-01-11  Johan Knol
15736
15737         * Added math lib of Jesus Calvino-Fraga
15738
15739 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
15740
15741         * src/SDCCmain.c (processFile): fix processing of ../../src.c
15742         * support/regression/Makefile: new target test-mcs51-stack-auto
15743         * support/regression/ports/mcs51-stack-auto/spec.mk: added
15744
15745 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
15746
15747         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
15748
15749 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
15750
15751         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
15752
15753 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
15754
15755         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
15756
15757         * src/SDCCglue.h: add definition for printIvalChar()
15758
15759 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
15760
15761         * src/SDCCast.c: fix #498138 by Johan
15762
15763         * src/SDCCglue.c: fix #498138 by Johan
15764
15765 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
15766
15767         * support/regression/Makefile: fix clean
15768
15769         * support/regression/ports/ds390/support.c: fix transmission of last character
15770
15771 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
15772
15773         * /sdcc/src/ds390/gen.c:
15774         a) improved computing address of stack variable
15775         b) took out some #if 0 code
15776         c) improved parmBytes adjustment
15777         d) improved genPlusIncr & genMinusIncr
15778         e) genCmp could generate bad code (when left assigned to DPTR)
15779         f) Fixed bug in hasInc
15780
15781         * /sdcc/src/ds390/ralloc.c:
15782         a) packRegsForSupport could mess up live information (Fixed)
15783         b) packRegsDPTRuse could be incorrect for left & right shift
15784
15785         * /sdcc/src/mcs51/ralloc.c:
15786         packRegsForSupport could mess up the live information (Fixed)
15787
15788         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
15789
15790         * /sdcc/src/SDCCast.c:
15791         can reverse a loop even if function call is present as long
15792         as the loop control variable is local & is not passed as parameter
15793
15794 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15795
15796         * /sdcc/ChangeLog: *** empty log message ***
15797
15798         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
15799         More builtin function additions for TININative
15800
15801         * /sdcc/src/ds390/ralloc.c:
15802         Had broken the regression testsuite
15803
15804         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
15805
15806         * /sdcc/src/SDCCsymt.c, /sdcc/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         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
15812         *** empty log message ***
15813
15814 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15815
15816         * /src/ds390/gen.c, /src/ds390/main.c:
15817         More builtin function additions for TININative
15818
15819         * /src/ds390/ralloc.c:
15820         Had broken the regression testsuite
15821
15822         * /src/SDCCast.c: Fixed a bug in dumptree
15823
15824         * /src/SDCCsymt.c, /src/SDCCsymt.h:
15825         Added funcattr hasStackParms will be set for reentrant functions when there
15826         are paramteres on the stack, this helps in minimizing frame pointer generation
15827         typeFromStr can handle function pointers now
15828
15829         * /doc/builtins.txt, /doc/TININative.txt:
15830         *** empty log message ***
15831
15832
15833 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15834
15835         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
15836         ALPHA version for -mTININative
15837
15838         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
15839         updated to reflect changes in the port structure
15840
15841         * /src/port.h:
15842         added function do_assemble (similar to do_link) if non-null this function
15843         will be called to do assembly (-mTININative) requires a multi command
15844         assembly
15845         added function genAssemblerEnd will be called to generate assembler Epilogue
15846
15847         * /src/SDCCsymt.c:
15848         added _JavaNative to debug info printing
15849
15850         * /src/SDCCmain.c: added option --tini-libid
15851         added port->do_assemble function (-mTININative) has a multi command assemble
15852
15853         * /src/SDCCglue.c: Disabled "constExpr" check
15854         added port->genAssemblerEnd function
15855
15856         * /src/SDCCglobl.h: Added option --tini-libid value
15857
15858         * /src/SDCCast.h:
15859         tookout optimizeCompare from the header (has no external references)
15860
15861         * /src/SDCCast.c: made one more function "static"
15862
15863 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
15864
15865         * src/z80/mappings.i: Added z80asm support.
15866
15867         * src/z80/main.c: Added z80asm support on --asm=z80asm
15868
15869         * src/z80/gen.c: Fixed asm portability issues.
15870
15871         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
15872
15873         * src/SDCCglue.c (printExterns): Added global/extern split.
15874
15875 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
15876
15877         * support/regression/Makefile: added test for mcs51 model large
15878
15879         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
15880
15881         * support/regression/ports/gbz80/spec.mk: added -mgbz80
15882
15883 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
15884
15885         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
15886
15887 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
15888
15889         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
15890
15891         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
15892
15893 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
15894
15895         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
15896
15897         * support/regression/tests/simplefloat.c: Port to mcs51.
15898
15899 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
15900         * support/regression/tests/bug-485362.c: Added.
15901
15902         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
15903
15904         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
15905
15906         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
15907
15908         * src/z80/gen.c (aopDump): Added a dump function.
15909
15910 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
15911         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
15912
15913         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
15914
15915         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
15916
15917         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
15918
15919         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
15920
15921         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
15922
15923         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
15924
15925         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
15926
15927         * support/regression/ports/ds390/support.c: Use tinibios.
15928
15929         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
15930
15931 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
15932
15933         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
15934         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
15935
15936         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
15937
15938         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
15939
15940 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
15941
15942         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
15943
15944         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
15945         (packRegsForIYUse): Created and optimised.
15946
15947 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
15948
15949         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
15950 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
15951
15952         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
15953
15954         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
15955
15956         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
15957
15958 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15959
15960         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
15961
15962         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
15963
15964 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15965
15966         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
15967
15968         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
15969
15970         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
15971
15972 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
15973
15974         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
15975         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
15976         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
15977
15978         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
15979
15980         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
15981         (genNotFloat): Added.
15982         (genUminusFloat): Added.
15983
15984         * device/lib/z80/Makefile: Added floating pt stubs.
15985
15986         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
15987
15988         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
15989
15990         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
15991
15992 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15993
15994         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
15995
15996         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
15997
15998         * sdcc/support/regression/Makefile: Add port ds390.
15999
16000         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
16001
16002         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
16003
16004         * sdcc/support/regression/ports/ds390/spec.mk: Added.
16005
16006         * sdcc/support/regression/ports/ds390/support.c: Added.
16007
16008         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
16009
16010         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
16011
16012         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
16013
16014 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
16015
16016         * device/include/malloc.h: Added z80 and gbz80 support.
16017
16018         * device/lib/gbz80/heap.s: Added.
16019
16020         * device/lib/z80/heap.s: Added.
16021
16022         * device/lib/malloc.c: Added z80 and gbz80 support.
16023
16024         * support/regression/tests/malloc.c (testMalloc): Added.
16025
16026         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
16027
16028         * support/regression/tests/bug-478094.c: Added.
16029
16030         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
16031
16032 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
16033
16034         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
16035
16036         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
16037
16038         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
16039
16040         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
16041
16042         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
16043
16044 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
16045
16046         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
16047
16048 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
16049
16050         * support/regression/tests/bug-477927.c: Added.
16051
16052         * src/z80/peeph.def: Added minor rules.
16053
16054         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
16055
16056         * src/z80/peeph.def: Added jump optimisation modification.
16057
16058 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
16059
16060         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
16061
16062 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
16063
16064         * support/regression/tests/funptrs.c: Added.
16065
16066 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
16067
16068         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
16069
16070 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
16071
16072         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
16073
16074         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
16075
16076         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
16077         (movLeft2ResultLong): Created.
16078
16079         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
16080         (joinPushes): Added.  Joins two char pushes into a word push.
16081
16082 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
16083
16084         * support/cpp2/Makefile.in (install): Added creation of dest dir.
16085
16086         * support/makebin/Makefile (install): Added creation of dest dir.
16087
16088 2001-10-24 Karl Bongers <karl AT turbobit.com>
16089
16090         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
16091
16092 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
16093
16094         * src/z80/ralloc.c: Turned off faulty pack for one use.
16095
16096         * src/z80/peeph-gbz80.def: Removed redundent restart options.
16097
16098         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
16099
16100 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
16101
16102         * support/regression/Makefile: Improved clean
16103
16104         * support/regression/ports/gbz80/spec.mk: Added clean
16105
16106         * support/regression/ports/host/spec.mk: Added clean
16107
16108         * support/regression/ports/z80/spec.mk: Added clean
16109
16110         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
16111
16112         * support/regression/ports/mcs51/timeout.c: little improvements
16113
16114 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
16115
16116         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
16117
16118         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
16119
16120         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
16121
16122 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
16123
16124         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
16125
16126         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
16127
16128 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
16129         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
16130
16131         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
16132
16133         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
16134
16135         * src/mcs51/main.c (_linkCmd): Added bin path to command.
16136
16137         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
16138
16139         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
16140
16141         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
16142
16143         * support/regression/tests/longor.c: Added.
16144
16145 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
16146
16147         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
16148
16149         * as/mcs51/aslink.h: define PATH_MAX
16150
16151         * as/mcs51/asm.h: define PATH_MAX
16152
16153         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
16154
16155         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
16156
16157         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
16158
16159         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
16160
16161         * src/SDCCglobl.h: define PATH_MAX
16162
16163         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
16164
16165         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
16166
16167 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
16168
16169         * src/z80/gen.c (gencjneshort): Fixed
16170
16171         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
16172
16173 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
16174
16175         * support/regression/tests/bug-469671.c: Added.
16176
16177         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
16178
16179 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
16180
16181         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
16182
16183         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
16184
16185 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
16186
16187         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
16188
16189         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
16190
16191         * src/device/lib/_mullong.c : removed hint: nooverlay bug
16192
16193         * src/device/lib/_divuint.c : removed hint: nooverlay bug
16194
16195         * src/device/lib/_divulong.c: removed hint: nooverlay bug
16196
16197         * src/device/lib/_moduint.c : removed hint: nooverlay bug
16198
16199         * src/device/lib/_modulong.c: removed hint: nooverlay bug
16200
16201 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
16202
16203         * 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.
16204
16205         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
16206
16207         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
16208
16209 2001-10-07    <johan AT FRIJA>
16210
16211         * device/lib/gets.c (gets): fixed the return value.
16212
16213 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
16214         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
16215
16216         * 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.
16217
16218         * 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.
16219
16220         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
16221
16222         * src/pic/gen.c: Removed Safe_strdup.
16223
16224         * configure.in: Added option to enable libgc support.
16225
16226         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
16227         (bitVectUnion): Optimised.
16228         (bitVectIntersect): Optimised.
16229         (bitVectBitsInCommon): Optimised.
16230         (bitVectCplAnd): Optimised.
16231
16232         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
16233
16234 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16235
16236         * src/SDCCmain.c: distinguish between assembler debug and plain options
16237
16238         * src/avr/main.c:   remove standard assembler options
16239
16240         * src/ds390/main.c: remove standard assembler options
16241
16242         * src/mcs51/main.c: remove standard assembler options
16243
16244         * src/port.h: removed "PENDING" comment
16245
16246 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16247
16248         * src/device/lib/_mulint.c  : new, with assember functions
16249
16250         * src/device/lib/_mullong.c : new, with assember functions
16251
16252         * src/device/lib/_divuint.c : with assember functions
16253
16254         * src/device/lib/_divsint.c : with assember functions
16255
16256         * src/device/lib/_divulong.c: with assember functions
16257
16258         * src/device/lib/_divslong.c: with assember functions
16259
16260         * src/device/lib/_moduint.c : with assember functions
16261
16262         * src/device/lib/_modsint.c : with assember functions
16263
16264         * src/device/lib/_modulong.c: with assember functions
16265
16266         * src/device/lib/_modslong.c: with assember functions
16267
16268         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
16269
16270         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
16271
16272         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
16273                                       replaced _mululong.c and _mulslong.c by _mullong.c
16274
16275 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16276
16277         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
16278
16279 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
16280
16281         * src/SDCCglue.c: test, if win32api is available for MINGW
16282
16283 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
16284
16285         * src/SDCCsymt.c: no more _modifier in printTypeChain()
16286         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
16287         * support/regression/ports/gbz80/spec.mk: removed GENERIC
16288         * support/regression/ports/host/spec.mk: removed GENERIC
16289         * support/regression/ports/mcs51/spec.mk: removed GENERIC
16290         * support/regression/ports/z80/spec.mk: removed GENERIC
16291
16292 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
16293
16294         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
16295
16296         * support/regression/tests/bug-467035.c: Created.
16297
16298 2001-10-01    <johan AT FRIJA>
16299
16300         * src/SDCC.y: fixed bug #466586 part 1
16301
16302 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
16303
16304         * SDCCicode.c: z80 has no generic pointers
16305         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
16306
16307 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
16308
16309         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
16310
16311 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
16312
16313         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
16314
16315         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
16316
16317 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
16318
16319         * configure.in: Fixed up so that ucsim is only configured once.
16320
16321         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
16322
16323         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
16324         (getPathDifference): As above.
16325
16326         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
16327
16328         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
16329
16330 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
16331         * .version: Updated to 2.3.1
16332
16333         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
16334         Added copyright header.
16335
16336         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
16337         (assemble): Added support for macro based assembler commands.
16338         (linkEdit): Added support for macro based linker commands.
16339         (preProcess): Changed the pre-processor to use macros.
16340         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
16341         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
16342
16343         * device/lib/z80/crt0.s: Added module name for debugging.
16344
16345 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
16346
16347         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
16348
16349         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
16350
16351         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
16352
16353         * src/Makefile.in: Added SDCCmacro and SDCCutil
16354
16355 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
16356
16357         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
16358
16359 2001-09-16    <johan AT FRIJA>
16360
16361         * 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.
16362
16363 2001-09-15    <johan AT FRIJA>
16364
16365         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
16366         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
16367
16368 2001-09-11    <johan AT FRIJA>
16369
16370         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
16371
16372 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
16373
16374         * support/regression/tests/bug-460444.c: Added test case.
16375
16376         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
16377         (genCast): Added justification for all of the asserts.
16378
16379 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
16380
16381         * support/regression/support.c: _xdata replaced by xdata
16382
16383         * support/regression/spec.mk: removed _generic
16384
16385 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
16386
16387         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
16388
16389         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
16390         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
16391
16392         * src/z80/peeph.def: Added a rule to optimise shift then compare.
16393
16394         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
16395
16396         * support/regression/tests/bug-460010.c: Added test case.
16397
16398         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
16399
16400 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
16401
16402         * support/regression/Makefile: inter-port-clean adjusted for mcs51
16403
16404         * support/regression/testfwk.c: removed workaround for bug #436344
16405
16406         * support/regression/tests/bp.c: use less memory with mcs51
16407
16408         * support/regression/tests/bug-441448.c: use less memory
16409
16410         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
16411
16412         * support/regression/collate-results.py: typo
16413
16414 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
16415
16416         * support/regression/tests/fetchoverlap.c: Added new test case.
16417
16418         * support/regression/tests/bp.c: Added new test case.
16419
16420         * support/regression/tests/bug-448984.c: Added new test case.
16421
16422         * support/regression/tests/pow2shifts.c: Added new test case.
16423
16424         * src/z80/gen.c: Turned off the noise it normally generates for the release.
16425         (genlshTwo): Fixed right shift for count > 8.
16426
16427         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
16428
16429 2001-09-08    <johan AT FRIJA>
16430
16431         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
16432
16433 2001-09-07    <johan AT FRIJA>
16434
16435         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
16436
16437         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
16438
16439 2001-09-06    <johan AT FRIJA>
16440
16441         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
16442         * bernhard noted me at this: "() equals to (void)" (1.38)
16443
16444 2001-09-05    <johan AT FRIJA>
16445
16446         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
16447
16448 2001-09-04    <johan AT FRIJA>
16449
16450         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
16451
16452
16453 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
16454
16455         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
16456
16457 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
16458
16459         * link/z80/aslink.h: Fixed path for PATH_MAX
16460
16461 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
16462
16463         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
16464
16465         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
16466
16467         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
16468
16469         * 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.
16470
16471 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
16472
16473         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
16474         (genCmp): Fixed up genCmp for the GB with longs.
16475
16476         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
16477
16478         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
16479
16480         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
16481
16482         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
16483
16484 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
16485
16486         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
16487
16488 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
16489
16490         * 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.
16491
16492         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
16493
16494 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
16495
16496         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
16497
16498         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
16499
16500 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
16501
16502   * sim/ucsim/configure:    little improvement of Cygwin-detection
16503   * sim/ucsim/configure.in: little improvement of Cygwin-detection
16504   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
16505   * support/regression/tests/bug-221100.c: small changes for mcs51
16506   * support/regression/tests/bug-221168.c: small changes for mcs51
16507   * support/regression/tests/bug-227710.c: small changes for mcs51
16508   * support/regression/tests/staticinit.c: small changes for mcs51
16509   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
16510   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
16511   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
16512
16513 $Revision$