* device/lib/pic16/**: build pic16 library using autotools for
[fw/sdcc] / ChangeLog
1 2008-08-10 Raphael Neider <rneider AT web.de>
2
3         * device/lib/pic16/**: build pic16 library using autotools for
4           improved dependency tracking
5
6         * device/lib/Makefile.in,
7         * src/pic16/main.c,
8         * support/scripts/sdcc.nsi: adapt to changes in filenames (s/.lib/.a/)
9
10 2008-08-10 Raphael Neider <rneider AT web.de>
11
12         * src/pic/pcode.c (ReuseReg): do not overlay the registers used for
13           local variables if --nooverlay is given, workaround for #2023121
14
15 2008-08-08 Raphael Neider <rneider AT web.de>
16
17         * src/pic16/genarith.c (genAddLit): fix structure access (#1888004)
18
19 2008-08-08 Raphael Neider <rneider AT web.de>
20
21         * src/pic/pcoderegs.c,
22         * src/pic/pcode.c,
23         * src/pic16/pcode.c: replace own SAFE_snprintf with common SNPRINTF
24
25 2008-08-07 Borut Razem <borut.razem AT siol.net>
26
27         * src/SDCCval.c, src/SDCCmain.c, src/SDCC.lex,
28           device/lib/pic/Makefile.rules, device/lib/ds390/Makefile.in,
29           device/lib/ds400/Makefile.in, device/lib/hc08/Makefile.in,
30           support/cpp/libcpp/lex.c,  doc/sdccman.lyx:
31           applied modified patch 2038174: Add support for binary constants v2
32           thanks Mauro Giachero
33         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.3
34
35 2008-08-04 Raphael Neider <rneider AT web.de>
36
37         * doc/sdccman.lyx,
38         * src/pic16/device.h,
39         * src/pic16/glue.c,
40         * src/pic16/main.c: enable --optimize-goto by default
41
42         * device/lib/pic16/Makefile.common.in: suppress removed option
43
44         * src/pic16/gen.c,
45         * src/pic16/genutils.c: avoid too long relative branches (#2031890)
46
47 2008-07-30 Borut Razem <borut.razem AT siol.net>
48
49         * src/pic16/device.c, src/pic16/glue.c, src/pic16/pcode.c:
50           applied patch 22032433: PIC16: fix constant strings,
51           thanks Mauro Giachero
52
53 2008-07-29 Borut Razem <borut.razem AT siol.net>
54
55         * src/pic16/gen.c: applied patches:
56           2030306: [1/3] PIC16: fix failing rotate.c tests on 16-bit variables,
57           2030307: [2/3] PIC16: fix failing rotate.c tests for 32-bit var (1),
58           2030310: [3/3] PIC16: fix failing rotate.c tests for 32-bit var (2),
59           thanks Mauro Giachero
60
61 2008-07-13 Philipp Klaus Krause <pkk AT spth.de>
62         * src/port.h: Fixed typo in comment
63
64 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
65         * src/z80/mappings.i: Implemented RFE #1919415
66         * src/z80/peeph-z80.def: Implemented RFE #1919415, #1861376,
67           #1880202, #1914434, prepared for RFE #1703943
68
69 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
70
71         * src/z80/peeph.def,
72         * src/z80/peeph-z80.def,
73         * src/z80/peeph-gbz80.def: separate Z80 from GBZ80 peepholes in
74           preparation for Z80 peephole improvements
75
76 2008-06-21 Raphael Neider <rneider AT web.de>
77
78         * device/include/pic16/pic18f66j60.h,
79         * device/include/pic16/pic18f66j65.h,
80         * device/include/pic16/pic18f67j60.h,
81         * device/include/pic16/pic18f86j60.h,
82         * device/include/pic16/pic18f86j65.h,
83         * device/include/pic16/pic18f87j60.h,
84         * device/include/pic16/pic18f96j60.h,
85         * device/include/pic16/pic18f96j65.h,
86         * device/include/pic16/pic18f97j60.h,
87         * device/lib/pic16/libdev/pic18f66j60.c,
88         * device/lib/pic16/libdev/pic18f66j65.c,
89         * device/lib/pic16/libdev/pic18f67j60.c,
90         * device/lib/pic16/libdev/pic18f86j60.c,
91         * device/lib/pic16/libdev/pic18f86j65.c,
92         * device/lib/pic16/libdev/pic18f87j60.c,
93         * device/lib/pic16/libdev/pic18f96j60.c,
94         * device/lib/pic16/libdev/pic18f96j65.c,
95         * device/lib/pic16/libdev/pic18f97j60.c,
96         * device/include/pic16/pic16devices.txt,
97         * device/include/pic16/pic18fregs.h,
98         * device/lib/pic16/pics.all: added new devices
99
100         * device/include/pic16/adc.h,
101         * device/lib/pic16/libio/adc/adcbusy.c,
102         * device/lib/pic16/libio/adc/adcopen.c,
103         * device/lib/pic16/libio/adc/adcsetch.c,
104         * device/lib/pic16/libio/i2c/i2copen.c,
105         * device/lib/pic16/libio/usart/uopen.c: adapted to new devices,
106           all changes from a patch by Anton Strobl
107
108 2008-06-12 Borut Razem <borut.razem AT siol.net>
109
110         * sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/bp.cc,
111           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
112           sim/ucsim/z80.src/z80cl.h, sim/ucsim/z80.src/z80.cc,
113           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
114           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
115           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/uc390.cc,
116           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/uc390cl.h,
117           sim/ucsim/avr.src/avrcl.h, sim/ucsim/avr.src/avr.cc:
118           fixed bug 1990586: s51 simulator, uc::disass() unimplemented
119           by applying the modified patch from Risto Huotari
120
121 2008-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
122
123         * .version,
124         * doc/sdccman.lyx: bumped sdcc version to 2.8.2
125         * src/ds390/gen.c (aopPutUsesAcc, genAddrOf): fixed bug 1015185
126         * src/mcs51/gen.c (genNearPointerGet, genNearPointerSet): fixed bug 1938300
127         * support/regression/tests/bug1938300.c: new, added
128
129 2008-06-03 Maarten Brock <sourceforge.brock AT dse.nl>
130
131         * device/include/asm/ds390/features.h,
132         * device/include/asm/mcs51/features.h,
133         * device/include/mcs51/regc515c.h: inserted LGPL notice
134
135 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
136
137         * device/lib/gbz80/div.s,
138         * device/lib/z80/div.s: fixed bug 1904314 by applying a modified part of
139           patch 1597883, Thanks Robert Ramey
140
141 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
142
143         * src/SDCCast.c (createIvalType, createIvalStruct, createIvalArray,
144           createIvalCharPtr, createIvalPtr, createIval),
145         * src/SDCCval.h
146         * src/SDCCval.c (convertIListToConstList, list2expr): handle incomplete
147           initializers for local auto variables
148         * support/regression/tests/zeropad.c: added testcase for auto initializers
149
150 2008-05-26 Raphael Neider <rneider AT web.de>
151
152         * device/lib/pic16/startup/crt0.c,
153         * device/lib/pic16/startup/crt0i.c,
154         * device/lib/pic16/startup/crt0iz.c: clean up, make use of access bank
155           explicit, fixed curr_entry loop for >= 256 initializer records,
156           removed debug code (write to 0xf7e)
157
158 2008-05-25 Raphael Neider <rneider AT web.de>
159
160         * device/include/pic/pic16f627a.h,
161         * device/include/pic/pic16f628a.h,
162         * device/include/pic/pic16f648a.h: added missing ports
163
164 2008-05-20 Maarten Brock <sourceforge.brock AT dse.nl>
165
166         * device/include/float.h: added __INFINITY
167         * device/lib/_fsadd.c: handle overflows
168         * device/lib/_fsmul.c,
169         * device/lib/_fsdiv.c: use __INFINITY
170         * device/lib/_fseq.c,
171         * device/lib/_fsneq.c: handle -0.0
172         * sim/ucsim/s51.src/uc89c51r.cc,
173         * sim/ucsim/s51.src/uc89c51rcl.h: fixed bug 1385430
174         * sim/ucsim/sim.src/hwcl.h: */* confuses VC
175         * src/mcs51/gen.c (genSend): fixed bug with --xstack
176         * support/regression/ports/mcs51-xstack-auto/spec.mk: print floats
177         * support/regression/tests/snprintf.c: test bug with --xstack
178
179 2008-05-19  Philipp Klaus Krause <pkk AT spth.de>
180
181         * src/SDCCpeeph.c (callFuncByName):
182           Support nested parenthesis in peephole function arguments (#1967300)
183
184 2008-05-19 Raphael Neider <rneider AT web.de>
185
186         * src/pic16/gen.c (pic16_emitpLabel,pic16_emitpLabelFORCE):
187           fixed duplicate labels (#1911325)
188
189 2008-05-19 Raphael Neider <rneider AT web.de>
190
191         * src/regression/empty.c: suppress warning
192         * src/regression/pointer1.c: enabled index_by_pointer()
193         * src/regression/inline.c: now works for pic16 as well
194
195         * src/pic16/device.c: include dbuf declarations
196         * src/pic16/device.h: removed obsolete prototypes
197
198         * src/pic16/gen.c, src/pic16/gen.h: moved generic pointer tags
199         * src/pic16/glue.c: made purely local functions static,
200           (pic16_printGPointerType, pic16_printIvalCharPtr,
201           pic16_printIvalFuncPtr, pic16_printIvalPtr): fixed initialized
202           generic pointers' tags (#1961866)
203
204         * src/pic16/pcode.c (assignValnums): optimize literal assignments
205
206 2008-05-19 Borut Razem <borut.razem AT siol.net>
207
208         * support/scripts/sdcc.nsi: remove uninstall.exe after uninstallation,
209           fixed typo, uninstall include/pic16/pic16devices.txt
210
211 2008-05-18 Borut Razem <borut.razem AT siol.net>
212
213         * support/Utils/dbuf_string.[ch]: added dbuf_chomp(),
214           the buffer is null terminated
215         * src/device/pic16.c:
216           applied modified patch 1965676: Patch for Win32 16 bit PIC
217         * sdcc_vc_in.h: defined YY_NO_UNISTD_H
218
219 2008-05-16 Maarten Brock <sourceforge.brock AT dse.nl>
220
221         * src/SDCC.lex (check_type),
222         * src/SDCC.y (type_specifier2 TYPE_NAME): fixed bug 1925942
223         * as/hc08/clean.mk,
224         * as/mcs51/clean.mk,
225         * as/z80/clean.mk: also clean *.dep
226         * device/lib/pic16/libsdcc/stack/Makefile,
227         * sim/ucsim/libtool: removed as they are rebuild by configure
228         * src/clean.mk: removed izt, so Makefile is not deleted for distclean
229
230 2008-05-13 Maarten Brock <sourceforge.brock AT dse.nl>
231
232         * src/SDCCast.c (fixupInline, createFunction): save currBlockno in
233           fixupInline instead of createFunction to fix bug 1864577
234           (inlineFindMaxBlockno): removed, use global blockNo
235         * src/SDCCglobl.h: added blockNo
236         * src/z80/peep.c,
237         * src/z80/peep.h: modified properties
238         * support/regression/tests/bug1864577.c: new, added
239
240 2008-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
241
242         * as/mcs51/asdata.c,
243         * as/mcs51/asm.h: added org_cnt
244         * as/mcs51/asmain.c (main, asmbl): fixed bug 1957716, changed old K&R to ANSI
245         * as/mcs51/asout.c: changed old K&R to ANSI
246         * as/mcs51/Makefile.in: use common identifiers
247         * as/hc08/asdata.c,
248         * as/hc08/asexpr.c,
249         * as/hc08/asm.h,
250         * as/hc08/asmain.c,
251         * as/hc08/asout.c,
252         * as/hc08/Makefile.bcc,
253         * as/hc08/Makefile.in: synchronized with as/mcs51/*
254         * sdcc_vc_in.h: added define __func__
255         * src/SDCCast.c (expandInlineFuncs): applied patch 1957148 to fix bug 1717305,
256           Thanks Ruud van Silfhout
257         * support/regression/tests/bug1717305.c: new, added
258
259 2008-05-05 Borut Razem <borut.razem AT siol.net>
260
261         * support/regression/Makefile.in,
262           support/regression/ports/ds390/spec.mk,
263           support/regression/ports/hc08/spec.mk,
264           support/regression/ports/mcs51-common/spec.mk,
265           support/regression/ports/pic14/spec.mk,
266           support/regression/ports/pic16/spec.mk,
267           support/regression/ports/ucz80/spec.mk,
268           support/regression/ports/z80/spec.mk:
269           added INC_DIR and LIBDIR paths
270         * src/ds390/gen.c: removed duplicated selicolon
271
272 2008-05-04 Borut Razem <borut.razem AT siol.net>
273
274         * support/regression/Makefile.in,
275           support/regression/fwk/lib/testfwk.c,
276           support/regression/ports/ds390/spec.mk,
277           support/regression/ports/hc08/spec.mk,
278           support/regression/ports/mcs51-common/spec.mk,
279           support/regression/ports/mcs51-large/spec.mk,
280           support/regression/ports/mcs51-medium/spec.mk,
281           support/regression/ports/mcs51-small/spec.mk,
282           support/regression/ports/mcs51-stack-auto/spec.mk,
283           support/regression/ports/mcs51-xstack-auto/spec.mk,
284           support/regression/ports/pic14/spec.mk,
285           support/regression/ports/pic16/spec.mk,
286           support/regression/ports/ucz80/spec.mk:
287           added possibility to define the sdcc binary directory SDCC_BIN_PATH
288           used to run regeression tests
289
290 2008-05-01 Raphael Neider <rneider AT web.de>
291
292         * doc/sdccman.lyx, support/scripts/inc2h-pic16.pl: updated list of
293           supported devices and instructions to add new ones
294
295 2008-05-01 Raphael Neider <rneider AT web.de>
296
297         * device/include/pic16/adc.h,
298           device/lib/pic16/libio/adc/adcbusy.c,
299           device/lib/pic16/libio/adc/adcopen.c,
300           device/lib/pic16/libio/adc/adcsetch.c: support old 18f242 and new
301           18f2455 style ADC devices, based on patch #1776197
302         * device/lib/pic16/libio/adc/adcclose.c,
303           device/lib/pic16/libio/adc/adcconv.c,
304           device/lib/pic16/libio/adc/adcread.c: cosmetic changes
305         * device/include/pic16/{pic18f2331.h,pic18f2431.h},
306           device/lib/pic16/libdev/{pic18f2331.c,pic18f2431.c}: reuse 18f4331
307         * device/include/pic16/pic18f4431.h,
308           device/lib/pic16/libdev/pic18f4431.c: remove outdated comments
309         * device/lib/pic16/libio/adc.ignore: forbid unhandled devices
310
311 2008-05-01 Raphael Neider <rneider AT web.de>
312
313         * src/pic16/device.h: removed unused field PIC16_device.sfrRange,
314           moved xinst flag into pic16_options_t
315         * src/pic16/device.c (default_device, pic16_list_devices,
316           pic16_find_device): removed references to sfrrange
317         * src/pic16/gen.c (genFunction),
318           src/pic16/glue.c (pic16initialComments),
319           src/pic16/main.c (pic16_optionsTable),
320           src/pic16/ralloc.c (newReg, pic16_writeUsedRegs): updated references
321           to xinst
322         * device/include/pic16/pic16devices.txt: removed sfrrange lines
323
324 2008-04-29 Raphael Neider <rneider AT web.de>
325
326         * src/pic16/devices.inc,
327           device/include/pic16/pic16devices.txt: replaced compiled-in list
328           of devices with a variant parsed at runtime
329         * src/pic16/device.c: added support for parsing pic16devices.txt,
330           clean up
331         * src/pic16/device.h: removed (now) unused fields from PIC_device
332         * src/pic16/main.c: removed #pragma maxram,
333           (_pic16_initPaths): removed bogus generation of search paths,
334           setup the port proper only after the search paths (for
335           pic16devices.txt) are set up,
336           (_pic16_finaliseOptions): moved processor dependant code here
337           from _pic16_initPaths(), clean up
338         * src/pic16/ralloc.c (pic16_init_stack),
339         * src/pic16/ralloc.h,
340         * src/pic16/pcode.c: clean up
341         * device/include/Makefile.in,
342           support/scripts/sdcc.nsi: also install/package pic16devices.txt
343         * support/scripts/inc2h-pic16.pl: updated instructions
344
345 2008-04-29 Raphael Neider <rneider AT web.de>
346
347         * device/include/pic16/{pic18f2480.h, pic18f2580.h, pic18f4423.h,
348           pic18f4480.h, pic18f4523.h, pic18f4580.h, pic18f6585.h, pic18f8585.h},
349           device/lib/pic16/libdev/{pic18f2480.c, pic18f2580.c, pic18f4423.c,
350           pic18f4480.c, pic18f4523.c, pic18f4580.c, pic18f6585.c, pic18f8585.c}:
351           added missing family members and 18f2480/2580/4480/4580 family
352         * device/include/pic16/{pic18f2423.h, pic18f2523.h}: use 18f4523.h
353         * device/include/pic16/pic18f2525.h: use 18f4620.h
354         * device/include/pic16/pic18f6680.h: use 18f8680.h
355         * device/include/pic16/pic18fregs.h,
356           device/lib/pic16/pics.all,
357           src/pic16/devices.inc: add new devices
358         * device/lib/pic16/libdev/{pic18f2423.c, pic18f2523.c}: use 18f4523.c
359         * device/lib/pic16/libdev/pic18f2525.c: use 18f4620.c
360         * device/lib/pic16/libdev/pic18f6680.c: uso 18f8680.c
361         * device/lib/pic16/libio/{adc.ignore, i2c.ignore, usart.ignore}:
362           prevent attempting to build the libio for some new devices
363
364 2008-04-29 Raphael Neider <rneider AT web.de>
365
366         * debugger/mcs51/Makefile.in: fixed paths to sources
367
368 2008-04-25 Borut Razem <borut.razem AT siol.net>
369
370         * as/link/lklibr.c: moved from as/link/z80/lklibr.c
371         * as/link/hc08/lklibr.c, as/link/mcs51/lklibr.c: deleted
372         * as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
373         * as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
374           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
375           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
376           as/link/z80/linkz80.dsp: lklibr.c moved
377         * doc/INSTALL.txt: binary archives in bz2 format
378         * support/cpp/auto-host_vc_in.h: CPP2 replaced with CPP
379
380 2008-04-23 Maarten Brock <sourceforge.brock AT dse.nl>
381
382         * src/SDCCglue.c (printIvalType, printIvalBitFields): fixed bug 1856409
383         * support/regression/tests/bug1856409.c: new, added
384
385 2008-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
386
387         * src/z80/peep.c,
388         * src/mcs51/peep.c: Use werror for error messages.
389         * src/SDCCicode.c (geniCodeConditional),
390         * src/SDCCsymt.c (structElemType): fixed bug 1839321
391         * src/z80/Makefile.bcc,
392         * src/z80/z80.dsp: added src/z80/peep.c/h
393         * support/regression/tests/bug1839321.c: new, added
394
395 2008-04-20 Raphael Neider <rneider AT web.de>
396
397         * device/include/pic16/pic18f2455.h: added bitfields for port C
398
399 2008-04-20 Philipp Klaus Krause <pkk AT spth.de>
400
401         * src/z80/peep.c: Use werror for error messages.
402
403 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
404
405         * src/z80/peep.h (declaration of notUsed()),
406         * src/z80/main.c (enabled notUsed() for z80 port, documented z80_port
407           struct),
408         * src/z80/z80.h (added dependency on peep.h),
409         * src/z80/peep.c (definition of notUsed()): Implemented RFE #1880202
410           for Z80.
411
412 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
413
414         * src/SDCCpeeph.c (added support for notUsed()),
415         * src/mcs51/main.c (added dependency on peep.h, documented mcs51_port
416           struct),
417         * src/port.h (removed dependency on mcs51/peep.h, added declaration
418           for notUsed()): Implemented generic (that is not port-specific) part
419           of RFE #1880202.
420
421 2008-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
422
423         * as/link/mcs51/lkmem.c (summary2): fixed bug 1796077
424         * device/lib/libsdcc.lib,
425         * device/lib/Makefile.in,
426         * support/regression/ports/mcs51-xstack-auto/spec.mk,
427         * device/lib/calloc.c: renamed to _calloc.c
428         * device/lib/free.c: renamed to _free.c
429         * device/lib/malloc.c: renamed to _malloc.c
430         * device/lib/realloc.c: renamed to _realloc.c
431         * src/ds390/gen.c (aopGet, aopPut, genPlusBits, genDataPointerSet,
432           genNearPointerSet, genPagedPointerSet): synchronized with mcs51/gen.c
433         * src/ds390/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq, ifxForOp,
434           genAnd, genOr, genXor, genIfx, gen390Code): fixed bug 1509084
435         * src/mcs51/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq,
436           ifxForOp, genAnd, genOr, genXor, genNearPointerGet,
437           genPagedPointerGet, genFarPointerGet, genCodePointerGet,
438           genGenPointerGet, genIfx, gen51Code): fixed bug 1509084
439         * src/ds390/gen.c,
440         * src/mcs51/gen.c: throughout cosmetic changes for syncing both
441         * src/SDCCsymt.h: updated IS_OP_RUONLY, IS_OP_ACCUSE
442         * support/regression/tests/bug1509084.c: new, added
443
444 2008-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
445
446         * device/include/mcs51/cc2510fx.h: added _XPAGE
447         * device/include/mcs51/compiler.h: cosmetic changes
448
449 2008-03-31 Maarten Brock <sourceforge.brock AT dse.nl>
450
451         * sdcc.dsw: adapted for moved cpp2, added dependency for as_z80 on
452           config
453
454 2008-03-31 Borut Razem <borut.razem AT siol.net>
455
456         * support/cpp2 renamed to support/cpp
457         * support/cpp2/libiberty/filenames.h, support/cpp2/libiberty/hex.c,
458           support/cpp2/libiberty/splay-tree.c,
459           support/cpp2/libiberty/splay-tree.h, support/cpp2/libcpp/macro.c,
460           support/cpp2/libcpp/directives.c,
461           support/cpp2/libcpp/include/cpplib.h,
462           support/cpp2/libcpp/include/symtab.h,
463           support/cpp2/libcpp/include/line-map.h,
464           support/cpp2/libcpp/line-map.c, support/cpp2/libcpp/files.c,
465           support/cpp2/libcpp/init.c, support/cpp2/libcpp/traditional.c,
466           support/cpp2/libcpp/expr.c, support/cpp2/libcpp/internal.h,
467           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/system.h,
468           support/cpp2/libcpp/charset.c: SDCPP synchronized with GCC CPP
469           release version 4.3.0
470         * configure.in, configure, Makefile.in, Makefile.bcc:
471           adapted for moved cpp2
472
473 2008-03-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
474
475         * device/include/hc08/mc68hc908jkjl.h: committed fix for bug #1929739,
476           thanks Alejandro Pustowka <alejo_pustowka AT yahoo.com.mx>
477
478 2008-03-30 Maarten Brock <sourceforge.brock AT dse.nl>
479
480         * src/SDCCloop.c (loopInvariants): applied fix for bug 1717943, thanks
481           Robert Larice
482         * support/regression/tests/bug1717943.c: new, added
483
484 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
485
486         * src/z80/gen.c (assignResultValue): Reverted reversal of order of
487           bytewise return value assignments introduced in last commit.
488
489 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
490
491         * src/z80/gen.c (emitDebug, assignResultValue, genPlus, genMinus,
492           genMult, genJumpTab):
493           Use 16-bit instructions for addition in some additional cases,
494           implemented RFEs #1914251, #1914245, #1922090, #1921382, #1918323.
495
496 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
497
498         * src/z80/ralloc.c (serialRegAssign, allocReg, tryAllocatingRegPair):
499           Implemented RFE #1921450, changed some debug messages.
500
501 2008-03-30 Borut Razem <borut.razem AT siol.net>
502
503         * Small Device C Compiler 2.8.0 released
504         * .version, doc/sdccman.lyx: changed sdcc version to 2.8.1
505         * support/scripts/sdcc.nsi: added finish page; this version
506           was used for 2.8.0 release
507         * doc/knownbugs.html: removed; magically generated by the build
508           process using gen_known_bugs.pl from now on
509
510 2008-03-23 Borut Razem <borut.razem AT siol.net>
511
512         * src/pic/gen.h: Q&D solution for the bug, found by Jim Paris
513           and reverted it, since it was already fixed by Raphael ;-)
514         * doc/knownbugs.html: updated for RC2
515
516 2008-03-22 Raphael Neider <rneider AT web.de>
517
518         * src/SDCCicode.c (getPtrType): avoid unnecessary extra assignments
519           for PIC16 targets
520
521 2008-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
522
523         * src/mcs51/gen.c (adjustArithmeticResult): fixed bug 1839299
524         * support/regression/tests/bug1839277.c: added related testBug1839299
525
526 2008-03-21 Maarten Brock <sourceforge.brock AT dse.nl>
527
528         * src/ds390/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign),
529         * src/mcs51/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign):
530           fixed bug 1839277
531         * src/mcs51/gen.c: throughout only output hex constants
532         * src/SDCCicode.c (getPtrType, geniCodeCast): fixed code size regression
533         * support/regression/tests/bug1839277.c: new, added
534
535 2008-03-21 Philipp Klaus Krause <pkk AT spth.de>
536
537         * src/z80/ralloc.c (callFuncByName): Used // instead of /**/ to fix
538           compilation warning about nested comments.
539
540 2008-03-20 Maarten Brock <sourceforge.brock AT dse.nl>
541
542         * src/SDCCsymt.c (comparePtrType): fixed bug 1921073
543         * support/regression/tests/bug1921073.c: new, added
544
545 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
546
547         * src/z80/SDCCpeeph.c.c (callFuncByName):
548           Commented function parameters.
549
550 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
551
552         * src/z80/ralloc.c (packRegsForAccUse2):
553           disabled a broken accumulator packing optimization (fixed #1292721).
554         * support/regression/tests/bug-1292721: Regression test for #1292721.
555
556 2008-03-16 Raphael Neider <rneider AT web.de>
557
558         * src/pic/gen.c (SetIrp,genNearPointerGet,genNearPointerSet):
559           fixed code bloat regression using a variant of patch #1915618
560
561 2008-03-16 Borut Razem <borut.razem AT siol.net>
562
563         * support/scripts/sdcc.nsi: added section debugging macros, added SDCC
564           icon, changed startup menu for release distribution, code cleaning,
565           create url files instead links in startup menu
566
567 2008-03-16 Maarten Brock <sourceforge.brock AT dse.nl>
568
569         * src/SDCCcse.c (algebraicOpts): fixed bug 1579949
570         * support/regression/tests/bug1579949.c: new, added
571
572 2008-03-14 Paul Stoffregen <paul AT pjrc.com>
573
574         * device/lib/printf_fast.c: fixed bug 1255403
575
576 2008-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
577
578         * doc/sdccman.lyx: enhanced paragraph about bankswitching for mcs51
579         * src/cdbFile.c (cdbWriteBasicSymbol): fixed bug 1909409 for locals
580
581 2008-03-14 Borut Razem <borut.razem AT siol.net>
582
583         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated link-xx and aslink
584           command line options
585         * as/link/hc08/lkmain.c: converted tabs to spaces so that the usage
586           is correctly displayed
587         * as/link/z80/lkmain.c: usage line commented out
588
589 2008-03-13 Borut Razem <borut.razem AT siol.net>
590
591         * doc/sdccman.lyx: corrected to be able to convert to PDF,
592           updated the list pf supported pic14 devices
593
594 2008-03-12 Maarten Brock <sourceforge.brock AT dse.nl>
595
596         * doc/sdccman.lyx: added paragraph about bankswitching for mcs51
597
598 2008-03-12 Borut Razem <borut.razem AT siol.net>
599
600         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated command line options,
601           fixed documentation request #1718191
602         * as/hc80/asmain.c, as/mcs51/asmain.c: added option -c to usage
603         * doc/sdccman.lyx: added description of --no-std-crt0 gbz80
604           command line option
605
606 2008-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
607
608         * src/SDCCast.c (isConformingBody): fixed bug 1505811, thanks Robert Larice
609         * support/regression/tests/bug1505811.c: new, added
610
611 2008-03-09 Raphael Neider <rneider AT web.de>
612
613         * device/include/pic16/pic18f2620.h,
614         * device/include/pic16/pic18f4620.h,
615         * device/lib/pic16/libdev/pic18f2620.c,
616         * device/lib/pic16/libdev/pic18f4525.c,
617         * device/lib/pic16/libdev/pic18f4620.c: merged 18f2525/2620/4525/4620
618           family to consistently use pic18f4620.[ch], fixes #1832562
619
620 2008-03-09 Borut Razem <borut.razem AT siol.net>
621
622         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
623           changed sdcc version to 2.8.0
624         * knownbugs.html: regenerated
625         * support/scripts/gen_known_bugs.pl: added number of open bugs
626
627 2008-03-09 Raphael Neider <rneider AT web.de>
628
629         * src/pic16/gen.c (pic16_mov2w_volatile): NEW, read volatile operands,
630           (genOr): read volatile operand even if the result is known,
631           closes #1511838
632           (genOr,genXor): removed unused legacy code,
633           (genDummyRead): use pic16_mov2w_volatile()
634
635 2008-03-08 Borut Razem <borut.razem AT siol.net>
636
637         * src/SDCCglue.c: fixed bug #1864582: multiple definition of char
638           cons w. --model-large
639         * support/regression/staticinit.c: added regression test for bug
640           #1864582
641
642 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
643
644         * src/ds390/gen.c (pushSide, genPcall),
645         * src/hc08/gen.c (pushSide, genPcall): synchronized with mcs51
646         * src/mcs51/gen.c: cosmetic changes
647         * support/regression/fwk/include/testfwk.h: added macro reentrant
648         * support/regression/tests/bug1908493.c: new, added
649
650 2008-03-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
651
652         * src/SDCCdebug.c:, as/link/lkaomf51.c: Fixed bug 1909409: Pdata in OMF file
653
654 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
655
656         * src/mcs51/gen.c (pushSide, genPcall): fixed bug 1908493
657         * src/SDCCmain.c (preProcess): removed -DSDCC_PARMS_IN_BANK1 because it is
658           already set in ds390/main.c and mcs51/main.c
659
660 2008-03-07 Raphael Neider <rneider AT web.de>
661
662         * src/regression/init0.c: new test for initialized arrays of function
663           pointers
664         * src/regression/Makefile: made a bit more flexible, added init0.c
665         * src/pic/glue.c (emitIvals): hacky fix for initializing from function
666           pointers, closes #1427663
667
668 2008-03-05 Borut Razem <borut.razem AT siol.net>
669
670         * dos/sdccman.lyx: docummented predefined macros SDCC_REVISION,
671           SDCC_PARMS_IN_BANK1, SDCC_FLOAT_REENT and SDCC_INT_LONG_REENT
672
673 2008-03-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
674
675         * support/librarian/sdcclib.c:Added feature request 1908061:
676           Synchronise sdcclib commands with ar.
677
678 2008-03-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
679
680         * src/SDCCmain.c: added predefined macros SDCC_REVISION (RFE #1907229),
681           and (depending on corresponding compiler option) SDCC_PARMS_IN_BANK1,
682           SDCC_FLOAT_REENT, SDCC_INT_LONG_REENT
683         * device/include/mcs51/compiler.h: removed umlauts, added double
684           underscore
685
686 2008-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
687
688         * src/SDCCptropt.c (ptrPseudoSymConvert): fixed bug 1536762
689         * support/regression/tests/bug1536762.c: new, added
690         * src/SDCCutil.c,
691         * src/SDCCutil.h: added getBuildDate()
692         * src/SDCCmain.c (printVersionInfo),
693         * src/SDCCglue.c (initialComments): use getBuildDate() instead of
694           __DATE__
695         * src/*/ralloc.c: removed IS_OP_RUONLY macro
696         * src/ds390/ralloc.c (packRegisters),
697         * src/mcs51/ralloc.c (packRegisters),
698         * src/z80/ralloc.c (packRegisters): applied fix for bug 1618050, thanks
699           Robert Larice
700         * support/regression/tests/bug1618050.c: new, added
701         * src/SDCCsymt.h: fixed typo in DECLSPEC2TXT
702         * support/regression/fwk/include/testfwk.h,
703         * support/regression/tests/bug1838000.c: moved _AUTOMEM and _STATMEM to
704           testfwk.h
705
706 2008-03-04 Raphael Neider <rneider AT web.de>
707
708         * src/pic/gen.c: removed unused prototypes, prevent internal errors
709           on accessing OP_SYM_TYPE(op)
710         * src/pic/gen.h: removed unused prototype of genMinusDec()
711         * src/pic/genarith.c (genMinus): cosmetic changes, rewritten to
712           fix #1876953 (invalid subtraction code), removed unused code
713
714 2008-03-03 Raphael Neider <rneider AT web.de>
715
716         * src/pic/gen.c,
717         * src/pic/gen.h,
718         * src/pic/genarith.c,
719         * src/pic/ralloc.c,
720         * src/pic/ralloc.h: removed AOP_R0, AOP_R1, AOP_DPTR, AOP_DPTR2,
721           AOP_ACC, and *_IDX and adjusted code, removed unused legacy code
722
723 2008-03-03 Raphael Neider <rneider AT web.de>
724
725         * src/pic/device.c (find_device): search user-specified paths first
726           for pic14devices.txt, fixes #1900827
727
728 2008-03-02 Borut Razem <borut.razem AT siol.net>
729
730         * support/scripts/sdcc.nsi: fixed bug in IsNT, LogicLib-isation of
731           AddToPath and RemoveFromPath
732
733 2008-03-01 Borut Razem <borut.razem AT siol.net>
734
735         * support/scripts/sdcc.nsi: reverted MULTIUSER page since it didn't
736           work correctly, added debugging support if -DSDCC.DEBUG command line
737           option is defined
738
739 2008-02-28 Borut Razem <borut.razem AT siol.net>
740
741         * doc/sdccman.lyx: cosmetic changes
742
743 2008-02-28 Maarten Brock <sourceforge.brock AT dse.nl>
744
745         * src/mcs51/ralloc.c (fillGaps): fixed bug 1839671
746         * doc/sdccman.lyx: fixed unmeant removal of spaces
747
748 2008-02-27 Borut Razem <borut.razem AT siol.net>
749
750         * support/scripts/sdcc.nsi: corrected installation directory for
751           current user installation mode
752         * doc/README.txt: added Philipp Klaus Krause to the developers list
753
754 2008-02-27 Maarten Brock <sourceforge.brock AT dse.nl>
755
756         * src/mcs51/gen.c (genUnpackBits): don't generate ifxJump, instead
757           return ifx condition
758           (genNearPointerGet, genPagedPointerGet, genFarPointerGet,
759           genCodePointerGet, genGenPointerGet): cleanup aop before generating
760             ifxJump to fix bug 1838000
761         * src/SDCCsymt.c (aggregateToPointer): fix problem for xstack
762         * support/regression/tests/bug1838000.c: new, added
763         * device/include/mcs51/cc1110.h: new, added, thanks to Pravin Angolkar
764
765 2008-02-26 Borut Razem <borut.razem AT siol.net>
766
767         * src/SDCCast.c, doc/sdccman.lyx: fixed RFE #1901171: inerger promotion
768           of casted varargs
769         * support/scripts/sdcc.nsi: added MULTIUSER page,
770           NSIS upgraded to version 2.35
771
772 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
773
774         * src/mcs51/ralloc.c (isSpiltOnStack): fixed bug 1565152
775         * support/regression/tests/bug1565152.c: new, added
776
777 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
778
779         * src/mcs51/gen.c (genPagedPointerSet): fixed bug 1670148
780         * support/regression/ports/mcs51-xstack-auto/spec.mk: added expf.c
781         * support/regression/tests/bug1670148.c: new, added
782
783 2008-02-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
784
785         * device/include/mcs51/at89c51ed2.h: fixed bug 1901469.
786
787 2008-02-24 Borut Razem <borut.razem AT siol.net>
788
789         * src/SDCCast.c, src/SDCCast.h: fixed bug #1874922: explicit typecast
790           is ineffective for unsigned char parameter
791
792 2008-02-24 Maarten Brock <sourceforge.brock AT dse.nl>
793
794         * src/SDCCast.c (expandInlineFuncs): fixed bug 1875869
795         * src/SDCCglue.c (printIvalBitFields): fixed bug 1806631
796         * support/regression/tests/bitopcse.c: removed hc08 exception, see testfwk.h
797         * support/Util/MySystem.c (my_system): output errorcode when verbose
798
799 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
800
801         * src/z80/gen.c (genMult): Rewrote 8-bit multiplication by constant,
802           implements #1898231
803
804 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
805
806         * device/lib/z80/mul.s: Rewrote __muluchar_rrx_s, to improve 8-bit mult.,
807           implements #1896290
808
809 2008-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
810
811         * src/SDCCast.c (createIvalStruct): fixed bug 1466761
812
813 2008-02-21 Borut Razem <borut.razem AT siol.net>
814
815         * support/regression/Makefile.in,
816           support/regression/ports/ds390/spec.mk,
817           support/regression/ports/hc08/spec.mk,
818           support/regression/ports/mcs51-common/spec.mk,
819           support/regression/ports/pic14/spec.mk,
820           support/regression/ports/pic16/spec.mk,
821           support/regression/ports/ucz80/spec.mk,
822           support/regression/ports/xa51/spec.mk:
823           added CFLAGS when compiling timeout
824
825 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
826
827         * support/regression/tests/bugs-1596270-1736867.c: Regression test for
828           #1596270, #1736867
829
830 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
831
832         * src/SDCClrange.c (findPrevUse): fixed bug 1888147
833         * support/regression/tests/bug1888147.c: new, added
834
835 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
836
837         * src/z80/gen.c: fixed bugs #1596270, #1736867
838
839 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
840
841         * src/z80/gen.c: fixed bug in register pair loading when swapping register
842           contents, mostly fixes #1596270
843
844 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
845
846         * src/z80/peeph.def,
847         * src/z80/peeph-z80.def: moved peephole that breaks gbz80 to z80-specific
848           peepholes, fixes #1806565
849
850 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
851
852         * src/SDCCpeeph.c (operandBaseName): added check for @Ri
853         * src/mcs51/peeph.def (rule 177.c): added operandsNotRelated(%1 %3)
854           fixes bug 1739475, thanks Robert Larice
855           (rule 271): new, added
856
857 2008-02-18 Borut Razem <borut.razem AT siol.net>
858
859         * sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
860
861 2008-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
862
863         * src/SDCCmain.c (linkEdit): emit -z when using --debug for z80
864
865 2008-02-17 Raphael Neider <rneider AT web.de>
866
867         * src/pic16/genarith.c,
868         * src/pic16/gen.c,
869         * src/pic16/gen.h,
870         * src/pic16/genutils.c: removed unused legacy code,
871           removed unused fields from struct asmop and struct _G
872
873 2008-02-17 Raphael Neider <rneider AT web.de>
874
875         * src/pic16/gen.c (AccRsh): cosmetic changes,
876           (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
877           genRightShiftLiteral): fixed to work with SFRs as result by
878           assigning only once to result,
879           removed a lot of unused/excluded code fragments
880
881 2008-02-17 Raphael Neider <rneider AT web.de>
882
883         * device/include/pic/pic16f88.h,
884         * device/include/pic/pic16f886.h,
885         * device/include/pic/pic16f887.h: added TRISA6 and TRISA7
886
887 2008-02-17 Borut Razem <borut.razem AT siol.net>
888
889         * src/z80/peeph.def: applied patch
890           #1893626: Optimize tail calls on Z80, thanks to Philipp Krause
891         * src/z80/gen.c, src/z80/peeph.def: applied patch
892           #1893510: Improve logical left shift on Z80, thanks to Philipp Krause
893         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
894           sim/ucsim/s51.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
895           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
896           sim/ucsim/main_in.mk: renamed libutil.a to libucsimutil.a in order to
897           enable compilation on Mac OS X 10.5 (Leopard) and XCode v3.0
898
899 2008-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
900
901         * as/link/mcs51/aslink.dsp: removed SDK define
902         * as/link/z80/clean.mk: brought in sync with other ports
903         * as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
904         * as/hc08/Makefile.bcc,
905         * as/mcs51/Makefile.bcc,
906         * as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
907         * src/z80/main.c (_setValues): use the now capitalized -Z,
908           (z80_port, gbz80_port): generate debug information when asked
909
910 2008-02-16 Borut Razem <borut.razem AT siol.net>
911
912         * as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
913           as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
914           as/z80/Makefile.in. as/z80/Makefile.bcc:
915           applied patch #1893393: patch for as-z80 and link-z80 to generate
916           cdb, thanks to Armin Diehl
917         * as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
918           as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
919           asnoice.c moved to as/asxxsrc/asnoice.c
920         * src/z80/peeph-gbz80.def: applied patch
921           #1880235: Z80 return peephole, thanks to Philipp Krause
922
923 2008-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
924
925         * .version,
926         * doc/sdccman.lyx: bumped version to 2.7.5
927         * src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583
928
929 2008-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
930
931         * device/include/pic16/stdlib.h,
932         * device/lib/pic16/libc/stdlib/ltoa.c,
933         * device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*
934
935 2008-02-13 Borut Razem <borut.razem AT siol.net>
936
937         * src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
938         * src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
939           src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
940           src/SDCCopt.c,  src/SDCCval.c:
941           fixed bug #1890273: SDCC Warning 154 shows wrong filename
942
943 2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
944
945         * src/SDCCsymt.c (compareType): fixed bug 1309013
946
947 2008-02-09 Borut Razem <borut.razem AT siol.net>
948
949         * src/SDCCval.c, src/SDCCval.h:
950           code cleaning, added function constChrVal()
951         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
952           call constChrVal() instead constVal()
953
954 2008-02-01 Maarten Brock <sourceforge.brock AT dse.nl>
955
956         * src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
957           of function pointer
958         * src/SDCCerr.h,
959         * src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
960         * support/regression/tests/absolute.c: added TestStruct TestVar (see also
961           bug 1859853)
962
963 2008-02-01 Raphael Neider <rneider AT web.de>
964
965         * device/include/pic/pic16f886.h,
966         * device/include/pic/pic16f887.h: added RA6 and RA7
967
968 2008-01-24 Raphael Neider <rneider AT web.de>
969
970         * device/include/pic/pic16f88.h: added RA6 and RA7
971         * device/lib/pic/libdev/disabled_pic16f886.c,
972         * device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled
973
974         * src/pic16/devices.inc,
975         * device/include/pic16/pic18f2423.h,
976         * device/include/pic16/pic18f2523.h,
977         * device/include/pic16/pic18fregs.h,
978         * device/lib/pic16/pics.all
979         * device/lib/pic16/libdev/pic18f2423.c,
980         * device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
981         * device/lib/pic16/libio/i2c.ignore,
982         * device/lib/pic16/libio/usart.ignore,
983         * device/lib/pic16/libio/adc.ignore: ignore new devices
984
985 2008-01-23 Maarten Brock <sourceforge.brock AT dse.nl>
986
987         * src/SDCCast.c (createRMW): fixed bug 1582651
988
989 2008-01-20 Borut Razem <borut.razem AT siol.net>
990
991         * src/SDCCcse.c: partially fixed enhancement request
992           #1793872 - multiply by -1 not collapsed
993         * support/regression/tests/arithcsi.c: added regression test
994
995 2008-01-19 Maarten Brock <sourceforge.brock AT dse.nl>
996
997         * as/mcs51/asx8051.dsp: removed define SDK
998         * as/mcs51/i51mch.c (machine): fixed bug 1865114
999         * device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
1000         * as/link/lklex.c,
1001         * as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
1002           cosmetic changes, brought more in sync, changed old K&R to ANSI
1003
1004 2008-01-13 Borut Razem <borut.razem AT siol.net>
1005
1006         * support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...
1007         * src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
1008
1009 2007-12-30 Borut Razem <borut.razem AT siol.net>
1010
1011         * src/pic16/gen.c: fixed implementation of bitwise operations for
1012           pic16 target
1013         * support/regression/tests/bitwise.c: added test cases
1014
1015 2007-12-29 Borut Razem <borut.razem AT siol.net>
1016
1017         * src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
1018         * src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
1019           src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
1020         * support/Util/dbuf_string.[ch]: added function dbuf_getline()
1021         * src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
1022           src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
1023           src/pic16/pcode.[ch]: added const qualifier
1024         * as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
1025           as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
1026           as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
1027           as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
1028         * as/asxxsrc/aslex.c: use dbuf_getline()
1029         * as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
1030           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
1031           as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
1032           as/z80/asm.h, as/z80/z80adr.c:
1033           changed type of ib and ip to const char *
1034
1035 2007-12-28 Borut Razem <borut.razem AT siol.net>
1036
1037         * as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
1038           introduced (readlin) - long lines are turuncated
1039         * as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
1040           as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
1041           as/z80/Makefile.in: moved aslex.c to asxxsrc
1042         * as/hc08/aslex.c, as/z80/aslex.c: deleted
1043         * as/hc08/asmain.c, as/mcs51/asmain.c:
1044           added missing initialization of a_addr field
1045         * support/regression/tests/long_asm_line.c: added regtest for long
1046           assembler line
1047
1048 2007-12-22 Borut Razem <borut.razem AT siol.net>
1049
1050         * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
1051
1052 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
1053
1054         * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
1055
1056 2007-12-16 Borut Razem <borut.razem AT siol.net>
1057
1058         * device/include/pic16/stdbool.h: removed, since already exists in
1059          device/include/; this also fixes bitopcse.c regression test for pic16
1060          target
1061         * support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
1062         * src/pic16/glue.c: fixed bug #1851855: generic static pointer
1063           dereference doesn't work; covered by regression test bug1399290
1064
1065 2007-12-05 Borut Razem <borut.razem AT siol.net>
1066
1067         * doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
1068           Adding new PIC16
1069
1070 2007-12-01 Borut Razem <borut.razem AT siol.net>
1071
1072         * sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
1073           corrected handling of the highest_valid_address
1074
1075 2007-11-17 Raphael Neider <rneider AT web.de>
1076
1077         * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
1078         * src/pic/glue.c (picglue): emit .file if --debug is given
1079
1080 2007-11-17 Raphael Neider <rneider AT web.de>
1081
1082         * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
1083         care when left or right operand resides in result, fixes #1830220
1084
1085 2007-11-17 Borut Razem <borut.razem AT siol.net>
1086
1087         * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
1088           #983491 - "Merge duplicate strings function is ineffective"
1089         * support/regression/tests/bug-983491.c: regtest disabled
1090         * as/asxxsrc: created
1091           as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
1092           as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
1093           as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
1094           as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
1095           as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
1096           as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
1097           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
1098           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
1099           as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
1100           as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
1101           as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
1102           as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
1103           created as/asxxsrc directory, assym.c and strcpi.c moved into it
1104
1105 2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
1106
1107         * device/include/stdarg.h: added and removed some casts
1108         * src/SDCCsymt.c (compareType): Fully check types between generic and
1109           non-generic pointers, also accept ptr-ptr to void-ptr assignments
1110
1111 2007-11-13 Borut Razem <borut.razem AT siol.net>
1112
1113         * support/regression/tests/bug-1817005.c:
1114           added regtest for bug #1817005 - as-z80 chokes on long labels
1115
1116 2007-11-12 Borut Razem <borut.razem AT siol.net>
1117
1118         * as/z80/asmain.c, as/z80/asm.h, as/z80/assym.c, as/z80/asdata.c,
1119           as/z80/asout.c, as/z80/aslist.c:
1120           fixed bug #1817005 - as-z80 chokes on long labels
1121
1122 2007-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
1123
1124         * as/hc08/asmain.c,
1125         * as/z80/asmain.c: cosmetic changes
1126         * as/hc08/alloc.h,
1127         * as/mcs51/alloc.h,
1128         * as/z80/alloc.h: removed
1129         * as/hc08/assym.c,
1130         * as/mcs51/assym.c: replaced alloc.h with stdlib.h
1131         * as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
1132         * as/link/hc08/Makefile.in,
1133         * as/link/mcs51/Makefile.in,
1134         * as/link/z80/Makefile.in: added -DUNIX to CFLAGS
1135         * as/link/lklex.c,
1136         * as/link/mcs51/lkarea.c,
1137         * as/link/mcs51/lkmain.c: cosmetic changes
1138         * as/link/hc08/lklibr.c,
1139         * as/link/z80/lklibr.c,
1140         * as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
1141           used cygwin_conv_to_full_posix_path,
1142           added warnings, cosmetic changes, brought more in sync
1143           changed old K&R into ANSI function declarations
1144         * as/link/z80/lklibr.c (loadAdb): added
1145         * as/link/z80/lkmain.c: removed -- option from usage text
1146
1147 2007-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
1148
1149         * src/mcs51/gen.c (outBitC): optimized for no result
1150
1151 2007-10-31 Borut Razem <borut.razem AT siol.net>
1152
1153         * src/SDCCsymt.c: fixed (hopeful properly) bug
1154           #1805702 - order of extern matters
1155         * support/regression/tests/bug-1805702.c: enabled regtest for bug
1156           #1805702
1157
1158 2007-10-29 Borut Razem <borut.razem AT siol.net>
1159
1160         * src/SDCCsymt.c: reverted bad fixed of bug #1805702
1161           - order of extern matters
1162         * support/regression/tests/bug-1805702.c: disabled regtest for bug
1163           #1805702
1164
1165 2007-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
1166
1167         * src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
1168           24bitMode, portIsDS390
1169         * src/mcs51/gen.c (genOr): optimized for RFE 1750727
1170         * src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
1171           (notVolatileVariable): also check sloc names,
1172           (callFuncByName): moved ftab[] out of function and sorted it by use
1173
1174 2007-10-28 Maarten Brock <sourceforge.brock AT dse.nl>
1175
1176         * device/include/stdarg.h: fixed bug in va_start macro for --xstack
1177         * src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
1178           aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
1179         * src/SDCCicode.c (geniCodeCast): fixed bug 880197
1180         * support/regression/tests/bug-880197.c: new, added
1181
1182 2007-10-28 Borut Razem <borut.razem AT siol.net>
1183
1184         * support/regression/Makefile.in,
1185           support/regression/ports/mcs51-large/spec.mk,
1186           support/regression/ports/mcs51-xstack-auto/spec.mk,
1187           support/regression/ports/mcs51-stack-auto/spec.mk,
1188           support/regression/ports/mcs51-medium/spec.mk,
1189           support/regression/ports/mcs51-common/spec.mk,
1190           support/regression/ports/mcs51-common/*,
1191           support/regression/ports/mcs51-small/*:
1192           mcs51 renamed to mcs51-common, created mcs51-small
1193         * src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
1194         * support/regression/tests/bug-1805702.c: added regtest for bug
1195           #1805702
1196
1197 2007-10-26 Maarten Brock <sourceforge.brock AT dse.nl>
1198
1199         * src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b,
1200           added new rules 265 - 270
1201         * support/regression/tests/bug1721024.c:new, added
1202         * support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
1203           introduced new test-mcs51 to run all mcs51 tests
1204
1205 2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
1206
1207         * support/regression/tests/bug1816470.c: new, added
1208
1209 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
1210
1211         * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
1212           propagate for *,+,- with float, fixed bug 1816470
1213           (decorateType): cast to resultTypeProp instead of resultType
1214
1215 2007-10-19 Borut Razem <borut.razem AT siol.net>
1216
1217         * src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
1218           function is ineffective" for pic16 tareget
1219         * support/scripts/listerr.c: corrected include path
1220         * device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
1221           adjacent memory
1222
1223 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
1224
1225         * support/regression/tests/using.c: new, added
1226         * support/regression/tests/vaargs.c: fixed and enabled test
1227
1228 2007-10-18 Borut Razem <borut.razem AT siol.net>
1229
1230         * src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
1231           is ineffective
1232         * support/regression/tests/bug-983491.c: added regtest for bug #983491
1233
1234 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
1235
1236         * doc/sdccman.lyx: documented option --Werror
1237         * src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
1238           RegBankUsed[] earlier
1239
1240 2007-10-14 Maarten Brock <sourceforge.brock AT dse.nl>
1241
1242         * device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
1243         * src/pic/glue.c,
1244         * src/SDCCval.c,
1245         * src/SDCCast.c,
1246         * src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
1247           AST_ULONG_VALUE
1248         * src/SDCCast.c (decorateType): improved optimization of tri-op
1249         * src/SDCCerr.c (vwerror, setWError),
1250         * src/SDCCerr.h,
1251         * src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
1252           warnings as errors, thanks Stas Sergeev for PATCH 1813211
1253
1254 2007-10-13 Maarten Brock <sourceforge.brock AT dse.nl>
1255
1256         * src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
1257         * src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
1258         * support/regression/tests/bug-223113.c,
1259         * support/regression/tests/bug-426632.c,
1260         * support/regression/tests/bug-468811.c,
1261         * support/regression/tests/bug-477835.c,
1262         * support/regression/tests/bug-478094.c,
1263         * support/regression/tests/bug-499644.c,
1264         * support/regression/tests/bug-524209.c,
1265         * support/regression/tests/bug-524211.c,
1266         * support/regression/tests/packcast.c,
1267         * support/regression/tests/structidx.c: added empty tests
1268         * support/regression/tests/bug-607243.c: enabled test
1269
1270 2007-10-06 Borut Razem <borut.razem AT siol.net>
1271
1272         * .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
1273            support of universal binaries on Mac OS X
1274
1275 2007-10-02 Borut Razem <borut.razem AT siol.net>
1276
1277         * src/SDCCval.h: unified double2ul macro for all platforms
1278         * src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
1279         * support/regression/tests/bitwise.c: added regtest for bug #1777758
1280
1281 2007-09-30 Borut Razem <borut.razem AT siol.net>
1282
1283         * src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
1284           platforms
1285         * sdcc_vc_in.h: enabled warnings
1286         * src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
1287           unsigned type, result still unsigned
1288         * src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
1289
1290 2007-09-28 Raphael Neider <rneider AT web.de>
1291
1292         * src/pic/device.c (find_device): prevent buffer underflow error
1293         * src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
1294           the just destroyed list entry
1295
1296 2007-09-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1297
1298         * doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks
1299           Alexander Neundorf
1300
1301 2007-09-18 Borut Razem <borut.razem AT siol.net>
1302
1303         * src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
1304          applied to unsigned type, result still unsigned
1305
1306 2007-09-17 Borut Razem <borut.razem AT siol.net>
1307
1308         * src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c,
1309           src/SDCCicode.c, src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c,
1310           src/SDCCval.h, src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c,
1311           src/mcs51/gen.c, src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c,
1312           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/genarith.c,
1313           src/pic16/genutils.c, src/pic16/glue.c, src/pic16/main.c,
1314           src/z80/gen.c, src/z80/ralloc.c:
1315           fixed bug #1739860 - sdcc does not work correctly on some platforms
1316           (not finished)
1317           introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()
1318
1319 2007-09-17 Raphael Neider <rneider AT web.de>
1320
1321         * src/pic16/device.c: reverted to previous version
1322         * device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q
1323
1324 2007-09-16 Raphael Neider <rneider AT web.de>
1325
1326         * src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
1327           as this raises a ton of gpasm warnings, just emit a second label
1328         * src/pic16/devices.inc,
1329         * device/lib/pic16/pics.all,
1330         * device/lib/pic16/libdev/pic18f2585.c,
1331         * device/lib/pic16/libdev/pic18f2680.c,
1332         * device/lib/pic16/libdev/pic18f2682.c,
1333         * device/lib/pic16/libdev/pic18f2685.c,
1334         * device/lib/pic16/libdev/pic18f4585.c,
1335         * device/lib/pic16/libdev/pic18f4680.c,
1336         * device/lib/pic16/libdev/pic18f4682.c,
1337         * device/lib/pic16/libdev/pic18f4685.c,
1338         * device/include/pic16/pic18f2585.h,
1339         * device/include/pic16/pic18f2680.h,
1340         * device/include/pic16/pic18f2682.h,
1341         * device/include/pic16/pic18f2685.h,
1342         * device/include/pic16/pic18f4585.h,
1343         * device/include/pic16/pic18f4680.h,
1344         * device/include/pic16/pic18f4682.h,
1345         * device/include/pic16/pic18f4685.h,
1346         * device/include/pic16/pic18fregs.h: added 18f2585, 18f2680,
1347           18f2682, 18f2685, 18f4585, 18f4680, 18f4682, 18f4685,
1348           patch contributed by Anton Strobl, applied with changes
1349
1350 2007-09-16 Raphael Neider <rneider AT web.de>
1351
1352         * device/include/pic16/pic18f2431.h,
1353         * device/include/pic16/pic18f25j10.h,
1354         * device/include/pic16/pic18f4431.h,
1355         * device/include/pic16/pic18f45j10.h: adopted common include style
1356         * device/include/pic16/pic18f1320.h,
1357         * device/include/pic16/pic18f2320.h,
1358         * device/include/pic16/pic18f2525.h,
1359         * device/include/pic16/pic18f4320.h,
1360         * device/include/pic16/pic18f4525.h: NEW, just include proper .h file
1361         * device/include/pic16/pic18fregs.h: prepared for automatic include
1362           file selection by having DEVICE.h for every DEVICE
1363         * device/lib/pic16/libdev/pic18f2320.c,
1364         * device/lib/pic16/libdev/pic18f4320.c: just include proper .c file
1365
1366         * device/lib/pic16/configure.in,
1367         * device/lib/pic16/configure: use rm -rf instead of rmdir
1368         * device/lib/pic16/Makefile.in: use RMDIR to remove build directories
1369         * device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast
1370
1371 2007-09-09 Borut Razem <borut.razem AT siol.net>
1372
1373         * src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
1374           distingush between i386 and ppc Mac OS X versions
1375
1376 2007-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
1377
1378         * src/mcs51/gen.c (genReceive): fixed bug 1788177
1379         * support/regression/tests/bug1788177.c: new, added
1380
1381 2007-09-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1382
1383         * doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
1384         * device/include/mcs51/lint.h added keyword __naked
1385
1386 2007-09-04 Maarten Brock <sourceforge.brock AT dse.nl>
1387
1388         * src/pic16/glue.c,
1389         * src/pic/glue.c,
1390         * src/SDCCmem.h: removed maxRegBank
1391         * src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
1392           RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
1393         * src/SDCCsymt.c (checkFunction): set RegBankUsed[] here
1394         * src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
1395           name and behaviour to handle banked functions
1396           (scan4op): and use it to fix bug 1786213
1397
1398 2007-09-03 Raphael Neider <rneider AT web.de>
1399
1400         * device/include/pic16/pic18f248.h,
1401         * device/include/pic16/pic18f258.h,
1402         * device/include/pic16/pic18f448.h,
1403         * device/lib/pic16/libdev/pic18f248.c,
1404         * device/lib/pic16/libdev/pic18f258.c,
1405         * device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
1406           added T0CONbits, fixes #1786891
1407
1408 2007-08-29 Maarten Brock <sourceforge.brock AT dse.nl>
1409
1410         * src/ds390/gen.c (genFarPointerSet),
1411         * src/hc08/ralloc.c (packRegisters),
1412         * src/mcs51/ralloc.c (packRegisters),
1413         * src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
1414           bug 1750318
1415         * src/SDCCicode.h: POINTER_SET can be true for literals too
1416         * support/regression/tests/bug1750318.c: new, added
1417
1418 2007-08-23 Borut Razem <borut.razem AT siol.net>
1419
1420         * debugger/mcs51/sdcdb.c: fixed compilation with older readline
1421           library versions without the completition functionality
1422
1423 2007-08-22 Raphael Neider <rneider AT web.de>
1424
1425         * device/include/pic16/pic18f1220.h,
1426         * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
1427
1428 2007-08-12 Borut Razem <borut.razem AT siol.net>
1429
1430         * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
1431
1432 2007-08-11 Borut Razem <borut.razem AT siol.net>
1433
1434         * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
1435           src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
1436           support/Util/SDCCerr.[ch] moved to src
1437         * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
1438           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
1439           device/examples/ds390/tinitalk/tinitalk.dsp,
1440           device/examples/serialcomm/windows/serialcomm.dsp,
1441           support/librarian/librarian.dsp:
1442           removed linking of unused odbc32.lib and odbccp32.lib
1443         * support/scripts/winres.h:
1444           added for compilation with Visual C++ 2005 Express Edition
1445
1446 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1447
1448         * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
1449           and CKCON1.
1450
1451 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1452
1453         * sdccconf_in.h: update the endian test so that SPARC Solaris
1454           does not throw syntax errors
1455
1456 2007-08-06 Borut Razem <borut.razem AT siol.net>
1457
1458         * doc/sdccman.lyx: removed two index entries which prevented the
1459           generation of sdcc doc archive
1460
1461 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1462
1463         * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
1464           instead of lyx 1.5.0.
1465
1466 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1467
1468         * device/include/hc08/mc68hc908apxx.h: new header contributed by
1469           Lucas Loizaga, with minor modifications. Thanks!
1470
1471 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1472
1473         * doc/sdccman.lyx: Documented --acall-ajmp and described new features
1474           in sdcclib.
1475
1476 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1477
1478         * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
1479           src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
1480           with acall/ajmp.
1481
1482 2007-07-22 Borut Razem <borut.razem AT siol.net>
1483
1484         * configure.in, configure: re-introduced .version
1485         * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
1486           the version reverted to 2.7.0
1487
1488 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
1489
1490         * configure.in,
1491         * doc/sdccman.lyx: bumped version to 2.7.3
1492         * device/include/mcs51/compiler.h: fixed elif->else
1493         * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
1494         * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
1495           (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
1496            enable accuse for bit operands
1497         * src/SDCCmain.c (printVersionInfo),
1498         * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
1499           environment descriptor
1500         * src/SDCCutil.h: added getBuildEnvironment
1501         * src/SDCCglue.c (initialComments): use getBuildEnvironment
1502         * support/regression/tests/bug1464657.c: enabled test test_Peephole251
1503         * support/regression/tests/bug-408972.c: enabled test leftShiftLong
1504         * support/regression/tests/bug1348008.c,
1505         * support/regression/tests/bug1496419.c,
1506         * support/regression/tests/bug1503067.c,
1507         * support/regression/tests/preproc.c: added empty tests
1508
1509 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
1510
1511         * support/regression/tests/bug1678803.c: new, added
1512
1513 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
1514
1515         * as/link/aslink.h,
1516         * as/link/hc08/lkihx.c,
1517         * as/link/hc08/lkrloc.c,
1518         * as/link/mcs51/lkihx.c,
1519         * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
1520           ihxExtendedLinearAddress
1521         * as/link/mcs51/lkrloc.c (relr),
1522         * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
1523           acall/ajmp, see bug 830513
1524
1525 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
1526
1527         * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
1528           (cseBBlock): remember aggr2ptr has been used
1529         * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
1530           (geniCodeAssign): fixed bug 868103
1531         * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
1532           added operandSize prototype
1533         * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
1534           (genDataPointerSet): use max of size of right and result,
1535           (gencjne): added parameter useCarry for optimization,
1536           (genCmpEq): use carry if appropriate,
1537           (genXor): check if operand already in carry
1538         * support/regression/tests/bug-868103.c: enabled test
1539
1540 2007-07-12 Raphael Neider <rneider AT web.de>
1541
1542         * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
1543
1544 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
1545
1546         * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
1547           from Robert Larice, thanks
1548         * support/regression/tests/bitopcse.c,
1549         * support/regression/tests/bitvars.c,
1550         * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
1551         * support/regression/tests/bug-927659.c: enabled test for z80
1552         * support/regression/tests/bug1738367.c: added extra tests by Frieder
1553         * support/regression/tests/bug1745717.c: new, added
1554         * support/regression/tests/literalop.c,
1555         * support/regression/tests/nullstring.c: removed storage definitions that
1556           are now in testfwk.h
1557
1558 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
1559
1560         * device/include/stdbool.h: do not define __bool_true_false_are_defined
1561           and bool for targets that do not fully support it.
1562         * support/regression/tests/bug1546986.c,
1563         * support/regression/tests/bug1723128.c,
1564         * support/regression/tests/bug1734654.c,
1565         * support/regression/tests/bug1738367.c,
1566         * support/regression/tests/constantRange.c: only use bool if allowed
1567
1568 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
1569
1570         * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
1571           Larice, also handle function pointers
1572         * support/regression/tests/bug1749275.c: new, added
1573
1574 2007-07-03 Borut Razem <borut.razem AT siol.net>
1575
1576         * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
1577           src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
1578           #1746528: SDCC should ignore ':' in inline assembler comments
1579         * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
1580
1581 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
1582
1583         * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
1584         * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
1585
1586 2007-06-29 Borut Razem <borut.razem AT siol.net>
1587
1588         * src/SDCCmain.c: fixed bug
1589           #1744746: SDCC #4867: broken option --xram-size
1590
1591 2007-06-28 Borut Razem <borut.razem AT siol.net>
1592
1593         * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
1594           find out the endianess of host machine for ucsim
1595
1596 2007-06-27 Borut Razem <borut.razem AT siol.net>
1597
1598         * support/regression/generate-cases.py: corrected the file name
1599           in warning
1600         * configure.in, configure, sdccconf_in.h: find out the endianess of
1601           host machine
1602         * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
1603           negative size
1604
1605 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
1606
1607         * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
1608
1609 2007-06-26 Borut Razem <borut.razem AT siol.net>
1610
1611         * support/regression/generate-cases.py: display warning if function
1612           list is empty; implemented more flexible rule for detection of
1613           testing functions, allowing return type 'void' in the same line as
1614           the function name in the function definition
1615         * support/regression/tests/bug-1654060.c: corrected test
1616         * support/librarian/sdcclib.c: fixed warning:
1617           format '%s' expects type 'char *', but argument 2 has type 'int'
1618
1619 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1620
1621         * support/librarian/sdcclib.c: Added feature Requests [1510635]
1622           Multiple infiles for sdcclib.
1623
1624 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1625
1626         * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
1627           bug 1731741
1628
1629 2007-06-18 Borut Razem <borut.razem AT siol.net>
1630
1631         * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
1632           how to handle comments, so they have to be removed by the
1633           preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
1634         * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
1635           src/pic16/main.c, src/pic/main.c, src/z80/main.c,
1636           support/Util/SDCCerr.c, support/Util/SDCCerr.h:
1637           table driven option hadling
1638
1639 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
1640
1641         * src/SDCCast.c (decorateType),
1642         * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
1643           iCode to ast level to fix bug 1738367
1644         * support/regression/tests/bug1738367.c: new, added
1645
1646 2007-06-15 Raphael Neider <rneider AT web.de>
1647
1648         * src/pic16/devices.inc,
1649         * device/lib/pic16/pics.all,
1650         * device/include/pic16/pic18fregs.h,
1651         * device/include/pic16/pic18f[24][45]20.h,
1652         * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
1653           18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
1654         * device/lib/pic16/Makefile.in: faster cleanup
1655
1656 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1657
1658         * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
1659
1660 2007-06-13 Raphael Neider <rneider AT web.de>
1661
1662         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
1663
1664 2007-06-12 Raphael Neider <rneider AT web.de>
1665
1666         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
1667           suppress bit defines if NO_BIT_DEFINES is #define'd
1668         * device/include/pic/pic*.h: recreated all headers to include
1669           conditional bit defines
1670         * device/include/pic/pic16f886.h,
1671         * device/include/pic/pic16f887.h: fixed based on newer .inc file
1672         * device/include/pic/recreate.sh: script to recreate the complete
1673           device library files based on the currently supported devices
1674
1675 2007-06-12 Borut Razem <borut.razem AT siol.net>
1676
1677         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
1678           support/regression/Makefile.in, support/scripts/build.mak,
1679           support/scripts/Makefile.snapshot:
1680           use new svn URL scheme
1681         * doc/sdccman.lyx: SDCC Wiki moved to
1682           http://sdcc.wiki.sourceforge.net/
1683
1684 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1685
1686         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
1687         * support/regression/tests/bug1734654.c: added
1688
1689 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
1690
1691         * src/SDCCast.c (decorateType): optimized '?' for equal operands
1692         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
1693           with literal operands
1694
1695 2007-06-10 Borut Razem <borut.razem AT siol.net>
1696
1697         * as/link/z80/lklibr.c: fixed mingw build warning
1698           lklibr.c:575: warning: implicit declaration of function 'tolower'
1699         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
1700           src/z80/main.c: move target specific options from src/SDCCmain.c
1701           to src/<target>/main.c
1702
1703 2007-06-09 Borut Razem <borut.razem AT siol.net>
1704
1705         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
1706           removed unused swap_sense; removed outBitCLong, replaced with outBitC
1707         * support/regression/tests/bug-1294691.c: added
1708
1709 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
1710
1711         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
1712           can also be static, fixes bug 1733438
1713         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
1714           have absolute address too
1715           (computeType): added optimization for 'cond ? true : false'
1716         * support/regression/tests/absolute.c: added test for static absolute var
1717
1718 2007-06-08 Raphael Neider <rneider AT web.de>
1719
1720         * src/regression/Makefile: suppress parallel builds, allow easy
1721           switching between pic14/pic16 ports
1722         * src/regression/picregs.h: added pic14/16 header file switch
1723         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
1724           inline.c,nestfor.c,string1.c}: include "picregs.h"
1725
1726 2007-06-07 Borut Razem <borut.razem AT siol.net>
1727
1728         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
1729           permanent solution to suppress GCC 4.2.0 c++ warning:
1730           deprecated conversion from string constant to `char *'
1731           use 'const char *' where ever required
1732         * support/regression/generate-cases.py: implemented more flexible rule
1733           for detection of testing functions, allowing white-spaces surrounding
1734           the function name and the 'void' parameter.
1735         * support/regression/tests/constantRange.c,
1736           support/regression/tests/scott-compare3.c: fixed failing regression
1737           tests, uncovered by implementation of more flexible rule for detection
1738           of testing functions
1739
1740 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
1741
1742         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
1743
1744 2007-06-04 Borut Razem <borut.razem AT siol.net>
1745
1746         * configure.in, configure, config_vc.awk: sdcc version number is now
1747           stored in configure.in; removed .version
1748         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
1749           doc/INSTALL.txt: version bumped to 2.7.2
1750         * sim/ucsim/configure.in, sim/ucsim/configure:
1751           use "read" to read from .version
1752
1753 2007-06-03 Borut Razem <borut.razem AT siol.net>
1754
1755         * */Makefile.in: removed annoying warning:
1756           Makefile:xx: Makefile.dep: No such file or directory
1757
1758 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
1759
1760         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
1761           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
1762         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
1763         * src/SDCCast.c (resultTypePropagate): propagate for '!',
1764           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
1765           bugfix: only use newBoolLink for bit result type
1766         * src/SDCCicode.c (geniCodeLogic): added param tree,
1767           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
1768           (geniCodeLogicAndOr): use IS_BIT,
1769           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
1770           (ast2iCode): added tree param to geniCodeLogic for comparisons
1771         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
1772         * support/regression/tests/bug1723128.c: added test NotZero
1773
1774 2007-06-01 Borut Razem <borut.razem AT siol.net>
1775
1776         * SDCPP synchronized with GCC CPP release version 4.2.0,
1777           currently the latest release:
1778         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1779           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
1780           support/cpp2/cppdefault.h, support/cpp2/except.h,
1781           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
1782           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
1783           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
1784           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
1785           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
1786           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
1787           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
1788           support/cpp2/opts.h, support/cpp2/output.h,
1789           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
1790           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
1791           support/cpp2/system.h, support/cpp2/version.c,
1792           support/cpp2/Makefile.in: modified
1793         * support/cpp2/opts-common.c: added
1794         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
1795         * device/lib/pic16/libdev/pic18f[24]5j10.c:
1796           search for included source file in local directory
1797         * sim/ucsim/configure, sim/ucsim/configure.in:
1798           temporary solution to suppress GCC 4.2.0 c++ warning:
1799           deprecated conversion from string constant to `char *'
1800
1801 2007-06-01 Raphael Neider <rneider AT web.de>
1802
1803         * device/lib/pic/libdev/pic12f683.c,
1804         * device/include/pic/pic12f683.h: added GPIO bits
1805
1806 2007-06-01 Raphael Neider <rneider AT web.de>
1807
1808         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
1809           quotation marks, clarified role of PIC14 vs. PIC16 ports
1810         * src/pic16/devices.inc,
1811         * device/include/pic16/pic18fregs.h,
1812         * device/include/pic16/pic18f[24][45]j10.h,
1813         * device/lib/pic16/pics.all,
1814         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
1815           18f24j10, 18f25j10, 18f44j10, and 18f45j10
1816         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
1817           for new devices as they are not yet supported by gputils
1818
1819 2007-05-31 Borut Razem <borut.razem AT siol.net>
1820
1821         * Small Device C Compiler 2.7.0 released
1822         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
1823           changed sdcc version to 2.7.1
1824         * support/scripts/sdcc.nsi: added How to create WIN32 release
1825           setup.exe package
1826
1827 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1828
1829         * doc/sdccman.lyx: documented initialization and allocation of absolute
1830           variables, bit parameter passing, the need for function pointers to be
1831           reentrant and alpha quality support of inline and retrict
1832
1833 2007-05-26 Borut Razem <borut.razem AT siol.net>
1834
1835         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
1836           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
1837         * docs/knownbugs.html: updated
1838
1839 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
1840
1841         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
1842           thanks Jan Waclawek
1843         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
1844           AOP_CRY and ruonly
1845           (gencjneshort): optimized when left is AOP_DIR
1846         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
1847           initializing unions in a struct/array
1848         * support/regression/fwk/include/testfwk.h: added defines for data, near
1849           and far for host and z80
1850         * support/regression/tests/bug1723128.c: new, added
1851
1852 2007-05-22 Borut Razem <borut.razem AT siol.net>
1853
1854         * doc/knownbugs.html: updated
1855
1856 2007-05-21 Raphael Neider <rneider AT web.de>
1857
1858         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
1859           error message instead
1860         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
1861
1862 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
1863
1864         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
1865
1866 2007-05-21 Raphael Neider <rneider AT web.de>
1867
1868         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
1869           closes #1722392
1870         * src/regression/gpsim_assert.h,
1871         * src/regression/Makefile,
1872         * src/regression/pcodeopt.c: regression test for the above fix
1873
1874 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
1875
1876         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
1877           jumps to self, fixed bug 1717281
1878
1879 2007-05-10 Borut Razem <borut.razem AT siol.net>
1880
1881         * support/scripts/gen_known_bugs.pl: cosmetic fix
1882         * doc/knownbugs.html: generated by gen_known_bugs.pl
1883
1884 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1885
1886         * src/SDCCast.c (createFunction): also generate non-inlined version of
1887           function for functions declared as "static inline"
1888         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
1889           function can be inlined after non-inlined version generated.
1890
1891 2007-05-10 Borut Razem <borut.razem AT siol.net>
1892
1893         * support/scripts/gen_known_bugs.pl: added script
1894           which generates knownbugs.html
1895
1896 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
1897
1898         * doc/knownbugs.html: updated for release 2.7.0
1899
1900 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1901
1902         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
1903
1904 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
1905
1906         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
1907           (throughout): updated generating comments
1908         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
1909           (throughout): updated generating comments
1910         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
1911           rule instead of at the second, or it might skip lines when removing the
1912           complete match
1913         * support/regression/tests/bug1714204.c: changed test to foo
1914
1915 2007-05-08 Borut Razem <borut.razem AT siol.net>
1916
1917         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
1918           thanks to SDCC Distributed Compile Farm members,
1919           added Z80 and GBZ80 command line options
1920         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
1921
1922 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
1923
1924         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
1925         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
1926         * support/regression/tests/longlit.c: modified to be tested at all and
1927           to pass the actual test
1928
1929 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1930
1931         * device/include/mcs51/uPSD33xx.h: Added.
1932
1933 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
1934
1935         * device/lib/_gptrput.c,
1936         * device/lib/_gptrget.c: removed old code,
1937          (_gptrgetWord),
1938         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
1939         * support/regression/tests/bug1714204.c: new, added
1940
1941 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1942
1943         * support/regression/tests/regtrack.c: test was never executed
1944           because of the regression test being picky about white spaces.
1945         * device/lib/mcs51/crtclear.asm: added comment
1946
1947 2007-05-06 Raphael Neider <rneider AT web.de>
1948
1949         * device/lib/pic/Makefile.rules,
1950         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
1951           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
1952
1953 2007-05-06 Raphael Neider <rneider AT web.de>
1954
1955         * src/pic16/device.h,
1956         * src/pic16/main.h,
1957         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
1958           _pic16_setDefaultOptions): removed/reordered command-line args
1959         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
1960           devices, regrouped command line args, environment variables),
1961           clarified sone points, added sections on how to add devices to the
1962           PIC14/PIC16 ports
1963
1964 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
1965
1966         * src/z80/peeph.def: fixed bug in rule 2
1967
1968 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
1969
1970         * src/port.h: added TARGET_MCS51_LIKE
1971         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
1972           take advantage of it too
1973         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
1974           (shiftR2Left2Result): Optimized: don't check shifting by 0
1975         * src/z80/peeph-z80.def,
1976         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
1977           modifications, see patch 1700823
1978         * src/mcs51/peep.c (): fixed bug 1712928
1979         * support/regression/tests/bug1712928.c: new, added
1980
1981 2007-05-05 Borut Razem <borut.razem AT siol.net>
1982
1983         * device/lib/pic16/Makefile.common.in,
1984           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
1985           removed bash dependencies
1986
1987 2007-05-01 Borut Razem <borut.razem AT siol.net>
1988
1989         * src/SDCCicode.c:
1990           fixed bug #1710507: --i-code-in-asm makes compile fail
1991           all iCode comments are now one liners
1992         * src/mcs51/gen.c: fixed memory leak
1993
1994 2007-05-01 Raphael Neider <rneider AT web.de>
1995
1996         * device/lib/pic/libdev/*.c
1997         * device/include/pic/*.h: regenerated all device libs from updated
1998           .inc files
1999         * support/scripts/inc2h.pl: documented usage, now uses strict to
2000           catch more bugs
2001
2002 2007-04-30 Borut Razem <borut.razem AT siol.net>
2003
2004         * doc/sdccman.lyx:
2005           fixed bug #1669175: Problem with space in output paths
2006           documented how to use paths with spaces for Windows users
2007
2008 2007-04-29 Borut Razem <borut.razem AT siol.net>
2009
2010         * Fixed svn:eol-style and svn:keywords properties
2011         * src/SDCCval.c: fixed bug
2012           #1592871: Segfault with "large" const arrays of characters
2013           replaced recursion with iteration
2014         * Removed svn:executable property from non-executable files
2015
2016 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
2017
2018         * src/mcs51/gen.c (genRet): fixed bug 1707003
2019
2020 2007-04-27 Raphael Neider <rneider AT web.de>
2021
2022         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
2023           createReachingDefinitions,assignValnums,pic16_destructDF,
2024           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
2025           prevent NULL pointer dereferences
2026         * device/lib/pic/libdev/pic16f886.c,
2027         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
2028           prevent building them, gputils do not really support them yet
2029
2030 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2031
2032         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
2033           helps printf_small. 32 bytes more __idata mem.
2034
2035 2007-04-27 Raphael Neider <rneider AT web.de>
2036
2037         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
2038           return early when pb or pb->pcHead is NULL (patch #1708427)
2039         * src/regression/empty.c,
2040         * src/regression/Makefile: added test with empty functions
2041         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
2042
2043 2007-04-27 Borut Razem <borut.razem AT siol.net>
2044
2045         * src/SDCCast.c: fixed feature request
2046           #1547512: Redundant strings linked when using sizeof("abc")
2047
2048 2007-04-23 Borut Razem <borut.razem AT siol.net>
2049
2050         * doc/sdccman.lyx, src/SDCCmain.c:
2051           peep-hole comments are generated only if --fverbose-asm option is
2052           specified and --no-peep-comments is not, as proposed by Frieder.
2053         * support/regression/Makefile.in: compile regression tests with
2054           --fverbose-asm option so one can "grep" whether a new (or an old)
2055           peephole is (still) applied; requested by Frieder.
2056
2057 2007-04-23 Kevin Buettner <kevin AT buettner.to>
2058
2059         * device/include/pic/pic16f886.h,
2060         * device/include/pic/pic16f887.h,
2061         * device/lib/pic/libdev/pic16f886.c,
2062         * device/lib/pic/libdev/pic16f887.c,
2063         * device/include/pic/pic14devices.txt,
2064         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
2065
2066 2007-04-23 Kevin Buettner <kevin AT buettner.to>
2067
2068         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
2069           fixes #1704666
2070
2071 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2072
2073         * device/lib/_memset.c: assembler version for mcs51
2074
2075 2007-04-22 Borut Razem <borut.razem AT siol.net>
2076
2077         * support/scripts/listerr.c: program to create the list of errors and
2078           warnings list from - added
2079         * doc/sdccman.lyx: removed the note
2080           "For list of warnings and corresponding codes, see err_warn.txt"
2081         * src/SDCCsymt.c: fixed bug #1699804:
2082           Bug with some uses of sizeof(static local array) (MCS51)
2083         * support/regression/tests/bug-1699804.c: added
2084
2085 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
2086
2087         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
2088           (main): added option -i,
2089           (asmbl, case S_INCL): use search_path_fopen,
2090           mostly from patch 1579668 by Peter Miller, thanks
2091         * src/z80/main.c: fixed typo --callee-saves-bc
2092         * device/include/mcs51/compiler.h: added sfrword for Tasking
2093
2094 2007-04-20 Borut Razem <borut.razem AT siol.net>
2095
2096         * src/z80/main.c: replaced reserved keyword asm with asmblr
2097
2098 2007-04-19 Borut Razem <borut.razem AT siol.net>
2099
2100         * src/port.h: use const pointers to strings
2101         * src/SDCCargs.h: declared getStringArg() and getIntArg()
2102         * src/pic16/main.c: include SDCCargs.h
2103         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
2104           const char, since the strings are dynamically allocated
2105         * src/SDCCmain.c: options.code_seg and options.const_seg are
2106           dynamically allocated; check port specific command line options
2107           before the general ones
2108         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
2109
2110 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
2111
2112         * device/include/ds400rom.h,
2113         * device/lib/ds390/lcd390.c,
2114         * device/lib/ds390/memcpyx.c,
2115         * device/lib/ds390/rtc390.c,
2116         * device/lib/ds400/ds400rom.c,
2117         * device/lib/ds400/memcpyx.c,
2118         * device/lib/hc08/_ret.c: more replacements of keywords with their
2119           double underscore equivalents
2120         * device/lib/ds390/Makefile.in,
2121         * device/lib/ds400/Makefile.in,
2122         * device/lib/gbz80/Makefile.in,
2123         * device/lib/hc08/Makefile.in,
2124         * device/lib/mcs51/Makefile.in,
2125         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
2126
2127 2007-04-17 Borut Razem <borut.razem AT siol.net>
2128
2129         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
2130           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
2131           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
2132           to --fverbose-asm, to be gcc'ish
2133
2134 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
2135
2136         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
2137
2138 2007-04-17 Borut Razem <borut.razem AT siol.net>
2139
2140         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
2141         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
2142           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
2143           with their double underscore equivalent
2144
2145 2007-04-14 Borut Razem <borut.razem AT siol.net>
2146
2147         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
2148           source"
2149
2150 2007-04-13 Borut Razem <borut.razem AT siol.net>
2151
2152         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
2153           C99 standard
2154         * device/examples/serialcomm/windows/serial.[ch],
2155           device/examples/serialcomm/windows/test_serialcomm.cpp:
2156           updated by Bela Torok
2157         * device/examples/serialcomm/windows/serialcomm.dsw,
2158           device/examples/serialcomm/windows/serialcomm.dsp: added
2159
2160 2007-04-13 Jan Waclawek <wek AT efton.sk>
2161
2162         * doc/sdccman.lyx: additions and changes at various places
2163           (submitted as #1697136).
2164           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
2165
2166 2007-04-10 Borut Razem <borut.razem AT siol.net>
2167
2168         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
2169           LyX file format changed to 245
2170         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
2171           "FreeWare" replaced with "free open source"
2172
2173 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
2174
2175         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
2176
2177 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
2178
2179         * device/include/pic16/pic18fregs.h,
2180         * device/lib/_bp.c,
2181         * device/lib/_decdptr.c,
2182         * device/lib/_divsint.c,
2183         * device/lib/_divslong.c,
2184         * device/lib/_divuint.c,
2185         * device/lib/_divulong.c,
2186         * device/lib/_fs2schar.c,
2187         * device/lib/_fs2sint.c,
2188         * device/lib/_fs2slong.c,
2189         * device/lib/_fs2uchar.c,
2190         * device/lib/_fs2uint.c,
2191         * device/lib/_fs2ulong.c,
2192         * device/lib/_fsadd.c,
2193         * device/lib/_fscmp.c,
2194         * device/lib/_fsdiv.c,
2195         * device/lib/_fseq.c,
2196         * device/lib/_fsget1arg.c,
2197         * device/lib/_fsget2args.c,
2198         * device/lib/_fsgt.c,
2199         * device/lib/_fslt.c,
2200         * device/lib/_fsmul.c,
2201         * device/lib/_fsneq.c,
2202         * device/lib/_fsnormalize.c,
2203         * device/lib/_fsreturnval.c,
2204         * device/lib/_fsrshift.c,
2205         * device/lib/_fssub.c,
2206         * device/lib/_fsswapargs.c,
2207         * device/lib/_gptrget.c,
2208         * device/lib/_gptrgetc.c,
2209         * device/lib/_gptrput.c,
2210         * device/lib/_logexpf.c,
2211         * device/lib/_modsint.c,
2212         * device/lib/_modslong.c,
2213         * device/lib/_moduint.c,
2214         * device/lib/_modulong.c,
2215         * device/lib/_mulint.c,
2216         * device/lib/_mullong.c,
2217         * device/lib/_schar2fs.c,
2218         * device/lib/_ser.c,
2219         * device/lib/_setjmp.c,
2220         * device/lib/_sint2fs.c,
2221         * device/lib/_slong2fs.c,
2222         * device/lib/_spx.c,
2223         * device/lib/_uchar2fs.c,
2224         * device/lib/_uint2fs.c,
2225         * device/lib/_ulong2fs.c,
2226         * device/lib/asincosf.c,
2227         * device/lib/atanf.c,
2228         * device/lib/calloc.c,
2229         * device/lib/ds390/tinibios.c,
2230         * device/lib/ds400/tinibios.c,
2231         * device/lib/expf.c,
2232         * device/lib/free.c,
2233         * device/lib/hc08/_mulint.c,
2234         * device/lib/logf.c,
2235         * device/lib/malloc.c,
2236         * device/lib/printf_fast.c,
2237         * device/lib/printf_tiny.c,
2238         * device/lib/printfl.c,
2239         * device/lib/realloc.c,
2240         * device/lib/ser_ir.c,
2241         * device/lib/serial.c,
2242         * support/regression/tests/libmullong.c: replaced all special keywords
2243           with their double underscore equivalent
2244         * support/regression/ports/mcs51-xstack-auto/spec.mk,
2245         * device/lib/Makefile.in: compile libs with --std-c99 instead of
2246           --std-sdcc99
2247         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
2248           (genRet): if the bit-symbol is ruonly it already is in the carry
2249         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
2250         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
2251         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
2252           type UCHAR if dest is not bit
2253
2254 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
2255
2256         * device/include/math.h,
2257         * device/lib/cotf.c,
2258         * device/lib/expf.c,
2259         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
2260
2261 2007-04-01 Borut Razem <borut.razem AT siol.net>
2262
2263         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
2264           fixed bug #1692042: input buffer overflow...scanner uses REJECT
2265         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
2266           gcc_unreachable() called internal_error()...
2267
2268 2007-03-30 Raphael Neider <rneider AT web.de>
2269
2270         * src/pic/ralloc.c (isData): suppress garbage debug output
2271
2272 2007-03-28 Borut Razem <borut.razem AT siol.net>
2273
2274         * doc/sdccman.lyx:
2275           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
2276           is developed, built and used worldwide, and the word "night" doesn't
2277           make any sense.
2278
2279 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
2280
2281         * device/include/mcs51/C8051F360.h: new, added
2282         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
2283
2284 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2285
2286         * src/SDCC.y (declaration_specifiers, function_specifier),
2287         * support/Util/SDCCerr.c,
2288         * support/Util/SDCCerr.h,
2289         * src/SDCCsymt.h,
2290         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
2291           inline keyword
2292         * src/SDCCmem.c (deallocParms),
2293         * src/SDCCast.c: support for function inlining, not quite complete
2294         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
2295           'restrict' qualifier
2296
2297 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
2298
2299         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
2300           (saveRBank, unsaveRBank): don't save bits,
2301           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
2302         * support/regression/tests/bug1535242.c: new, added
2303         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
2304           thanks Alexey Shamrin <shamrin AT gmail.com>,
2305           made assert.h header ANSI compliant (added a check for NDEBUG macro,
2306           removed header guard)
2307         * .version,
2308         * sdcc.spec: bumped version to 2.6.5
2309         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
2310
2311 2007-03-22 Borut Razem <borut.razem AT siol.net>
2312
2313         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
2314           fixed bug #1653671: sdcdb integration into ddd is broken
2315
2316 2007-03-22 Raphael Neider <rneider AT web.de>
2317
2318         * src/pic/gen.c (popGetExternal): augmented to also create references
2319           to external variables (not only labels),
2320           (genCall): comment on plan to reduce PAGESEL overhead,
2321           (genFunction, genEndFunction): also save/restore FSR around interrupt
2322           handling code, removed lots of unused code
2323           (genDivOneByte): release acquired temp register
2324         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
2325           of popGetExternal
2326         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
2327           for registers that need to be saved during interrupts (FSR, STATUS,
2328           PCLATH; W needs special handling), currently only FSR is used
2329
2330 2007-03-22 Raphael Neider <rneider AT web.de>
2331
2332         * device/include/pic/pic14devices.txt: 16f688 has only one config word
2333
2334 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2335
2336         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
2337
2338 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
2339
2340         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
2341
2342 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
2343
2344         * as/link/aslink.h: added LKOBJEXT
2345         * as/link/hc08/link_hc08.dsp,
2346         * as/link/hc08/Makefile.bcc,
2347         * as/link/hc08/Makefile.in,
2348         * as/link/mcs51/aslink.dsp,
2349         * as/link/mcs51/Makefile.bcc,
2350         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
2351         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
2352         * as/link/lkaomf51.c: merged and moved
2353         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
2354         * as/link/z80/lkdata.c,
2355         * as/link/lkdata.c: merged and moved
2356         * as/link/hc08/lkmain.c,
2357         * as/link/mcs51/lkmain.c: cosmetic changes
2358         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
2359         * as/link/lklex.c: use LKOBJEXT
2360         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
2361           ANSI-fied functions, removed bubble-sorts
2362         * as/link/z80/lksym.c           as/link/lksym.c: merged,
2363           ANSI-fied functions
2364         * as/link/z80/linkgbz80.dsp,
2365         * as/link/z80/linkz80.dsp,
2366         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
2367           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
2368         * as/link/z80/lkhead.c,
2369         * as/link/z80/lklex.c: deleted
2370         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
2371         * as/link/z80/lkmain.c: added copyfile()
2372
2373 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2374
2375         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
2376
2377 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2378
2379         * device/lib/_strlen.c: assembler version for mcs51
2380
2381 2007-03-13 Raphael Neider <rneider AT web.de>
2382
2383         * device/include/pic16/pic18f2221.h,
2384         * device/include/pic16/pic18f2321.h,
2385         * device/include/pic16/pic18f2331.h,
2386         * device/include/pic16/pic18f4221.h,
2387         * device/include/pic16/pic18f4321.h,
2388         * device/include/pic16/pic18f4331.h: fixed config byte location names
2389         * support/scripts/inc2h-pic16.pl: removed debug output, emit
2390           consistently named config byte locations
2391
2392 2007-03-13 Borut Razem <borut.razem AT siol.net>
2393
2394         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
2395           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
2396           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
2397           as/link/z80/Makefile.in, as/z80/Makefile.in:
2398           introduced LDFLAGS
2399
2400 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2401
2402         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
2403         * device/lib/printf_large.c: pointer was converted to generic
2404         pointer for mcs51 models other than model-small (Maarten noticed)
2405
2406 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2407
2408         * device/include/mcs51/ADuC84x.h: Added.
2409
2410 2007-03-10 Borut Razem <borut.razem AT siol.net>
2411
2412         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
2413           fixed RFE #1624219: double backslashes in filenames;
2414           functions hexEscape(), octalEscape() and copyStr() moved from
2415           SDCCval.c to SDCCutil.c and made them glovbally available
2416
2417 2007-03-09 Borut Razem <borut.razem AT siol.net>
2418
2419         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
2420           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
2421           1673361: Missaligned comments in output files
2422
2423 2007-03-09 Raphael Neider <rneider AT web.de>
2424
2425         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
2426
2427 2007-03-09 Raphael Neider <rneider AT web.de>
2428
2429         * src/pic/gen.c,
2430         * src/pic/glue.c,
2431         * src/pic/ralloc.c: suppress undesired debug output
2432         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
2433
2434 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2435
2436         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
2437
2438 2007-03-07 Borut Razem <borut.razem AT siol.net>
2439
2440         * device/lib/pic16/libdev/pic18f[24][34]31.c:
2441           search include files in the current directory
2442
2443 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
2444
2445         * src/SDCCglue.c (emitMaps, glue),
2446         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
2447           absolute xdata
2448         * support/regression/tests/absolute.c: added xdata test
2449
2450 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
2451
2452         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
2453           added condition to macro, fixes bug 1666080
2454
2455 2007-03-02 Raphael Neider <rneider AT web.de>
2456
2457         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
2458
2459 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2460
2461         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
2462         be cleared. Unconditionally set __XPAGE
2463         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
2464
2465 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2466
2467         * src/SDCCglobl.h,
2468         * src/SDCCmain.c,
2469         * src/mcs51/gen.c,
2470         * src/mcs51/rtrack.c,
2471         * src/ds390/gen.c,
2472         * doc/sdccman.lyx: added --no-gen-comments
2473         * src/mcs51/peeph.def: added 192.b, disabled 185
2474
2475 2007-02-25 Raphael Neider <rneider AT web.de>
2476
2477         * src/pic16/gen.c (genCast): fixed typo
2478         * device/lib/pic16/Makefile.subdir: only install existing files
2479         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
2480
2481 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
2482
2483         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
2484         * device/lib/mcs51/crtclear.asm,
2485         * device/lib/mcs51/crtxclear.asm: renumbered labels
2486         * device/lib/mcs51/Makefile.in: added crtcall.asm
2487         * doc/sdccman.lyx: documented mcs51 crt* library startup code
2488         * src/mcs51/gen.c (movc): removed,
2489           (aopGet, genPlusBits): clear a after loading the carry (possibly from
2490             acc.x or psw.x),
2491           (toCarry, genSend, genRet): added function toCarry,
2492           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
2493           (assignBit, genAssign, genCast): added function assignBit
2494         * src/mcs51/Makefile.bcc: added rtrack.c
2495         * src/mcs51/ralloc.h: made valueKnown a bitfield
2496         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
2497           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
2498           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
2499         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
2500         * src/z80/gen.c: added AOP_IS_PAIRPTR,
2501           (_pop): only pop valid pairs, see gencjneshort,
2502           (gencjneshort): return pair that still needs to be popped, restructured,
2503           (gencjne, genCmpEq): call _pop
2504
2505 2007-02-23 Raphael Neider <rneider AT web.de>
2506
2507         * device/include/pic/pic14devices.txt: 16f684 has only one config word
2508
2509 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2510
2511         * device/include/mcs51/P89LPC925.h: Added.
2512
2513 2007-02-18 Raphael Neider <rneider AT web.de>
2514
2515         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
2516
2517 2007-02-17 Borut Razem <borut.razem AT siol.net>
2518
2519         * support/cpp2/directives.c, support/cpp2/version.c:
2520           synchronized with GCC CPP 4.1.2
2521
2522 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2523
2524         * src/mcs51/rtrack.h,
2525         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
2526           by checking the strings passed by emitcode() to the assembler.
2527           Feel free to change. This in part addresses RFE #482179.
2528           Set environment variable SDCC_RTRACK to enable.
2529         * src/mcs51/gen.c: inserted hooks
2530         * src/mcs51/ralloc.h: added two members to struct regs
2531         * support/regression/tests/regtrack.c: added
2532
2533 2007-02-14 Borut Razem <borut.razem AT siol.net>
2534
2535         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
2536         * Makefile.in: applied patch from Makefile related part of
2537           #1469393: Compiler does not initialize static data
2538
2539 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
2540
2541         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
2542           for better fix of bug 1273984, compiles pic16 rand.c
2543
2544 2007-02-12 Borut Razem <borut.razem AT siol.net>
2545
2546         * src/pic16/main.c: fixed pic16 standard library directory bug
2547
2548 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
2549
2550         * src/hc08/gen.c (genSwap): fix swap regression test
2551
2552 2007-02-10 Borut Razem <borut.razem AT siol.net>
2553
2554         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
2555           with same scope
2556         * support/regression/tests/bug-1654060.c: added regression test for
2557           #1654060
2558
2559 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
2560
2561         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
2562         bit moves in return statement
2563
2564 2007-02-09 Borut Razem <borut.razem AT siol.net>
2565
2566         * src/SDCC.y: fixed bug #1654060 typedef within function causes
2567           syntax error
2568
2569 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
2570
2571         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
2572         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
2573
2574 2007-02-07 Raphael Neider <rneider AT web.de>
2575
2576         * src/pic16/devices.inc,
2577         * device/include/pic16/pic18fregs.h,
2578         * device/include/pic16/pic18f[24][34]31.h,
2579         * device/lib/pic16/libdev/pic18f[24][34]31.c,
2580         * device/lib/pic16/pics.all: added 18f[24][34]31 family
2581         * device/lib/pic16/libio/i2c.ignore: do not build i2c
2582
2583 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
2584
2585         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
2586           can this have lived here for so many years?
2587         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
2588           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
2589         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
2590
2591 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
2592
2593         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
2594         appended by loop induction must be at the very end of the eBBlock
2595
2596 2007-02-05 Kevin Vigor
2597
2598         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
2599
2600 2007-02-05 Borut Razem <borut.razem AT siol.net>
2601
2602         * support/regression/fwk/lib/timeout.c: native WIN32 port,
2603           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
2604
2605 2007-02-03 Borut Razem <borut.razem AT siol.net>
2606
2607         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
2608           applied patch #1646602 option to set default signedness of char to
2609           unsigned, added -funsigned-char command line option,
2610           thanks to Gunther Jehle
2611         * device/lib/Makefile.in: added the -f option to rm so it doesn't
2612           prompt for file deletion a few hundred times (especially the
2613           subversion files, which have ro permissions so it asks for
2614           confirmation), thanks to Simon McAuliffe;
2615           added {} + option to find in order to remove multiple files from a
2616           single rm commad
2617
2618 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2619
2620         * device/include/mcs51/SST89x5xRDx.h: Added.
2621
2622 2007-02-02 Raphael Neider <rneider AT web.de>
2623
2624         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
2625         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
2626
2627 2007-02-01 Raphael Neider <rneider AT web.de>
2628
2629         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
2630           config words again
2631
2632 2007-01-31 Borut Razem <borut.razem AT siol.net>
2633
2634         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
2635           if compiled with GCC. Thanks to Raphael Neider
2636
2637 2007-01-31 Raphael Neider <rneider AT web.de>
2638
2639         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
2640             operand names, handles name and (name + n) for all n,
2641           (sameBank): restructured, also check bank allocation policy,
2642         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
2643           (pic14_operandsAllocatedInSameBank): check whether to operands
2644             will be allocated into the same bank (i.e., section) to reduce
2645             BANKSEL overhead, queried from pcode.c:sameBank,
2646           (pic14printLocals): reintroduced clustering registers into a single
2647             section: all compiler generated symbols will now reside in one
2648             bank (per file), reducing BANKSEL overhead and code size,
2649           (showAllMemmaps): use local dbuf where possible
2650
2651 2007-01-29 Raphael Neider <rneider AT web.de>
2652
2653         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
2654           (call_libraryfunc): retrieve/create symbol and mark as used,
2655           (genFunction): mark defined functions as non-extern and add again
2656            to code memmap for later output
2657         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
2658           (pic14printLocals): reworked for new symbol emission,
2659           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
2660           showAllMemmaps): reworked symbol output using dbufs, added handling
2661             of string literals (still incomplete),
2662           (picglue): removed symbol emission, moved into showAllMemmaps,
2663           (emitSymbolSet): new workhorse for symbol output,
2664           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
2665
2666 2007-01-29 Borut Razem <borut.razem AT siol.net>
2667
2668         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
2669           component contains the extension separator.
2670
2671 2007-01-28 Borut Razem <borut.razem AT siol.net>
2672
2673         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
2674           on WIN32
2675         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
2676           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
2677           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
2678           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
2679           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
2680           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
2681           src/z80/gen.c, support/Util/MySystem.c:
2682           accept slash and backslash as directory separator on WIN32 and
2683           Cygwin ports
2684
2685 2007-01-28 Raphael Neider <rneider AT web.de>
2686
2687         * src/pic16/devices.inc,
2688         * device/include/pic16/pic18f[24][23]21.h,
2689         * device/include/pic16/pic18fregs.h,
2690         * device/lib/pic16/libdev/pic18f[24][23]21.c,
2691         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
2692         * device/lib/pic16/libio/adc.ignore,
2693         * device/lib/pic16/libio/i2c.ignore,
2694         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
2695           family, as gputils do not yet support the devices
2696         * device/lib/pic16/Makefile.subdir: ignore errors on install
2697         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
2698           headers and libraries from gputils .inc files
2699
2700 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
2701
2702         * doc/sdccman.lyx: add printf_fast_f precision limitation note
2703
2704 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
2705
2706         * doc/sdccman.lyx: add printf benchmarks
2707
2708 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
2709
2710         * device/lib/printf_fast.c: fix %c, char promoted to int
2711         * device/lib/printf_tiny.c: fix %c, char promoted to int
2712
2713 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
2714
2715         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
2716
2717 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2718
2719         * support/regression/tests/swap.c: 64 bit hosts failed
2720         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
2721
2722 2007-01-25 Raphael Neider <rneider AT web.de>
2723
2724         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
2725           based on absolute register address, patch by Alex Blond
2726
2727 2007-01-22 Raphael Neider <rneider AT web.de>
2728
2729         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
2730           emitted, do not emit them again...
2731
2732 2007-01-22 Raphael Neider <rneider AT web.de>
2733
2734         * src/regression/bank1.c, src/regression/compare6.c,
2735           src/regression/add.c: cosmetic changes
2736         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
2737         * src/pic/gen.c: fixed global zero and one,
2738           (aopForSym): removed unued code,
2739           (aopGet): assert aop is defined, check and use `index' of
2740             pCodeImmd operands (fixes #1630908),
2741         * src/pic/pcode.c (get_op): added output of generic pointer tag,
2742           (register_reassign): prevent accidental register unification,
2743           (ReuseReg): cosmetic changes (also above)
2744         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
2745           pic14emitStaticSeg): do not emit initialized data,
2746           (printIval*): replaced with working versions,
2747           (pic14createInterruptVect,picglue): use idata for initialized data,
2748             now init data should work in all modules (not only main()),
2749         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
2750
2751 2007-01-21 Borut Razem <borut.razem AT siol.net>
2752
2753         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
2754           use -fPIC or -fpic if they are supported and not ignored
2755         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
2756         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
2757
2758 2007-01-20 Borut Razem <borut.razem AT siol.net>
2759
2760         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
2761           implemented RFE #1470316: allow "$" in variable names
2762
2763 2007-01-20 Raphael Neider <rneider AT web.de>
2764
2765         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
2766
2767 2007-01-20 Raphael Neider <rneider AT web.de>
2768
2769         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
2770         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
2771         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
2772         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
2773           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
2774         * device/lib/pic/libdev/pic*.c,
2775         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
2776         * device/lib/pic/libdev/Makefile.in: show progress
2777
2778 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
2779
2780         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
2781         * support/scripts/sdcc_cygwin_mingw32,
2782         * support/scripts/sdcc_mingw32,
2783         * support/scripts/build.mak: replaced --datadir by --datarootdir for
2784         conformance with autoconf 2.6
2785
2786 2007-01-19 Raphael Neider <rneider AT web.de>
2787
2788         * src/pic/device.c (register_map): fixed list construction
2789         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
2790           (genMod): removed case for genModbits,
2791           (genModbits): removed as now unused/unimplemented
2792         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
2793
2794 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2795
2796         * support/regression/tests/swap.c: added in response to #1638622
2797         * doc/sdccman.lyx: synced version, minor changes
2798
2799 2007-01-18 Borut Razem <borut.razem AT siol.net>
2800
2801         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
2802           thanks to Gunther Jehle
2803         * src/asm.c: don't die if the file drfined in #line couldn't be opened
2804         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
2805           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
2806           use filename in lineno instead.
2807         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
2808           print the file name in ast_print()
2809
2810 2007-01-18 Borut Razem <borut.razem AT siol.net>
2811
2812         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
2813           defined in MSVC
2814         * src/SDCC.lex: stringLiteral() returns const char pointer,
2815           EOF detection in stringLiteral(), fixed asmbuf memory leak,
2816           fixed column counting
2817         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
2818           accept const char pointer as parameter
2819         * src/SDCCdwarf2.c: corrected buffer size
2820
2821 2007-01-17 Borut Razem <borut.razem AT siol.net>
2822
2823         * support/Util/dbuf_string.c: fixed for amd64
2824
2825 2007-01-15 Borut Razem <borut.razem AT siol.net>
2826
2827         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
2828           removed terminal symbol ELIPSIS, since it was never generated by the
2829           lexer and it was wrongly used in parameter_identifier_list rule
2830
2831 2007-01-15 Raphael Neider <rneider AT web.de>
2832
2833         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
2834             code page and data banking description
2835         * src/pic/genarith.c,
2836         * src/pic/gen.h: removed bit arithmetic functions,
2837             updated exit(1) to exit(EXIT_FAILURE)
2838         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
2839         * device/include/pic16/pic18f2455.h,
2840         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
2841             TRISD and TRISE, fixed/added some bit names
2842         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
2843         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
2844             updated pic18f2455.{c,h} instead of duplicating them
2845
2846 2007-01-14 Borut Razem <borut.razem AT siol.net>
2847
2848         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
2849           Cannot debug files that contain spaces in the path name
2850           by converting spaces in asm file name to underscores
2851
2852 2007-01-13 Borut Razem <borut.razem AT siol.net>
2853
2854         * doc/sdccman.lyx: fixed format errors
2855
2856 2007-01-10 Borut Razem <borut.razem AT siol.net>
2857
2858         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
2859           codeseg/constseg #pragma fail
2860         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
2861         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
2862           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
2863           suppoprt/cpp2/sdcpp.[ch]: house cleaning
2864
2865 2007-01-09 Borut Razem <borut.razem AT siol.net>
2866
2867         * get rid of diagnistic.[ch], pretty-print.[ch],
2868           c-pretty-print.[ch], ... used just for error, warning, ...
2869           message formatting
2870         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
2871           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
2872           suppoprt/cpp2/pretty-print.[ch]:
2873           removed
2874         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
2875           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
2876           suppoprt/cpp2/sdcpp.dsp:
2877           changed
2878
2879 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
2880
2881         * device/lib/printf_large.c (output_float): removed recursion,
2882           use smaller buffer on stack for mcs51,
2883           fixed bug printing 1.96
2884         * support/regression/tests/snprintf.c: added test
2885
2886 2007-01-07 Borut Razem <borut.razem AT siol.net>
2887
2888         * use dynamic memory buffers instead temporary files
2889         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
2890           added
2891         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
2892           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
2893           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
2894           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
2895           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
2896           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
2897           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
2898           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
2899           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
2900           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
2901           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
2902           support/Util/dbuf.c, support/Util/dbuf.h:
2903           modified
2904         * .version, sdcc.spec: bumped version to 2.6.4
2905
2906 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
2907
2908         * src/port.h: added TARGET_Z80_LIKE macro
2909         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
2910           output PSEG location if --xram-loc or --xstack-loc was used
2911         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
2912
2913 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
2914
2915         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
2916         * as/as_z80.dsp,   as/z80/as_z80.dsp,
2917         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
2918         * sdcc.dsw: moved project files into subdir
2919         * as/hc08/as_hc08.dsp,
2920         * as/hc08/Makefile.bcc,
2921         * as/hc08/Makefile.in,
2922         * as/mcs51/Makefile.bcc,
2923         * as/mcs51/Makefile.in,
2924         * as/z80/Makefile.bcc,
2925         * as/z80/Makefile.in,
2926         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
2927         * as/hc08/asm.h,
2928         * as/mcs51/asm.h,
2929         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
2930         * as/hc08/asmain.c,
2931         * as/hc08/assym.c,
2932         * as/mcs51/asmain.c,
2933         * as/mcs51/assym.c,
2934         * as/z80/assym.c: removed include "strcmpi.h"
2935         * as/hc08/strcmpi.c,
2936         * as/hc08/strcmpi.h,
2937         * as/mcs51/strcmpi.c,
2938         * as/mcs51/strcmpi.h,
2939         * support/Util/strcmpi.c,
2940         * support/Util/strcmpi.h: removed files
2941         * as/strcmpi.c: added as_strncmpi()
2942
2943 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2944
2945         * sdcc.dsw: Added some dependencies on project config.dsp
2946
2947 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
2948
2949         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
2950           with [di]ram_start to fix a regresion
2951
2952 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
2953
2954         * configure.in: added missing mcs51 in status output
2955         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
2956         directory
2957         * debugger/mcs51/clean.mk (distclean): remove config.h
2958         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
2959         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
2960         options.h, s-options-h and options.c
2961         * support/cpp2/clean.mk: unused, removed
2962         * Makefile.common.in,
2963         * main_in.mk,
2964         * as/Makefile.in,
2965         * as/hc08/Makefile.in,
2966         * as/hc08/clean.mk,
2967         * as/mcs51/Makefile.in,
2968         * as/mcs51/clean.mk,
2969         * as/z80/clean.mk,
2970         * as/z80/conf.mk,
2971         * as/z80/Makefile.in,
2972         * as/z80/clean.mk,
2973         * as/link/Makefile.in,
2974         * as/link/hc08/Makefile.in,
2975         * as/link/hc08/clean.mk,
2976         * as/link/mcs51/Makefile.in,
2977         * as/link/mcs51/clean.mk,
2978         * as/link/z80/Makefile.in,
2979         * as/link/z80/clean.mk,
2980         * as/link/z80/conf.mk,
2981         * debugger/mcs51/Makefile.in,
2982         * debugger/mcs51/clean.mk,
2983         * device/include/Makefile.in,
2984         * device/lib/Makefile.in,
2985         * device/lib/mcs51/Makefile.in,
2986         * device/lib/pic/Makefile.in,
2987         * device/lib/pic/Makefile.common.in,
2988         * device/lib/pic/Makefile.subdir,
2989         * device/lib/pic/Makefile.rules,
2990         * device/lib/pic16/libio/Makefile.in,
2991         * device/lib/pic16/Makefile.subdir,
2992         * device/lib/pic16/libdev/Makefile.in,
2993         * device/lib/pic16/Makefile.rules,
2994         * device/lib/pic16/Makefile.common.in,
2995         * sim/ucsim/avr.src/Makefile.in,
2996         * sim/ucsim/main_in.mk,
2997         * sim/ucsim/cmd.src/Makefile.in,
2998         * sim/ucsim/doc/Makefile.in,
2999         * sim/ucsim/gui.src/Makefile.in,
3000         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
3001         * sim/ucsim/gui.src/serio.src/Makefile.in,
3002         * sim/ucsim/hc08.src/Makefile.in,
3003         * sim/ucsim/libltdl/Makefile.in,
3004         * sim/ucsim/s51.src/Makefile.in,
3005         * sim/ucsim/sim.src/Makefile.in,
3006         * sim/ucsim/sim.src/conf.mk,
3007         * sim/ucsim/xa.src/Makefile.in,
3008         * sim/ucsim/z80.src/Makefile.in,
3009         * src/Makefile.in,
3010         * src/clean.mk,
3011         * src/port.mk,
3012         * support/cpp2/Makefile.in,
3013         * support/librarian/Makefile.in,
3014         * support/librarian/clean.mk,
3015         * support/makebin/Makefile.in,
3016         * support/makebin/clean.mk,
3017         * support/packihx/Makefile.in,
3018         * support/regression/Makefile.in,
3019         * support/regression/ports/ds390/spec.mk,
3020         * support/regression/ports/gbz80/spec.mk,
3021         * support/regression/ports/hc08/spec.mk,
3022         * support/regression/ports/mcs51/spec.mk,
3023         * support/regression/ports/mcs51-large/spec.mk,
3024         * support/regression/ports/mcs51-medium/spec.mk,
3025         * support/regression/ports/mcs51-xstack-auto/spec.mk,
3026         * support/regression/ports/pic14/spec.mk,
3027         * support/regression/ports/pic16/spec.mk,
3028         * support/regression/ports/mcs51-stack-auto/spec.mk,
3029         * support/regression/ports/ucz80/spec.mk,
3030         * support/regression/ports/xa51/spec.mk,
3031         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
3032         adding a slash after $(top_builddir) and/or adding @datarootdir@
3033         * configure.in,
3034         * debugger/mcs51/configure.in,
3035         * device/lib/pic/configure.in,
3036         * device/lib/pic16/configure.in,
3037         * sim/ucsim/configure.in,
3038         * support/cpp2/configure.in,
3039         * support/packihx/configure.in: changed AC_PREREQ to 2.60
3040         * configure,
3041         * debugger/mcs51/configure,
3042         * device/lib/pic/configure,
3043         * device/lib/pic16/configure,
3044         * sim/ucsim/configure,
3045         * support/cpp2/configure,
3046         * support/packihx/configure: generated with autoconf 2.60
3047
3048 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
3049
3050         * as/link/hc08/lkihx.c (newArea),
3051         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
3052
3053 2007-01-02 Borut Razem <borut.razem AT siol.net>
3054
3055         * doc/sdccman.lyx: documented #pragma sdcc_hash
3056         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
3057           initialized to 0
3058         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
3059
3060 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
3061
3062         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
3063         empty 'while'-loop to work correctly, see regression test 'while.c'
3064         * support/regression/tests/while.c: added
3065
3066 2007-01-01 Borut Razem <borut.razem AT siol.net>
3067
3068         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
3069           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
3070           support/cpp2/libcpp/sdcpp.c:
3071           sdcpp specific pragma/directive/option handling moved to sdcpp.c
3072         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
3073         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
3074
3075 2006-12-31 Borut Razem <borut.razem AT siol.net>
3076
3077         * SDCPP synchronized with GCC CPP release version 4.1.1,
3078           currently the latest release:
3079         * support/cpp2/libcpp, support/cpp2/libcpp/include,
3080           support/cpp2/libcpp/include/cpp-id-data.h
3081           support/cpp2/libiberty/fopen_unlocked.c
3082           support/cpp2/libiberty/md5.c
3083           support/cpp2/md5.h
3084           support/cpp2/opt-functions.awk
3085           support/cpp2/opt-gather.awk
3086           support/cpp2/optc-gen.awk
3087           support/cpp2/opth-gen.awk:
3088           added
3089         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
3090           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
3091           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
3092           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
3093           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
3094           support/cpp2/diagnostic.h, support/cpp2/except.h,
3095           support/cpp2/hwint.h, support/cpp2/input.h,
3096           support/cpp2/intl.h, support/cpp2/move-if-change,
3097           support/cpp2/opts.c, support/cpp2/opts.h,
3098           support/cpp2/output.h, support/cpp2/prefix.c,
3099           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
3100           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
3101           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
3102           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
3103           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
3104           support/cpp2/version.c:
3105           modified
3106         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
3107           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
3108           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
3109           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
3110           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
3111           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
3112           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
3113           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
3114           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
3115           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
3116           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
3117           moved
3118         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
3119           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
3120           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
3121           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
3122           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
3123           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
3124           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
3125           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
3126           support/cpp2/hashtable.h, support/cpp2/line-map.c,
3127           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
3128           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
3129           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
3130           support/cpp2/system.h:
3131           deleted / moved
3132
3133 2006-12-31 Borut Razem <borut.razem AT siol.net>
3134
3135         * configure.in, configure: fixed bug #1538756: configure dies if bison
3136           and flex are not installed, 2nd try
3137
3138 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
3139
3140         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
3141         400.x for better code in RFE 899102
3142
3143 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
3144
3145         * src/SDCCpeeph.c (deadMove),
3146         * src/port.h,
3147         * src/mcs51/peep.h: renamed 'op' by 'reg'
3148         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
3149         (scan4op): small change for removeDeadMove(), added support for
3150         'callee saves' and/or PACLL function calls,
3151         (removeDeadMove): added, removes superflous 'mov r%1,%2',
3152         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
3153         left in new dispatcher mcs51DeadMove()
3154         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
3155         removeDeadMove()
3156         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
3157
3158 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3159
3160         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
3161           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
3162
3163 2006-12-30 Borut Razem <borut.razem AT siol.net>
3164
3165         * support/cpp2/spacs.h: deleted from svn
3166         * configure.in, configure: fixed bug #1538756: configure dies if bison
3167           and flex are not installed
3168
3169 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
3170
3171         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
3172           with this z80 passes printf float test when enabled
3173         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
3174
3175 2006-12-28 Borut Razem <borut.razem AT siol.net>
3176
3177         * support/cpp2/config.in, support/cpp2/configure.in,
3178           support/cpp2/configure, support/cpp2/Makefile.in:
3179           fix for the solaris build
3180
3181 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3182
3183         * src/SDCC.y (type_specifier2, pointer),
3184         * src/SDCCsymt.h,
3185         * src/SDCCsymt.c (mergeSpec, checkSClass),
3186         * support/Util/SDCCerr.c,
3187         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
3188         * support/valdiag/valdiag.py: Allow test cases to specify
3189           required language standard
3190         * support/valdiag/tests/restrict.c: New file to test restrict keyword
3191         * support/valdiag/tests/tentdecl.c: Supress empty source file error
3192
3193 2006-12-27 Borut Razem <borut.razem AT siol.net>
3194
3195         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
3196         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
3197           mbchar removed
3198         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
3199           fixed for borland C
3200         * support/cpp2/libiberty/Makefile.bcc: updated
3201         * src/pic16/main.c: fixed #pragma udata handling
3202         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
3203
3204 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
3205
3206         * src/SDCCpeeph.c: made labelHashEntry global,
3207         made pcDistance, FBYNAME static,
3208         (pcDistance): made static, use isComment and isLabel,
3209         (deadMove): added,
3210         (getLabelRef): added, extracted from labelRefCount(),
3211         (labelRefCount): use new getLabelRef(),
3212         (callFuncByName): made static, added deadMove,
3213         use isComment and isLabel,
3214         (newPeepRule): made static, set isLabel,
3215         (isLabelDefinition): added parameter isPeepRule to allow '%' in
3216         labels from peephole rules,
3217         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
3218         when isComment or isLabel is set
3219         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
3220         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
3221         to make them global
3222         * src/mcs51/peep.h: added
3223         * src/mcs51/peep.c: added, implements mcs51DeadMove()
3224         * src/port.h: added peep->deadMove to port structure
3225         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
3226         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
3227         deadMove, finally removed no. 1 and 2
3228         * src/mcs51/gen.c,
3229         * src/pic/gen.c,
3230         * src/z80/gen.c,
3231         * src/z80/ralloc.c,
3232         * src/pic16/gen.c,
3233         * src/ds390/gen.c,
3234         * src/hc08/gen.c: mark lines with isComment or isLabel
3235         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
3236         * .version,
3237         * sdcc.spec: bumped version to 2.6.3
3238
3239 2006-12-26 Borut Razem <borut.razem AT siol.net>
3240
3241         * support/cpp2/Makefile.in: added dependency on options.h
3242         * configure: regenerated
3243         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
3244         * support/cpp2/Makefile.in: added vasprintf.c
3245
3246 2006-12-25 Borut Razem <borut.razem AT siol.net>
3247
3248         * SDCPP synchronized with GCC CPP release version 3.4.6,
3249           the latest release before 4.x:
3250         * support/cpp2/Makefile.in, support/cpp2/config.h,
3251           support/cpp2/configure, support/cpp2/configure.in,
3252           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
3253           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
3254           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
3255           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
3256           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
3257           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
3258           support/cpp2/cpptrad.c, support/cpp2/except.h,
3259           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
3260           support/cpp2/hwint.h, support/cpp2/intl.h,
3261           support/cpp2/line-map.c, support/cpp2/line-map.h,
3262           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
3263           support/cpp2/output.h, support/cpp2/prefix.c,
3264           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
3265           support/cpp2/system.h, support/cpp2/version.c:
3266           modified
3267         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
3268           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
3269           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
3270           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
3271           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
3272           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
3273           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
3274           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
3275           support/cpp2/move-if-change, support/cpp2/opts.c,
3276           support/cpp2/opts.h, support/cpp2/opts.sh,
3277           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
3278           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
3279           support/cpp2/win32, support/cpp2/win32/dirent.c,
3280           support/cpp2/win32/dirent.h:
3281           added
3282         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
3283         * support/cpp2/sdcpp.h: renamed from sdcc.h
3284         * sdcppinit.c: deleted
3285
3286 2006-12-23 Borut Razem <borut.razem AT siol.net>
3287
3288         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
3289           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
3290           preproc.c: an other try to fix bug #982435: introduced
3291           -pedantic-parse-number command line option and pedantic_parse_number
3292           pragma
3293
3294 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
3295
3296         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
3297            BSEG handling,
3298           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
3299            corrected overlayed areax addresses, warn about memory overlaps
3300         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
3301         * src/avr/main.c,
3302         * src/ds390/main.c,
3303         * src/hc08/main.c,
3304         * src/mcs51/main.c,
3305         * src/pic16/main.c,
3306         * src/pic/main.c,
3307         * src/xa51/main.c,
3308         * src/z80/main.c,
3309         * src/port.h: added xabs_name and iabs_name
3310         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
3311           (glue, emitMaps): create and emit maps d_abs and i_abs
3312         * src/SDCCglue.h: cosmetic changes
3313         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
3314         * src/SDCCmem.h,
3315         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
3316           (allocDefault): put absolute, initialized globals in them
3317         * support/regression/tests/absolute.c: added absolute bdata test
3318         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
3319
3320 2006-12-20 Borut Razem <borut.razem AT siol.net>
3321
3322         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
3323         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
3324           added regression test for bug #982435
3325
3326 2006-12-18 Borut Razem <borut.razem AT siol.net>
3327
3328         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
3329         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
3330           small cosmetic changes
3331         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
3332         * support/regression/tests/bug-1351710.c: added regression test
3333
3334 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3335
3336         * doc/sdccman.lyx: added the long missed iCode table
3337           "<where is figure II?>", added links to wiki
3338
3339 2006-12-17 Borut Razem <borut.razem AT siol.net>
3340
3341         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
3342           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
3343           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
3344           unified table driven pragma handling, pragma argument type checking
3345         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
3346           current one - version 1.1.3
3347         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
3348
3349 2006-12-13 Raphael Neider <rneider AT web.de>
3350
3351         * src/pic/device.h: removed AssignedMemory structure and macros
3352         * src/pic/device.c: removed global finalMapping (linker assigns
3353             memory locations),
3354           (register_map): add SFRs to remembered memRanges
3355           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
3356           assignFixedRegisters,assignRelocatableRegisters): removed,
3357           (setMaxRAM,validAddress): adapted accordingly,
3358           (pic14_hasSharebank,pic14_getSharedStack): only report and use
3359             reasonably sized sharebanks,
3360         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
3361           (allDefsOutOfRange): removed unused code,
3362         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
3363             handling
3364         * src/pic/pcode.c (register_reassign): removed recursion warning,
3365             fired far too often,
3366         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
3367             to use existing pic14_stringInSet() to avoid duplicate symbols,
3368             tidied up the code a bit,
3369           (pic14printLocals): added in symmetry to printExterns, replaces
3370             writeUsedRegs more or less,
3371           (picglue): call new pic14_printLocals(),
3372         * device/include/pic/pic*.h: removed #pragma memmap directives,
3373             information gathered from include/pic/pic14devices.txt
3374         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
3375
3376 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
3377
3378         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
3379
3380 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3381
3382         * device/include/mcs51/cc2430.h: fixed missing ';'
3383
3384 2006-12-10 Raphael Neider <rneider AT web.de>
3385
3386         * device/lib/pic16/libc/stdio/vfprintf.c,
3387         * device/lib/pic16/libc/stdio/printf_small.c,
3388         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
3389           char arguments, as char varargs are cast to int by the caller,
3390           hopefully fixes #1604915 (other device libraries are still affected)
3391
3392 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3393
3394         * src/mcs51/ralloc.c (packRegsForAssign),
3395         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
3396
3397 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
3398
3399         * device/include/malloc.h: removed init_dynamic_memory
3400         * device/lib/malloc.c: made init_dynamic_memory static and automatically
3401           call it once from malloc. Also use _sdcc_heap[] from _heap.c
3402         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
3403         * device/lib/libsdcc.lib,
3404         * device/lib/Makefile.in,
3405         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
3406         * doc/sdccman.lyx: documented use of new _heap.c
3407         * support/regression/tests/malloc.c: removed init_dynamic_memory
3408         * src/cdbFile.c(spacesToUnderscores): new function,
3409           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
3410           1068030
3411         * device/include/tinibios.h: removed defines for putchar and getchar
3412         * device/lib/ds390/Makefile.in: added putchar.c
3413         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
3414
3415 2006-12-09 Borut Razem <borut.razem AT siol.net>
3416
3417         * support/cpp2/sdcc.h: prevent multiple inclusion
3418         * support/cpp2/options.h: deleted
3419
3420 2006-12-08 Borut Razem <borut.razem AT siol.net>
3421
3422         * support/cpp2/sdcc.h: removed x*alloc() macros
3423         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
3424         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
3425           support/cpp2/sdcpp.sdc: x*alloc files added to the project
3426         * support/cpp2/system.h: moved #include "sdcc.h"
3427         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
3428           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
3429           added
3430         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
3431           -funsigned-char options
3432         * support/cpp2/sdcppmain.c: fixed bug 1611411
3433
3434 2006-12-07 Borut Razem <borut.razem AT siol.net>
3435
3436         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
3437           directive
3438
3439 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
3440
3441         * src/SDCCsymt.c (addDecl): fixed bug 1609244
3442         * src/SDCCmain.c (linkEdit): fixed bug 1609279
3443         * doc/sdccman.lyx,
3444         * .version: bumped to 2.6.2 because a) it's been a while
3445           b) the linker sources have moved c) the preprocessor is upgraded
3446
3447 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3448
3449         * support/regression/tests/snprintf.c: some checks
3450         * lib/src/printf_large.c: %bc: read char instead of int from stack
3451
3452 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
3453
3454         * device/include/mcs51/cc2430.h: inserted _XPAGE
3455
3456 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3457
3458         * device/include/mcs51/cc2430.h: added
3459
3460 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
3461
3462         * device/include/asm/default/features.h,
3463         * device/include/asm/ds390/features.h,
3464         * device/include/mcs51/at89s53.h,
3465         * device/include/ser.h,
3466         * device/include/ser_ir.h,
3467         * device/include/serial.h: changed keywords to double underscore variants,
3468           fixes bug 1590261 some more, thanks Steven Borley
3469
3470 2006-12-01 Raphael Neider <rneider AT web.de>
3471
3472         * src/pic/pcode.c (register_reassign): do not crash on recursive code
3473           but emit warning (recursion is not supported for pic14)
3474
3475 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3476
3477         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
3478         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
3479
3480 2006-11-30 Raphael Neider <rneider AT web.de>
3481
3482         * src/pic/device.c (dump_sfr): always emit symbols
3483         * src/pic/glue.c (pic14printPublics): fixed typo
3484
3485 2006-11-30 Raphael Neider <rneider AT web.de>
3486
3487         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
3488           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
3489           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
3490            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
3491            a sharebank, use a non-shared bank for the stack if none available
3492         * src/pic/device.h (struct memRange): added linked list next field,
3493           added prototypes for above functions
3494         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
3495           (typeRegWithIdx): accept fixed and unfixed stack registers
3496         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
3497           the stack, handle shared and banked stack (except for WSAVE),
3498           (insertBankSel): removed useless optimization (will never fire),
3499           (FixRegisterBanking): added optimization for devices with only one
3500           possibly aliased bank of memory, like 16f84
3501         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
3502           devices have no SHAREBANK in the linker script
3503         * device/include/pic/pic14devices.txt: documented memmap
3504         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
3505
3506 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3507
3508         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
3509           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
3510           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
3511           genhc08Code): switched most of the D (debug) macros to DD (detailed
3512           debug) macros to better control clutter in the generated .asm file.
3513         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
3514           genRightShift): fixed bug with non-constant bit shift stored to
3515           a volatile result (SF Open Discussion forum thread #1616749).
3516           Single byte case is not yet optimized.
3517
3518 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
3519
3520         * device/include/asm/mcs51/features.h,
3521         * device/include/malloc.h,
3522         * device/include/stdio.h: changed keywords to double underscore variants,
3523           fixes bug 1590261
3524
3525 2006-11-27 Borut Razem <borut.razem AT siol.net>
3526
3527         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
3528           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
3529           support/cpp2/output.h, support/cpp2/cppinit.c,
3530           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
3531           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
3532           support/cpp2/cppdefault.c, support/cpp2/system.h,
3533           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
3534           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
3535           support/cpp2/prefix.c, support/cpp2/except.h,
3536           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
3537           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
3538           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
3539           support/cpp2/version.c, support/cpp2/cppmain.c,
3540           support/cpp2/version.h, support/cpp2/hashtable.c,
3541           support/cpp2/cpperror.c:
3542           synchronized with GCC CPP release version 3.3.6,
3543           the latest where cppmain.c still exists.
3544         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
3545           support/cpp2/sdcppinit.c: added
3546
3547 2006-11-27 Borut Razem <borut.razem AT siol.net>
3548
3549         * support/cpp2/cpplex.c:
3550           fixed _asm ... _endasm handling bug, introduce with GCC CPP
3551           synchronization
3552         * support/cpp2/cpplib.c: removed definitions of unused variables
3553
3554 2006-11-26 Borut Razem <borut.razem AT siol.net>
3555
3556         * support/cpp2/libiberty.h: commented out x*alloc() declarations
3557           since they are redefined by macros in support/cpp2/sdcc.h
3558         * support/cpp2/sdcc.h: x*alloc macro redefinition
3559
3560 2006-11-25 Borut Razem <borut.razem AT siol.net>
3561
3562         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
3563           support/cpp2/configure, support/cpp2/Makefile.in,
3564           support/cpp2/cppfiles.c, support/cpp2/output.h,
3565           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
3566           support/cpp2/config.h, support/cpp2/cpplib.h,
3567           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
3568           support/cpp2/cppdefault.c, support/cpp2/config.in,
3569           support/cpp2/system.h, support/cpp2/cpplex.c,
3570           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
3571           support/cpp2/cppdefault.h, support/cpp2/prefix.c
3572           support/cpp2/hwint.h, support/cpp2/mbchar.h,
3573           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
3574           support/cpp2/configure.in, support/cpp2/intl.h,
3575           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
3576           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
3577           support/cpp2/version.c, support/cpp2/cppmain.c,
3578           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
3579           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
3580           support/cpp2/cpperror.c,
3581           support/cpp2/libiberty/safe-ctype.c,
3582           support/cpp2/libiberty/safe-ctype.h,
3583           support/cpp2/libiberty/splay-tree.c,
3584           support/cpp2/libiberty/obstack.c,
3585           support/cpp2/libiberty/lbasename.c,
3586           support/cpp2/libiberty/splay-tree.h,
3587           support/cpp2/libiberty/obstack.h:
3588           synchronized with GCC CPP release version 3.2.3,
3589           the latest before integration of cpp into gcc
3590         * support/cpp2/except.h, support/cpp2/line-map.c,
3591           support/cpp2/line-map.h,
3592           support/cpp2/libiberty/hex.c,
3593           support/cpp2/libiberty/concat.c,
3594           support/cpp2/libiberty/filenames.h: added
3595         * support/cpp2/intl.c: deleted
3596
3597 2006-11-24 Borut Razem <borut.razem AT siol.net>
3598
3599         * src/SDCC.y: enabled compilation of empty source file
3600         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
3601           "ISO C forbids an empty source file"
3602         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
3603           if all the code is ifdefed out.
3604
3605 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3606
3607         * src/hc08/gen.c (genPcall): fix for bug #1601032
3608
3609 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
3610
3611         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
3612         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
3613         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
3614         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
3615         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
3616         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
3617         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
3618         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
3619         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
3620         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
3621         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
3622         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
3623         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
3624         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
3625         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
3626           Renamed to all upper case as per the standard set by SiLabs
3627
3628 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
3629
3630         * device/include/mcs51/C8051F520.h: new, added
3631         * device/include/mcs51/compiler.h: added link about predefined macros
3632
3633 2006-11-23 Raphael Neider <rneider AT web.de>
3634
3635         * src/regression/Makefile: add -L path to fresh library
3636         * src/regression/simulate: emphasize FAILED output
3637         * src/regression/create_stc: output _failures from gpsim
3638         * src/regression/compare4.c,
3639         * src/regression/rotate6.c: fixed char literals,
3640           all compile, all run =8-D
3641
3642         * src/pic/pcode.h: added isPCASMDIR macro
3643         * src/pic/gen.c (genAnd): fixed bit offset
3644         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
3645           packBits): unified register numbering schemes,
3646           (newReg): do not insert stack registers into hash table,
3647           (initStack): unpinned pseudo stack, simplified,
3648           (typeRegWithIdx): fixed retrieval of stack registers,
3649         * src/pic/pcode.c (addpCodeComment,sameBank): added,
3650           (pCodeReplace): removed invalid assertion,
3651           (insertPCodeInstruction): fixed newly added labels,
3652           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
3653           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
3654           DumpFlow): removed unsed (broken?) code,
3655           (insertBankSel): prevent STATUS from being BANKSELed,
3656           (FixRegisterBanking): rewritten from scratch, implemented generic
3657             optimizations (suppress BANKSELs to same register and to registers
3658             present in all banks),
3659           (AnalyzeBanking): update flow after BANKSELection
3660
3661         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
3662             sharebank, let linker place it, mark STKxx symbols as emitted
3663
3664 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3665
3666         * src/regression/arrays.c,
3667         * src/regression/bank1.c,
3668         * src/regression/bool2.c,
3669         * src/regression/compare7.c,
3670         * src/regression/compare8.c,
3671         * src/regression/compare9.c,
3672         * src/regression/compare10.c,
3673         * src/regression/configword.c,
3674         * src/regression/for.c,
3675         * src/regression/mult1.c,
3676         * src/regression/pointer1.c,
3677         * src/regression/rotate6.c,
3678         * src/regression/string1.c,
3679         * src/regression/struct1.c,
3680         * src/regression/Makefile: make PIC14 regression tests run again
3681           (3 fail, 6 won't compile)
3682
3683 2006-11-21 Raphael Neider <rneider AT web.de>
3684
3685         * device/include/pic16/pic18f4550.h,
3686         * device/include/pic16/pic18f4455.h,
3687         * device/lib/pic16/libdev/pic18f4550.c,
3688         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
3689         * configure.in: removed superfluous closing bracket
3690
3691 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3692
3693         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
3694           always positive.
3695
3696 2006-11-21 Raphael Neider <rneider AT web.de>
3697
3698         * src/pic/device.{c,h}: added pic14_getPIC()
3699         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
3700           (genAnd): added PIC code for one case, fixes #1597044
3701         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
3702           SFRs that are present in all banks (e.g., STATUS)
3703
3704 2006-11-20 Raphael Neider <rneider AT web.de>
3705
3706         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
3707           INCFSZ/INCFSZW and declared them as changing Z bit,
3708           (insertPCodeInstruction): correctly invert the above instructions,
3709           fixes #1599333,
3710           (DoBankSelect): don't panic on po_immediates
3711
3712 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
3713
3714         * as/link/aslink.h,
3715         * as/link/mcs51/lkihx.c (newArea),
3716         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
3717         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
3718
3719 2006-11-11 Raphael Neider <rneider AT web.de>
3720
3721         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
3722           bitfield symbols, fixes #1579535 (once more...).
3723
3724 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3725
3726         * support/regression/generate-cases.py,
3727         * support/regression/fwk/include/testfwk.h,
3728         * support/regression/fwk/lib/testfwk.c: used code pointers,
3729           (about 50kByte less code generated for mcs51)
3730
3731 2006-11-06 Borut Razem <borut.razem AT siol.net>
3732
3733         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3734           debugger/mcs51/configure: fixed failed check because the function
3735           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
3736           who submitted the patch for gpsim.
3737         * debugger/mcs51/configure.in: removed the result message
3738         * debugger/mcs51/Makefile.in: fixed the config.status warning
3739           "... seems to ignore the --datarootdir setting"
3740
3741 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
3742
3743         * device/include/mcs51/c8051f020.h,
3744         * device/include/mcs51/c8051f040.h,
3745         * device/include/mcs51/c8051f060.h,
3746         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
3747         * src/z80/gen.c (gencjneshort),
3748         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
3749
3750 2006-10-31 Borut Razem <borut.razem AT siol.net>
3751
3752         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3753           debugger/mcs51/configure: get readline version
3754
3755 2006-10-30 Borut Razem <borut.razem AT siol.net>
3756
3757         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
3758         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3759           debugger/mcs51/configure: locate readline even when cross compiling
3760         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
3761
3762 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3763
3764         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
3765           serial port.
3766
3767 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
3768
3769         * device/include/malloc.h,
3770         * device/lib/calloc.c,
3771         * device/lib/free.c,
3772         * device/lib/malloc.c,
3773         * device/lib/realloc.c: moved definition of struct into sources
3774         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
3775
3776 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
3777
3778         * as/asx8051.dsp: corrected output directories
3779         * as/link/hc08: new directory for hc08 linker
3780         * as/hc08/aslink.h,             as/link/aslink.h,
3781         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
3782         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
3783         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
3784         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
3785         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
3786         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
3787         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
3788         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
3789         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
3790         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
3791         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
3792         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
3793         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
3794         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
3795         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
3796         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
3797         * as/link/hc08/conf.mk,
3798         * configure,
3799         * configure.in,
3800         * Makefile.in,
3801         * sdcc.dsw: moved hc08 linker to as/link/hc08
3802         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
3803         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
3804         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
3805         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
3806         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
3807         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
3808         * as/link/mcs51/aslink.dsp,
3809         * as/link/mcs51/Makefile.in: factored out the common files
3810         * as/hc08/lkstore.c: deleted, use the one already in as/link/
3811         * as/clean.mk: extra cleaning common files
3812         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
3813         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
3814         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
3815
3816 2006-10-29 Raphael Neider <rneider AT web.de>
3817
3818         * src/pic/ralloc.c (newReg): create aliases for registers with
3819           multiple names to fix #1579535 and #1584001,
3820           (regWithIdx,dirregWithName): resolve aliases on lookup
3821         * src/pic/pcode.c (DoBankSelect): die with error message on failing
3822           bankselect
3823         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
3824           to prevent build errors on small devices
3825
3826 2006-10-28 Raphael Neider <rneider AT web.de>
3827
3828         * src/pic/gen.c (genFunction,genCall): drop "same code page"
3829           assumption within interrupt handlers, fixes #1584940
3830         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
3831           "emitted" to avoid emitting them again in udata
3832
3833 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3834
3835         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
3836         Removed.
3837
3838 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3839
3840         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
3841         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
3842         on/off CR to CRLF conversion.
3843
3844 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3845
3846         * doc/sdccman.lyx: updated IRQ section
3847
3848 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3849
3850         * device/lib/serial_io.c: removed
3851         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
3852         replacements for serial_io.c
3853
3854 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
3855
3856         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
3857
3858 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3859
3860         * device/lib/serial_io.c: Default putchar() and getchar() for
3861           mcs51 uses serial port.
3862
3863 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
3864
3865         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
3866
3867 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3868
3869         * support/regression/ports/mcs51/support.c: smaller
3870         _sdcc_external_startup()
3871         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
3872
3873 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
3874
3875         * device/lib/gbz80/crt0.s,
3876         * device/lib/gbz80/crt0_rle.s,
3877         * device/lib/gbz80/div.s,
3878         * device/lib/gbz80/fstubs.s,
3879         * device/lib/gbz80/heap.s,
3880         * device/lib/gbz80/mul.s,
3881         * device/lib/gbz80/putchar.s,
3882         * device/lib/gbz80/stubs.s,
3883         * device/lib/z80/crt0.s,
3884         * device/lib/z80/crt0_rle.s,
3885         * device/lib/z80/div.s,
3886         * device/lib/z80/fstubs.s,
3887         * device/lib/z80/heap.s,
3888         * device/lib/z80/mul.s,
3889         * device/lib/z80/putchar.s,
3890         * device/lib/z80/stubs.s: reverted, I was mistaken
3891
3892 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3893
3894         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
3895         * support/regression/ports/mcs51/support.c: removed race
3896         condition on TI in _putchar allowing to use serial port mode 0
3897
3898 2006-10-20 Borut Razem <borut.razem AT siol.net>
3899
3900         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
3901
3902 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
3903
3904         * device/lib/gbz80/crt0.s,
3905         * device/lib/gbz80/crt0_rle.s,
3906         * device/lib/gbz80/div.s,
3907         * device/lib/gbz80/fstubs.s,
3908         * device/lib/gbz80/heap.s,
3909         * device/lib/gbz80/mul.s,
3910         * device/lib/gbz80/putchar.s,
3911         * device/lib/gbz80/stubs.s,
3912         * device/lib/z80/crt0.s,
3913         * device/lib/z80/crt0_rle.s,
3914         * device/lib/z80/div.s,
3915         * device/lib/z80/fstubs.s,
3916         * device/lib/z80/heap.s,
3917         * device/lib/z80/mul.s,
3918         * device/lib/z80/putchar.s,
3919         * device/lib/z80/stubs.s: removed all leading underscores from area names
3920
3921 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
3922
3923         * support/regression/ports/mcs51/support.c: use highest baudrate so the
3924           regression tests are not waiting in the simulator for simulated
3925           transmission of debug output
3926
3927 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3928
3929         * device/lib/printf_large.c: slightly smaller
3930         * doc/sdccman.lyx: do not use spaces within html links
3931
3932 2006-10-16 Borut Razem <borut.razem AT siol.net>
3933
3934         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
3935           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
3936           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
3937           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
3938           debugger/mcs51/configure:
3939           [ 1185668 ] add gnu readline support to sdcdb - enabled
3940
3941 2006-10-16 Raphael Neider <rneider AT web.de>
3942
3943         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
3944           fixes #1577882, removes close to all banking optimizations
3945
3946 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
3947
3948         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
3949           variables in code memory
3950         * support/regression/tests/absolute.c: added test for this
3951
3952 2006-10-15 Raphael Neider <rneider AT web.de>
3953
3954         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
3955           devices,
3956           (BankSelect): emit BANKSEL before touching linker-placed regs,
3957           fixes #1570934
3958
3959 2006-10-10 Raphael Neider <rneider AT web.de>
3960
3961         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
3962         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
3963         * src/pic/main.c (_pic14_parseOptions),
3964         * src/pic/main.h: mostly reverted to previous state, now use results
3965             from SDCCmain.c's argument parsing
3966
3967 2006-10-10 Borut Razem <borut.razem AT siol.net>
3968
3969         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
3970           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
3971           [ 1185668 ] add gnu readline support to sdcdb -
3972           prepared for READLINE, not enabled yet,
3973           thanks to <tal.bav AT gmail.com>
3974
3975 2006-10-10 Raphael Neider <rneider AT web.de>
3976
3977         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
3978         * src/pic16/devices.inc,
3979         * device/include/pic16 (pic18f[24]620.h),
3980         * device/include/pic18fregs.h,
3981         * device/lib/pic16/pics.all,
3982         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
3983             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
3984             Gary Plumbridge and Anton Strobl
3985
3986 2006-10-10 Raphael Neider <rneider AT web.de>
3987
3988         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
3989           --stack-siz=NUM options to configure the argument passing stack
3990         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
3991         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
3992           (pic14_getSharebankSize): obey --stack-siz=NUM,
3993           (pic14_getSharebankAddress): obey --stack-loc=NUM
3994
3995 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3996
3997         * doc/sdccman.lyx: added to the manual
3998         * doc/figures/ddd_example.png: added (neither pdflatex nor
3999         most browsers seem to like the .eps file)
4000
4001 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
4002
4003         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
4004         to /tmp and /var/tmp acc. LSB
4005         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
4006         RESULT_TYPE_IFX
4007         * support/regression/tests/onebyte.c: added test
4008
4009 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4010
4011         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
4012
4013 2006-10-05 Borut Razem <borut.razem AT siol.net>
4014
4015         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
4016           thanks to dfulab:
4017           - sdcc.dsw: changed property eol-style to CRLF
4018           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
4019
4020 2006-10-04 Raphael Neider <rneider AT web.de>
4021
4022         * device/include/pic/{pic16f84.h,pic16f84a.h},
4023         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
4024           from patch #1522504, thanks to Robas Teodor
4025
4026 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
4027
4028         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
4029           fixes bug 1566015
4030
4031 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
4032
4033         * src/pic16/glue.c (pic16emitMaps),
4034         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
4035         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
4036         * device/lib/pic16/libc/string/memcpypgm2ram.c,
4037         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
4038           Philipp Krause
4039         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
4040         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
4041
4042 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4043
4044         * support/librarian/sdcclib.c: Added option -l.
4045         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
4046           usage totals.
4047         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
4048           using Windows command prompt.
4049
4050 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
4051
4052         * device/lib/libsdcc.lib: added module rand
4053         * src/ds390/ralloc.c (rematStr),
4054         * src/hc08/ralloc.c (rematStr),
4055         * src/mcs51/ralloc.c (rematStr),
4056         * src/z80/ralloc.c (rematStr): made output more consistent
4057         * src/mcs51/gen.c: cosmetic changes
4058
4059 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
4060
4061         * src/port.h: added mem.cabs_name to PORT
4062         * src/ds390/main.c,
4063         * src/hc08/main.c,
4064         * src/mcs51/main.c,
4065         * src/pic16/main.c,
4066         * src/pic/main.c,
4067         * src/xa51/main.c,
4068         * src/z80/main.c: added cabs_name initializers
4069         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
4070           constants
4071           (emitMaps): emit absolutes in code memory into cabs_name
4072         * src/SDCCmem.c,
4073         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
4074         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
4075         * support/regression/fwk/include/testfwk.h: added define for at
4076         * support/regression/tests/absolute.c: added, new
4077
4078 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
4079
4080         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
4081           optimizations, see also patch 887161 by Stas Sergeev
4082         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
4083           to be necessary anymore,
4084           (102, 103, 104, 127): renamed all occurances of bp to _bp
4085
4086 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
4087
4088         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
4089           thanks Weston T. Schmidt for patch 1555221
4090         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
4091         * src/SDCCicode.c(geniCodeMultiply): small optimization
4092
4093 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
4094
4095         * device/include/stdlib.h: added rand prototypes
4096         * device/lib/rand.c: new, added
4097         * device/lib/Makefile.in: added rand.c
4098         * src/z80/peeph.def,
4099         * src/z80/peeph-gbz80.def,
4100         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
4101
4102 2006-09-20 Raphael Neider <rneider AT web.de>
4103
4104         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
4105
4106 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
4107
4108         * as/link/aslink.h: cosmetic changes
4109         * as/link/mcs51/Makefile.in,
4110         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
4111
4112 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
4113
4114         * as/link/aslink.h,
4115         * as/link/mcs51/aslink.h,
4116         * as/link/z80/aslink.h: merged and moved to as/link/
4117         * as/link/lkstore.c,
4118         * as/link/mcs51/lkstore.c: moved to as/link/
4119         * as/link/clean.mk: remove *.o
4120         * as/link/mcs51/alloc.h: deleted
4121         * as/link/mcs51/lkarea.c: added lnksect prototype
4122         * as/link/mcs51/lkdata.c,
4123         * as/link/mcs51/lklex.c,
4124         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
4125         * as/link/mcs51/lkmem.c,
4126         * as/link/mcs51/lknoice.c: removed include strcmpi.h
4127         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
4128         * as/link/mcs51/aslink.dsp,
4129         * as/link/mcs51/Makefile.aslink,
4130         * as/link/mcs51/Makefile.bcc,
4131         * as/link/mcs51/Makefile.in: updated for moved files
4132         * as/link/z80/lkarea.c,
4133         * as/link/z80/lkhead.c,
4134         * as/link/z80/lklex.c,
4135         * as/link/z80/lklibr.c,
4136         * as/link/z80/lklist.c,
4137         * as/link/z80/lkmain.c,
4138         * as/link/z80/lkrloc.c,
4139         * as/link/z80/lksym.c: synced with mcs51
4140         * as/link/z80/lkdata.c,
4141         * as/link/z80/lkeval.c,
4142         * as/link/z80/lkihx.c,
4143         * as/link/z80/lks19.c: cosmetic changes
4144         * as/link/z80/Makefile.in,
4145         * as/link/z80/linkgbz80.dsp,
4146         * as/link/z80/linkz80.dsp: updated for moved files
4147
4148 2006-09-16 Borut Razem <borut.razem AT siol.net>
4149
4150         * debugger/mcs51/sdcdb.c: partially fixed
4151           [ 1203664 ] sdcdb fails to open files w. two "." periods
4152         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
4153           debugger/mcs51/symtab.h: fixed indenting
4154         * configure.in, configure: up to date with latest Maarten's changes
4155
4156 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
4157
4158         as/link/mcs51
4159         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
4160         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
4161         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
4162         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
4163         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
4164         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
4165         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
4166         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
4167         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
4168         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
4169         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
4170         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
4171         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
4172         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
4173         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
4174         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
4175         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
4176         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
4177         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
4178         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
4179         as/link/mcs51/alloc.h,
4180         as/link/mcs51/clean.mk,
4181         as/link/mcs51/conf.mk,
4182         as/link/mcs51/Makefile.bcc,
4183         as/link/mcs51/Makefile.in,
4184         as/link/mcs51/readme.390,
4185         as/link/mcs51/strcmpi.c,
4186         as/link/mcs51/strcmpi.h,
4187         as/mcs51/clean.mk,
4188         as/mcs51/Makefile.bcc,
4189         as/mcs51/Makefile.in,
4190         configure,
4191         Makefile.in,
4192         sdcc.dsw: moved mcs51 linker to as/link/mcs51
4193
4194 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
4195
4196         * as/link,
4197         * as/link/Makefile.in,
4198         * as/link/z80/linkgbz80.dsp,
4199         * as/link/z80/linkz80.dsp,
4200         * configure,
4201         * link,
4202         * link/clean.mk,
4203         * link/Makefile.in,
4204         * link/README,
4205         * link/z80,
4206         * link/z80/aslink.h,
4207         * link/z80/clean.mk,
4208         * link/z80/conf.mk,
4209         * link/z80/linkgbz80.dsp,
4210         * link/z80/linkz80.dsp,
4211         * link/z80/lkarea.c,
4212         * link/z80/lkdata.c,
4213         * link/z80/lkeval.c,
4214         * link/z80/lkgb.c,
4215         * link/z80/lkgg.c,
4216         * link/z80/lkhead.c,
4217         * link/z80/lkihx.c,
4218         * link/z80/lklex.c,
4219         * link/z80/lklibr.c,
4220         * link/z80/lklist.c,
4221         * link/z80/lkmain.c,
4222         * link/z80/lkrloc.c,
4223         * link/z80/lks19.c,
4224         * link/z80/lksym.c,
4225         * link/z80/Makefile.in,
4226         * Makefile.in,
4227         * sdcc.dsw: moved link/ to as/link/
4228
4229 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
4230
4231         * as/mcs51/i51mch.c (machine): fixed warning
4232
4233 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
4234
4235         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
4236
4237 2006-09-09 Borut Razem <borut.razem AT siol.net>
4238
4239         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
4240           sdcdb WIN32 native port
4241         * src/clean.mk: fixed
4242
4243 2006-09-08 Borut Razem <borut.razem AT siol.net>
4244
4245         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
4246
4247 2006-09-08 Raphael Neider <rneider AT web.de>
4248
4249         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
4250         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
4251             to gplink to disable processor mismatch warning and to allow
4252             the use of devices with only aliased (shared) memory banks,
4253           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
4254
4255 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4256
4257         * doc/sdccman.lyx: Some re-formating plus example on using
4258           #pragma preproc_asm +/-
4259
4260 2006-09-07 Borut Razem <borut.razem AT siol.net>
4261
4262         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
4263           section
4264
4265 2006-09-06 Borut Razem <borut.razem AT siol.net>
4266
4267         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
4268           line at sdcc.nsi:153
4269         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
4270
4271 2006-09-05 Borut Razem <borut.razem AT siol.net>
4272
4273         * configure.in, configure: support for winsock2
4274         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
4275           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
4276           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
4277           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
4278           debugger/mcs51/symtab.h: sdcdb WIN32 native port
4279
4280 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
4281
4282         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
4283           and OP_DEFS
4284         * support/regression/tests/bug1551947.c: new, added
4285         * src/SDCCsymt.h: strings are char* not byte*
4286
4287 2006-09-05 Raphael Neider <rneider AT web.de>
4288
4289         * device/lib/pic16/libdev/pic18f4550.c,
4290           device/include/pic16/pic18f4550.h: added PORTD/TRISD
4291             declarations/definitions from patch #1520949
4292
4293 2006-09-05 Raphael Neider <rneider AT web.de>
4294
4295         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
4296           byte-aligned bitfields, fixes #1539278
4297
4298 2006-09-05 Raphael Neider <rneider AT web.de>
4299
4300         * src/pic/gen.c (genReceive): skip unreferenced arguments,
4301           fixes #1544120
4302
4303 2006-09-04 Borut Razem <borut.razem AT siol.net>
4304
4305         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
4306         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
4307           -mno-cygwin is a part of the compiler name
4308         * support/scripts/sdcc_mingw32: don't disable ucsim
4309
4310 2006-09-03 Borut Razem <borut.razem AT siol.net>
4311
4312         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
4313         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
4314
4315 2006-09-03 Raphael Neider <rneider AT web.de>
4316
4317         * src/pic/ralloc.c,
4318         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
4319           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
4320           fixes #1550049
4321
4322 2006-09-01 Borut Razem <borut.razem AT siol.net>
4323
4324         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
4325           to make ppc-osx happy
4326
4327 2006-08-31 Borut Razem <borut.razem AT siol.net>
4328
4329         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
4330         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
4331         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
4332         * support/regression/ports/ds390/spec.mk,
4333           support/regression/ports/mcs51/spec.mk,
4334           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
4335           To run regression tests in mingw environment:
4336           make DEV_NULL=NUL CC=gcc
4337
4338 2006-08-30 Borut Razem <borut.razem AT siol.net>
4339
4340         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
4341           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
4342           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
4343           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
4344           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
4345           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
4346           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
4347           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
4348           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
4349           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
4350           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
4351           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
4352           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
4353           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
4354           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
4355           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
4356           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
4357           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
4358           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
4359           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
4360           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
4361           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
4362           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
4363           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
4364           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
4365           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
4366           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
4367           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
4368           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
4369           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
4370           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
4371           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
4372           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
4373           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
4374           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
4375           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
4376           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4377           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
4378           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
4379           ucsim WIN32 native port
4380
4381 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4382
4383         * doc/sdccman.lyx: added note on dynamic memory heap initialization
4384
4385 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4386
4387         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
4388         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
4389
4390 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
4391
4392         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
4393         * support/regression/tests/bug1546986.c: new, added
4394         * as/mcs51/.cvsignore,
4395         * debugger/mcs51/.cvsignore,
4396         * src/.cvsignore: deleted
4397
4398 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4399
4400         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
4401           definitions)
4402
4403 2006-08-20 Borut Razem <borut.razem AT siol.net>
4404
4405         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
4406           removed cl_listen_console::match(), cl_console::match(),
4407           restructured cl_commander::proc_input()
4408
4409 2006-08-16 Borut Razem <borut.razem AT siol.net>
4410
4411         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
4412           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
4413           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
4414
4415 2006-08-14 Borut Razem <borut.razem AT siol.net>
4416
4417         * support/regression/Makefile.in,
4418           support/regression/ports/pic14/gpsim.cmd,
4419           support/regression/ports/pic14/spec.mk,
4420           support/regression/ports/pic14/support.c:
4421           added pic14 regression test
4422
4423 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
4424
4425         * as/doc/asxhtm.html: documented changed ABS behaviour
4426         * as/doc/README: fixed some typos
4427
4428 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
4429
4430         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
4431           not defined on host
4432
4433 2006-08-12 Borut Razem <borut.razem AT siol.net>
4434
4435         * support/regression/fwk/include/testfwk.h,
4436           support/regression/fwk/lib/testfwk.c,
4437           support/regression/generate-cases.py,
4438           support/regression/Makefile.in:
4439           regression test framework does not depend on function pointers and
4440           variable arguments
4441
4442 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
4443
4444         * device/include/stddef.h: c temporary hack to fix bug 1518273
4445
4446 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4447
4448         * device/include/mcs51/cc2510fx.h: added
4449         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
4450           to projects.
4451
4452 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
4453
4454         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
4455         * as/z80/Makefile.in: added strcmpi.c
4456         * as/z80/z80adr.c: added upper case registers and lower case conditionals
4457         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
4458
4459 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
4460
4461         * device/lib/gbz80/asm_strings.s,
4462         * device/lib/gbz80/crt0_rle.s,
4463         * device/lib/gbz80/div.s,
4464         * device/lib/gbz80/mul.s,
4465         * device/lib/gbz80/shift.s,
4466         * device/lib/z80/asm_strings.s,
4467         * device/lib/z80/crt0_rle.s,
4468         * device/lib/z80/div.s,
4469         * device/lib/z80/mul.s,
4470         * device/lib/z80/shift.s: changed to all lower case menmonics except the
4471           flags which are all upper case
4472
4473 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
4474
4475         * as/z80/asm.h: made CASE_SENSITIVE 1
4476         * link/z80/aslink.h: made CASE_SENSITIVE 1
4477         * src/z80/gen.c (throughout): made all conditionals upper case
4478         * support/regression/tests/bug1503067.c: new
4479
4480 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
4481
4482         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
4483           (shiftIntoPair): added case 2 for PAIR_IY,
4484           (setupToPreserveCarry): replaced parameters with iCode and check if
4485            PAIR_DE is in use to fix bug 1399290,
4486           (genPlus, genMinus): updated call to setupToPreserveCarry
4487         * support/regression/tests/bug1399290.c: new
4488
4489 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
4490
4491         * device/lib/Makefile.in (Z80SOURCES): enabled float support
4492         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
4493         * src/ds390/gen.c (shiftRLong),
4494         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
4495         * src/mcs51/gen.c (sameReg): changed to sameByte,
4496           (xch_a_aopGet): new,
4497           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
4498            shiftRLong): fixed bug 1533966
4499         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
4500           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
4501         * support/regression/Makefile.in: disabled z80, enabled ucz80
4502         * support/regression/tests/float_trans.c: enabled test for z80 and host
4503         * support/regression/tests/shifts2.c: new, for testing bug 1533966
4504
4505 2006-08-01 Borut Razem <borut.razem AT siol.net>
4506
4507         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
4508           comparison is always false due to limited range of data type
4509           on PPC64 machine (openpower-linux1) where "char = unsigned char"
4510
4511 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
4512
4513         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
4514         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
4515         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
4516         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
4517
4518 2006-07-31 Borut Razem <borut.razem AT siol.net>
4519
4520         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
4521           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
4522           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
4523           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
4524           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
4525           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
4526           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
4527           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
4528           enable ucsim mingw compilation. Serial port is disabled,
4529           since it uses termios.h API, which is not available on native
4530           WIN32
4531
4532 2006-07-31 Borut Razem <borut.razem AT siol.net>
4533
4534         * Small Device C Compiler 2.6.0 released
4535         * support/scripts/sdcc.nsi: added FULL_DOC option
4536         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
4537
4538 2006-07-28 Borut Razem <borut.razem AT siol.net>
4539
4540         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
4541         * doc/INSTALL.txt: updated
4542
4543 2006-07-27 Borut Razem <borut.razem AT siol.net>
4544
4545         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
4546           device/lib/pic/libdev/Makefile.in: fixed bug
4547           [ 1438354 ] pic libsdcc: distclean doesn't work
4548         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
4549           device/lib/pic16/libio/Makefile.in: fixed bug
4550           [ 1438344 ] pic16 lib: clean doesn't work properly
4551         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
4552
4553 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
4554
4555         * device/lib/pic/libsdcc/fsdiv.c,
4556         * device/lib/pic/libsdcc/fsmul.c,
4557         * device/lib/pic16/libsdcc/float/fsdiv.c,
4558         * device/lib/pic16/libsdcc/float/fsmul.c,
4559         * device/lib/_fsdiv.c,
4560         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
4561         * support/regression/tests/bug1520966.c: added
4562         * doc/knownbugs.html: removed [ 1520966 ] from the list
4563
4564 2006-07-25 Borut Razem <borut.razem AT siol.net>
4565
4566         * configure.in, configure, sdccconf_in.h: fixed bug
4567           [ 1519095 ] regression test onebyte.c fails on ppc64 host
4568         * doc/knownbugs.html: removed [ 1519095 ] from the list
4569
4570 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
4571
4572         * doc/knownbugs.html: added, contains list of known bugs at release
4573         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
4574
4575 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
4576
4577         * device/include/mcs51/compiler.h: added SFRX for xdata based special
4578           function registers and corrected defaults with additional warning
4579         * device/lib/malloc.c: cosmetic changes
4580         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
4581         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
4582           (fillGaps): and used it
4583
4584 2006-07-20 Raphael Neider <rneider AT web.de>
4585
4586         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
4587           output unless SDCCPICDEBUG is set
4588         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
4589           output if SILENT is set
4590
4591 2006-07-11 Borut Razem <borut.razem AT siol.net>
4592
4593         * doc/README.txt: updated
4594
4595 2006-07-10 Borut Razem <borut.razem AT siol.net>
4596
4597         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
4598           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
4599           in WIN32 installation
4600         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
4601           release candidate 1
4602
4603 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
4604
4605         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
4606         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
4607
4608 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
4609
4610         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
4611
4612 2006-07-06 Borut Razem <borut.razem AT siol.net>
4613
4614         * support/regression/tests/bitfields.c:
4615           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
4616         * support/regression/tests/constantRange.c:
4617           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
4618
4619 2006-07-04 Borut Razem <borut.razem AT siol.net>
4620
4621         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
4622           src/port.mk,
4623           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
4624           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
4625           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
4626           reverted changes from 2006-07-03
4627         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
4628         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
4629           added CPPFLAGS, used by the host port
4630
4631 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
4632
4633         * support/regression/valdiag/tests/switch.c,
4634         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
4635         * support/regression/tests/libmullong.c: fixed for host
4636         * support/regression/ports/host/spec.mk: disable all warnings for host,
4637         SDCC runs with --less-pedantic too
4638
4639 2006-07-03 Borut Razem <borut.razem AT siol.net>
4640
4641         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
4642           defined CPPFLAGS
4643         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
4644         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
4645           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
4646           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
4647           include ../port.mk
4648         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
4649           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
4650           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
4651           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
4652
4653 2006-07-02 Raphael Neider <rneider AT web.de>
4654
4655         * src/pic16/devices.inc,
4656         * device/include/pic16/pic18fregs.h,
4657         * device/include/pic16/pic18f4550.h,
4658         * device/lib/pic16/pics.all,
4659         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
4660
4661 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
4662
4663         * as/hc08/lkaomf51.c (OutputName),
4664         * as/mcs51/lkaomf51.c (OutputName),
4665         * as/z80/asmain.c (asmbl),
4666         * src/ds390/main.c (asmLineNodeFromLineNode),
4667         * src/hc08/ralloc.c (hc08_assignRegisters),
4668         * src/mcs51/main.c (asmLineNodeFromLineNode),
4669         * src/xa51/ralloc.c (checkRegMask),
4670         * src/xa51/gen.c (emitcode),
4671         * src/z80/gen.c (_emit2),
4672         * src/SDCCast.c (searchLitOp),
4673         * src/SDCCglobl.h,
4674         * support/packihx/packihx.c,
4675         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
4676         * src/ds390/gen.c (aopPutUsesAcc),
4677         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
4678         * support/regression/tests/libmullong.c (mullong_wrapper),
4679         * src/SDCCsymt.c (powof2),
4680         * src/SDCCast.c,
4681         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
4682         * src/SDCCsymt.h: added TYPE_TARGET_*
4683         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
4684         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
4685         SDCCast because 1) header problems 2) this is the right place
4686         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
4687         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
4688         prototype
4689
4690 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
4691
4692         * src/SDCCicode.h: removed buggy semicolon in unused macro
4693         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
4694         search for previous definiton of auto symbols too,
4695         (findPrevUse): fixed logic of emitWarnings
4696
4697 2006-06-26 Raphael Neider <rneider AT web.de>
4698
4699         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
4700           PCLATH and PCLATU on interrupts, potentially fixes #1505141
4701
4702 2006-06-25 Raphael Neider <rneider AT web.de>
4703
4704         * device/lib/pic/libm: NEW, added math library functions
4705         * device/lib/pic/libsdcc: NEW; added float support functions
4706         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
4707         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
4708           NEW, added math related headers
4709         * device/include/asm/pic/features.h: NEW
4710         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
4711           (popGet): allow larger offsets for AOP_PCODE,
4712           (genDataPointerSet): handle literals explicitly, more debug output,
4713           (genAssign): fixed for float using aopLiteral ;-)
4714         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
4715           GOTO initialisation routine
4716         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
4717           flag on registers, fixes #1469043 (local variables do not work)
4718         * src/pic/main.c (_pic14_do_link),
4719         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
4720           available
4721
4722 2006-06-25 Borut Razem <borut.razem AT siol.net>
4723
4724         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
4725           characters printed (not including the trailing '\0' used to end
4726           output to strings). Problem detected in regression test bug-927659.c.
4727           NOTE: printf() family functions should return int instead
4728           unsigned int!
4729         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
4730           specifier are printed as themselves
4731         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
4732           support flags, width and precision specifiers
4733
4734 2006-06-24 Borut Razem <borut.razem AT siol.net>
4735
4736         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
4737           to the list of sdcc tagrets not supporting bit type
4738         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
4739           testfor pic16 due to bug:
4740           [ 1511794 ] pic16: regression test bug-895992.c fails
4741
4742 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
4743
4744         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
4745         * src/SDCCglue.c (initPointer), fixed bug 1496419
4746         * support/regression/tests/bug1496419.c: new, added
4747
4748 2006-06-22 Borut Razem <borut.razem AT siol.net>
4749
4750         * support/regression/ports/pic16/support.c: use gpsim usart module from
4751           libgpsim_modules library
4752
4753 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4754
4755         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
4756         IP0H to IPH0.
4757
4758 2006-06-19 Raphael Neider <rneider AT web.de>
4759
4760         * src/pic/glue.h,src/pic16/glue.h: added prototypes
4761         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
4762           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
4763           (pic14printExterns,pic14printPublics,pic16printPublics,
4764           pic16_printExterns): use new functions to emit symbols
4765           (picglue,pic16glue): emit publics before emitting externs
4766         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
4767           locally defined functions to avoid bug #1443651
4768         * support/regression/tests/bug-716242.c: removed pic16 workaround
4769         * support/regression/ports/pic16/spec.mk: ignore errors during build
4770
4771 2006-06-19 Raphael Neider <rneider AT web.de>
4772
4773         * src/pic/glue.h: added pic14aopLiteral prototype
4774         * src/pic/glue.c (pic14aopLiteral): return unsigned int
4775         * src/pic/gen.c: removed stdint.h dependency
4776           (aopGet): use Safe_strdup()
4777           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
4778           (genDataPointerSet): use pic14aopLiteral()
4779         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
4780           for pic16; thanks to Bernhard and Maarten
4781
4782 2006-06-18 Borut Razem <borut.razem AT siol.net>
4783
4784         * support/regression/tests/structflexarray.c: flexible array members
4785           not supported by gcc < 3
4786         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
4787           GUI tool by default
4788         * src/pic/gen.c: don't include [p]strdin.h on solaris
4789         * support/Util/pstdint.h: addad svn attributes
4790         * support/regression/tests/constantRange.c,
4791           support/regression/tests/rotate.c: include inttypes.h instead
4792           stdint.h on solaris, addad svn attributes
4793
4794 2006-06-18 Raphael Neider <rneider AT web.de>
4795
4796         * src/SDCCsymt.c (initCSupport): change return type of divschar to
4797           int for PIC16
4798         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
4799           (pic16_genMinusBits): simplified sign-extension
4800           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
4801             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
4802             adjusted to correctly handle mixed-signed operands, disabled
4803             now unused multiplciation routines
4804         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
4805           (assignResultValue): added argument denoting the size of the result
4806             as returned by the function (fixes upcasts in assigning from
4807             function calls: char foo(); int i = foo();)
4808           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
4809             function result to assignResultValue
4810           (genMult): disabled inlined multiplication code
4811           (genDiv): augmented to also handle the modulus operator, fixed to
4812             handle mixed-signed operands correctly
4813           (genMod): simply call genDiv, disabled unused code
4814           (genAssign): fixed missing (sign-)extension on result
4815         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
4816             valid char operands, allow signed operands for native code, added
4817             division and modulo operator handling
4818         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
4819
4820         As a consequence, onebyte.c (if split into two files) and muldiv.c
4821         pass regression tests.
4822
4823 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4824
4825         * doc/Makefile.in: two runs of makeindex seem needed to get
4826         correct page references in the index of sdccman.pdf
4827         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
4828
4829 2006-06-17 Borut Razem <borut.razem AT siol.net>
4830
4831         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
4832
4833 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4834
4835         * doc/sdccman.lyx: updated, added (porting source code, debugging),
4836         mentioned ec2drv and paulmon
4837
4838 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
4839
4840         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
4841           consecutive abs areas
4842           (find_empty_space, allocate_space): added map to handle codemap or
4843            xdatamap,
4844           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
4845            absolute idata and xdata
4846         * as/mcs51/lkmem.c (summary2): updated legend
4847
4848 2006-06-16 Raphael Neider <rneider AT web.de>
4849
4850         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
4851
4852 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
4853
4854         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
4855           1208515
4856         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
4857
4858 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
4859
4860         * src/port.h (struct PORT): added field gp_tags, to hold the tag
4861         value of generic pointers,
4862         * src/avr/main.c,
4863           src/ds390/main.c,
4864           src/hc08/main.c,
4865           src/izt/i186.c,
4866           src/izt/tlcs900h.c,
4867           src/mcs51/main.c,
4868           src/pic/main.c,
4869           src/pic16/main.c,
4870           src/xa51/main.c,
4871           src/z80/main.c: PORT structure, added elements for gp_tags field,
4872         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
4873         fields in the PORT structure of each port,
4874         * src/SDCCast.c (decorateType): allow processing of generic pointers
4875         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
4876         S_FIXED symbols
4877
4878 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
4879
4880         * link/z80/lkgb.c,
4881         * link/z80/lkgg.c,
4882         * src/pic16/gen.c,
4883         * src/pic16/main.c,
4884         * src/pic16/pcode.c,
4885         * src/pic/main.c,
4886         * src/pic/pcoderegs.c,
4887         * src/SDCCicode.c,
4888         * src/SDCCmain.c,
4889         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
4890           bug 1504689 on minGW
4891
4892 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4893
4894         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
4895
4896 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
4897
4898         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
4899
4900 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
4901
4902         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
4903           for optimization
4904
4905 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
4906
4907         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
4908         to a char variable. Fixed bug #1504211
4909         * device/include/pic16/adc.h,
4910         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
4911         and fixed bug #1364390
4912
4913 2006-06-10 Borut Razem <borut.razem AT siol.net>
4914
4915         * CVSROOT: removed the CVS left-over
4916
4917 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
4918
4919         * as/hc08/asmain.c (asexit),
4920         * as/hc08/lkmain.c (lkexit),
4921         * as/mcs51/asmain.c (asexit),
4922         * as/mcs51/lkmain.c (lkexit),
4923         * src/SDCCglue.c (DEFSETFUNC),
4924         * src/SDCCmain.c (linkEdit, assemble),
4925         * support/librarian/sdcclib.c (AddRel),
4926           replaced unlink() by standard C remove()
4927         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
4928         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
4929           gatherImplicitVariables): new, added to fix bug 608752,
4930           (createFunction): added gatherImplicitVariables()
4931         * src/SDCCast.h: added createRMW prototype
4932         * src/SDCCsymt.h (struct symbol): added infertype
4933         * support/regression/tests/bug608752.c: new, added
4934
4935 2006-06-10 Raphael Neider <rneider AT web.de>
4936
4937         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
4938           multibyte dummy reads (fixes #1503234)
4939
4940 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
4941
4942         * device/include/mcs51/compiler.h: new, added header file to enable
4943           creating common sfr definition header files for different compilers
4944
4945 2006-06-05 Raphael Neider <rneider AT web.de>
4946
4947         * src/pic16/{pcode.h,genarith.c}:
4948           introduced pCodeOp combining any two pCodeOps (previously only
4949           two register operands could be combined), removed pcop2 from
4950           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
4951         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
4952         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
4953           rewritten to use new PO_TWO_OPS
4954         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
4955         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
4956           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
4957           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
4958           (pic16_get_op): embraced return arg to allow #define return(x),
4959             added new case for combined opcodes
4960           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
4961           (pic16_pCode2str,pic16_getRegFrompCodeOp,
4962            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
4963
4964 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
4965
4966         * src/SDCCval.c (checkConstantRange): added
4967         * src/SDCCval.h: added checkConstantRange
4968         * support/Util/SDCCerr.c,
4969         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
4970         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
4971         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
4972         * src/SDCCast.c (decorateType): added checkConstantRange,
4973         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
4974         can be emitted with the correct always true/false warning,
4975         added optimization for double '!';
4976         result of decorateType() must be assigned back to the tree, because
4977         decorateType() can change the tree
4978         * src/SDCCicode.c (geniCodeLogic),
4979         (geniCodeAssign): replaced new checkConstantRange, added warnings,
4980         (checkConstantRange): removed, it was only a fragment which never
4981         emitted a warning
4982         * src/SDCCsymt.c (computeType): fixed promotion for
4983         "-1 < (unsigned bit) b"
4984         * src/pic/ralloc.c (packRegsForAssign),
4985         * src/pic16/ralloc.c (packRegsForAssign),
4986         * src/hc08/ralloc.c (packRegsForAssign),
4987         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
4988         from mcs51
4989         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
4990         * support/regression/tests/constantRange.c: added
4991         * support/valdiag/tests/constantRange.c: added
4992         * support/valdiag/valdiag.py: added -DPORT_HOST=1
4993
4994 2006-06-02 Borut Razem <borut.razem AT siol.net>
4995
4996         * support/regression/ports/pic16/support.c: increase stack size
4997           to 255 bytes
4998         * support/regression/Makefile.in: sort tests by name so that the
4999           resutlts can be compared on different machines / platforms
5000
5001 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
5002
5003         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
5004         * src/ds390/gen.c (emitLabel): new, added,
5005           (genDjnz): fixed stack overflow bug,
5006           (throughout): cosmetic changes to sync with mcs51/gen.c,
5007           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
5008         * src/mcs51/gen.c (genEndFunction): small optimization,
5009           (throughout): cosmetic changes to sync with ds390/gen.c
5010
5011 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
5012
5013         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
5014           (_print_format): fixed printing pointers
5015         * src/mcs51/gen.c (emitLabel, movb): new, added,
5016           (genAssign): small optimization,
5017           (genDjnz): fixed stack overflow bug,
5018           (throughout): replaced sprintf with SNPRINTF,
5019           replaced mcs51_regWithIdx with REG_WITH_INDEX,
5020           replaced emitcode("mov", "b,...") with MOVB(...),
5021           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
5022           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
5023         * src/mcs51/peeph.def: added rules 140 and 264
5024         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
5025           so they may get optimized into registers
5026
5027 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
5028
5029         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
5030           immediately when encountered,
5031           (printUsage): always use stderr even on windows
5032
5033 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
5034
5035         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
5036         (processParms): fixed bug #1247551
5037         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
5038         parseCmdLine, main): print '--version' to stdout,
5039         print 'help' to stdout if --help is given,
5040         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
5041         arguments are given; fixed --help
5042
5043 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
5044
5045         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
5046         * support/regression/tests/bug-1493710.c: added
5047
5048 2006-05-27 Borut Razem <borut.razem AT siol.net>
5049
5050         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
5051           static instead auto
5052         * support/regression/ports/pic16/support.c: increase stack size
5053           from default 64 bytes to 128 bytes
5054         * support/regression/tests/staticinit.c,
5055           support/regression/tests/float.c: regression tests fully enabled
5056           for pic16 port by putting the initialized data arrays into the code
5057           section
5058         * support/regression/ports/pic16/spec.mk: don't link default libraries.
5059           This was changed by mistake in the previous version.
5060
5061 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
5062
5063         * src/pic16/gen.c (genFunction, genEndFunction): some
5064         beautifications, fixed bug with falsely restoring FSR2 in large
5065         stack model, thanks to Beau E. Cox for reporting the bug
5066
5067 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
5068
5069         * debugger/mcs51/break.c,
5070         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
5071           use %p to print pointers, made address variables unsigned
5072         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
5073         * debugger/mcs51/symtab.c (parseSymbol): must return something
5074         * src/mcs51/gen.c (aopForSym): small optimization,
5075            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
5076           (freeAsmop): added missing break,
5077           (aopPut): removed parameter bvolatile, determine it inside the function,
5078           (saveRegisters, unsaveRegisters): small optimization,
5079           (genIpush): removed pointless check,
5080           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
5081           replaced sprintf with SNPRINTF,
5082           replaced strcpy with strncpyz,
5083           updated aopPut calls,
5084           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
5085         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
5086
5087 2006-05-24 Borut Razem <borut.razem AT siol.net>
5088
5089         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
5090           modification of test for the pic16 port, put the array to the code
5091           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
5092
5093 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5094
5095         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
5096         * support/Util/pstdint.h: added
5097
5098 2006-05-22 Borut Razem <borut.razem AT siol.net>
5099
5100         * src/regression/Makefile: removed bool2.c test, added -q linker option
5101         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
5102           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
5103           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
5104           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
5105           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
5106           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
5107           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
5108           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
5109           define SUPPORT_BIT_TYPES 0, removed unused bit variables
5110
5111 2006-05-22 Raphael Neider <rneider AT web.de>
5112
5113         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
5114           bug #1492360 (problematic due to generic pointers, see code)
5115
5116 2006-05-22 Borut Razem <borut.razem AT siol.net>
5117
5118         * support/regression/ports/pic16/specs.mk: removed stack size linker
5119           directive
5120         * support/regression/tests/array.c,
5121           support/regression/tests/bitopcse.c,
5122           support/regression/tests/bug-908454.c,
5123           support/regression/tests/malloc.c: modified for pic16 regression test
5124         * support/regression/tests/bitfields.c:
5125           pic16 - excluded bitfileds of size > 8
5126         * support/regression/tests/bp.c: pic16 - reduced data size
5127         * support/regression/tests/bug-221100.c: pic16 - reduced data size
5128         * support/regression/tests/bug-460010.c:
5129           pic16 - used the absolute address the fits in memory
5130         * support/regression/tests/bug-716242.c:
5131           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
5132         * support/regression/tests/float.c:
5133           pic16 - excluded - data size too big
5134         * support/regression/tests/onebyte.c:
5135           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
5136         * support/regression/tests/shifts.c:
5137           pic16 - function names probably have to differ in first X characters
5138           (gpasm limitation?)
5139         * support/regression/tests/staticinit.c:
5140           pic16 - excluded some tests due error: no target memory available for
5141           section ".idata"
5142
5143 2006-05-22 Borut Razem <borut.razem AT siol.net>
5144
5145         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
5146           second try. Thanks Stas Sergeev once more.
5147
5148 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
5149
5150         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
5151           (genLeftShift, genRightShift): fixed bug 1491627
5152         * src/hc08/peeph.def (rules 7, 8.x): added
5153         * support/regression/tests/shifts.c (ShiftLeftByParam,
5154           ShiftRightByParam, testShiftByParam): added to test variable shifting
5155
5156 2006-05-20 Raphael Neider <rneider AT web.de>
5157
5158         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
5159         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
5160           (allocReg): add only new registers to dynAllocRegs,
5161           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
5162             #1489055, #1445850, and probably #1483693
5163
5164 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
5165
5166         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
5167         bug in for-loop that didn't emit the last of CONFIG and ID registers
5168
5169 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
5170
5171         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
5172           with offset
5173         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
5174           1489016, 1434401 and 1490124
5175         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
5176           1489016, 1434401 and 1490124
5177
5178 2006-05-17 Borut Razem <borut.razem AT siol.net>
5179
5180         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
5181           thanks Stas Sergeev
5182
5183 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5184
5185         * device/include/mcs51/P89c51RD2.h,
5186         * device/include/mcs51/P89LPC901.h,
5187         * device/include/mcs51/P89LPC922.h,
5188         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
5189
5190 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
5191
5192         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
5193         to fix missing stack pragma in compiled binary object file,
5194
5195 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
5196
5197         * support/packihx/configure.in,
5198         * support/packihx/configure: removed warning, autoconf >= 2.5x can
5199         determine sizeof basic types even while cross compiling
5200
5201 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
5202
5203         * src/avr/gen.c (aopop),
5204         * src/ds390/gen.c (aopOp),
5205         * src/hc08/gen.c (aopOp),
5206         * src/mcs51/gen.c (aopop),
5207         * src/pic16/gen.c (pic16_aopOp),
5208         * src/pic/gen.c (aopOp),
5209         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
5210         if size of operand is smaller than spill location
5211
5212 2006-05-12 Borut Razem <borut.razem AT siol.net>
5213
5214         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
5215           have to have CR/LF line endings even if they are checked out on *nix
5216           or on WIN32 in cygwin binmode
5217
5218 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
5219
5220         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
5221         * device/include/ds80c390.h: added sfr16 definitions
5222         * src/ds390/gen.c,
5223         * src/ds390/gen.h,
5224         * src/ds390/main.c,
5225         * src/ds390/ralloc.c,
5226         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
5227           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
5228           bit returning functions
5229         * support/regression/tests/sfr16.c: enabled test on ds390
5230
5231 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5232
5233         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
5234         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
5235
5236 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
5237
5238         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
5239         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
5240           (cl_address_space constructor): removed expensive initialization,
5241           (cl_address_space::get_cell): extended for late initialization,
5242           (cl_address_space::*): use late initialization,
5243           (cl_address_decoder::activate): removed expensive initialization,
5244           This reduced regression test running time by 25%
5245
5246 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
5247
5248         * packihx/,
5249         * configure.in,
5250         * configure,
5251         * sdcc.dsw,
5252         * Makefile.bcc,
5253         * Makefile.in,
5254         * support/packihx/Makefile.in,
5255         * support/packihx/clean.mk,
5256         * support/packihx/Makefile.bcc,
5257         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
5258
5259 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5260
5261         * src/SDCCval.c (valNot): fix for regression test failure
5262           of not.c on big endian hosts
5263
5264 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
5265
5266         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
5267
5268 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5269
5270         * device/lib/mcs51/Makefile.in: changed string comparison operator
5271           to = for POSIX compliance; == is bash extension
5272
5273 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
5274
5275         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
5276           kosmonaut_pirx
5277
5278 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
5279
5280         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
5281         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
5282         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
5283         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
5284         bug report #1478657,
5285
5286 2006-05-05 Borut Razem <borut.razem AT siol.net>
5287
5288         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
5289           making the html
5290
5291 2006-05-02 Borut Razem <borut.razem AT siol.net>
5292
5293         * doc/Makefile.in: removed *.ind dependency since there is no rule to
5294           create *.ind, which made make to fail if invoked with -j 2
5295
5296 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
5297
5298         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
5299           Hubert Sack for patch 1479782
5300
5301 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
5302
5303         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
5304
5305 2006-05-01 Raphael Neider <rneider AT web.de>
5306
5307         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
5308           (create_pic): store only prefix-free device name,
5309           (init_pic): check for device names with "16" prefix,
5310           (list_valid_pics),
5311         * src/pic/device.h (struct PIC_device),
5312         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
5313             stored device name,
5314         * device/include/pic/pic12f{635,675,629,683}.h,
5315         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
5316         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
5317         * device/include/pic/pic16f505.h,
5318         * device/lib/pic/libdev/pic16f505.c: removed
5319         * device/include/pic/pic14devices.txt: added support for pic12f
5320             devices, removed unsupported non 16-bit devices
5321             [above changes provided by patch from Zik Saleeba]
5322         * src/pic/*, src/pic16/*, device/include/pic16/*,
5323           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
5324
5325 2006-05-01 Borut Razem <borut.razem AT siol.net>
5326
5327         * configure.in, configure, doc/Makefile.in:
5328           sync with nightly build makefile - latex, dvipdf and dvips
5329           not needed any more
5330
5331 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
5332
5333         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
5334         in the library source
5335
5336 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
5337
5338         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
5339
5340 2006-04-28 Raphael Neider <rneider AT web.de>
5341
5342         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
5343         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
5344           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
5345         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
5346
5347 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
5348
5349         * device/lib/pic/libdev/Makefile.in,
5350         * device/lib/hc08/Makefile.in,
5351         * device/lib/gbz80/Makefile.in,
5352         * device/lib/z80/Makefile.in,
5353         * device/lib/ds390/Makefile.in,
5354         * device/lib/ds400/Makefile.in: added srcdir to include search path,
5355         thanks to Borut for the bug report
5356         * configure.in,
5357         * configure: always create doc/Makefile independent from --enable-doc
5358         * Makefile.in: always install from directory doc independent from
5359         --enable-doc
5360         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
5361         removed
5362         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
5363         * doc/Makefile.in: install *.txt if present
5364         * device/include/Makefile.in (install): added installation of pic/*.inc
5365         and pic/*.txt files again, they were erroneously removed
5366
5367 2006-04-28 Raphael Neider <rneider AT web.de>
5368
5369         * src/pic/{gen.c,main.h,pcode.c},
5370         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
5371             concerning signedness with casts
5372
5373 2006-04-28 Raphael Neider <rneider AT web.de>
5374
5375         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
5376             definition of an interrupt handler,
5377         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
5378             interrupt handler stuff from picglue() to separate routine,
5379           (picglue): enabled definition of intr handlers in files w/o main()
5380
5381 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5382
5383         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
5384           compilation with MSVC 2005 Express Edition (VC8)
5385
5386 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
5387
5388         * device/lib/Makefile: fixed build of gbz80 lib
5389
5390 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5391
5392         * support/regression/tests/bug-460010.c,
5393         * support/regression/tests/bug-524691.c,
5394         * support/regression/tests/bug-716242.c: removed conditional defines
5395           that are already in testfwk.h
5396
5397 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
5398
5399         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
5400           (AccAXRsh1): added, shift right by 1,
5401           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
5402            AccAXLrl1
5403         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
5404
5405 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
5406
5407         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
5408         remove cast to same type
5409         * src/SDCCast.c (decorateType): fix for RFE 1475742,
5410         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
5411         * as/z80/Makefile,
5412         * link/z80/Makefile: removed, they have moved to
5413         Makefile.in files
5414         * configure,
5415         * configure.in: replaced duplicate message about ucsim by missing sdcpp
5416         * install-sh: fix bug #1204398 by setting umask 0022
5417         * device/lib/Makefile: separate build of z80 and gbz80 lib
5418
5419 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
5420
5421         Enabled VPATH feature: changed nearly all Makefiles (149 files).
5422         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
5423
5424         One basic decision: e.g. src/clean.mk includes further files. In order
5425         to make this work there are two solutions:
5426         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
5427           run configure on them. This way they can use
5428           'include $(srcdir)/port-clean.mk'
5429         - always include clean.mk by the Makefile at the same level. To avoid
5430           that `make clean` tries to include and build Makefile.dep the
5431           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
5432           implemented, because now even `make uninstall` doesn't create
5433           Makefile.in. clean.mk could be eliminated by pasting it in
5434           Makefile.in.
5435
5436         * debugger/mcs51/Makefile.in: build own objects from library sources
5437         (SLIB, SDCC) in current directory
5438
5439         * configure, configure.in: renamed --disable-device-lib-build in
5440         --disable-device-lib; added --enable-doc, the required tools are
5441         searched by configure; added result message; the toolchain for the
5442         belonging ports are now only built, if the port is enabled.
5443
5444         * support/regression/*: all output is written in directory gen, because
5445         the fwk and ports directories don't livet in the build tree using vpath
5446
5447         * doc/sdccman.lyx: renamed --disable-device-lib-build to
5448         --disable-device-lib, added --enable-doc, added section VPATH
5449
5450         * sim/ucsim/configure.in,
5451         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
5452         z80 are enabled by default
5453
5454 2006-04-24 Raphael Neider <rneider AT web.de>
5455
5456         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
5457             to config word, "pic14_"-prefixed some extern functions
5458           (pic14_emitConfigWord): emit __config directive(s) if assignment to
5459             config word has been found
5460         * src/pic/device.h: added prototypes
5461         * src/pic/pcode.c: added "pic14_"-prefix where needed
5462         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
5463             fixup
5464         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
5465             words,
5466           (pic14emitRegularMap): ignore config words,
5467           (pic14createInterruptVect): moved generating __config directives away
5468           (picglue): have __config directives emitted
5469
5470 2006-04-24 Borut Razem <borut.razem AT siol.net>
5471
5472         * doc/Makefile: sync with nightly build makefile
5473
5474 2006-04-24 Raphael Neider <rneider AT web.de>
5475
5476         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
5477             registers that have not been assigned proper liveranges,
5478             fixes #1469504 and #1474602,
5479           (pCodeRegOptimizeRegUsage): fixed typo in comment
5480
5481 2006-04-24 Borut Razem <borut.razem AT siol.net>
5482
5483         * device/examples/main8051.c: deleted - it was removed from CVS
5484           24.mar.2000 and after that modified 18.feb.2001, so it reappered
5485           after the transition to Subversion
5486         * src/SDCCalloc.h: deleted - it was removed  from CVS
5487           3.feb.2001 and after that modified 18.feb.2001, so it reappered
5488           after the transition to Subversion
5489         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
5490           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
5491           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
5492           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
5493
5494 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
5495
5496         * as/asx8051.dsp: added mcs51/strcmpi.h
5497         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
5498         * as/hc08/aslink.h: updated lnksect prototype
5499         * as/hc08/asm.h,
5500         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
5501         * as/hc08/asmain.c,
5502         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
5503           (newdot): handle A_ABS
5504         * as/hc08/asout.c,
5505         * as/mcs51/asout.c (outarea): output address
5506         * as/hc08/lkaomf51.c,
5507         * as/mcs51/lkaomf51.c: disabled unused array UsageType
5508         * as/hc08/m08pst.c,
5509         * as/mcs51/i51pst.c,
5510         * as/z80/z80pst.c: "ABS" is not A_OVR
5511         * as/hc08/lkarea.c (newarea): read a_addr,
5512           (lnkarea): added codemap array, sort absolute areas to the front,
5513            combine all GSINITx/GSFINAL,
5514           (find_empty_space, allocate_space): new functions,
5515           (lnksect): return next address, handle absolute sections
5516         * as/mcs51/lkarea.c (newarea): read a_addr,
5517           lnksect2 prototype changed,
5518           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
5519           (find_empty_space, allocate_space): new, factored out of lnksect2,
5520           (lnksect2): return next address, handle absolute sections
5521         * as/hc08/lkhead.c,
5522         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
5523         * as/hc08/lklibr.c (addfile, fndsym),
5524         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
5525           index out of range and detect both '\' and '/'
5526         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
5527         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
5528           regression tests (ds390 cannot return bool yet)
5529         * doc/sdccman.lyx: changed version number, document changed --no-peep,
5530           document critical interrupts on z80, document changed SDCC define
5531         * src/asm.c (_asxxxx_mapping): fixed .org directive,
5532           (_a390_mapping): added .org directive
5533         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
5534           (genMultOneByte): fixed warnings
5535         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
5536           ones
5537         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
5538         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
5539           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
5540         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
5541         * src/pic16/main.c: removed newReg prototype
5542         * src/pic16/pcode.c,
5543         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
5544           warnings
5545         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
5546           ones
5547         * src/pic16/ralloc.c
5548         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
5549           to fix warnings
5550         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
5551           from short to PIC_OPTYPE
5552         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
5553         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
5554           optype from short to PIC_OPTYPE
5555         * src/port.h: made int_size unsigned to fix warnings
5556         * src/SDCC.y: fixed warning on MSVC
5557         * src/SDCCicode.c (getArraySizePtr): return unsigned int
5558         * src/SDCCopt.c (convertToFcall): fixed warnings
5559         * src/SDCCsymt.h: removed double prototype for genSymName
5560         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
5561           offset int to fix warnings
5562
5563 2006-04-22 Borut Razem <borut.razem AT siol.net>
5564
5565         * doc/sdccman.lyx, */Makefile, */Makefile.in:
5566           references to CVS replaced with Subversion
5567
5568 2006-04-21 Borut Razem <borut.razem AT siol.net>
5569
5570         * doc/sdccman.lyx, */Makefile, */Makefile.in:
5571           references to CVS replaced with Subversion
5572
5573 2006-04-19 Borut Razem <borut.razem AT siol.net>
5574
5575         * src/version.awk: adapted for svn
5576         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
5577           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
5578           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
5579           /binutils-avr/etc/*.vi, *.jin: removed all properties
5580           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
5581
5582 2006-04-19 Borut Razem <borut.razem AT siol.net>
5583
5584         * CVS to Subversion migration completed
5585
5586 2006-04-18 Borut Razem <borut.razem AT siol.net>
5587
5588         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}/lib/pic/*.o,
5589           ${DEV_ROOT}/lib/src/pic/libdev/*.S, ${DEV_ROOT}/lib/src/pic/libdev/*.inc
5590
5591 2006-04-17 Borut Razem <borut.razem AT siol.net>
5592
5593         * device/include/Makefile.in: added pic/*.inc to the installation
5594
5595 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
5596
5597         * support/regression/collate-results.py: fixed output in case of
5598         a valdiag error
5599         * support/regression/generate-cases.py: fixed splitting of pathnames
5600         with dots
5601         * as/hc08/lklibr.c (addfile),
5602         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
5603
5604 2006-04-11 Raphael Neider <rneider AT web.de>
5605
5606         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
5607         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
5608         * src/pic16/pcode.c (assignValnums): fixed #1460578
5609
5610 2006-04-11 Raphael Neider <rneider AT web.de>
5611
5612         * device/lib/pic/libdev/*.c,
5613         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
5614           fixes #1468739, enables compilation in --std-c99 mode
5615         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
5616
5617 2006-04-11 Raphael Neider <rneider AT web.de>
5618
5619         * src/pic/device.c (find_device): removed debug output
5620           (list_valid_pics): enabled verbose listing of supported devices
5621         * device/include/stdbool.h: define bool as char for pic14/16 as well
5622
5623 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5624
5625         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
5626
5627 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5628
5629         * .version: bumped version to 2.5.6
5630         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
5631
5632 2006-04-06 Raphael Neider <rneider AT web.de>
5633
5634         * .version: bumped version to 2.5.6 (pic14 ABI changed)
5635         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
5636         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
5637           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
5638             pic14_constructAbsMap
5639           (pic14printPublics): declare absolute global symbols as global
5640           (pic14createInterruptVect),
5641         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
5642           (newReg): assume new registers unused, use correct name in
5643             hashtable (reg->name instead of name), more debugLog output
5644         * src/pic/device.h (PIC_device): added fields for verbose output
5645         * src/pic/device.c: moved device definition to pic14devices.txt,
5646             added routines for runtime parsing of pic14devices.txt,
5647             added support for second config word
5648         * src/pic/main.c (_process_pragma): removed #pragma maxram,
5649           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
5650           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
5651           (_pic14_parseOptions): moved pCodeInitRegisters here
5652           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
5653         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
5654           (pCodeInitRegisters): rewrapped comments, perpared new approach to
5655             handling the pseudo stack
5656         * device/lib/Makefile.in: ignore failures in objects-pic16,
5657         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
5658         * device/lib/pic/NEWS: document new dependency on picXXX.lib
5659         * device/lib/pic/Makefile.subdir,
5660         * device/lib/pic16/Makefile.subdir: improved clean rules
5661         * device/lib/pic/libdev/: NEW, pic14 device libraries
5662         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
5663         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
5664         * device/include/Makefile.in: create subdir and install pic14 headers
5665         * device/include/pic/p16f_common.inc: removed unused declarations
5666         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
5667             PICs from inc2h.pl v1.6,
5668             replaced BIT_AT macros with struct declarations
5669         * device/include/pic/pic14devices.txt: definition of supported devices,
5670             all above improvements contributed by Zik Saleeba, thanks
5671         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
5672         * support/scripts/sdcc.nsi: also install pic14 device libraries and
5673             headers
5674
5675 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
5676
5677         * device/include/mcs51/c8051f410.h: added interrupt numbers,
5678         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
5679           thanks to Charles Olds
5680
5681 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5682
5683         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
5684
5685 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
5686
5687         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
5688         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
5689         * support/regression/bug1464657.c: added, new test
5690
5691 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5692
5693         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
5694           version number
5695
5696 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5697
5698         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
5699           --no-peep and --peep-file <file> are used don't use default rules but
5700           do use the <file>
5701
5702 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5703
5704         * src/mcs51/gen.c (genCall): fixed bug 1457608
5705
5706 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5707
5708         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
5709         changes seem to cause (trigger?) problems with the build system.
5710
5711 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
5712
5713         * src/SDCCpeeph.c (operandsLiteral): new, added,
5714           (callFuncByName): inserted operandsLiteral
5715         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
5716
5717 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5718
5719         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
5720         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
5721
5722 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
5723
5724         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
5725           implemented patch 1120823 Thanks to Willy De la Court (normal
5726           interrupts need an interrupt number now if they are made critical),
5727           and enabled nesting of critical functions though not for gbz80
5728           (genCritical, genEndCritical): added functions
5729           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
5730         * src/z80/mappings.i: added "ei" to all mappings
5731
5732 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5733
5734         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
5735         submitted by the Debian SDCC maintainer Aurelien Jarno:
5736         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
5737         archive with gcc 4.1 on mips and wrote the patch"
5738
5739 2006-03-16 Raphael Neider <rneider AT web.de>
5740
5741         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
5742           the left operand is shorter than the result (c* = lit-c* + int),
5743           fixes bug #1450796
5744         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
5745           OP_SYMBOL
5746
5747 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
5748
5749         * src/.version: increased version number to 2.5.5
5750         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
5751         linking is done manually in pic16 port's _linkEdit,
5752         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
5753         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
5754         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
5755         allocate asmop as AOP_ACC,
5756         (aopForRemat): added parameter 'bool result' in function declaration,
5757         (pic16_aopGet): return AOP_ACC when accessing WREG,
5758         (pic16_popGetTempReg): minor modification,
5759         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
5760         'pic16_allocWithIdx',
5761         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
5762         calling function in absolute addresses,
5763         (genAssign): take into account AOP_ACC asmop,
5764         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
5765         * src/pic16/pcoderegs.c: some debug functions and lines added,
5766         * src/pic16/ralloc.c (decodeRegType): added but commented out,
5767         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
5768         register too,
5769         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
5770         call to allocReg, not by manually allocating a new one,
5771         (pic16_assignRegisters): now before going through the register
5772         allocating functions mark all registers as free. This eliminates some
5773         side effects resulting from peephole parser done earlier in the backbone
5774
5775 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
5776
5777         * src/SDCCicode.c (geniCodeLogic),
5778         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
5779
5780 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
5781
5782         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
5783           (genSend): bugfix, do not allocate and free twice,
5784           (shiftRLong): handle partially overlapping aops
5785         * support/regression/tests/bitopcse.c: fixed warning redefined idata
5786
5787 2006-03-08 Borut Razem <borut.razem AT siol.net>
5788
5789         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
5790           for pic16
5791
5792 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
5793
5794         * support/regression/tests/bug1409955.c: new, added
5795         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
5796         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
5797           (aopForSym, aopOp): increment asmop.allocated if reused,
5798           (freeAsmop): decrement asmop.allocated and check for zero instead of
5799           using asmop.freed,
5800           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
5801           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
5802            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
5803            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
5804            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
5805            genSignedRightShift, genRightShift, genDataPointerGet,
5806            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
5807            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
5808             in reverse order from allocation,
5809           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
5810             added swappedLR to keep track
5811         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
5812           pdata & code for GCC, z80, gbz80 & hc08
5813         * support/regression/tests/zeropad.c: moved defines to testfwk.h
5814
5815 2006-03-08 Raphael Neider <rneider AT web.de>
5816
5817         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
5818
5819 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
5820
5821         * device/include/mcs51/c8051f410.h: new SiLabs mcu
5822         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
5823         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
5824
5825 2006-03-06 Borut Razem <borut.razem AT siol.net>
5826
5827         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
5828           made the linker quiet
5829
5830 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
5831
5832         * src/pic16/gen.c (genPcall): fixed bug #1443644
5833         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
5834         which dumps before the function entry point a data byte which represents
5835         the number of the local variables used by the specified function, added
5836         'xinst' for initial support for Extended Instruction Support,
5837         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
5838         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
5839         port->fun_prefix anymore (may change later),
5840         (genFunction, genEndFunction): do not store/restore local registers for
5841         _main (this should take care the --main-return command line option in
5842         the future),
5843         (genOr): removed some legacy pic-port instructions,
5844         * src/pic16/genarith.c (genAddLit): re-enabled old code because
5845         performing operations with SFR's causes data to be written more than
5846         once to each SFR. Perhaps SFRs should be handled in special cases...
5847         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
5848         pcode.h
5849         * src/pic16/main.c (_process_pragma): stack bound checking did not take
5850         into account for stack starting position,
5851         (struct OPTIONS pic16_optionsTable): added command line argument
5852         --extended or -y for Extended Instruction Support,
5853         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
5854         (deassignLRs): *** perhaps the most important change, old 'for' code
5855         (commented out for reference), didn't account for some registers which
5856         were left marked 'not free' after a pointer operation. The change
5857         reduces register usage a lot in some cases
5858
5859 2006-03-04 Borut Razem <borut.razem AT siol.net>
5860
5861         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
5862           _clean
5863         * support/regression/tests/bug-524697.c: decreased array size for
5864           mcs51 to fit into the internal RAM
5865         * support/regression/Makefile.in: a little bit more verbose
5866
5867 2006-03-03 Borut Razem <borut.razem AT siol.net>
5868
5869         * support/regression/fwk/lib/testfwk.c,
5870           support/regression/fwk/include/testfwk.h: introduced function
5871           _prints(), nonrecursive _printn(), call _initEmu() from main()
5872         * support/regression/ports/gbz80/support.asm,
5873           support/regression/ports/ucz80/support.asm,
5874           support/regression/ports/z80/support.asm,
5875           support/regression/ports/ds390/support.c,
5876           support/regression/ports/hc08/support.c,
5877           support/regression/ports/host/support.c,
5878           support/regression/ports/mcs51/support.c,
5879           support/regression/ports/xa51/support.c: added empty _initEmu()
5880           function
5881         * support/regression/ports/pic16/gpsim.cmd,
5882           support/regression/ports/pic16/spec.mk,
5883           support/regression/ports/pic16/support.c,
5884           support/regression/Makefile.in: added pic16 regression test
5885
5886 2006-03-01 Raphael Neider <rneider AT web.de>
5887
5888         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
5889           genConstPointerGet): use safe way of generating MOVFF to cover
5890             literals as well as registers, fixes bug #1440527
5891         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
5892             dereference
5893           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
5894             more correctly, fixes bug #1232186
5895           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
5896         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
5897             gplink guess the correct processor in more cases, applied patch
5898             from Till Riedel attached to and fixing bug #1436552
5899
5900 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5901
5902         * support/regression/tests/array.c: added, contains check for #1434401
5903         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
5904
5905 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
5906
5907         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
5908         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
5909         * device/include/mcs51/c8051f326.h,
5910         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
5911         * device/include/mcs51/c8051f000.h,
5912         * device/include/mcs51/c8051f018.h,
5913         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
5914           PCON_IDLE,PCON_STOP and added sfr16 definitions
5915
5916 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
5917
5918         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
5919           genGetWord): fixed bug 1409955
5920
5921 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
5922
5923         * device/include/hc08/mc68hc908gp32.h,
5924         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
5925
5926 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
5927
5928         * src/SDCCast.c (constExprValue): return NULL if not a value
5929         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
5930         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
5931         * support/regression/tests/bitfields.c: enabled signed bitfield for all
5932
5933 2006-02-13 Borut Razem <borut.razem AT siol.net>
5934
5935         * src/regression/ptrarg.c: added, fails due to bug #1430967
5936         * src/regression/Makefile: ptrarg.c added, ...
5937
5938 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
5939
5940         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
5941         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
5942
5943 2006-02-11 Borut Razem <borut.razem AT siol.net>
5944
5945         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
5946           print "Processor: xxx" message to stdout only if --verbose
5947
5948 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
5949
5950         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
5951         * support/regression/tests/bug1426356.c: added
5952         * support/regression/tests/bitfields.c: removed 2 tests
5953
5954 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
5955
5956         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
5957         * device/include/mcs51/c8051f330.h,
5958         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
5959           PCON_IDLE,PCON_STOP and added sfr16 definitions
5960         * device/lib/_divsint.c,
5961         * device/lib/_divuint.c,
5962         * device/lib/_divulong.c,
5963         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
5964           register bank bug for small stackauto
5965
5966 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
5967
5968         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
5969
5970 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
5971
5972         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
5973         * all.dsp: corrected several bin paths
5974         * device/include/mcs51/c8051f120.h,
5975         * device/include/mcs51/c8051f300.h,
5976         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
5977           to PCON_IDLE,PCON_STOP
5978         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
5979         * device/lib/printf_large.c (output_float): fixed bug 1388703
5980         * support/regression/tests/bug1057979.c: added test for bug 1388703
5981
5982 2006-02-08 Raphael Neider <rneider AT web.de>
5983
5984         * src/pic/pcode.c (pciTRIS): fixed typo,
5985           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
5986           (LinkFlow): fixed handling of flows that end in a call,
5987           (ReuseReg): perform safety check earlier
5988         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
5989             to work with flows at the beginning of a pBlock,
5990             fixes #1426557 (Symbol not previously defined),
5991           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
5992             usage information
5993           (RemoveUnusedRegisters): update register usage info
5994         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
5995             created, reuse existing ones instead
5996         * src/pic/gen.c (genPcall): fixed #1424719
5997
5998 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
5999
6000         * link/z80/lkmain.c,
6001         * link/z80/lklex.c,
6002         * link/z80/lkdata.c,
6003         * link/z80/aslink.h: fixed build on current cygwin:
6004         replaced getline() by lk_getline()
6005
6006 2006-02-01 Borut Razem <borut.razem AT siol.net>
6007
6008         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
6009           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
6010           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
6011           src/regression/bool1.c, src/regression/bool2.c,
6012           src/regression/bool3.c, src/regression/call1.c,
6013           src/regression/compare.c, src/regression/compare10.c,
6014           src/regression/compare2.c, src/regression/compare3.c,
6015           src/regression/compare4.c, src/regression/compare5.c,
6016           src/regression/compare6.c, src/regression/compare7.c,
6017           src/regression/compare8.c, src/regression/compare9.c,
6018           src/regression/configword.c, src/regression/for.c,
6019           src/regression/inline.c, src/regression/mult1.c,
6020           src/regression/nestfor.c, src/regression/or1.c,
6021           src/regression/pointer1.c, src/regression/ptrfunc.c,
6022           src/regression/rotate1.c, src/regression/rotate2.c,
6023           src/regression/rotate3.c, src/regression/rotate4.c,
6024           src/regression/rotate5.c, src/regression/rotate6.c,
6025           src/regression/rotate7.c, src/regression/string1.c,
6026           src/regression/struct1.c, src/regression/sub.c,
6027           src/regression/sub2.c, src/regression/switch1.c,
6028           src/regression/while.c, src/regression/xor.c,
6029           src/regression/create_stc, src/regression/simulate,
6030           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
6031           regression tests
6032         * src/regression/gpsim_assert.h: added
6033
6034 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
6035
6036         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
6037         ((void (code *) (void)) 0) ();
6038         * as/hc08/aslex.c,
6039         * as/hc08/aslink.h,
6040         * as/hc08/asm.h,
6041         * as/hc08/asmain.c,
6042         * as/hc08/lkdata.c,
6043         * as/hc08/lklex.c,
6044         * as/hc08/lkmain.c,
6045         * as/mcs51/aslex.c,
6046         * as/mcs51/aslink.h,
6047         * as/mcs51/asm.h,
6048         * as/mcs51/asmain.c,
6049         * as/mcs51/lkdata.c,
6050         * as/mcs51/lklex.c,
6051         * as/mcs51/lkmain.c,
6052         * as/z80/aslex.c,
6053         * as/z80/asm.h,
6054         * as/z80/asmain.c: fixed build on current cygwin:
6055         replaced getline() by as_getline()
6056
6057 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
6058
6059         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
6060         declarator in the symbol chain
6061         * src/SDCCsymt.h,
6062         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
6063         parameter list for function pointers
6064         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
6065         * support/regression/tests/bug-716242.c: added
6066
6067 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
6068
6069         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
6070         offset if possible
6071         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
6072
6073 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
6074
6075         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
6076         inifinitely recurseable, added static
6077         * support/regression/tests/bug-1408066.c: added
6078
6079 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
6080
6081         * src/SDCCicode.h,
6082         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
6083         renamed, added possibility to create "postLoopLbl"-labels
6084         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
6085         newiTempLoopHeaderLabel
6086         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
6087         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
6088         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
6089         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
6090         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
6091         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
6092         (basicInduction): fixed bug #136564, made static,
6093         (loopInduction): changed parameter of basicInduction, made static,
6094         (addPostLoopBlock): added
6095         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
6096         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
6097         findLoopEndSeq
6098         * support/regression/tests/bug-136564.c: added
6099         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
6100         --std-sdcc99 to LIBSDCCFLAGS
6101
6102 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
6103
6104         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
6105         while loop
6106         * support/regression/tests/bug-1406131.c: added
6107
6108 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
6109
6110         * src/SDCCast.c (decorateType): fix promotion of unary minus
6111         * src/SDCCsymt.c (computeType): beautified
6112         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
6113         (valUnaryPM, valComplement): fix sign and promotion,
6114         (valNot): ANSI: result type is int (SDCC: unsigned char)
6115         * support/regression/tests/uminus.c: speedup by removing superflous
6116         test case 'int'
6117         * support/regression/tests/onebyte.c: added promotion and signedness
6118         tests for unary minus
6119         * support/regressions/tests/bug-477927.c: disable warning about
6120         uninitialized variables
6121         * support/regression/tests/not.c: added
6122
6123 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
6124
6125         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
6126         * src/mcs51/gen.c (gen51Code): show final register usage after
6127         fillGaps in asm with --i-code-in-asm
6128         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
6129         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
6130         incUsed, rliveClear, adjustIChain): made static,
6131         (setFromRange): excluded because it's unused,
6132         (findPrevUseSym, markWholeLoop): added,
6133         (findPrevUse): rewritten; fixes bug 895992; now a complete search
6134         through all branches of predecessors enables sdcc to emit the warning
6135         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
6136         (rlivePoint): made static, added parameter emitWarnings which is only
6137         true during the first run out of two,
6138         (findRecursiveSucc, findRecursivePred): removed,
6139         (computeLiveRanges): made static, added parameter emitWarnings,
6140         (dumpIcRlive): added for debugging only
6141         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
6142         removed prototype of setFromRange()
6143         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
6144         in call of computeLiveRanges()
6145         * support/regression/tests/bug-895992.c: added
6146         * support/regression/tests/bug-971834.c: added
6147         * support/valdiag/tests/bug-895992.c: added
6148         * support/valdiag/tests/bug-971834.c: added
6149
6150 2005-12-18 Raphael Neider <rneider AT web.de>
6151
6152         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
6153           (genUnpackBits): improved code for direct operands,
6154           (genPackBits): improved code for literal assignment to bitfields
6155             and for direct destination operands (no FSR indirection),
6156             prevented redundant AND, fixes #1362800,
6157           (AccLsh): added parameter to disable masking of the result
6158         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
6159           skip instructions with side-effects (like incfsz),
6160           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
6161         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
6162         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
6163           fixes #1375263
6164
6165 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
6166
6167         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
6168         volatile variables as spill location
6169
6170 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
6171
6172         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
6173         replacing literals
6174         * support/regression/tests/bug-1376320.c: added
6175
6176 2005-12-08 Raphael Neider <rneider AT web.de>
6177
6178         * src/pic/device.c: renamed is_shared to pic14_is_shared
6179         * src/pic/gen.c (genIfx): re-enabled handling of sbits
6180         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
6181           (is_valid_identifier): added for above workaround
6182
6183 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
6184
6185         * device/lib/Makefile.in: fixed to enable port-specific-objects
6186         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
6187           char, thanks Hubert Sack
6188         * doc/sdccman.lyx: documented --xstack-loc,
6189           elaborated a bit more on interrupts and pitfalls,
6190           removed "setjmp/longjmp unsupported",
6191           documented some unsupported C99 features
6192         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
6193         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
6194           if, thanks Hubert Sack
6195         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
6196         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
6197           make make_library
6198         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
6199           regression tests can report resource usage (rfe 700441)
6200         * support/regression/collate-results.py: report resource usage
6201         * support/regression/ports/ds390/spec.mk,
6202         * support/regression/ports/hc08/spec.mk,
6203         * support/regression/ports/mcs51/spec.mk,
6204         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
6205         * support/regression/ports/ds390/uCsim.cmd,
6206         * support/regression/ports/hc08/uCsim.cmd,
6207         * support/regression/ports/mcs51/uCsim.cmd,
6208         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
6209         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
6210           library, use the default one
6211         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
6212           building the library
6213
6214 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
6215
6216         * config.dsp: added dependency on .version and configure_vc.awk
6217         * device/include/setjmp.h: updated for --stack-auto and --xstack
6218         * device/include/mcs51/at89c51snd1c.h: corrected line endings
6219         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
6220         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
6221         * device/lib/libsdcc.lib: added _setjmp
6222         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
6223           (decorateType): fixed bug 1372851,
6224           (optimizeGetHbit): fixed warning
6225         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
6226           array initialisation
6227         * support/regression/tests/bug1057979.c: added test for bug 1358192
6228         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
6229
6230 2005-12-03 Borut Razem <borut.razem AT siol.net>
6231
6232         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
6233           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
6234
6235 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
6236
6237         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
6238         createIval): implement symbol independant "flexible array member",
6239         (createIvalCharPtr): implemented flexible array initialisation with a
6240         string
6241         * src/SDCCsymt.c (copyStruct): removed,
6242         (getSize): fixed misleading comment,
6243         (getAllocSize): removed, the additional allocation size is now in
6244         sym->flexArrayLength,
6245         (checkStructFlexArray): new, syntax checks for flexible array members,
6246         (compStructSize): added syntax checks for "flexible array members"
6247         (copyStruct): removed,
6248         (copyLinkChain): removed inefficient fix for bug 770487
6249         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
6250         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
6251         symbol->flexArrayLength
6252         * src/SDCCerr.c,
6253         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
6254         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
6255         * support/regression/tests/structflexarray.c: added
6256         * support/valdiag/tests/structflexiblearray.c: added
6257
6258 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
6259
6260         * src/SDCCast.c (decorateType): fixed bug 1368489
6261         * support/Util/SDCCerr.c,
6262         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
6263
6264 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6265
6266         * device/include/mcs51/at89c51snd1c.h: added file submitted by
6267           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
6268
6269 2005-11-27 Borut Razem <borut.razem AT siol.net>
6270
6271         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
6272           support/cpp2/mkdeps.h: added command line option
6273           -obj-ext=<extension> to SDCPP to define object file externion, used
6274           for generation of make dependencies (-M)
6275         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
6276
6277 2005-11-26 Borut Razem <borut.razem AT siol.net>
6278
6279         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
6280           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
6281           added pic and pic16 libraries
6282
6283 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6284
6285         * device/include/float.h: Corrected typo in prototype of __fsgt
6286
6287 2005-11-25 Borut Razem <borut.razem AT siol.net>
6288
6289         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
6290           added creation of model-mcs51-stack-auto libraries
6291
6292 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
6293
6294         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
6295         and fields-list too
6296         * src/SDCCast.c (createIvalArray): removed obsolete comment
6297
6298 2005-11-24 Borut Razem <borut.razem AT siol.net>
6299
6300         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
6301           added missing device/lib/mcs51/crt*.asm sources
6302
6303 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
6304
6305         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
6306
6307 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
6308
6309         * device/lib/_fs2schar.c,
6310         * device/lib/_fs2sint.c,
6311         * device/lib/_fs2slong.c: optimized inline asm
6312
6313 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6314
6315         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
6316           Better handling of floats between -1.0 and 0.0.
6317
6318 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6319
6320         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
6321           (the missing "if"s prohibited removal of redundant labels)
6322
6323 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6324
6325         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
6326           Properly convert floats between -1.0 and 0.0 to long, int, and char
6327           types (max integer value of negative floats tends to zero).
6328         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
6329           Removed changes made so to work properly with floats between
6330           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
6331           and _fs2char.c
6332
6333 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
6334
6335         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
6336         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
6337         (genCast) cosmetic change
6338         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
6339         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
6340         from mcs51
6341         * support/regression/tests/bitfields (testSignedBitfields): added
6342
6343 2005-11-18 Borut Razem <borut.razem AT siol.net>
6344
6345         * sdcc/device/lib/Makefile.in: remove all unnecessary files
6346         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
6347           introduced SILENT option to make building of pic16 libraries less
6348
6349 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6350
6351         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
6352           Now they work properly with floats between -1.0 and 0.0
6353         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
6354
6355 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
6356
6357         * src/SDCCicode.c (printOperand): added missing else
6358
6359 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
6360
6361         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
6362         reformatted for better readability
6363         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
6364         signed bitfields
6365
6366 2005-11-17 Borut Razem <borut.razem AT siol.net>
6367
6368         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
6369           introduced SILENT option to make building of pic16 libraries less
6370           verbose - used for nightly snapshot build
6371         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
6372           available on Win32 platforms.
6373         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
6374           medium, large, pic and pic16
6375
6376 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6377
6378         * device/lib/printf_large.c: Temporary patch for bug 1358192:
6379           printf("%f"...) sets fraction to zero.
6380
6381 2005-11-16 Raphael Neider <rneider AT web.de>
6382
6383         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
6384           fixes #1357221
6385         * src/pic/gen.c (genIfx): implemented for CARRY bit
6386         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
6387           to generic pointers, fixes #1357332,
6388           (pic16_movLit2f): NEW,
6389           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
6390
6391 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
6392
6393         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
6394
6395 2005-11-11 Raphael Neider <rneider AT web.de>
6396
6397         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
6398         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
6399           compute pointer's type from operand,
6400           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
6401           improved single bit reads, fixes bug #1353379
6402
6403 2005-11-09 Borut Razem <borut.razem AT siol.net>
6404
6405         * support/scripts/sdcc.nsi: added lib/pic to the package
6406
6407 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
6408
6409         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
6410
6411 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
6412
6413         * support/regression/tests/bug1348008.c: added
6414         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
6415         * support/regression/tests/bug1337835.c: updated comment
6416
6417 2005-11-06 Borut Razem <borut.razem AT siol.net>
6418
6419         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
6420           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
6421           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
6422           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
6423           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
6424           dynamic construction of cl_error_class and derivates - 2.nd try
6425
6426 2005-11-05 Borut Razem <borut.razem AT siol.net>
6427
6428         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
6429           bug, which caused Bus Errors on sparc solaris
6430
6431 2005-11-04 Borut Razem <borut.razem AT siol.net>
6432
6433         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
6434           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
6435           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
6436           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
6437           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
6438           and derivates to resolve the initialization problem on OSX
6439
6440 2005-11-02 Borut Razem <borut.razem AT siol.net>
6441
6442         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
6443           corrected typo - #include <winsock2.h>
6444
6445 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
6446
6447         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
6448           (_asxxxx_mapping): added org directive for future enhancements
6449
6450 2005-11-01 Borut Razem <borut.razem AT siol.net>
6451
6452         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
6453           enabled sockets on WIN32
6454         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
6455
6456 2005-10-31 Borut Razem <borut.razem AT siol.net>
6457
6458         * support/regression/generate-cases.py: escape backslashes in {testcase}:
6459           WIN32 backslash path delimiters should be escaped when used in C strings
6460         * support/regression/tests/bitfields.c: exclude failing assertions for
6461           __CYGWIN32__ and __MINGW32__ hosts
6462
6463 2005-10-30 Borut Razem <borut.razem AT siol.net>
6464
6465         * src/SDCCutil.c: corrected double comparison typo
6466
6467 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
6468
6469         * device/lib/medium/Makefile: added for new memory model medium
6470         * device/include/asm/mcs51/features.h: updated for medium/pdata
6471         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
6472           added Multiply & Accumulate sbit's and MAC0_PAGE define
6473         * device/include/mcs51/c8051f300.h: added sfr16 definitions
6474         * device/include/mcs51/c8051f310.h: added sfr16 definitions
6475         * device/lib/_mullong.c: update for medium model
6476         * device/lib/incl.mk: added medium model
6477         * doc/sdccman.lyx: documented medium model
6478         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
6479         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
6480         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
6481         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
6482           (allocParms): set SCLS and OCLS to pdata for medium model
6483         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
6484           for pdata,
6485           (powof2): return <0 if not power of 2
6486         * src/avr/gen.c (genBitWise): use updated powof2
6487         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
6488           (shiftR2Left2Result): small optimization in setup, save acc when storing,
6489           (shiftLLeftOrResult): use B if necessary
6490         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
6491         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
6492         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
6493         * support/regression/Makefile.in: added test-mcs51-medium
6494         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
6495
6496 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
6497
6498         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
6499         specifier unsigned
6500         * device/lib/time.c (mktime): fixed bug 1334315
6501
6502 2005-10-28 Raphael Neider <rneider AT web.de>
6503
6504         * device/include/pic/p16f_common.inc: added common declarations
6505         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
6506
6507 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
6508
6509         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
6510           (aopPutUsesAcc): added to predict accumulator use,
6511           (assignResultValue): save acc if necessary,
6512           (genMinusDec): store result if indirectly addressed,
6513           (genDivOneByte):  save acc if necessary,
6514           (movLeft2Result): bugfix if left already in acc,
6515           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
6516             attention to accumulator use (esp. pdata),
6517           (genReceive): receive pdata correctly
6518         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
6519         * src/SDCCicode.h: added isOperandInPagedSpace prototype
6520
6521 2005-10-27 Raphael Neider <rneider AT web.de>
6522
6523         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
6524
6525 2005-10-27 Raphael Neider <rneider AT web.de>
6526
6527         * .version: changed version to 2.5.4
6528         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
6529         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
6530           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
6531             arithmetics support routines
6532         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
6533         * device/lib/Makefile.in: also create installdir for pic
6534
6535         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
6536           pic14 port as well
6537         * src/pic/device.c (dump_sfr): rewritten to delegate register
6538           placement to the linker (use `extern sym' rather than sym EQU addr),
6539           (validAddress): fixed to check last specified address
6540         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
6541           (popGetLit): truncate literal value to 8 bit,
6542           (popGet): moved assert to more appropriate place
6543           (popGetExternal): create pCode operand from and mark the according
6544             symbol as being `extern'
6545           (popGetAddr): added sanity check on immediate's offset, provide
6546             GPOINTER tag on demand
6547           (aopPut): fixed for immediates,
6548           (mov2w_op): move operand's address or contents to WREG (depending on
6549             operand type), safer variant of mov2w,
6550           (movwf,call_libraryfunc): NEW, handy abbreviations,
6551           (get_argument_pcop,get_return_val_pcop,pass_argument,
6552           get_returnvalue): interface for accessing function parameters and
6553             return values,
6554           (assignResultValuei,genRet): use new parameter/return value interface
6555           (pic14_getDataSize): back to old version handling generic pointers,
6556           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
6557             provided implementation and/or fixed old one,
6558           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
6559             calls, removed legacy 8051 reference code
6560           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
6561           (loadSignToC): NEW, move the operands sign bit to CARRY,
6562           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
6563             genRightShiftSigned, accepts negative shift counts,
6564           (setup_fsr): load FSR and adjust IRP (indirect memory access),
6565           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
6566             generic pointers, __data pointers and __code pointers,
6567           (genUnpackBits,genPackBits): rewritten to work with generic pointers
6568             and signed bitfields, limit bitfields to 8 bit,
6569           (genDataPointerGet): fixed number of bytes read,
6570           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
6571           (genPointerGet,genPointerSet): fixed handling of __code pointers,
6572             pointers to constant data are no longer assumed to point to __code
6573             space, removed invalid pointer types,
6574           (bitpatternFromVal): retrieve the PICs representation of an integer
6575             or float literal,
6576           (genDataPointerSet): fixed assigning to po_immediate operands,
6577           (genGenPointerSet): implemented as library call,
6578           (genIfx): fixed incorrect condition,
6579           (genAddrOf): limit generic pointers' addresses to 2 bytes,
6580             provide GPOINTER tag according to destination's storage class,
6581           (genCast): added code to handle casting to generic pointers, added
6582             sign-/zero extension of the result
6583           (aop_isLitLike,op_isLitLike): fixed handling of immediates
6584         * src/pic/gen.h: added macros to access IRP bit in STATUS register
6585         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
6586           extend the result
6587         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
6588           address/register resides in the shared banks
6589           (emitSymbolToFile): improved to handle global and `pinned' symbols,
6590             put all variables into separate sections (have the linker arrange
6591             them)
6592           (picglue): put init code and interrupt handlers in separate sections
6593         * src/pic/main.c: added port specific options table, modified to PORT
6594           structure to make GPOINTERs 3 byte, added pic14_options
6595           (_pic14_do_link): private linking routine (update paths to libraries,
6596             add libsdcc.lib by default)
6597         * src/pic/main.h: declare pic14_options
6598         * src/pic/pcode.c: fixed instructions i/o relations,
6599           (RegCond): reverted to correct version,
6600           (newpCodeOpLit): truncate literals to 8 bit,
6601           (genericPrint): added debug output,
6602           (getRegFromInstruction): fixed for various operand types, simplified
6603           (BuildFlow): fixed broken handling of isntructions with labels
6604           (LinkFlow): start at last instruction in flow (skip trailing comments),
6605             pass the flow on to the next instruction after CALL
6606           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
6607           (insertPCodeInstruction): fixed inserting after a skip instruction,
6608           (DoBankSelect): fixed for labeled instructions
6609           (OptimizepBlock): honor --nopeep switch
6610           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
6611         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
6612         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
6613           (pCodeOptime2pCodes): allow disabling this optimization via
6614             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
6615             but is still buggy), started implementation of a dataflow based
6616             pCode optimization (CSE + dead code elimination)
6617           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
6618         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
6619           names are independant of the stack location and therefore portable across
6620           devices
6621
6622 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
6623
6624         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
6625           (selectSpil): fixed bug 1337835 by not spilling bit variables
6626         * support/regression/tests/bug1337835.c: added test for this bug
6627         * src/mcs51/peeph.def: restart after rule 3.c,
6628           addded rules 263.x to optimize loading constants
6629
6630 2005-10-26 Raphael Neider <rneider AT web.de>
6631
6632         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
6633         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
6634           (genAssign): emit warning when casting literals to generic pointer
6635             type, also applies when taking the address of a fixed variable,
6636           (genCast): improved casting to generic pointers
6637         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
6638           extern variables, added verbose error message
6639         * device/include/pic16/{string.h,errno.h}: added #pragma library c
6640
6641 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
6642
6643         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
6644         carry must be complemented too
6645         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
6646         could be emitted by genMinus
6647         * src/SDCCval.c (constVal): fixed bug 1305065
6648
6649 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
6650
6651         * src/SDCCast.c (addCast): added promotion for bit variables
6652         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
6653         promotion casts + optimisation
6654         (optimizeGetWord): fix warning 'i' might be used uninitialized
6655         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
6656         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
6657
6658 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
6659
6660         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
6661         all chars are promoted to int; promotion should be handled in SDCCast.c
6662
6663 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6664
6665         * device/lib/_strcmp.c: Fixed bug 1326457
6666
6667 2005-10-11 Raphael Neider <rneider AT web.de>
6668
6669         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
6670         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
6671
6672 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
6673
6674         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
6675         * support/regression/tests/sfr16.c: added test for the sfr32 bug
6676
6677 2005-10-04 Raphael Neider <rneider AT web.de>
6678
6679         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
6680           device/lib/pic16/pics.all: added pic18f1320
6681         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
6682
6683 2005-09-30 Raphael Neider <rneider AT web.de>
6684
6685         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
6686         * src/pic16/devices.inc: NEW, provides device descriptions
6687         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
6688
6689 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
6690
6691         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
6692           GETHBIT
6693
6694 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
6695
6696         * doc/sdccman.lyx: updated Highest Order Bit documentation,
6697           documented Any Order Bit, Higher Order Byte and Higher Order Word
6698         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
6699         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
6700           (optimizeGetAbit): new, to get any bit, not only the high bit,
6701           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
6702           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
6703           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
6704           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
6705             RIGHT_OP: also try GETBYTE, GETWORD optimization,
6706             GETABIT, GETBYTE, GETWORD: decorate them,
6707           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
6708           (ast_print): added GETABIT, GETBYTE, GETWORD
6709         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
6710         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
6711           (geniCodeBinary): new generic binary icode,
6712           (ast2iCode): added GETABIT, GETBYTE, GETWORD
6713         * src/port.h: updated comment for PORT.hasExtBitOp
6714         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
6715           (genGetByte): new, to get a single byte,
6716           (genGetWord): new, to get a word from a long,
6717           (gen51Code): added GETABIT, GETBYTE, GETWORD
6718         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
6719
6720 2005-09-23 Raphael Neider <rneider AT web.de>
6721
6722         * configure.in, configure: have device/lib/pic configured
6723         * device/lib/Makefile.in: added model-pic14
6724         * device/lib/clean.mk: added pic/ to clean rule
6725         * device/lib/pic: added rudimentary pic14 library providing support
6726           functions for multiplication/division/generic pointer access
6727         * src/SDCCopt.c (convilong): mark support functions as extern
6728           for pic14 port as well
6729         * src/pic/gen.c (genMult): added assertions,
6730           (genpic14Code): emit warning on unhandled iCodes
6731         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
6732         * src/pic/pcode.c (pCodeOpCopy),
6733         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
6734           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
6735           SFR_REGISTER}), made safe for future extensions
6736         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
6737           instructions even if preceeded by SKIP instructions (also remove
6738           them); removed unused code
6739         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
6740           prevents leaving parts of the structure uninitialized after copying
6741
6742 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
6743
6744         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
6745           ago by me
6746         * support/regression/tests/addsub.c: added test for the bug
6747
6748 2005-09-21 Raphael Neider <rneider AT web.de>
6749
6750         * device/include/pic16/pic18f1220.h,
6751           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
6752         * device/lib/pic16/Makefile.rules: added missing opening paren
6753         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
6754           are provided in genutils.c,
6755           (genUminusFloat,genUminus,genCmpEq): added asserts on different
6756           operand/result sizes,
6757           (genCmp): assert on NULL pointers first, then check deref'ed values
6758         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
6759           result size
6760
6761 2005-09-18 Raphael Neider <rneider AT web.de>
6762
6763         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
6764           as these are now unused,
6765           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
6766         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
6767           local, avoids uninitialized pointer dereference on r->name
6768         * src/pic16/ralloc.c (newReg): fixed indentation
6769
6770 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
6771
6772         * src/SDCCval.c (constVal): fixed bug 730366
6773         * support/Util/SDCCerr.c,
6774         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
6775
6776 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
6777
6778         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
6779
6780 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
6781
6782         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
6783
6784 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
6785
6786         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
6787           (hex2dec): made hex_digit unsigned char, removed ascii dependance
6788         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
6789           (hex2dec): made hex_digit unsigned char, removed ascii dependance
6790         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
6791         * packihx/packihx.c (hexDigit): made c unsigned char
6792         * as/mcs51/lklibr.c (fndsym),
6793         * link/z80/lkgb.c (gb),
6794         * link/z80/lklibr.c (fndsym),
6795         * link/z80/lkrloc.c (relr),
6796         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
6797         * src/SDCC.lex (checkCurrFile, process_pragma),
6798         * src/SDCCglue.c (spacesToUnderscores),
6799         * src/SDCCmain.c (setParseWithComma, processFile),
6800         * src/asm.c (tvsprintf, printCLine),
6801         * src/avr/gen.c (emitcode, aopPut),
6802         * src/ds390/gen.c (emitcode),
6803         * src/hc08/gen.c (emitcode, emitinline),
6804         * src/mcs51/gen.c (emitcode, genInline),
6805         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
6806           tokenizeLineNode),
6807         * src/pic/ralloc.c (debugLog),
6808         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
6809           tokenizeLineNode),
6810         * src/pic16/ralloc.c (debugLog),
6811         * src/z80/main.c (_process_pragma):
6812            made all ctype.h function calls safe
6813         * src/SDCCopt.c: include math.h for fabs
6814         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
6815           and used them throughout the code to make ctype.h function calls safe
6816         * src/ds390/main.c (asmLineNodeFromLineNode),
6817         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
6818         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
6819            unsigned char*
6820         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
6821           (newpCodeAsmDir): made ctype.h function calls safe
6822         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
6823           pic16_emitcode):  made lbp unsigned char*
6824         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
6825           (pic16_newpCodeAsmDir): made ctype.h function calls safe
6826         * src/xa51/gen.c (emitcode),
6827         * src/z80/gen.c (_emit2): made lbp unsigned char*
6828         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
6829            char*
6830
6831 2005-09-05 Raphael Neider <rneider AT web.de>
6832
6833         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
6834           access bank splitpoint
6835
6836 2005-09-05 Raphael Neider <rneider AT web.de>
6837
6838         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
6839
6840 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
6841
6842         * .version: changed to version 2.5.3
6843         * doc/sdccman.lyx: changed version to 2.5.3,
6844           documented --codeseg and --constseg and pragma codeseg and constseg,
6845           documented bit parameters (reentrant) and bit returning
6846         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
6847            currFunc->recvSize, but is this ok for all ports?
6848           (ast2iCode): result of ~ on unsigned char must be cast to int for
6849            bool to work
6850         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
6851           function pointers in bit space
6852         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
6853           (processFuncArgs): call port.reg_parm() with reentrancy info
6854         * src/port.h,
6855         * src/avr/main.c,
6856         * src/ds390/main.c,
6857         * src/hc08/main.c,
6858         * src/pic/main.c,
6859         * src/pic16/main.c,
6860         * src/xa51/main.c,
6861         * src/z80/main.c: port.reg_parm prototype extended with
6862           "bool reentrant" parameter
6863         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
6864           options.stackAuto for allocating bit register parameters
6865         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
6866           (genSend): set BitBankUsed if it is,
6867           (selectRegBank): factored out of genCall for use in genPcall,
6868           (genCall): removed redundant dtype assignmen, use selectRegBank,
6869           (genPcall): handle returning in Carry properly, save in F0 if needed,
6870           (genReceive): handle bit register parameters
6871         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
6872           (mcs51_assignRegisters): enable bit registers for all reentrant
6873            functions and don't set BitBankUsed unconditionally
6874         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
6875         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
6876         * support/regression/tests/funptrs.c: added tests for BOOL and for return
6877
6878 2005-08-27 Borut Razem <borut.razem AT siol.net>
6879
6880         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
6881         ppc-osx (Darwin) does not support -u option. It seems that it is
6882         supported only on Linux - GNU cp
6883
6884 2005-08-25 Borut Razem <borut.razem AT siol.net>
6885
6886         * sim/ucsim/gui.src/serio.src/Makefile.in,
6887           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
6888           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
6889           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
6890           install and strip, since the strip at /usr/ccs/bin should be used
6891           on solaris
6892
6893 2005-08-24 Borut Razem <borut.razem AT siol.net>
6894
6895         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
6896
6897 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
6898
6899         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
6900         ffffffffu
6901
6902 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
6903
6904         * as/mcs51/aslink.h: completed lkrloc.c prototypes
6905         * as/mcs51/lkmain.c (link_main): fixed warning
6906         * device/include/stdbool.h: ds390 has no advanced bit support yet
6907         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
6908         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
6909         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
6910           and updated their macros
6911         * src/SDCCval.c (constVal): updated comment for renamed b_long
6912
6913 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
6914
6915         * as/mcs51/asdata.c: changed ctype['['] to BINOP
6916         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
6917           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
6918           (oprio): set priority for '['
6919         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
6920            and adb_24_bit
6921         * as/mcs51/asm.h: added defines R_BIT and S_BIT
6922         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
6923         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
6924         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
6925           added overlayable BIT_BANK area
6926         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
6927           (summary2): explain 'T' in legenda
6928         * as/mcs51/lkrloc.c: replaced old K&R style,
6929           (relr): added R_BIT processing,
6930           (errmsg): added "Bit-addressable relocation error",
6931           (adb_bit): added for converting from byte- to bit-addressable space,
6932           (adb_24_bit): added for converting from byte- to bit-addressable space
6933         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
6934            used in reentrant functions now even as return value
6935         * device/lib/_gptrput.c (_gptrput): removed obsolete code
6936         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
6937           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
6938         * src/SDCCglobl.h: added indicator BitBankUsed
6939         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
6940            the bit registers b0-b7
6941         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
6942           (geniCodeCast): fixed bug 1263853,
6943           (geniCodeLogicAndOr): put result in bool or char,
6944           (geniCodeReceive): added parameter func for accessing the return type,
6945           (geniCodeFunctionBody): pass func to geniCodeReceive
6946         * src/SDCCmain.c: added indicator BitBankUsed
6947         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
6948         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
6949           (checkSClass): don't put automatic bool/bit on stack,
6950           (checkFunction): removed check on function cannot return bit
6951         * src/SDCCsymt.h: added newBoolLink prototype
6952         * src/mcs51/gen.c (rb1regs): added bit registers,
6953           (movc): created for assigning to carry,
6954           (pushReg, popReg): created for pushing registers,
6955           (sameRegs): check both AOP_REG and AOP_CRY types,
6956           (aopOp): handle bit registers,
6957           (aopPut): optimization no self-assign,
6958           (saveRegisters): push reg->base (bits) only once for bit registers,
6959            and use pushReg,
6960           (unsaveRegisters): pop reg->base only once and use popReg,
6961           (assignResultValue): added parameter func and return in carry for bits,
6962           (genIpush): optimization no reload in A if not changed,
6963           (genSend): bit parameters in reentrant functions are passed in bit
6964            registers by first assigning to bits in B, then save registers and
6965            copy B to bits,
6966           (genCall): handle returning in Carry properly, save it in F0 if needed,
6967           (genPcall): updated assignResultValue call, this is not safe yet for bit
6968            returning function !!!
6969           (genFunction): don't generate equ's for bit registers and use pushReg,
6970           (genEndFunction): take care of bit returning functions and use popReg,
6971           (genRet): return bit in Carry,
6972           (genIfx): optimize bit registers and other directly addressable bits,
6973           (genReceive): updated assignResultValue call
6974         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
6975           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
6976            registers when using stack-auto
6977         * src/mcs51/ralloc.c (_G): added allBitregs,
6978           (regs8051): added the bit registers,
6979           (createStackSpil): use macro IS_BIT,
6980           (getRegBit): added to allocate a bit register, else spill,
6981           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
6982           (updateRegUsage): factored out to ease stepping while debugging,
6983           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
6984            also allocate bit registers,
6985           (fillGaps): handle bit registers,
6986           (findAllBitregs): added to create bit vector with all bit registers,
6987           (mcs51_allBitregs): returns this bit vector,
6988           (mcs51_assignRegisters): when using stack-auto use bit registers for
6989            passing parameters and creating local variables
6990         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
6991
6992 2005-08-22 Borut Razem <borut.razem AT siol.net>
6993
6994         * device/lib/Makefile.in: replaced find option -or with -o
6995           to make it run on solaris
6996
6997 2005-08-22 Raphael Neider <rneider AT web.de>
6998
6999         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
7000           fixes #1265442 (crash on Solaris)
7001
7002 2005-08-20 Borut Razem <borut.razem AT siol.net>
7003
7004         * configure, configure.in: added tests for libsocket and libnsl libraries,
7005           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
7006           from support/regression/Makefile.in
7007         * support/regression/Makefile.in: added
7008         * device/lib/pic16/Makefile.common.in: force make to use bash shell
7009         * sim/ucsim/libtool: regenerated on sparc-solaris
7010         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
7011           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
7012           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
7013           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
7014           sparc-solaris, which doesn't use GNU ld linker
7015         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
7016         * as/Makefile: find on sparc-solaris does not support -maxdepth option
7017
7018 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
7019
7020         * src/mcs51/peeph.def: updated comments
7021
7022 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7023
7024         * device/lib/_gptrget.c,
7025         * device/lib/_gptrput.c: slightly shorter
7026         * doc/sdccman.lyx: incremented version
7027         * src/mcs51/peeph.def: moved peephole comments to the line of first
7028           change to better keep line correlation, reanimated 186.e
7029         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
7030
7031 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
7032
7033         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
7034           David Saxton with quotes around file name.
7035
7036 2005-08-15 Borut Razem <borut.razem AT siol.net>
7037
7038         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
7039           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
7040           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
7041           make tests run on x86_64 platform
7042
7043 2005-08-13 Raphael Neider <rneider AT web.de>
7044
7045         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
7046           as it might be executed DURING a build (parallel make is wonderful)
7047
7048 2005-08-13 Raphael Neider <rneider AT web.de>
7049
7050         * device/lib/Makefile.in (port-specific-objects-pic16):
7051           revert to cp $(PORT)/bin/*.* $(PORTDIR)
7052         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
7053           dependency
7054         * device/lib/pic16/Makefile.rules: build subdirs before creating
7055           the library, removed builddir rule, create $(builddir) early in
7056           recurse rule, use empty recurse rule for leaf directories
7057         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
7058           mkdir errors (race condition), removed duplicate suffix "hex"
7059           from clean rules
7060         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
7061         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
7062           prevents mkdir -p from aborting on Alpha
7063
7064 2005-08-12 Raphael Neider <rneider AT web.de>
7065
7066         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
7067           db-statements in order to allow for arrays of pointers in code
7068           sections to be placed without interspersed 0-padding, fixes
7069           bug #1256215
7070         * (emitStatistics): fixed division by zero for pic18f1220
7071         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
7072           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
7073         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
7074         * (pic16_pCodeConstString): keep track of already emitted string
7075           literals to prevent "duplicate definitions of symbol _str_NR"
7076         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
7077           debug message
7078         * device/lib/Makefile.in: ignore failing PIC16 library builds
7079         * device/lib/pic16/Makefile: do not build if gputils are missing
7080         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
7081
7082 2005-08-10 Raphael Neider <rneider AT web.de>
7083
7084         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
7085           my last commit)
7086
7087 2005-08-10 Raphael Neider <rneider AT web.de>
7088
7089         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
7090           Rokas' patch to add the new fixed point type "__fixed16x16"
7091         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
7092           functions for __fixed16x16 arithmetics
7093         * device/lib/pic16: reimplemented the build system to support
7094           a separate build directory, better handling of libio (create
7095           the library in a separate subdir for each architecture) and
7096           easier configuration (centralized in Makefile.common)
7097
7098 2005-08-07 Raphael Neider <rneider AT web.de>
7099
7100         * src/pic16/gen.c (genrshTwo): fixed sign extension
7101         * src/pic16/device.c: added pic18f2320, 4220 and 4320
7102         * device/include/pic16/pic18f2220.h: changed some bit definitions,
7103           added T0CONbits
7104         * device/include/pic16/pic18f4220.h: NEW, header for
7105           pic18f4220 and pic18f4320
7106         * device/include/pic16/pic18fregs.h: added new devices,
7107           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
7108         * device/include/pic16/signal.h: resolved name clashes
7109           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
7110           to also allow testing for interrupt enable bits, added
7111           comments on how to use the macros
7112         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
7113         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
7114           register definitions for the devices
7115         * device/lib/pic16/pics.all: added new devices
7116         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
7117           allocated memory
7118         * device/lib/pic16/libc/stdlib/memfree: do not count
7119           the block header as free memory
7120         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
7121           simplified and added missing end-of-blocklist-marker
7122           (reported by Peter Onion, fixes #1252814)
7123         * (_mergeHeapBlock): fixed loop condition
7124         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
7125           len==0, restructured code
7126         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
7127           up a bit, reduced bitfield accesses, prevent endless loops
7128           in case of heap corruption
7129         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
7130           "unreferenced arguments/must return a value" warnings
7131         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
7132           replaced BAUDREG with SPBRG
7133         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
7134           device/lib/pic16/debug/gstack/gstack.c: replaced
7135           _naked, _asm, _endasm with __naked, __asm, __endasm
7136
7137 2005-08-05 Raphael Neider <rneider AT web.de>
7138
7139         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
7140           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
7141
7142 2005-08-05 Borut Razem <borut.razem AT siol.net>
7143
7144         * device/lib/Makefile.in: added missing ';'
7145         * configure: removed ^M characters
7146
7147 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7148
7149         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
7150           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
7151           License
7152
7153 2005-08-04 Borut Razem <borut.razem AT siol.net>
7154
7155         * configure.in: pic16 libraries build 2nd try - enable running
7156           configure in device/lib/pic16
7157         * configure: regenerated from configure.in
7158         * device/lib/Makefile.in: create $(PORT)/bin directory
7159
7160 2005-08-03 Raphael Neider <rneider AT web.de>
7161
7162         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
7163           to get/set values via pointers
7164         * (genUnpackBits,genPackBits): changed detection of
7165           ptr->bitfield vs. sym.bitfield, fixed access via generic
7166           pointers, removed dead (wrong) code for multibyte bitfields
7167         * (genNearPointerGet, genGenPointerGet): removed useless code,
7168           fixed bitfield detection, fixes #1250594
7169         * (genNearPointerSet): removed useless code
7170         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
7171           and introduced macro pic16_emitpcode that conditionally emits
7172           the origin of the following pCode (useful for debugging SDCC)
7173         * src/pic16/pcode.c: changed (and disabled) some debug outputs
7174         * (createDefmap): fixed handling of LFSR for --optimize-df
7175
7176 2005-08-02 Borut Razem <borut.razem AT siol.net>
7177
7178         * device/lib/Makefile.in: pic16 libraries build enabled since
7179           gputils-0.13.2 are now localy installed at sourceforge's compile farm
7180
7181 2005-08-02 Raphael Neider <rneider AT web.de>
7182
7183         * src/pic16/gen.c (genPackBits): removed deprecated warning
7184         * (genGenPointerSet): fixed bitfield detection
7185
7186 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7187
7188         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
7189
7190 2005-07-31 Raphael Neider <rneider AT web.de>
7191
7192         * device/lib/pic16/libdev/pic18f458.c,
7193           device/include/pic16/pic18f458.h: added missing T0CONbits
7194
7195 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
7196
7197         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
7198
7199 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
7200
7201         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
7202
7203 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7204
7205         * device/include/mcs51/at89c51ed2.h: added.
7206
7207 2005-07-23 Raphael Neider <rneider AT web.de>
7208
7209         * src/pic/gen.h: added emitpcode macro for debugging
7210         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
7211           and replace by macro adding debug information on demand
7212         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
7213         * (gencjne): tried to fix; replaced with correct (slower) code
7214         * (gen{Unp,P}ackBits): fixed single bit access
7215         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
7216         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
7217           previous instruction
7218         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
7219           register has to be handled with care (forbidding movement
7220           of assignments/uses, removing assignments completely, ...)
7221         * (pCodeOptime2pCodes): make use of regIsSpecial
7222         * added lots of debugging output (commented out)
7223         * src/pic/rallloc.c (deassignLRs): prevent operand registers
7224           from being reused as result UNLESS it is known to work
7225
7226 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
7227
7228         * support/Util/dbuf.h: include <stddef.h> for size_t
7229         * .version: changed to version 2.5.2
7230
7231 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7232
7233         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
7234
7235 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7236
7237         * src/hc08/gen.c (genMinus): fixed bug #1241835,
7238           (genModOneByte): removed needless psha/pula
7239
7240 2005-07-22 Raphael Neider <rneider AT web.de>
7241
7242         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
7243           have PIC14 handled like PIC16, fixes broken pic14 linker calls
7244         * src/pic/gen.c (resolveIfx): do not "invent" labels
7245         * (genSkipc): changed to positive logic
7246         * (genSkipCond): removed as no longer needed
7247         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
7248           backport from PIC16
7249         * (genLeftShift): check operands are in different registers
7250         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
7251           INCF does not update CARRY...
7252         * src/pic/main.c: fixed _linkCmd
7253         * src/pic/pcode.c (unlinkpCode): added inactive code
7254         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
7255           alive (do not assign result and operand overlapping registers)
7256
7257 2005-07-22 Raphael Neider <rneider AT web.de>
7258
7259         * src/pic/device.c (dump_sfr): replaced register declaration with
7260           call to emitSymbolToFile() to avoid duplicate symbols
7261         * (assignRelocatableRegisters): do not declare external symbols
7262         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
7263           right (take size of type, not etype)
7264         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
7265         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
7266         * (packRegsForAccUse): disabled assignment of WREG as
7267           the result reg to prevent occurence of just fixed #1235003,
7268           fixes #1242954
7269         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
7270           symbols (avoids duplicate symbols in .asm file)
7271         * (pic14emitRegularMap): use emitSymbolToFile()
7272         * src/pic/gen.c (aopOp): fixed spillLocation handling
7273         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
7274         * (genDataPointerSet): removed unneccessary variables/output
7275
7276 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
7277
7278         * as/mcs51/lkarea.c: enlarged codemap for banked memory
7279         * device/lib/mcs51/crtbank.asm: added # to 0x0F
7280
7281 2005-07-21 Raphael Neider <rneider AT web.de>
7282
7283         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
7284           architecture cannot handle them efficiently, fixes bug #1235003
7285         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
7286           check for empty sets before using them (fixes bug #1232190)
7287
7288 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
7289
7290         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
7291           (lnksect2): generate warnings for memory overlap
7292         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
7293           constseg to set the name of these segments so you can instruct the linker
7294           to place them in banks
7295         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
7296         * src/SDCCglobl.h: added MODEL_HUGE to enum,
7297           added code_seg and const_seg to options
7298         * src/SDCCglue.c (emitMaps): use options.const_seg,
7299           (createInterruptVect): put interrupt vectors in segment HOME,
7300           (glue): put HOME before static segment and put the main glue in HOME,
7301           (glue): use options.code_seg
7302         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
7303         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
7304           these segments so you can instruct the linker to place them in banks
7305           (linkEdit): use code_loc for HOME segment which should be the first
7306           segment in code memory now
7307         * src/SDCCmem.c: fixed more stuff like bug 1238386
7308         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
7309           (changePointer): don't change function pointers to code pointers for
7310           banked functions,
7311           (compareType): added exceptional check for banked function pointers
7312         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
7313         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
7314           after static in code memory
7315         * src/mcs51/gen.c: added aopLiteralLong prototype,
7316           (aopForSym): use getSize for functions,
7317           (genCall): generate banked calls over one trampoline __sdcc_banked_call
7318           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
7319           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
7320           the segment,
7321           (genPcall): use call for literal function pointers and generate banked
7322           calls over the one trampoline so there's only one place for the user to
7323           modify according to his/hers hardware,
7324           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
7325           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
7326         * src/mcs51/main.c: added keyword banked,
7327           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
7328         * support/Util/SDCCerr.c,
7329         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
7330           needed for passing the bank and address to the trampoline
7331         * device/lib/mcs51/crtbank.asm: added for bankswitching
7332         * device/lib/mcs51/Makefile: added crtbank
7333
7334 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7335
7336         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
7337           for fields at offset 0 of a struct or union as reported
7338           on 2005-07-07 in the developer mailing list.
7339
7340 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
7341
7342         * src/SDCCmem.c: fixed bug 1238386
7343
7344 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7345
7346         * src/mcs51/peeph.def: added labelrefcounting for peepholes
7347           (patch #1144962), added peephole 300, enabled 259.x
7348         * doc/sdccman.lyx: removed screenshot and provided link instead
7349
7350 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7351
7352         * doc/sdccman.lyx: added section about debugging with ddd
7353         * doc/figures/ddd_example.eps: screenshot of debugging session
7354
7355 2005-07-04 Raphael Neider <rneider AT web.de>
7356
7357         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
7358           like CODE pointers, fixes #1115683
7359         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
7360           call, fixes bugs #1232211, #1228110,
7361           fixed wrong casts to pCodeFlow from pCodeInstructions
7362
7363 2005-07-04 Raphael Neider <rneider AT web.de>
7364
7365         * src/pic/gen.c (popGet): changed assert to allow for
7366           bit operands
7367         * (popGetAddr): changed signature to provide
7368           an additional index, patched all call sites
7369         * (genCmpEq): handle literal-like operands correctly
7370         * (genAddrOf): added sanity checks on __code/__data pointers
7371         * (genAssign): added handling of symbols from __code section
7372         * (gencjne): do not generate code for comparisons whose result
7373           is neither stored nor used, fixes bug #1171114
7374         * (AccLsh, AccRsh): operate on operand instead of WREG
7375         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
7376           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
7377           by known count
7378         * rewrote complete shift-by-literal logic, commented unused
7379           functions out
7380         * (genConstPointerGet): get multiple bytes (if result size > 1),
7381           fixed handling of non-immediate addresses
7382         * (genPointerGet): handle CODE pointers like CONST pointers
7383         * (genpic14Code): insert C-SRC lines as Cource-pCodes
7384         * ({aop,op}_isLitLike): NEW, single place to decide whether an
7385           operand is to be treated as a literal or not
7386         * (mov2w,genPcall,genCmpEq),
7387           src/pic/genarith.c: use aop_isLitLike() to decide between
7388           literal/register contents
7389         * (addSign): added missing offset
7390         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
7391           only emit comment in debug-mode,
7392           use {aop,op}_isLitLike throughout the file
7393         * src/pic/glue.c: fix initializers for pointers (work in progress)
7394         * src/pic/pcode.c (get_op): honor index on _const symbols
7395         * ({reset,dump}pCodeStatistics): NEW, estimate code size
7396         * (dumppBlock): added pCode size estimation
7397         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
7398           check for IS_SYMOP before OP_SYMBOL'ing
7399         * fixed indentation, compacted switch-statements
7400         * (allocReg): find free register and allocate it instead of
7401           allocating new registers all the time
7402         * (deassignLRs): prevent POINTER_GET's from being assigned the same
7403           registers as its operands (necessary only for multibyte GETs)
7404
7405 2005-07-01 Raphael Neider <rneider AT web.de>
7406
7407         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
7408           debugging .asm-output macros FENTRY + FEXIT
7409         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
7410           way... I wonder...
7411         * (emitpComment): NEW, printf to pCode
7412         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
7413           offset handling
7414         * (popGetAddr): NEW, variant of popGet to access an immediates
7415           high(er) bytes instead of the n'th byte of memory they reference,
7416           replaced popGet with popGetAddr where neccessary
7417         * (genDataPointerGet): reactivated and fixed implementation
7418         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
7419           accesses
7420         * (genDataPointerSet): fixed multibyte assignments
7421         * (genpic14Code): fixed --i-code-in-asm handling
7422         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
7423         * (genPlus): fixed index-out-of-bounds error
7424         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
7425         * src/pic/ralloc.c: added debugging output macro FENTRY2
7426         * (spillThis): fixed indentation, enbraced for-body for clarity
7427         * (rematStr): commented out as now unused
7428         * (regTypeNum): commented out special spill case (overwrites
7429           arbitrary values)
7430         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
7431
7432 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
7433
7434         * doc/sdccman.lyx: documented sfr16/sfr32,
7435           added example for using storage class with function pointers
7436         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
7437
7438 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
7439
7440         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
7441         * device/lib/_itoa.c,
7442         * device/lib/_ltoa.c: optimized codesize
7443         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
7444           but don't know how to suppress the double warning.
7445         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
7446         * support/Util/SDCCerr.c,
7447         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
7448
7449 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
7450
7451         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
7452           fixed old K&R prototypes
7453         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
7454         * device/lib/_gptrget.c,
7455         * device/lib/_gptrgetc.c,
7456         * device/lib/_gptrput.c: changed versions for new memory indicator values,
7457           also new versions for small generic pointers and banked generic pointers
7458         * src/port.h: added const_name
7459         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
7460         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
7461         * src/SDCCcse.c (findPrevIc): check all associative operators
7462         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
7463         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
7464         * src/SDCCmem.c: updated comments,
7465           set far-space to 0 for pdata, results in optimized code
7466         * src/SDCCmem.h: added macro CONST_NAME
7467         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
7468           moving the info into the highest bits, see also gptrget/gptrput
7469         * src/src.dsp: added sdcc.ico to project files
7470         * src/avr/gen.c (genCast): fixed bug 0x%d
7471         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
7472         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
7473           relation between ptr_type and DCL_TYPE,
7474           (genCast): fixed bug 0x%d
7475         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
7476           (CODE)" for const_name
7477         * src/hc08/gen.c (genCast): fixed bug 0x%d
7478         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
7479           (hc08_port): added "CONST (CODE)" for const_name
7480         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
7481           (aopForRemat, adjustArithmeticResult): disconnected direct relation
7482           between ptr_type and DCL_TYPE,
7483           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
7484           operand* and took AOP() inside function so sfr-ness can be checked,
7485           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
7486           new prototype,
7487           (genFunction, genEndFunction): optimized stack setup,
7488           (genMinus): optimized for literals with ending zeroes (in bytes),
7489           (genCast): fixed bug 0x%d
7490         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
7491           (mcs51_port): added "CONST (CODE)" for const_name
7492         * src/mcs51/peeph.def: made rule 226 more generic
7493         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
7494         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
7495         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
7496         * src/z80/main.c (z80_port): added NULL for const_name,
7497           (gbz80_port): added NULL for const_name
7498         * support/regression/tests/bug663539.c,
7499         * support/regression/tests/sfr16.c: new tests
7500
7501 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7502
7503         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
7504
7505 2005-06-24 Raphael Neider <rneider AT web.de>
7506
7507         * device/lib/pic16/libdev/pic18f[68][567]20.c:
7508           corrected typos...
7509         * device/include/pic16/signal.h: added USBIF
7510           and SIG_USB
7511
7512 2005-06-24 Raphael Neider <rneider AT web.de>
7513
7514         * device/lib/pic16/libdev/pic18f2455.c,
7515           device/include/pic16/pic18f2455.h: NEW
7516         * device/include/pic16/pic18fregs.h,
7517           device/lib/pic16/pics.all,
7518           src/pic16/device.c: added 18f2455
7519         * device/lib/pic16/libdev/pic18f[68][567]20.c,
7520           device/include/pic16/{pic18f[68][567].h,usart.h}:
7521           replaced MULTIPLE_USARTS define with more relaible
7522           compatibility sfrs (for USART access)
7523
7524 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
7525
7526         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
7527           and the output asm file line is printed on two lines.
7528
7529 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7530
7531         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
7532           BGT, BLE, BHI, and BLS instructions
7533         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
7534           genCmpEq): removed
7535         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
7536           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
7537           fixes bug #1216342
7538         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
7539
7540 2005-06-15 Raphael Neider <rneider AT web.de>
7541
7542         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
7543         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
7544         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
7545           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
7546           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
7547
7548 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7549
7550         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
7551           Marcel Telka in bug #1215704
7552
7553 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
7554
7555         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
7556           located in shared memory bank.
7557
7558 2005-05-31 Raphael Neider <rneider AT web.de>
7559
7560         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
7561           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
7562           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
7563
7564 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
7565
7566         * device/lib/_strncpy.c: fixed the fix
7567
7568 2005-05-26 Raphael Neider <rneider AT web.de>
7569
7570         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
7571           initializers with \0, bug #1208187
7572         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
7573           intializers with \0, bug #1208187
7574
7575 2005-05-26 Raphael Neider <rneider AT web.de>
7576
7577         * src/pic16/glue.c (pic16_printIvalChar): fixed string
7578           initializers with \0, bug #1208187
7579         * src/pic16/main.c (_process_pragma): added sanity checks
7580           for stack position and size, emit warnings when appropriate
7581
7582 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
7583
7584         * device/lib/_strncpy.c: fixed not filling with \0
7585
7586 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7587
7588         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
7589           createFunction),
7590         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
7591           compound_statement),
7592         * src/SDCCsymt.h,
7593         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
7594
7595 2005-05-24 Raphael Neider <rneider AT web.de>
7596
7597         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
7598
7599 2005-05-24 Raphael Neider <rneider AT web.de>
7600
7601         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
7602           TRISE definitions, closes bug #1162453
7603
7604 2005-05-22 Raphael Neider <rneider AT web.de>
7605
7606         * src/pic16/main.c (_process_pragma): check for missing
7607           arguments to pragmas code and udata
7608         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
7609           consistency fixes to match other headers (thanks to Jim Paris)
7610         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
7611
7612 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
7613
7614         * src/SDCCicode.c (isOperandEqual): fixed missing ;
7615
7616 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
7617
7618         * support/regression/tests/bug1198642.c: new test
7619         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
7620         * src/SDCCcse.c (findPrevIc): added comment, please have a look
7621         * support/scripts/resource.h,
7622         * support/scripts/resource.rc,
7623         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
7624         * support/scripts/sdcc.ico: added 32x32 icon
7625
7626 2005-05-18 Raphael Neider <rneider AT web.de>
7627
7628         * device/lib/pic16/libdev/pic18f*.c,
7629         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
7630           keywords to "__sfr" and "__at (X)"
7631         * device/include/pic16/pic18fregs.h: added pic18f4520
7632         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
7633           #1203088 (MPLAB compatibility)
7634
7635 2005-05-17 Raphael Neider <rneider AT web.de>
7636
7637         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
7638         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
7639         * device/lib/pic16/pics.all: added new devices
7640         * src/pic16/device.c: added support for pic18f4520
7641
7642 2005-05-16 Raphael Neider <rneider AT web.de>
7643         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
7644         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
7645         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
7646           convenience function for bit access
7647
7648 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
7649
7650         * device/lib/printf_large.c: fixed bug 1193299
7651         * support/regression/tests/bug1057979.c: added test %3.3s
7652
7653 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7654
7655         * device/include/mcs51/8051.h,
7656         * device/include/mcs51/8052.h: made parseable with lint
7657         * device/include/mcs51/lint.h: added include file for (sp)lint
7658         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
7659         * doc/cdbfileformat.lyx,
7660         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
7661
7662 2005-05-14 Raphael Neider <rneider AT web.de>
7663
7664         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
7665         * device/lib/pic16/libc/stdlib/itoa.c (new)
7666         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
7667         * device/lib/pic16/libio/Makefile: exclude subdir according to
7668           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
7669         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
7670         * src/pic16/gen.c (genFunction): prevent annoying warning
7671         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
7672           nameclashes on BeOS
7673         * support/cpp2/cppmain.c (cpp_output_string): new
7674         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
7675           fixes bug 1116802
7676
7677 2005-05-13 Borut Razem <borut.razem AT siol.net>
7678
7679         * src/SDCCmain.c (linkEdit): fixed bug 1195202
7680
7681 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7682
7683         * .version: changed to version 2.5.1; back to bleeding edge development
7684
7685 2005-05-11 Borut Razem <borut.razem AT siol.net>
7686
7687         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
7688           generate PDF version 1.3 documents
7689
7690 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7691
7692         * .version: changed to version 2.5.0
7693
7694 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7695
7696         * doc/sdccman.lyx: updated weblinks, index and smaller updates
7697
7698 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7699
7700         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
7701         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
7702         well as many smaller updates.
7703         * .version: changed to version 2.5.0-pre1
7704
7705 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7706
7707         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
7708
7709 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
7710
7711         * support/regression/tests/bug1185672.c: added
7712         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
7713           bug 1185672
7714         * src/mcs51/gen.c (genCall): added comments, made it look safer
7715         * src/mcs51/gen.c (genEndFunction): simplified
7716
7717 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
7718
7719         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
7720
7721 2005-04-14 Borut Razem <borut.razem AT siol.net>
7722
7723         * fixed bug 1045046 - SIGSEGV with really simple code?:
7724           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
7725           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
7726
7727 2005-04-14 Borut Razem <borut.razem AT siol.net>
7728
7729         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
7730           src/pic16/device.h: temporarily disabled experimental #inline pragma
7731           for 2.5.0 release
7732
7733 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
7734
7735         * device/include/z80/stdio.h,
7736         * device/include/z80/string.h: removed these highly incomplete files so
7737           SDCC can use the default ones in device/include/
7738
7739 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7740
7741         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
7742         gcc warning.
7743         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
7744         fix sdcpp warnings.
7745
7746 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
7747
7748         * device/include/malloc.h: removed redundant __reentrant prototypes
7749         * device/lib/_mullong.c: added working xstack variant in asm (C version
7750           doesn't pass regression tests)
7751         * device/lib/bpx.c: used __data and made bpx char for mcs51
7752         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
7753           (createFunction): fixed bug with xstackPtr
7754         * src/SDCCcse.c: corrected comments
7755         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
7756           (killDeadCode, eBBlockFromiCode): removed unused code
7757         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
7758           corrected comments
7759         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
7760           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
7761           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
7762           (genModOneByte): fixed warning in MSVC
7763         * src/mcs51/main.c (): added comments
7764         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
7765
7766 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
7767
7768         * src/SDCCmain.c (linkEdit): oops, changed one line too many
7769
7770 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
7771
7772         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
7773
7774 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
7775
7776         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
7777         characters arrays of larger size than the declared one.
7778
7779 2005-04-10 Borut Razem <borut.razem AT siol.net>
7780
7781         * src/pic/gen.c (genInline),
7782           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
7783           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
7784           (findNextInstruction), (findPrevInstruction),
7785           (findInstructionUsingLabel),
7786           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
7787         * src/pic/pcode.c (findLabel): added missing '\n'
7788         * src/src.dsp: added SDCCdwarf2.c to the project
7789
7790 2005-04-09 Borut Razem <borut.razem AT siol.net>
7791
7792         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
7793
7794 2005-04-08 Raphael Neider <rneider AT web.de>
7795
7796         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
7797           into the chain after a given one) and mergeDefmapSymbols (combine
7798           defmap entries for each symbol per pcode)
7799         * (createDefmap): have defmap entries merged in the end
7800         * (defmapReplaceSymRef): split defmap entries covering two accesses to
7801           a symbol before replacing one access type's symbol, merge symbols in
7802           the end (replacement symbol might already have an entry)
7803         * (assignValnums): keep reference to written WREG intact
7804
7805 2005-04-08 Raphael Neider <rneider AT web.de>
7806
7807         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
7808           Alpha)
7809
7810 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
7811
7812         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
7813         bytes
7814
7815 2005-04-07 Raphael Neider <rneider AT web.de>
7816
7817         * device/include/pic16/usart.h: added compatibility defines for
7818           devices with more than one USART
7819         * device/include/pic16/pic18f[68][567]20.h: activated above defines
7820
7821 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7822
7823         * device/lib/Makefile.in: updated for port specific include
7824
7825 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7826
7827         * support/regression/ports/mcs51/spec.mk: added mcs51 include
7828
7829 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7830
7831         * device/include/8051.h,
7832         * device/include/8052.h,
7833         * device/include/at89S8252.h,
7834         * device/include/at89c55.h,
7835         * device/include/at89x051.h,
7836         * device/include/at89x51.h,
7837         * device/include/at89x52.h,
7838         * device/include/mcs51reg.h,
7839         * device/include/reg51.h,
7840         * device/include/reg764.h,
7841         * device/include/regc515c.h,
7842         * device/include/sab80515.h: (re)moved these 12 files
7843         * device/include/mcs51/8051.h,
7844         * device/include/mcs51/8052.h,
7845         * device/include/mcs51/at89S8252.h,
7846         * device/include/mcs51/at89c55.h,
7847         * device/include/mcs51/at89x051.h,
7848         * device/include/mcs51/at89x51.h,
7849         * device/include/mcs51/at89x52.h,
7850         * device/include/mcs51/mcs51reg.h,
7851         * device/include/mcs51/reg51.h,
7852         * device/include/mcs51/reg764.h,
7853         * device/include/mcs51/regc515c.h,
7854         * device/include/mcs51/sab80515.h: and added them here
7855
7856 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
7857
7858         * device/include/stdarg.h: changed SDCC specific keywords to double
7859           underlined form.
7860         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
7861           mcs51 and ds390.
7862         * device/include/hc08/mc68hc908gp32.h,
7863         * device/include/hc08/mc68hc908jb8.h,
7864         * device/include/hc08/mc68hc908jkjl.h,
7865         * device/include/hc08/mc68hc908qy.h: fixed comments
7866         * device/include/mcs51/README: updated
7867         * device/include/mcs51/c8051f120.h: added PINRSF
7868         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
7869         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
7870           amidst code. Also inline is not supported.
7871
7872 2005-04-06 Raphael Neider <rneider AT web.de>
7873
7874         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
7875         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
7876           callers stack/frame pointers
7877
7878 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
7879
7880         * device/include/pic16/usart.h: added, missing in previous commit,
7881         * device/include/pic16/adc.h: fixed typo,
7882         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
7883         commit,
7884         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
7885         <p18fxxx.inc>
7886         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
7887         uninitialized because a bug appears with gplink
7888         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
7889         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
7890         complains for unrecognised option
7891
7892 2005-04-05 Raphael Neider <rneider AT web.de>
7893
7894         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
7895           structs as well (using memcpy)
7896         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
7897           on ISRs (GOTO has no label)
7898         * src/pic16/device.h: added OF_OPTIMIZE_DF
7899         * src/pic16/main.c: added compiler switch --optimize-df to enable the
7900           new data flow analysis/optimization
7901         * src/pic16/pcode.c: added (prototypes for and implementation of)
7902           dataflow analysis functions, fixed pCodeInstructions' inCond and
7903           outCond values, made RCALL a branch instruction
7904         * (pic16_unlinkpCode): keep C line if possible
7905         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
7906           C line moved if possible
7907         * (pic16_getRegFrompCodeOp): NEW, improved version of...
7908         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
7909           to use new pic16_getRegFrompCodeOp (works for more SFRs)
7910         * (pic16_BuildFlow): fixed skip instructions with label (did not start
7911           new flow)
7912         * (pic16_getJumptabpCode): NEW, needed in...
7913         * (LinkFlow): fixed handling of jumptables, calls and conditional
7914           branches
7915         * (pic16_InsertCommentAfter): NEW
7916         * (pic16_pCodeReplace): made verbose and flow preserving
7917         * (AnalyzeFlow): added call to data flow analysis
7918         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
7919         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
7920         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
7921
7922 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7923
7924         * src/SDCCast.c (decorateType): fixed bug #1105626
7925
7926 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
7927
7928         * device/include/asm/pic16/features.h,
7929         * pic18f*.h headers,
7930         * device/include/pic16/adc.h,
7931         * device/include/pic16/delay.h,
7932         * device/include/pic16/i2c.h,
7933         * device/include/pic16/malloc.h,
7934         * device/include/pic16/stdio.h,
7935         * device/include/pic16/stdlib.h,
7936         * device/include/pic16/string.h,
7937         * device/lib/pic16/libc/stdio/printf_tiny.c,
7938         * device/lib/pic16/libc/stdio/printf_small.c,
7939         * device/lib/pic16/libc/stdio/strmgpsim.c,
7940         * device/lib/pic16/libc/stdio/strmmssp.c,
7941         * device/lib/pic16/libc/stdio/strmusart.c,
7942         * device/lib/pic16/libc/stdio/vfprintf.c,
7943         * device/lib/pic16/libc/stdlib/ltoa.c,
7944         * device/lib/pic16/libc/stdlib/putchar.c,
7945         * device/lib/pic16/libc/stdlib/x_ftoa.c,
7946         * device/lib/pic16/libc/stdlib/memchrpgm.c,
7947         * device/lib/pic16/libc/stdlib/memchrram.c,
7948         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
7949         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
7950         * device/lib/pic16/libio/adc/adcbusy.c,
7951         * device/lib/pic16/libio/adc/adcread.c,
7952         * device/lib/pic16/libio/adc/adcsetch.c,
7953         * device/lib/pic16/libio/usart/ubaud.c,
7954         * device/lib/pic16/libio/usart/ubusy.c,
7955         * device/lib/pic16/libio/usart/udrdy.c,
7956         * device/lib/pic16/libio/usart/uopen.c,
7957         * device/lib/pic16/libio/usart/uputc.c,
7958         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
7959         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
7960         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
7961         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
7962         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
7963         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
7964         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
7965         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
7966         specific keywords to double underlined form,
7967         * device/lib/pic16/libc/Makefile.rules,
7968         * device/lib/pic16/libsdcc/Makefile.rules,
7969         * device/lib/pic16/libm/Makefile,
7970         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
7971         to compile with C standard set in Makefile.common
7972         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
7973         rand.c and crc.c in compilation process,
7974         * device/lib/pic16/libsdcc/int/divuint.c,
7975         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
7976         `c' from signed to unsigned,
7977         * device/lib/pic16/startup/crt0.c,
7978         * device/lib/pic16/startup/crt0i.c,
7979         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
7980         keywords to double underlined form, bug fixes in _do_cinit function
7981         which prevented the correct initialization of the .idata segment,
7982         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
7983         core to enter a infinite loop
7984         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
7985
7986 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7987
7988         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
7989
7990 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7991
7992         * device/include/Makefile.in: add support for hc08 subdirectory
7993         * device/include/hc08/: new subdirectory
7994         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
7995         Lucas Loizaga, thanks!
7996         * device/include/hc08/mc68hc908qy.h,
7997         * device/include/hc08/mc68hc908gp32.h,
7998         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
7999         their own directory. Changed internal macro names to use the compiler
8000         reserved namespace. Changed SDCC specific keywords to double
8001         underlined form.
8002         * device/include/math.h,
8003         * device/include/malloc.h,
8004         * device/include/stdarg.h,
8005         * device/include/stdbool.h
8006         * device/include/string.h,
8007         * device/include/tinibios.h,
8008         * device/include/ds400rom.h,
8009         * device/include/8051.h,
8010         * device/include/8052.h,
8011         * device/include/80c51xa.h,
8012         * device/include/at89c55.h,
8013         * device/include/at89S8252.h,
8014         * device/include/at89x51.h,
8015         * device/include/at89x52.h,
8016         * device/include/ds80c390.h,
8017         * device/include/reg764.h,
8018         * device/include/regc515c.h,
8019         * device/include/sab80515.h,
8020         * device/include/mcs51/c8051f000.h,
8021         * device/include/mcs51/c8051f018.h,
8022         * device/include/mcs51/c8051f020.h,
8023         * device/include/mcs51/c8051f040.h,
8024         * device/include/mcs51/c8051f060.h,
8025         * device/include/mcs51/c8051f120.h,
8026         * device/include/mcs51/c8051f300.h,
8027         * device/include/mcs51/c8051f310.h,
8028         * device/include/mcs51/c8051f320.h,
8029         * device/include/mcs51/c8051f330.h,
8030         * device/include/mcs51/c8051f350.h,
8031         * device/include/z180.h: Changed SDCC specific keywords to double
8032         underlined form.
8033
8034 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
8035
8036         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
8037         18F4455,
8038         * (pic16_assignConfigWordValue): disable testing of configuration
8039         register value with config mask,
8040         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
8041         function with port->fun_prefix,
8042         * (genFunction): when generating a naked interrupt function never
8043         create an absolute segment placed in interrupt vector address, place
8044         the actual interrupt function at IVA instead, when an interrupt
8045         function is generated with unspecified interrupt then do not create
8046         the absolute section,
8047         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
8048         code for generating a call to generic pointer get/put function with
8049         a call to function pic16_callGenericPointer(),
8050         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
8051         the call to the generic pointer get/put functions with prefixing the
8052         function name with port->fun_prefix,
8053         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
8054         * src/pic16/main.c (_process_pragma): prefix function with
8055         port->fun_prefix,
8056         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
8057         calling assembler, old 18Fxxxx macro is deprecated,
8058         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
8059         PC_ASMDIR in while condition,
8060         * (findInstruction): add PC_ASMDIR in while condition,
8061         * (buildCallTree): prefix main with port->fun_prefix,
8062         * (pic16_pCode2str): fixed bug that didn't emit the memory access
8063         identifier for variable with banked access in instructions BTFSS,
8064         BTFSC, BCF, BSF, BTG
8065         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
8066         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
8067         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
8068         perform optimization when enviroment variable NO_REG_OPT is set,
8069         * (insideLRBlock): NEW, return 1 if register is inside an
8070         INF_LOCALREGS block,
8071         * (RemoveRegFromLRBlock): remove a register that is completely
8072         eliminated by register optimization, but it is still left in local
8073         register store/restore in/from stack block,
8074         * (Remove2pcodes): after removing register, check to see if it
8075         should be removed from local register store/restore in/from stack
8076         block,
8077         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
8078         DUMMY_READ_VOLATILE,
8079
8080         * device/include/pic16/adc.h: minor prototype modifications and
8081         update,
8082         * device/include/pic16/malloc.h: added GPL notice various
8083         modifications,
8084         * device/include/pic16/stdint.h: NEW, standard header for ints
8085         * device/include/pic16/delay.h: NEW, header for delay functions,
8086         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
8087         delay1mtcy,
8088         * device/include/pic16/signal.h: NEW, header providing helper macros
8089         for implementing signal handlers,
8090         * device/include/pic16/stdio.h: added prototypes for functions,
8091         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
8092         prototypes for stdin and stdout, added macro PUTCHAR to
8093         automatically implement putchar function prototype,
8094         * device/include/pic16/usart.h: modified and updated USART library,
8095         * device/lib/pic16/libio/adc/,
8096         * device/lib/pic16/libio/i2c: some modifications to improve library
8097         performance,
8098         * device/lib/pic16/libc/stdio/: modifications for the new printf*
8099         family of functions,
8100         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
8101         family of functions and other sources,
8102         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
8103         of the PIC18Fxx[28] devices,
8104         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
8105         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
8106         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
8107         _do_cinit function, because the previous failed when local variables
8108         where not placed in the same memory bank,
8109         * device/lib/pic16/libsdcc/char/: various modifications to improve
8110         library performance,
8111         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
8112         information on the new functions of the c library and more...
8113
8114 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8115
8116         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
8117
8118 2005-03-26 Raphael Neider <rneider AT web.de>
8119
8120         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
8121           if condition == CARRY)
8122         * (genCmp): adapted to new genSkipc semantics
8123         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
8124           on rIfx (genCmp was broken)
8125
8126 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8127
8128         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
8129         * src/z80/main.c (_keywords[]),
8130         * src/SDCCglobal.h (struct options),
8131         * src/SDCC.y,
8132         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
8133         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
8134         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
8135         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
8136         always available in leading double underscore form. The C99 support is
8137         mostly missing, but it's a start.
8138         * support/regression/tests/bug-227710.c: fixed nonconforming use of
8139         reserved identifier "__data".
8140
8141 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
8142
8143         * src/mcs51/peeph.def: fixed bug 1170013
8144
8145 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
8146
8147         * device/include/mcs51reg.h: fixed bug 842007
8148
8149 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8150
8151         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
8152         last time.
8153
8154 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8155
8156         * src/port.h (struct PORT),
8157         * src/avr/ralloc.c (avr_assignRegisters),
8158         * src/avr/main.c,
8159         * src/ds390/ralloc.c (ds390_assignRegisters),
8160         * src/ds390/main.c,
8161         * src/hc08/ralloc.c (hc08_assignRegisters),
8162         * src/hc08/main.c,
8163         * src/mcs51/ralloc.c (mcs51_assignRegisters),
8164         * src/mcs51/main.c,
8165         * src/pic/ralloc.c (pic14_assignRegisters),
8166         * src/pic/main.c,
8167         * src/pic16/ralloc.c (pic16_assignRegisters),
8168         * src/pic16/main.c,
8169         * src/xa51/ralloc.c (xa51_assignRegisters),
8170         * src/xa51/main.c,
8171         * src/z80/ralloc.c (z80_assignRegisters),
8172         * src/z80/ralloc.h,
8173         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
8174         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
8175         * src/SDCCcse.h,
8176         * src/SDCCdflow.c (computeDataFlow),
8177         * src/SDCCdflow.h,
8178         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
8179         * src/SDCCloop.h,
8180         * src/SDCCcflow.c (*),
8181         * src/SDCCcflow.h,
8182         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
8183         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
8184         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
8185         immedDom() returning wrong block; probably fixes bug #1160833)
8186
8187 2005-03-20 Borut Razem <borut.razem AT siol.net>
8188
8189         * support/scripts/inc2h.pl: WIN32 port
8190
8191 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
8192
8193         * device/lib/makefile.in: added abs.c and labs.c
8194
8195 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
8196
8197         * device/include/stdint.h: added
8198         * device/lib/abs.c: added
8199         * device/lib/labs.c: added
8200         * device/include/stdlib.h: added abs() and labs() prototypes
8201         * device/lib/libsdcc.lib: added abs and labs
8202         * device/include/float.h,
8203         * device/lib/_fsmul.c,
8204         * device/lib/printf_fast.c,
8205         * device/lib/printf_tiny.c: updated comments
8206
8207 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8208
8209         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
8210         bug #1164313
8211
8212 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8213
8214         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
8215         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
8216
8217 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
8218
8219         * device/lib/printf_large.c: removed inline assembly for portability and
8220           readability. Use printf_fast if speed or size are more important.
8221         * src/pic16/gen.c: removed conditions around use of DEBUGpc
8222         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
8223
8224 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
8225
8226         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
8227         prevent compiler warning
8228
8229 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
8230
8231         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
8232         moved to level 0 and declared as static. Also they are explicit
8233         placed in access bank. This was necessery because some times they
8234         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
8235         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
8236         optimizations. Currently only compare to unsigned char is implemented,
8237         * src/pic16/gen.c: added fReturnIdx array,
8238         * (struct resolvedIfx) is moved to gen.h and made public,
8239         * (struct _G): added sregsAlloc and sregsAllocSet fields,
8240         * (aopForSym): added an optimization to directly store in stack of
8241         the operand of a SEND iCode,
8242         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
8243         but as registers instead (AOP_REG) using the fReturnIdx array,
8244         * (pic16_freeAsmop): remove the freed register from the
8245         _G.sregsAlloc field,
8246         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
8247         a compare of 'WREG',
8248         * (pic16_popGetTempRegCond): changed function prototype, now
8249         function takes also a bitVector argument v which holds the current
8250         set of registers that are allocated for stack access by aopForSym,
8251         registers allocated in aopForSym for accessing stack symbols are not
8252         any more part of the functions usedRegs field,
8253         * (genCall): some times aopOp is called for a stack variable to be
8254         send, aopForSym might perform the push, if this is true make sure
8255         that genCall doesn't push the variable twice by testing _G.resDirect,
8256         * (genFunction): changed testing for unspecified interrupt number
8257         from 256 to INTNO_UNSPEC,
8258         * modified selection scheme of frame pointer generation. Previously
8259         if function did use local registers a frame pointer was generated,
8260         now a frame pointer is generated only if function has arguments
8261         (that need PLUSW2 register access), or has stack arguments, or the
8262         compiler is not instructed to omit the frame pointer,
8263         * (genEndFunction): before restoring local registers that were saved
8264         in the function preamble, also restore the registers that *might*
8265         have been allocated for stack access,
8266         * (genRet): removed some old comments,
8267         * (genCmp, the active (RN's) version): added a call to the
8268         pic16_genCmp_special function to perform the compare with a more
8269         robust and optimized way,
8270         * (genInline): a feature has been added in inline code generation,
8271         which allows a wildcard variable substitution when writing inline
8272         assembly. Code is incomplete and experimental therefore undocumented,
8273         * (genCast): changed order of aopOp for result and right to allow
8274         aopForSym to directly load the result if possible,
8275         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
8276         perform an optimized compare on some selected special occasions,
8277         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
8278         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
8279         generate an IVT any more,
8280         * src/pic16/main.c (pic16_optionsTable): added command line option
8281         --optimize-cmp,
8282         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
8283         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
8284         macros,
8285         * src/pic16/NOTES: Raphael Neider added in list of active developers
8286         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
8287         jumptable_end to prevent bug #,
8288         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
8289         inCond and outCond fields,
8290         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
8291         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
8292         turn off register spilling,
8293         * (packRegsForOneUse): synced with other ports' versions although it
8294         is not used currently,
8295         * (pic16_packRegisters): added an optimization while reading
8296         structure bitfields, some registers may be saved (malloc code is
8297         decreased by 80 bytes)
8298
8299 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
8300
8301         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
8302         left is a bitfield, if yes, then don't optimize assignment. Perhaps
8303         this can be optimized more?
8304
8305 2005-03-10 Raphael Neider <rneider AT web.de>
8306
8307         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
8308           genNearPointerGet): (hopefully) fixed access to bitfields via
8309           pointers (p->bitN = x; and x = p->bitN; failed)
8310
8311 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
8312
8313         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
8314
8315 2005-03-09 Raphael Neider <rneider AT web.de>
8316
8317         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
8318
8319 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
8320
8321         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
8322         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
8323           (regTypeNum): set REG_BIT type if necessary
8324         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
8325         * support/regression/tests/critical.c: check bug 1144613
8326
8327 2005-03-02 Raphael Neider <rneider AT web.de>
8328
8329         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
8330
8331 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8332
8333         * src/avr/ralloc.c (serialRegAssign),
8334         * src/ds390/ralloc.c (serialRegAssign),
8335         * src/hc08/ralloc.c (serialRegAssign),
8336         * src/mcs51/ralloc.c (serialRegAssign),
8337         * src/pic/ralloc.c (serialRegAssign),
8338         * src/pic16/ralloc.c (serialRegAssign),
8339         * src/xa51/ralloc.c (serialRegAssign),
8340         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
8341
8342 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
8343
8344         * src/SDCCast.c (decorateType): fixed bug 1124787
8345
8346 2005-02-20 Hubert Sack <sack AT digiplan.de>
8347         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8348
8349         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
8350         patch #1121755
8351
8352 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8353
8354         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
8355         to keep the correct label reference count when adding/removing references
8356         to labels. A peephole file using this is appended to patch #1144962.
8357
8358 2005-02-14 Raphael Neider <rneider AT web.de>
8359
8360         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
8361         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
8362         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
8363           retrievals of result operand's value on assignment
8364
8365 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
8366
8367         * device/include/pic16/string.h: modified prototype for memccpy()
8368         to memccpy(void *, void *, char, size_t)
8369         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
8370         check whether to omit frame pointer or not,
8371         * (genInline): convert all occurences of "\n" to LF in inline
8372         assembler blocks, this helps formatting the inline text,
8373         * (pic16_loadFSR0): modified prototype,
8374         * (genNearPointerGet, genNearPointerSet): reorganization of code,
8375         removed some 8051 legacy code,
8376         * (genPackBits): enabled handling bitfields exceeding one byte in size,
8377         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
8378         before allocating temporary registers in functions,
8379
8380 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
8381
8382         * support/regression/tests/bitvars.c: corrected the "fix"
8383
8384 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
8385
8386         * support/regression/tests/bitvars.c,
8387         * support/regression/tests/bitwise.c,
8388         * support/regression/tests/rotate.c: "fixed" problems on Alpha
8389
8390 2005-02-10 Raphael Neider <rneider AT web.de>
8391
8392         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
8393           different size for Alpha
8394         * src/pic16/gen.c (genCmpEq) : improved compare with 0
8395
8396 2005-02-09 Raphael Neider <rneider AT web.de>
8397
8398         * src/SDCC.lex(doPragma) : save and restore warning options as well
8399           (also added new stack plus clone- and copyAndFreeSDCCERRG())
8400         * have #pragma less_pedantic set the errorlevel to WARNING
8401           (fixes #1117001)
8402         * (cloneOptimize) : fixed wrong malloc's size
8403         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
8404           facilitate correct handling of #pragma (save|restore)
8405
8406 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
8407
8408         * src/mcs51/gen.c: removed non-standard C nameless struct/union
8409
8410 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
8411
8412         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
8413
8414 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
8415
8416         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
8417
8418 2005-02-02 Raphael Neider <rneider AT web.de>
8419
8420         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
8421         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
8422         * (pic16_storeForReturn): fixed to allow returning function pointers
8423         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
8424         * device/include/pic16/{stddef.h,stdbool.h}: added
8425
8426 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
8427
8428         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
8429
8430 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
8431
8432         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
8433         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
8434          appeared to be required
8435
8436 2005-01-31 Borut Razem <borut.razem AT siol.net>
8437
8438         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
8439           include/mcs51 and include/z80 directories to the package
8440
8441 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8442
8443         * src/hc08/gen.c (genFunction): fixed bug #1112752
8444
8445 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8446
8447         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
8448
8449 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8450
8451         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
8452
8453 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
8454
8455         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
8456
8457 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
8458
8459         * device/include/c8051fxxx.h: removed these 6 files
8460         * device/include/mcs51/c8051fxxx.h: added these 11 new files
8461
8462 2005-01-26 Raphael Neider <rneider AT web.de>
8463
8464         * src/pic16/gen.c (genAssign): fixed assignment from longs
8465           in codespace (were cut to three bytes)
8466         * (genDummyRead): implemented (except for CODESPACE...),
8467           fixed bug #1108575
8468         * src/pic16/glue.c (emitStatistics): beautified
8469         * device/lib/pic16/libm/Makefile: added include path
8470
8471 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8472
8473         * src/z80/gen.c (aopPut): fixed bug #1103902
8474
8475 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8476
8477         * device/lib/expf.c: fixed bug #1095792
8478
8479 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
8480
8481         * device/lib/pic16/libm: added Math library sources
8482
8483 2005-01-24 Raphael Neider <rneider AT web.de>
8484
8485         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
8486           to enable upcast to pCodeOpReg2 (there is no type tag to
8487           differenciate the two and pic16_popGet2p cast into PCOR2)
8488         * src/pic16/main.c (_process_pragma): fixed another malloc bug
8489           (sizeof(sectNames) changed to sizeof(sectName))
8490           Both patches fix segfaults under MinGW.
8491
8492 2005-01-23 Raphael Neider <rneider AT web.de>
8493
8494         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
8495           Safe_[mc]?alloc()'ed variables
8496         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
8497           of (byte sized) temporaries (assign them to WREG for now)
8498         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
8499           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
8500           this might fix SIGSEGVs on MinGW...
8501         * src/SDCCopt.c (killDeadCode): restored original behaviour
8502           (volatile operands might get thrown away though)
8503
8504 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
8505
8506         * src/pic16/gen.c: fixed bug #1106975,
8507         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
8508         pointer update, INTCON is saved, global interrupts are disabled and
8509         restored after updateing TOS.
8510         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
8511         * added function attribute 'shadowregs' to take advantage of shadow
8512         registers,
8513         * added function attribute 'wparam' as an alternative to the wparam
8514         pragma,
8515         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
8516         user declares a non-ISR function as 'shadowregs',
8517         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
8518
8519 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
8520
8521         * .version: bumped version number to 2.4.8
8522         * device/lib/pic16/pics.all: list of PIC18F devices supported by
8523         pic16 port,
8524         * device/lib/pic16/libio/i2c/: I2C module support library,
8525         * device/include/pic16/i2c.h: I2C support library header,
8526         * device/lib/pic16/libc/stdio/: standard IO support sources,
8527         * (printf_small.c): printf_small() source, supports float print,
8528         * (printf_tiny.c): printf_tiny() source, does not support floats,
8529         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
8530         enable global optimizations for entire library source, other
8531         Makefiles in the source tree are also modified to reflect this,
8532         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
8533         function,
8534         * doc/sdccman.lyx: updated to reflect new changes,
8535         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
8536         sym->onStack if-case,
8537         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
8538         sbit, idata, _idata, xdata, _xdata,
8539         * added pragma library, to link an external library, (see doc),
8540         * removed command line options, --pomit-config-words, --pomit-ivt,
8541         --pleave-reset-vector,
8542         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
8543         when calling assembler to reflect memory model used, also define
8544         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
8545         reflect stack model used,
8546         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
8547         on stack return NULL,
8548
8549 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
8550
8551         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
8552           of the operands is volatile. Fixes #1020220
8553
8554 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
8555
8556         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
8557         * (OptimizeRegUsage): make sure that there is really no other flow where
8558           the first pCode is used
8559
8560 2005-01-22 Raphael Neider <rneider AT web.de>
8561
8562         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
8563           to fix #1106967 (pCode->seq are not set up correctly)
8564
8565 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8566
8567         * src/SDCCglue.c (glue): make sure code area is declared before the
8568         static initialization area.
8569
8570 2005-01-21 Raphael Neider <rneider AT web.de>
8571
8572         * device/lib/Makefile.in: fixed test for pic16 install dir
8573         * device/lib/pic16/*/Makefile*: modified compile flags to enable
8574           optimizations
8575         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
8576           added --optimize-goto compiler switch and pragma wparam documentation
8577         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
8578         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
8579           and PRODH closing bug #1071770 (peephole optimizer)
8580
8581 2005-01-19 Raphael Neider <rneider AT web.de>
8582
8583         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
8584           cmdLine buffers (used when calling sdcpp...) are large enough
8585           (MAX_PATH=256 truncates arguments leading to system halts when
8586           used in MinGW...)
8587         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
8588         * (genUminus): rewritten to for efficiency
8589         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
8590           used uninitialized in some cases)
8591         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
8592           copy the third byte from the int -- now assumes 0x80 (data memory)
8593         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
8594           operands (genAddLit expects the iCode's operands to swapped as
8595           well), fixed leftover bytes (crashed for short left operands)
8596         * (pic16_genMinusDec): performance improvements, removed false
8597           PIC14 emitSKPNCs
8598         * (pic16_genMinus): fixed to cope with differently sized operands
8599         * src/pic16/glue.c (pic16_glue): added new banksel optimization
8600           for --obanksel > 1
8601         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
8602         * src/pic16/graph.[ch]: implementation of directed graphs, used by
8603           new banksel optimization
8604         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
8605           analysis for temporary registers (segfaults...)
8606         * src/pic16/peeph.def: added rule
8607
8608 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
8609
8610         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
8611         which converts a float number to its ASCII representation
8612         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
8613         functions to convert the fractional and integer part of a float to ASCII,
8614         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
8615         realloc.c): added _MALLOC_SPEC to explicit place variables in data
8616         ram
8617         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
8618         _STATMEM macros,
8619         * device/include/pic16/adc.h: added GPL info,
8620         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
8621         a pCodeOp as tested operand,
8622         * (genNearPointerGet): optimized bit testing, does not use
8623         intermediate register for bit value, test directly instead with
8624         BTFSS, BTFSC, works only for single bits,
8625         * (genpic16Code): dump the name of the iCode in the asm,
8626         * src/pic16/ralloc.c (decodeOp): removed static declaration and
8627         renamed to pic16_decodeOp,
8628         * (serialRegAssign): do not allocate a temporary register for iCode
8629         sequences that test a single bit for 1/0
8630
8631 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
8632
8633         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
8634         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
8635         access stack and frame pointers. They are initially assigned to
8636         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
8637         accessing SFRs. Updated all occurences of modification of stack or
8638         frame pointer in gen.c and pcode.c,
8639         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
8640         assigning of a literal value to pointers,
8641         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
8642         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
8643         selected
8644
8645 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
8646
8647         * doc/sdccman.lyx: update documentation about stack pragma, added
8648         some info for stack memory models
8649
8650 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8651
8652         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
8653
8654 2005-01-08 Raphael Neider <rneider AT web.de>
8655
8656         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
8657           udata sections to fix bug #1097823
8658
8659 2005-01-05 Raphael Neider <rneider AT web.de>
8660
8661         * src/pic16/gen.c (genGenericShift): added handling of differently
8662           sized left operand and result
8663
8664 2005-01-04 Raphael Neider <rneider AT web.de>
8665
8666         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
8667         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
8668           to hold the condition bit)
8669         * added new version of genCmp (old code available via #define)
8670         * added new version of genShiftLeft/genShiftRight in a generic
8671           way, now supports shifting by negative values
8672         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
8673           shiftCount (expected by genGenericShift)
8674         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
8675         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
8676           dump
8677         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
8678           is an invalid literal too...)
8679
8680 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
8681
8682         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
8683         from Raphael Neider,
8684         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
8685         for 8-bit literals. This fixes some literal operands which are sign
8686         extended to 16-bits ints when instruction needs only 8-bits.
8687
8688 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
8689
8690         * device/lib/logf.c: added mcs51 assembly version
8691         * device/lib/expf.c: added mcs51 assembly version
8692         * device/lib/_logexpf.c: new shared asm code for expf and logf
8693         * device/include/math.h: add defines for assembly math library
8694         * device/lib/Makefile.in: build new _logexpf.c
8695         * device/lib/libfloat.lib: use new _logexpf.c
8696
8697 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
8698
8699         * src/pic/device.c
8700         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
8701           device types which have less than 0x7f registers.
8702
8703 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
8704
8705         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
8706
8707 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
8708
8709         * device/lib/printf_fast.c: only build on supported arch.
8710         * device/lib/printf_tiny.c: only build on supported arch.
8711         * device/lib/printf_fast_f.c: only build if asm float lib
8712         * device/lib/_fsget1arg.c: only build if asm float lib
8713         * device/lib/_fsget2args.c: only build if asm float lib
8714         * device/lib/_fsnormalize.c: only build if asm float lib
8715         * device/lib/_fsreturnval.c: only build if asm float lib
8716         * device/lib/_fsrshift.c: only build if asm float lib
8717         * device/lib/_fsswapargs.c: only build if asm float lib
8718         * device/include/stdio.h: don't provide print_fast,
8719           print_fast_f, print_tiny prototypes if --xstack used
8720
8721 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
8722
8723         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
8724         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
8725           to the SOURCES
8726
8727 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
8728
8729         * device/lib/printf_fast_f.c: same as printf_fast, but
8730           with floating point enabled
8731         * device/lib/printf_fast.c: minor tweaks
8732         * device/include/stdio.h: add printf_fast_f
8733
8734 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
8735
8736         * src/SDCCmain.c: make --float-reent default for mcs51
8737         * device/lib/_fsadd.c: added mcs51 assembly version
8738         * device/lib/_fssub.c: added mcs51 assembly version
8739         * device/lib/_fsmul.c: added mcs51 assembly version
8740         * device/lib/_fsdiv.c: added mcs51 assembly version
8741         * device/lib/_fseq.c: added mcs51 assembly version
8742         * device/lib/_fsneq.c: added mcs51 assembly version
8743         * device/lib/_fsgt.c: added mcs51 assembly version
8744         * device/lib/_fslt.c: added mcs51 assembly version
8745         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
8746         * device/lib/Makefile.in: add _fscmp to build
8747         * device/lib/libfloat.lib: add _fscmp to build
8748
8749 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
8750
8751         * device/lib/_fs2slong.c: added mcs51 assembly version
8752         * device/lib/_fs2sint.c: added mcs51 assembly version
8753         * device/lib/_fs2schar.c: added mcs51 assembly version
8754         * device/lib/_fs2ulong.c: added mcs51 assembly version
8755         * device/lib/_fs2uint.c: added mcs51 assembly version
8756         * device/lib/_fs2uchar.c: added mcs51 assembly version
8757         * device/lib/_slong2fs.c: added mcs51 assembly version
8758         * device/lib/_sint2fs.c: added mcs51 assembly version
8759         * device/lib/_schar2fs.c: added mcs51 assembly version
8760         * device/lib/_ulong2fs.c: added mcs51 assembly version
8761         * device/lib/_uint2fs.c: added mcs51 assembly version
8762         * device/lib/_uchar2fs.c: added mcs51 assembly version
8763         * device/include/float.h: added #define to select asm vs c
8764
8765 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
8766
8767         * device/lib/printf_fast.c: improvements to float output
8768         * device/include/float.h: add defines for assembly float library
8769         * device/lib/_fsget1arg.c: receive 1 float arg
8770         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
8771         * device/lib/_fsnormalize.c: normalize a float
8772         * device/lib/_fsreturnval.c: return float, various helper routines
8773         * device/lib/_fsrshift.c: right shift a float's mantissa
8774         * device/lib/_fsswapargs.c: swap 2 floats
8775         * device/lib/Makefile.in: build these 6 new files for mcs51
8776         * device/lib/libfloat.lib: add these 6 files to the library
8777
8778 2004-12-26 Borut Razem <borut.razem AT siol.net>
8779
8780         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
8781           built by gcc 3.4.2
8782
8783 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
8784
8785         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
8786           and fully reentrant and register bank neutral.
8787         * device/lib/printf_fast.c: added float (not enabled by default),
8788           added compact/slower integer (also not enabled by default),
8789           improved size/speed of fast integer code, other minor changes
8790         * device/include/stdio.h, device/lib/Makefile.in,
8791           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
8792
8793 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
8794
8795         * src/pic16/pcode.c: declaring variables other than at the start of a
8796           block is not supported in C by VC6.
8797
8798 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
8799
8800         * applied a previous patch from Raphael Neider that wasn't included
8801         in the previous commits, which fixes infinite loops within jumptable
8802         improvements,
8803         * made some fixes that previous patches introduced
8804
8805 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
8806
8807         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
8808         that fixes an issue with AOP_PCODE asmop's offset,
8809         * (pic16_popCopyReg): update instance field too,
8810         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
8811         function of pic port,
8812         * (genCmp, genAnd, genAssign),
8813         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
8814
8815 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
8816
8817         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
8818         variables initial values to idata section,
8819         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
8820         variables in some functions. This utilizes parmBytes field of iCode
8821         structure to hold the offset of the variable in stack. (might be
8822         able to use the stack field too?)
8823         * applied patch from Raphael Neider # ### , # ###
8824         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
8825         variable initial values in idata section,
8826         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
8827         for static variables with initial value
8828         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
8829         applied fix in while loop from Raphael Neider.
8830
8831 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
8832
8833         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
8834         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
8835         * src/ds390/ralloc.c (serialRegAssign): spill bits
8836         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
8837         * support/Util/SDCCerr.c,
8838         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
8839         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
8840         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
8841
8842 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
8843
8844         * device/include/sdcc-lib.h: inserted LGPL, added includes
8845           asm/ds390/features.h and asm/mcs51/features.h
8846         * device/include/asm/default/features.h,
8847         * device/include/asm/gbz80/features.h,
8848         * device/include/asm/z80/features.h: added empty _AUTOMEM
8849           and _STATMEM
8850         * device/include/asm/ds390/features.h,
8851         * device/include/asm/mcs51/features.h: added files with defines for
8852           _AUTOMEM and _STATMEM indicating automatic and static storage class
8853         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
8854         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
8855         * src/SDCCicode.c (geniCodeCast),
8856         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
8857         * src/SDCCloop.c (loopInduction): removed unused variable lr
8858         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
8859           to convertToFcall to include char modulo (RFE 1065037), added check
8860           if left operand is unsigned and use abs of literal value
8861         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
8862           as it doesn't work after conversion from peephole.def to peephole.rul
8863         * src/mcs51/gen.c (toBoolean): added check for size,
8864           (genModOneByte): optimized code for signed char modulo a literal
8865           power of 2 (thanks to Hubert Sack),
8866           (genRRC): removed unnecessary "clr c",
8867           (genRLC): replaced "add a,acc" with cheaper "rlc a"
8868         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
8869           jump optimization,
8870           swapped rules 256.c and 256.d,
8871           extended 256.d by using new multiple checks (thanks Erik),
8872           added rules 256.e and 256.f,
8873           updated rule 261.a and 261.b to new generated code
8874         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
8875
8876 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8877
8878         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
8879           induction related bugs, including first part of bug #1074377
8880
8881 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
8882
8883         * applied patch from bug-report #1076292,
8884         * applied patches for genAnd and Goto-optimizations for Raphael
8885         Neider,
8886         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
8887         dump a less iCode information,
8888         * src/pic16/device.h (pic16_options_t): added field debgen,
8889         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
8890         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
8891         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
8892         puclic,
8893         * (various functions): added macros FENTRY and FENTRY2 to functions,
8894         to emit function prologue,
8895         * (various functions): fixed indentation,
8896         * (genNearPointerGet): fixed loading of FSR0,
8897         * (genPackBits): applied patch from Raphael Neider to fix updating
8898         of FSR0 and touching only the modified bits,
8899         * src/pic16/genarith.c (various functions): added macros FENTRY to
8900         emit function prologue in comments,
8901         * src/pic16/pcode.h: added functions debugf2, debugf3,
8902         * src/pic16/ralloc.c: partial fix for packForPush caused
8903         segmentation fault,
8904
8905 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8906
8907         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
8908           <stsp AT users.sourceforge.net> with reversed byte order
8909         * support/regression/tests/rotate.c: added (ds390 skips some tests)
8910
8911 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8912
8913         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
8914           bug #1074377
8915         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
8916         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
8917
8918 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
8919
8920         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
8921
8922 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8923
8924         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
8925           conditions,
8926           (setFromConditionArgs): friendly operand parser for peephole rules,
8927           (operandBaseName, operandsNotRelated): new peephole condition
8928           "operandsNotRelated" -- similar to "operandsNotSame", but takes
8929           architecture specific register naming into account, handles n-way
8930           comparisons, and supports quoted literals
8931         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
8932
8933 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8934
8935         * src/mcs51/peeph.def: fixed bug #1076940
8936
8937 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
8938
8939         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
8940
8941 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8942
8943         Adding support for replacing ljmps with sjmps in jumptables
8944         generated for switch statements. For now you need to set the
8945         environment variable SDCC_SJMP_JUMPTABLE to enable this.
8946         Now 4 algorithms for mcs51 jumptable generation are used:
8947         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
8948         addresses loaded pc-relative for up to 112 cases and stack-pushing
8949         target addresses loaded with offset from dptr for up to 256 cases.
8950
8951         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
8952         * src/mcs51/main.c: adapted constants for switch table generation
8953         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
8954
8955 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
8956
8957         * device/lib/printf_large.c (_print_format): fixed bug 1073386
8958         * support/regression/tests/bug1057979.c: added test for bug 1073386
8959
8960 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
8961
8962         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
8963         compilers
8964
8965 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
8966
8967         * src/pic16/device.h,
8968         * src/pic16/genarith.c,
8969         * src/pic16/glue.c,
8970         * src/pic16/main.c,
8971         * src/pic16/pcode.c: applied patches #1068154 and #1070213
8972
8973 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
8974
8975         Large cummulative patch for pic16 port.
8976         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
8977         to call when a stack overflow occurs,
8978         * (malloc.h): added CVS Id tag,
8979         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
8980         variable,
8981         * added libc directory. The current version of LibC contains string
8982         functions, ctype functions and macros and some functions of the
8983         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
8984         be extensively tested in the future. Standard disclaimer here.
8985         Library is not automatically build yet. But one can build it by
8986         invoking 'make' inside the libc directory.
8987         * added ADC library under libio. Preliminary version yet.
8988
8989         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
8990         * src/pic16/gen.c (aopForRemat): asmop size is filled by
8991         aopForRemat() now and not by pic16_aopOp(),
8992         * (pic16_popGetTempReg): removed warning messgae when allocating
8993         temporary registers, its a buggy feature and will be removed,
8994         * (pic16_popGet): set register instance field in AOP_CRY,
8995         * (pic16_outBitC): fixed for results in size greater than 1,
8996         * (genUminusFloat): fixed for pic16, ported code from mcs51,
8997         * (pic16_storeForReturn): optimized return of 0,
8998         * (genCmp): experimental code for new genCmp which uses PIC18's
8999         special compare&skip instructions. Initial tests fail some times
9000         with variables grater than 1 byte in size, so new code is disabled,
9001         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
9002         a single bit,
9003         * (genCast): began a fix to optimize the casting of a bit to another
9004         bit, now assigning a bitfield to another bitfield will fail, sorry,
9005         * src/pic16/main.c: disabled the use of lr-support feature,
9006         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
9007         * added some function prototypes, added function _debugf prototype,
9008         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
9009         bits with offset (case PO_GPR_BIT),
9010         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
9011         command line,
9012         * (isBankInstruction): modified to return 0 for no banking instruction,
9013         and 1 for banking instruction,
9014         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
9015         caused stop processing pCodes after a inline assembly block,
9016         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
9017         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
9018         registers when it shouldn't,
9019         * src/pic16/ralloc.c (allocReg): add preliminary support for
9020         supporting a limited set of temporary registers,
9021
9022 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9023
9024         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
9025           genDataPointerSet): ensure assignments always copy in MSB to LSB
9026           order,
9027           (loadRegFromAop): recognize CLRH optimization,
9028           (genFunction): optimize RECEIVE iCodes in reentrant functions
9029
9030 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9031
9032         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
9033           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
9034           selected.
9035         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
9036         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
9037           contiguous with data
9038
9039 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9040
9041         * device/lib/_gptrget.c (_gptrget),
9042         * device/lib/_gptrgetc.c (_gptrgetc),
9043         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
9044           instead of sjmp to ret
9045         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
9046           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
9047
9048 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
9049
9050         * .version: bumped version to 2.4.7
9051         * device/lib/_gptrget.c (_gptrget): is now _naked
9052         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
9053         * device/lib/_gptrput.c (_gptrput): is now _naked
9054         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
9055           (createFunction): fixed xstack
9056         * src/SDCCglue.c (emitMaps): set allocation required for bit area
9057         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
9058           or bit either,
9059           (geniCodeCritical): store original interrupt state in an iTemp bit
9060           var unless stack-auto
9061         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
9062         * src/SDCCmain.c (setIncludePath): added include/target to search path
9063         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
9064         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
9065           prototype,
9066           (processFuncArgs): put bit vars in bit area
9067         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
9068           unsaveRBank): fixed xstack,
9069           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
9070           (genFunction, genEndFunction): fixed xstack,
9071           (genAssign): optimization don't walk backwards through mem
9072         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
9073         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
9074         * support/regression/Makefile: also make library (for stack-auto) when
9075           making "all" and added "test-mcs51-xstack-auto"
9076         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
9077         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
9078         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
9079         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
9080         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
9081           make-library by MAKE_LIBRARY
9082         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
9083           regression tests for xstack
9084         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
9085         * support/regression/tests/critical.c: test for critical on mcs51
9086
9087 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9088
9089         * support/regression/ports/ucz80/spec.mk: use include and lib files from
9090           built version of sdcc instead of installed version
9091
9092 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
9093
9094         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
9095         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
9096           vprintf.c now
9097         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
9098         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
9099           WARNING: remove device/lib/build/z80/printf.o by hand when
9100           updating from previous build!
9101         * device/lib/z80/printf.c: updated comment
9102         * support/regression/tests/bug1057979.c: test all ports now
9103         * support/regression/tests/bug1065458.c: file added
9104
9105 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9106
9107         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
9108           *_start and *_end symbols for static functions
9109
9110 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
9111
9112         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
9113           and search crt0.o in all library paths,
9114           (setIncludePath): proper handling of --nostdinc,
9115           (setLibPath): proper handling of --nostdlib
9116         * support/regression/Makefile,
9117         * support/regression/ports/ds390/spec.mk,
9118         * support/regression/ports/gbz80/spec.mk,
9119         * support/regression/ports/hc08/spec.mk,
9120         * support/regression/ports/mcs51/spec.mk,
9121         * support/regression/ports/mcs51-large/spec.mk,
9122         * support/regression/ports/mcs51-stack-auto/spec.mk,
9123         * support/regression/ports/z80/spec.mk: use include and lib files from
9124           built version of sdcc instead of installed version
9125         * doc/sdccman.lyx: fixed typo in --nostdinc
9126
9127 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
9128
9129         * src/pic/pcode.c,
9130         * src/pic/device.c,
9131         * src/pic/ralloc.c,
9132         * src/pic/gen.c : added support to generate code for struct bit fields.
9133
9134 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
9135
9136         * as/xa51/xa_version.h,
9137         * device/include/errno.h,
9138         * device/include/regc515c.h,
9139         * device/lib/_itoa.c,
9140         * device/lib/_ltoa.c,
9141         * device/lib/ser_ir_cts_rts.c,
9142         * sim/ucsim/xa.src/glob.cc,
9143         * sim/ucsim/xa.src/inst_gen.cc,
9144         * sim/ucsim/xa.src/xa_bit.cc,
9145         * sim/ucsim/xa.src/xa_sfr.cc,
9146         * sim/ucsim/z80.src/inst_dd.cc,
9147         * sim/ucsim/z80.src/inst_fdcb.cc,
9148         * support/scripts/keil2sdcc.pl,
9149         * src/pic16/pic16.dsp,
9150         * src/pic16/pic16a.dsp: corrected cvs line endings
9151         * device/lib/printf_large.c: fixed bug 1057979
9152         * src/pic16/gen.c: fixed non-C standard code
9153         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
9154         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
9155         * support/regression/ports/mcs51/support.c: reload T1 asap
9156         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
9157           pdata use and clear idata startup behaviour
9158         * support/regression/tests/bug1057979.c: added
9159
9160 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
9161
9162         * device/examples/ds390/ow390/ad26.h,
9163         * device/examples/ds390/ow390/cnt1d.h,
9164         * device/examples/ds390/ow390/crcutil.c,
9165         * device/examples/ds390/ow390/ownet.h,
9166         * device/examples/ds390/ow390/owsesu.c,
9167         * device/examples/ds390/ow390/swt12.h,
9168         * device/examples/ds390/ow390/swtoper.c,
9169         * device/examples/ds390/ow390/temp10.h,
9170         * device/examples/ds390/ow390/thermodl.c,
9171         * device/examples/ds390/tinitalk/tinitalk.dsp,
9172         * device/examples/ds390/tinitalk/tinitalk.dsw,
9173         * device/examples/mcs51/clock/hw.h,
9174         * device/examples/mcs51/simple2/go.bat,
9175         * device/examples/serialcomm/windows/serial.h,
9176         * device/examples/xa51/dummy.c,
9177         * device/examples/xa51/hello.c,
9178         * device/include/80c51xa.h,
9179         * device/include/at89x051.h: corrected cvs line endings
9180
9181 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
9182
9183         * src/pic16/main.c (options): added command line --gstack, to trace
9184         stack over/under flows,
9185         * added pragma 'wparam' to allow passing first byte of function
9186         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
9187         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
9188         call to __gstack_test function and sets up the symbol as extern,
9189         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
9190         * popaop): added call to pic16_testStackOverflow,
9191         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
9192         wparamList list,
9193         * (genCall, genPcall): now all parameters are passed via stack
9194         except in functions that are pass to wparam pragma in which WREG is
9195         used too,
9196         * (genPcall): REENTRANT flag is checked to see if variable prototype
9197         contains reentrant keyword, don't call a non-reentrant function, via
9198         a reentrant function pointer or vice versa, functions are never
9199         passed via WREG,
9200         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
9201         D.Winkler,
9202         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
9203         SIGSEGV when accessing a NULL register stucture,
9204         * (pic16_printGPointerType): modified to handle UPPER modifier for
9205         function initializers, changed prototype of function to simpler one,
9206         * (pic16_printIvalFuncPtr): check to see if function is already
9207         added in externs list,
9208         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
9209         optimized a move from W to SFR with a move to the same register
9210         later after a CALL,
9211         * device/lib/pic16/debug: NEW directory, contains debug features
9212         which are enabled when linking with libdebug.lib, currently command
9213         line option --gstack enables stack pointer tracing for over/under
9214         flow, corresponding sources are in debug/gstack
9215
9216 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
9217
9218         * doc/sdccman.lyx: updated SDCC version,
9219         * (PIC16 port): update list of command line options,
9220         * src/pic16/device.h (structure pic16_options_t): added field gstack
9221         to enable stack overflow tracing on push/pops,
9222         * src/pic16/device.c (statistics structure): added statistics
9223         structure,
9224         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
9225         pic16_dump_int_registers): increase statistics counters for each
9226         * variable which is encountered
9227         * (pic16_dump_usection): emit each .udata variable to its own udata
9228         section,
9229         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
9230         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
9231         parameters via stack, otherwise use old scheme,
9232         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
9233         assembler output file,
9234         * src/pic16/main.c: added command line options --gstack to enable
9235         push/pop tracing for stack overflow,
9236         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
9237         instructions): added size of each instruction,
9238         * (pic16_countInstruction): estimate size of instructions in
9239         the_pFile list, inline assembly blocks are not counted,
9240         * (pic16_FixRegisterBanking): trace previous register usage, when
9241         banksel optimizations is greater than 0, don't emit a redudant
9242         banksel directive,
9243
9244 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
9245
9246         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
9247         * src/pic16/ralloc.c : applied same fix for pic16.
9248         * src/pic/gen.c : tidied it up a little.
9249
9250 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9251
9252         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
9253         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
9254
9255 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9256
9257         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
9258
9259 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9260
9261         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
9262         non-reentrant function __modsint in the interrupt function (thus
9263         corrupting math operations during serial I/O)
9264         * device/lib/ser_ir.c: as above, changed buffersize
9265         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
9266         256.c,d for zeroing
9267         * doc/Makefile: added option -t for rsync
9268
9269 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9270
9271         * src/SDCCast.h (struct ast),
9272         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
9273
9274 2004-10-20 Borut Razem <borut.razem AT siol.net>
9275
9276         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
9277         package
9278
9279 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
9280
9281         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
9282         makefile targets,
9283         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
9284         support functions to replace long sequences of MOVFF's from access
9285         bank registers to stack and vice versa,
9286         * src/pic16/device.h: added new field opt_flags, where optimization
9287         flags can be set to enable certain features,
9288         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
9289         * pBlock, (genFunction, genEndFunction): surroung loop for
9290         saving/loading used registers in stack with PC_INFO pCodes,
9291         INF_LREGS. Code in between can then be optimized by pCode optimizer
9292         to support function calls,
9293         * (genDataPointerSet): fixed bug which loaded float fields in
9294         structures with corrupt data,
9295         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
9296         in a standard way debug info on stderr. Feature used for developing
9297         and debugging only,
9298         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
9299         obsolete chunks of code,
9300         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
9301         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
9302         * pic16/src/pcode.c (pic16_newpCodeInfo,
9303         * (pic16_newpCodeOpLocalRegs),
9304         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
9305         feature,
9306         * (pic16_pCodeConstString): printing of the initial value of a
9307         symbol as a comment is inhibited since parsing was already done by
9308         copyStr and output is corrupt,
9309         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
9310
9311 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9312
9313         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
9314
9315 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
9316
9317         * as/mcs51/lkarea.c: removed old K&R style,
9318           (lnksect): changed check on boundary error,
9319           (lnksect2): changed check on boundary error,
9320           (lnksect2): extend XSTK to end of page if size = 1
9321         * as/mcs51/lkmain.c: removed old K&R style,
9322           (Areas51): create l_IRAM symbol
9323         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
9324         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
9325           model-mcs51-stack-auto, added model-mcs51-xstack-auto
9326         * device/lib/_mullong.c: added version to be compiled with xstack
9327         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
9328         * device/lib/mcs51/crtxclear.asm: clear pdata as well
9329         * device/lib/mcs51/crtxstack.asm: fixed comment
9330         * src/SDCCglue.c: maxInterrupts defaults to 0,
9331           (emitMaps): added pdata,
9332           (createInterruptVect): (re)moved default,
9333           (glue): added pdata,
9334           (glue): moved __start__xstack to XSTK with default size 1
9335         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
9336           and options.float_rent when options.stackAuto is set,
9337           (linkEdit): only write XDATA_NAME if provided on command line
9338         * src/SDCCmem.h,
9339         * src/SDCCmem.c: added pdata
9340         * src/port.h: added pdata_name to PORT
9341         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
9342           (saveRegisters, unsaveRegisters): removed usage of B,
9343           (genMinus): fixed accumulator clash,
9344           (genJumpTab): added comment, this needs another look
9345         * src/mcs51/gen.c: added check for "B in use" paranoia,
9346           added pushB() and popB()
9347         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
9348           chance
9349         * src/avr/main.c,
9350         * src/ds390/main.c,
9351         * src/hc08/main.c,
9352         * src/mcs51/main.c,
9353         * src/pic/main.c,
9354         * src/pic16/main.c,
9355         * src/xa51/main.c,
9356         * src/z80/main.c: (reset_regparms) made void parameter explicit and
9357           added PSEG (PAG,XDATA) or NULL to port specifier
9358         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
9359         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
9360           (_mcs51_genInitStartup): removed __start__xstack equ,
9361           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
9362         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
9363         * src/z80/gen.c (_rleAppend): fixed warnings
9364         * support/regression/tests/zeropad.c: added pdata test
9365         * .version: bumped to 2.4.6
9366
9367 2004-10-17 Borut Razem <borut.razem AT siol.net>
9368
9369         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
9370         as a part of nightly build
9371
9372 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
9373
9374         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
9375         WREG holds the first byte function parameters,
9376         * (aopForSym): take special case for symbols which are in FARSPACE
9377         but in CODESPACE too,
9378         * (assignResultValue): modified to take into account _G.useWreg,
9379         * (genCall): don't use wreg for parameter passing when function is
9380         declared as reentrant, too, added optimization INCF to stack
9381         pointer when stack parameter count is 1,
9382         * (genFunction, genEndFunction): refurnished and fixed to not using
9383         wreg for passing parameters when function has varargs or is
9384         reentrant, fixed bug with symbol name compare for generating
9385         functions in absolute address,
9386         * (pic16_storeForReturn): refurnished,
9387         * (genCmp): began writing a new version of the function, not ready
9388         yet, therefore it is disabled,
9389         * (genAssign): do not read code memory when assigning a function to
9390         a pointer function,
9391         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
9392         array of characters, not pointer,
9393         * (pic16initialComments): in debug mode emit an .ident directive for
9394         the assembler,
9395         * (_process_pragma): emit a new warning type (internal to pic16)
9396         when setting stack to default length, emit a similar warning when
9397         placing a function at absolute address and address is not word aligned
9398         * (_pic16_parseOptions): added 'return TRUE' statement,
9399         * (_pic16_linkEdit): if compiling a source, then add the source's
9400         file object, first in the list of objects to link,
9401
9402 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
9403
9404         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
9405         * src/pic/main.c : removed VC warning.
9406         * src/pic/gen.c : changed comment.
9407
9408 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
9409
9410         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
9411         reference to a deprecated symbol _GPTRREG was causing failure to
9412         link. Thanks G. M. Gallant for the info.
9413
9414 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
9415
9416         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
9417         comments for Bugs item #954788.
9418
9419 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
9420
9421         * src/pic16/device.c (pic16_dump_gsection,
9422         * pic16_groupRegistersInSection): handle symbols declared to be in
9423         access bank differently,
9424         * src/pic16/gen.c (struct _G): added field resDirect,
9425         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
9426         send values read from stack directly to result and don't allocate
9427         temporary values,
9428         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
9429         same registers,
9430         * (pic16_sameRegsOfs): NEW,
9431         * (freeAsmop): if _G.resDirect is set then do not mark registers as
9432         free because they were not allocated from temporary pool,
9433         * pic16_popRegFromString): workaround to fix a problem with
9434         allocating variables twice or never,
9435         * (genGenPointerGet): using PRODL instead of FSR0H,
9436         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
9437         instead of FSR0H,
9438         * (genAssign): take advantage of the _G.resDirect flag,
9439         * (genCast): around line 11844, use mov2f instead of directly
9440         MOVFF'ing between operands to account for literal values,
9441         * src/pic16/genutils.c: some new debug functions for gpsim have been
9442         added,
9443         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
9444         float with integer part only,
9445         * src/pic16/main.c (_process_pragma): handle pragma udata access to
9446         place variables in access bank
9447         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
9448         updated sources to reflect recent changes in gen.c
9449
9450 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
9451
9452         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
9453         sources that searched for headers in installation path, now the
9454         device/include/pic16 is used,
9455         * src/pic16/glue.c (pic16glue),
9456         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
9457         .line directives if not in debug mode, this suppresses assembler's
9458         warnings for ignored directives
9459
9460 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
9461
9462         * src/port.h: made reset_regparms prototype void parameter explicit.
9463         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
9464         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
9465         * doc/sdccman.lyx: documented warning disabling and how to use
9466           printf_large to make it print floats.
9467         * device/include/stdbool.h: NEW
9468         * device/lib/_atof.c,
9469         * device/lib/_divuint.c,
9470         * device/lib/_divulong.c,
9471         * device/lib/expf.c,
9472         * device/lib/printf_large.c,
9473         * device/lib/sincosf.c,
9474         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
9475         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
9476           a completely reentrant lib.
9477
9478 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
9479
9480         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
9481         * device/include/pic16/stdio.h: fixed bug with colon
9482
9483 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
9484
9485         * device/include/pic16/stdio.h,
9486         * device/include/pic16/stdlib.h,
9487         * device/include/pic16/math.h: NEW
9488         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
9489         declared as _naked to reduce overhead
9490         * device/lib/Makefile.in (target port-specific-objects-pic16):
9491         changed * to *.* so to ignore the CVS directory,
9492         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
9493         stacked variables back in stack,
9494         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
9495         corruption
9496
9497 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
9498
9499         * .version: bumped version number to 2.4.5
9500         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
9501         * support/Util/SDCCerr.c (messages structure): added entry for
9502         W_POSSBUG2
9503
9504         Large cumulative patch for pic16 port and libraries.
9505         * device/include/pic16/sdcc-lib.h,
9506         * device/include/pic16/stdarg.h,
9507         * device/include/asm/pic16/features.h,
9508         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
9509         * device/include/pic16/float.h: changes reentrant keyword with
9510         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
9511         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
9512         updated target build-libraries to include objects from gptr,
9513         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
9514         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
9515         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
9516         all function headings,
9517         * src/SDCCmain.c: added global parameter userIncDirsSet,
9518         * (parseCmdLine): when option -I is encountered add directory to
9519         userIncDirsSet too,
9520         * src/version.awk: added space between control and long,
9521         * src/pic16/NOTES: added some notes for the port,
9522         * src/pic16/gen.c: added prototype for mov2fp function,
9523         * (fReturnpic16[]): properly named return value registers,
9524         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
9525         * (aopForSym): added code to handle symbols with onStack flag set,
9526         symbols onStack are allocated PTRSIZE bytes,
9527         * (aopFreeAsmop): handles special case where asmops are stack objects,
9528         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
9529         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
9530         added argument lock to trace flaws in allocating temporary registers
9531         when developing port,
9532         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
9533         * (pic16_popRegFromString): reenabled allocating a direct register
9534         from string,
9535         * (assignResultValue): various beautifications,
9536         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
9537         referenced function argument,
9538         * (genIpush): reenabled to allow stacked arguments, handles only
9539         ic->parmPush iCodes,
9540         * (genCall, genPcall): major changes to allow for variable argument
9541         functions, fixed a bug with falsely restoring stack pointer after
9542         returning from call,
9543         * (genFunction): pending code for critical function,
9544         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
9545         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
9546         * (genNearPointerGet): fixed bug with indirect reading, was always
9547         reading from INDF0
9548         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
9549         pointers,
9550         * (genAddrOf): rewrote code to take address of a stacked function parameter
9551         * (genCast): fixed casting to generic pointer type,
9552         * src/pic16/gen.h: added AOP_STA,
9553         * (struct asmop): added field stk,
9554         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
9555         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
9556         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
9557         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
9558         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
9559         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
9560         generic pointers,
9561         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
9562         and library paths,
9563         * (pic16_port structure): generic pointer size is set to 3,
9564         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
9565         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
9566         compiler warning,
9567         * src/pic16/ralloc.c (allocReg): prevent allocating register when
9568         operand is an iTemp,
9569
9570 2004-09-24 Martin Helmling <mh AT octo-soft.de>
9571
9572         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
9573         * debugger/mcs51/simi.c: addapt new syntax of s51
9574
9575 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
9576
9577         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
9578         * src/pic16/pcode.c: commented out some calls to free() in order to
9579         fix bug #989576,
9580
9581 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9582
9583         * src/SDCCicode.h,
9584         * src/SDCCicode.c (isiCodeInFunctionCall),
9585         * src/avr/ralloc.c (selectSpil),
9586         * src/pic/ralloc.c (selectSpil),
9587         * src/pic16/ralloc.c (selectSpil),
9588         * src/ds390/ralloc.c (selectSpil),
9589         * src/hc08/ralloc.c (selectSpil),
9590         * src/xa51/ralloc.c (selectSpil),
9591         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
9592         stack in the middle of a function call sequence (fixes bug #1020268)
9593         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
9594         costs associated with the minimum switch case.
9595
9596 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9597
9598         * src/SDCC.lex: fixed bug #1030549
9599
9600 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9601
9602         * src/SDCCcse.h (struct cseDef),
9603         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
9604         over a function call if the CSE is derived from a symbol whose
9605         address has been taken (fixes bug #1029883)
9606         * support/regression/tests/bug-1029883: a new regression test for
9607         this bug
9608
9609 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9610
9611         * src/hc08/gen.c (emitinline): fixed bug #1029778
9612         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
9613         to a cast object is no longer a syntax error ("fixes" bug #1030006,
9614         and starts toward RFE #905167)
9615
9616 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
9617
9618         * src/pic16/gen.c (mov2f): New function to move an operand to
9619         another without considering if it is a literal or a register,
9620         * (pic16_sameRegs): don't check if they are both AOP_REG,
9621         * (AccRsh): removed andmask=0 lines,
9622         * (genLeftShift): duplicated to be improved in future versions,
9623         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
9624         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
9625         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
9626         * (pic16initMnemonics): added initialization for POC_INFSNZW,
9627         * (insertBankSwitch): fixed inserting banksel directives algorithm
9628         for instructions that follow a skip instruction, this fixes a report
9629         for broken subtraction code generation,
9630         * src/pic16/ralloc.c (deassignLRs): do not free register if current
9631         iCode is a left op, just in case result and right share the same
9632         registers
9633
9634 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9635
9636         * src/hc08/main.c,
9637         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
9638         preservation of HX
9639         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
9640         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
9641         on 2004-09-12; it was buggy
9642
9643 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
9644
9645         * src/SDCCsymt.h: removed RESULT_CHECK
9646         * src/SDCCast.c,
9647         * src/SDCCglue.c,
9648         * src/SDCCval.c,
9649         * src/pic/glue.c,
9650         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
9651
9652 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
9653
9654         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
9655         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
9656         configuration values no more rejected by compiler, they are assigned
9657         to configuration registers with a warning message instead,
9658         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
9659         the for-loop so last conf register is emitted too,
9660         * (_pic16_initPaths): link library libsdcc.lib by default,
9661         * (_hasNativeMulFor): modified test for multiplication according to
9662         Raphael Neider's remarks. Integer multiplication is also done with
9663         support functions,
9664         * device/include/pic16/pic18fregs.h: corrected type error in while
9665         testing and including 18f6720 header file
9666
9667 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
9668
9669         * src/pic16/device.h (pic16_options): removed field use_crt,
9670         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
9671         until an optimization to handle single bits is added,
9672         * (pic16_loadFSR0): moved before genUnpackBits,
9673         * (genAnd): some white lines removed,
9674         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
9675         leave_reset flags in pic16_options when using crt modules,
9676
9677 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
9678
9679         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
9680           for bugs 898889 & 979599. Also used some safer print instructions.
9681
9682 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
9683
9684         * src/pic16/device.h (pic16_options_t): added field use_crt,
9685         crt_name, no_crt,
9686         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
9687         catch a probable future bug,
9688         * src/pic16/gen.c: aopIdx function commented out,
9689         * (genAssign): commented out old code which used aopIdx,
9690         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
9691         code, added if conditionals to take into account the --use-crt
9692         command line options,
9693         * src/pic16/main.c (pic16_optionsTable): added new command line
9694         options, --use-crt= and --no-crt,
9695         * (_pic16_linkEdit): now the proper crt object is added in the
9696         linker command line except than when --no-crt is specified,
9697         * src/pic16/pcode.c,
9698         * src/pic16/pcode.h: added some structures and functions for a new
9699         optimization scheme to compansate for instruction overhead between
9700         same iCodes, this scheme is currently under development and is not
9701         working in any way,
9702         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
9703         to && operator,
9704         * device/lib/pic16/startup/crt0i.c,
9705         * device/lib/pic16/startup/crt0iz.c: added global char variable
9706         __uflags to force the generation of an idata section
9707
9708 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
9709
9710         * doc/Makefile,
9711         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
9712         * doc/sdccman.lyx: updated sdcc version to 2.4.4
9713
9714 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9715
9716         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
9717         Frieder) and clarified the default code optimization mode
9718
9719 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9720
9721         * src/SDCC.lex (doPragma, process_pragma),
9722         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
9723         "opt_code_size", and "opt_code_balanced"
9724         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
9725         regrouped options by category, added support for category headers
9726         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
9727         and "--opt-code-size"
9728         * doc/sdccman.lyx: documented these new options and pragmas
9729         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
9730         preference into account
9731
9732 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
9733
9734         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
9735           geniCodePreDec): Fixed bug 904237 by generating a warning
9736         * src/SDCCerr.h,
9737         * src/SDCCerr.c: added warning W_SIZEOF_VOID
9738
9739 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
9740
9741         * src/pic/device.c : When no max ram set validate full memory range.
9742         * src/pic/pcode.c,
9743         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
9744
9745 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
9746
9747         * device/lib/_gptrget.c,
9748         * device/lib/_gptrput.c: updated comment
9749         * device/lib/calloc.c,
9750         * device/lib/free.c,
9751         * device/lib/malloc.c,
9752         * device/lib/realloc.c: added LGPL, made them reentrant-safe
9753         * src/SDCCcse.c (cseBBlock),
9754         * src/SDCCicode.c (printOperand, geniCodeArray),
9755         * src/SDCCicode.h (struct operand): fixed bug 868103
9756         * support/regression/tests/bug-868103.c: added
9757         * src/SDCCast.c (searchLitOp),
9758         * src/SDCCcse.h (struct cseDef),
9759         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
9760         * src/SDCCicode.h (struct operand),
9761         * src/SDCCsymt.h (struct sym_link),
9762         * src/avr/gen.c (hasInc),
9763         * src/ds390/gen.c (hasInc),
9764         * src/hc08/gen.c (genPlusIncr, hasInc),
9765         * src/mcs51/gen.c (hasInc),
9766         * src/pic16/glue.c (pic16_printIvalChar),
9767         * src/pic16/ralloc.c (regWithIdx),
9768         * src/xa51/gen.c (hasInc) : removed warnings
9769         * src/SDCCast.c (createBlock): added comment ???
9770         * src/hc08/ralloc.c: updated comments
9771
9772 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9773
9774         * doc/sdccman.lyx: updated section on switch statements, added
9775         section about semaphore locking
9776         * doc/Makefile: added option -info for latex2html
9777         * device/lib/_gptrget.c,
9778         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
9779
9780 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
9781
9782         * src/pic/device.h,
9783         * src/pic/device.c,
9784         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
9785          maxram is less than 0x100.
9786
9787 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
9788
9789         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
9790
9791 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9792
9793         * src/port.h,
9794         * src/mcs51/main.c,
9795         * src/ds390/main.c,
9796         * src/z80/main.c,
9797         * src/hc08/main.c,
9798         * src/pic/main.c,
9799         * src/pic16/main.c,
9800         * src/avr/main.c,
9801         * src/xa51/main.c
9802         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
9803         a jump table is the best form for a switch statement, including
9804         automatic insertion of missing cases to make the case range
9805         continuous. Developed in collaboration with Frieder Ferlemann.
9806
9807 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9808
9809         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
9810         accumulator result if it needs sign extension
9811
9812 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9813
9814         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
9815
9816 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9817
9818         * device/lib/gbz80/printf.c,
9819         * device/lib/z80/printf.c: removed define for NULL
9820
9821 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9822
9823         * as/xa51/xa_link.c,
9824         * device/examples/ds390/ow390/ad26.c,
9825         * device/examples/ds390/ow390/cnt1d.c,
9826         * device/examples/ds390/ow390/counter.c,
9827         * device/examples/ds390/ow390/ds2480.h,
9828         * device/examples/ds390/ow390/ds2480ut.c,
9829         * device/examples/ds390/ow390/findtype.c,
9830         * device/examples/ds390/ow390/gethumd.c,
9831         * device/examples/ds390/ow390/owllu.c,
9832         * device/examples/ds390/ow390/ownetu.c,
9833         * device/examples/ds390/ow390/swt12.c,
9834         * device/examples/ds390/ow390/swtloop.c,
9835         * device/examples/ds390/ow390/temp.c,
9836         * device/examples/ds390/ow390/temp10.c,
9837         * device/examples/ds390/ow390/thermo21.c,
9838         * device/examples/ds390/ow390/tinilnk.c,
9839         * device/examples/ds390/ow390/tstfind.c,
9840         * device/examples/serialcomm/windows/serial.cpp,
9841         * device/examples/serialcomm/windows/test_serialcomm.cpp,
9842         * device/include/reg51.h: fixed line endings for cvs
9843
9844 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9845
9846         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
9847         packRegsForAccUse, packRegisters): new accumulator register
9848         packing algorithm
9849         * support/regression/ports/hc08/support.c (_putchar): suppress
9850         warning of unused variable
9851         * src/SDCCicode.c: added SWAP entry to codeTable
9852
9853 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
9854
9855         * device/lib/sprintf.c: forgot to add this file before previous commit
9856
9857 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
9858
9859         * src/pic16/gen.c (genPackBits): added operand right in function
9860         parameters, load result directly if p_type is POINTER (that is
9861         called by genNearPointerSet)
9862         * (genUnPackBits): added operand left in function parameters,
9863         * (genNearPointerGet, genNearPointerSet): prevent the loading of
9864         FSR0 if accessing bitfields,
9865
9866 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
9867
9868         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
9869           _print_format; updated printf, sprintf, vsprintf
9870         * device/include/asm/default/features.h: corrected comment/define
9871         * device/lib/Makefile.in: added sprintf.c
9872         * device/lib/libsdcc.lib: added sprintf module
9873         * device/lib/printf_large.c,
9874         * device/lib/vprintf.c,
9875         * device/lib/sprintf.c: totally refactored printf_large and vprintf
9876           into these 3 files
9877         * support/regression/Makefile: changed ALL_PORTS into a usefull default
9878         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
9879         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
9880           hc08 test
9881         * support/regression/tests/zeropad.c: define idata as data for hc08
9882
9883 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9884
9885         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
9886         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
9887         labels are referenced at least once (even if a reference is not found)
9888         * src/hc08/gen.c (emitcode): set isComment flag for comments
9889         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
9890         loads), rules 6a..6b (optimize jumps to return)
9891
9892 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9893
9894         * device/lib/acosf.c (acosf),
9895         * device/lib/asinf.c (asinf),
9896         * device/lib/atanf.c (atanf),
9897         * device/lib/ceilf.c (ceilf),
9898         * device/lib/cosf.c (cosf),
9899         * device/lib/coshf.c (coshf),
9900         * device/lib/cotf.c (cotf),
9901         * device/lib/fabsf.c (fabsf),
9902         * device/lib/floorf.c (floorf),
9903         * device/lib/log10f.c (log10f),
9904         * device/lib/logf.c (logf),
9905         * device/lib/sinf.c (sinf),
9906         * device/lib/sinhf.c (sinhf),
9907         * device/lib/sqrtf.c (sqrtf),
9908         * device/lib/tanf.c (tanf),
9909         * device/lib/tanhf.c (tanhf),
9910         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
9911         replaced all instances of "reentrant" in the library functions
9912         defined in math.h with this macro.
9913         * support/regression/tests/float_trans.c: reenabled test for hc08
9914
9915 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
9916
9917         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
9918         erroneously deleted
9919
9920 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9921
9922         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
9923         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
9924         multi-byte volatile operands are used
9925         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
9926         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
9927         initialization to area GSINIT0 so that it would always precede
9928         any static initializers in GSINIT
9929         * support/regression/tests/zeropad.c: fixed idata define for hc08
9930         * support/regression/tests/bug-927659.c,
9931         * support/regression/tests/float_trans.c: disabled tests for hc08
9932         pending missing library routines
9933         * .version: increased version number to 2.4.4 - hc08 port now passes
9934         regression tests
9935
9936
9937 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
9938
9939         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
9940         * Makefile.common.in,
9941         * as/Makefile,
9942         * as/hc08/Makefile.in,
9943         * as/mcs51/Makefile.in,
9944         * as/z80/Makefile.in,
9945         * debugger/mcs51/Makefile.in,
9946         * device/include/Makefile.in,
9947         * device/lib/Makefile.in,
9948         * doc/Makefile,
9949         * link/Makefile,
9950         * link/z80/Makefile.in,
9951         * packihx/Makefile.in,
9952         * sim/ucsim/main_in.mk,
9953         * sim/ucsim/avr.src/Makefile.in,
9954         * sim/ucsim/doc/Makefile.in,
9955         * sim/ucsim/gui.src/serio.src/Makefile.in,
9956         * sim/ucsim/hc08.src/Makefile.in,
9957         * sim/ucsim/s51.src/Makefile.in,
9958         * sim/ucsim/xa.src/Makefile.in,
9959         * sim/ucsim/z80.src/Makefile.in,
9960         * src/Makefile.in,
9961         * support/cpp2/Makefile.in,
9962         * support/librarian/Makefile,
9963         * support/makebin/Makefile: added DESTDIR to the install path proposed
9964         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
9965         * doc/sdccman.lyx: added DESTDIR documentation
9966
9967 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
9968
9969         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
9970         instruction for interrupt handlers, use fast returns when returning
9971         from high priority interrupts
9972
9973 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9974
9975         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
9976         code generation
9977         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
9978         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
9979         bugs, ported much of Bernhard's code from mcs51
9980         * src/mcs51/gen.c (genSend),
9981         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
9982         than one when calling a reentrant function
9983         * device/lib/_mullong.c: defined an alternate struct layout for big
9984         endian ports (hc08)
9985
9986 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9987
9988         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
9989         test
9990
9991 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9992
9993         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
9994         are sane and complete before asking the port its prefered parameter
9995         passing method (fixes bug #1017633)
9996         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
9997         and _ret3
9998
9999 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10000
10001         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
10002         problem in bitfields >= 8 bits.
10003
10004 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10005
10006         * src/SDCCsymt.c: undid changes that were not meant to be committed
10007
10008 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10009
10010         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
10011
10012 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10013
10014         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
10015           copied and wrong bit got inverted
10016
10017 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10018
10019         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
10020         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
10021         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
10022         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
10023         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
10024         assignments to bitfields at known addresses
10025         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
10026         reads from bitfields at known addresses
10027         * src/hc08/ralloc.c (packRegisters),
10028         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
10029         genhc08Code): optimize pointer get values used as conditionals
10030         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
10031         and branch
10032
10033 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10034
10035         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
10036         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
10037         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
10038         as conditionals
10039
10040 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10041
10042         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
10043
10044 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10045
10046         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
10047         related problems
10048
10049 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
10050
10051         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
10052
10053 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10054
10055         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
10056         mcs51 port
10057
10058 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
10059
10060         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
10061
10062 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10063
10064         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
10065         cases use more compact code.
10066
10067 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
10068
10069         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
10070
10071 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10072
10073         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
10074
10075 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10076
10077         * src/SDCCsymt.h,
10078         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
10079         parameter of changePointer() from symbol* to sym_link*
10080         * src/SDCCast.c (decorateType): call changePointer() for CAST op
10081         * src/SDCCsymt.c (compareType): void* type is castable to other
10082         pointers, but not necesarily an exact match.
10083         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
10084         is no longer blindly treated as an exact match.
10085         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
10086
10087 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
10088
10089         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
10090
10091 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
10092
10093         * src/pic/gen.c,
10094         * src/pic/pcode.c,
10095         * src/pic/ralloc.h,
10096         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
10097
10098 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
10099
10100         * src/pic/device.c,
10101         * src/pic/device.h,
10102         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
10103
10104 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10105
10106         * src/mcs51/gen.c (emitcode): fixed bug #992819
10107
10108 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
10109
10110         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
10111           there's no need to make it worse
10112
10113 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10114
10115         * src/mcs51/ralloc.c (deassignLR),
10116         * src/ds390/ralloc.c (deassignLR),
10117         * src/hc08/ralloc.c (deassignLR),
10118         * src/z80/ralloc.c (deassignLR),
10119         * src/pic/ralloc.c (deassignLR),
10120         * src/pic16/ralloc.c (deassignLR),
10121         * src/avr/ralloc.c (deassignLR),
10122         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
10123         rlivePoint): fixed another part of bug #971834
10124
10125 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10126
10127         * src/z80/main.c: enabled "critical" keyword
10128         * src/z80/mappings.i,
10129         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
10130         functions (fixes bug #979646)
10131         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
10132
10133 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10134
10135         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
10136           such as c:\mydir.
10137
10138 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
10139
10140         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
10141           doesn't disable too much optimizations
10142
10143 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
10144
10145         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
10146
10147 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
10148
10149         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
10150
10151 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
10152
10153         * src/pic/gen.c tidied up tabs
10154         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
10155         * src/pic/main.c tidied up tabs
10156         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
10157         * src/pic/pcoderegs.c tidied up tabs
10158         * src/pic/ralloc.c tidied up tabs
10159
10160 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
10161
10162         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
10163         to S_FIXED for pic16 port and when symbol is not in level 0,
10164         allocate for S_REGISTER storage class and pic16 port, too,
10165         * src/pic16/device.h: prototype for checkSym,
10166         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
10167         * (pic16_assignConfigWordValue): test the value and the mask to
10168         validate that the value is suitable for the configuration word,
10169         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
10170         collect extern declared symbols, don't emit symbol twice, check
10171         first if symbol is in publics set first,
10172         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
10173         * added command line '--fstack' which enables an experimental
10174         feature for stack access, too buggy to be used yet...
10175         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
10176         * (pic16_allocDirReg): when register has storage class S_REGISTER
10177         allocate in pic16_dynAccessRegs,
10178         * device/include/pic16/pic18f????.h: modified configuration word
10179         naming convention, words started as CONFIG0H but should be CONFIG1H
10180
10181 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
10182
10183         * device/include/mcs51reg.h: fixed bug 970993
10184
10185 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
10186
10187         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
10188         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
10189         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
10190         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
10191         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
10192         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
10193           error/warning numbers,
10194           added function setWarningDisabled()
10195         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
10196         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
10197           _memcmp.c _memmove.c calloc.c realloc.c free.c
10198         * support/regression/tests/malloc.c: added tests for new functionality
10199         * support/regression/tests/zeropad.c: added tests for truncated initializers
10200           and initialized char arrays starting with '\x0'
10201         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
10202
10203 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
10204
10205         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
10206
10207 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10208
10209         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
10210         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
10211         peephole 177.e. Thanks to anonymous
10212
10213 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
10214
10215         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
10216         function isn't used in the source but referenced as a
10217         variable initializer then declare it as extern in .asm file
10218
10219 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
10220
10221         * .version: increased version number to 2.4.3
10222
10223         Adding version extension according to ChangeLog CVS revision
10224         * src/Makefile.in (target all): added dependency 'version.h'
10225         * (rule version.h): added rule to create version.h from ChangeLog,
10226         * (rule dep): added dependency version.h,
10227         * src/version.awk: AWK script to create version.h
10228         * src/SDCCdwarf2.c (dwWriteModule),
10229         * src/SDCCglue.c (initialComments),
10230         * src/SDCCmain.c (printVersionInfo): modified to write after
10231         version string the version extension number,
10232         * src/SDCCutil.c: included "version.h"
10233         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
10234         number,
10235         * src/SDCCutil.h: added prototype for getBuildNumber
10236
10237         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
10238         includeDirsSet, too,
10239         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
10240         const char [] is found in function prototype...
10241
10242         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
10243         moving to WREG with source is already in WREG,
10244         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
10245         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
10246         * (aopForSym): stack'ed symbols are partially supported, added
10247         if-clause to support symbols in FARSPACE,
10248         * (sameRegs): added test for AOP_ACC to see if registers are same,
10249         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
10250         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
10251         * (pic16_popRegFromString): will not allocate a new register if it
10252         doesn't find one by name, bug may have introduced...
10253         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
10254         * (genIpush): revived to use pic16 port's stack,
10255         * (genAddrOf): added incomplete case for stack'ed operand,
10256         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
10257         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
10258         can handle multibyte operands,
10259         * src/pic16/glue.c (pic16_printIval*): some debug info added,
10260         * (pic16initialComments): added message for MPLAB compatibility
10261         mode enabled,
10262         * src/pic16/main.h: prototype for pic16_mplab_comp,
10263         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
10264         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
10265         * (_pic16_linkEdit): NEW, handles link stage, transferred here
10266         because of increased complexity of procedure,
10267         * (_process_pragma): stack pragma changed to format 'stack pos len',
10268         emit symbol '_stack_end' to conform with gplink,
10269         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
10270         to search for register,
10271         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
10272         PO_GPR_REGISTER,
10273         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
10274         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
10275         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
10276         case for PO_GPR_REGISTER,
10277         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
10278         dies, the new era is ahead !...
10279         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
10280         pic16_dynInternalRegs,
10281         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
10282         * (pic16_allocDirReg): minor optimizations and bug fixes,
10283         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
10284
10285         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
10286         load stack and frame pointer with address of 'stack_end' symbol
10287
10288 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
10289
10290         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
10291         without source code but only variable initializers
10292
10293 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
10294
10295         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
10296         external are not declared as extern to reduce overhead while linking
10297
10298 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
10299
10300         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
10301
10302 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
10303
10304         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
10305           Yee Keat for the patch
10306         * src/SDCCast.c (decorateType): fixed bug #979599
10307         * src/ds390/gen.h: removed local fReturnSizeDS390
10308         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
10309         * src/ds390/gen.c (genAnd, genOr, genXor),
10310         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
10311
10312 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
10313
10314         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
10315         add relFilesSet to $3, manipulate $2 to handle linking of object
10316         files without source files in command line,
10317         * device/include/pic16 (all headers): added ID location macros,
10318         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
10319         entries for ID location bytes,
10320         * (pic16_assignIdByteValue): NEW,
10321         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
10322         added field dumpcalltree to pic16_options_t,
10323         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
10324         is used instead of pic16_Gstack_base_addr, check if (ifx) before
10325         emitting rFalseIfx label after check_carry label,
10326         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
10327         pic16_emitDIRegs), NEW
10328         * (pic16glue): dump .calltree file when option --calltree found,
10329         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
10330         * (_pic16_genAssemblerPreamble): emit ID locations after
10331         configuration registers,
10332         * (pic16_linkCmd): modifications of the link command,
10333         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
10334         * (pic16_pCodeInitRegisters): don't init stack registers,
10335         * (pic16_findPrevInstruction): fixed bug,
10336         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
10337         bug with immediate registers,
10338         * (buildCallTree): traces stack push and pop,
10339         * (pct2): dump also stack usage for each function,
10340         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
10341         * (pic16_allocDirReg): various modifications,
10342         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
10343         fixed to 1,
10344
10345 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
10346
10347         * src/pic16/pcode.c: removed buggy double colon
10348
10349 2004-07-01 Borut Razem <borut.razem AT siol.net>
10350
10351         * support/scripts/sdcc.nsi: added include/pic16 to setup
10352
10353 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
10354
10355         * device/lib/Makefile.in: fixed bug in target objects-pic16,
10356         * device/lib/pic16/Makefile: prefixed with dash (-) command under
10357         target 'clean',
10358         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
10359         specific command line arguments. Also added sample lkr script
10360         for placing a variable at a specific memory bank.
10361         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
10362         at a specific memory bank,
10363         * (pic16_dump_isection): fixed bug which caused string literals to
10364         be omitted when dumping idata section,
10365         * (pic16_groupRegistersInSection): added code to handle registers
10366         in specific memory banks,
10367         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
10368         public, all references are renamed too,
10369         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
10370         AOP_DPTR2,
10371         * (pic16_storeForReturn): added case to handle when dest is WREG,
10372         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
10373         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
10374         pic16_rel_udata, check to see if that register is marked as being
10375         a member of a specific memory bank,
10376         * (pic16_printIvalCharPtr): added code to add string literals either
10377         to code or the idata sections,
10378         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
10379         also accept the 'udata' pragma,
10380         * src/pic16/main.h: new structure types sectName and sectSym
10381         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
10382         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
10383         * (pic16_findPrevInstruction): fixed, it returned nothing,
10384         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
10385         instruction combinations,
10386         * (pic16_FixRegisterBanking): heavily reorganised,
10387         * (pic16_AnalyzeBanking): if generating banksel directives is
10388         disabled, then don't call FixRegisterBanking at all,
10389         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
10390         completely removed,
10391         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
10392
10393 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
10394
10395         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
10396         Phuah Yee Keat <yk.phuah AT nestac.com>
10397
10398 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
10399
10400         * src/pic16/glue.c (pic16createInterruptVect): function now emits
10401         correctly the IVT even if it is relocated to some other location
10402
10403 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
10404
10405         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
10406         * device/include/pic16/pic18f2220.h: NEW,
10407         * device/lib/pic16/libdev/pic18f2220.c: NEW,
10408         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
10409         * src/pic16/device.c (struct Pics16): added info for 18f2220,
10410         * src/pic16/device.h (struct pic16_options): added ivt_loc and
10411         nodefaultlibs, ivt_loc is the location of the interrupt vector
10412         table, and nodefaultlibs signs that default libraries should not be
10413         linked in link stage,
10414         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
10415         according to --ivt-loc argument,
10416         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
10417         when pragma stack is found,
10418
10419 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10420
10421         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
10422         256 (range check), 257 (do while), 258.a-f (bit banging
10423         f.e. on 3-wire SPI bus)
10424
10425 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10426
10427         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
10428         variables used exclusively within a loop
10429
10430 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
10431
10432         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
10433
10434 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10435
10436         * src/SDCClrange.c (computeClash): fixed bug #971834
10437
10438 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10439
10440         * src/mcs51/gen.c (genCmp): fixed bug #975903
10441         * src/hc08/gen.c (operandsEqu),
10442         * src/ds390/gen.c (operandsEqu),
10443         * src/z80/gen.c (operandsEqu),
10444         * src/pic/gen.c (operandsEqu),
10445         * src/pic16/gen.c (operandsEqu),
10446         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
10447         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
10448
10449 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10450
10451         * src/SDCCcse.c (cseBBlock): fixed bug #966963
10452
10453 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
10454
10455         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
10456         default case in switch statement,
10457         * glue.c (pic16_initPointer): expr is initialised via decoarteType
10458         to eliminate problem with initialisation of pointers, but problem
10459         still exists,
10460         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
10461         * (emitStaticSegment): removed various lines emitting debug info,
10462         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
10463         added processor registers for utilizing EEPROM,
10464         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
10465         configurable and set 8
10466
10467 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
10468
10469         * .version: increased version number to 2.4.2,
10470
10471         Cumulative patch for pic16 port
10472         * src/pic16/device.c: changed scheme to dump initial values for
10473         variables in idata segment, all print_idata* functions were removed,
10474         now the pic16_printIval* will be called,
10475         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
10476         * _pic16_printPointerType, pic16_printPointerType,
10477         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
10478         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
10479         NEW, similar to the respective functions in SDCCglue.c,
10480         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
10481         way, emitting hex bytes,
10482         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
10483
10484 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10485
10486         * src/avr/ralloc.c (serialRegAssign),
10487         * src/xa51/ralloc.c (serialRegAssign),
10488         * src/pic/ralloc.c (serialRegAssign),
10489         * src/pic16/ralloc.c (serialRegAssign),
10490         * src/hc08/ralloc.c (serialRegAssign),
10491         * src/z80/ralloc.c (serialRegAssign),
10492         * src/ds390/ralloc.c (serialRegAssign),
10493         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
10494
10495 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10496
10497         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
10498         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
10499
10500 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
10501
10502         Cumulative patch for pic16 port:
10503         * src/pic16/device.h (typedef PIC16_device) modified fields for
10504         defining microcontrollers,
10505         * src/pic16/device.c: added new info for all devices in Pics16 array,
10506         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
10507         to be optimised out by the pCode optimiser,
10508         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
10509         specially, bug reported by G.M. Gallant,
10510         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
10511         as force'd so that cannot be optimised out by pCode optimiser,
10512         * src/pic16/pcode.c,
10513         * src/pic16/pcodepeeph.c,
10514         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
10515         they are disabled by default, but can be enabled explicit with
10516         command argument --denable-peeps, for testing,
10517         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
10518         --pomit-ivt in COMPILE_FLAGS
10519
10520 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
10521
10522         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
10523           compilation on MSVC
10524
10525 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
10526
10527         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
10528
10529 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10530
10531         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
10532         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
10533
10534 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
10535
10536         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
10537         would only assign 0x300001 register.
10538
10539 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
10540
10541         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
10542         in COMPILE_FLAGS. Thanks to G. Gallant for report.
10543
10544 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10545
10546         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
10547         for ds80c400
10548         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
10549         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
10550         added peephole 254 (left shift), 255 (jump table)
10551
10552 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
10553
10554         * device/lib/Makefile.in: removed comment line with model-pic16,
10555         * (target port-specific-objects-pic16): the libraries and objects
10556         are copied to the build directory form the device/lib/pic16/bin
10557         directory
10558
10559         Cumulative patch concerning pic16 port:
10560         * library directory has been re-organized,
10561         * added support for PIC18F1220,
10562         * added headers and library sources for chips 18f1220,18f6520,
10563         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
10564
10565         * configuration registers setting has changed, now each supported
10566         device has a complete description of the registers it uses,
10567         * all initialisations are moved to idata sections, these section
10568         can be absolute or relocatable,
10569         * fixed initialisation of codespace variables,
10570         * fixed warning about PCLATU and gpsim,
10571         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
10572         * (genAssign): use table reads when assigning from variables in codespace,
10573         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
10574         char/int variables placed in codespace,
10575         * (pic16_emitConfigRegs): NEW, emits a list with configuration
10576         registers set in .asm file, no need for --pomit-config-words anymore,
10577         * (pic16glue): some 8051 legacy segments are commented out
10578         (to be removed completely),
10579         * added support for alternative assembler and linker with --asm=
10580         and --link= command line arguments,
10581         * peepholes are disabled automatically in the port, no need to
10582         specify on command line,
10583         * port supports natively char/int/long multiplication, but converts
10584         all divisions to support functions,
10585         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
10586         to the file set in variable $2,
10587         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
10588         strings in ASCII format and not in hex,
10589         * ralloc.c (serialRegAssign): added a triplet of conditional calls
10590         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
10591         allocate proper register if iCodes aren't temporary,
10592
10593 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
10594
10595         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
10596
10597 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
10598
10599         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
10600         is commented out
10601
10602 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10603
10604         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
10605         computed address is reused
10606         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
10607         multi-byte bitfields
10608
10609 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
10610
10611         * src/z80/gen.c: (genArrayInit): must check for pointers too
10612
10613 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
10614
10615         * support/regression/tests/zeropad.c: never meant to commit the
10616           nestedstruct test: removed, added check for GCC version
10617
10618 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
10619
10620         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
10621         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
10622         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
10623           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
10624           bugs 928906 and 954082 half-empty initializers
10625         * src/SDCCsymt.h,
10626         * src/SDCCsymt.c (getAllocSize): added for above fix
10627         * src/z80/gen.c (genArrayInit): fixed bug 741044
10628         * support/regression/tests/zeropad.c: added tests
10629
10630 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
10631
10632         * src/pic16/device.c (pic16_dump_section): corrected bug which
10633         caused some symbols of the libraries to be misplaced
10634
10635 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
10636
10637         * src/pic16/glue.c,
10638         * src/pic16/ralloc.h,
10639         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
10640         to fix conflict with pic port
10641
10642 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
10643
10644         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
10645         externs configuration variables,
10646         * src/pic16/ralloc.h,
10647         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
10648         prototype in header, commented out some debug messages
10649
10650 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
10651
10652         * src/pic16/glue.c,
10653         * src/pic16/main.c,
10654         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
10655         for gpasm COFF object generation. Thanks to D. Hawkins for
10656         his patch info
10657
10658 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10659
10660         * src/ds390/main.c,
10661         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
10662         Brock for spotting this)
10663         * src/ds390/gen.c (genEndFunction),
10664         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
10665         interrupt handler and critical. Disable push/pop optimizations when
10666         peephole optimizations disabled.
10667
10668 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
10669
10670         Updated pic16 library sources and headers.
10671         * device/lib/pic16/pic18f*/ ,
10672         * device/include/pic16/*.h: modified to handle structured SFR
10673         definitions
10674
10675 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
10676
10677         * src/port.h (PORT structure): added hook initPaths, now each
10678         port can declare its own default search paths,
10679         which can been seen with the --print-search-dirs option,
10680         see pic16 port for example,
10681         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
10682         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
10683         * (doPrintSearchDirs): NEW, replaces in a central manner the
10684         printing of search dirs which was split in set*Paths functions,
10685         * (main): added call to port->initPaths and doPrintSearchDirs,
10686         * src/avr/main.c,
10687         * src/ds390/main.c,
10688         * src/hc08/main.c,
10689         * src/izt/i186.c,
10690         * src/izt/tlcs900h.c,
10691         * src/mcs51/main.c,
10692         * src/pic/main.c,
10693         * src/pic16/main.c: modified port structures to reflect addition of
10694         initPaths hook,
10695
10696         * src/pic16/device.c (regCompare): registers are finally sorted by name,
10697         * (pic16_dump_section): for registers in same address reserve memory once,
10698         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
10699         to no_banksel,
10700         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
10701         result is greater in size than right or left,
10702         * (pic16_genUMult8X8_8): there are some cases where the result can
10703         be 16 bits size, so handle these,
10704         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
10705         * (pic16_outBitC): modified to emit pcodes,
10706         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
10707         or not,
10708         * (genDivOneByte): implemented algorithm to divide 8-bits,
10709         * (genCmp): uncommented goto, but issues still exist,
10710         * (genAnd): fixed a bug with variables >8bits,
10711         * (genPackBits): optimization added that uses BCF/BSF to change a
10712         single bit,
10713         * (genAssign): fixed bug when assigning floating point literals,
10714         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
10715         __sdcc_gsinit_startup label,
10716         * src/pic16/main.c (_pic16_init): removed search directory
10717         initialisations,
10718         * (_pic16_initPaths): NEW, used to initialise search directories,
10719         * (_hasNativeMulFor): support functions for all except char/int
10720         multiplication, and char division,
10721         * (PIC16_port struct): modified entry for native mul support,
10722         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
10723         no_banksel option,
10724         * (buildCallTree): call to register_usage is ifdef'ed out,
10725
10726 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10727
10728         * device/include/string.h: applied Stas Sergeev's patch to make this
10729         header file compatible with the preprocessor -Wundef option
10730         * src/SDCCmain.c (main): abort compilation if preprocessor reports
10731         failure (fixes bug #941458)
10732
10733 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10734
10735         * src/SDCCopt.c (killDeadCode): fixed bug #907733
10736         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
10737         that the variable, not the function, should be static
10738         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
10739         to be consistent with non-literal case
10740
10741 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10742
10743         * src/SDCCast.c (isConformingBody): fixed bug #949967
10744         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
10745         convilong): fixed bug #952086
10746
10747 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10748
10749         * src/SDCCmem.c (allocVariables): fixed bug #955321
10750
10751 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10752
10753         * src/hc08/main.c (_hc08_genAssemblerEnd),
10754         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
10755         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
10756         completely eliminated the use of a temporary file
10757         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
10758         when more than one file linked
10759         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
10760
10761 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10762
10763         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
10764         which fixes bug #543481
10765         * support/regression/tests/bug-751703.c: fixed comments left from a
10766         cut and paste error
10767         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
10768         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
10769         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
10770         scopes
10771         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
10772         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
10773         are now changed to underscores in moduleName
10774
10775 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10776
10777         * as/mcs51/lkmem.c: better fix for bug #954173
10778
10779 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
10780         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10781
10782         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
10783         * device/include/c8051f000.h,
10784         * device/include/c8051f120.h,
10785         * device/include/c8051f300.h,
10786         * device/include/c8051f310.h,
10787         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
10788         PWM16) and detab'ed
10789
10790 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10791
10792         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
10793         and mailing lists, doc'ed --no-peep-comments, removed reference
10794         to knoppix (newest version has no LyX/LaTeX), other minor changes
10795         * src/SDCCglue.c (glue): save 2 bytes stack space with
10796         option --main-return. The ljmp could probably be avoided too
10797
10798 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10799
10800         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
10801
10802 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10803
10804         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
10805         * src/SDCCopt.c (isLocalWithoutDef),
10806         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
10807         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
10808         (credit to Maarten Brock for patch #949363, on which this is based)
10809         * support/regression/tests/bug-751703.c: some test cases of extern used
10810         within inner scopes.
10811
10812 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10813
10814         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
10815         SPEC_STRUCT
10816         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
10817         struct definitions
10818         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
10819         dwWriteLabel): fix to create valid debugger symbols even when
10820         the module name has non-alphanumeric symbols in it
10821         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
10822         when a variable's allocation has been optimized away
10823
10824
10825 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10826
10827         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
10828         * src/hc08/main.c,
10829         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
10830         * src/mcs51/main.c,
10831         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
10832         * src/ds390/main.c,
10833         * src/z80/gen.c (z80_emitDebuggerSymbol),
10834         * src/z80/main.c,
10835         * src/pic/gen.c (pic14_emitDebuggerSymbol),
10836         * src/pic/main.c,
10837         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
10838         * src/pic16/main.c,
10839         * src/avr/gen.c (avr_emitDebuggerSymbol),
10840         * src/avr/main.c,
10841         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
10842         * src/xa51/main.c,
10843         * src/SDCCdebug.c (emitDebuggerSymbol),
10844         * src/SDCCdebug.h,
10845         * src/port.h: added a debugger struct to the port struct. Added a
10846         callback for defining debugger symbols
10847
10848         * src/SDCCast.c (createLabel),
10849         * src/SDCC.y (labeled_statement): mark all compiler generated labels
10850         with isitmp = 1
10851         * src/SDCCicode.h,
10852         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
10853         iCode back to the ast for the function
10854
10855         * src/hc08/ralloc.c (hc08_assignRegisters),
10856         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
10857         unneeded fields from the regs struct.
10858         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
10859         pushReg() & pullReg() functions instead of emitcode()
10860
10861         * src/hc08/gen.c (genLabel, genhc08Code),
10862         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
10863
10864         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
10865         debugger hooks
10866
10867         * src/hc08/gen.c (genEndFunction, genhc08Code),
10868         * src/hc08/gen.h,
10869         * src/mcs51/gen.c (genEndFunction, gen51Code),
10870         * src/mcs51/gen.h,
10871         * src/ds390/gen.c (genEndFunction, gen390Code),
10872         * src/ds390/gen.h,
10873         * src/z80/gen.c (genEndFunction, genZ80Code),
10874         * src/z80/gen.h,
10875         * src/z80/z80.h,
10876         * src/pic/gen.c (genEndFunction, genpic14Code),
10877         * src/pic/gen.h,
10878         * src/pic16/gen.c (genEndFunction, genpic16Code),
10879         * src/pic16/gen.h,
10880         * src/avr/gen.c (genEndFunction, genAVRCode),
10881         * src/avr/gen.h,
10882         * src/xa51/gen.c (genEndFunction, genXA51Code),
10883         * src/xa51/gen.h,
10884         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
10885         specific code to cdbFile.c and out of the backend code generators
10886
10887         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
10888         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
10889         starting address is now 0
10890
10891         * as/hc08/asm.h,
10892         * as/hc08/m08pst.c,
10893         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
10894         assembler directive for DWARF support
10895         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
10896
10897         * src/src.dsp,
10898         * src/Makefile.in,
10899         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
10900
10901 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10902
10903         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
10904         and inappropriate peephole optimization in jump tables
10905
10906 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10907
10908         * as/hc08/m08pst.c,
10909         * src/SDCCglue.c: sdccopt works for the hc08 port now
10910
10911 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
10912
10913         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
10914
10915 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10916
10917         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
10918
10919 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10920
10921         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
10922         rules
10923         * src/SDCCmain.c,
10924         * src/SDCCglobl.h,
10925         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
10926         comments from the peephole optimizer replacement rules
10927         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
10928         symbols
10929         * src/SDCCcse.c (updateSpillLocation),
10930         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
10931         equivalents
10932         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
10933         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
10934         objects far pointers
10935
10936 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10937
10938         * src/SDCCsymt.h: a missing part of my last change
10939         * src/pic/ralloc.c (regTypeNum),
10940         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
10941
10942 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10943
10944         * src/SDCCicode.h,
10945         * src/SDCCicode.c (aggrToPtrDclType),
10946         * src/SDCCptropt.h,
10947         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
10948         ptrPseudoSymConvert),
10949         * src/pic/ralloc.c (regTypeNum),
10950         * src/pic16/ralloc.c (regTypeNum),
10951         * src/hc08/ralloc.c (regTypeNum),
10952         * src/ds390/ralloc.c (regTypeNum),
10953         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
10954         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
10955
10956 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10957
10958         * link/z80/lkmain.c (afile),
10959         * as/hc08/lkmain.c (afile),
10960         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
10961         prevent a pointer problem when a filename has no directory and
10962         no extension specified.
10963
10964 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10965
10966         * link/z80/lkmain.c (afile): allow periods in directory names
10967         * link/z80/lkmain.c (afile),
10968         * as/mcs51/lkmain.c (afile),
10969         * as/hc08/lkmain.c (afile): allow linker script file to have an
10970         extension other than ".lnk"
10971         * link/z80/lklex.c (getfid),
10972         * link/z80/lkmain.c (parse),
10973         * as/mcs51/lklex.c (getfid),
10974         * as/mcs51/lkmain.c (parse),
10975         * as/hc08/lklex.c (getfid),
10976         * as/hc08/lkmain.c (parse): Support comments in the linker script
10977         file on lines by themselves and after filenames
10978
10979 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10980
10981         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
10982
10983 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10984
10985         * src/z80/peeph-z80.def: removed some peephole rules that don't
10986         work with multibyte arithmetic (fixed bug #937126)
10987         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
10988         to registers and not global variables
10989         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
10990         geniCodePreInc, geniCodePostDec, geniCodePreDec,
10991         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
10992         checking for assignments not internally generated (fixed bug #931895)
10993         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
10994         structure member (fixed bug #930072)
10995
10996 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10997
10998         * src/SDCCmain.c (linkEdit),
10999         * src/hc08/main.c (_hc08_parseOptions),
11000         * as/hc08/Makefile.in,
11001         * as/hc08/aslink.h,
11002         * as/hc08/asm.h,
11003         * as/hc08/m08pst.c,
11004         * as/hc08/lkrloc.c (relr, rele),
11005         * as/hc08/lkarea.c (lnkarea)
11006         * as/hc08/lkmain.c (afile, parse),
11007         * as/hc08/lkelf.c: support for ELF output
11008         * as/hc08/lks19.c (s19),
11009         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
11010
11011 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11012
11013         * as/mcs51/lkihx.c: Fixed bug #899105.
11014
11015 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11016
11017         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
11018         .dsp files from Unix to DOS.
11019
11020 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11021
11022         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
11023         function pointers; we have been compliant for several months now.
11024         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
11025         change that was accidently commented out
11026         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
11027         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
11028         bug #922319
11029
11030 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11031
11032         * src/hc08/gen.c: output of all of the internal debugging information
11033         is now controlled by the D() macro; it is disabled by default
11034
11035 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11036
11037         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
11038         harder to keep the same registers during a CAST iCode
11039         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
11040         long via int can be done in a single cast, if the signedness is
11041         correct.
11042         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
11043         putchar() in tinibios.c in ds390's library
11044
11045 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
11046
11047         * src/SDCCast.c (decorateType): fixed bug #898889,
11048         cast result of a literal complement too
11049         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
11050         fixed check for bitfields
11051
11052 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
11053
11054         * src/SDCCicode.c (geniCodeLogic): made it static,
11055         (geniCodeLogicAndOr): added in order to fix bug #905492,
11056         (ast2iCode): fixed bug #905492
11057         * support/regression/tests/bug-905492.c: added
11058         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
11059         (processParms): fixed bug #927659: don't copy parms, this will clear
11060         decorated flag
11061         * support/regression/tests/bug-927659.c: added
11062
11063 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
11064
11065         * src/SDCCast.c (addCast): don't cast float to char
11066         * device/lib/libsdcc.lib: added _memmove
11067
11068 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
11069
11070         * device/lib/large/Makefile: fixed parallel execution by
11071         replacing `make` by `$(MAKE)`
11072
11073 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11074
11075         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
11076         offsets (fixes bug #923936)
11077
11078 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
11079
11080         * device/lib/small/Makefile: fixed parallel execution by
11081         replacing `make` by `$(MAKE)`
11082
11083 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
11084
11085         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
11086
11087 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
11088
11089         * src/pic/gen.c (genCpl): multi-byte complements were not working.
11090         * src/regression/Makefile: Regression test was not running.
11091
11092 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
11093
11094         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
11095         complement if possible
11096         * src/SDCCval.c (valComplement),
11097         * src/SDCCicode.c (operandOperation): fixed complement of literal
11098         * support/regression/tests/onebyte.c (testComplement): added
11099
11100 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
11101
11102         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
11103         return an optimized tree; actually replace actParm with the new tree
11104         * src/SDCCast.h: added some parantheses to remove side effects
11105         * support/regression/tests/bug-920866.c
11106
11107 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
11108         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
11109         Bit operands were not being handled properly in the pic14 port.
11110         (now src/regression/add.c passes again).
11111
11112 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11113
11114         * src/SDCC.y (labeled_statement): case and default no longer require
11115         a following statement (RFE #893037)
11116
11117 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11118
11119         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
11120         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
11121         disabled (fixes bug #916294)
11122         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
11123         "mov a,acc"; patch provided by Lenny Story
11124         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
11125
11126 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11127
11128         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
11129         functions
11130         * src/ds390/gen.c (genFunction, genEndFunction),
11131         * src/ds390/ralloc.c (ds390_assignRegisters),
11132         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
11133         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
11134         pushed if there are parameters passed on the stack. Also, a cleaner
11135         way to decide if r0/r1 should be pushed/popped. (Together they fix
11136         bug #918693)
11137
11138 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11139
11140         * doc/sdccman.lyx,
11141         * device/lib/mcs51/crtpagesfr.asm,
11142         * device/lib/mcs51/crtxinit.asm,
11143         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
11144         to avoid confusion with Si Lab's SFRPAGE register.
11145
11146 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11147
11148         * src/SDCCglue.c (emitMaps): allow public sfr variables
11149         * src/SDCCglue.c (initialComments): include compiler build date
11150         with compiler version and put the timestamp of the generated
11151         assembly file on a serperate line to be less confusing.
11152         * src/port.h: added genInitStartup hook
11153         * src/avr/main.c,
11154         * src/ds390/main.c,
11155         * src/hc08/main.c,
11156         * src/pic/main.c,
11157         * src/pic16/main.c,
11158         * src/xa51/main.c,
11159         * src/z80/main.c: genInitStartup initialize as NULL (default to
11160         historical behaviour)
11161         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
11162         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
11163         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
11164         library instead of hard coding it into the compiler.
11165         * support/regression/ports/mcs51-stack-auto/spec.mk,
11166         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
11167         * device/lib/mcs51/Makefile,
11168         * device/lib/small/Makefile,
11169         * device/lib/large/Makefile,
11170         * device/lib/mcs51/crtpagesfr.asm,
11171         * device/lib/mcs51/crtstart.asm,
11172         * device/lib/mcs51/crtxclear.asm,
11173         * device/lib/mcs51/crtxinit.asm,
11174         * device/lib/mcs51/crtclear.asm,
11175         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
11176         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
11177         and into user configurable files.
11178         * device/lib/clean.mk: clean mcs51 directory too
11179         * support/regression/tests/longlit.c: added static to T1 declaration
11180         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
11181         accesses in the initialization code
11182
11183 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11184
11185         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
11186         OSCTRIMVAL as noted in bug #916008
11187
11188 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11189
11190         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
11191         in loops with multiple exits (reported as incorrect registers
11192         used by Martin Helmling in Sdcc-user list)
11193
11194 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11195
11196         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
11197         made ds390 register extensions look less like error messages
11198
11199 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11200
11201         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
11202         reported by Adam Wozniak in Sdcc-user list
11203
11204 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
11205
11206         * src/SDCCast.c (decorateType): fixed with bug and promotion in
11207         arithmetic optimizations, added debug output
11208
11209 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
11210
11211         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
11212         * sdcc.spec: updated and split sdcc into 3 rpms
11213         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
11214         needed for literals of LEFT_OP and '+'
11215         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
11216         introduced RESULT_TYPE_NOPROM
11217         (geniCodeMultiply): fixed logic for decision if mul is optimized to
11218         left shift
11219         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
11220         limited promotion to int only for '*'
11221         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
11222
11223 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
11224
11225         * src/pic16/gen.c (genSkip),
11226         (genc16bit2lit), (gencjneshort): commented out
11227         (is_LitOp): new helper function, checks operand type
11228         (genCmpEq): rewritten
11229
11230 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
11231
11232         * support/regression/tests/bug-908454.c: added
11233
11234 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
11235
11236         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
11237         * src/SDCCicode.c (usualBinaryConversions): op needs int type
11238         (geniCodeCast): cosmetic, don't preserve bit storage class
11239         (geniCodeLeftShift): added promotion
11240         (geniCodeLogic): fixed regression
11241         * src/SDCCsymt.c (computeTypeOr): accept bits too
11242         (compareType): 2nd part of fix for bug #908454, needed for bitfields
11243
11244 2004-03-07  Borut Razem <borut.razem AT siol.net>
11245
11246         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
11247
11248 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
11249
11250         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
11251         version of pic16_genPackRegisters which does not check if ic is a
11252         CAST operator,
11253         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
11254         function cause string1.c regression test fails
11255
11256 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
11257
11258         * sim/ucsim/configure.in,
11259         * sim/ucsim/configure,
11260         * sim/ucsim/doc/Makefile.in: use docdir
11261         * src/SDCC.y: fixed sbit atrributes
11262         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
11263         * src/SDCCast.c (decorateType): |^& need special promotion handling
11264         * src/SDCCast.h,
11265         * src/SDCCsymt.h: moved definition of RESULT_TYPE
11266         * src/SDCCsymt.h (computeType),
11267         * src/SDCCicode.c: computeType() needs op
11268         * src/SDCCsymt.c (checkTypeSanity),
11269         * doc/sddman.lyx: "plain" bitfields are unsigned
11270         * src/SDCCsymt.c (computeTypeOr): added
11271         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
11272         |^& ops
11273         * src/SDCCval.c (val*): computeType() needs op
11274         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
11275         * support/regression/tests/onebyte.c: added tests for |^&
11276
11277 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
11278
11279         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
11280         for writing icode into asm output.
11281
11282 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
11283
11284         * src/pic16/device.c: added some debug lines enabled
11285         with macro DEBUG_CHECK,
11286         * src/pic16/genarith.c: more debug in genPlus,
11287         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
11288         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
11289         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
11290         * (aopForSym): onStack symbols are re-placed in data memspace,
11291         and onStack flag is cleared,
11292         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
11293         copy temporary pcodeop,
11294         * (genPcall): added warning for not updating PCLATU,
11295         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
11296         always true for pic16 port,
11297         * (genMultOneWord): NEW, supports integer multiplication,
11298         * (genMult): modified to call genMultOneWord,
11299         * (ifxForOp): added warning when return NULL,
11300         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
11301         flag is set before call to operandFromSymbol for implicit
11302         added structures,
11303         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
11304         options.intlong_rent are set by default,
11305         * (_hasNativeMulFor): modified to allow port generation of integer
11306         multiplication,
11307         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
11308         set regtype to REG_SFR for all registers, restricting seting the
11309         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
11310
11311 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11312
11313         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
11314         more than 500 times in the regression tests
11315
11316 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11317
11318         * support/Util/SDCCerr.h,
11319         * support/Util/SDCCerr.c,
11320         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
11321         enumerator_list),
11322         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
11323         for symbol conflicts.
11324         * support/valdiags/tests/enum.c,
11325         * support/valdiags/tests/tentdecl.c,
11326         * support/valdiags/tests/struct.c: expect possible error messages
11327         referring to original symbol definitions.
11328         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
11329         * src/SDCCsymt.h,
11330         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
11331
11332 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
11333
11334         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
11335
11336 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
11337
11338         * src/pic16/ralloc.c (newReg): fixed bug #908929
11339
11340 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11341
11342         * src/ds390/gen.c: added missing #include "main.h"
11343
11344 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
11345
11346         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
11347         checking if symbol is already in set,
11348         * src/pic16/device.h: prototype for checkAddSym,
11349         * src/pic16/gen.c: (_G): added entry interruptvector,
11350         * (assignResultValue): removed some commented out lines,
11351         * (genFunction): check for ISR via sym->type, absolute section for
11352         interrupt code is created via a new pBlock, the goto instruction is
11353         placed now correctly at the interrupt vector position, changed all
11354         references from ivec to _G.interruptvector,
11355         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
11356         is the interrupt is a high priority one, same for return from ISR,
11357         * src/pic16/glue.c: changed all calls of addSetHead for publics and
11358         externs to calls of checkAddSym,
11359         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
11360         pic16_pcode_verbose flag is set,
11361         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
11362         * src/pic16/pcoderegs.c: message about how many registers are saved
11363         will only be emitted if pic16_pcode_verbose flag is set,
11364
11365 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11366
11367         * src/ds390/ralloc.h,
11368         * src/ds390/ralloc.c (ds390_regWithIdx),
11369         * src/ds390/gen.c (emitcode),
11370         * src/ds390/main.h,
11371         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
11372         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
11373         ds390operandCompare, getRegsRead, getRegsWritten,
11374         initializeAsmLineNode): customized instruction size calculation for
11375         ds390, started basis for some register optimizations
11376         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
11377         corresponding assembly output
11378         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
11379         missing push/pop of r0/r1. Optimized push/pops
11380
11381 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11382
11383         * src/mcs51/main.c (instructionSize): fixed ACALL size
11384         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
11385
11386 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
11387
11388         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
11389         the sorting of rlist with NULL elements
11390         * (print_idataType, print_idata): NEW to create idata sections
11391         * src/pic16/device.h: idataSymSet new variable
11392         * src/pic16/gen.c (genFunction): fixed some bugs in string
11393         comparing, improved the absolute section creation for ISRs,
11394         added FSR0L/FSR0H in registers that are saved in an ISR,
11395         * (genInline): fixed the processing of inline snippets,
11396         now they undergo no process by the peephole optimizer
11397         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
11398         are placed in idataSymSet,
11399         * (pic16emitStaticSeg): extern symbols are added in externs,
11400         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
11401         switching when aboslute variables are placed in access bank memory
11402         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
11403         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
11404         commented out with #if,
11405         * (pic16_packRegisters): reintroduce the check for CAST because some
11406         symbols are not correctly handled,
11407         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
11408         pCodeInstruction instead of pCode,
11409         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
11410         pCodeAsmDir definition,
11411         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
11412         directive, then the argument directive is emitted without the leading
11413         tab, hack for inline labels which must be in the first column,
11414         * (compareLabel,pic16_findNextInstruction),
11415         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
11416         * (insertBankSwitch): modified for the new pCodeAsmDir,
11417
11418 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11419         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
11420
11421         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
11422         instance,
11423         * (pushSide): commented out with #if,
11424         * (assignResultValue): fixed some typos in saving
11425         registers,
11426         * (genPcall): FIXED and sync'ed with genCall,
11427         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
11428         * (genNearPointerGet): fixed to handle some more cases,
11429         implementation scheme via table reads,
11430         * (genConstPointerGet): modified to access code memory correct,
11431         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
11432         and improved to handle some cases
11433         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
11434         instead of "RETLW" for init data
11435         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
11436         not IN_DIRSPACE, work around to reduce bank switching when aboslute
11437         variables are placed in access bank memory (<0x80 and >=0xf80),
11438         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
11439         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
11440         TBLWT_POSTDEC,TBLWT_PREINC
11441         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
11442         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
11443         directives
11444         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
11445         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
11446         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
11447         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
11448
11449 2004-02-29  Borut Razem <borut.razem AT siol.net>
11450
11451         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
11452         support/Util/findme.h, support/Util/system.h: enhance binary relative
11453         search for lib and include by using findProgramPath()
11454
11455 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11456
11457         * src/SDCCpeeph.h,
11458         * src/SDCCpeeph.c (pcDistance),
11459         * src/port.h,
11460         * src/mcs51/ralloc.h,
11461         * src/mcs51/ralloc.c (mcs51_regWithIdx),
11462         * src/mcs51/main.h,
11463         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
11464         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
11465         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
11466         size calculation port specific, started basis for some register
11467         optimizations
11468         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
11469         missing push/pop of r0/r1. Optimized push/pops
11470         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
11471         * device/lib/_modsint.c (_modsint),
11472         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
11473         and stack version so regression tests pass
11474
11475 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
11476
11477         * src/Makefile.in (dep): include SLIBOBJS in dependency check
11478         * src/SDCCast.c (decorateType): catch another small optimization
11479         with '?' operator
11480         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
11481         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
11482         modified to finally use computeType() all over SDCC,
11483         see Feature Request #877103
11484         * src/SDCCval.h: cosmetic
11485         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
11486         valCompare(); regression tested in muldiv.c
11487         * support/regression/tests/muldiv.c (testMod): mod sign follows
11488         dividend only
11489
11490 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
11491
11492         * src/SDCCast.c (decorateType): fixed bug #902362
11493         * doc/INSTALL.txt: fixed install instructions for win32
11494
11495 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
11496
11497         * device/include/Makefile.in (install): fixed by replacing spaces
11498         by tabs
11499         * doc/README.txt,
11500         * doc/INSTALL.txt: updated for release
11501         * doc/sdccman.lyx: added warning for --xstack being buggy
11502
11503 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
11504
11505         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
11506         to eliminate build warnings.
11507         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
11508
11509 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
11510            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11511
11512         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
11513         removed -penable-stack, added comment for stack pragma, added
11514         warning for not initializing the stack/frame registers, removed
11515         comment at interrupts section
11516
11517         Stack is made permanent, there is no ability to disable stack usage.
11518         * src/pic16/device.h,
11519         * src/pic16/device.c: removed all references to USE_STACK macro,
11520         * src/pic16/device.c (pic16_dump_section): when no elements in
11521         rlist, free rlist before return,
11522         * (pic16_dump_int_registers): NEW, internal registers are a new set
11523         of general purpose registers reused by each function,
11524         * (checkAddReg): returns 1 if registers is added to set,
11525         * (pic16_groupRegistersInSection): when a registers is of type
11526         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
11527         * src/pic16/device.h: memRange and Assigned Memory are deleted,
11528         SRCASECMP macro is moved here from device.c
11529         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
11530         PO_PCLATU, PO_PRODL, PO_PRODH,
11531         * (pic16_pCodeOpType, genMinus,
11532         changed compares to "a" register, with AOP_ACC,
11533         * (pic16_genPlus): fixed some bugs and indented properly,
11534         * (pic16_addSign): changed size to size+offset in the MOVWF
11535         instruction,
11536         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
11537         multiply 8-bit operand by literal, result is 8-bit,
11538         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
11539         multiply 2 8-bit operand, result is 8-bit,
11540         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
11541         genUMult8X*_16,
11542         * src/pic16/gen.c: changed accUse to contain WREG only,
11543         * (pic16_emitcomment): renamed to pic16_emitpcomment,
11544         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
11545         true, do not use immediate addressing any more unless sym is a
11546         pointer in codespace,
11547         * (aopForRemat): do not use immediate addressing when symbol not in
11548         codespace and when symbol's address is requested,
11549         * (aopOp): for-loop in if(sym->accUse) is modified for the new
11550         accUse size (= 1),
11551         * (aopGet): added case for AOP_ACC and don't return "accumulator
11552         bug" but WREG instead,
11553         * (popGetTempReg): pushes contents of temporary register in stack,
11554         * (popReleaseTempReg): pops contents of temporary register from
11555         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
11556         * (pic16_popGet): separated case AOP_ACC to return register WREG
11557         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
11558         or PO_IMMEDIATE and initializes their instance/offset appropriately,
11559         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
11560         the use of immediate pointers to certain cases only.
11561
11562         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
11563         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
11564         * (assignResultValue, genCall, genRet): modified to use the new
11565         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
11566         genPcall is still broken,
11567         * (genFunction): added code to create 'A' type pBlocks when
11568         interrupt functions are generated, code not extensively tested yet,
11569         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
11570         * (genEndFunction): modified so ISRs pop stored registers from stack,
11571         * (genMultOneByte): cleanup,
11572         * (AccRsh): added flag andmask, to and result with appropriate mask,
11573         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
11574         * (genDataPointerGet): fixed and reenabled its use,
11575         * (genNearDataPointerGet): bugs fixed,
11576         * (genDataPointerSet): bugs fixed,
11577         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
11578         pic16_DumpSymbol, pic16_DumpOp,
11579         * src/pic16/genutils.h: function prototypes for the above functions,
11580         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
11581         pointers,
11582         * (pic16emitRegularMap): many many many improvements, but needs a
11583         major cleanup,
11584         * src/pic16/main.c: enable_stack in pic16_options is removed,
11585         * (_pic16_parseOptions): removed command line options -penable-stack,
11586         * (_process_pragma): emit stack symbol only when stack pragma is
11587         processed,
11588         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
11589         redirected to FSR0L/FSR0H pair,
11590         * (pic16_get_op, pic16_get_op2): modifications and improvements,
11591         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
11592         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
11593         for immediates,
11594         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
11595         * (dumpPicOptype): NEW,
11596         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
11597         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
11598         with movff instruction,
11599         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
11600         added pic16_int_regs, some packRegsFor* functions are commented out,
11601         because produce errors,
11602         * src/pic16/NOTES: minor modifications
11603
11604 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11605
11606         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
11607         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
11608         --pack-iram.
11609         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
11610         * as/mcs51/lkaomf51.c: fixed bug #895763
11611
11612 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
11613
11614         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
11615
11616 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11617
11618         * doc/sdccman.lyx: added details about the HC08 storage classes and
11619         interrupts, fixed the register usage info for z80 & gbz80
11620
11621 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
11622
11623         * doc/sdccman.lyx: added more pic16 port documentation
11624         * device/include/pic16/: added header pic18fregs.h
11625
11626 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
11627
11628         * doc/sdccman.lyx: added Vangelis' contribution
11629
11630 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11631
11632         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
11633         extend to the next CALL or PCALL, not just to the next CALL.
11634
11635 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
11636
11637         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
11638
11639 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11640
11641         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
11642         bug #895752 and a better fix for bug #716790
11643
11644 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11645
11646         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
11647
11648 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11649
11650         * doc/sdccman.lyx: minor changes, minor changed
11651
11652 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
11653
11654         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
11655         which can't handle SDCC_NEWONEBYTEOPS,
11656         (geniCodeMultiply): removed conversion from mult to shift for pic14
11657         and pic16
11658
11659 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11660
11661         * src/hc08/gen.h,
11662         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
11663         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
11664         thus fixing bug #895406
11665
11666 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
11667
11668         * device/lib/_modsint.c,
11669         * device/lib/_modslong.c: sign follows divisor only
11670         * src/hc08/gen.c (genMultOneByte): if result size is 1,
11671         signs or signedness can be ignored
11672         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
11673         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
11674         added optimization for IFX,
11675         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
11676         arguments;
11677         reenabled optimization for IFX, which was removed on 2004-01-11
11678         * src/SDCCast.h: added return type IFX
11679         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
11680         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
11681         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
11682         SDCC_OLDONEBYTEOPS selects the old behaviour
11683         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
11684         changed again and commented promotion rule
11685         * src/SDCCval.c (valDiv): promotion no longer necessary
11686         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
11687         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
11688         rewritten
11689         * support/regression/tests/onebyte.c: added
11690
11691 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
11692
11693         * gen.c (genInline): reverted to old code for assemnling inline
11694         code because of bug reported James Chadd
11695
11696 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
11697
11698         * ralloc.h: missing declarations from previous patch,
11699         seems that patch for ralloc.h was never applied, fixed
11700
11701 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11702            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
11703
11704         * pcode.c,
11705         * pcode.h,
11706         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
11707         indirect addressing. Marked FSR0 as deprecated
11708         * gen.c (pointerCode): commented out, not needed now
11709         (pic16_popGet2p): new MOVFF helper function
11710         (genGenPointerGet),
11711         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
11712         (shiftRLong): removed duplicate debugging info
11713
11714 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11715
11716         * src/ds390/gen.c (genNearPointerGet),
11717         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
11718         optimization with bits, but not bitfields.
11719         * src/ds390/ralloc.c (packRegisters),
11720         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
11721
11722 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
11723
11724         * src/SDCCcse.c (algebraicOpts): copy operands before modification
11725
11726 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11727
11728         * src/SDCCsymt.h,
11729         * src/SDCCicode.c (operandFromSymbol),
11730         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
11731         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
11732         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
11733         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
11734         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
11735         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
11736         bug #892038
11737         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
11738         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
11739         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
11740         * src/SDCCsymt.c (newSymbol),
11741         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
11742         enumerator_list),
11743         * src/SDCCval.h,
11744         * src/SDCCval.c (newiList): fixed bug #885705
11745
11746 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11747
11748         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
11749         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
11750
11751 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11752
11753         * device/include/c8051f120.h,
11754         * device/include/c8051f300.h,
11755         * device/include/c8051f310.h: added/updated header files for Silicon
11756         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
11757         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
11758         in new section Submitting patches
11759
11760 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11761
11762         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
11763         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11764         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11765         genGenPointerSet),
11766         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
11767         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11768         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11769         genGenPointerSet),
11770         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
11771         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11772         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11773         genGenPointerSet),
11774         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
11775         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11776         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11777         genGenPointerSet): fixed bug #892400
11778         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
11779         to eliminate build warnings.
11780         * src/SDCCast.c (processParms),
11781         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
11782         fixed bug 751859
11783         * support/valdiag/valdiag.py: added GCC to the list of defines active
11784         when compiling with gcc
11785
11786 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11787
11788         * support/Util/SDCCerr.h,
11789         * support/Util/SDCCerr.c,
11790         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
11791         with an incomplete type (fixed bug #883734)
11792         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
11793
11794 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11795
11796         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
11797
11798 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11799
11800         * src/SDCCast.c (decorateType),
11801         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
11802         function pointer implementation
11803         * support/regression/tests/funptrs.c: added tests to verify both forms
11804         of function pointers work correctly. Added tests to verify parameters
11805         are passed in the correct order.
11806
11807 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
11808
11809         * device.c (regCompare): registers are sorted by ascending
11810         address and increasing size,
11811         * main.c (_pic16_finaliseOptions): removed the declaration
11812         of compiler macro MCU. Now a macro of the format pic18fxxxx
11813         will be defined from the command line
11814
11815 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11816             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
11817
11818         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
11819         PCOP_RLCF was overwritten!
11820         * gen.c (genSkip): commented out calls to pic16_emitcode,
11821         * (genCmpEQ): fixed "long" compares, only high word did get compared,
11822         * (genlshTwo),
11823         * (genRRC): added debugging info,
11824         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
11825         overwritten while shifting,
11826         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
11827         overwritten while shifting,
11828         * (AccLsh),
11829         * (AccRsh),
11830         * (shiftLLeftOrResult),
11831         * (shiftRLeftOrResult),
11832         * (shiftRLong),
11833         * (shiftLLong): Implemented with pic16_emitpcode
11834         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
11835         * (genLeftShift): Fixed bug, operand for shift by variable always
11836         was "and"ed with 0x0f,
11837         * (genLeftShiftLiteral),
11838         * (genrshTwo),
11839         * (genRightShiftLiteral): added debugging info,
11840         * (genrshFour): added comment,
11841         * (genRightShift): determined signedness from operand "left"
11842         instead of "result"
11843
11844 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11845
11846         * src/SDCCicode.c (geniCodeParms),
11847         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
11848         function pointers, fixed function pointer bugs #861242 and #861896
11849
11850 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11851
11852         * device/include/c8051f000.h,
11853         * device/include/c8051f120.h,
11854         * device/include/c8051f300.h: added header files for Silicon
11855         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
11856
11857 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
11858
11859         * src/SDCCast.c (processParams): added new type flow and restructured
11860         (gatherAutoInit): added new type flow
11861         (addCast): cosmetic changes
11862         (getLeftResultType): added new type flow for array indices, patch
11863         provided by Stas, see FR #877103
11864         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
11865         array index patch by Stas
11866         * src/SDCCast.h: added prototype getResultTypeFromType()
11867         * src/SDCCval.h,
11868         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
11869         * src/pic/glue.c (pic14emitStaticSeg),
11870         * src/pic16/glue.c (pic16emitStaticSeg),
11871         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
11872         for initialization of symbols
11873         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
11874         * support/Util/SDCCerr.h:
11875         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
11876         * .version: bumped version number to 2.3.8
11877         * device/include/Makefile.in (install),
11878         * doc/Makefile (install): changed to 'rm `find ...`' construct to
11879         avoid warnings
11880
11881 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
11882
11883         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
11884         Slade Rich fixed an optimization bug
11885         * src/pic/pcodepeep.c,
11886         * src/pic/pcoderegs.c
11887         * doc/Makefile (install): added test for directory
11888
11889 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11890
11891         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
11892         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
11893         * src/pic/ralloc.c (getRegPtr, getRegGpr),
11894         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
11895         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
11896         * as/mcs51/asexpr.c (term),
11897         * as/hc08/asexpr.c (term): fixed bug #887146
11898
11899 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11900
11901         * src/z80/gen.c (genMult): handle single byte result product
11902         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
11903         DUMMY_READ_VOLATILE (fixed bug #886367)
11904
11905 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
11906
11907         * support/regression/tests/libmullong.c: fixed logic, on little endian
11908         hosts we ended without a mullong_wrapper()
11909
11910 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11911
11912         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
11913         virus/worm forged address usage.
11914
11915 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
11916
11917         Fixed promotion, it should be done on AST level:
11918         * src/SDCCast.c (addCast): added promotion to int
11919         (decorateType): updated call to upCast()
11920         * src/SDCCicode.c (geniCodeLeftShift): removed call to
11921         usualUnaryConversions()
11922
11923 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
11924
11925         * support/regression/tests/literalop.c (mulWrapper): Added a
11926         wrapper to remove integer overflow warnings.
11927
11928         * support/regression/tests/float_trans.c: Made work on host.
11929
11930         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
11931         location of sz80.
11932
11933         * support/regression/generate-cases.py (main): Changed from inline
11934         to a main method.
11935
11936         * doc/Makefile (install): Changed to depth first to get rid of
11937         missing directory install warning.
11938
11939         * as/Makefile (install-doc): Made work on Mac.
11940
11941 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
11942
11943         * src/SDCCast.c: added an additional type flow in decorateType() of
11944         opposite direction, see feature request #860006; it's enabled at runtime
11945         by setting the environment variable SDCC_NEWTYPEFLOW
11946         * src/SDCCast.h: changed prototype of decorateType()
11947         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
11948         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
11949         'char' to 'int' can be omitted, if both operands are 'unsigned char';
11950         see feature request #877103
11951         * src/SDCCval.c: updated call of decorateType()
11952         (valBitwise): fixed bug #882876
11953         (valMinus): added promotion
11954         (valLogicAndOr): result is unsigned
11955         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
11956         * src/SDCCsymt.c (computeType),
11957         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
11958         must not cause an unsigned operation
11959         * src/pic/glue (pic14emitRegularMap),
11960         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
11961
11962 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
11963
11964         * src/pic/pcode.c (PCodeID): commented out left over debug code
11965
11966 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
11967
11968         * support/valdiag/tests/overflow.c: added shift tests
11969         * src/pic/device.c,
11970         * src/pic/gen.c,
11971         * src/pic/gen.h,
11972         * src/pic/glue.c,
11973         * src/pic/main.c,
11974         * src/pic/pcode.c,
11975         * src/pic/pcode.h,
11976         * src/pic/pcodepeep.c,
11977         * src/pic/pcoderegs.c,
11978         * src/pic/ralloc.c,
11979         * src/pic/ralloc.h: applied patch from Slade Rich;
11980         added support for multiple code pages and multiple RAM banks on the
11981         PIC 14 port. The ASM files now no longer simply assume all the
11982         code / RAM are in the same page / bank. This means the linker can
11983         safely allocate code/RAM of separate ASM files to different pages/banks.
11984         * doc/sdccman.lyx: added Slade's tips
11985         * src/mcs51/peeph.def: fixed bug #880768
11986
11987 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11988
11989         * src/hc08/ralloc.c (rematStr): fixed bug #879282
11990         * src/SDCCast.c (decorateType): fixed bug #880197
11991
11992 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
11993
11994         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
11995         getopt.h.
11996
11997         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
11998         strtof is not part of C89 and isn't included with Mac OS X.
11999
12000 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12001
12002         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
12003         shiftL2Left2Result): fixed bug #879326
12004         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
12005         (genMultOneByte): fixed bug in signed vs unsigned multiplication
12006         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
12007         address fetch for clr instruction
12008         * device/lib/hc08/_mulint.c: created optimized assembly version
12009         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
12010
12011 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
12012
12013         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
12014         proposed in FR #877103
12015
12016 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
12017
12018         * src/SDCCval.c (cheapestVal): added missing checks
12019         * src/SDCCicode.c (usualBinaryConversions): fixed condition
12020         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
12021
12022 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
12023
12024         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
12025         equal operands
12026
12027 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
12028
12029         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
12030         loaded with the linker search paths (-L arguments) and the libraries
12031         to be linked with the current source (-l arguments). Changes
12032         currently will affect only the pic16 port.
12033         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
12034         include path the port specific paths and port specific libraries,
12035         * gplink command now contains the $3 argument,
12036         * src/pic16/device.h,
12037         * src/pic16/device.c,: structure PIC_device is made public and
12038         renamed to PIC16_device, the same for variable Pics which is renamed
12039         to Pics16. Updated all references to them.
12040         * src/pic16/glue.c (pic16glue): corrected bug with code
12041         initialization which bypassed the variable initializations block.
12042
12043         * device/lib/pic16/Makefile.rules: removed --penable-stack from
12044         COMPILE_FLAGS and added the --nostdinc option
12045
12046 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12047
12048         * device/include/mc68hc908jb8.h: Register defs for another member
12049         of the hc08 family. Contributed by Bjorn Bringert - thanks!
12050
12051 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
12052
12053         Documenting changes from previous commits.
12054         * configure.in (version 1.56),
12055         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
12056         when generating output files to configure the pic16 library,
12057         but now I've commented it out, since gputils aren't installed in the
12058         SF compile farm, so library won't compile
12059
12060         * device/lib/Makefile.in (version 1.56): initially I've added in
12061         target 'all' the prerequestive 'model-pic16' so it compiled the
12062         pic16 library, but now I've commented it out for the same reasons
12063         above,
12064         * added targets 'model-pic16' and 'objects-pic16' to compile the
12065         library
12066         * added target 'port-specific-objects-pic16' to handle the
12067         generated libraries and copy them into the build/ directory
12068         * added target 'clean-intermediate-pic16' to clean intermediate
12069         files into pic16 directory
12070         * in target 'installdirs' added line to create directory pic16 in
12071         the installation path
12072
12073         * device/include/Makefile.in (version 1.11): in target 'install'
12074         added lines to copy all header files to installation path,
12075         * in target 'installdirs' added line create directory for pic16
12076         headers in the installation path
12077
12078 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
12079
12080         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
12081          a function call
12082
12083 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
12084
12085         * configure,
12086         * device/lib/configure.in,
12087         * device/lib/configure: fixed for autoconf 2.57
12088
12089 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12090
12091         * src/z80/main.c (_parseOptions): fixed the portmode= command line
12092         option so that it actually works. Made it specific to the z80, since
12093         the gbz80 doesn't have these kinds of I/O ports.
12094
12095 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12096
12097         * device/include/z180.h,
12098         * device/lib/_memcpy.c,
12099         * device/lib/_memmove.c,
12100         * device/lib/_mulint.c,
12101         * device/lib/ser_ir.c,
12102         * device/lib/ser_ir_cts_rts.c,
12103         * device/lib/_strcmp.c,
12104         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
12105         * src/z80/main.c (_process_pragma): add support for pragmas bank and
12106         portmode; added deprecation warning for bank= and protmode= forms.
12107         Also, guard against buffer overflow.
12108         * src/z80/gen.c (aopGet): generate better code for sfr banked read
12109
12110 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12111
12112         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
12113         changed interrupt vector table generation to only emit declared vectors.
12114         * device/include/Makefile.in: added missing backslash
12115         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
12116
12117 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
12118
12119         Mainly changes to support compilation of the device libraries
12120         * src/pic16/device.c: stack is allocated via symbol and not
12121         via literal number. The symbol is placed in the corresponding
12122         position of the data ram
12123         * (pic16_dump_section): relocatable and absolute uninitialized
12124         data are now emitted in sorted order to reduce section naming,
12125         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
12126         weren't marked as being in the access bank,
12127
12128 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
12129
12130         Added portion of GNU PIC Library under the directory
12131         device/include/pic16 and device/lib/pic16. These files
12132         contain the declarations of SFRs for the PIC18Fxx2 devices.
12133         The directory is initialized via configure from toplevel.
12134
12135 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
12136
12137         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
12138         the spilllocations to be compared correctly
12139
12140 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
12141
12142         * src/SDCCast.c (decorateType): fixed bug introduced today
12143
12144 2004-01-12  Borut Razem <borut.razem AT siol.net>
12145
12146         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
12147         doc/sdccman.lyx: upper case pragmas are deprecated
12148
12149 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
12150
12151         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
12152         in simpler and even better code
12153
12154 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
12155
12156         * src/SDCCicode.c (operandOperation): fixed bug #874819
12157         * src/SDCCast.c (decorateType): fixed
12158         char foo (unsigned long ul) { return ul > 0; }
12159
12160 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12161
12162         * doc/sdccman.lyx: Moved and added some sections, small changes
12163         all over. Telling LaTeX to be less strict with word spacing
12164         to better keep the right margin. Changed some notes about
12165         maintainance of the ports in section 3.2.1 - is it OK like this?
12166
12167 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
12168
12169         SDCC source changes:
12170         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
12171         convilong): modified to inform the pic16 port that builtin functions
12172         are external
12173
12174         PIC16 PORT specific changes:
12175         * src/pic16/device.c pic16_dump_equates() added,
12176         processor registers declared internally by the port are emitted in
12177         the translation as equates,
12178         * src/pic16/gen.c: inline code is passed unprocessed to the
12179         translation,
12180         * (pic16_popGetLit2): fnuction modified to take second operand as
12181         pCodeOp pointer and not as literal,
12182         * (popRegFromIdx): prefixed with pic16_,
12183         * (pic16_popCombine2): modified to receive already allocated pCode
12184         operands,
12185         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
12186         * (genFunction): initializes local stack frame and pushes on stack
12187         all the registers used by this function,
12188         * (genEndFunction): restores all registers from stack and restores
12189         stack frame,
12190         * src/pic16/glue.c (pic16emitRegularMap): various changes and
12191         improvements,
12192         * (pic16glue): changed the program startup sequence,
12193         * added new dbName code 'A' for functions placed in absolute section
12194         * src/pic16/main.c: added function attribute _naked,
12195         * added pragma 'code' to place a fnuction at an absolute address,
12196         * added command line arguments --debug-ralloc and --pcode-verbose,
12197         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
12198         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
12199         * (pic16_newpCodeOpLit2): modified to take the second operand as
12200         pCodeOp pointer,
12201         * (pic16_printpBlock): modified to emit each function in a separate
12202         section,
12203         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
12204         UPPER for immediate operands,
12205         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
12206         instruction,
12207         * src/pic16/peeph.def: all peepholes with movff are commented out,
12208         because there is a problem in the pcode peep optimizer,
12209         * src/pic16/ralloc.c: the register allocator can now reuse local
12210         function symbols for another function. This saves register usage.
12211         * src/pic16/ralloc.h: added flag isLocal in structure regs,
12212
12213         Added file src/pic16/NOTES with information about program writing on
12214         the current port version.
12215
12216 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12217
12218         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
12219         and peephole 252 (array access)
12220
12221 2004-01-09  Borut Razem <borut.razem AT siol.net>
12222
12223         * src/SDCCmain.c : fixed #872250: -l command line defined library
12224           files are scanned before standard library files
12225
12226 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12227
12228         * src/SDCCast.c (decorateType): fixed bug #874046
12229
12230 2004-01-09  Borut Razem <borut.razem AT siol.net>
12231
12232         * support/scripts/sdcc.nsi: remove previous installation
12233
12234 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12235
12236         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
12237         bytes for last interrupt vector (mcs51)
12238         * sdcc.spec: fixed typo
12239
12240 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12241
12242         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
12243         gen51Code): more efficient parameter receive for --model-large
12244         ("bug" #845294)
12245
12246 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12247
12248         * src/ds390/main.c,
12249         * src/z80/main.c: added missed needLinkerScript flags (more than
12250         one port structure defined in these file)
12251         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
12252         bug #795325
12253
12254 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
12255
12256         * src/SDCCmain.c: removed various references to DEFAULT_PORT
12257         * src/port.h: added flag needLinkerScript in port->linker
12258         structure to inform whether to create a .lnk file or not,
12259         * src/avr/main.c,
12260         * src/ds390/main.c,
12261         * src/hc08/main.c,
12262         * src/mcs51/main.c,
12263         * src/pic/main.c,
12264         * src/pic16/main.c,
12265         * src/xa51/main.c,
12266         * src/z80/main.c: changed appropriately to configure
12267         needLinkerScript flag
12268         * src/pic/gen.c,
12269         * src/pic16/gen.c (genAddrOf): fixed bug #863624
12270         * src/pic/glue.c: added variable udata_section_name to
12271         override default uninitialized data segment definition for
12272         devices only with SHAREBANK memory (reported from Erik Epetrich)
12273         * (pic14emitOverlay): modified to emit a commented overlay segment
12274         directive when no overlay data exist
12275         * (picglue): modified to emit uninitialized data segment
12276         according to udata_section_name
12277         * src/pic/main.c (_pic14_parseOptions): added command line
12278         options --udata-section-name=[name] to override default
12279         udata definition name
12280         * modified _linkCmd and _asmCmd to include compiler passed
12281         arguments via -W option
12282         * src/pic16/main.c: added $l in _asmCmd, changed extension for
12283         object file from '.rel' to '.o' in port->linker structure,
12284         changed size of fptr from 2 to 3 in port structure
12285
12286 2004-01-07  Borut Razem <borut.razem AT siol.net>
12287
12288         * support/scripts/sdcc.nsi: update PATH
12289         * support/scripts/sdcc.ico: craeted
12290
12291 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
12292
12293         * device/include/Makefile.in: fix install
12294         * doc/Makefile: fix install
12295
12296 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12297
12298         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
12299         in bug #860505
12300         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
12301         how the function variable allocation summary is displayed; also
12302         include information about variables allocated to the overlay
12303         segment
12304
12305 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12306
12307         * as/mcs51/lkmain.c: Help about -Y option
12308         * as/mcs51/lkarea.c: Fixed gcc warnings
12309
12310 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
12311
12312         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
12313         fixed warning
12314         * support/valdiag/tests/overflow.c: added
12315         * src/SDCCast.c (decorateType),
12316         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
12317         LEFT_OP (left shift)
12318
12319 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12320
12321         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
12322         (default behaviour).
12323
12324 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12325
12326         A python script to validate compiler diagnostic messages. It can be
12327         used to verify that sdcc complains about bad c source code and
12328         gives a good location of the error.
12329         * support/valdiag/Makefile,
12330         * support/valdiag/valdiag.py,
12331         * support/valdiag/tests/*
12332
12333 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12334
12335         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
12336         * src/SDCCsymt.c (newEnumType),
12337         * src/SDCCsymt.h
12338         * support/Util/SDCCerr.c,
12339         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
12340         enum related bugs.
12341         * support/regression/tests/enum.c: added test for enum values that
12342         require at least 2 bytes of storage.
12343
12344 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
12345
12346         * src/common.h: added ifndef/define/endif macros
12347         around the header file.
12348         Bug reported from Jesus Calvino-Fraga
12349
12350 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
12351
12352         * sdcc.spec: updated
12353         * device/include/Makefile.in: don't install CVS directories
12354         * device/lib/Makefile.in: added removal of CVS directories after install
12355         * doc/Makefile: fixed install, added local_icons
12356         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
12357         * src/mcs51/gen.c (genRightShift): fixed bug #870788
12358         * src/ds390/gen.c (genRightShift): fixed bug #870788
12359         * src/SDCCast.c (decorateType): fixed bug #870781
12360
12361 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
12362
12363         PIC16 port related changes:
12364         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
12365         added variable stackPos,
12366
12367         * gen.c: genCall, assignResultValue: added support for
12368         pushing/retrieving function parameters to/from stack,
12369         genFunction,genEndFunction: setup stack frame for the
12370         generated function,
12371         genAddrOf: will be changed according to bug 863624
12372
12373         * added files genutils.c and genutils.h which contain gen*
12374         debugged and optimised functions extracted from gen.c
12375
12376         * glue.c: added variable 'externs' which holds extern symbols,
12377         pic16emitRegularMap: is modified to properly handle relocatable
12378          symbols under the new scheme,
12379         pic16createInterruptVect: is modified
12380         pic16printPublics: is modified to emit 'global' assembler directives,
12381         added pic16_printExterns to print extern symbols,
12382         pic16glue: initializes stack/frame pointer in the beginning of
12383         the assembly output. Temporary hack, will be corrected later,
12384         because gplink yet does not support stack and SDCC does not
12385         yet support a type of crt0.o object to create the final binary.
12386
12387         * Removed many lines that contain 8051 legacy code.
12388         * The code is finally placed under a 'code' directive.
12389         * Added port specific options.
12390
12391         * _process_pragma: simplified since now we do not need *special*
12392         include file to define SFR registers. But a separate header
12393         will be needed. This will be developed later.
12394         * _pic16_parseOptions: added, parses port specific options:
12395         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
12396         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
12397         --preplace-udata-with=
12398
12399         * _pic16_setDefaultOptions: modified to initialize section names,
12400         but hack is temporarly out of order since it needs improvement.
12401         * _pic16_genAssemblerPreamble: configuration words are emitted by
12402         their address instead of their name. This part is incomplete and
12403         supports only the 18Fxx2 devices. Other devices will emit an error
12404         during assembly since they do not contain the same set of config
12405         registers
12406         * _pic16_genIVT: is modified,
12407
12408         * pcode.c: added definitions for some hardware registers that are needed
12409         for stack support
12410         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
12411         All PCI entries are updated. Now LFSR is supported.
12412         * Removed pic16_pciTRIS is mentioned by mdubuc in source
12413         * added pic16_newpCodeOpLit2 to support instructions with
12414         two literal arguments
12415         * pic16_pCode2str: corrected code that emits assembler instructions
12416         with two literal operands and those that have an access bit modifier
12417         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
12418         this fixes a bug which caused some labels to be lost, when an
12419         assembler directive was added, i.e. banksel,
12420         * pic16_FixRegisterBanking: improved logic that causes the insertion
12421         of bank switching,
12422         * InlineFunction: functions that are called once, are not any more
12423         inlined. This can be a port option in the future,
12424
12425         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
12426
12427         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
12428         hold the corresponding uninitialized symbols,
12429         * pic16_allocProcessorRegister: registers have explicit marked the
12430         accessBank field,
12431         * pic16_allocInternalRegister: registers are explicit marked as
12432         not used,
12433         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
12434         processing list, so bit registers were lost,
12435         *
12436
12437         * ralloc.h: added field 'accessBank' and original symbol operand
12438         in register definition,
12439         * removed the field isMapped from register definition,
12440
12441         ** Several functions have been removed from various sources:
12442         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
12443         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
12444         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
12445         pic16_assignRelocatableRegisters
12446
12447         ** others have been introduced:
12448         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
12449         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
12450
12451 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
12452
12453         * support/scripts/inc2h.pl: changed definition of BIT_AT
12454         to emit 'sbit at' instead of 'bit at'. This was a request.
12455
12456         PIC16 port related preliminary changes:
12457         * gen.c: prefixed function popRegFromString with
12458         pic16_ and all references to it corrected
12459         * pcode.c: all pic16_pc_* hardware registers prefixed
12460         with underscore (_),
12461         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
12462         * ralloc.c: newReg(): when register is REG_SFR then
12463         set address to rIdx,
12464         pic16_allocProcessorRegister(): marks register wasUsed=0
12465         pic16_writeUsedRegs(): added a call to assign processor
12466         registers via pic16_assignFixedRegisters
12467
12468 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12469
12470         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
12471         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
12472         variables in unused register banks.  Also the SSEG is placed
12473         wherever there is enough space for it, and IDATA can be anywhere
12474         in internal RAM.  For now compile using -Wl-Y[stack_size].
12475         The mem file is different for this option as well, since it
12476         makes no sense of talking about DSEG lenght.
12477
12478 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
12479
12480         * src/SDCClrange.c: fixed bug 869095 that caused segfault
12481         in certain cases, e.g. when ROM assignment, patch provided
12482         from Albert den Haan.
12483
12484 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
12485
12486         Many signedness and type propagation fixes:
12487         * src/SDCCicode.c: made geniCodeCast() static
12488         replaced SPEC_ by IS_ (cosmetic)
12489         (operandOperation): fixed div and mod operation
12490         (usualBinaryConversions): added support for promotion of char
12491         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
12492         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
12493         (geniCodeAdd): an array index will stay unsigned, even if promoted
12494         from char to int
12495         (geniCodeArray): ditto
12496         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
12497         * src/SDCCsymt.c (computeType): added more support for char;
12498         promotion of char is selectable by promoteCharToInt, fixed signedness
12499         for all cases
12500         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
12501         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
12502         * src/SDCCval (val*): replaced signedness calculation by
12503         computeType()
12504         rearranged if-branches (cosmetic)
12505         (valShift): added warning W_SHIFT_CHANGED
12506         (valCompare): fixed problem with different types
12507         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
12508         * support/regression/tests/literalop.c: added many cases
12509         * support/regression/tests/ast_constant_folding.c: changed finally to
12510         'unsigned int'
12511         * .version: new year, new version: 2.3.7
12512         * src/SDCCmain.c (main): applied patch #866468
12513         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
12514         provided by Scott Bronson
12515         * doc/sdccman.lyx: updated documentation for sdcdb
12516         updated and added chapter tips
12517
12518 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12519
12520         * src/SDCCsymt.h: missing from yesterday's commits
12521
12522 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12523
12524         * src/SDCC.y (struct_or_union_specifier),
12525         * support/Util/SDCCerr.c,
12526         * support/Util/SDCCerr.h: verify that struct & union tags are used
12527         as declared.
12528
12529 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12530
12531         * src/SDCCglobl.h: missing from yesterday's commits
12532
12533 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12534
12535         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
12536         sft_attributes, struct_declaration, parameter_declaration,
12537         type_name, start_block, declaration_list),
12538         * src/SDCC.lex (check_type): support redefinition of typedef names
12539
12540 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12541
12542         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
12543         aligned xdata arrays. Erik helped me with the if clause.
12544
12545 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12546
12547         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
12548         warning
12549
12550 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12551
12552         * src/SDCCast.h,
12553         * src/SDCCast.c (newAst_),
12554         * src/SDCCicode.h,
12555         * src/SDCCicode.c (ast2iCode, newiCode),
12556         * src/SDCCglobl.h,
12557         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
12558         expr, statement, expression_statement, selection_statement,
12559         iteration_statement, expr_opt, jump_statement): foundation for tracking
12560         sequence points
12561         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
12562         point code too)
12563
12564 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12565
12566         * support/Util/SDCCerr.c,
12567         * src/SDCCast.h,
12568         * src/SDCCast.c (createCase, createDefault, decorateType),
12569         * src/SDCClabel.c (labelUnreach),
12570         * src/SDCC.y (labeled_statement, jump_statement): More improvements
12571         to error messages.
12572         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
12573         (with thanks to Stas Sergeev)
12574         * device/include/time.h,
12575         * device/lib/time.c (CheckTime): suppress unreachable code warning
12576
12577 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12578
12579         * src/SDCCast.c (createIvalCharPtr),
12580         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
12581         bug #753752)
12582         * support/regression/tests/nullstring.c: tests for these two bugs
12583
12584 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12585
12586         * support/Util/SDCCerr.h,
12587         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
12588         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
12589         about storage class and 'at' used inside struct or union
12590         * src/SDCCBBlock.c (iCodeFromeBBlock),
12591         * src/SDCCcse.c (ifxOptimize),
12592         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
12593         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
12594         printIval, emitStaticSeg, emitOverlay),
12595         * src/SDCClabel.c (deleteIfx),
12596         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
12597         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
12598         gatherAutoInit, processParms),
12599         * support/Util/SDCCerr.h,
12600         * support/Util/SDCCerr.c (werrorfl): Support for better error location
12601         reporting for post-parse errors.
12602
12603 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12604
12605         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
12606         implicit casts via union; they don't work on big endian systems
12607         (possible fix for bug #861138)
12608
12609 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12610
12611         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
12612         * src/mcs51/main.c: fixed the fix for bug #737001
12613
12614 2003-12-15  Borut Razem <borut.razem AT siol.net>
12615
12616         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
12617
12618 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12619
12620         * support/makebin/makebin.c: put output in binary mode
12621
12622 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12623
12624         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
12625         xdata and data memory on startup. Set the environment variable
12626         SDCC_NOGENRAMCLEAR to disable this.
12627         * src/mcs51/peephole.def,
12628         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
12629         (allows non-interrupt and interrupt code to safely compete for a resource
12630         without the non-interrupt code having to disable interrupts)
12631
12632 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12633
12634         * src/SDCCicode.c (geniCodeAdd),
12635         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
12636         with valFromType if type might be a pointer and host is big endian).
12637         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
12638         types, not just integer types.
12639         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
12640         multiply defined with mismatching "at" address.
12641
12642 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12643
12644         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
12645         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
12646         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
12647         with embedded nulls (fixed bug #753752)
12648
12649 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12650
12651         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
12652         Apparently this did not see much testing (endless loop)
12653
12654 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12655
12656         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
12657
12658 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12659
12660         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
12661         gracefully handle NULL memmap pointers
12662
12663 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12664
12665         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
12666         instead of deleting the iCode when an operand is volatile
12667         * src/z80/gen.c (genDummyRead),
12668         * src/mcs51/gen.c (genDummyRead),
12669         * src/ds390/gen.c (genDummyRead),
12670         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
12671         not just IC_RIGHT
12672         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
12673         * src/SDCC.y: fixed bug #850420
12674
12675 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12676
12677         Applied z80 i/o port patch from Peter Townson and fixed some operators
12678         to better handle operands in A register.
12679         * device/include/z180.h
12680         * src/SDCC.y
12681         * src/SDCCglue.c
12682         * src/z80/gen.c
12683         * src/z80/gen.h
12684         * src/z80/main.c
12685         * src/z80/peeph-z80.def
12686         * src/z80/peeph.def
12687         * src/z80/z80.h
12688
12689 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12690
12691         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
12692
12693 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12694
12695         * device/lib/hc08/_mullong.c: Removed extra #endif
12696
12697 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12698
12699         * sim/ucsim/hc08.src/inst.cc,
12700         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
12701         carries from x to h
12702         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
12703         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
12704         * device/include/stdarg.h: fixed varargs for hc08
12705         * device/lib/Makefile.in,
12706         * device/lib/hc08/Makefile,
12707         * device/lib/hc08/_mulint.c,
12708         * device/lib/hc08/_mullong.c: fixed some endian problems
12709
12710 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12711
12712         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
12713         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
12714         * device/lib/_gptrget.c,
12715         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
12716
12717 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12718
12719         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
12720         * src/SDCCast.c (astErrors): fixed bug #846007
12721         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
12722
12723 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12724
12725         * src/SDCCast.c (decorateType): disabled a transformation I added in
12726         revision 1.188 (access to fields of a structure at an absolute address);
12727         it breaks with bitfields, extern declarations, and gcse analysis.
12728         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
12729         could be assigned through a pointer, so don't complain.
12730         * src/SDCCast.c (astErrors),
12731         * src/SDCCast.h,
12732         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
12733
12734 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
12735
12736         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
12737         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
12738         output of __config directives, since gpasm now supports them
12739         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
12740         pre-processor macro, i.e. -DMCU=p18f452
12741         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
12742         and modified to handle 'cast' icode similarly to '=' icode
12743         * src/pic16/device.h (typedef struct PIC_device): added field
12744         'extMIface' to indicate that chip has external memory interface
12745         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
12746         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
12747         18F8720
12748
12749 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12750
12751         * src/SDCC.y (pointer): fixed bug #846006
12752         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
12753         * src/SDCCast.c (decorateType): fixed bug #846009
12754         * src/ds390/peeph.def,
12755         * src/ds390/gen.c (genAnd, genOr),
12756         * src/mcs51/peeph.def,
12757         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
12758
12759 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12760
12761         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
12762         * src/SDCCdflow.c
12763         * src/SDCCcse.c
12764         * src/SDCCcse.h
12765         * src/SDCCBBlock.h
12766         * src/SDCCBBlock.c
12767
12768 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
12769
12770         fixed bug #845089
12771         * src/SDCCbitv.h,
12772         * src/SDCCbitv.c: added function to free a bitvector
12773         * src/SDCClrange.h,
12774         * src/SDCClrange.c: added function to recompute the liveranges
12775         * src/avr/ralloc.c,
12776         * src/ds390/ralloc.c,
12777         * src/hc08/ralloc.c,
12778         * src/mcs51/ralloc.c,
12779         * src/pic/ralloc.c,
12780         * src/pic16/ralloc.c,
12781         * src/xa51/ralloc.c,
12782         * src/z80/ralloc.c: recompute the liveranges after register packing
12783
12784 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
12785
12786         * src/SDCCloop.c (newInduction): fixed bug #845630
12787
12788 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12789
12790         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
12791         inadvertantly left behind from my 2003-11-12 change
12792
12793 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12794
12795         Updated headers I neglected to commit yesterday.
12796         * src/SDCClrange.h,
12797         * src/SDCCicode.h
12798
12799 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12800
12801         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
12802         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
12803         * src/SDCCopt.c (eBBlockFromiCode),
12804         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
12805         the creation of the key hash table from the sequencing so it can be used
12806         earlier (for some GCSE bug fixes still pending)
12807
12808 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12809
12810         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
12811         * support/regression/tests/addsub.c: testing genPlus shortcut
12812
12813 2003-11-15  Borut Razem <borut.razem AT siol.net>
12814
12815         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
12816
12817 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12818
12819         * src/SDCCcse.c (cseBBlock): fixed bug #527779
12820         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
12821         ordering is immaterial.
12822         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
12823
12824 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12825
12826         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
12827         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
12828         (SIGSEV) of bug #840381
12829         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
12830         unlink new file before rename if new and old filenames are the same)
12831
12832 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12833
12834         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
12835         uninitialized variables) for the mcs51. Set environment variable
12836         SDCC_GENRAMCLEAR to test.
12837         xdata initialization slightly shorter
12838
12839 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12840
12841         * src/SDCCsymt.h,
12842         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
12843         #838241 & 780691 (basicly the same bug)
12844         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
12845         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
12846
12847 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
12848
12849         * src/SDCCmain.c (linkEdit): "fix" #834252
12850
12851 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12852
12853         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
12854         * src/SDCCast.h,
12855         * src/SDCC.y: fixed bug #819403
12856
12857 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12858
12859         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
12860         the reentrant attribute.
12861         * src/hc08/gen.c (genPackBits): added missing stack readjustment
12862         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
12863         simulation
12864         * src/SDCCast.c (decorateType): fixed bug with storage class not being
12865         updated during pointer dereference; f.e. ~(((char *)1)*) was being
12866         erroneously reduced to a literal.
12867         * src/hc08/ralloc.c (packRegisters, rematStr),
12868         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
12869         some cases
12870
12871 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12872
12873         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
12874         * doc/sdccman.lyx: changed from 'article' to 'book'
12875         * doc/Makefile: readded test_suite_spec and cdbfileformat
12876
12877 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
12878
12879         * device/include/stdlib.h: include malloc.h to comply with ANSI
12880         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
12881
12882 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12883
12884         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
12885         * doc/clean.mk: also remove *.out files
12886         * doc/sdccman.lyx: some additions, larger top/bottom margins
12887
12888 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12889
12890         * src/SDCC.y: fixed bug #837365
12891         * support/regression/tests/bitopcse.c
12892         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
12893         a symbol (might be valop instead)
12894         * device/lib/Makefile.in: added errno.c to HC08SOURCES
12895         * device/lib/clean.mk: added hc08 to the cleaning list
12896
12897 2003-11-04  Borut Razem <borut.razem AT siol.net>
12898
12899         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
12900           made 2003-11-04
12901         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
12902           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
12903           malloc is declared in standard stdlib.h
12904
12905 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12906
12907         * device/lib/hc08/Makefile: need to clean .rel not .o files
12908         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
12909
12910 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12911
12912         * src/port.h,
12913         * src/hc08/main.c,
12914         * src/mcs51/main.c,
12915         * src/ds390/main.c,
12916         * src/z80/main.c,
12917         * src/avr/main.c,
12918         * src/pic/main.c,
12919         * src/pic16/main.c,
12920         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
12921         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
12922         tests (which uses the port's oclsExpense function)
12923         * src/SDCC.y,
12924         * src/SDCCast.c,
12925         * src/SDCCicode.c,
12926         * src/hc08/gen.c,
12927         * src/ds390/gen.c,
12928         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
12929
12930 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12931
12932         * src/SDCCcse.c (ifxOptimize),
12933         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
12934         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
12935         deleting the IFX iCode.
12936         * src/hc08/ralloc.c: reduced unneeded slocs
12937         * src/hc08/gen.c: fixed bug in asmopToBoolean
12938
12939 2003-11-04  Borut Razem <borut.razem AT siol.net>
12940
12941         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
12942           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
12943           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
12944           transferred to configure
12945
12946 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
12947
12948         Use headers defined in the C[++] standards:
12949         * sim/ucsim/gui.src/serio.src/fileio.cc
12950         * sim/ucsim/gui.src/serio.src/frontend.cc
12951         * sim/ucsim/gui.src/serio.src/main.cc
12952         * sim/ucsim/gui.src/serio.src/posix_signal.cc
12953         * support/Util/NewAlloc.c
12954         * as/hc08/lklibr.c
12955         * as/mcs51/lklibr.c
12956         * as/z80/aslist.c
12957         * as/z80/assym.c
12958
12959 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12960
12961         * Added MSVC projects for hc08 assembler and linker:
12962         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
12963         /as/hc08/link_hc08.dsp
12964
12965 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
12966
12967         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
12968
12969 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
12970
12971         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
12972
12973 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12974
12975         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
12976
12977 2003-10-31  Borut Razem <borut.razem AT siol.net>
12978
12979         * support/cpp2/cpplib.h,
12980           support/cpp2/cpplib.c,
12981           support/cpp2/cpplex.c,
12982           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
12983           to switch _asm block preprocessing on / off. Default is
12984           #pragma preproc_asm +
12985
12986 2003-10-31  Borut Razem <borut.razem AT siol.net>
12987
12988         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
12989           when outputting comment blocks (when executed with -C option) and
12990           _asm (SDCPP specific) blocks
12991
12992 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12993
12994         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
12995
12996 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
12997
12998         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
12999
13000 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
13001
13002         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
13003         * src/SDCCast.c (decorateType): fixed bug #832664
13004
13005 2003-10-31  Borut Razem <borut.razem AT siol.net>
13006
13007         * support/cpp2/cpplex.c: fixed for SDCPP:
13008           comments(when executed with -C option) and _asm blocks
13009           were included even if they where in skipped #if block.
13010           Applied solution from GCC cpp 3.3.2
13011
13012 2003-10-31  Borut Razem <borut.razem AT siol.net>
13013
13014         * src/SDCC.lex: sdcc now understands both formats:
13015           '# <line_number> <file_name>' and
13016           '#line <line_number> <file_name>'
13017         * support/cpp2/cppmain.c: sdcpp now generates the standard
13018           '# <line_number> <file_name>' instead of former
13019           '#line <line_number> <file_name>'
13020
13021 2003-10-30  Borut Razem <borut.razem AT siol.net>
13022
13023         * support/cpp2/cpphash.h,
13024         * support/cpp2/cpplib.h
13025         * support/cpp2/cpplex.c,
13026         * support/cpp2/cppmain.c,
13027         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
13028
13029 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13030
13031         Fixed a number of problems revealed by bug #827883.
13032         * src/SDCCloop.c (loopInvariants): Spill location of the
13033         result operand should be recomputed if extracted from
13034         a loop. Also, don't extract assignments of an iTemp
13035         from a literal.
13036         * src/SDCCast.c (isConformingBody): loop reversal should
13037         not occur if the control variable is involved with a
13038         relational operator.
13039
13040 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
13041
13042         * .version: bumped to 2.3.6 to reflect the big improvements
13043         made by Erik and Klaus. Thanks!
13044
13045 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
13046
13047         Replaced the livrange code.
13048         * src/SDCClrange.c: added new LR code
13049         * src/SDCCloop.c,
13050         * src/SDCCBBlock.h: removed remainig parts from old LR code
13051         * src/ds390/ralloc.c,
13052         * src/ds390/gen.c: minor fixes to make it work with new code
13053
13054 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13055
13056         * as/hc08/asm.h,
13057         * as/hc08/lkrloc.c,
13058         * src/hc08/gen.c,
13059         * src/hc08/ralloc.c: Fix various warnings related to the hc08
13060         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
13061         (tweaked fix for bug #818696)
13062
13063 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13064
13065         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
13066
13067 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13068
13069         * src/SDCCmain.c,
13070         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
13071         * src/mcs51/gen.c (gencjneshort),
13072         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
13073         more efficient (per Scott Bronson's suggestion)
13074
13075 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13076
13077         Extended the semantics of the critical keyword to include
13078         individual statements. See RFE #827755 and #799831
13079         * src/SDCC.y
13080         * src/SDCCicode.c
13081         * src/SDCCopt.c
13082         * src/SDCCast.c
13083         * support/Util/SDCCerr.c
13084         * support/Util/SDCCerr.h
13085         * src/mcs51/gen.c
13086         * src/ds390/gen.c
13087         * src/hc08/gen.c
13088
13089 2003-10-19  Borut Razem <borut.razem AT siol.net>
13090
13091         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
13092
13093 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13094
13095         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
13096         Fixed bug #818696
13097         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
13098         and predecrement operand is displayed
13099
13100 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
13101
13102         * src/SDCCval.c (valMinus): fixed bug #826041
13103
13104 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13105
13106         Some hc08 related updates that I missed earlier
13107         * sim/ucsim/stypes.h
13108         * support/regression/ports/hc08/spec.mk
13109
13110 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13111
13112         New target "hc08" for the Motorola 68hc08 family of micros
13113
13114         * configure
13115         * configure.in
13116         * Makefile
13117         * src/hc08/*
13118         * src/SDCCmain.c
13119         * src/port.h
13120         * sim/ucsim/hc08.src/*
13121         * sim/ucsim/configure.in
13122         * src/ucsim/configure
13123         * sim/ucsim/packages_in.mk
13124         * as/hc08/*
13125         * as/Makefile
13126         * device/include/mc68hc908qy.h
13127         * device/lib/hc08/*
13128         * device/lib/Makefile.in
13129         * support/regression/ports/hc08/*
13130         * support/regression/Makefile
13131
13132 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13133
13134         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
13135         regression test
13136         * src/ds390/gen.c (genCast): fixed bug #821957
13137
13138 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
13139
13140         * device/lib/logf.c: "fixed" overlay bug
13141         * support/regression/ports/host/spec.mk: added m library
13142         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
13143         * support/regression/tests/float_trans: added (for Eric)
13144
13145 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
13146
13147         * src/mcs51/gen.c (genCpl): fixed bug
13148         http://sf.net/mailarchive/message.php?msg_id=6263915
13149
13150 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
13151
13152         * src/SDCCast.c (decorateType): added extended constant folding
13153         * src/SDCCsymt.c (computeType): cleanup
13154         * src/SDCCval.c (valShift): minor optimization
13155         * support/regression/tests/ast_constant_folding.c: added
13156
13157 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13158
13159         * src/SDCCmain.c: removed some unintended changes
13160
13161 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13162
13163         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
13164         * src/z80/gen.c: fixed part of bug #817589
13165         * src/SDCCsymt.c (checkFunction): fixed bug #817895
13166
13167 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
13168
13169         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
13170         * src/SDCCcflow.c
13171         * src/SDCCcse.c
13172         * src/SDCCdflow.c
13173         * src/SDCClabel.c
13174         * src/SDCClrange.c
13175         * src/SDCCmem.c
13176         * src/SDCCopt.c
13177         * src/SDCCpeeph.c
13178         * src/SDCCset.c
13179         * src/avr/ralloc.c
13180         * src/ds390/ralloc.c
13181         * src/izt/ralloc.c
13182         * src/mcs51/ralloc.c
13183         * src/pic/ralloc.c
13184         * src/pic16/ralloc.c
13185         * src/xa51/ralloc.c
13186         * src/z80/ralloc.c
13187         * src/z80/gen.c: removed unused label "release:"
13188
13189 2003-10-06  Borut Razem <borut.razem AT siol.net>
13190
13191         * src/SDCC.lex: removed definition of unused variables
13192           save_optimize and save_options
13193
13194 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
13195
13196         * clean.mk: removed '=' in "-maxdepth=1"
13197         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
13198         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
13199
13200 2003-10-06  Borut Razem <borut.razem AT siol.net>
13201
13202         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
13203           my_unput() replaced by unput()
13204
13205 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
13206
13207         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
13208         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
13209         type-punned pointer will break strict-aliasing rules"
13210         Old LR behaviour is again default; Klaus' LR can be choosen by
13211         defining the environment variable LRKLAUS
13212         * src/SDCCBBlock.h
13213         * src/SDCCloop.c
13214         * src/SDCClrange.c
13215         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
13216         * clean.mk: fixed removal of files in bin/CVS/
13217         * device/lib/clean.mk: fixed removal of directories small and large
13218         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
13219         * src/SDCCicode.c,
13220         * src/SDCCval.c: removed superflous test for pedantic
13221
13222 2003-10-05  Borut Razem <borut.razem AT siol.net>
13223
13224         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
13225           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
13226           message "unmatched #pragma SAVE and #pragma RESTORE"
13227
13228 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13229
13230         * doc/sdccman.lyx: various additions and updates (interrupts, inline
13231           assembly, critical functions, atomic, nojtbound)
13232
13233 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
13234
13235         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
13236         * src/SDCCBBlock.h
13237         * src/SDCCloop.c
13238         * src/SDCCloop.h
13239         * src/SDCClrange.c
13240
13241 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13242
13243         * src/z80/gen.h,
13244         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13245         * src/mcs51/gen.h
13246         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13247         * src/ds390/gen.h
13248         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13249         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
13250         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
13251
13252 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13253
13254         * src/z80/gen.c (genRet): fixed bug #524753
13255         * src/z80/gen.c (genCast): fixed internal error on cast from
13256         pointer to long
13257         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
13258         fix for bug #477835 to the z80
13259         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
13260         for tracking iCodes in the peephole optimizer for z80
13261
13262 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13263
13264         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
13265         the other part of bug #814548
13266         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
13267
13268 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
13269
13270         * src/SDCCcse.c: fixed part of bug #814548
13271
13272 2003-09-28  Borut Razem <borut.razem AT siol.net>
13273
13274         * src/asm.c: rewrite of printILine() to use temporary file instead
13275           a pipe
13276         * src/xa51/main.c: commented out declaration of int rewinds
13277
13278 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13279
13280         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
13281
13282 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13283
13284         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
13285         * src/asm.c (printILine): Fixed bug #811015
13286
13287 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13288
13289         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
13290         freeing.
13291
13292 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13293
13294         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
13295         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
13296         to correctly handle general case of AOP_PAIRPTR
13297         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
13298
13299 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13300
13301         * src/mcs51/ralloc.c (fillGaps),
13302         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
13303         register positioning bug)
13304
13305 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
13306
13307         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
13308
13309 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13310
13311         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
13312         genCodePointerGet, genGenPointerGet, genFarPointerSet,
13313         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
13314         (ralloc doesn't intentionally do this now, but perhaps later)
13315         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
13316         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
13317         register positioning bugs (Fixed bug #762602 and #795325)
13318         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
13319         (Fixed bug #808779)
13320         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
13321         lines that --i-code-in-asm generates
13322
13323 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13324
13325         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
13326         trying to fclose a FILE* that was already closed.
13327
13328 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13329
13330         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
13331         of const struct should be treated as if const themselves)
13332
13333 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
13334
13335         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
13336
13337 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13338
13339         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
13340         Unix (/n) and DOS (/r/n) line terminations.
13341
13342 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13343
13344         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
13345         bug #613775
13346
13347 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13348
13349         * src/mcs51/gen.c (genFunction, genEndFunction),
13350         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
13351         and restore of EA so that stack offsets to parameters are
13352         correct when using both critical and reentrant/stack-auto.
13353         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
13354         size (can be triggered in error if sloc is shared between
13355         different sized objects)
13356         * device/include/float.h: fixed macros to explicitly use
13357         unsigned long where needed
13358
13359 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
13360
13361         Feature req. 799831: added code to allow nesting of critical functions
13362         * src/mcs51/gen.c (genFunction, genEndFunction)
13363         * src/ds390/gen.c (genFunction, genEndFunction)
13364
13365 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13366
13367         * src/SDCCsymt.c (sclsFromPtr),
13368         * src/SDCCsymt.h,
13369         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
13370         support for standard C idiom of memory mapped variables; for
13371         example, *((xdata int*)0x1234) = 1 is now internally equivalent
13372         to xdata int at 0x1234 tempvar = 1.
13373         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
13374         provided by Akiya ISHIDA
13375
13376 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
13377
13378         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
13379         * src/SDCCval.c (constVal): added reduction from int to char
13380         * src/SDCCval.c (valMult, valDiv): fixed sign handling
13381         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
13382         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
13383         to ignore the sign
13384         * support/regression/tests/shifts.c: fixed
13385
13386 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13387
13388         * src/z80/gen.c (genXor): Fixed bug #805445
13389
13390 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13391
13392         Fixed bug #621531 (const & volatile confusion in the type chain).
13393         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
13394         refer to the const or volatile state of the pointer itself.
13395
13396         * src/SDCCast.c
13397         * src/SDCCglue.c
13398         * src/SDCCicode.c
13399         * src/SDCCsymt.c
13400         * src/SDCCval.c
13401         * src/SDCC.y
13402         * src/SDCCsymt.h
13403         * src/pic/gen.c
13404         * src/pic/ralloc.c
13405         * src/pic16/gen.c
13406         * src/pic16/ralloc.c
13407         * support/regression/tests/const.c
13408
13409 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13410
13411         When checking for duplicated modules, use absolute paths
13412         instead of relative paths.  Files changed:
13413
13414         * as/mcs51/lklib.c
13415         * link/z80/lklib.c
13416
13417 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13418
13419         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
13420
13421 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13422
13423         * device/include/string.h: added size_t typedef, changed
13424         prototypes to use size_t, eliminated separate reentrant and
13425         non-reentrant declarations, added _memmove declaration
13426         * device/lib/_memcpy.c: changed to use size_t instead of int,
13427         changed /4 to >>2 to avoid division library call
13428         * device/lib/_memcmp.c,
13429         * device/lib/_memset.c,
13430         * device/lib/_strncat.c,
13431         * device/lib/_strncpy.c,
13432         * device/lib/_strncmp.c: changed to use size_t instead of int
13433         * device/lib/_memmove.c: new file (fixed bug #772294)
13434         * device/lib/Makefile.in: added _memmove.c
13435         * device/lib/z80/asm_strings.s: fixed bug #772290
13436         * support/regression/tests/bitfields.c: attempt to fix host assertion
13437         failure on amd64-unknown-linux2.2
13438
13439 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13440
13441         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
13442         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
13443         * as/z80/asmain.c (main): fixed bug #801766
13444
13445 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
13446
13447         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
13448         compilers
13449
13450 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13451
13452         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
13453         reported in bug #800609
13454
13455 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
13456
13457         * Top header beautifications in src/pic16 directory:
13458           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
13459           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
13460           pcoderegs.h, ralloc.c, ralloc.h
13461         * main.c: added top header and GPL license notice
13462         * pcode.c: fixed the if-conditional warning
13463
13464 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
13465
13466         * device/lib/_mullong.c: replaced int by short for gcc
13467
13468 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13469
13470         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
13471         and JUMPTABLE iCodes properly now (worked by accident before)
13472         * src/mcs51/gen.c (leftRightUseAcc),
13473         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
13474         iCode properly now. Use getSize instead of nRegs since a & b
13475         aren't part of the nRegs tally.
13476
13477 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
13478
13479         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
13480         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
13481           before instructions that use the _STATUS register
13482
13483 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
13484
13485         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
13486         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
13487         fetching of the pointer
13488         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
13489         copied from genNearPointerSet()
13490         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
13491         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
13492         If they pop r0/r1 they must be called in the opposite order than aopOp().
13493         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
13494         (resp. --stack-auto), prepared for --xstack
13495
13496 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13497
13498         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
13499
13500 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
13501
13502         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
13503         these ports have their own __sdcc_external_start()
13504
13505 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
13506
13507         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
13508         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
13509         type for bits was changed. It resulted in bit variables becoming
13510         global, which is not permitted in PIC 14 assembly output.
13511
13512 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13513
13514         * doc/sdccman.lyx: various additions and updates. Rearranged sections
13515
13516 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13517
13518         Z80 and MCS51 linkers complaint if a public symbol is defined
13519         in more than one library module:
13520
13521         * as/mcs51/lklib.c
13522         * link/z80/lklib.c
13523         * as/mcs51/Makefile.in
13524
13525 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13526
13527         A few small changes that speed up the peephole optimizer.
13528
13529         * src/SDCCpeeph.c
13530
13531 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13532
13533         Try to make the peephole optimizer smarter by maintaining
13534         an association between the assembly source code and the
13535         iCodes that originated them. Put this information to use
13536         with a new peephole rule condition "notVolatile" so that
13537         the rules can be aggressive yet still safe.
13538
13539         * src/SDCCpeeph.c
13540         * src/SDCCpeeph.h
13541         * src/mcs51/gen.c
13542         * src/mcs51/peeph.def
13543
13544 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13545
13546         Fixed bug #741761
13547
13548         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
13549         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
13550         if the left or right operand symbols have the accuse flag set.
13551
13552 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13553
13554         Changed the type of the result of the ! (NOT) operator to char;
13555         previously it returned the same type as the source. This allows
13556         us to eliminate all the genFloatNot functions (all of its target
13557         implementations were very buggy) since !float can use the same
13558         code as !long now.
13559
13560         * src/SDCCicode.c (ast2iCode): ! returns char
13561         * src/mcs51/gen.c (genNot, genNotFloat),
13562         * src/ds390/gen.c (genNot, genNotFloat),
13563         * src/z80/gen.c (genNot, genNotFloat),
13564         * src/pic/gen.c (genNot, genNotFloat),
13565         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
13566
13567 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
13568
13569         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
13570         1. Interrupt would not compile properly. Ensure PCLATH register is saved
13571            during interrupts. Ensure WSAVE is located at a shared bank address.
13572         2. Fixed page selection in some places
13573         3. Fixed BTFSS/C to where necessary use registers directly and not simply
13574            the registers name strings.
13575         4. Fixed "signed / unsigned compare" compiler warnings.
13576         5. The PIC port manages its own allocation of the general purpose
13577            registers, but makes no attempt to reuse them. As a result when
13578            compiling it soon runs out of general purpose registers. Some
13579            additional code was added to the files pcode.c and device.c to walk
13580            through the function call tree and rename the registers so that they
13581            get reused.
13582
13583         * src/pic/device.c
13584         * src/pic/gen.c
13585         * src/pic/glue.c
13586         * src/pic/pcode.c
13587         * src/pic/pcode.h
13588         * src/pic/ralloc.c
13589         * src/pic/ralloc.h
13590         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
13591         genPlus() & genMinus() when the result is the same as left or right
13592
13593 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13594
13595         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
13596
13597 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13598
13599         Made bitfield a distinct type from bit so that bitfields
13600         convert as per ANSI C and bits retain their traditional
13601         boolean style behaviour. Implemented bitfield support in
13602         the z80 port.
13603
13604         * src/SDCCsymt.h,
13605         * src/SDCCsymt.c,
13606         * src/SDCCast.c,
13607         * src/cdbFile.c,
13608         * src/mcs51/gen.c,
13609         * src/ds390/gen.c: bit v bitfield split
13610         * src/z80/gen.c: New support for bitfields
13611         * support/regression/tests/bitfields.c: reenabled z80,
13612         added more tests
13613
13614 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13615
13616         Rules 246.x, 247.x relate to bitfields, the others speed up
13617         access to xdata mapped I/O devices.
13618
13619         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
13620
13621 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13622
13623         Cleaned up genPackBits and genUnpackBits and added two helper
13624         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
13625         for literal assignments in genPackBits (thanks to Frieder for
13626         reminding me).
13627
13628         * src/mcs51/gen.c
13629         * src/ds390/gen.c
13630
13631 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13632
13633         Fixed bug #748310 (pointer to function type mishandled when the
13634         function name is omitted). Also fixed a SIGSEGV when a function
13635         attribute (reentrant, etc) is used on a non-function or on a
13636         function but misplaced before the parameter list.
13637
13638         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
13639         bug #748310
13640         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
13641         * support/Util/SDCCerr.h,
13642         * support/Util/SDCCerr.c: Added func attr misuse error msg
13643
13644 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
13645
13646         Fixed bug #787649 by anonymous
13647         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
13648         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
13649
13650 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13651
13652         Fixed numerous bitfield problems.
13653
13654         * src/SDCC.y: More bitfield related error checking
13655         * src/SDCCsymt.h,
13656         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
13657         * support/Util/SDCCerr.h,
13658         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
13659         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
13660         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
13661         * support/regression/tests/bitfields.c: tests added
13662
13663 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13664
13665         Made the constant following the "interrupt" keyword optional. If
13666         omitted, the function will not automatically be given an entry
13667         in the interrupt vector table (similar to #pragma NOIV, but
13668         less syntacticly kludgy). The interrupt number is also now
13669         range checked. Also fixed a bug in the high order bit example
13670         in the manual.
13671
13672         * src/SDCC.y
13673         * src/SDCCmem.c
13674         * src/SDCCglue.c
13675         * src/SDCCsymt.h
13676         * support/Util/SDCCerr.c
13677         * support/Util/SDCCerr.h
13678         * doc/sdccman.lyx
13679
13680 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
13681
13682         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
13683         * src/SDCCicode.c (operandOperation): rewritten some ops
13684         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
13685         * src/SDCCsymt.c (computeType): literals are handled the same way as any
13686         other type
13687         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
13688         be re-activated by defining REDUCE_LITERALS)
13689         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
13690         unsigned, but are signed by default
13691         * src/SDCCval.c (constVal): rearranged
13692         * src/SDCCval.c (valMod): preliminary fix
13693         * src/SDCCval.c (valCastLiteral): use TYPE_* types
13694         * support/regression/literalop.c: added, work in progress
13695
13696 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13697
13698         Generate warnings for useless declarations like "char data;"
13699         that don't do what new users expect.
13700
13701         * src/SDCC.y
13702         * support/Util/SDCCerr.h
13703         * support/Util/SDCCerr.c
13704
13705 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
13706
13707         * src/SDCCval.c (valMult): fix overflow detection of negative int
13708
13709 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13710
13711         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
13712
13713         Changes to support big endian targets:
13714
13715         * src/ports.h
13716         * src/SDCCglue.c
13717         * src/avr/main.c
13718         * src/ds390/main.c
13719         * src/izt/i186.c
13720         * src/mcs51/main.c
13721         * src/pic/main.c
13722         * src/pic16/main.c
13723         * src/xa51/main.c
13724         * src/z80/main.c
13725
13726 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
13727
13728         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
13729         * device/lib/time.c: fixed warning "integer overflow in expression"
13730
13731 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
13732
13733         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
13734         * src/SDCCval.c (constVal): changed default to signed; hex and octal
13735         constants are unsigned; added recognition of "u" flag for unsigned
13736         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
13737         * src/SDCCval.c (valDiv, valMod): fixed signdness
13738         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
13739         signedness of modulo, left and right shift
13740         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
13741         * support/Util/SDCCerr.h: added warning W_INT_OVL
13742         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
13743         * src/SDCCast.c (ast_print): improved output of constants
13744
13745 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13746
13747         Fixed some warnings when building with MSVC:
13748
13749         * as/mcs51/asdata.c
13750         * as/z80/asdata.c
13751         * as/mcs51/asm.h
13752         * as/z80/asm.h
13753         * link/z80/aslink.h
13754         * link/z80/lkdata.c
13755         * link/z80/lkeval.c
13756         * link/z80/lkgb.c
13757         * link/z80/lkihx.c
13758         * link/z80/lks19.c
13759         * link/z80/lksym.c
13760         * support/cpp2/cpplib.c
13761         * src/ds390/gen.c
13762         * src/mcs51/gen.c
13763
13764 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
13765
13766         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
13767
13768 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13769
13770         * support/librarian/clean.mk: Do not remove Makefile.
13771         * support/librarian/Makefile: added.
13772
13773 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13774
13775         Added librarian to MSVC build:
13776         * all.dsp
13777         * sdcc.dsw
13778         * support/librarian/librarian.dsp
13779
13780         'configure' not needed for librarian, removed:
13781         * support/librarian/configure
13782         * support/librarian/configure.in
13783         * support/librarian/config_in.h
13784         * support/librarian/Makefile.in
13785
13786         Hopefully these ones built the librarian and the rest of sdcc properly:
13787         * Makefile
13788         * Makefile.common.in
13789
13790         Messed up 'configure', so revert to previous version:
13791         * configure
13792         * configure.in
13793
13794 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
13795
13796         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
13797         there, while the mantissa of a double is "only" 53 bits wide.
13798
13799 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13800
13801         Adding sdcclib to the build.  MSVC project coming soon.
13802         Files added/changed:
13803
13804         * support/librarian/clean.mk
13805         * support/librarian/configure
13806         * support/librarian/configure.in
13807         * support/librarian/config_in.h
13808         * support/librarian/Makefile.bcc
13809         * support/librarian/Makefile.in
13810         * support/librarian/sdcclib.c
13811         * Makefile.bcc
13812         * Makefile
13813         * Makefile.common.in
13814         * configure
13815         * configure.in
13816
13817 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13818
13819         Linker now complaints if linked modules have conflicting options, for
13820         example, one compiled using --model-large and another one compiled with
13821         --model-small.  The following files were modified:
13822
13823         * as/mcs51/asdata.c
13824         * as/mcs51/aslink.h
13825         * as/mcs51/asm.h
13826         * as/mcs51/asmain.c
13827         * as/mcs51/asout.c
13828         * as/mcs51/i51pst.c
13829         * as/mcs51/lkdata.c
13830         * as/mcs51/lklibr.c
13831         * as/mcs51/lkmain.c
13832         * as/z80/asdata.c
13833         * as/z80/asm.h
13834         * as/z80/asmain.c
13835         * as/z80/asout.c
13836         * as/z80/z80pst.c
13837         * link/z80/aslink.h
13838         * link/z80/lkdata.c
13839         * link/z80/lklibr.c
13840         * link/z80/lkmain.c
13841         * src/SDCCglue.c
13842
13843 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13844
13845         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
13846         as/mcs51/lklibr.c: Generate a warning when a library is not found.
13847
13848 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
13849
13850         * src/z80/mappings.i: fix _mul[us][int,long] entries
13851
13852 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13853
13854         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
13855
13856 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
13857
13858         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
13859         * support/regression/tests/bitopcse.c: added
13860         fixed warning:
13861         * src/avr/gen.c:
13862         * src/pic/gen.c:
13863         * src/pic16/gen.c:
13864         * src/z80/gen.c:
13865         * src/xa51/gen.c:
13866
13867 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13868
13869         added support for new library format to z80, gbz80 linkers:
13870         *link/z80/aslink.h
13871         *link/z80/lklex.c
13872         *link/z80/lklib.c
13873         *link/z80/lklist.c
13874
13875 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
13876
13877         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
13878         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
13879
13880 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
13881
13882         added DUMMY_READ_VOLATILE:
13883         * src/SDCC.y:
13884         * src/avr/gen.c:
13885         * src/xa51/gen.c:
13886         * src/z80/gen.c:
13887         * src/pic/gen.c:
13888         * src/pic16/gen.c:
13889         * src/mcs51/gen.c:
13890         * src/ds390/gen.c:
13891         * src/SDCCcse.c (algebraicOpts): many improvements
13892         * src/SDCCcse.h: removed algebraicOpts()
13893         * src/SDCCicode.c (picDummyRead): added
13894
13895 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13896
13897         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
13898         "Insufficient space in data memory".
13899
13900 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13901
13902         * src/mcs51/gen.c: fixed bug #771358
13903         * src/z80/gen.c: fixed bug #759087
13904
13905 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
13906
13907         * src/pic16/glue.c: minor cleanup by Vangelis
13908
13909 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13910
13911         * device/include/regc515c.h: fixed #758477
13912         * device/lib/_gptrget.c: saving some cycles in generic pointer get
13913         * device/lib/_gptrput.c: saved a few bytes
13914         * my tab spacing is 8, yours too?)
13915         * device/lib/_ser.c: process RX bytes earlier than TX bytes
13916         * device/lib/serial.c: process RX bytes earlier than TX bytes
13917         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
13918
13919 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13920
13921         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
13922
13923 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13924
13925     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
13926
13927 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
13928
13929         * device/lib/Makefile.in: bad fix, reverted to 1.43
13930
13931 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
13932
13933         * device/lib/Makefile.in: added missing z80 object files
13934
13935 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
13936
13937         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
13938         pic16 progress by Vangelis:
13939         * src/SDCCglobl.h:
13940         * src/SDCCmain.c:
13941         * src/pic/Makefile:
13942         * src/pic:
13943         * pic/Makefile:
13944         * pic16/device.c:
13945         * pic16/device.h:
13946         * pic16/gen.c:
13947         * pic16/gen.h:
13948         * pic16/genarith.c:
13949         * pic16/glue.c:
13950         * pic16/main.c:
13951         * pic16/pcode.c:
13952         * pic16/pcode.h:
13953         * pic16/pcodepeep.c:
13954         * pic16/peeph.def:
13955
13956 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13957
13958     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
13959
13960 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13961
13962     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
13963     added gbz80 build to MSVC project.
13964     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
13965     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
13966     from 8051 stuff and setup so it links using a .lnk file.
13967
13968 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13969
13970     * support/librarian/sdcclib.c: sdcc librarian.
13971     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
13972     with sdcclib.
13973
13974 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13975
13976     * as/mcs51/lkmain.c: properly handle extensions in function afile.
13977
13978 2003-07-02  Borut Razem <borut.razem AT siol.net>
13979
13980         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
13981         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
13982         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
13983         src/xa51/main.c, src/z80/main.c:
13984         virtualization of glue() function: each port has it's own glue function,
13985         which is accessed by do_glue function pointer in PORT.general structure
13986
13987 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
13988
13989         * DS800C400 fun, improved ROM interface and tinibios.
13990
13991 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
13992
13993         * More support for DS80C400. Now includes beginning of interface to ROM.
13994
13995 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
13996
13997         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
13998
13999 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14000
14001         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
14002
14003 2003-06-19  Borut Razem <borut.razem AT siol.net>
14004
14005         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
14006
14007 2003-06-19  Borut Razem <borut.razem AT siol.net>
14008
14009         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
14010         fixed Z80 port - crt0.o: cannot open.
14011
14012 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
14013
14014         * support/Util/MySystem.c (merge_command): revert bad fix
14015
14016 2003-06-18  Borut Razem <borut.razem AT siol.net>
14017
14018         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
14019
14020 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14021
14022         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
14023         option --use-stdout sends errors to stdout instead of stderr.
14024
14025 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
14026
14027         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
14028
14029 2003-06-15  Borut Razem <borut.razem AT siol.net>
14030
14031         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
14032         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
14033         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
14034         fixed width array of pointers replaced with sets;
14035         multiple include and lib paths ared transferred to preprocessor and linker
14036         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
14037         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
14038         fixed width array of pointers
14039         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
14040         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
14041         fixupPath(), getPathDifference()
14042         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
14043         fixed width array of pointers
14044
14045 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
14046
14047         * src/pic16/ralloc.c: fix warnings
14048         * src/pic16/pcode.c: fix warning
14049
14050 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
14051
14052          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
14053         know all the details, but essentially this set of changes enable
14054         the pic16 port to generate movff instructions and generate assembler
14055         directives,
14056         * src/SDCCmain.c:
14057         * src/pic16/gen.c:
14058         * src/pic16/glue.c:
14059         * src/pic16/pcode.c:
14060         * src/pic16/device.c:
14061         * src/pic16/main.c:
14062         * src/pic16/pcode.h:
14063         * src/pic16/pcoderegs.c:
14064         * src/pic16/ralloc.c:
14065         * src/pic16/ralloc.h:
14066
14067 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14068
14069         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
14070         added option --vc, so sdcc errors and warnings are compatible with
14071         Microsoft Visual Studio.
14072
14073 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14074
14075         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
14076           device/lib/libfloat.lib: added atof function.
14077
14078 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
14079
14080         * doc/sdccman.lyx: updated to Lyx 1.3
14081         * doc/cdbfileformat.lyx: updated to Lyx 1.3
14082         * doc/test_suite_spec.lyx: updated to Lyx 1.3
14083         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
14084
14085 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
14086
14087         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
14088
14089 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14090
14091         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
14092           additions to the "related tools/documentation" section
14093
14094 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
14095
14096         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
14097
14098 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
14099
14100         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
14101         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
14102
14103 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
14104
14105         * doc/sdccman.lyx: fix double dash and other minor things
14106         * doc/Makefile: fix double dash
14107
14108 2003-05-28  Karl Bongers(patches from Martin Helmling)
14109         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
14110           condition and ignore commands.
14111
14112 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14113
14114         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
14115           is in parts still quite out of date, I did changes as far as I felt makes sense
14116           for a non-native english speaker.
14117           Please feel free to add to the manual or to correct my changes.
14118         * doc/Makefile: undid touching the date of intermediate tex files.
14119
14120 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14121
14122         * doc/sdccman.lyx: Manual has an index now
14123
14124 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
14125
14126         Finalize muluint/mulsint and mululong/mulslong merging:
14127         * device/lib/_mulint.c
14128         * device/lib/_mullong.c
14129         * device/lib/gbz80/mul.s
14130         * device/lib/gbz80/stubs.s
14131         * device/lib/z80/mul.s
14132         * device/lib/z80/stubs.s
14133         * src/SDCCsymt.c (initCSupport)
14134
14135 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14136
14137         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
14138         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
14139           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
14140           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
14141           instead of /Zm500.
14142
14143 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14144
14145         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
14146           the regression tests I'm not brave enough to enable 245.b, 245.c
14147         * doc/sdccman.lyx: added latex preamble for hyperref package.
14148           Using pdflatex this will give you a hyperlinked pdf file with
14149           bookmarks. (prepend '%' before /usepackage if this breaks something)
14150
14151 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14152
14153          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
14154
14155 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
14156
14157         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
14158
14159 2003-05-21    <johan AT balder>
14160
14161         * src/SDCCglue.c (printIval): fixed bug #739934
14162
14163 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
14164
14165         Applied patch from bug 737905 (renamed yylineo to mylineno):
14166         * src/altlex.c
14167         * src/SDCCast.c
14168         * src/SDCglobl.h
14169         * src/SDCC.lex
14170         * src/SDCCsymt.c
14171         * src/SDCCval.c
14172         * src/pic16/pcode.c: Cleaned warnings
14173         * src/pic16/pcodeflow.c: Cleaned warnings
14174         * src/pic16/pcoderegs.c: Cleaned warnings
14175
14176 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
14177
14178         * src/pic16/pcode.c: Cleaned warnings
14179         * src/pic16/pcodepeep.c: Cleaned warnings
14180         * src/pic16/ralloc.c: Cleaned warnings
14181
14182 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
14183
14184         * doc/sdccman.lyx: fixed bug 739745
14185         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
14186
14187 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
14188
14189         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
14190         it can be defined with CFLAGS when running configure
14191         * src/SDCCmain.c: fixed compiling + linking with object files
14192
14193 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
14194
14195         * configure.in: configure for pic16 port,
14196             added --disable-pic16-port
14197         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
14198         * src/SDCCmain.c: linkOptions is changed to set *,
14199             added if/endif conditional macros to remove options help
14200             messages from optionsTable when a port is not configured, added
14201             support for the PIc16 port in the ports table, when executing
14202             the compiler with no port specified on command line, a default
14203             port is selected with the new macro DEFAULT_PORT which is
14204             defined in port.h, in setDefaultOptions() linkOptions is removed
14205             from initialization assignment, since now it is a set,
14206             parseCmdLine uses setParseWithComma for linkOptions, in
14207             linkEdit() linkOptions are accessed with new function indexSet()
14208             which returns the i'th item of a set variable. See SDCCset.c, in
14209             linkEdit() when calling buildCmdLine(), added linkOptions as
14210             last argument. Now users can pass arguments to gplink via the
14211             -Wl option, main() uses pic16glue() to glue up pic16 programs
14212         * src/SDCCpeeph.c: various changes to support pic16
14213         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
14214             return the i'th item of the set
14215         * src/SDCCset.h: added function prototype for indexSet()
14216         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
14217         * src/clean.mk: added pic16 in CLEANALLPORTS variable
14218         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
14219             added macro DEFAULT_PORT
14220         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
14221         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
14222             generated
14223         * src/pic16/glue.c: commented out some error producing lines
14224         * src/pic16/main.c: __config directives are commented out to stop
14225             gpasm complaining and test the linkage with gplink, _linkCmd and
14226             _asmCmd changed to be more gplink and gpasm friendly
14227         * src/pic16/peeph.def: peep rule 3 is commented out, since it
14228             produced an error when parsed, peep rule 12 is added to utilize
14229             movff, but it is commented out since the pCode does not support
14230             yet a command with 2 address arguments
14231
14232 2003-05-18    <johan AT balder>
14233
14234         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
14235         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
14236 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
14237
14238         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
14239   Added feature to script commands from file.
14240
14241 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
14242
14243         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
14244         * src/SDCCutil.c: include ctype.h for win32
14245
14246 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
14247
14248         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
14249
14250 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
14251
14252         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
14253   Fixed so you can set breakpoints prior to run, run does not stop
14254   on entry now.  Add tbreak.  Other enhancements and fixes for use
14255   with ddd.
14256
14257 2003-05-12  Borut Razem <borut.razem AT siol.net>
14258
14259         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
14260
14261 2003-05-11  Borut Razem <borut.razem AT siol.net>
14262
14263         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
14264         the path of bin directory, so that PATH is the only env. variable, which has to be set
14265         in case of standard installation.
14266         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
14267         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
14268         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
14269
14270 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
14271
14272         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
14273         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
14274         temp files are in the port dir; clean the gen/test directory when
14275         generating new test.c
14276         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
14277         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
14278         * support/regression/tests/zeropad.c: added
14279
14280 2003-05-09    <johan AT balder>
14281
14282         * src/SDCCglue.c: fixed bug #597940
14283
14284 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
14285
14286         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
14287   cache sfr, optimize next,step, fix off by one sourceline,
14288   support ddd list function.
14289         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
14290
14291 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
14292
14293         * support/regression/HTMLgen.py: added compare_s2f()
14294         * support/regression/Makefile: redo 1.27
14295         * support/regression/generate-cases.py: redo 1.5
14296
14297 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
14298
14299         * support/regression/tests/float.c: workaround 33 bit hex constant
14300         * support/regression/tests/simplefloat.c: fix division for host
14301
14302 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
14303
14304         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
14305         that tame's the PIC's over-aggressive optimizer.
14306
14307 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14308
14309          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
14310          support for MSVC.
14311
14312 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
14313
14314         Initial support for DS80C400. "Hello world" runs on TINIm400
14315         (with polled I/O).
14316
14317 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
14318
14319          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
14320          * Some notes on ddd usage added in debugger/README
14321          Martin Helmling adding more features and fixes for ddd GUI debugger.
14322          Code added for nexti, stepi, up, down, and other adjustments.
14323
14324 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
14325
14326         * src/pic/pCodepeep.c non-wildcard asmops are now handled
14327         * src/pic/peeph.def Added two rules to optimize carry manipulation
14328         * src/pic/* removed debug printfs
14329
14330 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
14331
14332         * debugger/mcs51/cmd.c: added header newalloc.h
14333
14334 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
14335
14336         * as/Makefile: new EXEEXT
14337         * as/z80/Makefile: remove trailing slash of BUILDIR
14338         * as/z80/clean.mk: new EXEEXT
14339         * Makefile.common.in: add to CFLAGS (and others), don't replace it
14340         * support/cpp2/Makefile.in: new EXEEXT
14341         * src/pic/glue.c (pic14emitRegularMap): fixed warning
14342
14343 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
14344
14345         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
14346         EXEEXT was introduced to fix all related problems with targets
14347         "clean", "install" and "uninstall"; a couple of further flaws
14348         especially with "clean" have been fixed too
14349         * as/mcs51/Makefile.in
14350         * as/mcs51/clean.mk
14351         * as/z80/Makefile
14352         * Makefile
14353         * clean.mk
14354         * debugger/mcs51/Makefile.in
14355         * debugger/mcs51/clean.mk
14356         * link/z80/Makefile
14357         * link/z80/Makefile.in
14358         * link/z80/clean.mk
14359         * link/Makefile
14360         * packihx/Makefile.in
14361         * packihx/clean.mk
14362         * sim/ucsim/Makefile
14363         * sim/ucsim/clean.mk
14364         * sim/ucsim/avr.src/Makefile.in
14365         * sim/ucsim/avr.src/clean.mk
14366         * sim/ucsim/s51.src/Makefile.in
14367         * sim/ucsim/s51.src/clean.mk
14368         * sim/ucsim/xa.src/Makefile.in
14369         * sim/ucsim/xa.src/clean.mk
14370         * sim/ucsim/z80.src/Makefile.in
14371         * sim/ucsim/z80.src/clean.mk
14372         * sim/ucsim/main_in.mk
14373         * sim/ucsim/packages_in.mk
14374         * sim/ucsim/gui.src/Makefile.in
14375         * sim/ucsim/gui.src/serio.src/Makefile.in
14376         * sim/ucsim/gui.src/serio.src/clean.mk
14377         * src/Makefile.in
14378         * src/clean.mk
14379         * support/cpp2/Makefile.in
14380         * support/cpp2/clean.mk
14381         * support/makebin/Makefile
14382         * support/makebin/clean.mk
14383         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
14384         * doc/sdccman.lyx: --program-suffix no longer needed
14385
14386 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
14387
14388          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
14389          Martin Helmling added support for ddd GUI debugger.
14390          Code added to display assembly, set variables, and other commands
14391          to interface to ddd.
14392
14393 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
14394
14395         * as/Makefile: fix target clean
14396         * as/clean.mk: fix target clean
14397         * as/z80/clean.mk: fix target clean
14398
14399 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
14400
14401         * Makefile.common.in: added  AT EXEEXT AT
14402         * configure.in: removed all mingw32 stuff
14403         * configure: rebuilt from configure.in
14404         * doc/sdccman.lyx: updated section "installation"
14405         * support/scripts/sdcc_mingw32: adapted to configure
14406         * support/scripts/sdcc_cygwin_mingw32: added
14407
14408 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
14409
14410         * src/pic Added object file support for the PIC port
14411         * src/pic Applied patch from Craig Franklin (this started the object file support)
14412         * src/regression Updated the PIC regression tests for object files
14413
14414 2003-04-20  Borut Razem <borut.razem AT siol.net>
14415
14416         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
14417           lklex.c: In function `getfid':
14418           lklex.c:203: warning: array subscript has type `char'
14419         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
14420           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
14421         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
14422           stack handling macros
14423
14424 2003-04-19  Borut Razem <borut.razem AT siol.net>
14425
14426         * "handling space characters in file path" task:
14427         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
14428         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
14429         * support/Util/MySystem.h: make it self-sufficient
14430         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
14431           src/z80/main.c, sdcc/as/mcs51/lklex.c:
14432           handling space characters in file path
14433         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
14434           (it will be used by assemblers, which have their own includes, e.g. gpasm)
14435         * support/Util/MySystem.c: handling space characters in executable's path
14436
14437 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
14438
14439         * as/z80/Makefile: fix permanent rebuild of z80
14440         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
14441         * support/regression/tests/bitfields.c: added Johan's bitfields.c
14442
14443 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
14444
14445         * src/SDCCopt.c: add special case optimization to replace modulo by
14446           a power of two with a bitwise AND.
14447
14448 2003-04-18    <johan AT balder>
14449
14450         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
14451
14452 2003-04-17    <johan AT balder>
14453
14454         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
14455         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
14456
14457 2003-04-13  Borut Razem <borut.razem AT siol.net>
14458
14459         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
14460         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
14461           fixed mingw problem in adl_NORMALIZE_PATH
14462
14463 2003-04-12  Borut Razem <borut.razem AT siol.net>
14464
14465         * fixed "#pragma SAVE/RESTORE can not be nested":
14466         * src/SDCC.lex: reworked pragma handling functions
14467         * sdcc/src/SDCCglobl.h: reworked stack handling macros
14468         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
14469
14470 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
14471
14472         * src/SDCCutil.c (pathEquivalent): defined but not used
14473         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
14474         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
14475         * configure: rebuilt from configure.in
14476         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
14477         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
14478         * device/include/Makefile.in: replace sdcc_datadir
14479         * device/lib/Makefile.in: replace sdcc_datadir
14480         * Makefile.common.in: add LDFLAGS from configure
14481         * packihx/Makefile.in: use LDFLAGS
14482         * src/Makefile.in: use LDFLAGS
14483         * support/cpp2/Makefile.in: add LDFLAGS from configure
14484         * support/makebin/Makefile: use LDFLAGS
14485         * .version: bumped version number to 2.3.5
14486
14487 2003-04-12  Borut Razem <borut.razem AT siol.net>
14488
14489         * completed "different paths" task:
14490         * src/SDCCmacro.c: fixed bug in handling quotes
14491         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
14492         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
14493
14494 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
14495
14496         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
14497
14498 2003-04-11 kevin Vigor <kevin AT vigor.nu>
14499
14500         * ds390/gen.c ds390/peeph.def: fix bug 706781
14501
14502 2003-04-11  Borut Razem <borut.razem AT siol.net>
14503
14504         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
14505
14506 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
14507
14508         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
14509         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
14510          set - this bit used to not be set...).
14511         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
14512           bad code in PIC Port
14513         * src/regression/and2.c added to test bug 609268
14514         * src/regression/Makefile added and2.c to regression test
14515
14516
14517 2003-04-08    <johan AT CP255758-A>
14518
14519         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
14520         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
14521         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
14522
14523 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
14524
14525         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
14526         fix bug #487815
14527         * support/cpp2/Makefile.in: fix bug #487815
14528         * configure: rebuilt from configure.in
14529         * Makefile.common.in: docdir changed, new path suffixes
14530         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
14531         * sdcc_vc_in.h: reflect changes from sdccconf.h
14532         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
14533         * src/SDCCutil.h: remove BINDIR hack
14534         * doc/sdccman.lyx: update new path hierarchy
14535
14536 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
14537
14538         * src/SDCCpeeph.c: added okToRemoveSLOC test
14539
14540 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
14541
14542         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
14543
14544 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
14545
14546         * src/SDCCpeeph.c: added labelIsReturnOnly test
14547         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
14548
14549 2003-04-05    <johan AT balder>
14550
14551         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
14552         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
14553         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
14554         * src/SDCCast.c: fixed a warning
14555         * src/SDCCast.h: fixed a warning
14556         * src/SDCCicode.c (operandFromAst): fixed a warning
14557
14558 2003-04-04    <johan AT balder>
14559
14560         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
14561         * src/SDCCast.c (decorateType): fixed bug #715076
14562         * src/SDCC.y: fixed bug #702907
14563
14564 2003-04-03    <johan AT balder>
14565
14566         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
14567         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
14568         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
14569         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
14570         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
14571
14572 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
14573
14574         * _decdptr.c: fix return values
14575         * _gptrget.c: fix return values
14576         * _gptrgetc.c: fix return values
14577         * _gptrput.c: fix return values
14578         * _mulint.c: fix return values
14579         * as/z80/Makefile: fix 'make -j' problem
14580
14581 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
14582
14583         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
14584         * configure.in: big cleanup, updated to autoconf 2.5x
14585         * configure: rebuilt from configure.in
14586         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
14587         * sdcc_vc_in.h: reflect changes from sdccconf.h
14588         * doc/Makefile: fixed a flaw in "make install"
14589
14590 2003-04-02    <johan AT balder>
14591
14592         * src/ds390/gen.c (genCmp): no comments
14593         * src/mcs51/gen.c (genCmp): no comments
14594         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
14595         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
14596
14597 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
14598
14599         * support/regression/generate-cases.py: place generated file in given sub directory
14600         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
14601         * support/regression/Makefile: improvements for 'make -j';
14602         side effect: it's simpler and faster now
14603
14604 2003-03-31  Borut Razem <borut.razem AT siol.net>
14605
14606         * src/z80/main.c: link-{port} and as-{port} defined without path
14607         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
14608
14609 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
14610
14611         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
14612
14613 2003-03-30  Borut Razem <borut.razem AT siol.net>
14614
14615         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
14616           changed type of list parameter to set
14617         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
14618         * src/port.h: changed type of do_assemble() parameter to set
14619         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
14620           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
14621           definition of "cppoutfilename" macro with NULL value in preProcess()
14622         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
14623         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
14624         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
14625           replaced with set *binPathSet
14626         * shash_add() deallocates the item, if allready exsists, before adding the new one
14627         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
14628
14629 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
14630
14631         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
14632           a nested for loop bug in the PIC port
14633         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
14634           for loops
14635
14636 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
14637
14638         * support/Util/dbuf.h: remove C++ stuff to make it portable
14639
14640 2003-03-28  Borut Razem <borut.razem AT siol.net>
14641
14642         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
14643           literal strings in stringLiteral()
14644         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
14645         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
14646           to the project
14647
14648 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
14649
14650         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
14651
14652 2003-03-26    <johan AT balder>
14653
14654         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
14655         * src/ds390/gen.c (saveRegisters): catched symbol abuse
14656         * src/SDCCast.c (decorateType): fixed " -v < 3"
14657
14658 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
14659
14660         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
14661         Added Lenny Story's debug infrastructure changes:
14662         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
14663         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
14664         * src/cdbFile.c: added
14665         * src/SDCCdebug.c: added
14666         * src/SDCCdebug.h: added
14667         * src/SDCCast.c (createFunction)
14668         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
14669         * src/SDCCmain.c (parseCmdLine, main)
14670         * src/SDCCmem.c (redoStackOffsets)
14671         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
14672         * src/SDCCsymt.h
14673         * src/common.h
14674         * src/avr/gen.c (genAVRCode)
14675         * src/ds390/gen.c (gen390Code)
14676         * src/mcs51/gen.c (gen51Code)
14677         * src/pic/gen.c (genpic14Code)
14678         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
14679         * src/xa51/gen.c (genXA51Code)
14680         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
14681
14682 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14683
14684         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
14685         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
14686
14687 2003-03-22    <johan AT balder>
14688
14689         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
14690
14691 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
14692
14693         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
14694         * doc/cdbfileformat.lyx: added, written by Lenny Story
14695         * doc/Makefile: added cdbfileformat.lyx
14696         * doc/clean.mk: added cdbfileformat.lyx
14697
14698 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
14699
14700         * src/mcs51/peeph.def: fix bug #705773
14701
14702 2003-03-20    <johan AT balder>
14703
14704         An sfr/sbit can have an "at #" AND an initializer
14705         * src/SDCCsymt.c (checkSClass):
14706         * src/SDCCmem.c (allocGlobal):
14707         * src/SDCCmem.c (allocLocal):
14708         * src/SDCCast.c (createBlock):
14709
14710 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
14711
14712         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
14713
14714 2003-03-16    <johan AT balder>
14715
14716         Undid the hackup of const and volatile, the problem is much bigger
14717         * src/SDCC.y:1.65
14718         * src/SDCCast.c:1.171
14719         * src/SDCCglue.c:1.138
14720         * src/SDCCicode.c:1.146
14721         * src/SDCCsymt.c:1.150
14722         * src/SDCCval.c:1.65
14723
14724 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
14725
14726         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
14727         * src/ds390/gen.c (genAddrOf): fixed bug #704087
14728
14729 2003-03-13    <johan AT balder>
14730
14731         Hackup const and volatile modifiers in type chains a bit:
14732         * src/SDCC.y:1.63
14733         * src/SDCCast.c:1.169
14734         * src/SDCCglue.c:1.136
14735         * src/SDCCicode.c:1.143
14736         * src/SDCCsymt.c1.146
14737         * src/SDCCsymt.h1.59
14738         * src/SDCCval.c:1.63
14739
14740 2003-03-12    <johan AT balder>
14741
14742         * src/SDCCBBlock.h: more LRH debugging junk
14743         * src/SDCCcflow.h: more LRH debugging junk
14744         * src/SDCCloop.c: more LRH debugging junk
14745         * src/SDCC.y (struct_declaration): fixed bug #697590
14746         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
14747         * src/ds390/gen.c (aopForRemat): fixed bug #700031
14748         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
14749
14750 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14751         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
14752         test function names must now match exactly).
14753         * src/SDCCcse.c: added special case in findCheaperOp to allow
14754         extending a short integer. Makes less awful code for bug 700121 test case.
14755
14756 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14757
14758         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
14759         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
14760
14761 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14762
14763         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
14764         actually called (operandsNotEqual() was called for all
14765         operandsNotEqualX tests).
14766
14767 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14768
14769         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
14770         with shorter literals. Fixes bug 700121.
14771
14772 2003-03-11    <johan AT balder>
14773
14774         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
14775
14776 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
14777
14778         * src/SDCCloop.c (mergeRegions): an evil beast is dead
14779         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
14780
14781 2003-03-10  Borut Razem <borut.razem AT siol.net>
14782
14783         * src/SDCCmain.c: pipe preprocessor's output
14784         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
14785         * sdcc_vc_in.h: define pclose as _pclose for WIN32
14786         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
14787         which closes all pipes in pipeSet set
14788         * src/SDCCset.c: free deleted item in function deleteSetItem()
14789         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
14790         moved from z80 to src subproject
14791         * .version: increased version number to 2.3.4
14792
14793 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
14794
14795         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
14796         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
14797         * support/regression/ports/xa51/spec.mk: fix typo
14798
14799 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
14800
14801         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
14802
14803 2003-03-09  Borut Razem <borut.razem AT siol.net>
14804
14805         * src/SDCCmain.c: pipe preprocessor's output
14806         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
14807         * sdcc_vc_in.h: define pclose as _pclose for WIN32
14808         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
14809         which closes all pipes in pipeSet set
14810         * src/SDCCset.c: free deleted item in function deleteSetItem()
14811         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
14812         moved from z80 to src subproject
14813
14814 2003-03-09  Borut Razem <borut.razem AT siol.net>
14815
14816         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
14817         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
14818         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
14819         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
14820         * src/SDCCglobl.h: unification of WIN32 native definitions
14821
14822 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14823
14824         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
14825
14826 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
14827
14828         * src/configure.in:   check for endianess (even while cross-compiling)
14829         * src/configure:      check for endianess (even while cross-compiling)
14830         * src/configure_in.h: check for endianess (even while cross-compiling)
14831         * src/avr/gen.c:        remove old endianess stuff
14832         * src/mcs51/gen.c:      remove old endianess stuff
14833         * src/ds390/gen.c:      remove old endianess stuff
14834         * src/pic/gen.c:        remove old endianess stuff
14835         * src/pic/genarith.c:   remove old endianess stuff
14836         * src/pic/glue.c:       fix endianess check
14837         * src/pic16/gen.c:      remove old endianess stuff
14838         * src/pic16/genarith.c: remove old endianess stuff
14839         * src/pic16/glue.c:     fix endianess check
14840         * src/xa51/gen.c:       remove old endianess stuff
14841         * src/z80/gen.c:        fix endianess check
14842         * src/SDCCglue.c:       fix endianess check
14843         * src/ds390/peeph.def: fix bug 700036
14844
14845 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
14846
14847         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
14848         * src/configure: find appropriate data-types on host for SDCC's int and long
14849         * src/configure.in: find appropriate data-types on host for SDCC's int and long
14850         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
14851         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
14852
14853 2003-03-07    <johan AT balder>
14854
14855         Just a big NOOP:
14856                 some minor cleanups before the big shot
14857                 OP_DEFS and OP_USES now use Kevin's protection
14858                 new option --nolabelopt
14859
14860         * src/SDCCBBlock.c:
14861         * src/SDCCast.c,:
14862         * src/SDCCcflow.c:
14863         * src/SDCCcse.c:
14864         * src/SDCCicode.c:
14865         * src/SDCCicode.h:
14866         * src/SDCClabel.c:
14867         * src/SDCCloop.c:
14868         * src/SDCCmain.c:
14869         * src/ds390/ralloc.c:
14870         * src/mcs51/ralloc.c:
14871         * src/pic/ralloc.c:
14872         * src/xa51/ralloc.c:
14873         * src/z80/ralloc.c:
14874
14875 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
14876
14877         * src/pic/pcode.c (get_op): fix 64 bit warnings
14878         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
14879         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
14880         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
14881         * support/regression/tests/malloc.c: fix 64 bit warnings
14882
14883 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
14884
14885         * src/mcs51/gen.c (genMinus): fixed bug 696436
14886
14887 2003-03-02  Borut Razem <borut.razem AT siol.net>
14888
14889         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
14890
14891 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
14892
14893         * configure.in: test for mkstemp
14894         * sdccconf_in.h: add HAVE_MKSTEMP
14895
14896 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
14897
14898         * device/include/ctype.h: removed warning while using --stack-auto
14899         * device/include/malloc.h: removed warning while using --stack-auto
14900         * device/include/string.h: removed warning while using --stack-auto
14901
14902 2003-02-23  Borut Razem <borut.razem AT siol.net>
14903
14904         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
14905         because NDEBUG is defined (see man assert)
14906         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
14907
14908 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14909
14910         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
14911         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
14912
14913 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14914
14915         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
14916         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
14917
14918 2003-02-18    <johan AT balder>
14919
14920         * as/mcs51/asmain.c (asmbl): module can start with a digit
14921         * as/z80/asmain.c (asmbl): module can start with a digit
14922
14923 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
14924
14925         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
14926         * src/asm.c: fix pipe() for Mingw32
14927
14928 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
14929
14930         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
14931         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
14932         make -V work again; --c1mode reads now from stdin
14933         * doc/sdccman.lyx: added --c1mode
14934         * support/Util/SDCCerr.c: new messages for c1 mode
14935         * support/Util/SDCCerr.h: new messages for c1 mode
14936         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
14937
14938 2003-02-15    <johan AT balder>
14939
14940         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
14941
14942 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
14943
14944         * doc/sdccman.lyx: Environment variables, -o and other minor things
14945
14946 2003-02-14    <johan AT balder>
14947
14948         * src/xa51/main.c: before anyone really tries to use it :)
14949
14950         * Install doc's in share/sdcc/doc
14951         * removed some obsolete files
14952         * Do a proper make distclean and uninstall
14953         M Makefile.common.in
14954         R sdccbuild.sh
14955         M as/Makefile
14956         M device/include/Makefile.in
14957         M device/lib/Makefile.in
14958         M doc/sdccman.lyx
14959         M link/Makefile
14960         M sim/ucsim/doc/Makefile.in
14961         M src/clean.mk
14962         R src/avr/peeph.rul
14963         R src/xa51/peeph.rul
14964         M support/cpp2/Makefile.in
14965         M support/makebin/Makefile
14966
14967
14968 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
14969
14970         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
14971
14972 2003-02-10  Borut Razem <borut.razem AT siol.net>
14973
14974         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
14975         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
14976         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
14977         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
14978         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
14979         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
14980         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
14981         src/z80/Makefile.bcc: Borland Makefile cleanup
14982         * as/z80/Makefile.bcc: Added Borland Makefile
14983         * support/cpp2/borland.h: Removed
14984
14985 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
14986
14987         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
14988         * src/SDCC.lex: new pragma NOIV
14989         * src/SDCCglobl.h: new pragma NOIV
14990         * src/SDCCmem.c: new pragma NOIV
14991
14992 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
14993
14994         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
14995
14996 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
14997
14998         * src/SDCCmain.c: signal handling is switched off by --debug
14999         * doc/Makefile: small fix for install; use clean.mk again
15000         * doc/clean.mk: clean *.pdf and *.html too
15001
15002 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
15003
15004         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
15005         * device/lib/printfl.c: fix a ds390 bug by making it portable
15006         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
15007         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
15008         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
15009         * debugger/mcs51/cmd.c: converted multi-line string literals
15010         * sim/ucsim/globals.cc: converted multi-line string literals
15011         * src/SDCCmain.c: introduced signal handler to remove temp files
15012         * doc/Makefile: small tweaks, implement clean
15013         * doc: removed generated files
15014
15015 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15016
15017         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
15018         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
15019         Address Record is not correctly generated for DS390."
15020
15021 2003-02-02  Borut Razem <borut.razem AT siol.net>
15022
15023         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
15024         * as/mcs51/asm.h: fixed compilation with Borland C
15025         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
15026         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
15027         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
15028         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
15029         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
15030         src/z80/Makefile.bcc: delete $(LIB) only if exist
15031         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
15032
15033 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
15034
15035         * device/include/malloc.h: introduced NULL
15036         * device/include/string.h: introduced NULL
15037         * device/include/stdlib.h: introduced NULL
15038         * device/lib/_memcpy.c: removed NULL
15039         * device/lib/_strcat.c: removed NULL
15040         * device/lib/_strchr.c: removed NULL
15041         * device/lib/_strcmp.c: removed NULL
15042         * device/lib/_strcpy.c: removed NULL
15043         * device/lib/_strcspn.c: removed NULL
15044         * device/lib/_strlen.c: removed NULL
15045         * device/lib/_strncat.c: removed NULL
15046         * device/lib/_strncmp.c: removed NULL
15047         * device/lib/_strncpy.c: removed NULL
15048         * device/lib/_strpbrk.c: removed NULL
15049         * device/lib/_strrchr.c: removed NULL
15050         * device/lib/_strspn.c: removed NULL
15051         * device/lib/_strstr.c: removed NULL
15052         * device/lib/_strtok.c: removed NULL
15053         * device/lib/malloc.c: removed NULL, include own header
15054
15055 2003-02-02    <johan AT balder>
15056
15057         * 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
15058         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
15059         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
15060         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
15061         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
15062         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
15063
15064 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15065
15066         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
15067         area 'DATA'"
15068
15069 2003-02-01    <johan AT balder>
15070
15071         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
15072
15073 2003-01-31    <johan AT CP255758-A>
15074
15075         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
15076
15077 2003-01-30    <johan AT balder>
15078
15079         * src/SDCCBBlock.c: automatic bug detection
15080         * src/SDCCicode.c: automatic bug detection
15081
15082 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15083
15084         * src/SDCCglobl.h:   now --xram-size 0 works
15085         * src/SDCCmain.c:    now --xram-size 0 works
15086
15087 2003-01-29    <johan AT balder>
15088
15089         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
15090
15091 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15092
15093         * as/mcs51/aslink.h: Added options --xram-size and --code-size
15094         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
15095         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
15096         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
15097         * src/SDCCglobl.h:   Added options --xram-size and --code-size
15098         * src/SDCCmain.c:    Added options --xram-size and --code-size
15099
15100 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
15101
15102         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
15103         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
15104
15105 2003-01-27    <johan AT balder>
15106
15107         * src/SDCC.y: fixed bug #613764
15108
15109 2003-01-26    <johan AT balder>
15110
15111         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
15112         * src/SDCCsymt.h: fixed bug #673374
15113         * src/SDCCglue.c: fixed bug #661910
15114         * src/SDCCast.c: fixed bug #458099 and 673374
15115
15116 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
15117
15118         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
15119         * as/mcs51/strcmpi.h: added
15120         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
15121         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
15122         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
15123         * as/mcs51/assym.c: strcmpi -> as_strcmpi
15124         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
15125         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
15126         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
15127         * as/mcs51/Makefile.aslink: new module strcmpi
15128         * as/mcs51/Makefile.asx8051: new module strcmpi
15129         * as/mcs51/Makefil.bcc: new module strcmpi
15130         * as/mcs51/Makefile.in: new module strcmpi
15131         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
15132
15133 2003-01-26    <johan AT balder>
15134
15135         * src/SDCCglue.c: reverted back to 1.124
15136         * src/SDCCast.c: reverted back to 1.156
15137         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
15138
15139 2003-01-25    <johan AT balder>
15140
15141         * src/SDCCglue.c: A better fix for bug #661910
15142         * src/SDCCast.c: A better fix for bug #661910
15143         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
15144
15145 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
15146
15147         * src/Makefile.in: remove spawn.o
15148         * src/SDCCmain.c: remove spawn.h
15149         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
15150         * src/spawn.c: removed
15151         * src/spawn.h: removed
15152         * support/regression/ports/ds390/spec.mk: link with -r
15153
15154 2003-01-24    <johan AT CP255758-A>
15155
15156         * src/ds390/gen.c (aopOp): fixed bug #667458
15157         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
15158         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
15159         (createIvalCharPtr): an ival doesn't always have a storage class anymore
15160
15161 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
15162
15163         * src/mcs51/peeph.def: better assembler identation by Frieder
15164         * src/mcs51/gen.c: better assembler identation by Frieder
15165
15166 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
15167
15168         * as/z80/string.h: removed for gcc 3.2
15169         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
15170         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
15171
15172 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
15173
15174         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
15175         * src/SDCCpeeph.c (replaceRule): fix bug #663503
15176         * support/regression/Makefile: separate temp files for ports
15177         * support/regression/generate-cases.py: separate temp files for ports
15178         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
15179         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
15180
15181 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
15182
15183         * moved tinitalk to device/examples/ds390
15184
15185 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
15186
15187         * as/mcs51/lkmem.c: rflag is for DS390
15188         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
15189         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
15190                          (linkEdit): move mem- and map-files the same way as ihx-files
15191         * src/z80/main.c (_setDefaultOptions): removed --generic
15192         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
15193         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
15194         * src/pic/glue.c (picglue): --c1mode works again
15195         * src/pic16/glue.c (pic16glue): --c1mode works again
15196         * src/asm.c (printCLine): fix #660034
15197
15198 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
15199
15200         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
15201         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
15202         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
15203         * as/mcs51/lkmem (summary): better fix for sp problem
15204         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
15205         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
15206         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
15207                                               remove --stack-after-data
15208
15209 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
15210
15211         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
15212         * src/SDCCutil.c (join): ugly bug: missing '\0'
15213         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
15214
15215 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
15216
15217         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
15218         * src/port.h: typo
15219         * src/pic/main.c (_asmCmd): gpasm supports -o
15220         * src/z80/main.c: more general macros
15221         * device/lib/Makefile.in: remove intermediate files
15222
15223 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
15224
15225         * .version: Bumped version number to 2.3.3
15226         * src/SDCCBBlock.c: new option -o
15227         * src/SDCCglobl.h: new option -o
15228         * src/SDCCglue.c: new option -o
15229         * src/SDCCmain.c: new option -o
15230         * src/asm.c: new option -o
15231         * src/ds390/main.c: new option -o
15232         * src/pic/glue.c: new option -o
15233         * src/pic/pcode.c: new option -o
15234         * src/pic/ralloc.c: new option -o
15235         * src/pic16/glue.c: new option -o
15236         * src/pic16/pcode.c: new option -o
15237         * src/pic16/ralloc.c: new option -o
15238         * src/z80/main.c: new option -o
15239         * device/lib/Makefile.in: use -o
15240         * support/regression/ports/ds390/spec.mk: use -o
15241         * support/regression/ports/gbz80/spec.mk: use -o
15242         * support/regression/ports/mcs51/spec.mk: use -o
15243         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
15244         * support/regression/ports/z80/spec.mk: use -o
15245         * support/regression/ports/ucz80/spec.mk: use -o
15246         * support/regression/ports/xa51/spec.mk: use -o
15247         * support/regression/fwk/lib/timeout.c: fix usage string
15248
15249 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
15250         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
15251
15252 2003-01-07    <johan AT balder>
15253
15254         * src/SDCCast.c (decorateType): fixed bug #600035
15255
15256 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
15257         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
15258         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
15259         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
15260         * src/pic/pcode.c: outcommented unused variable to remove warnings
15261         * src/pic/ralloc.c: outcommented unused variable to remove warnings
15262
15263 2003-01-06    <karl AT turbobit.com>
15264         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
15265    regression tests.
15266
15267 2003-01-06    <johan AT balder>
15268
15269         * src/SDCCicode.c: fixed array add
15270
15271 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
15272         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
15273         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
15274
15275 2003-01-04    <johan AT balder>
15276
15277         * src/SDCCval.c (getNelements): fixed the initialized array of structures
15278
15279 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15280         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
15281
15282 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
15283         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
15284         * support/regression/tests/bug-524697.c: fit mem usage into 8032
15285
15286 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
15287         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
15288
15289 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
15290         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
15291
15292 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
15293         * src/mcs51/main.c: removed {bindir}{sep} from aslink
15294
15295 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15296
15297     * in /sdcc/as/mcs51/ changed these files in order to create an
15298     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
15299     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
15300     following files to include the previous two files: aslink.dsp,
15301     Makefile.aslink, Makefile.bcc, and Makefile.in.
15302
15303     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
15304     .adb instead of .cdb
15305
15306 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15307
15308         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
15309         value from option --iram-size.
15310
15311 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15312
15313         * /sdcc/as/mcs51/lklist.c: added boundary check before using
15314         dram[] array.
15315
15316 2002-09-18    <wiml AT hhhh.org>
15317
15318         * SDCClrange.h: exposed setFromRange() and setToRange()
15319         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
15320           packRegsForAccUse() (bug 542397)
15321         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
15322           multiple times and emitting the fetch operations more than once
15323           added aopGetUsesAcc() function to allow binary operators to
15324           fetch their operands in the correct order; made genMinus() emit
15325           compact code for X = LITERAL - Y
15326
15327 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15328         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
15329         sprintf() in line 1267.
15330
15331 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15332         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
15333         like ports.
15334
15335 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15336         Changes to aslink (All the changes are marked with 'JCF'):
15337
15338         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
15339         summary().
15340
15341         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
15342         area BSEG.  Also moves, if possible, the DATA area down into the internal
15343         ram so more space is available.
15344
15345         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
15346         sflag.
15347
15348         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
15349         not bytes.  Function summary() which creates a memory usage summary
15350         file with extension .mem.  Reports of overlaping stack and small stack
15351         size.  If the space for the stack is less than 16 bytes aslink trows a
15352         warning.
15353
15354         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
15355         the 8051.  Option 'y' for memory summary output file.
15356
15357         Changes to sdcc (All the changes are marked with 'JCF'):
15358
15359         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
15360
15361         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
15362         overlaying area for it (uses RegBankUsed[4]).
15363
15364         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
15365         bank zero as used by default.  By default aslink locates the stack
15366         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
15367         the creation of the .mem file.  Delegates the allocation of data area
15368         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
15369         the begining of the stack area to aslink.
15370
15371         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
15372         glue() in SDCCglue.c creates an area for it.
15373
15374 2002-09-03  Borut Razem <borut.razem AT siol.net>
15375         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
15376         sdcc/src/pic/glue.c:
15377         introduced atexit() handler for teporay files removal in case of
15378         errors, assertions, ...
15379
15380 2002-08-29  Borut Razem <borut.razem AT siol.net>
15381         * sdcc/support/cpp2/auto-host_vc_in.h:
15382         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
15383         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
15384         Maybe there is a similar problem with BORLANDC? It should be checked!
15385
15386         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
15387         corrected improper use of assert: the assignment to clr variable was done inside the assert.
15388         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
15389         was not executed, and the compiler (cl) launched a warning:
15390         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
15391
15392 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
15393         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
15394
15395 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
15396         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
15397
15398         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
15399           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
15400           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
15401           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
15402           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
15403           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
15404           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
15405         - added Release configuration in VS projects
15406         - review of compiler an linker options
15407         - VC .exe files are generated in bin_vc directory, not to interfere
15408           with binaries generated from other projects (cygwin, mingw, bcc ...)
15409
15410         * sdcc/src/yacc.dsp: added
15411
15412         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
15413         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
15414         and insert the version number definitions from .version
15415
15416         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
15417
15418         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
15419         added - genarate auto-host.h using auto-host_vc_in.h as template
15420
15421         * sdcc/sdcc_vc.h,
15422         removed from CVS, generated automatically
15423
15424 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
15425         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
15426
15427 2002-08-11  Borut Razem <borut.razem AT siol.net>
15428         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
15429
15430 2002-08-10  Borut Razem <borut.razem AT siol.net>
15431         * src/SDCCmain.c (main):
15432         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
15433         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
15434         The consequence was that some temporary files were not removed.
15435
15436         * src/SDCCglue.c:
15437         unification of code in functions tempfilename() and tempfile():
15438         function tempnam() is defined in Visual Studio 6.0 and .NET
15439
15440         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
15441
15442         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
15443           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
15444         - removed compiler command line option /WX: Treats all warnings as errors
15445         - update a list of source files, included into the project
15446
15447         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
15448           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
15449         changed project type to Generic Project so that can be correcly converted to VS.NET project
15450
15451         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
15452
15453         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
15454
15455         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
15456
15457         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
15458         added return 0 statements after assert() to make compiler happy
15459
15460         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
15461         added newline in the def file to keep MSC compiler satisfied
15462
15463         * sdcc/src/z80/gen.c:
15464         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
15465           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
15466         - solved MSC error in function aopDump()
15467
15468         * sdcc_vc.h: define PREFIX as "\\sdcc"
15469
15470 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
15471         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
15472
15473 2002-06-22  Scott Dattalo <scott AT dattalo.com>
15474         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
15475         - Rewrote the register banking algorithm.
15476         - Added pCode live-range analysis to registers (for now, only non-used and
15477         singly-used registers optimized away)
15478
15479         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
15480
15481         * 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.
15482
15483 2002-05-10  Scott Dattalo <scott AT dattalo.com>
15484         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
15485
15486 2002-04-22  Michael Hope  <michaelh AT vroom>
15487
15488         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
15489
15490         * configure.in (DD_COPT): Added include support required for gbdk.
15491
15492         * .version: Bumped version number just to increase it.
15493
15494         * src/SDCCmain.c: Added -nostdinc to the default options.
15495
15496 2002-04-15  Michael Hope  <michaelh AT vroom>
15497
15498         * device/lib/z80/printf.c (sprintf): Added.
15499
15500         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
15501
15502         * src/z80/peeph.def: Added transpose redundent load rule.
15503
15504         * src/z80/main.c: Added force callee saves for jaune.
15505
15506         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
15507
15508         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
15509
15510 2002-03-28  Johan Knol  <johan AT balder>
15511
15512         * src/SDCCval.c: fixed bug #532436
15513
15514 2002-03-14  Scott Dattalo <scott AT dattalo.com>
15515         * /src/port.h:
15516         Added "char *Processor" field to the port structure.
15517
15518         * /src/SDCCmain.c:
15519         Added -p option. Allows port dependent processor to be specified.
15520
15521         * all ports:
15522         Initialized the new field char *Processor field to NULL in all ports
15523
15524         * /src/pic/*:
15525         Compiler generated registers for interrupt context saving
15526         were not getting allocated.
15527
15528 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
15529
15530         * /src/SDCCast.c:
15531         Fixed left shift. Will promote the left side of a left shift
15532         if a) left shifting more than size of operand or b) when assigned
15533         to something size > size of left side
15534
15535 2002-03-14  Scott Dattalo <scott AT dattalo.com>
15536         * src/pic/*
15537         tons of changes. Register allocation has been
15538         rewritten. Added customization for the various PICs. Flow
15539         analysis is restructured. ...
15540
15541         * src/pic/device.h:
15542         Added
15543
15544         * src/pic/device.c:
15545         Added. device.c is a PIC port hack to accomodate variations
15546         in PIC devices.
15547
15548 2002-03-13  Michael Hope  <michaelh AT vroom>
15549
15550         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
15551
15552 2002-03-04  johanknol  <johanknol AT manik>
15553
15554         * /src/SDCCval.c: fixed
15555
15556         const unsigned char arr[][2] = { { 0, 1 } };
15557         t18.c:1: error: Initializer element is not constant
15558
15559 2002-03-04  bela  <bela AT manik>
15560
15561         * /device/include/mcs51reg.h:
15562         ds89c420 register definition update
15563
15564 2002-03-03    <johan AT FRIJA>
15565
15566         * support/Util/SDCCerr.c: did something, but don't no why anymore
15567
15568         * support/regression/tests/bug-524691.c: made it a little less shy
15569
15570         * src/SDCCast.c (decorateType): fixed bug #524697
15571
15572         * src/SDCCast.c: made some lineno improvements
15573
15574         * src/SDCCval.c (getNelements): changed warning to error
15575
15576         * src/SDCCglue.c (printIvalArray): changed warning to error
15577
15578         * src/SDCCicode.c: fixed a warning for mingw
15579
15580         * src/SDCCast.c (decorateType): fixed the << promotion for ops
15581
15582         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
15583
15584 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
15585
15586         * src/ds390/peeph.def:
15587         Added some more peephole rules
15588
15589         * src/ds390/gen.c: Various fixes & enhancements
15590
15591         * src/SDCClrange.c, src/SDCClrange.h:
15592         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
15593
15594         * src/ds390/ralloc.c:
15595         various fixes & enhancements (ds390) specific
15596
15597         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
15598         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
15599         from rallocs.
15600
15601         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
15602
15603 2002-03-02    <johan AT FRIJA>
15604
15605         * src/SDCCast.c (decorateType): fixed bug #524708
15606
15607         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
15608
15609         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
15610
15611 2002-03-01  Michael Hope  <michaelh AT vroom>
15612
15613         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
15614
15615         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
15616
15617 2002-03-01    <johan AT FRIJA>
15618
15619         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
15620
15621         * src/SDCCast.c (decorateType): fixed bug #524209
15622
15623         * src/SDCCval.c (valNot): fixed bug #524195
15624
15625 2002-02-26    <johan AT balder>
15626
15627         * src/xa51/gen.c: fixed a warning
15628
15629         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
15630
15631         * src/SDCCast.c (decorateType): fixed bug #522534
15632
15633 2002-02-23    <johan AT balder>
15634
15635         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
15636
15637 2002-02-22    <johan AT balder>
15638
15639         * src/SDCCast.c: fixed bug #514865
15640
15641         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
15642
15643 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
15644
15645         * sdcc/src/SDCCloop.c:
15646         Previous fix was not good. basic blocks that have "break" or "return" are
15647         not really partof a loop , but live ranges used in these blocks should
15648         be live thru the entire loop, so set partOfLoop but don't add them to
15649         loop region
15650
15651 2002-02-21    <johan AT FRIJA>
15652
15653         * src/SDCCcse.c: fixed bug #514308
15654
15655 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
15656
15657         * src/SDCCloop.c:
15658         Fixed BUG #519583. If a conditional block ended in a return/break
15659         statement inside a loop, it was not being considered part of the loop.
15660
15661         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
15662
15663 2002-02-10  Karl Bongers <karl AT turbobit.com>
15664
15665         * debugger/*:
15666         Fixed up SDCDB debugger somewhat.  Updated debugger/README
15667         with lots of comments and notes.
15668
15669         * device/examples/test2.c:
15670         Fix bug, "red" variable not being initialized(compiler complained).
15671
15672         * device/examples/Makefile, examples/test3.c:
15673         Add Makefile in device/examples folder, compiles test3.c
15674         for use as a multiple module SDCDB test case.
15675
15676         * sim/ucsim/cmd.src/cmdset.cc:
15677         Took out debug printfs in ucsim "next" command.
15678
15679         * sim/ucsim/xa.src:
15680         Karl and Johan start ucsim XA support.  Most dissassembly working,
15681         about 75% emulation done(plenty of work remaining).
15682
15683         * sim/ucsim/z80.src:
15684         Add Z80 support to ucsim, add test-ucz80 regression test,
15685         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
15686         Notice z80 compiler fails on examples/test3.c/crc code.
15687
15688 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
15689
15690         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
15691         Added support for --parms-in-bank1
15692
15693         * src/ds390/peeph.def:
15694         added a few more peephole optimzations
15695
15696         * src/ds390/main.c:
15697         1) added __builtin_inp & __builtin_outp used to read in data of given length
15698            from a memory mapped port
15699         2) added __builtin_memcmp
15700         3) added __builtin_swapw swap bytes of a short
15701
15702         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
15703         1) handle multiple send & receives from register bank1
15704         2) ralloc can now allocate DPTR1 to some liveRanges
15705
15706         * src/SDCCsymt.c, src/SDCCsymt.h:
15707         changes to handle multiple sends & receives
15708
15709         * src/SDCCptropt.h:
15710         added some pointer arithmetic optimization
15711
15712         * src/SDCCptropt.c:
15713         added some pointer arithmetic optimizations but not stable yet so not
15714         called from anywhere (will get this working shortly)
15715
15716         * src/SDCCopt.c: fixed for multiple sends & receives
15717
15718         * src/SDCCmain.c:
15719         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
15720         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
15721            set preprocessor defines (depending on options)
15722
15723         * src/SDCCicode.c, src/SDCCicode.h:
15724         changes made to handle multiple sends & receives
15725
15726         * src/SDCCglobl.h:
15727         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
15728
15729         * src/SDCCcse.c, src/SDCCcse.h:
15730         added function findbackward def (to be used in upcoming optimization)
15731
15732         * src/SDCCcflow.c, src/SDCCcflow.h:
15733         added function returnAtEnd - to determine if a basic block terminates with
15734         a RETURN iCode
15735
15736         * src/SDCCast.c, src/SDCCast.h:
15737         added option parms-in-bank1
15738
15739         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
15740         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
15741         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
15742         adjusted for --parms-in-bank1 option
15743
15744         * device/include/string.h:
15745         donot redefine "reentrant" keyword
15746
15747         * device/include/ds80c390.h: Added some more SFRs
15748
15749 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
15750
15751         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
15752
15753 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
15754
15755         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
15756
15757 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
15758
15759         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
15760
15761 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
15762
15763         * Added --xram-movc option
15764
15765 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
15766
15767         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
15768
15769 2002-01-11  Johan Knol
15770
15771         * Added math lib of Jesus Calvino-Fraga
15772
15773 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
15774
15775         * src/SDCCmain.c (processFile): fix processing of ../../src.c
15776         * support/regression/Makefile: new target test-mcs51-stack-auto
15777         * support/regression/ports/mcs51-stack-auto/spec.mk: added
15778
15779 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
15780
15781         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
15782
15783 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
15784
15785         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
15786
15787 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
15788
15789         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
15790
15791         * src/SDCCglue.h: add definition for printIvalChar()
15792
15793 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
15794
15795         * src/SDCCast.c: fix #498138 by Johan
15796
15797         * src/SDCCglue.c: fix #498138 by Johan
15798
15799 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
15800
15801         * support/regression/Makefile: fix clean
15802
15803         * support/regression/ports/ds390/support.c: fix transmission of last character
15804
15805 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
15806
15807         * /sdcc/src/ds390/gen.c:
15808         a) improved computing address of stack variable
15809         b) took out some #if 0 code
15810         c) improved parmBytes adjustment
15811         d) improved genPlusIncr & genMinusIncr
15812         e) genCmp could generate bad code (when left assigned to DPTR)
15813         f) Fixed bug in hasInc
15814
15815         * /sdcc/src/ds390/ralloc.c:
15816         a) packRegsForSupport could mess up live information (Fixed)
15817         b) packRegsDPTRuse could be incorrect for left & right shift
15818
15819         * /sdcc/src/mcs51/ralloc.c:
15820         packRegsForSupport could mess up the live information (Fixed)
15821
15822         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
15823
15824         * /sdcc/src/SDCCast.c:
15825         can reverse a loop even if function call is present as long
15826         as the loop control variable is local & is not passed as parameter
15827
15828 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15829
15830         * /sdcc/ChangeLog: *** empty log message ***
15831
15832         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
15833         More builtin function additions for TININative
15834
15835         * /sdcc/src/ds390/ralloc.c:
15836         Had broken the regression testsuite
15837
15838         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
15839
15840         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
15841         Added funcattr hasStackParms will be set for reentrant functions when there
15842         are paramteres on the stack, this helps in minimizing frame pointer generation
15843         typeFromStr can handle function pointers now
15844
15845         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
15846         *** empty log message ***
15847
15848 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15849
15850         * /src/ds390/gen.c, /src/ds390/main.c:
15851         More builtin function additions for TININative
15852
15853         * /src/ds390/ralloc.c:
15854         Had broken the regression testsuite
15855
15856         * /src/SDCCast.c: Fixed a bug in dumptree
15857
15858         * /src/SDCCsymt.c, /src/SDCCsymt.h:
15859         Added funcattr hasStackParms will be set for reentrant functions when there
15860         are paramteres on the stack, this helps in minimizing frame pointer generation
15861         typeFromStr can handle function pointers now
15862
15863         * /doc/builtins.txt, /doc/TININative.txt:
15864         *** empty log message ***
15865
15866
15867 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15868
15869         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
15870         ALPHA version for -mTININative
15871
15872         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
15873         updated to reflect changes in the port structure
15874
15875         * /src/port.h:
15876         added function do_assemble (similar to do_link) if non-null this function
15877         will be called to do assembly (-mTININative) requires a multi command
15878         assembly
15879         added function genAssemblerEnd will be called to generate assembler Epilogue
15880
15881         * /src/SDCCsymt.c:
15882         added _JavaNative to debug info printing
15883
15884         * /src/SDCCmain.c: added option --tini-libid
15885         added port->do_assemble function (-mTININative) has a multi command assemble
15886
15887         * /src/SDCCglue.c: Disabled "constExpr" check
15888         added port->genAssemblerEnd function
15889
15890         * /src/SDCCglobl.h: Added option --tini-libid value
15891
15892         * /src/SDCCast.h:
15893         tookout optimizeCompare from the header (has no external references)
15894
15895         * /src/SDCCast.c: made one more function "static"
15896
15897 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
15898
15899         * src/z80/mappings.i: Added z80asm support.
15900
15901         * src/z80/main.c: Added z80asm support on --asm=z80asm
15902
15903         * src/z80/gen.c: Fixed asm portability issues.
15904
15905         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
15906
15907         * src/SDCCglue.c (printExterns): Added global/extern split.
15908
15909 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
15910
15911         * support/regression/Makefile: added test for mcs51 model large
15912
15913         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
15914
15915         * support/regression/ports/gbz80/spec.mk: added -mgbz80
15916
15917 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
15918
15919         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
15920
15921 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
15922
15923         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
15924
15925         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
15926
15927 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
15928
15929         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
15930
15931         * support/regression/tests/simplefloat.c: Port to mcs51.
15932
15933 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
15934         * support/regression/tests/bug-485362.c: Added.
15935
15936         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
15937
15938         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
15939
15940         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
15941
15942         * src/z80/gen.c (aopDump): Added a dump function.
15943
15944 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
15945         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
15946
15947         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
15948
15949         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
15950
15951         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
15952
15953         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
15954
15955         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
15956
15957         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
15958
15959         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
15960
15961         * support/regression/ports/ds390/support.c: Use tinibios.
15962
15963         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
15964
15965 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
15966
15967         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
15968         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
15969
15970         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
15971
15972         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
15973
15974 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
15975
15976         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
15977
15978         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
15979         (packRegsForIYUse): Created and optimised.
15980
15981 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
15982
15983         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
15984 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
15985
15986         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
15987
15988         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
15989
15990         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
15991
15992 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15993
15994         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
15995
15996         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
15997
15998 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15999
16000         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
16001
16002         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
16003
16004         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
16005
16006 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
16007
16008         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
16009         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
16010         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
16011
16012         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
16013
16014         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
16015         (genNotFloat): Added.
16016         (genUminusFloat): Added.
16017
16018         * device/lib/z80/Makefile: Added floating pt stubs.
16019
16020         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
16021
16022         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
16023
16024         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
16025
16026 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
16027
16028         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
16029
16030         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
16031
16032         * sdcc/support/regression/Makefile: Add port ds390.
16033
16034         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
16035
16036         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
16037
16038         * sdcc/support/regression/ports/ds390/spec.mk: Added.
16039
16040         * sdcc/support/regression/ports/ds390/support.c: Added.
16041
16042         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
16043
16044         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
16045
16046         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
16047
16048 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
16049
16050         * device/include/malloc.h: Added z80 and gbz80 support.
16051
16052         * device/lib/gbz80/heap.s: Added.
16053
16054         * device/lib/z80/heap.s: Added.
16055
16056         * device/lib/malloc.c: Added z80 and gbz80 support.
16057
16058         * support/regression/tests/malloc.c (testMalloc): Added.
16059
16060         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
16061
16062         * support/regression/tests/bug-478094.c: Added.
16063
16064         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
16065
16066 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
16067
16068         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
16069
16070         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
16071
16072         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
16073
16074         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
16075
16076         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
16077
16078 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
16079
16080         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
16081
16082 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
16083
16084         * support/regression/tests/bug-477927.c: Added.
16085
16086         * src/z80/peeph.def: Added minor rules.
16087
16088         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
16089
16090         * src/z80/peeph.def: Added jump optimisation modification.
16091
16092 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
16093
16094         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
16095
16096 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
16097
16098         * support/regression/tests/funptrs.c: Added.
16099
16100 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
16101
16102         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
16103
16104 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
16105
16106         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
16107
16108         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
16109
16110         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
16111         (movLeft2ResultLong): Created.
16112
16113         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
16114         (joinPushes): Added.  Joins two char pushes into a word push.
16115
16116 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
16117
16118         * support/cpp2/Makefile.in (install): Added creation of dest dir.
16119
16120         * support/makebin/Makefile (install): Added creation of dest dir.
16121
16122 2001-10-24 Karl Bongers <karl AT turbobit.com>
16123
16124         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
16125
16126 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
16127
16128         * src/z80/ralloc.c: Turned off faulty pack for one use.
16129
16130         * src/z80/peeph-gbz80.def: Removed redundent restart options.
16131
16132         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
16133
16134 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
16135
16136         * support/regression/Makefile: Improved clean
16137
16138         * support/regression/ports/gbz80/spec.mk: Added clean
16139
16140         * support/regression/ports/host/spec.mk: Added clean
16141
16142         * support/regression/ports/z80/spec.mk: Added clean
16143
16144         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
16145
16146         * support/regression/ports/mcs51/timeout.c: little improvements
16147
16148 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
16149
16150         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
16151
16152         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
16153
16154         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
16155
16156 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
16157
16158         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
16159
16160         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
16161
16162 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
16163         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
16164
16165         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
16166
16167         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
16168
16169         * src/mcs51/main.c (_linkCmd): Added bin path to command.
16170
16171         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
16172
16173         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
16174
16175         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
16176
16177         * support/regression/tests/longor.c: Added.
16178
16179 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
16180
16181         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
16182
16183         * as/mcs51/aslink.h: define PATH_MAX
16184
16185         * as/mcs51/asm.h: define PATH_MAX
16186
16187         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
16188
16189         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
16190
16191         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
16192
16193         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
16194
16195         * src/SDCCglobl.h: define PATH_MAX
16196
16197         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
16198
16199         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
16200
16201 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
16202
16203         * src/z80/gen.c (gencjneshort): Fixed
16204
16205         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
16206
16207 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
16208
16209         * support/regression/tests/bug-469671.c: Added.
16210
16211         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
16212
16213 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
16214
16215         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
16216
16217         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
16218
16219 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
16220
16221         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
16222
16223         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
16224
16225         * src/device/lib/_mullong.c : removed hint: nooverlay bug
16226
16227         * src/device/lib/_divuint.c : removed hint: nooverlay bug
16228
16229         * src/device/lib/_divulong.c: removed hint: nooverlay bug
16230
16231         * src/device/lib/_moduint.c : removed hint: nooverlay bug
16232
16233         * src/device/lib/_modulong.c: removed hint: nooverlay bug
16234
16235 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
16236
16237         * 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.
16238
16239         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
16240
16241         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
16242
16243 2001-10-07    <johan AT FRIJA>
16244
16245         * device/lib/gets.c (gets): fixed the return value.
16246
16247 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
16248         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
16249
16250         * 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.
16251
16252         * 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.
16253
16254         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
16255
16256         * src/pic/gen.c: Removed Safe_strdup.
16257
16258         * configure.in: Added option to enable libgc support.
16259
16260         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
16261         (bitVectUnion): Optimised.
16262         (bitVectIntersect): Optimised.
16263         (bitVectBitsInCommon): Optimised.
16264         (bitVectCplAnd): Optimised.
16265
16266         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
16267
16268 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16269
16270         * src/SDCCmain.c: distinguish between assembler debug and plain options
16271
16272         * src/avr/main.c:   remove standard assembler options
16273
16274         * src/ds390/main.c: remove standard assembler options
16275
16276         * src/mcs51/main.c: remove standard assembler options
16277
16278         * src/port.h: removed "PENDING" comment
16279
16280 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16281
16282         * src/device/lib/_mulint.c  : new, with assember functions
16283
16284         * src/device/lib/_mullong.c : new, with assember functions
16285
16286         * src/device/lib/_divuint.c : with assember functions
16287
16288         * src/device/lib/_divsint.c : with assember functions
16289
16290         * src/device/lib/_divulong.c: with assember functions
16291
16292         * src/device/lib/_divslong.c: with assember functions
16293
16294         * src/device/lib/_moduint.c : with assember functions
16295
16296         * src/device/lib/_modsint.c : with assember functions
16297
16298         * src/device/lib/_modulong.c: with assember functions
16299
16300         * src/device/lib/_modslong.c: with assember functions
16301
16302         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
16303
16304         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
16305
16306         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
16307                                       replaced _mululong.c and _mulslong.c by _mullong.c
16308
16309 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16310
16311         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
16312
16313 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
16314
16315         * src/SDCCglue.c: test, if win32api is available for MINGW
16316
16317 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
16318
16319         * src/SDCCsymt.c: no more _modifier in printTypeChain()
16320         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
16321         * support/regression/ports/gbz80/spec.mk: removed GENERIC
16322         * support/regression/ports/host/spec.mk: removed GENERIC
16323         * support/regression/ports/mcs51/spec.mk: removed GENERIC
16324         * support/regression/ports/z80/spec.mk: removed GENERIC
16325
16326 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
16327
16328         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
16329
16330         * support/regression/tests/bug-467035.c: Created.
16331
16332 2001-10-01    <johan AT FRIJA>
16333
16334         * src/SDCC.y: fixed bug #466586 part 1
16335
16336 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
16337
16338         * SDCCicode.c: z80 has no generic pointers
16339         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
16340
16341 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
16342
16343         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
16344
16345 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
16346
16347         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
16348
16349         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
16350
16351 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
16352
16353         * configure.in: Fixed up so that ucsim is only configured once.
16354
16355         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
16356
16357         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
16358         (getPathDifference): As above.
16359
16360         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
16361
16362         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
16363
16364 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
16365         * .version: Updated to 2.3.1
16366
16367         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
16368         Added copyright header.
16369
16370         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
16371         (assemble): Added support for macro based assembler commands.
16372         (linkEdit): Added support for macro based linker commands.
16373         (preProcess): Changed the pre-processor to use macros.
16374         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
16375         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
16376
16377         * device/lib/z80/crt0.s: Added module name for debugging.
16378
16379 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
16380
16381         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
16382
16383         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
16384
16385         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
16386
16387         * src/Makefile.in: Added SDCCmacro and SDCCutil
16388
16389 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
16390
16391         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
16392
16393 2001-09-16    <johan AT FRIJA>
16394
16395         * 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.
16396
16397 2001-09-15    <johan AT FRIJA>
16398
16399         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
16400         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
16401
16402 2001-09-11    <johan AT FRIJA>
16403
16404         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
16405
16406 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
16407
16408         * support/regression/tests/bug-460444.c: Added test case.
16409
16410         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
16411         (genCast): Added justification for all of the asserts.
16412
16413 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
16414
16415         * support/regression/support.c: _xdata replaced by xdata
16416
16417         * support/regression/spec.mk: removed _generic
16418
16419 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
16420
16421         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
16422
16423         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
16424         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
16425
16426         * src/z80/peeph.def: Added a rule to optimise shift then compare.
16427
16428         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
16429
16430         * support/regression/tests/bug-460010.c: Added test case.
16431
16432         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
16433
16434 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
16435
16436         * support/regression/Makefile: inter-port-clean adjusted for mcs51
16437
16438         * support/regression/testfwk.c: removed workaround for bug #436344
16439
16440         * support/regression/tests/bp.c: use less memory with mcs51
16441
16442         * support/regression/tests/bug-441448.c: use less memory
16443
16444         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
16445
16446         * support/regression/collate-results.py: typo
16447
16448 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
16449
16450         * support/regression/tests/fetchoverlap.c: Added new test case.
16451
16452         * support/regression/tests/bp.c: Added new test case.
16453
16454         * support/regression/tests/bug-448984.c: Added new test case.
16455
16456         * support/regression/tests/pow2shifts.c: Added new test case.
16457
16458         * src/z80/gen.c: Turned off the noise it normally generates for the release.
16459         (genlshTwo): Fixed right shift for count > 8.
16460
16461         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
16462
16463 2001-09-08    <johan AT FRIJA>
16464
16465         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
16466
16467 2001-09-07    <johan AT FRIJA>
16468
16469         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
16470
16471         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
16472
16473 2001-09-06    <johan AT FRIJA>
16474
16475         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
16476         * bernhard noted me at this: "() equals to (void)" (1.38)
16477
16478 2001-09-05    <johan AT FRIJA>
16479
16480         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
16481
16482 2001-09-04    <johan AT FRIJA>
16483
16484         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
16485
16486
16487 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
16488
16489         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
16490
16491 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
16492
16493         * link/z80/aslink.h: Fixed path for PATH_MAX
16494
16495 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
16496
16497         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
16498
16499         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
16500
16501         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
16502
16503         * 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.
16504
16505 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
16506
16507         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
16508         (genCmp): Fixed up genCmp for the GB with longs.
16509
16510         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
16511
16512         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
16513
16514         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
16515
16516         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
16517
16518 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
16519
16520         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
16521
16522 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
16523
16524         * 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.
16525
16526         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
16527
16528 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
16529
16530         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
16531
16532         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
16533
16534 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
16535
16536   * sim/ucsim/configure:    little improvement of Cygwin-detection
16537   * sim/ucsim/configure.in: little improvement of Cygwin-detection
16538   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
16539   * support/regression/tests/bug-221100.c: small changes for mcs51
16540   * support/regression/tests/bug-221168.c: small changes for mcs51
16541   * support/regression/tests/bug-227710.c: small changes for mcs51
16542   * support/regression/tests/staticinit.c: small changes for mcs51
16543   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
16544   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
16545   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
16546
16547 $Revision$