* src/mcs51/gen.c (genNearPointerGet, genNearPointerSet): fixed bug 1938300
[fw/sdcc] / ChangeLog
1 2008-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
2
3         * src/mcs51/gen.c (genNearPointerGet, genNearPointerSet): fixed bug 1938300
4         * support/regression/tests/bug1938300.c: new, added
5
6 2008-06-03 Maarten Brock <sourceforge.brock AT dse.nl>
7
8         * device/include/asm/ds390/features.h,
9         * device/include/asm/mcs51/features.h,
10         * device/include/mcs51/regc515c.h: inserted LGPL notice
11
12 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
13
14         * device/lib/gbz80/div.s,
15         * device/lib/z80/div.s: fixed bug 1904314 by applying a modified part of
16           patch 1597883, Thanks Robert Ramey
17
18 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
19
20         * src/SDCCast.c (createIvalType, createIvalStruct, createIvalArray,
21           createIvalCharPtr, createIvalPtr, createIval),
22         * src/SDCCval.h
23         * src/SDCCval.c (convertIListToConstList, list2expr): handle incomplete
24           initializers for local auto variables
25         * support/regression/tests/zeropad.c: added testcase for auto initializers
26
27 2008-05-26 Raphael Neider <rneider AT web.de>
28
29         * device/lib/pic16/startup/crt0.c,
30         * device/lib/pic16/startup/crt0i.c,
31         * device/lib/pic16/startup/crt0iz.c: clean up, make use of access bank
32           explicit, fixed curr_entry loop for >= 256 initializer records,
33           removed debug code (write to 0xf7e)
34
35 2008-05-25 Raphael Neider <rneider AT web.de>
36
37         * device/include/pic/pic16f627a.h,
38         * device/include/pic/pic16f628a.h,
39         * device/include/pic/pic16f648a.h: added missing ports
40
41 2008-05-20 Maarten Brock <sourceforge.brock AT dse.nl>
42
43         * device/include/float.h: added __INFINITY
44         * device/lib/_fsadd.c: handle overflows
45         * device/lib/_fsmul.c,
46         * device/lib/_fsdiv.c: use __INFINITY
47         * device/lib/_fseq.c,
48         * device/lib/_fsneq.c: handle -0.0
49         * sim/ucsim/s51.src/uc89c51r.cc,
50         * sim/ucsim/s51.src/uc89c51rcl.h: fixed bug 1385430
51         * sim/ucsim/sim.src/hwcl.h: */* confuses VC
52         * src/mcs51/gen.c (genSend): fixed bug with --xstack
53         * support/regression/ports/mcs51-xstack-auto/spec.mk: print floats
54         * support/regression/tests/snprintf.c: test bug with --xstack
55
56 2008-05-19  Philipp Klaus Krause <pkk AT spth.de>
57
58         * src/SDCCpeeph.c (callFuncByName):
59           Support nested parenthesis in peephole function arguments (#1967300)
60
61 2008-05-19 Raphael Neider <rneider AT web.de>
62
63         * src/pic16/gen.c (pic16_emitpLabel,pic16_emitpLabelFORCE):
64           fixed duplicate labels (#1911325)
65
66 2008-05-19 Raphael Neider <rneider AT web.de>
67
68         * src/regression/empty.c: suppress warning
69         * src/regression/pointer1.c: enabled index_by_pointer()
70         * src/regression/inline.c: now works for pic16 as well
71
72         * src/pic16/device.c: include dbuf declarations
73         * src/pic16/device.h: removed obsolete prototypes
74
75         * src/pic16/gen.c, src/pic16/gen.h: moved generic pointer tags
76         * src/pic16/glue.c: made purely local functions static,
77           (pic16_printGPointerType, pic16_printIvalCharPtr,
78           pic16_printIvalFuncPtr, pic16_printIvalPtr): fixed initialized
79           generic pointers' tags (#1961866)
80
81         * src/pic16/pcode.c (assignValnums): optimize literal assignments
82
83 2008-05-19 Borut Razem <borut.razem AT siol.net>
84
85         * support/scripts/sdcc.nsi: remove uninstall.exe after uninstallation,
86           fixed typo, uninstall include/pic16/pic16devices.txt
87
88 2008-05-18 Borut Razem <borut.razem AT siol.net>
89
90         * support/Utils/dbuf_string.[ch]: added dbuf_chomp(),
91           the buffer is null terminated
92         * src/device/pic16.c:
93           applied modified patch 1965676: Patch for Win32 16 bit PIC
94         * sdcc_vc_in.h: defined YY_NO_UNISTD_H
95
96 2008-05-16 Maarten Brock <sourceforge.brock AT dse.nl>
97
98         * src/SDCC.lex (check_type),
99         * src/SDCC.y (type_specifier2 TYPE_NAME): fixed bug 1925942
100         * as/hc08/clean.mk,
101         * as/mcs51/clean.mk,
102         * as/z80/clean.mk: also clean *.dep
103         * device/lib/pic16/libsdcc/stack/Makefile,
104         * sim/ucsim/libtool: removed as they are rebuild by configure
105         * src/clean.mk: removed izt, so Makefile is not deleted for distclean
106
107 2008-05-13 Maarten Brock <sourceforge.brock AT dse.nl>
108
109         * src/SDCCast.c (fixupInline, createFunction): save currBlockno in
110           fixupInline instead of createFunction to fix bug 1864577
111           (inlineFindMaxBlockno): removed, use global blockNo
112         * src/SDCCglobl.h: added blockNo
113         * src/z80/peep.c,
114         * src/z80/peep.h: modified properties
115         * support/regression/tests/bug1864577.c: new, added
116
117 2008-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
118
119         * as/mcs51/asdata.c,
120         * as/mcs51/asm.h: added org_cnt
121         * as/mcs51/asmain.c (main, asmbl): fixed bug 1957716, changed old K&R to ANSI
122         * as/mcs51/asout.c: changed old K&R to ANSI
123         * as/mcs51/Makefile.in: use common identifiers
124         * as/hc08/asdata.c,
125         * as/hc08/asexpr.c,
126         * as/hc08/asm.h,
127         * as/hc08/asmain.c,
128         * as/hc08/asout.c,
129         * as/hc08/Makefile.bcc,
130         * as/hc08/Makefile.in: synchronized with as/mcs51/*
131         * sdcc_vc_in.h: added define __func__
132         * src/SDCCast.c (expandInlineFuncs): applied patch 1957148 to fix bug 1717305,
133           Thanks Ruud van Silfhout
134         * support/regression/tests/bug1717305.c: new, added
135
136 2008-05-05 Borut Razem <borut.razem AT siol.net>
137
138         * support/regression/Makefile.in,
139           support/regression/ports/ds390/spec.mk,
140           support/regression/ports/hc08/spec.mk,
141           support/regression/ports/mcs51-common/spec.mk,
142           support/regression/ports/pic14/spec.mk,
143           support/regression/ports/pic16/spec.mk,
144           support/regression/ports/ucz80/spec.mk,
145           support/regression/ports/z80/spec.mk:
146           added INC_DIR and LIBDIR paths
147         * src/ds390/gen.c: removed duplicated selicolon
148
149 2008-05-04 Borut Razem <borut.razem AT siol.net>
150
151         * support/regression/Makefile.in,
152           support/regression/fwk/lib/testfwk.c,
153           support/regression/ports/ds390/spec.mk,
154           support/regression/ports/hc08/spec.mk,
155           support/regression/ports/mcs51-common/spec.mk,
156           support/regression/ports/mcs51-large/spec.mk,
157           support/regression/ports/mcs51-medium/spec.mk,
158           support/regression/ports/mcs51-small/spec.mk,
159           support/regression/ports/mcs51-stack-auto/spec.mk,
160           support/regression/ports/mcs51-xstack-auto/spec.mk,
161           support/regression/ports/pic14/spec.mk,
162           support/regression/ports/pic16/spec.mk,
163           support/regression/ports/ucz80/spec.mk:
164           added possibility to define the sdcc binary directory SDCC_BIN_PATH
165           used to run regeression tests
166
167 2008-05-01 Raphael Neider <rneider AT web.de>
168
169         * doc/sdccman.lyx, support/scripts/inc2h-pic16.pl: updated list of
170           supported devices and instructions to add new ones
171
172 2008-05-01 Raphael Neider <rneider AT web.de>
173
174         * device/include/pic16/adc.h,
175           device/lib/pic16/libio/adc/adcbusy.c,
176           device/lib/pic16/libio/adc/adcopen.c,
177           device/lib/pic16/libio/adc/adcsetch.c: support old 18f242 and new
178           18f2455 style ADC devices, based on patch #1776197
179         * device/lib/pic16/libio/adc/adcclose.c,
180           device/lib/pic16/libio/adc/adcconv.c,
181           device/lib/pic16/libio/adc/adcread.c: cosmetic changes
182         * device/include/pic16/{pic18f2331.h,pic18f2431.h},
183           device/lib/pic16/libdev/{pic18f2331.c,pic18f2431.c}: reuse 18f4331
184         * device/include/pic16/pic18f4431.h,
185           device/lib/pic16/libdev/pic18f4431.c: remove outdated comments
186         * device/lib/pic16/libio/adc.ignore: forbid unhandled devices
187
188 2008-05-01 Raphael Neider <rneider AT web.de>
189
190         * src/pic16/device.h: removed unused field PIC16_device.sfrRange,
191           moved xinst flag into pic16_options_t
192         * src/pic16/device.c (default_device, pic16_list_devices,
193           pic16_find_device): removed references to sfrrange
194         * src/pic16/gen.c (genFunction),
195           src/pic16/glue.c (pic16initialComments),
196           src/pic16/main.c (pic16_optionsTable),
197           src/pic16/ralloc.c (newReg, pic16_writeUsedRegs): updated references
198           to xinst
199         * device/include/pic16/pic16devices.txt: removed sfrrange lines
200
201 2008-04-29 Raphael Neider <rneider AT web.de>
202
203         * src/pic16/devices.inc,
204           device/include/pic16/pic16devices.txt: replaced compiled-in list
205           of devices with a variant parsed at runtime
206         * src/pic16/device.c: added support for parsing pic16devices.txt,
207           clean up
208         * src/pic16/device.h: removed (now) unused fields from PIC_device
209         * src/pic16/main.c: removed #pragma maxram,
210           (_pic16_initPaths): removed bogus generation of search paths,
211           setup the port proper only after the search paths (for
212           pic16devices.txt) are set up,
213           (_pic16_finaliseOptions): moved processor dependant code here
214           from _pic16_initPaths(), clean up
215         * src/pic16/ralloc.c (pic16_init_stack),
216         * src/pic16/ralloc.h,
217         * src/pic16/pcode.c: clean up
218         * device/include/Makefile.in,
219           support/scripts/sdcc.nsi: also install/package pic16devices.txt
220         * support/scripts/inc2h-pic16.pl: updated instructions
221
222 2008-04-29 Raphael Neider <rneider AT web.de>
223
224         * device/include/pic16/{pic18f2480.h, pic18f2580.h, pic18f4423.h,
225           pic18f4480.h, pic18f4523.h, pic18f4580.h, pic18f6585.h, pic18f8585.h},
226           device/lib/pic16/libdev/{pic18f2480.c, pic18f2580.c, pic18f4423.c,
227           pic18f4480.c, pic18f4523.c, pic18f4580.c, pic18f6585.c, pic18f8585.c}:
228           added missing family members and 18f2480/2580/4480/4580 family
229         * device/include/pic16/{pic18f2423.h, pic18f2523.h}: use 18f4523.h
230         * device/include/pic16/pic18f2525.h: use 18f4620.h
231         * device/include/pic16/pic18f6680.h: use 18f8680.h
232         * device/include/pic16/pic18fregs.h,
233           device/lib/pic16/pics.all,
234           src/pic16/devices.inc: add new devices
235         * device/lib/pic16/libdev/{pic18f2423.c, pic18f2523.c}: use 18f4523.c
236         * device/lib/pic16/libdev/pic18f2525.c: use 18f4620.c
237         * device/lib/pic16/libdev/pic18f6680.c: uso 18f8680.c
238         * device/lib/pic16/libio/{adc.ignore, i2c.ignore, usart.ignore}:
239           prevent attempting to build the libio for some new devices
240
241 2008-04-29 Raphael Neider <rneider AT web.de>
242
243         * debugger/mcs51/Makefile.in: fixed paths to sources
244
245 2008-04-25 Borut Razem <borut.razem AT siol.net>
246
247         * as/link/lklibr.c: moved from as/link/z80/lklibr.c
248         * as/link/hc08/lklibr.c, as/link/mcs51/lklibr.c: deleted
249         * as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
250         * as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
251           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
252           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
253           as/link/z80/linkz80.dsp: lklibr.c moved
254         * doc/INSTALL.txt: binary archives in bz2 format
255         * support/cpp/auto-host_vc_in.h: CPP2 replaced with CPP
256
257 2008-04-23 Maarten Brock <sourceforge.brock AT dse.nl>
258
259         * src/SDCCglue.c (printIvalType, printIvalBitFields): fixed bug 1856409
260         * support/regression/tests/bug1856409.c: new, added
261
262 2008-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
263
264         * src/z80/peep.c,
265         * src/mcs51/peep.c: Use werror for error messages.
266         * src/SDCCicode.c (geniCodeConditional),
267         * src/SDCCsymt.c (structElemType): fixed bug 1839321
268         * src/z80/Makefile.bcc,
269         * src/z80/z80.dsp: added src/z80/peep.c/h
270         * support/regression/tests/bug1839321.c: new, added
271
272 2008-04-20 Raphael Neider <rneider AT web.de>
273
274         * device/include/pic16/pic18f2455.h: added bitfields for port C
275
276 2008-04-20 Philipp Klaus Krause <pkk AT spth.de>
277
278         * src/z80/peep.c: Use werror for error messages.
279
280 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
281
282         * src/z80/peep.h (declaration of notUsed()),
283         * src/z80/main.c (enabled notUsed() for z80 port, documented z80_port
284           struct),
285         * src/z80/z80.h (added dependency on peep.h),
286         * src/z80/peep.c (definition of notUsed()): Implemented RFE #1880202
287           for Z80.
288
289 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
290
291         * src/SDCCpeeph.c (added support for notUsed()),
292         * src/mcs51/main.c (added dependency on peep.h, documented mcs51_port
293           struct),
294         * src/port.h (removed dependency on mcs51/peep.h, added declaration
295           for notUsed()): Implemented generic (that is not port-specific) part
296           of RFE #1880202.
297
298 2008-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
299
300         * as/link/mcs51/lkmem.c (summary2): fixed bug 1796077
301         * device/lib/libsdcc.lib,
302         * device/lib/Makefile.in,
303         * support/regression/ports/mcs51-xstack-auto/spec.mk,
304         * device/lib/calloc.c: renamed to _calloc.c
305         * device/lib/free.c: renamed to _free.c
306         * device/lib/malloc.c: renamed to _malloc.c
307         * device/lib/realloc.c: renamed to _realloc.c
308         * src/ds390/gen.c (aopGet, aopPut, genPlusBits, genDataPointerSet,
309           genNearPointerSet, genPagedPointerSet): synchronized with mcs51/gen.c
310         * src/ds390/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq, ifxForOp,
311           genAnd, genOr, genXor, genIfx, gen390Code): fixed bug 1509084
312         * src/mcs51/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq,
313           ifxForOp, genAnd, genOr, genXor, genNearPointerGet,
314           genPagedPointerGet, genFarPointerGet, genCodePointerGet,
315           genGenPointerGet, genIfx, gen51Code): fixed bug 1509084
316         * src/ds390/gen.c,
317         * src/mcs51/gen.c: throughout cosmetic changes for syncing both
318         * src/SDCCsymt.h: updated IS_OP_RUONLY, IS_OP_ACCUSE
319         * support/regression/tests/bug1509084.c: new, added
320
321 2008-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
322
323         * device/include/mcs51/cc2510fx.h: added _XPAGE
324         * device/include/mcs51/compiler.h: cosmetic changes
325
326 2008-03-31 Maarten Brock <sourceforge.brock AT dse.nl>
327
328         * sdcc.dsw: adapted for moved cpp2, added dependency for as_z80 on
329           config
330
331 2008-03-31 Borut Razem <borut.razem AT siol.net>
332
333         * support/cpp2 renamed to support/cpp
334         * support/cpp2/libiberty/filenames.h, support/cpp2/libiberty/hex.c,
335           support/cpp2/libiberty/splay-tree.c,
336           support/cpp2/libiberty/splay-tree.h, support/cpp2/libcpp/macro.c,
337           support/cpp2/libcpp/directives.c,
338           support/cpp2/libcpp/include/cpplib.h,
339           support/cpp2/libcpp/include/symtab.h,
340           support/cpp2/libcpp/include/line-map.h,
341           support/cpp2/libcpp/line-map.c, support/cpp2/libcpp/files.c,
342           support/cpp2/libcpp/init.c, support/cpp2/libcpp/traditional.c,
343           support/cpp2/libcpp/expr.c, support/cpp2/libcpp/internal.h,
344           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/system.h,
345           support/cpp2/libcpp/charset.c: SDCPP synchronized with GCC CPP
346           release version 4.3.0
347         * configure.in, configure, Makefile.in, Makefile.bcc:
348           adapted for moved cpp2
349
350 2008-03-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
351
352         * device/include/hc08/mc68hc908jkjl.h: committed fix for bug #1929739,
353           thanks Alejandro Pustowka <alejo_pustowka AT yahoo.com.mx>
354
355 2008-03-30 Maarten Brock <sourceforge.brock AT dse.nl>
356
357         * src/SDCCloop.c (loopInvariants): applied fix for bug 1717943, thanks
358           Robert Larice
359         * support/regression/tests/bug1717943.c: new, added
360
361 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
362
363         * src/z80/gen.c (assignResultValue): Reverted reversal of order of
364           bytewise return value assignments introduced in last commit.
365
366 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
367
368         * src/z80/gen.c (emitDebug, assignResultValue, genPlus, genMinus,
369           genMult, genJumpTab):
370           Use 16-bit instructions for addition in some additional cases,
371           implemented RFEs #1914251, #1914245, #1922090, #1921382, #1918323.
372
373 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
374
375         * src/z80/ralloc.c (serialRegAssign, allocReg, tryAllocatingRegPair):
376           Implemented RFE #1921450, changed some debug messages.
377
378 2008-03-30 Borut Razem <borut.razem AT siol.net>
379
380         * Small Device C Compiler 2.8.0 released
381         * .version, doc/sdccman.lyx: changed sdcc version to 2.8.1
382         * support/scripts/sdcc.nsi: added finish page; this version
383           was used for 2.8.0 release
384         * doc/knownbugs.html: removed; magically generated by the build
385           process using gen_known_bugs.pl from now on
386
387 2008-03-23 Borut Razem <borut.razem AT siol.net>
388
389         * src/pic/gen.h: Q&D solution for the bug, found by Jim Paris
390           and reverted it, since it was already fixed by Raphael ;-)
391         * doc/knownbugs.html: updated for RC2
392
393 2008-03-22 Raphael Neider <rneider AT web.de>
394
395         * src/SDCCicode.c (getPtrType): avoid unnecessary extra assignments
396           for PIC16 targets
397
398 2008-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
399
400         * src/mcs51/gen.c (adjustArithmeticResult): fixed bug 1839299
401         * support/regression/tests/bug1839277.c: added related testBug1839299
402
403 2008-03-21 Maarten Brock <sourceforge.brock AT dse.nl>
404
405         * src/ds390/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign),
406         * src/mcs51/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign):
407           fixed bug 1839277
408         * src/mcs51/gen.c: throughout only output hex constants
409         * src/SDCCicode.c (getPtrType, geniCodeCast): fixed code size regression
410         * support/regression/tests/bug1839277.c: new, added
411
412 2008-03-21 Philipp Klaus Krause <pkk AT spth.de>
413
414         * src/z80/ralloc.c (callFuncByName): Used // instead of /**/ to fix
415           compilation warning about nested comments.
416
417 2008-03-20 Maarten Brock <sourceforge.brock AT dse.nl>
418
419         * src/SDCCsymt.c (comparePtrType): fixed bug 1921073
420         * support/regression/tests/bug1921073.c: new, added
421
422 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
423
424         * src/z80/SDCCpeeph.c.c (callFuncByName):
425           Commented function parameters.
426
427 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
428
429         * src/z80/ralloc.c (packRegsForAccUse2):
430           disabled a broken accumulator packing optimization (fixed #1292721).
431         * support/regression/tests/bug-1292721: Regression test for #1292721.
432
433 2008-03-16 Raphael Neider <rneider AT web.de>
434
435         * src/pic/gen.c (SetIrp,genNearPointerGet,genNearPointerSet):
436           fixed code bloat regression using a variant of patch #1915618
437
438 2008-03-16 Borut Razem <borut.razem AT siol.net>
439
440         * support/scripts/sdcc.nsi: added section debugging macros, added SDCC
441           icon, changed startup menu for release distribution, code cleaning,
442           create url files instead links in startup menu
443
444 2008-03-16 Maarten Brock <sourceforge.brock AT dse.nl>
445
446         * src/SDCCcse.c (algebraicOpts): fixed bug 1579949
447         * support/regression/tests/bug1579949.c: new, added
448
449 2008-03-14 Paul Stoffregen <paul AT pjrc.com>
450
451         * device/lib/printf_fast.c: fixed bug 1255403
452
453 2008-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
454
455         * doc/sdccman.lyx: enhanced paragraph about bankswitching for mcs51
456         * src/cdbFile.c (cdbWriteBasicSymbol): fixed bug 1909409 for locals
457
458 2008-03-14 Borut Razem <borut.razem AT siol.net>
459
460         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated link-xx and aslink
461           command line options
462         * as/link/hc08/lkmain.c: converted tabs to spaces so that the usage
463           is correctly displayed
464         * as/link/z80/lkmain.c: usage line commented out
465
466 2008-03-13 Borut Razem <borut.razem AT siol.net>
467
468         * doc/sdccman.lyx: corrected to be able to convert to PDF,
469           updated the list pf supported pic14 devices
470
471 2008-03-12 Maarten Brock <sourceforge.brock AT dse.nl>
472
473         * doc/sdccman.lyx: added paragraph about bankswitching for mcs51
474
475 2008-03-12 Borut Razem <borut.razem AT siol.net>
476
477         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated command line options,
478           fixed documentation request #1718191
479         * as/hc80/asmain.c, as/mcs51/asmain.c: added option -c to usage
480         * doc/sdccman.lyx: added description of --no-std-crt0 gbz80
481           command line option
482
483 2008-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
484
485         * src/SDCCast.c (isConformingBody): fixed bug 1505811, thanks Robert Larice
486         * support/regression/tests/bug1505811.c: new, added
487
488 2008-03-09 Raphael Neider <rneider AT web.de>
489
490         * device/include/pic16/pic18f2620.h,
491         * device/include/pic16/pic18f4620.h,
492         * device/lib/pic16/libdev/pic18f2620.c,
493         * device/lib/pic16/libdev/pic18f4525.c,
494         * device/lib/pic16/libdev/pic18f4620.c: merged 18f2525/2620/4525/4620
495           family to consistently use pic18f4620.[ch], fixes #1832562
496
497 2008-03-09 Borut Razem <borut.razem AT siol.net>
498
499         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
500           changed sdcc version to 2.8.0
501         * knownbugs.html: regenerated
502         * support/scripts/gen_known_bugs.pl: added number of open bugs
503
504 2008-03-09 Raphael Neider <rneider AT web.de>
505
506         * src/pic16/gen.c (pic16_mov2w_volatile): NEW, read volatile operands,
507           (genOr): read volatile operand even if the result is known,
508           closes #1511838
509           (genOr,genXor): removed unused legacy code,
510           (genDummyRead): use pic16_mov2w_volatile()
511
512 2008-03-08 Borut Razem <borut.razem AT siol.net>
513
514         * src/SDCCglue.c: fixed bug #1864582: multiple definition of char
515           cons w. --model-large
516         * support/regression/staticinit.c: added regression test for bug
517           #1864582
518
519 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
520
521         * src/ds390/gen.c (pushSide, genPcall),
522         * src/hc08/gen.c (pushSide, genPcall): synchronized with mcs51
523         * src/mcs51/gen.c: cosmetic changes
524         * support/regression/fwk/include/testfwk.h: added macro reentrant
525         * support/regression/tests/bug1908493.c: new, added
526
527 2008-03-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
528
529         * src/SDCCdebug.c:, as/link/lkaomf51.c: Fixed bug 1909409: Pdata in OMF file
530
531 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
532
533         * src/mcs51/gen.c (pushSide, genPcall): fixed bug 1908493
534         * src/SDCCmain.c (preProcess): removed -DSDCC_PARMS_IN_BANK1 because it is
535           already set in ds390/main.c and mcs51/main.c
536
537 2008-03-07 Raphael Neider <rneider AT web.de>
538
539         * src/regression/init0.c: new test for initialized arrays of function
540           pointers
541         * src/regression/Makefile: made a bit more flexible, added init0.c
542         * src/pic/glue.c (emitIvals): hacky fix for initializing from function
543           pointers, closes #1427663
544
545 2008-03-05 Borut Razem <borut.razem AT siol.net>
546
547         * dos/sdccman.lyx: docummented predefined macros SDCC_REVISION,
548           SDCC_PARMS_IN_BANK1, SDCC_FLOAT_REENT and SDCC_INT_LONG_REENT
549
550 2008-03-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
551
552         * support/librarian/sdcclib.c:Added feature request 1908061:
553           Synchronise sdcclib commands with ar.
554
555 2008-03-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
556
557         * src/SDCCmain.c: added predefined macros SDCC_REVISION (RFE #1907229),
558           and (depending on corresponding compiler option) SDCC_PARMS_IN_BANK1,
559           SDCC_FLOAT_REENT, SDCC_INT_LONG_REENT
560         * device/include/mcs51/compiler.h: removed umlauts, added double
561           underscore
562
563 2008-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
564
565         * src/SDCCptropt.c (ptrPseudoSymConvert): fixed bug 1536762
566         * support/regression/tests/bug1536762.c: new, added
567         * src/SDCCutil.c,
568         * src/SDCCutil.h: added getBuildDate()
569         * src/SDCCmain.c (printVersionInfo),
570         * src/SDCCglue.c (initialComments): use getBuildDate() instead of
571           __DATE__
572         * src/*/ralloc.c: removed IS_OP_RUONLY macro
573         * src/ds390/ralloc.c (packRegisters),
574         * src/mcs51/ralloc.c (packRegisters),
575         * src/z80/ralloc.c (packRegisters): applied fix for bug 1618050, thanks
576           Robert Larice
577         * support/regression/tests/bug1618050.c: new, added
578         * src/SDCCsymt.h: fixed typo in DECLSPEC2TXT
579         * support/regression/fwk/include/testfwk.h,
580         * support/regression/tests/bug1838000.c: moved _AUTOMEM and _STATMEM to
581           testfwk.h
582
583 2008-03-04 Raphael Neider <rneider AT web.de>
584
585         * src/pic/gen.c: removed unused prototypes, prevent internal errors
586           on accessing OP_SYM_TYPE(op)
587         * src/pic/gen.h: removed unused prototype of genMinusDec()
588         * src/pic/genarith.c (genMinus): cosmetic changes, rewritten to
589           fix #1876953 (invalid subtraction code), removed unused code
590
591 2008-03-03 Raphael Neider <rneider AT web.de>
592
593         * src/pic/gen.c,
594         * src/pic/gen.h,
595         * src/pic/genarith.c,
596         * src/pic/ralloc.c,
597         * src/pic/ralloc.h: removed AOP_R0, AOP_R1, AOP_DPTR, AOP_DPTR2,
598           AOP_ACC, and *_IDX and adjusted code, removed unused legacy code
599
600 2008-03-03 Raphael Neider <rneider AT web.de>
601
602         * src/pic/device.c (find_device): search user-specified paths first
603           for pic14devices.txt, fixes #1900827
604
605 2008-03-02 Borut Razem <borut.razem AT siol.net>
606
607         * support/scripts/sdcc.nsi: fixed bug in IsNT, LogicLib-isation of
608           AddToPath and RemoveFromPath
609
610 2008-03-01 Borut Razem <borut.razem AT siol.net>
611
612         * support/scripts/sdcc.nsi: reverted MULTIUSER page since it didn't
613           work correctly, added debugging support if -DSDCC.DEBUG command line
614           option is defined
615
616 2008-02-28 Borut Razem <borut.razem AT siol.net>
617
618         * doc/sdccman.lyx: cosmetic changes
619
620 2008-02-28 Maarten Brock <sourceforge.brock AT dse.nl>
621
622         * src/mcs51/ralloc.c (fillGaps): fixed bug 1839671
623         * doc/sdccman.lyx: fixed unmeant removal of spaces
624
625 2008-02-27 Borut Razem <borut.razem AT siol.net>
626
627         * support/scripts/sdcc.nsi: corrected installation directory for
628           current user installation mode
629         * doc/README.txt: added Philipp Klaus Krause to the developers list
630
631 2008-02-27 Maarten Brock <sourceforge.brock AT dse.nl>
632
633         * src/mcs51/gen.c (genUnpackBits): don't generate ifxJump, instead
634           return ifx condition
635           (genNearPointerGet, genPagedPointerGet, genFarPointerGet,
636           genCodePointerGet, genGenPointerGet): cleanup aop before generating
637             ifxJump to fix bug 1838000
638         * src/SDCCsymt.c (aggregateToPointer): fix problem for xstack
639         * support/regression/tests/bug1838000.c: new, added
640         * device/include/mcs51/cc1110.h: new, added, thanks to Pravin Angolkar
641
642 2008-02-26 Borut Razem <borut.razem AT siol.net>
643
644         * src/SDCCast.c, doc/sdccman.lyx: fixed RFE #1901171: inerger promotion
645           of casted varargs
646         * support/scripts/sdcc.nsi: added MULTIUSER page,
647           NSIS upgraded to version 2.35
648
649 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
650
651         * src/mcs51/ralloc.c (isSpiltOnStack): fixed bug 1565152
652         * support/regression/tests/bug1565152.c: new, added
653
654 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
655
656         * src/mcs51/gen.c (genPagedPointerSet): fixed bug 1670148
657         * support/regression/ports/mcs51-xstack-auto/spec.mk: added expf.c
658         * support/regression/tests/bug1670148.c: new, added
659
660 2008-02-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
661
662         * device/include/mcs51/at89c51ed2.h: fixed bug 1901469.
663
664 2008-02-24 Borut Razem <borut.razem AT siol.net>
665
666         * src/SDCCast.c, src/SDCCast.h: fixed bug #1874922: explicit typecast
667           is ineffective for unsigned char parameter
668
669 2008-02-24 Maarten Brock <sourceforge.brock AT dse.nl>
670
671         * src/SDCCast.c (expandInlineFuncs): fixed bug 1875869
672         * src/SDCCglue.c (printIvalBitFields): fixed bug 1806631
673         * support/regression/tests/bitopcse.c: removed hc08 exception, see testfwk.h
674         * support/Util/MySystem.c (my_system): output errorcode when verbose
675
676 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
677
678         * src/z80/gen.c (genMult): Rewrote 8-bit multiplication by constant,
679           implements #1898231
680
681 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
682
683         * device/lib/z80/mul.s: Rewrote __muluchar_rrx_s, to improve 8-bit mult.,
684           implements #1896290
685
686 2008-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
687
688         * src/SDCCast.c (createIvalStruct): fixed bug 1466761
689
690 2008-02-21 Borut Razem <borut.razem AT siol.net>
691
692         * support/regression/Makefile.in,
693           support/regression/ports/ds390/spec.mk,
694           support/regression/ports/hc08/spec.mk,
695           support/regression/ports/mcs51-common/spec.mk,
696           support/regression/ports/pic14/spec.mk,
697           support/regression/ports/pic16/spec.mk,
698           support/regression/ports/ucz80/spec.mk,
699           support/regression/ports/xa51/spec.mk:
700           added CFLAGS when compiling timeout
701
702 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
703
704         * support/regression/tests/bugs-1596270-1736867.c: Regression test for
705           #1596270, #1736867
706
707 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
708
709         * src/SDCClrange.c (findPrevUse): fixed bug 1888147
710         * support/regression/tests/bug1888147.c: new, added
711
712 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
713
714         * src/z80/gen.c: fixed bugs #1596270, #1736867
715
716 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
717
718         * src/z80/gen.c: fixed bug in register pair loading when swapping register
719           contents, mostly fixes #1596270
720
721 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
722
723         * src/z80/peeph.def,
724         * src/z80/peeph-z80.def: moved peephole that breaks gbz80 to z80-specific
725           peepholes, fixes #1806565
726
727 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
728
729         * src/SDCCpeeph.c (operandBaseName): added check for @Ri
730         * src/mcs51/peeph.def (rule 177.c): added operandsNotRelated(%1 %3)
731           fixes bug 1739475, thanks Robert Larice
732           (rule 271): new, added
733
734 2008-02-18 Borut Razem <borut.razem AT siol.net>
735
736         * sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
737
738 2008-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
739
740         * src/SDCCmain.c (linkEdit): emit -z when using --debug for z80
741
742 2008-02-17 Raphael Neider <rneider AT web.de>
743
744         * src/pic16/genarith.c,
745         * src/pic16/gen.c,
746         * src/pic16/gen.h,
747         * src/pic16/genutils.c: removed unused legacy code,
748           removed unused fields from struct asmop and struct _G
749
750 2008-02-17 Raphael Neider <rneider AT web.de>
751
752         * src/pic16/gen.c (AccRsh): cosmetic changes,
753           (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
754           genRightShiftLiteral): fixed to work with SFRs as result by
755           assigning only once to result,
756           removed a lot of unused/excluded code fragments
757
758 2008-02-17 Raphael Neider <rneider AT web.de>
759
760         * device/include/pic/pic16f88.h,
761         * device/include/pic/pic16f886.h,
762         * device/include/pic/pic16f887.h: added TRISA6 and TRISA7
763
764 2008-02-17 Borut Razem <borut.razem AT siol.net>
765
766         * src/z80/peeph.def: applied patch
767           #1893626: Optimize tail calls on Z80, thanks to Philipp Krause
768         * src/z80/gen.c, src/z80/peeph.def: applied patch
769           #1893510: Improve logical left shift on Z80, thanks to Philipp Krause
770         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
771           sim/ucsim/s51.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
772           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
773           sim/ucsim/main_in.mk: renamed libutil.a to libucsimutil.a in order to
774           enable compilation on Mac OS X 10.5 (Leopard) and XCode v3.0
775
776 2008-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
777
778         * as/link/mcs51/aslink.dsp: removed SDK define
779         * as/link/z80/clean.mk: brought in sync with other ports
780         * as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
781         * as/hc08/Makefile.bcc,
782         * as/mcs51/Makefile.bcc,
783         * as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
784         * src/z80/main.c (_setValues): use the now capitalized -Z,
785           (z80_port, gbz80_port): generate debug information when asked
786
787 2008-02-16 Borut Razem <borut.razem AT siol.net>
788
789         * as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
790           as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
791           as/z80/Makefile.in. as/z80/Makefile.bcc:
792           applied patch #1893393: patch for as-z80 and link-z80 to generate
793           cdb, thanks to Armin Diehl
794         * as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
795           as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
796           asnoice.c moved to as/asxxsrc/asnoice.c
797         * src/z80/peeph-gbz80.def: applied patch
798           #1880235: Z80 return peephole, thanks to Philipp Krause
799
800 2008-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
801
802         * .version,
803         * doc/sdccman.lyx: bumped version to 2.7.5
804         * src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583
805
806 2008-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
807
808         * device/include/pic16/stdlib.h,
809         * device/lib/pic16/libc/stdlib/ltoa.c,
810         * device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*
811
812 2008-02-13 Borut Razem <borut.razem AT siol.net>
813
814         * src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
815         * src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
816           src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
817           src/SDCCopt.c,  src/SDCCval.c:
818           fixed bug #1890273: SDCC Warning 154 shows wrong filename
819
820 2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
821
822         * src/SDCCsymt.c (compareType): fixed bug 1309013
823
824 2008-02-09 Borut Razem <borut.razem AT siol.net>
825
826         * src/SDCCval.c, src/SDCCval.h:
827           code cleaning, added function constChrVal()
828         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
829           call constChrVal() instead constVal()
830
831 2008-02-01 Maarten Brock <sourceforge.brock AT dse.nl>
832
833         * src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
834           of function pointer
835         * src/SDCCerr.h,
836         * src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
837         * support/regression/tests/absolute.c: added TestStruct TestVar (see also
838           bug 1859853)
839
840 2008-02-01 Raphael Neider <rneider AT web.de>
841
842         * device/include/pic/pic16f886.h,
843         * device/include/pic/pic16f887.h: added RA6 and RA7
844
845 2008-01-24 Raphael Neider <rneider AT web.de>
846
847         * device/include/pic/pic16f88.h: added RA6 and RA7
848         * device/lib/pic/libdev/disabled_pic16f886.c,
849         * device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled
850
851         * src/pic16/devices.inc,
852         * device/include/pic16/pic18f2423.h,
853         * device/include/pic16/pic18f2523.h,
854         * device/include/pic16/pic18fregs.h,
855         * device/lib/pic16/pics.all
856         * device/lib/pic16/libdev/pic18f2423.c,
857         * device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
858         * device/lib/pic16/libio/i2c.ignore,
859         * device/lib/pic16/libio/usart.ignore,
860         * device/lib/pic16/libio/adc.ignore: ignore new devices
861
862 2008-01-23 Maarten Brock <sourceforge.brock AT dse.nl>
863
864         * src/SDCCast.c (createRMW): fixed bug 1582651
865
866 2008-01-20 Borut Razem <borut.razem AT siol.net>
867
868         * src/SDCCcse.c: partially fixed enhancement request
869           #1793872 - multiply by -1 not collapsed
870         * support/regression/tests/arithcsi.c: added regression test
871
872 2008-01-19 Maarten Brock <sourceforge.brock AT dse.nl>
873
874         * as/mcs51/asx8051.dsp: removed define SDK
875         * as/mcs51/i51mch.c (machine): fixed bug 1865114
876         * device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
877         * as/link/lklex.c,
878         * as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
879           cosmetic changes, brought more in sync, changed old K&R to ANSI
880
881 2008-01-13 Borut Razem <borut.razem AT siol.net>
882
883         * support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...
884         * src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
885
886 2007-12-30 Borut Razem <borut.razem AT siol.net>
887
888         * src/pic16/gen.c: fixed implementation of bitwise operations for
889           pic16 target
890         * support/regression/tests/bitwise.c: added test cases
891
892 2007-12-29 Borut Razem <borut.razem AT siol.net>
893
894         * src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
895         * src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
896           src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
897         * support/Util/dbuf_string.[ch]: added function dbuf_getline()
898         * src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
899           src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
900           src/pic16/pcode.[ch]: added const qualifier
901         * as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
902           as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
903           as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
904           as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
905         * as/asxxsrc/aslex.c: use dbuf_getline()
906         * as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
907           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
908           as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
909           as/z80/asm.h, as/z80/z80adr.c:
910           changed type of ib and ip to const char *
911
912 2007-12-28 Borut Razem <borut.razem AT siol.net>
913
914         * as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
915           introduced (readlin) - long lines are turuncated
916         * as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
917           as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
918           as/z80/Makefile.in: moved aslex.c to asxxsrc
919         * as/hc08/aslex.c, as/z80/aslex.c: deleted
920         * as/hc08/asmain.c, as/mcs51/asmain.c:
921           added missing initialization of a_addr field
922         * support/regression/tests/long_asm_line.c: added regtest for long
923           assembler line
924
925 2007-12-22 Borut Razem <borut.razem AT siol.net>
926
927         * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
928
929 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
930
931         * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
932
933 2007-12-16 Borut Razem <borut.razem AT siol.net>
934
935         * device/include/pic16/stdbool.h: removed, since already exists in
936          device/include/; this also fixes bitopcse.c regression test for pic16
937          target
938         * support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
939         * src/pic16/glue.c: fixed bug #1851855: generic static pointer
940           dereference doesn't work; covered by regression test bug1399290
941
942 2007-12-05 Borut Razem <borut.razem AT siol.net>
943
944         * doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
945           Adding new PIC16
946
947 2007-12-01 Borut Razem <borut.razem AT siol.net>
948
949         * sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
950           corrected handling of the highest_valid_address
951
952 2007-11-17 Raphael Neider <rneider AT web.de>
953
954         * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
955         * src/pic/glue.c (picglue): emit .file if --debug is given
956
957 2007-11-17 Raphael Neider <rneider AT web.de>
958
959         * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
960         care when left or right operand resides in result, fixes #1830220
961
962 2007-11-17 Borut Razem <borut.razem AT siol.net>
963
964         * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
965           #983491 - "Merge duplicate strings function is ineffective"
966         * support/regression/tests/bug-983491.c: regtest disabled
967         * as/asxxsrc: created
968           as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
969           as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
970           as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
971           as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
972           as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
973           as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
974           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
975           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
976           as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
977           as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
978           as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
979           as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
980           created as/asxxsrc directory, assym.c and strcpi.c moved into it
981
982 2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
983
984         * device/include/stdarg.h: added and removed some casts
985         * src/SDCCsymt.c (compareType): Fully check types between generic and
986           non-generic pointers, also accept ptr-ptr to void-ptr assignments
987
988 2007-11-13 Borut Razem <borut.razem AT siol.net>
989
990         * support/regression/tests/bug-1817005.c:
991           added regtest for bug #1817005 - as-z80 chokes on long labels
992
993 2007-11-12 Borut Razem <borut.razem AT siol.net>
994
995         * as\z80\asmain.c, as\z80\asm.h, as\z80\assym.c, as\z80\asdata.c,
996           as\z80\asout.c, as\z80\aslist.c:
997           fixed bug #1817005 - as-z80 chokes on long labels
998
999 2007-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
1000
1001         * as/hc08/asmain.c,
1002         * as/z80/asmain.c: cosmetic changes
1003         * as/hc08/alloc.h,
1004         * as/mcs51/alloc.h,
1005         * as/z80/alloc.h: removed
1006         * as/hc08/assym.c,
1007         * as/mcs51/assym.c: replaced alloc.h with stdlib.h
1008         * as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
1009         * as/link/hc08/Makefile.in,
1010         * as/link/mcs51/Makefile.in,
1011         * as/link/z80/Makefile.in: added -DUNIX to CFLAGS
1012         * as/link/lklex.c,
1013         * as/link/mcs51/lkarea.c,
1014         * as/link/mcs51/lkmain.c: cosmetic changes
1015         * as/link/hc08/lklibr.c,
1016         * as/link/z80/lklibr.c,
1017         * as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
1018           used cygwin_conv_to_full_posix_path,
1019           added warnings, cosmetic changes, brought more in sync
1020           changed old K&R into ANSI function declarations
1021         * as/link/z80/lklibr.c (loadAdb): added
1022         * as/link/z80/lkmain.c: removed -- option from usage text
1023
1024 2007-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
1025
1026         * src/mcs51/gen.c (outBitC): optimized for no result
1027
1028 2007-10-31 Borut Razem <borut.razem AT siol.net>
1029
1030         * src/SDCCsymt.c: fixed (hopeful properly) bug
1031           #1805702 - order of extern matters
1032         * support/regression/tests/bug-1805702.c: enabled regtest for bug
1033           #1805702
1034
1035 2007-10-29 Borut Razem <borut.razem AT siol.net>
1036
1037         * src/SDCCsymt.c: reverted bad fixed of bug #1805702
1038           - order of extern matters
1039         * support/regression/tests/bug-1805702.c: disabled regtest for bug
1040           #1805702
1041
1042 2007-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
1043
1044         * src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
1045           24bitMode, portIsDS390
1046         * src/mcs51/gen.c (genOr): optimized for RFE 1750727
1047         * src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
1048           (notVolatileVariable): also check sloc names,
1049           (callFuncByName): moved ftab[] out of function and sorted it by use
1050
1051 2007-10-28 Maarten Brock <sourceforge.brock AT dse.nl>
1052
1053         * device/include/stdarg.h: fixed bug in va_start macro for --xstack
1054         * src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
1055           aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
1056         * src/SDCCicode.c (geniCodeCast): fixed bug 880197
1057         * support/regression/tests/bug-880197.c: new, added
1058
1059 2007-10-28 Borut Razem <borut.razem AT siol.net>
1060
1061         * support/regression/Makefile.in,
1062           support/regression/ports/mcs51-large/spec.mk,
1063           support/regression/ports/mcs51-xstack-auto/spec.mk,
1064           support/regression/ports/mcs51-stack-auto/spec.mk,
1065           support/regression/ports/mcs51-medium/spec.mk,
1066           support/regression/ports/mcs51-common/spec.mk,
1067           support/regression/ports/mcs51-common/*,
1068           support/regression/ports/mcs51-small/*:
1069           mcs51 renamed to mcs51-common, created mcs51-small
1070         * src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
1071         * support/regression/tests/bug-1805702.c: added regtest for bug
1072           #1805702
1073
1074 2007-10-26 Maarten Brock <sourceforge.brock AT dse.nl>
1075
1076         * src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b,
1077           added new rules 265 - 270
1078         * support/regression/tests/bug1721024.c:new, added
1079         * support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
1080           introduced new test-mcs51 to run all mcs51 tests
1081
1082 2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
1083
1084         * support/regression/tests/bug1816470.c: new, added
1085
1086 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
1087
1088         * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
1089           propagate for *,+,- with float, fixed bug 1816470
1090           (decorateType): cast to resultTypeProp instead of resultType
1091
1092 2007-10-19 Borut Razem <borut.razem AT siol.net>
1093
1094         * src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
1095           function is ineffective" for pic16 tareget
1096         * support/scripts/listerr.c: corrected include path
1097         * device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
1098           adjacent memory
1099
1100 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
1101
1102         * support/regression/tests/using.c: new, added
1103         * support/regression/tests/vaargs.c: fixed and enabled test
1104
1105 2007-10-18 Borut Razem <borut.razem AT siol.net>
1106
1107         * src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
1108           is ineffective
1109         * support/regression/tests/bug-983491.c: added regtest for bug #983491
1110
1111 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
1112
1113         * doc/sdccman.lyx: documented option --Werror
1114         * src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
1115           RegBankUsed[] earlier
1116
1117 2007-10-14 Maarten Brock <sourceforge.brock AT dse.nl>
1118
1119         * device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
1120         * src/pic/glue.c,
1121         * src/SDCCval.c,
1122         * src/SDCCast.c,
1123         * src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
1124           AST_ULONG_VALUE
1125         * src/SDCCast.c (decorateType): improved optimization of tri-op
1126         * src/SDCCerr.c (vwerror, setWError),
1127         * src/SDCCerr.h,
1128         * src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
1129           warnings as errors, thanks Stas Sergeev for PATCH 1813211
1130
1131 2007-10-13 Maarten Brock <sourceforge.brock AT dse.nl>
1132
1133         * src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
1134         * src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
1135         * support/regression/tests/bug-223113.c,
1136         * support/regression/tests/bug-426632.c,
1137         * support/regression/tests/bug-468811.c,
1138         * support/regression/tests/bug-477835.c,
1139         * support/regression/tests/bug-478094.c,
1140         * support/regression/tests/bug-499644.c,
1141         * support/regression/tests/bug-524209.c,
1142         * support/regression/tests/bug-524211.c,
1143         * support/regression/tests/packcast.c,
1144         * support/regression/tests/structidx.c: added empty tests
1145         * support/regression/tests/bug-607243.c: enabled test
1146
1147 2007-10-06 Borut Razem <borut.razem AT siol.net>
1148
1149         * .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
1150            support of universal binaries on Mac OS X
1151
1152 2007-10-02 Borut Razem <borut.razem AT siol.net>
1153
1154         * src/SDCCval.h: unified double2ul macro for all platforms
1155         * src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
1156         * support/regression/tests/bitwise.c: added regtest for bug #1777758
1157
1158 2007-09-30 Borut Razem <borut.razem AT siol.net>
1159
1160         * src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
1161           platforms
1162         * sdcc_vc_in.h: enabled warnings
1163         * src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
1164           unsigned type, result still unsigned
1165         * src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
1166
1167 2007-09-28 Raphael Neider <rneider AT web.de>
1168
1169         * src/pic/device.c (find_device): prevent buffer underflow error
1170         * src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
1171           the just destroyed list entry
1172
1173 2007-09-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1174
1175         * doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks
1176           Alexander Neundorf
1177
1178 2007-09-18 Borut Razem <borut.razem AT siol.net>
1179
1180         * src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
1181          applied to unsigned type, result still unsigned
1182
1183 2007-09-17 Borut Razem <borut.razem AT siol.net>
1184
1185         * src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c,
1186           src/SDCCicode.c, src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c,
1187           src/SDCCval.h, src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c,
1188           src/mcs51/gen.c, src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c,
1189           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/genarith.c,
1190           src/pic16/genutils.c, src/pic16/glue.c, src/pic16/main.c,
1191           src/z80/gen.c, src/z80/ralloc.c:
1192           fixed bug #1739860 - sdcc does not work correctly on some platforms
1193           (not finished)
1194           introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()
1195
1196 2007-09-17 Raphael Neider <rneider AT web.de>
1197
1198         * src/pic16/device.c: reverted to previous version
1199         * device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q
1200
1201 2007-09-16 Raphael Neider <rneider AT web.de>
1202
1203         * src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
1204           as this raises a ton of gpasm warnings, just emit a second label
1205         * src/pic16/devices.inc,
1206         * device/lib/pic16/pics.all,
1207         * device/lib/pic16/libdev/pic18f2585.c,
1208         * device/lib/pic16/libdev/pic18f2680.c,
1209         * device/lib/pic16/libdev/pic18f2682.c,
1210         * device/lib/pic16/libdev/pic18f2685.c,
1211         * device/lib/pic16/libdev/pic18f4585.c,
1212         * device/lib/pic16/libdev/pic18f4680.c,
1213         * device/lib/pic16/libdev/pic18f4682.c,
1214         * device/lib/pic16/libdev/pic18f4685.c,
1215         * device/include/pic16/pic18f2585.h,
1216         * device/include/pic16/pic18f2680.h,
1217         * device/include/pic16/pic18f2682.h,
1218         * device/include/pic16/pic18f2685.h,
1219         * device/include/pic16/pic18f4585.h,
1220         * device/include/pic16/pic18f4680.h,
1221         * device/include/pic16/pic18f4682.h,
1222         * device/include/pic16/pic18f4685.h,
1223         * device/include/pic16/pic18fregs.h: added 18f2585, 18f2680,
1224           18f2682, 18f2685, 18f4585, 18f4680, 18f4682, 18f4685,
1225           patch contributed by Anton Strobl, applied with changes
1226
1227 2007-09-16 Raphael Neider <rneider AT web.de>
1228
1229         * device/include/pic16/pic18f2431.h,
1230         * device/include/pic16/pic18f25j10.h,
1231         * device/include/pic16/pic18f4431.h,
1232         * device/include/pic16/pic18f45j10.h: adopted common include style
1233         * device/include/pic16/pic18f1320.h,
1234         * device/include/pic16/pic18f2320.h,
1235         * device/include/pic16/pic18f2525.h,
1236         * device/include/pic16/pic18f4320.h,
1237         * device/include/pic16/pic18f4525.h: NEW, just include proper .h file
1238         * device/include/pic16/pic18fregs.h: prepared for automatic include
1239           file selection by having DEVICE.h for every DEVICE
1240         * device/lib/pic16/libdev/pic18f2320.c,
1241         * device/lib/pic16/libdev/pic18f4320.c: just include proper .c file
1242
1243         * device/lib/pic16/configure.in,
1244         * device/lib/pic16/configure: use rm -rf instead of rmdir
1245         * device/lib/pic16/Makefile.in: use RMDIR to remove build directories
1246         * device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast
1247
1248 2007-09-09 Borut Razem <borut.razem AT siol.net>
1249
1250         * src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
1251           distingush between i386 and ppc Mac OS X versions
1252
1253 2007-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
1254
1255         * src/mcs51/gen.c (genReceive): fixed bug 1788177
1256         * support/regression/tests/bug1788177.c: new, added
1257
1258 2007-09-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1259
1260         * doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
1261         * device/include/mcs51/lint.h added keyword __naked
1262
1263 2007-09-04 Maarten Brock <sourceforge.brock AT dse.nl>
1264
1265         * src/pic16/glue.c,
1266         * src/pic/glue.c,
1267         * src/SDCCmem.h: removed maxRegBank
1268         * src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
1269           RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
1270         * src/SDCCsymt.c (checkFunction): set RegBankUsed[] here
1271         * src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
1272           name and behaviour to handle banked functions
1273           (scan4op): and use it to fix bug 1786213
1274
1275 2007-09-03 Raphael Neider <rneider AT web.de>
1276
1277         * device/include/pic16/pic18f248.h,
1278         * device/include/pic16/pic18f258.h,
1279         * device/include/pic16/pic18f448.h,
1280         * device/lib/pic16/libdev/pic18f248.c,
1281         * device/lib/pic16/libdev/pic18f258.c,
1282         * device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
1283           added T0CONbits, fixes #1786891
1284
1285 2007-08-29 Maarten Brock <sourceforge.brock AT dse.nl>
1286
1287         * src/ds390/gen.c (genFarPointerSet),
1288         * src/hc08/ralloc.c (packRegisters),
1289         * src/mcs51/ralloc.c (packRegisters),
1290         * src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
1291           bug 1750318
1292         * src/SDCCicode.h: POINTER_SET can be true for literals too
1293         * support/regression/tests/bug1750318.c: new, added
1294
1295 2007-08-23 Borut Razem <borut.razem AT siol.net>
1296
1297         * debugger/mcs51/sdcdb.c: fixed compilation with older readline
1298           library versions without the completition functionality
1299
1300 2007-08-22 Raphael Neider <rneider AT web.de>
1301
1302         * device/include/pic16/pic18f1220.h,
1303         * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
1304
1305 2007-08-12 Borut Razem <borut.razem AT siol.net>
1306
1307         * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
1308
1309 2007-08-11 Borut Razem <borut.razem AT siol.net>
1310
1311         * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
1312           src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
1313           support/Util/SDCCerr.[ch] moved to src
1314         * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
1315           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
1316           device/examples/ds390/tinitalk/tinitalk.dsp,
1317           device/examples/serialcomm/windows/serialcomm.dsp,
1318           support/librarian/librarian.dsp:
1319           removed linking of unused odbc32.lib and odbccp32.lib
1320         * support/scripts/winres.h:
1321           added for compilation with Visual C++ 2005 Express Edition
1322
1323 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1324
1325         * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
1326           and CKCON1.
1327
1328 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1329
1330         * sdccconf_in.h: update the endian test so that SPARC Solaris
1331           does not throw syntax errors
1332
1333 2007-08-06 Borut Razem <borut.razem AT siol.net>
1334
1335         * doc/sdccman.lyx: removed two index entries which prevented the
1336           generation of sdcc doc archive
1337
1338 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1339
1340         * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
1341           instead of lyx 1.5.0.
1342
1343 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1344
1345         * device/include/hc08/mc68hc908apxx.h: new header contributed by
1346           Lucas Loizaga, with minor modifications. Thanks!
1347
1348 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1349
1350         * doc/sdccman.lyx: Documented --acall-ajmp and described new features
1351           in sdcclib.
1352
1353 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1354
1355         * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
1356           src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
1357           with acall/ajmp.
1358
1359 2007-07-22 Borut Razem <borut.razem AT siol.net>
1360
1361         * configure.in, configure: re-introduced .version
1362         * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
1363           the version reverted to 2.7.0
1364
1365 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
1366
1367         * configure.in,
1368         * doc/sdccman.lyx: bumped version to 2.7.3
1369         * device/include/mcs51/compiler.h: fixed elif->else
1370         * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
1371         * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
1372           (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
1373            enable accuse for bit operands
1374         * src/SDCCmain.c (printVersionInfo),
1375         * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
1376           environment descriptor
1377         * src/SDCCutil.h: added getBuildEnvironment
1378         * src/SDCCglue.c (initialComments): use getBuildEnvironment
1379         * support/regression/tests/bug1464657.c: enabled test test_Peephole251
1380         * support/regression/tests/bug-408972.c: enabled test leftShiftLong
1381         * support/regression/tests/bug1348008.c,
1382         * support/regression/tests/bug1496419.c,
1383         * support/regression/tests/bug1503067.c,
1384         * support/regression/tests/preproc.c: added empty tests
1385
1386 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
1387
1388         * support/regression/tests/bug1678803.c: new, added
1389
1390 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
1391
1392         * as/link/aslink.h,
1393         * as/link/hc08/lkihx.c,
1394         * as/link/hc08/lkrloc.c,
1395         * as/link/mcs51/lkihx.c,
1396         * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
1397           ihxExtendedLinearAddress
1398         * as/link/mcs51/lkrloc.c (relr),
1399         * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
1400           acall/ajmp, see bug 830513
1401
1402 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
1403
1404         * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
1405           (cseBBlock): remember aggr2ptr has been used
1406         * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
1407           (geniCodeAssign): fixed bug 868103
1408         * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
1409           added operandSize prototype
1410         * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
1411           (genDataPointerSet): use max of size of right and result,
1412           (gencjne): added parameter useCarry for optimization,
1413           (genCmpEq): use carry if appropriate,
1414           (genXor): check if operand already in carry
1415         * support/regression/tests/bug-868103.c: enabled test
1416
1417 2007-07-12 Raphael Neider <rneider AT web.de>
1418
1419         * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
1420
1421 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
1422
1423         * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
1424           from Robert Larice, thanks
1425         * support/regression/tests/bitopcse.c,
1426         * support/regression/tests/bitvars.c,
1427         * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
1428         * support/regression/tests/bug-927659.c: enabled test for z80
1429         * support/regression/tests/bug1738367.c: added extra tests by Frieder
1430         * support/regression/tests/bug1745717.c: new, added
1431         * support/regression/tests/literalop.c,
1432         * support/regression/tests/nullstring.c: removed storage definitions that
1433           are now in testfwk.h
1434
1435 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
1436
1437         * device/include/stdbool.h: do not define __bool_true_false_are_defined
1438           and bool for targets that do not fully support it.
1439         * support/regression/tests/bug1546986.c,
1440         * support/regression/tests/bug1723128.c,
1441         * support/regression/tests/bug1734654.c,
1442         * support/regression/tests/bug1738367.c,
1443         * support/regression/tests/constantRange.c: only use bool if allowed
1444
1445 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
1446
1447         * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
1448           Larice, also handle function pointers
1449         * support/regression/tests/bug1749275.c: new, added
1450
1451 2007-07-03 Borut Razem <borut.razem AT siol.net>
1452
1453         * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
1454           src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
1455           #1746528: SDCC should ignore ':' in inline assembler comments
1456         * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
1457
1458 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
1459
1460         * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
1461         * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
1462
1463 2007-06-29 Borut Razem <borut.razem AT siol.net>
1464
1465         * src/SDCCmain.c: fixed bug
1466           #1744746: SDCC #4867: broken option --xram-size
1467
1468 2007-06-28 Borut Razem <borut.razem AT siol.net>
1469
1470         * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
1471           find out the endianess of host machine for ucsim
1472
1473 2007-06-27 Borut Razem <borut.razem AT siol.net>
1474
1475         * support/regression/generate-cases.py: corrected the file name
1476           in warning
1477         * configure.in, configure, sdccconf_in.h: find out the endianess of
1478           host machine
1479         * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
1480           negative size
1481
1482 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
1483
1484         * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
1485
1486 2007-06-26 Borut Razem <borut.razem AT siol.net>
1487
1488         * support/regression/generate-cases.py: display warning if function
1489           list is empty; implemented more flexible rule for detection of
1490           testing functions, allowing return type 'void' in the same line as
1491           the function name in the function definition
1492         * support/regression/tests/bug-1654060.c: corrected test
1493         * support/librarian/sdcclib.c: fixed warning:
1494           format '%s' expects type 'char *', but argument 2 has type 'int'
1495
1496 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1497
1498         * support/librarian/sdcclib.c: Added feature Requests [1510635]
1499           Multiple infiles for sdcclib.
1500
1501 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1502
1503         * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
1504           bug 1731741
1505
1506 2007-06-18 Borut Razem <borut.razem AT siol.net>
1507
1508         * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
1509           how to handle comments, so they have to be removed by the
1510           preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
1511         * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
1512           src/pic16/main.c, src/pic/main.c, src/z80/main.c,
1513           support/Util/SDCCerr.c, support/Util/SDCCerr.h:
1514           table driven option hadling
1515
1516 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
1517
1518         * src/SDCCast.c (decorateType),
1519         * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
1520           iCode to ast level to fix bug 1738367
1521         * support/regression/tests/bug1738367.c: new, added
1522
1523 2007-06-15 Raphael Neider <rneider AT web.de>
1524
1525         * src/pic16/devices.inc,
1526         * device/lib/pic16/pics.all,
1527         * device/include/pic16/pic18fregs.h,
1528         * device/include/pic16/pic18f[24][45]20.h,
1529         * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
1530           18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
1531         * device/lib/pic16/Makefile.in: faster cleanup
1532
1533 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1534
1535         * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
1536
1537 2007-06-13 Raphael Neider <rneider AT web.de>
1538
1539         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
1540
1541 2007-06-12 Raphael Neider <rneider AT web.de>
1542
1543         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
1544           suppress bit defines if NO_BIT_DEFINES is #define'd
1545         * device/include/pic/pic*.h: recreated all headers to include
1546           conditional bit defines
1547         * device/include/pic/pic16f886.h,
1548         * device/include/pic/pic16f887.h: fixed based on newer .inc file
1549         * device/include/pic/recreate.sh: script to recreate the complete
1550           device library files based on the currently supported devices
1551
1552 2007-06-12 Borut Razem <borut.razem AT siol.net>
1553
1554         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
1555           support/regression/Makefile.in, support/scripts/build.mak,
1556           support/scripts/Makefile.snapshot:
1557           use new svn URL scheme
1558         * doc/sdccman.lyx: SDCC Wiki moved to
1559           http://sdcc.wiki.sourceforge.net/
1560
1561 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1562
1563         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
1564         * support/regression/tests/bug1734654.c: added
1565
1566 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
1567
1568         * src/SDCCast.c (decorateType): optimized '?' for equal operands
1569         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
1570           with literal operands
1571
1572 2007-06-10 Borut Razem <borut.razem AT siol.net>
1573
1574         * as/link/z80/lklibr.c: fixed mingw build warning
1575           lklibr.c:575: warning: implicit declaration of function 'tolower'
1576         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
1577           src/z80/main.c: move target specific options from src/SDCCmain.c
1578           to src/<target>/main.c
1579
1580 2007-06-09 Borut Razem <borut.razem AT siol.net>
1581
1582         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
1583           removed unused swap_sense; removed outBitCLong, replaced with outBitC
1584         * support/regression/tests/bug-1294691.c: added
1585
1586 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
1587
1588         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
1589           can also be static, fixes bug 1733438
1590         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
1591           have absolute address too
1592           (computeType): added optimization for 'cond ? true : false'
1593         * support/regression/tests/absolute.c: added test for static absolute var
1594
1595 2007-06-08 Raphael Neider <rneider AT web.de>
1596
1597         * src/regression/Makefile: suppress parallel builds, allow easy
1598           switching between pic14/pic16 ports
1599         * src/regression/picregs.h: added pic14/16 header file switch
1600         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
1601           inline.c,nestfor.c,string1.c}: include "picregs.h"
1602
1603 2007-06-07 Borut Razem <borut.razem AT siol.net>
1604
1605         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
1606           permanent solution to suppress GCC 4.2.0 c++ warning:
1607           deprecated conversion from string constant to `char *'
1608           use 'const char *' where ever required
1609         * support/regression/generate-cases.py: implemented more flexible rule
1610           for detection of testing functions, allowing white-spaces surrounding
1611           the function name and the 'void' parameter.
1612         * support/regression/tests/constantRange.c,
1613           support/regression/tests/scott-compare3.c: fixed failing regression
1614           tests, uncovered by implementation of more flexible rule for detection
1615           of testing functions
1616
1617 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
1618
1619         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
1620
1621 2007-06-04 Borut Razem <borut.razem AT siol.net>
1622
1623         * configure.in, configure, config_vc.awk: sdcc version number is now
1624           stored in configure.in; removed .version
1625         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
1626           doc/INSTALL.txt: version bumped to 2.7.2
1627         * sim/ucsim/configure.in, sim/ucsim/configure:
1628           use "read" to read from .version
1629
1630 2007-06-03 Borut Razem <borut.razem AT siol.net>
1631
1632         * */Makefile.in: removed annoying warning:
1633           Makefile:xx: Makefile.dep: No such file or directory
1634
1635 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
1636
1637         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
1638           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
1639         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
1640         * src/SDCCast.c (resultTypePropagate): propagate for '!',
1641           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
1642           bugfix: only use newBoolLink for bit result type
1643         * src/SDCCicode.c (geniCodeLogic): added param tree,
1644           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
1645           (geniCodeLogicAndOr): use IS_BIT,
1646           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
1647           (ast2iCode): added tree param to geniCodeLogic for comparisons
1648         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
1649         * support/regression/tests/bug1723128.c: added test NotZero
1650
1651 2007-06-01 Borut Razem <borut.razem AT siol.net>
1652
1653         * SDCPP synchronized with GCC CPP release version 4.2.0,
1654           currently the latest release:
1655         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1656           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
1657           support/cpp2/cppdefault.h, support/cpp2/except.h,
1658           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
1659           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
1660           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
1661           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
1662           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
1663           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
1664           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
1665           support/cpp2/opts.h, support/cpp2/output.h,
1666           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
1667           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
1668           support/cpp2/system.h, support/cpp2/version.c,
1669           support/cpp2/Makefile.in: modified
1670         * support/cpp2/opts-common.c: added
1671         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
1672         * device/lib/pic16/libdev/pic18f[24]5j10.c:
1673           search for included source file in local directory
1674         * sim/ucsim/configure, sim/ucsim/configure.in:
1675           temporary solution to suppress GCC 4.2.0 c++ warning:
1676           deprecated conversion from string constant to `char *'
1677
1678 2007-06-01 Raphael Neider <rneider AT web.de>
1679
1680         * device/lib/pic/libdev/pic12f683.c,
1681         * device/include/pic/pic12f683.h: added GPIO bits
1682
1683 2007-06-01 Raphael Neider <rneider AT web.de>
1684
1685         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
1686           quotation marks, clarified role of PIC14 vs. PIC16 ports
1687         * src/pic16/devices.inc,
1688         * device/include/pic16/pic18fregs.h,
1689         * device/include/pic16/pic18f[24][45]j10.h,
1690         * device/lib/pic16/pics.all,
1691         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
1692           18f24j10, 18f25j10, 18f44j10, and 18f45j10
1693         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
1694           for new devices as they are not yet supported by gputils
1695
1696 2007-05-31 Borut Razem <borut.razem AT siol.net>
1697
1698         * Small Device C Compiler 2.7.0 released
1699         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
1700           changed sdcc version to 2.7.1
1701         * support/scripts/sdcc.nsi: added How to create WIN32 release
1702           setup.exe package
1703
1704 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1705
1706         * doc/sdccman.lyx: documented initialization and allocation of absolute
1707           variables, bit parameter passing, the need for function pointers to be
1708           reentrant and alpha quality support of inline and retrict
1709
1710 2007-05-26 Borut Razem <borut.razem AT siol.net>
1711
1712         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
1713           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
1714         * docs/knownbugs.html: updated
1715
1716 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
1717
1718         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
1719           thanks Jan Waclawek
1720         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
1721           AOP_CRY and ruonly
1722           (gencjneshort): optimized when left is AOP_DIR
1723         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
1724           initializing unions in a struct/array
1725         * support/regression/fwk/include/testfwk.h: added defines for data, near
1726           and far for host and z80
1727         * support/regression/tests/bug1723128.c: new, added
1728
1729 2007-05-22 Borut Razem <borut.razem AT siol.net>
1730
1731         * doc/knownbugs.html: updated
1732
1733 2007-05-21 Raphael Neider <rneider AT web.de>
1734
1735         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
1736           error message instead
1737         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
1738
1739 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
1740
1741         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
1742
1743 2007-05-21 Raphael Neider <rneider AT web.de>
1744
1745         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
1746           closes #1722392
1747         * src/regression/gpsim_assert.h,
1748         * src/regression/Makefile,
1749         * src/regression/pcodeopt.c: regression test for the above fix
1750
1751 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
1752
1753         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
1754           jumps to self, fixed bug 1717281
1755
1756 2007-05-10 Borut Razem <borut.razem AT siol.net>
1757
1758         * support/scripts/gen_known_bugs.pl: cosmetic fix
1759         * doc/knownbugs.html: generated by gen_known_bugs.pl
1760
1761 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1762
1763         * src/SDCCast.c (createFunction): also generate non-inlined version of
1764           function for functions declared as "static inline"
1765         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
1766           function can be inlined after non-inlined version generated.
1767
1768 2007-05-10 Borut Razem <borut.razem AT siol.net>
1769
1770         * support/scripts/gen_known_bugs.pl: added script
1771           which generates knownbugs.html
1772
1773 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
1774
1775         * doc/knownbugs.html: updated for release 2.7.0
1776
1777 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1778
1779         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
1780
1781 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
1782
1783         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
1784           (throughout): updated generating comments
1785         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
1786           (throughout): updated generating comments
1787         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
1788           rule instead of at the second, or it might skip lines when removing the
1789           complete match
1790         * support/regression/tests/bug1714204.c: changed test to foo
1791
1792 2007-05-08 Borut Razem <borut.razem AT siol.net>
1793
1794         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
1795           thanks to SDCC Distributed Compile Farm members,
1796           added Z80 and GBZ80 command line options
1797         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
1798
1799 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
1800
1801         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
1802         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
1803         * support/regression/tests/longlit.c: modified to be tested at all and
1804           to pass the actual test
1805
1806 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1807
1808         * device/include/mcs51/uPSD33xx.h: Added.
1809
1810 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
1811
1812         * device/lib/_gptrput.c,
1813         * device/lib/_gptrget.c: removed old code,
1814          (_gptrgetWord),
1815         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
1816         * support/regression/tests/bug1714204.c: new, added
1817
1818 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1819
1820         * support/regression/tests/regtrack.c: test was never executed
1821           because of the regression test being picky about white spaces.
1822         * device/lib/mcs51/crtclear.asm: added comment
1823
1824 2007-05-06 Raphael Neider <rneider AT web.de>
1825
1826         * device/lib/pic/Makefile.rules,
1827         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
1828           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
1829
1830 2007-05-06 Raphael Neider <rneider AT web.de>
1831
1832         * src/pic16/device.h,
1833         * src/pic16/main.h,
1834         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
1835           _pic16_setDefaultOptions): removed/reordered command-line args
1836         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
1837           devices, regrouped command line args, environment variables),
1838           clarified sone points, added sections on how to add devices to the
1839           PIC14/PIC16 ports
1840
1841 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
1842
1843         * src/z80/peeph.def: fixed bug in rule 2
1844
1845 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
1846
1847         * src/port.h: added TARGET_MCS51_LIKE
1848         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
1849           take advantage of it too
1850         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
1851           (shiftR2Left2Result): Optimized: don't check shifting by 0
1852         * src/z80/peeph-z80.def,
1853         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
1854           modifications, see patch 1700823
1855         * src/mcs51/peep.c (): fixed bug 1712928
1856         * support/regression/tests/bug1712928.c: new, added
1857
1858 2007-05-05 Borut Razem <borut.razem AT siol.net>
1859
1860         * device/lib/pic16/Makefile.common.in,
1861           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
1862           removed bash dependencies
1863
1864 2007-05-01 Borut Razem <borut.razem AT siol.net>
1865
1866         * src/SDCCicode.c:
1867           fixed bug #1710507: --i-code-in-asm makes compile fail
1868           all iCode comments are now one liners
1869         * src/mcs51/gen.c: fixed memory leak
1870
1871 2007-05-01 Raphael Neider <rneider AT web.de>
1872
1873         * device/lib/pic/libdev/*.c
1874         * device/include/pic/*.h: regenerated all device libs from updated
1875           .inc files
1876         * support/scripts/inc2h.pl: documented usage, now uses strict to
1877           catch more bugs
1878
1879 2007-04-30 Borut Razem <borut.razem AT siol.net>
1880
1881         * doc/sdccman.lyx:
1882           fixed bug #1669175: Problem with space in output paths
1883           documented how to use paths with spaces for Windows users
1884
1885 2007-04-29 Borut Razem <borut.razem AT siol.net>
1886
1887         * Fixed svn:eol-style and svn:keywords properties
1888         * src/SDCCval.c: fixed bug
1889           #1592871: Segfault with "large" const arrays of characters
1890           replaced recursion with iteration
1891         * Removed svn:executable property from non-executable files
1892
1893 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
1894
1895         * src/mcs51/gen.c (genRet): fixed bug 1707003
1896
1897 2007-04-27 Raphael Neider <rneider AT web.de>
1898
1899         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
1900           createReachingDefinitions,assignValnums,pic16_destructDF,
1901           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
1902           prevent NULL pointer dereferences
1903         * device/lib/pic/libdev/pic16f886.c,
1904         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
1905           prevent building them, gputils do not really support them yet
1906
1907 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1908
1909         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
1910           helps printf_small. 32 bytes more __idata mem.
1911
1912 2007-04-27 Raphael Neider <rneider AT web.de>
1913
1914         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
1915           return early when pb or pb->pcHead is NULL (patch #1708427)
1916         * src/regression/empty.c,
1917         * src/regression/Makefile: added test with empty functions
1918         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
1919
1920 2007-04-27 Borut Razem <borut.razem AT siol.net>
1921
1922         * src/SDCCast.c: fixed feature request
1923           #1547512: Redundant strings linked when using sizeof("abc")
1924
1925 2007-04-23 Borut Razem <borut.razem AT siol.net>
1926
1927         * doc/sdccman.lyx, src/SDCCmain.c:
1928           peep-hole comments are generated only if --fverbose-asm option is
1929           specified and --no-peep-comments is not, as proposed by Frieder.
1930         * support/regression/Makefile.in: compile regression tests with
1931           --fverbose-asm option so one can "grep" whether a new (or an old)
1932           peephole is (still) applied; requested by Frieder.
1933
1934 2007-04-23 Kevin Buettner <kevin AT buettner.to>
1935
1936         * device/include/pic/pic16f886.h,
1937         * device/include/pic/pic16f887.h,
1938         * device/lib/pic/libdev/pic16f886.c,
1939         * device/lib/pic/libdev/pic16f887.c,
1940         * device/include/pic/pic14devices.txt,
1941         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
1942
1943 2007-04-23 Kevin Buettner <kevin AT buettner.to>
1944
1945         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
1946           fixes #1704666
1947
1948 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1949
1950         * device/lib/_memset.c: assembler version for mcs51
1951
1952 2007-04-22 Borut Razem <borut.razem AT siol.net>
1953
1954         * support/scripts/listerr.c: program to create the list of errors and
1955           warnings list from - added
1956         * doc/sdccman.lyx: removed the note
1957           "For list of warnings and corresponding codes, see err_warn.txt"
1958         * src/SDCCsymt.c: fixed bug #1699804:
1959           Bug with some uses of sizeof(static local array) (MCS51)
1960         * support/regression/tests/bug-1699804.c: added
1961
1962 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
1963
1964         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
1965           (main): added option -i,
1966           (asmbl, case S_INCL): use search_path_fopen,
1967           mostly from patch 1579668 by Peter Miller, thanks
1968         * src/z80/main.c: fixed typo --callee-saves-bc
1969         * device/include/mcs51/compiler.h: added sfrword for Tasking
1970
1971 2007-04-20 Borut Razem <borut.razem AT siol.net>
1972
1973         * src/z80/main.c: replaced reserved keyword asm with asmblr
1974
1975 2007-04-19 Borut Razem <borut.razem AT siol.net>
1976
1977         * src/port.h: use const pointers to strings
1978         * src/SDCCargs.h: declared getStringArg() and getIntArg()
1979         * src/pic16/main.c: include SDCCargs.h
1980         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
1981           const char, since the strings are dynamically allocated
1982         * src/SDCCmain.c: options.code_seg and options.const_seg are
1983           dynamically allocated; check port specific command line options
1984           before the general ones
1985         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
1986
1987 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
1988
1989         * device/include/ds400rom.h,
1990         * device/lib/ds390/lcd390.c,
1991         * device/lib/ds390/memcpyx.c,
1992         * device/lib/ds390/rtc390.c,
1993         * device/lib/ds400/ds400rom.c,
1994         * device/lib/ds400/memcpyx.c,
1995         * device/lib/hc08/_ret.c: more replacements of keywords with their
1996           double underscore equivalents
1997         * device/lib/ds390/Makefile.in,
1998         * device/lib/ds400/Makefile.in,
1999         * device/lib/gbz80/Makefile.in,
2000         * device/lib/hc08/Makefile.in,
2001         * device/lib/mcs51/Makefile.in,
2002         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
2003
2004 2007-04-17 Borut Razem <borut.razem AT siol.net>
2005
2006         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
2007           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
2008           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
2009           to --fverbose-asm, to be gcc'ish
2010
2011 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
2012
2013         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
2014
2015 2007-04-17 Borut Razem <borut.razem AT siol.net>
2016
2017         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
2018         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
2019           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
2020           with their double underscore equivalent
2021
2022 2007-04-14 Borut Razem <borut.razem AT siol.net>
2023
2024         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
2025           source"
2026
2027 2007-04-13 Borut Razem <borut.razem AT siol.net>
2028
2029         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
2030           C99 standard
2031         * device/examples/serialcomm/windows/serial.[ch],
2032           device/examples/serialcomm/windows/test_serialcomm.cpp:
2033           updated by Bela Torok
2034         * device/examples/serialcomm/windows/serialcomm.dsw,
2035           device/examples/serialcomm/windows/serialcomm.dsp: added
2036
2037 2007-04-13 Jan Waclawek <wek AT efton.sk>
2038
2039         * doc/sdccman.lyx: additions and changes at various places
2040           (submitted as #1697136).
2041           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
2042
2043 2007-04-10 Borut Razem <borut.razem AT siol.net>
2044
2045         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
2046           LyX file format changed to 245
2047         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
2048           "FreeWare" replaced with "free open source"
2049
2050 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
2051
2052         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
2053
2054 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
2055
2056         * device/include/pic16/pic18fregs.h,
2057         * device/lib/_bp.c,
2058         * device/lib/_decdptr.c,
2059         * device/lib/_divsint.c,
2060         * device/lib/_divslong.c,
2061         * device/lib/_divuint.c,
2062         * device/lib/_divulong.c,
2063         * device/lib/_fs2schar.c,
2064         * device/lib/_fs2sint.c,
2065         * device/lib/_fs2slong.c,
2066         * device/lib/_fs2uchar.c,
2067         * device/lib/_fs2uint.c,
2068         * device/lib/_fs2ulong.c,
2069         * device/lib/_fsadd.c,
2070         * device/lib/_fscmp.c,
2071         * device/lib/_fsdiv.c,
2072         * device/lib/_fseq.c,
2073         * device/lib/_fsget1arg.c,
2074         * device/lib/_fsget2args.c,
2075         * device/lib/_fsgt.c,
2076         * device/lib/_fslt.c,
2077         * device/lib/_fsmul.c,
2078         * device/lib/_fsneq.c,
2079         * device/lib/_fsnormalize.c,
2080         * device/lib/_fsreturnval.c,
2081         * device/lib/_fsrshift.c,
2082         * device/lib/_fssub.c,
2083         * device/lib/_fsswapargs.c,
2084         * device/lib/_gptrget.c,
2085         * device/lib/_gptrgetc.c,
2086         * device/lib/_gptrput.c,
2087         * device/lib/_logexpf.c,
2088         * device/lib/_modsint.c,
2089         * device/lib/_modslong.c,
2090         * device/lib/_moduint.c,
2091         * device/lib/_modulong.c,
2092         * device/lib/_mulint.c,
2093         * device/lib/_mullong.c,
2094         * device/lib/_schar2fs.c,
2095         * device/lib/_ser.c,
2096         * device/lib/_setjmp.c,
2097         * device/lib/_sint2fs.c,
2098         * device/lib/_slong2fs.c,
2099         * device/lib/_spx.c,
2100         * device/lib/_uchar2fs.c,
2101         * device/lib/_uint2fs.c,
2102         * device/lib/_ulong2fs.c,
2103         * device/lib/asincosf.c,
2104         * device/lib/atanf.c,
2105         * device/lib/calloc.c,
2106         * device/lib/ds390/tinibios.c,
2107         * device/lib/ds400/tinibios.c,
2108         * device/lib/expf.c,
2109         * device/lib/free.c,
2110         * device/lib/hc08/_mulint.c,
2111         * device/lib/logf.c,
2112         * device/lib/malloc.c,
2113         * device/lib/printf_fast.c,
2114         * device/lib/printf_tiny.c,
2115         * device/lib/printfl.c,
2116         * device/lib/realloc.c,
2117         * device/lib/ser_ir.c,
2118         * device/lib/serial.c,
2119         * support/regression/tests/libmullong.c: replaced all special keywords
2120           with their double underscore equivalent
2121         * support/regression/ports/mcs51-xstack-auto/spec.mk,
2122         * device/lib/Makefile.in: compile libs with --std-c99 instead of
2123           --std-sdcc99
2124         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
2125           (genRet): if the bit-symbol is ruonly it already is in the carry
2126         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
2127         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
2128         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
2129           type UCHAR if dest is not bit
2130
2131 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
2132
2133         * device/include/math.h,
2134         * device/lib/cotf.c,
2135         * device/lib/expf.c,
2136         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
2137
2138 2007-04-01 Borut Razem <borut.razem AT siol.net>
2139
2140         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
2141           fixed bug #1692042: input buffer overflow...scanner uses REJECT
2142         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
2143           gcc_unreachable() called internal_error()...
2144
2145 2007-03-30 Raphael Neider <rneider AT web.de>
2146
2147         * src/pic/ralloc.c (isData): suppress garbage debug output
2148
2149 2007-03-28 Borut Razem <borut.razem AT siol.net>
2150
2151         * doc/sdccman.lyx:
2152           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
2153           is developed, built and used worldwide, and the word "night" doesn't
2154           make any sense.
2155
2156 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
2157
2158         * device/include/mcs51/C8051F360.h: new, added
2159         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
2160
2161 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2162
2163         * src/SDCC.y (declaration_specifiers, function_specifier),
2164         * support/Util/SDCCerr.c,
2165         * support/Util/SDCCerr.h,
2166         * src/SDCCsymt.h,
2167         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
2168           inline keyword
2169         * src/SDCCmem.c (deallocParms),
2170         * src/SDCCast.c: support for function inlining, not quite complete
2171         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
2172           'restrict' qualifier
2173
2174 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
2175
2176         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
2177           (saveRBank, unsaveRBank): don't save bits,
2178           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
2179         * support/regression/tests/bug1535242.c: new, added
2180         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
2181           thanks Alexey Shamrin <shamrin AT gmail.com>,
2182           made assert.h header ANSI compliant (added a check for NDEBUG macro,
2183           removed header guard)
2184         * .version,
2185         * sdcc.spec: bumped version to 2.6.5
2186         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
2187
2188 2007-03-22 Borut Razem <borut.razem AT siol.net>
2189
2190         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
2191           fixed bug #1653671: sdcdb integration into ddd is broken
2192
2193 2007-03-22 Raphael Neider <rneider AT web.de>
2194
2195         * src/pic/gen.c (popGetExternal): augmented to also create references
2196           to external variables (not only labels),
2197           (genCall): comment on plan to reduce PAGESEL overhead,
2198           (genFunction, genEndFunction): also save/restore FSR around interrupt
2199           handling code, removed lots of unused code
2200           (genDivOneByte): release acquired temp register
2201         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
2202           of popGetExternal
2203         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
2204           for registers that need to be saved during interrupts (FSR, STATUS,
2205           PCLATH; W needs special handling), currently only FSR is used
2206
2207 2007-03-22 Raphael Neider <rneider AT web.de>
2208
2209         * device/include/pic/pic14devices.txt: 16f688 has only one config word
2210
2211 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2212
2213         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
2214
2215 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
2216
2217         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
2218
2219 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
2220
2221         * as/link/aslink.h: added LKOBJEXT
2222         * as/link/hc08/link_hc08.dsp,
2223         * as/link/hc08/Makefile.bcc,
2224         * as/link/hc08/Makefile.in,
2225         * as/link/mcs51/aslink.dsp,
2226         * as/link/mcs51/Makefile.bcc,
2227         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
2228         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
2229         * as/link/lkaomf51.c: merged and moved
2230         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
2231         * as/link/z80/lkdata.c,
2232         * as/link/lkdata.c: merged and moved
2233         * as/link/hc08/lkmain.c,
2234         * as/link/mcs51/lkmain.c: cosmetic changes
2235         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
2236         * as/link/lklex.c: use LKOBJEXT
2237         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
2238           ANSI-fied functions, removed bubble-sorts
2239         * as/link/z80/lksym.c           as/link/lksym.c: merged,
2240           ANSI-fied functions
2241         * as/link/z80/linkgbz80.dsp,
2242         * as/link/z80/linkz80.dsp,
2243         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
2244           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
2245         * as/link/z80/lkhead.c,
2246         * as/link/z80/lklex.c: deleted
2247         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
2248         * as/link/z80/lkmain.c: added copyfile()
2249
2250 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2251
2252         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
2253
2254 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2255
2256         * device/lib/_strlen.c: assembler version for mcs51
2257
2258 2007-03-13 Raphael Neider <rneider AT web.de>
2259
2260         * device/include/pic16/pic18f2221.h,
2261         * device/include/pic16/pic18f2321.h,
2262         * device/include/pic16/pic18f2331.h,
2263         * device/include/pic16/pic18f4221.h,
2264         * device/include/pic16/pic18f4321.h,
2265         * device/include/pic16/pic18f4331.h: fixed config byte location names
2266         * support/scripts/inc2h-pic16.pl: removed debug output, emit
2267           consistently named config byte locations
2268
2269 2007-03-13 Borut Razem <borut.razem AT siol.net>
2270
2271         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
2272           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
2273           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
2274           as/link/z80/Makefile.in, as/z80/Makefile.in:
2275           introduced LDFLAGS
2276
2277 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2278
2279         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
2280         * device/lib/printf_large.c: pointer was converted to generic
2281         pointer for mcs51 models other than model-small (Maarten noticed)
2282
2283 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2284
2285         * device/include/mcs51/ADuC84x.h: Added.
2286
2287 2007-03-10 Borut Razem <borut.razem AT siol.net>
2288
2289         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
2290           fixed RFE #1624219: double backslashes in filenames;
2291           functions hexEscape(), octalEscape() and copyStr() moved from
2292           SDCCval.c to SDCCutil.c and made them glovbally available
2293
2294 2007-03-09 Borut Razem <borut.razem AT siol.net>
2295
2296         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
2297           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
2298           1673361: Missaligned comments in output files
2299
2300 2007-03-09 Raphael Neider <rneider AT web.de>
2301
2302         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
2303
2304 2007-03-09 Raphael Neider <rneider AT web.de>
2305
2306         * src/pic/gen.c,
2307         * src/pic/glue.c,
2308         * src/pic/ralloc.c: suppress undesired debug output
2309         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
2310
2311 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2312
2313         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
2314
2315 2007-03-07 Borut Razem <borut.razem AT siol.net>
2316
2317         * device/lib/pic16/libdev/pic18f[24][34]31.c:
2318           search include files in the current directory
2319
2320 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
2321
2322         * src/SDCCglue.c (emitMaps, glue),
2323         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
2324           absolute xdata
2325         * support/regression/tests/absolute.c: added xdata test
2326
2327 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
2328
2329         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
2330           added condition to macro, fixes bug 1666080
2331
2332 2007-03-02 Raphael Neider <rneider AT web.de>
2333
2334         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
2335
2336 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2337
2338         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
2339         be cleared. Unconditionally set __XPAGE
2340         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
2341
2342 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2343
2344         * src/SDCCglobl.h,
2345         * src/SDCCmain.c,
2346         * src/mcs51/gen.c,
2347         * src/mcs51/rtrack.c,
2348         * src/ds390/gen.c,
2349         * doc/sdccman.lyx: added --no-gen-comments
2350         * src/mcs51/peeph.def: added 192.b, disabled 185
2351
2352 2007-02-25 Raphael Neider <rneider AT web.de>
2353
2354         * src/pic16/gen.c (genCast): fixed typo
2355         * device/lib/pic16/Makefile.subdir: only install existing files
2356         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
2357
2358 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
2359
2360         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
2361         * device/lib/mcs51/crtclear.asm,
2362         * device/lib/mcs51/crtxclear.asm: renumbered labels
2363         * device/lib/mcs51/Makefile.in: added crtcall.asm
2364         * doc/sdccman.lyx: documented mcs51 crt* library startup code
2365         * src/mcs51/gen.c (movc): removed,
2366           (aopGet, genPlusBits): clear a after loading the carry (possibly from
2367             acc.x or psw.x),
2368           (toCarry, genSend, genRet): added function toCarry,
2369           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
2370           (assignBit, genAssign, genCast): added function assignBit
2371         * src/mcs51/Makefile.bcc: added rtrack.c
2372         * src/mcs51/ralloc.h: made valueKnown a bitfield
2373         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
2374           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
2375           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
2376         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
2377         * src/z80/gen.c: added AOP_IS_PAIRPTR,
2378           (_pop): only pop valid pairs, see gencjneshort,
2379           (gencjneshort): return pair that still needs to be popped, restructured,
2380           (gencjne, genCmpEq): call _pop
2381
2382 2007-02-23 Raphael Neider <rneider AT web.de>
2383
2384         * device/include/pic/pic14devices.txt: 16f684 has only one config word
2385
2386 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2387
2388         * device/include/mcs51/P89LPC925.h: Added.
2389
2390 2007-02-18 Raphael Neider <rneider AT web.de>
2391
2392         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
2393
2394 2007-02-17 Borut Razem <borut.razem AT siol.net>
2395
2396         * support/cpp2/directives.c, support/cpp2/version.c:
2397           synchronized with GCC CPP 4.1.2
2398
2399 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2400
2401         * src/mcs51/rtrack.h,
2402         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
2403           by checking the strings passed by emitcode() to the assembler.
2404           Feel free to change. This in part addresses RFE #482179.
2405           Set environment variable SDCC_RTRACK to enable.
2406         * src/mcs51/gen.c: inserted hooks
2407         * src/mcs51/ralloc.h: added two members to struct regs
2408         * support/regression/tests/regtrack.c: added
2409
2410 2007-02-14 Borut Razem <borut.razem AT siol.net>
2411
2412         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
2413         * Makefile.in: applied patch from Makefile related part of
2414           #1469393: Compiler does not initialize static data
2415
2416 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
2417
2418         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
2419           for better fix of bug 1273984, compiles pic16 rand.c
2420
2421 2007-02-12 Borut Razem <borut.razem AT siol.net>
2422
2423         * src/pic16/main.c: fixed pic16 standard library directory bug
2424
2425 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
2426
2427         * src/hc08/gen.c (genSwap): fix swap regression test
2428
2429 2007-02-10 Borut Razem <borut.razem AT siol.net>
2430
2431         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
2432           with same scope
2433         * support/regression/tests/bug-1654060.c: added regression test for
2434           #1654060
2435
2436 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
2437
2438         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
2439         bit moves in return statement
2440
2441 2007-02-09 Borut Razem <borut.razem AT siol.net>
2442
2443         * src/SDCC.y: fixed bug #1654060 typedef within function causes
2444           syntax error
2445
2446 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
2447
2448         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
2449         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
2450
2451 2007-02-07 Raphael Neider <rneider AT web.de>
2452
2453         * src/pic16/devices.inc,
2454         * device/include/pic16/pic18fregs.h,
2455         * device/include/pic16/pic18f[24][34]31.h,
2456         * device/lib/pic16/libdev/pic18f[24][34]31.c,
2457         * device/lib/pic16/pics.all: added 18f[24][34]31 family
2458         * device/lib/pic16/libio/i2c.ignore: do not build i2c
2459
2460 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
2461
2462         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
2463           can this have lived here for so many years?
2464         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
2465           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
2466         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
2467
2468 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
2469
2470         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
2471         appended by loop induction must be at the very end of the eBBlock
2472
2473 2007-02-05 Kevin Vigor
2474
2475         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
2476
2477 2007-02-05 Borut Razem <borut.razem AT siol.net>
2478
2479         * support/regression/fwk/lib/timeout.c: native WIN32 port,
2480           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
2481
2482 2007-02-03 Borut Razem <borut.razem AT siol.net>
2483
2484         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
2485           applied patch #1646602 option to set default signedness of char to
2486           unsigned, added -funsigned-char command line option,
2487           thanks to Gunther Jehle
2488         * device/lib/Makefile.in: added the -f option to rm so it doesn't
2489           prompt for file deletion a few hundred times (especially the
2490           subversion files, which have ro permissions so it asks for
2491           confirmation), thanks to Simon McAuliffe;
2492           added {} + option to find in order to remove multiple files from a
2493           single rm commad
2494
2495 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2496
2497         * device/include/mcs51/SST89x5xRDx.h: Added.
2498
2499 2007-02-02 Raphael Neider <rneider AT web.de>
2500
2501         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
2502         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
2503
2504 2007-02-01 Raphael Neider <rneider AT web.de>
2505
2506         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
2507           config words again
2508
2509 2007-01-31 Borut Razem <borut.razem AT siol.net>
2510
2511         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
2512           if compiled with GCC. Thanks to Raphael Neider
2513
2514 2007-01-31 Raphael Neider <rneider AT web.de>
2515
2516         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
2517             operand names, handles name and (name + n) for all n,
2518           (sameBank): restructured, also check bank allocation policy,
2519         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
2520           (pic14_operandsAllocatedInSameBank): check whether to operands
2521             will be allocated into the same bank (i.e., section) to reduce
2522             BANKSEL overhead, queried from pcode.c:sameBank,
2523           (pic14printLocals): reintroduced clustering registers into a single
2524             section: all compiler generated symbols will now reside in one
2525             bank (per file), reducing BANKSEL overhead and code size,
2526           (showAllMemmaps): use local dbuf where possible
2527
2528 2007-01-29 Raphael Neider <rneider AT web.de>
2529
2530         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
2531           (call_libraryfunc): retrieve/create symbol and mark as used,
2532           (genFunction): mark defined functions as non-extern and add again
2533            to code memmap for later output
2534         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
2535           (pic14printLocals): reworked for new symbol emission,
2536           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
2537           showAllMemmaps): reworked symbol output using dbufs, added handling
2538             of string literals (still incomplete),
2539           (picglue): removed symbol emission, moved into showAllMemmaps,
2540           (emitSymbolSet): new workhorse for symbol output,
2541           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
2542
2543 2007-01-29 Borut Razem <borut.razem AT siol.net>
2544
2545         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
2546           component contains the extension separator.
2547
2548 2007-01-28 Borut Razem <borut.razem AT siol.net>
2549
2550         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
2551           on WIN32
2552         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
2553           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
2554           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
2555           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
2556           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
2557           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
2558           src/z80/gen.c, support/Util/MySystem.c:
2559           accept slash and backslash as directory separator on WIN32 and
2560           Cygwin ports
2561
2562 2007-01-28 Raphael Neider <rneider AT web.de>
2563
2564         * src/pic16/devices.inc,
2565         * device/include/pic16/pic18f[24][23]21.h,
2566         * device/include/pic16/pic18fregs.h,
2567         * device/lib/pic16/libdev/pic18f[24][23]21.c,
2568         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
2569         * device/lib/pic16/libio/adc.ignore,
2570         * device/lib/pic16/libio/i2c.ignore,
2571         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
2572           family, as gputils do not yet support the devices
2573         * device/lib/pic16/Makefile.subdir: ignore errors on install
2574         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
2575           headers and libraries from gputils .inc files
2576
2577 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
2578
2579         * doc/sdccman.lyx: add printf_fast_f precision limitation note
2580
2581 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
2582
2583         * doc/sdccman.lyx: add printf benchmarks
2584
2585 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
2586
2587         * device/lib/printf_fast.c: fix %c, char promoted to int
2588         * device/lib/printf_tiny.c: fix %c, char promoted to int
2589
2590 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
2591
2592         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
2593
2594 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2595
2596         * support/regression/tests/swap.c: 64 bit hosts failed
2597         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
2598
2599 2007-01-25 Raphael Neider <rneider AT web.de>
2600
2601         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
2602           based on absolute register address, patch by Alex Blond
2603
2604 2007-01-22 Raphael Neider <rneider AT web.de>
2605
2606         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
2607           emitted, do not emit them again...
2608
2609 2007-01-22 Raphael Neider <rneider AT web.de>
2610
2611         * src/regression/bank1.c, src/regression/compare6.c,
2612           src/regression/add.c: cosmetic changes
2613         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
2614         * src/pic/gen.c: fixed global zero and one,
2615           (aopForSym): removed unued code,
2616           (aopGet): assert aop is defined, check and use `index' of
2617             pCodeImmd operands (fixes #1630908),
2618         * src/pic/pcode.c (get_op): added output of generic pointer tag,
2619           (register_reassign): prevent accidental register unification,
2620           (ReuseReg): cosmetic changes (also above)
2621         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
2622           pic14emitStaticSeg): do not emit initialized data,
2623           (printIval*): replaced with working versions,
2624           (pic14createInterruptVect,picglue): use idata for initialized data,
2625             now init data should work in all modules (not only main()),
2626         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
2627
2628 2007-01-21 Borut Razem <borut.razem AT siol.net>
2629
2630         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
2631           use -fPIC or -fpic if they are supported and not ignored
2632         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
2633         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
2634
2635 2007-01-20 Borut Razem <borut.razem AT siol.net>
2636
2637         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
2638           implemented RFE #1470316: allow "$" in variable names
2639
2640 2007-01-20 Raphael Neider <rneider AT web.de>
2641
2642         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
2643
2644 2007-01-20 Raphael Neider <rneider AT web.de>
2645
2646         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
2647         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
2648         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
2649         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
2650           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
2651         * device/lib/pic/libdev/pic*.c,
2652         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
2653         * device/lib/pic/libdev/Makefile.in: show progress
2654
2655 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
2656
2657         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
2658         * support/scripts/sdcc_cygwin_mingw32,
2659         * support/scripts/sdcc_mingw32,
2660         * support/scripts/build.mak: replaced --datadir by --datarootdir for
2661         conformance with autoconf 2.6
2662
2663 2007-01-19 Raphael Neider <rneider AT web.de>
2664
2665         * src/pic/device.c (register_map): fixed list construction
2666         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
2667           (genMod): removed case for genModbits,
2668           (genModbits): removed as now unused/unimplemented
2669         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
2670
2671 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2672
2673         * support/regression/tests/swap.c: added in response to #1638622
2674         * doc/sdccman.lyx: synced version, minor changes
2675
2676 2007-01-18 Borut Razem <borut.razem AT siol.net>
2677
2678         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
2679           thanks to Gunther Jehle
2680         * src/asm.c: don't die if the file drfined in #line couldn't be opened
2681         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
2682           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
2683           use filename in lineno instead.
2684         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
2685           print the file name in ast_print()
2686
2687 2007-01-18 Borut Razem <borut.razem AT siol.net>
2688
2689         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
2690           defined in MSVC
2691         * src/SDCC.lex: stringLiteral() returns const char pointer,
2692           EOF detection in stringLiteral(), fixed asmbuf memory leak,
2693           fixed column counting
2694         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
2695           accept const char pointer as parameter
2696         * src/SDCCdwarf2.c: corrected buffer size
2697
2698 2007-01-17 Borut Razem <borut.razem AT siol.net>
2699
2700         * support/Util/dbuf_string.c: fixed for amd64
2701
2702 2007-01-15 Borut Razem <borut.razem AT siol.net>
2703
2704         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
2705           removed terminal symbol ELIPSIS, since it was never generated by the
2706           lexer and it was wrongly used in parameter_identifier_list rule
2707
2708 2007-01-15 Raphael Neider <rneider AT web.de>
2709
2710         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
2711             code page and data banking description
2712         * src/pic/genarith.c,
2713         * src/pic/gen.h: removed bit arithmetic functions,
2714             updated exit(1) to exit(EXIT_FAILURE)
2715         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
2716         * device/include/pic16/pic18f2455.h,
2717         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
2718             TRISD and TRISE, fixed/added some bit names
2719         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
2720         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
2721             updated pic18f2455.{c,h} instead of duplicating them
2722
2723 2007-01-14 Borut Razem <borut.razem AT siol.net>
2724
2725         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
2726           Cannot debug files that contain spaces in the path name
2727           by converting spaces in asm file name to underscores
2728
2729 2007-01-13 Borut Razem <borut.razem AT siol.net>
2730
2731         * doc/sdccman.lyx: fixed format errors
2732
2733 2007-01-10 Borut Razem <borut.razem AT siol.net>
2734
2735         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
2736           codeseg/constseg #pragma fail
2737         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
2738         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
2739           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
2740           suppoprt/cpp2/sdcpp.[ch]: house cleaning
2741
2742 2007-01-09 Borut Razem <borut.razem AT siol.net>
2743
2744         * get rid of diagnistic.[ch], pretty-print.[ch],
2745           c-pretty-print.[ch], ... used just for error, warning, ...
2746           message formatting
2747         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
2748           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
2749           suppoprt/cpp2/pretty-print.[ch]:
2750           removed
2751         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
2752           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
2753           suppoprt/cpp2/sdcpp.dsp:
2754           changed
2755
2756 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
2757
2758         * device/lib/printf_large.c (output_float): removed recursion,
2759           use smaller buffer on stack for mcs51,
2760           fixed bug printing 1.96
2761         * support/regression/tests/snprintf.c: added test
2762
2763 2007-01-07 Borut Razem <borut.razem AT siol.net>
2764
2765         * use dynamic memory buffers instead temporary files
2766         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
2767           added
2768         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
2769           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
2770           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
2771           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
2772           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
2773           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
2774           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
2775           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
2776           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
2777           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
2778           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
2779           support/Util/dbuf.c, support/Util/dbuf.h:
2780           modified
2781         * .version, sdcc.spec: bumped version to 2.6.4
2782
2783 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
2784
2785         * src/port.h: added TARGET_Z80_LIKE macro
2786         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
2787           output PSEG location if --xram-loc or --xstack-loc was used
2788         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
2789
2790 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
2791
2792         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
2793         * as/as_z80.dsp,   as/z80/as_z80.dsp,
2794         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
2795         * sdcc.dsw: moved project files into subdir
2796         * as/hc08/as_hc08.dsp,
2797         * as/hc08/Makefile.bcc,
2798         * as/hc08/Makefile.in,
2799         * as/mcs51/Makefile.bcc,
2800         * as/mcs51/Makefile.in,
2801         * as/z80/Makefile.bcc,
2802         * as/z80/Makefile.in,
2803         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
2804         * as/hc08/asm.h,
2805         * as/mcs51/asm.h,
2806         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
2807         * as/hc08/asmain.c,
2808         * as/hc08/assym.c,
2809         * as/mcs51/asmain.c,
2810         * as/mcs51/assym.c,
2811         * as/z80/assym.c: removed include "strcmpi.h"
2812         * as/hc08/strcmpi.c,
2813         * as/hc08/strcmpi.h,
2814         * as/mcs51/strcmpi.c,
2815         * as/mcs51/strcmpi.h,
2816         * support/Util/strcmpi.c,
2817         * support/Util/strcmpi.h: removed files
2818         * as/strcmpi.c: added as_strncmpi()
2819
2820 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2821
2822         * sdcc.dsw: Added some dependencies on project config.dsp
2823
2824 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
2825
2826         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
2827           with [di]ram_start to fix a regresion
2828
2829 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
2830
2831         * configure.in: added missing mcs51 in status output
2832         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
2833         directory
2834         * debugger/mcs51/clean.mk (distclean): remove config.h
2835         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
2836         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
2837         options.h, s-options-h and options.c
2838         * support/cpp2/clean.mk: unused, removed
2839         * Makefile.common.in,
2840         * main_in.mk,
2841         * as/Makefile.in,
2842         * as/hc08/Makefile.in,
2843         * as/hc08/clean.mk,
2844         * as/mcs51/Makefile.in,
2845         * as/mcs51/clean.mk,
2846         * as/z80/clean.mk,
2847         * as/z80/conf.mk,
2848         * as/z80/Makefile.in,
2849         * as/z80/clean.mk,
2850         * as/link/Makefile.in,
2851         * as/link/hc08/Makefile.in,
2852         * as/link/hc08/clean.mk,
2853         * as/link/mcs51/Makefile.in,
2854         * as/link/mcs51/clean.mk,
2855         * as/link/z80/Makefile.in,
2856         * as/link/z80/clean.mk,
2857         * as/link/z80/conf.mk,
2858         * debugger/mcs51/Makefile.in,
2859         * debugger/mcs51/clean.mk,
2860         * device/include/Makefile.in,
2861         * device/lib/Makefile.in,
2862         * device/lib/mcs51/Makefile.in,
2863         * device/lib/pic/Makefile.in,
2864         * device/lib/pic/Makefile.common.in,
2865         * device/lib/pic/Makefile.subdir,
2866         * device/lib/pic/Makefile.rules,
2867         * device/lib/pic16/libio/Makefile.in,
2868         * device/lib/pic16/Makefile.subdir,
2869         * device/lib/pic16/libdev/Makefile.in,
2870         * device/lib/pic16/Makefile.rules,
2871         * device/lib/pic16/Makefile.common.in,
2872         * sim/ucsim/avr.src/Makefile.in,
2873         * sim/ucsim/main_in.mk,
2874         * sim/ucsim/cmd.src/Makefile.in,
2875         * sim/ucsim/doc/Makefile.in,
2876         * sim/ucsim/gui.src/Makefile.in,
2877         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
2878         * sim/ucsim/gui.src/serio.src/Makefile.in,
2879         * sim/ucsim/hc08.src/Makefile.in,
2880         * sim/ucsim/libltdl/Makefile.in,
2881         * sim/ucsim/s51.src/Makefile.in,
2882         * sim/ucsim/sim.src/Makefile.in,
2883         * sim/ucsim/sim.src/conf.mk,
2884         * sim/ucsim/xa.src/Makefile.in,
2885         * sim/ucsim/z80.src/Makefile.in,
2886         * src/Makefile.in,
2887         * src/clean.mk,
2888         * src/port.mk,
2889         * support/cpp2/Makefile.in,
2890         * support/librarian/Makefile.in,
2891         * support/librarian/clean.mk,
2892         * support/makebin/Makefile.in,
2893         * support/makebin/clean.mk,
2894         * support/packihx/Makefile.in,
2895         * support/regression/Makefile.in,
2896         * support/regression/ports/ds390/spec.mk,
2897         * support/regression/ports/gbz80/spec.mk,
2898         * support/regression/ports/hc08/spec.mk,
2899         * support/regression/ports/mcs51/spec.mk,
2900         * support/regression/ports/mcs51-large/spec.mk,
2901         * support/regression/ports/mcs51-medium/spec.mk,
2902         * support/regression/ports/mcs51-xstack-auto/spec.mk,
2903         * support/regression/ports/pic14/spec.mk,
2904         * support/regression/ports/pic16/spec.mk,
2905         * support/regression/ports/mcs51-stack-auto/spec.mk,
2906         * support/regression/ports/ucz80/spec.mk,
2907         * support/regression/ports/xa51/spec.mk,
2908         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
2909         adding a slash after $(top_builddir) and/or adding @datarootdir@
2910         * configure.in,
2911         * debugger/mcs51/configure.in,
2912         * device/lib/pic/configure.in,
2913         * device/lib/pic16/configure.in,
2914         * sim/ucsim/configure.in,
2915         * support/cpp2/configure.in,
2916         * support/packihx/configure.in: changed AC_PREREQ to 2.60
2917         * configure,
2918         * debugger/mcs51/configure,
2919         * device/lib/pic/configure,
2920         * device/lib/pic16/configure,
2921         * sim/ucsim/configure,
2922         * support/cpp2/configure,
2923         * support/packihx/configure: generated with autoconf 2.60
2924
2925 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
2926
2927         * as/link/hc08/lkihx.c (newArea),
2928         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
2929
2930 2007-01-02 Borut Razem <borut.razem AT siol.net>
2931
2932         * doc/sdccman.lyx: documented #pragma sdcc_hash
2933         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
2934           initialized to 0
2935         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
2936
2937 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
2938
2939         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
2940         empty 'while'-loop to work correctly, see regression test 'while.c'
2941         * support/regression/tests/while.c: added
2942
2943 2007-01-01 Borut Razem <borut.razem AT siol.net>
2944
2945         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
2946           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
2947           support/cpp2/libcpp/sdcpp.c:
2948           sdcpp specific pragma/directive/option handling moved to sdcpp.c
2949         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
2950         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
2951
2952 2006-12-31 Borut Razem <borut.razem AT siol.net>
2953
2954         * SDCPP synchronized with GCC CPP release version 4.1.1,
2955           currently the latest release:
2956         * support/cpp2/libcpp, support/cpp2/libcpp/include,
2957           support/cpp2/libcpp/include/cpp-id-data.h
2958           support/cpp2/libiberty/fopen_unlocked.c
2959           support/cpp2/libiberty/md5.c
2960           support/cpp2/md5.h
2961           support/cpp2/opt-functions.awk
2962           support/cpp2/opt-gather.awk
2963           support/cpp2/optc-gen.awk
2964           support/cpp2/opth-gen.awk:
2965           added
2966         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
2967           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2968           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
2969           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
2970           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
2971           support/cpp2/diagnostic.h, support/cpp2/except.h,
2972           support/cpp2/hwint.h, support/cpp2/input.h,
2973           support/cpp2/intl.h, support/cpp2/move-if-change,
2974           support/cpp2/opts.c, support/cpp2/opts.h,
2975           support/cpp2/output.h, support/cpp2/prefix.c,
2976           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
2977           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
2978           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
2979           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
2980           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
2981           support/cpp2/version.c:
2982           modified
2983         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
2984           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
2985           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
2986           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
2987           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
2988           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
2989           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
2990           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
2991           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
2992           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
2993           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
2994           moved
2995         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
2996           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
2997           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
2998           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
2999           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
3000           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
3001           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
3002           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
3003           support/cpp2/hashtable.h, support/cpp2/line-map.c,
3004           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
3005           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
3006           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
3007           support/cpp2/system.h:
3008           deleted / moved
3009
3010 2006-12-31 Borut Razem <borut.razem AT siol.net>
3011
3012         * configure.in, configure: fixed bug #1538756: configure dies if bison
3013           and flex are not installed, 2nd try
3014
3015 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
3016
3017         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
3018         400.x for better code in RFE 899102
3019
3020 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
3021
3022         * src/SDCCpeeph.c (deadMove),
3023         * src/port.h,
3024         * src/mcs51/peep.h: renamed 'op' by 'reg'
3025         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
3026         (scan4op): small change for removeDeadMove(), added support for
3027         'callee saves' and/or PACLL function calls,
3028         (removeDeadMove): added, removes superflous 'mov r%1,%2',
3029         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
3030         left in new dispatcher mcs51DeadMove()
3031         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
3032         removeDeadMove()
3033         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
3034
3035 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3036
3037         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
3038           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
3039
3040 2006-12-30 Borut Razem <borut.razem AT siol.net>
3041
3042         * support/cpp2/spacs.h: deleted from svn
3043         * configure.in, configure: fixed bug #1538756: configure dies if bison
3044           and flex are not installed
3045
3046 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
3047
3048         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
3049           with this z80 passes printf float test when enabled
3050         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
3051
3052 2006-12-28 Borut Razem <borut.razem AT siol.net>
3053
3054         * support/cpp2/config.in, support/cpp2/configure.in,
3055           support/cpp2/configure, support/cpp2/Makefile.in:
3056           fix for the solaris build
3057
3058 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3059
3060         * src/SDCC.y (type_specifier2, pointer),
3061         * src/SDCCsymt.h,
3062         * src/SDCCsymt.c (mergeSpec, checkSClass),
3063         * support/Util/SDCCerr.c,
3064         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
3065         * support/valdiag/valdiag.py: Allow test cases to specify
3066           required language standard
3067         * support/valdiag/tests/restrict.c: New file to test restrict keyword
3068         * support/valdiag/tests/tentdecl.c: Supress empty source file error
3069
3070 2006-12-27 Borut Razem <borut.razem AT siol.net>
3071
3072         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
3073         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
3074           mbchar removed
3075         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
3076           fixed for borland C
3077         * support/cpp2/libiberty/Makefile.bcc: updated
3078         * src/pic16/main.c: fixed #pragma udata handling
3079         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
3080
3081 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
3082
3083         * src/SDCCpeeph.c: made labelHashEntry global,
3084         made pcDistance, FBYNAME static,
3085         (pcDistance): made static, use isComment and isLabel,
3086         (deadMove): added,
3087         (getLabelRef): added, extracted from labelRefCount(),
3088         (labelRefCount): use new getLabelRef(),
3089         (callFuncByName): made static, added deadMove,
3090         use isComment and isLabel,
3091         (newPeepRule): made static, set isLabel,
3092         (isLabelDefinition): added parameter isPeepRule to allow '%' in
3093         labels from peephole rules,
3094         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
3095         when isComment or isLabel is set
3096         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
3097         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
3098         to make them global
3099         * src/mcs51/peep.h: added
3100         * src/mcs51/peep.c: added, implements mcs51DeadMove()
3101         * src/port.h: added peep->deadMove to port structure
3102         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
3103         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
3104         deadMove, finally removed no. 1 and 2
3105         * src/mcs51/gen.c,
3106         * src/pic/gen.c,
3107         * src/z80/gen.c,
3108         * src/z80/ralloc.c,
3109         * src/pic16/gen.c,
3110         * src/ds390/gen.c,
3111         * src/hc08/gen.c: mark lines with isComment or isLabel
3112         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
3113         * .version,
3114         * sdcc.spec: bumped version to 2.6.3
3115
3116 2006-12-26 Borut Razem <borut.razem AT siol.net>
3117
3118         * support/cpp2/Makefile.in: added dependency on options.h
3119         * configure: regenerated
3120         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
3121         * support/cpp2/Makefile.in: added vasprintf.c
3122
3123 2006-12-25 Borut Razem <borut.razem AT siol.net>
3124
3125         * SDCPP synchronized with GCC CPP release version 3.4.6,
3126           the latest release before 4.x:
3127         * support/cpp2/Makefile.in, support/cpp2/config.h,
3128           support/cpp2/configure, support/cpp2/configure.in,
3129           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
3130           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
3131           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
3132           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
3133           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
3134           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
3135           support/cpp2/cpptrad.c, support/cpp2/except.h,
3136           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
3137           support/cpp2/hwint.h, support/cpp2/intl.h,
3138           support/cpp2/line-map.c, support/cpp2/line-map.h,
3139           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
3140           support/cpp2/output.h, support/cpp2/prefix.c,
3141           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
3142           support/cpp2/system.h, support/cpp2/version.c:
3143           modified
3144         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
3145           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
3146           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
3147           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
3148           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
3149           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
3150           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
3151           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
3152           support/cpp2/move-if-change, support/cpp2/opts.c,
3153           support/cpp2/opts.h, support/cpp2/opts.sh,
3154           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
3155           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
3156           support/cpp2/win32, support/cpp2/win32/dirent.c,
3157           support/cpp2/win32/dirent.h:
3158           added
3159         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
3160         * support/cpp2/sdcpp.h: renamed from sdcc.h
3161         * sdcppinit.c: deleted
3162
3163 2006-12-23 Borut Razem <borut.razem AT siol.net>
3164
3165         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
3166           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
3167           preproc.c: an other try to fix bug #982435: introduced
3168           -pedantic-parse-number command line option and pedantic_parse_number
3169           pragma
3170
3171 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
3172
3173         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
3174            BSEG handling,
3175           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
3176            corrected overlayed areax addresses, warn about memory overlaps
3177         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
3178         * src/avr/main.c,
3179         * src/ds390/main.c,
3180         * src/hc08/main.c,
3181         * src/mcs51/main.c,
3182         * src/pic16/main.c,
3183         * src/pic/main.c,
3184         * src/xa51/main.c,
3185         * src/z80/main.c,
3186         * src/port.h: added xabs_name and iabs_name
3187         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
3188           (glue, emitMaps): create and emit maps d_abs and i_abs
3189         * src/SDCCglue.h: cosmetic changes
3190         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
3191         * src/SDCCmem.h,
3192         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
3193           (allocDefault): put absolute, initialized globals in them
3194         * support/regression/tests/absolute.c: added absolute bdata test
3195         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
3196
3197 2006-12-20 Borut Razem <borut.razem AT siol.net>
3198
3199         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
3200         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
3201           added regression test for bug #982435
3202
3203 2006-12-18 Borut Razem <borut.razem AT siol.net>
3204
3205         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
3206         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
3207           small cosmetic changes
3208         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
3209         * support/regression/tests/bug-1351710.c: added regression test
3210
3211 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3212
3213         * doc/sdccman.lyx: added the long missed iCode table
3214           "<where is figure II?>", added links to wiki
3215
3216 2006-12-17 Borut Razem <borut.razem AT siol.net>
3217
3218         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
3219           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
3220           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
3221           unified table driven pragma handling, pragma argument type checking
3222         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
3223           current one - version 1.1.3
3224         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
3225
3226 2006-12-13 Raphael Neider <rneider AT web.de>
3227
3228         * src/pic/device.h: removed AssignedMemory structure and macros
3229         * src/pic/device.c: removed global finalMapping (linker assigns
3230             memory locations),
3231           (register_map): add SFRs to remembered memRanges
3232           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
3233           assignFixedRegisters,assignRelocatableRegisters): removed,
3234           (setMaxRAM,validAddress): adapted accordingly,
3235           (pic14_hasSharebank,pic14_getSharedStack): only report and use
3236             reasonably sized sharebanks,
3237         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
3238           (allDefsOutOfRange): removed unused code,
3239         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
3240             handling
3241         * src/pic/pcode.c (register_reassign): removed recursion warning,
3242             fired far too often,
3243         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
3244             to use existing pic14_stringInSet() to avoid duplicate symbols,
3245             tidied up the code a bit,
3246           (pic14printLocals): added in symmetry to printExterns, replaces
3247             writeUsedRegs more or less,
3248           (picglue): call new pic14_printLocals(),
3249         * device/include/pic/pic*.h: removed #pragma memmap directives,
3250             information gathered from include/pic/pic14devices.txt
3251         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
3252
3253 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
3254
3255         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
3256
3257 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3258
3259         * device/include/mcs51/cc2430.h: fixed missing ';'
3260
3261 2006-12-10 Raphael Neider <rneider AT web.de>
3262
3263         * device/lib/pic16/libc/stdio/vfprintf.c,
3264         * device/lib/pic16/libc/stdio/printf_small.c,
3265         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
3266           char arguments, as char varargs are cast to int by the caller,
3267           hopefully fixes #1604915 (other device libraries are still affected)
3268
3269 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3270
3271         * src/mcs51/ralloc.c (packRegsForAssign),
3272         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
3273
3274 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
3275
3276         * device/include/malloc.h: removed init_dynamic_memory
3277         * device/lib/malloc.c: made init_dynamic_memory static and automatically
3278           call it once from malloc. Also use _sdcc_heap[] from _heap.c
3279         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
3280         * device/lib/libsdcc.lib,
3281         * device/lib/Makefile.in,
3282         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
3283         * doc/sdccman.lyx: documented use of new _heap.c
3284         * support/regression/tests/malloc.c: removed init_dynamic_memory
3285         * src/cdbFile.c(spacesToUnderscores): new function,
3286           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
3287           1068030
3288         * device/include/tinibios.h: removed defines for putchar and getchar
3289         * device/lib/ds390/Makefile.in: added putchar.c
3290         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
3291
3292 2006-12-09 Borut Razem <borut.razem AT siol.net>
3293
3294         * support/cpp2/sdcc.h: prevent multiple inclusion
3295         * support/cpp2/options.h: deleted
3296
3297 2006-12-08 Borut Razem <borut.razem AT siol.net>
3298
3299         * support/cpp2/sdcc.h: removed x*alloc() macros
3300         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
3301         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
3302           support/cpp2/sdcpp.sdc: x*alloc files added to the project
3303         * support/cpp2/system.h: moved #include "sdcc.h"
3304         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
3305           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
3306           added
3307         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
3308           -funsigned-char options
3309         * support/cpp2/sdcppmain.c: fixed bug 1611411
3310
3311 2006-12-07 Borut Razem <borut.razem AT siol.net>
3312
3313         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
3314           directive
3315
3316 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
3317
3318         * src/SDCCsymt.c (addDecl): fixed bug 1609244
3319         * src/SDCCmain.c (linkEdit): fixed bug 1609279
3320         * doc/sdccman.lyx,
3321         * .version: bumped to 2.6.2 because a) it's been a while
3322           b) the linker sources have moved c) the preprocessor is upgraded
3323
3324 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3325
3326         * support/regression/tests/snprintf.c: some checks
3327         * lib/src/printf_large.c: %bc: read char instead of int from stack
3328
3329 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
3330
3331         * device/include/mcs51/cc2430.h: inserted _XPAGE
3332
3333 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3334
3335         * device/include/mcs51/cc2430.h: added
3336
3337 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
3338
3339         * device/include/asm/default/features.h,
3340         * device/include/asm/ds390/features.h,
3341         * device/include/mcs51/at89s53.h,
3342         * device/include/ser.h,
3343         * device/include/ser_ir.h,
3344         * device/include/serial.h: changed keywords to double underscore variants,
3345           fixes bug 1590261 some more, thanks Steven Borley
3346
3347 2006-12-01 Raphael Neider <rneider AT web.de>
3348
3349         * src/pic/pcode.c (register_reassign): do not crash on recursive code
3350           but emit warning (recursion is not supported for pic14)
3351
3352 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3353
3354         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
3355         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
3356
3357 2006-11-30 Raphael Neider <rneider AT web.de>
3358
3359         * src/pic/device.c (dump_sfr): always emit symbols
3360         * src/pic/glue.c (pic14printPublics): fixed typo
3361
3362 2006-11-30 Raphael Neider <rneider AT web.de>
3363
3364         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
3365           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
3366           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
3367            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
3368            a sharebank, use a non-shared bank for the stack if none available
3369         * src/pic/device.h (struct memRange): added linked list next field,
3370           added prototypes for above functions
3371         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
3372           (typeRegWithIdx): accept fixed and unfixed stack registers
3373         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
3374           the stack, handle shared and banked stack (except for WSAVE),
3375           (insertBankSel): removed useless optimization (will never fire),
3376           (FixRegisterBanking): added optimization for devices with only one
3377           possibly aliased bank of memory, like 16f84
3378         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
3379           devices have no SHAREBANK in the linker script
3380         * device/include/pic/pic14devices.txt: documented memmap
3381         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
3382
3383 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3384
3385         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
3386           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
3387           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
3388           genhc08Code): switched most of the D (debug) macros to DD (detailed
3389           debug) macros to better control clutter in the generated .asm file.
3390         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
3391           genRightShift): fixed bug with non-constant bit shift stored to
3392           a volatile result (SF Open Discussion forum thread #1616749).
3393           Single byte case is not yet optimized.
3394
3395 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
3396
3397         * device/include/asm/mcs51/features.h,
3398         * device/include/malloc.h,
3399         * device/include/stdio.h: changed keywords to double underscore variants,
3400           fixes bug 1590261
3401
3402 2006-11-27 Borut Razem <borut.razem AT siol.net>
3403
3404         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
3405           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
3406           support/cpp2/output.h, support/cpp2/cppinit.c,
3407           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
3408           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
3409           support/cpp2/cppdefault.c, support/cpp2/system.h,
3410           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
3411           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
3412           support/cpp2/prefix.c, support/cpp2/except.h,
3413           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
3414           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
3415           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
3416           support/cpp2/version.c, support/cpp2/cppmain.c,
3417           support/cpp2/version.h, support/cpp2/hashtable.c,
3418           support/cpp2/cpperror.c:
3419           synchronized with GCC CPP release version 3.3.6,
3420           the latest where cppmain.c still exists.
3421         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
3422           support/cpp2/sdcppinit.c: added
3423
3424 2006-11-27 Borut Razem <borut.razem AT siol.net>
3425
3426         * support/cpp2/cpplex.c:
3427           fixed _asm ... _endasm handling bug, introduce with GCC CPP
3428           synchronization
3429         * support/cpp2/cpplib.c: removed definitions of unused variables
3430
3431 2006-11-26 Borut Razem <borut.razem AT siol.net>
3432
3433         * support/cpp2/libiberty.h: commented out x*alloc() declarations
3434           since they are redefined by macros in support/cpp2/sdcc.h
3435         * support/cpp2/sdcc.h: x*alloc macro redefinition
3436
3437 2006-11-25 Borut Razem <borut.razem AT siol.net>
3438
3439         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
3440           support/cpp2/configure, support/cpp2/Makefile.in,
3441           support/cpp2/cppfiles.c, support/cpp2/output.h,
3442           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
3443           support/cpp2/config.h, support/cpp2/cpplib.h,
3444           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
3445           support/cpp2/cppdefault.c, support/cpp2/config.in,
3446           support/cpp2/system.h, support/cpp2/cpplex.c,
3447           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
3448           support/cpp2/cppdefault.h, support/cpp2/prefix.c
3449           support/cpp2/hwint.h, support/cpp2/mbchar.h,
3450           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
3451           support/cpp2/configure.in, support/cpp2/intl.h,
3452           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
3453           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
3454           support/cpp2/version.c, support/cpp2/cppmain.c,
3455           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
3456           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
3457           support/cpp2/cpperror.c,
3458           support/cpp2/libiberty/safe-ctype.c,
3459           support/cpp2/libiberty/safe-ctype.h,
3460           support/cpp2/libiberty/splay-tree.c,
3461           support/cpp2/libiberty/obstack.c,
3462           support/cpp2/libiberty/lbasename.c,
3463           support/cpp2/libiberty/splay-tree.h,
3464           support/cpp2/libiberty/obstack.h:
3465           synchronized with GCC CPP release version 3.2.3,
3466           the latest before integration of cpp into gcc
3467         * support/cpp2/except.h, support/cpp2/line-map.c,
3468           support/cpp2/line-map.h,
3469           support/cpp2/libiberty/hex.c,
3470           support/cpp2/libiberty/concat.c,
3471           support/cpp2/libiberty/filenames.h: added
3472         * support/cpp2/intl.c: deleted
3473
3474 2006-11-24 Borut Razem <borut.razem AT siol.net>
3475
3476         * src/SDCC.y: enabled compilation of empty source file
3477         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
3478           "ISO C forbids an empty source file"
3479         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
3480           if all the code is ifdefed out.
3481
3482 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3483
3484         * src/hc08/gen.c (genPcall): fix for bug #1601032
3485
3486 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
3487
3488         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
3489         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
3490         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
3491         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
3492         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
3493         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
3494         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
3495         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
3496         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
3497         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
3498         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
3499         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
3500         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
3501         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
3502         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
3503           Renamed to all upper case as per the standard set by SiLabs
3504
3505 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
3506
3507         * device/include/mcs51/C8051F520.h: new, added
3508         * device/include/mcs51/compiler.h: added link about predefined macros
3509
3510 2006-11-23 Raphael Neider <rneider AT web.de>
3511
3512         * src/regression/Makefile: add -L path to fresh library
3513         * src/regression/simulate: emphasize FAILED output
3514         * src/regression/create_stc: output _failures from gpsim
3515         * src/regression/compare4.c,
3516         * src/regression/rotate6.c: fixed char literals,
3517           all compile, all run =8-D
3518
3519         * src/pic/pcode.h: added isPCASMDIR macro
3520         * src/pic/gen.c (genAnd): fixed bit offset
3521         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
3522           packBits): unified register numbering schemes,
3523           (newReg): do not insert stack registers into hash table,
3524           (initStack): unpinned pseudo stack, simplified,
3525           (typeRegWithIdx): fixed retrieval of stack registers,
3526         * src/pic/pcode.c (addpCodeComment,sameBank): added,
3527           (pCodeReplace): removed invalid assertion,
3528           (insertPCodeInstruction): fixed newly added labels,
3529           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
3530           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
3531           DumpFlow): removed unsed (broken?) code,
3532           (insertBankSel): prevent STATUS from being BANKSELed,
3533           (FixRegisterBanking): rewritten from scratch, implemented generic
3534             optimizations (suppress BANKSELs to same register and to registers
3535             present in all banks),
3536           (AnalyzeBanking): update flow after BANKSELection
3537
3538         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
3539             sharebank, let linker place it, mark STKxx symbols as emitted
3540
3541 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3542
3543         * src/regression/arrays.c,
3544         * src/regression/bank1.c,
3545         * src/regression/bool2.c,
3546         * src/regression/compare7.c,
3547         * src/regression/compare8.c,
3548         * src/regression/compare9.c,
3549         * src/regression/compare10.c,
3550         * src/regression/configword.c,
3551         * src/regression/for.c,
3552         * src/regression/mult1.c,
3553         * src/regression/pointer1.c,
3554         * src/regression/rotate6.c,
3555         * src/regression/string1.c,
3556         * src/regression/struct1.c,
3557         * src/regression/Makefile: make PIC14 regression tests run again
3558           (3 fail, 6 won't compile)
3559
3560 2006-11-21 Raphael Neider <rneider AT web.de>
3561
3562         * device/include/pic16/pic18f4550.h,
3563         * device/include/pic16/pic18f4455.h,
3564         * device/lib/pic16/libdev/pic18f4550.c,
3565         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
3566         * configure.in: removed superfluous closing bracket
3567
3568 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3569
3570         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
3571           always positive.
3572
3573 2006-11-21 Raphael Neider <rneider AT web.de>
3574
3575         * src/pic/device.{c,h}: added pic14_getPIC()
3576         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
3577           (genAnd): added PIC code for one case, fixes #1597044
3578         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
3579           SFRs that are present in all banks (e.g., STATUS)
3580
3581 2006-11-20 Raphael Neider <rneider AT web.de>
3582
3583         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
3584           INCFSZ/INCFSZW and declared them as changing Z bit,
3585           (insertPCodeInstruction): correctly invert the above instructions,
3586           fixes #1599333,
3587           (DoBankSelect): don't panic on po_immediates
3588
3589 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
3590
3591         * as/link/aslink.h,
3592         * as/link/mcs51/lkihx.c (newArea),
3593         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
3594         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
3595
3596 2006-11-11 Raphael Neider <rneider AT web.de>
3597
3598         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
3599           bitfield symbols, fixes #1579535 (once more...).
3600
3601 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3602
3603         * support/regression/generate-cases.py,
3604         * support/regression/fwk/include/testfwk.h,
3605         * support/regression/fwk/lib/testfwk.c: used code pointers,
3606           (about 50kByte less code generated for mcs51)
3607
3608 2006-11-06 Borut Razem <borut.razem AT siol.net>
3609
3610         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3611           debugger/mcs51/configure: fixed failed check because the function
3612           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
3613           who submitted the patch for gpsim.
3614         * debugger/mcs51/configure.in: removed the result message
3615         * debugger/mcs51/Makefile.in: fixed the config.status warning
3616           "... seems to ignore the --datarootdir setting"
3617
3618 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
3619
3620         * device/include/mcs51/c8051f020.h,
3621         * device/include/mcs51/c8051f040.h,
3622         * device/include/mcs51/c8051f060.h,
3623         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
3624         * src/z80/gen.c (gencjneshort),
3625         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
3626
3627 2006-10-31 Borut Razem <borut.razem AT siol.net>
3628
3629         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3630           debugger/mcs51/configure: get readline version
3631
3632 2006-10-30 Borut Razem <borut.razem AT siol.net>
3633
3634         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
3635         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3636           debugger/mcs51/configure: locate readline even when cross compiling
3637         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
3638
3639 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3640
3641         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
3642           serial port.
3643
3644 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
3645
3646         * device/include/malloc.h,
3647         * device/lib/calloc.c,
3648         * device/lib/free.c,
3649         * device/lib/malloc.c,
3650         * device/lib/realloc.c: moved definition of struct into sources
3651         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
3652
3653 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
3654
3655         * as/asx8051.dsp: corrected output directories
3656         * as/link/hc08: new directory for hc08 linker
3657         * as/hc08/aslink.h,             as/link/aslink.h,
3658         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
3659         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
3660         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
3661         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
3662         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
3663         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
3664         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
3665         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
3666         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
3667         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
3668         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
3669         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
3670         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
3671         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
3672         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
3673         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
3674         * as/link/hc08/conf.mk,
3675         * configure,
3676         * configure.in,
3677         * Makefile.in,
3678         * sdcc.dsw: moved hc08 linker to as/link/hc08
3679         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
3680         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
3681         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
3682         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
3683         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
3684         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
3685         * as/link/mcs51/aslink.dsp,
3686         * as/link/mcs51/Makefile.in: factored out the common files
3687         * as/hc08/lkstore.c: deleted, use the one already in as/link/
3688         * as/clean.mk: extra cleaning common files
3689         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
3690         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
3691         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
3692
3693 2006-10-29 Raphael Neider <rneider AT web.de>
3694
3695         * src/pic/ralloc.c (newReg): create aliases for registers with
3696           multiple names to fix #1579535 and #1584001,
3697           (regWithIdx,dirregWithName): resolve aliases on lookup
3698         * src/pic/pcode.c (DoBankSelect): die with error message on failing
3699           bankselect
3700         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
3701           to prevent build errors on small devices
3702
3703 2006-10-28 Raphael Neider <rneider AT web.de>
3704
3705         * src/pic/gen.c (genFunction,genCall): drop "same code page"
3706           assumption within interrupt handlers, fixes #1584940
3707         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
3708           "emitted" to avoid emitting them again in udata
3709
3710 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3711
3712         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
3713         Removed.
3714
3715 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3716
3717         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
3718         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
3719         on/off CR to CRLF conversion.
3720
3721 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3722
3723         * doc/sdccman.lyx: updated IRQ section
3724
3725 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3726
3727         * device/lib/serial_io.c: removed
3728         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
3729         replacements for serial_io.c
3730
3731 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
3732
3733         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
3734
3735 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3736
3737         * device/lib/serial_io.c: Default putchar() and getchar() for
3738           mcs51 uses serial port.
3739
3740 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
3741
3742         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
3743
3744 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3745
3746         * support/regression/ports/mcs51/support.c: smaller
3747         _sdcc_external_startup()
3748         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
3749
3750 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
3751
3752         * device/lib/gbz80/crt0.s,
3753         * device/lib/gbz80/crt0_rle.s,
3754         * device/lib/gbz80/div.s,
3755         * device/lib/gbz80/fstubs.s,
3756         * device/lib/gbz80/heap.s,
3757         * device/lib/gbz80/mul.s,
3758         * device/lib/gbz80/putchar.s,
3759         * device/lib/gbz80/stubs.s,
3760         * device/lib/z80/crt0.s,
3761         * device/lib/z80/crt0_rle.s,
3762         * device/lib/z80/div.s,
3763         * device/lib/z80/fstubs.s,
3764         * device/lib/z80/heap.s,
3765         * device/lib/z80/mul.s,
3766         * device/lib/z80/putchar.s,
3767         * device/lib/z80/stubs.s: reverted, I was mistaken
3768
3769 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3770
3771         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
3772         * support/regression/ports/mcs51/support.c: removed race
3773         condition on TI in _putchar allowing to use serial port mode 0
3774
3775 2006-10-20 Borut Razem <borut.razem AT siol.net>
3776
3777         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
3778
3779 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
3780
3781         * device/lib/gbz80/crt0.s,
3782         * device/lib/gbz80/crt0_rle.s,
3783         * device/lib/gbz80/div.s,
3784         * device/lib/gbz80/fstubs.s,
3785         * device/lib/gbz80/heap.s,
3786         * device/lib/gbz80/mul.s,
3787         * device/lib/gbz80/putchar.s,
3788         * device/lib/gbz80/stubs.s,
3789         * device/lib/z80/crt0.s,
3790         * device/lib/z80/crt0_rle.s,
3791         * device/lib/z80/div.s,
3792         * device/lib/z80/fstubs.s,
3793         * device/lib/z80/heap.s,
3794         * device/lib/z80/mul.s,
3795         * device/lib/z80/putchar.s,
3796         * device/lib/z80/stubs.s: removed all leading underscores from area names
3797
3798 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
3799
3800         * support/regression/ports/mcs51/support.c: use highest baudrate so the
3801           regression tests are not waiting in the simulator for simulated
3802           transmission of debug output
3803
3804 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3805
3806         * device/lib/printf_large.c: slightly smaller
3807         * doc/sdccman.lyx: do not use spaces within html links
3808
3809 2006-10-16 Borut Razem <borut.razem AT siol.net>
3810
3811         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
3812           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
3813           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
3814           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
3815           debugger/mcs51/configure:
3816           [ 1185668 ] add gnu readline support to sdcdb - enabled
3817
3818 2006-10-16 Raphael Neider <rneider AT web.de>
3819
3820         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
3821           fixes #1577882, removes close to all banking optimizations
3822
3823 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
3824
3825         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
3826           variables in code memory
3827         * support/regression/tests/absolute.c: added test for this
3828
3829 2006-10-15 Raphael Neider <rneider AT web.de>
3830
3831         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
3832           devices,
3833           (BankSelect): emit BANKSEL before touching linker-placed regs,
3834           fixes #1570934
3835
3836 2006-10-10 Raphael Neider <rneider AT web.de>
3837
3838         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
3839         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
3840         * src/pic/main.c (_pic14_parseOptions),
3841         * src/pic/main.h: mostly reverted to previous state, now use results
3842             from SDCCmain.c's argument parsing
3843
3844 2006-10-10 Borut Razem <borut.razem AT siol.net>
3845
3846         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
3847           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
3848           [ 1185668 ] add gnu readline support to sdcdb -
3849           prepared for READLINE, not enabled yet,
3850           thanks to <tal.bav AT gmail.com>
3851
3852 2006-10-10 Raphael Neider <rneider AT web.de>
3853
3854         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
3855         * src/pic16/devices.inc,
3856         * device/include/pic16 (pic18f[24]620.h),
3857         * device/include/pic18fregs.h,
3858         * device/lib/pic16/pics.all,
3859         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
3860             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
3861             Gary Plumbridge and Anton Strobl
3862
3863 2006-10-10 Raphael Neider <rneider AT web.de>
3864
3865         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
3866           --stack-siz=NUM options to configure the argument passing stack
3867         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
3868         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
3869           (pic14_getSharebankSize): obey --stack-siz=NUM,
3870           (pic14_getSharebankAddress): obey --stack-loc=NUM
3871
3872 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3873
3874         * doc/sdccman.lyx: added to the manual
3875         * doc/figures/ddd_example.png: added (neither pdflatex nor
3876         most browsers seem to like the .eps file)
3877
3878 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
3879
3880         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
3881         to /tmp and /var/tmp acc. LSB
3882         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
3883         RESULT_TYPE_IFX
3884         * support/regression/tests/onebyte.c: added test
3885
3886 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3887
3888         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
3889
3890 2006-10-05 Borut Razem <borut.razem AT siol.net>
3891
3892         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
3893           thanks to dfulab:
3894           - sdcc.dsw: changed property eol-style to CRLF
3895           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
3896
3897 2006-10-04 Raphael Neider <rneider AT web.de>
3898
3899         * device/include/pic/{pic16f84.h,pic16f84a.h},
3900         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
3901           from patch #1522504, thanks to Robas Teodor
3902
3903 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
3904
3905         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
3906           fixes bug 1566015
3907
3908 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
3909
3910         * src/pic16/glue.c (pic16emitMaps),
3911         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
3912         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
3913         * device/lib/pic16/libc/string/memcpypgm2ram.c,
3914         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
3915           Philipp Krause
3916         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
3917         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
3918
3919 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3920
3921         * support/librarian/sdcclib.c: Added option -l.
3922         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
3923           usage totals.
3924         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
3925           using Windows command prompt.
3926
3927 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
3928
3929         * device/lib/libsdcc.lib: added module rand
3930         * src/ds390/ralloc.c (rematStr),
3931         * src/hc08/ralloc.c (rematStr),
3932         * src/mcs51/ralloc.c (rematStr),
3933         * src/z80/ralloc.c (rematStr): made output more consistent
3934         * src/mcs51/gen.c: cosmetic changes
3935
3936 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
3937
3938         * src/port.h: added mem.cabs_name to PORT
3939         * src/ds390/main.c,
3940         * src/hc08/main.c,
3941         * src/mcs51/main.c,
3942         * src/pic16/main.c,
3943         * src/pic/main.c,
3944         * src/xa51/main.c,
3945         * src/z80/main.c: added cabs_name initializers
3946         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
3947           constants
3948           (emitMaps): emit absolutes in code memory into cabs_name
3949         * src/SDCCmem.c,
3950         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
3951         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
3952         * support/regression/fwk/include/testfwk.h: added define for at
3953         * support/regression/tests/absolute.c: added, new
3954
3955 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
3956
3957         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
3958           optimizations, see also patch 887161 by Stas Sergeev
3959         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
3960           to be necessary anymore,
3961           (102, 103, 104, 127): renamed all occurances of bp to _bp
3962
3963 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
3964
3965         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
3966           thanks Weston T. Schmidt for patch 1555221
3967         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
3968         * src/SDCCicode.c(geniCodeMultiply): small optimization
3969
3970 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
3971
3972         * device/include/stdlib.h: added rand prototypes
3973         * device/lib/rand.c: new, added
3974         * device/lib/Makefile.in: added rand.c
3975         * src/z80/peeph.def,
3976         * src/z80/peeph-gbz80.def,
3977         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
3978
3979 2006-09-20 Raphael Neider <rneider AT web.de>
3980
3981         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
3982
3983 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
3984
3985         * as/link/aslink.h: cosmetic changes
3986         * as/link/mcs51/Makefile.in,
3987         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
3988
3989 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
3990
3991         * as/link/aslink.h,
3992         * as/link/mcs51/aslink.h,
3993         * as/link/z80/aslink.h: merged and moved to as/link/
3994         * as/link/lkstore.c,
3995         * as/link/mcs51/lkstore.c: moved to as/link/
3996         * as/link/clean.mk: remove *.o
3997         * as/link/mcs51/alloc.h: deleted
3998         * as/link/mcs51/lkarea.c: added lnksect prototype
3999         * as/link/mcs51/lkdata.c,
4000         * as/link/mcs51/lklex.c,
4001         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
4002         * as/link/mcs51/lkmem.c,
4003         * as/link/mcs51/lknoice.c: removed include strcmpi.h
4004         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
4005         * as/link/mcs51/aslink.dsp,
4006         * as/link/mcs51/Makefile.aslink,
4007         * as/link/mcs51/Makefile.bcc,
4008         * as/link/mcs51/Makefile.in: updated for moved files
4009         * as/link/z80/lkarea.c,
4010         * as/link/z80/lkhead.c,
4011         * as/link/z80/lklex.c,
4012         * as/link/z80/lklibr.c,
4013         * as/link/z80/lklist.c,
4014         * as/link/z80/lkmain.c,
4015         * as/link/z80/lkrloc.c,
4016         * as/link/z80/lksym.c: synced with mcs51
4017         * as/link/z80/lkdata.c,
4018         * as/link/z80/lkeval.c,
4019         * as/link/z80/lkihx.c,
4020         * as/link/z80/lks19.c: cosmetic changes
4021         * as/link/z80/Makefile.in,
4022         * as/link/z80/linkgbz80.dsp,
4023         * as/link/z80/linkz80.dsp: updated for moved files
4024
4025 2006-09-16 Borut Razem <borut.razem AT siol.net>
4026
4027         * debugger/mcs51/sdcdb.c: partially fixed
4028           [ 1203664 ] sdcdb fails to open files w. two "." periods
4029         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
4030           debugger/mcs51/symtab.h: fixed indenting
4031         * configure.in, configure: up to date with latest Maarten's changes
4032
4033 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
4034
4035         as/link/mcs51
4036         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
4037         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
4038         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
4039         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
4040         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
4041         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
4042         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
4043         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
4044         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
4045         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
4046         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
4047         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
4048         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
4049         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
4050         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
4051         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
4052         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
4053         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
4054         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
4055         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
4056         as/link/mcs51/alloc.h,
4057         as/link/mcs51/clean.mk,
4058         as/link/mcs51/conf.mk,
4059         as/link/mcs51/Makefile.bcc,
4060         as/link/mcs51/Makefile.in,
4061         as/link/mcs51/readme.390,
4062         as/link/mcs51/strcmpi.c,
4063         as/link/mcs51/strcmpi.h,
4064         as/mcs51/clean.mk,
4065         as/mcs51/Makefile.bcc,
4066         as/mcs51/Makefile.in,
4067         configure,
4068         Makefile.in,
4069         sdcc.dsw: moved mcs51 linker to as/link/mcs51
4070
4071 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
4072
4073         * as/link,
4074         * as/link/Makefile.in,
4075         * as/link/z80/linkgbz80.dsp,
4076         * as/link/z80/linkz80.dsp,
4077         * configure,
4078         * link,
4079         * link/clean.mk,
4080         * link/Makefile.in,
4081         * link/README,
4082         * link/z80,
4083         * link/z80/aslink.h,
4084         * link/z80/clean.mk,
4085         * link/z80/conf.mk,
4086         * link/z80/linkgbz80.dsp,
4087         * link/z80/linkz80.dsp,
4088         * link/z80/lkarea.c,
4089         * link/z80/lkdata.c,
4090         * link/z80/lkeval.c,
4091         * link/z80/lkgb.c,
4092         * link/z80/lkgg.c,
4093         * link/z80/lkhead.c,
4094         * link/z80/lkihx.c,
4095         * link/z80/lklex.c,
4096         * link/z80/lklibr.c,
4097         * link/z80/lklist.c,
4098         * link/z80/lkmain.c,
4099         * link/z80/lkrloc.c,
4100         * link/z80/lks19.c,
4101         * link/z80/lksym.c,
4102         * link/z80/Makefile.in,
4103         * Makefile.in,
4104         * sdcc.dsw: moved link/ to as/link/
4105
4106 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
4107
4108         * as/mcs51/i51mch.c (machine): fixed warning
4109
4110 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
4111
4112         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
4113
4114 2006-09-09 Borut Razem <borut.razem AT siol.net>
4115
4116         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
4117           sdcdb WIN32 native port
4118         * src/clean.mk: fixed
4119
4120 2006-09-08 Borut Razem <borut.razem AT siol.net>
4121
4122         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
4123
4124 2006-09-08 Raphael Neider <rneider AT web.de>
4125
4126         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
4127         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
4128             to gplink to disable processor mismatch warning and to allow
4129             the use of devices with only aliased (shared) memory banks,
4130           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
4131
4132 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4133
4134         * doc/sdccman.lyx: Some re-formating plus example on using
4135           #pragma preproc_asm +/-
4136
4137 2006-09-07 Borut Razem <borut.razem AT siol.net>
4138
4139         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
4140           section
4141
4142 2006-09-06 Borut Razem <borut.razem AT siol.net>
4143
4144         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
4145           line at sdcc.nsi:153
4146         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
4147
4148 2006-09-05 Borut Razem <borut.razem AT siol.net>
4149
4150         * configure.in, configure: support for winsock2
4151         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
4152           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
4153           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
4154           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
4155           debugger/mcs51/symtab.h: sdcdb WIN32 native port
4156
4157 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
4158
4159         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
4160           and OP_DEFS
4161         * support/regression/tests/bug1551947.c: new, added
4162         * src/SDCCsymt.h: strings are char* not byte*
4163
4164 2006-09-05 Raphael Neider <rneider AT web.de>
4165
4166         * device/lib/pic16/libdev/pic18f4550.c,
4167           device/include/pic16/pic18f4550.h: added PORTD/TRISD
4168             declarations/definitions from patch #1520949
4169
4170 2006-09-05 Raphael Neider <rneider AT web.de>
4171
4172         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
4173           byte-aligned bitfields, fixes #1539278
4174
4175 2006-09-05 Raphael Neider <rneider AT web.de>
4176
4177         * src/pic/gen.c (genReceive): skip unreferenced arguments,
4178           fixes #1544120
4179
4180 2006-09-04 Borut Razem <borut.razem AT siol.net>
4181
4182         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
4183         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
4184           -mno-cygwin is a part of the compiler name
4185         * support/scripts/sdcc_mingw32: don't disable ucsim
4186
4187 2006-09-03 Borut Razem <borut.razem AT siol.net>
4188
4189         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
4190         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
4191
4192 2006-09-03 Raphael Neider <rneider AT web.de>
4193
4194         * src/pic/ralloc.c,
4195         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
4196           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
4197           fixes #1550049
4198
4199 2006-09-01 Borut Razem <borut.razem AT siol.net>
4200
4201         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
4202           to make ppc-osx happy
4203
4204 2006-08-31 Borut Razem <borut.razem AT siol.net>
4205
4206         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
4207         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
4208         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
4209         * support/regression/ports/ds390/spec.mk,
4210           support/regression/ports/mcs51/spec.mk,
4211           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
4212           To run regression tests in mingw environment:
4213           make DEV_NULL=NUL CC=gcc
4214
4215 2006-08-30 Borut Razem <borut.razem AT siol.net>
4216
4217         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
4218           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
4219           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
4220           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
4221           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
4222           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
4223           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
4224           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
4225           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
4226           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
4227           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
4228           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
4229           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
4230           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
4231           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
4232           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
4233           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
4234           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
4235           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
4236           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
4237           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
4238           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
4239           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
4240           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
4241           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
4242           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
4243           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
4244           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
4245           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
4246           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
4247           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
4248           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
4249           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
4250           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
4251           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
4252           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
4253           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4254           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
4255           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
4256           ucsim WIN32 native port
4257
4258 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4259
4260         * doc/sdccman.lyx: added note on dynamic memory heap initialization
4261
4262 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4263
4264         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
4265         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
4266
4267 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
4268
4269         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
4270         * support/regression/tests/bug1546986.c: new, added
4271         * as/mcs51/.cvsignore,
4272         * debugger/mcs51/.cvsignore,
4273         * src/.cvsignore: deleted
4274
4275 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4276
4277         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
4278           definitions)
4279
4280 2006-08-20 Borut Razem <borut.razem AT siol.net>
4281
4282         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
4283           removed cl_listen_console::match(), cl_console::match(),
4284           restructured cl_commander::proc_input()
4285
4286 2006-08-16 Borut Razem <borut.razem AT siol.net>
4287
4288         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
4289           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
4290           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
4291
4292 2006-08-14 Borut Razem <borut.razem AT siol.net>
4293
4294         * support/regression/Makefile.in,
4295           support/regression/ports/pic14/gpsim.cmd,
4296           support/regression/ports/pic14/spec.mk,
4297           support/regression/ports/pic14/support.c:
4298           added pic14 regression test
4299
4300 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
4301
4302         * as/doc/asxhtm.html: documented changed ABS behaviour
4303         * as/doc/README: fixed some typos
4304
4305 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
4306
4307         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
4308           not defined on host
4309
4310 2006-08-12 Borut Razem <borut.razem AT siol.net>
4311
4312         * support/regression/fwk/include/testfwk.h,
4313           support/regression/fwk/lib/testfwk.c,
4314           support/regression/generate-cases.py,
4315           support/regression/Makefile.in:
4316           regression test framework does not depend on function pointers and
4317           variable arguments
4318
4319 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
4320
4321         * device/include/stddef.h: c temporary hack to fix bug 1518273
4322
4323 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4324
4325         * device/include/mcs51/cc2510fx.h: added
4326         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
4327           to projects.
4328
4329 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
4330
4331         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
4332         * as/z80/Makefile.in: added strcmpi.c
4333         * as/z80/z80adr.c: added upper case registers and lower case conditionals
4334         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
4335
4336 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
4337
4338         * device/lib/gbz80/asm_strings.s,
4339         * device/lib/gbz80/crt0_rle.s,
4340         * device/lib/gbz80/div.s,
4341         * device/lib/gbz80/mul.s,
4342         * device/lib/gbz80/shift.s,
4343         * device/lib/z80/asm_strings.s,
4344         * device/lib/z80/crt0_rle.s,
4345         * device/lib/z80/div.s,
4346         * device/lib/z80/mul.s,
4347         * device/lib/z80/shift.s: changed to all lower case menmonics except the
4348           flags which are all upper case
4349
4350 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
4351
4352         * as/z80/asm.h: made CASE_SENSITIVE 1
4353         * link/z80/aslink.h: made CASE_SENSITIVE 1
4354         * src/z80/gen.c (throughout): made all conditionals upper case
4355         * support/regression/tests/bug1503067.c: new
4356
4357 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
4358
4359         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
4360           (shiftIntoPair): added case 2 for PAIR_IY,
4361           (setupToPreserveCarry): replaced parameters with iCode and check if
4362            PAIR_DE is in use to fix bug 1399290,
4363           (genPlus, genMinus): updated call to setupToPreserveCarry
4364         * support/regression/tests/bug1399290.c: new
4365
4366 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
4367
4368         * device/lib/Makefile.in (Z80SOURCES): enabled float support
4369         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
4370         * src/ds390/gen.c (shiftRLong),
4371         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
4372         * src/mcs51/gen.c (sameReg): changed to sameByte,
4373           (xch_a_aopGet): new,
4374           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
4375            shiftRLong): fixed bug 1533966
4376         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
4377           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
4378         * support/regression/Makefile.in: disabled z80, enabled ucz80
4379         * support/regression/tests/float_trans.c: enabled test for z80 and host
4380         * support/regression/tests/shifts2.c: new, for testing bug 1533966
4381
4382 2006-08-01 Borut Razem <borut.razem AT siol.net>
4383
4384         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
4385           comparison is always false due to limited range of data type
4386           on PPC64 machine (openpower-linux1) where "char = unsigned char"
4387
4388 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
4389
4390         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
4391         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
4392         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
4393         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
4394
4395 2006-07-31 Borut Razem <borut.razem AT siol.net>
4396
4397         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
4398           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
4399           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
4400           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
4401           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
4402           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
4403           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
4404           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
4405           enable ucsim mingw compilation. Serial port is disabled,
4406           since it uses termios.h API, which is not available on native
4407           WIN32
4408
4409 2006-07-31 Borut Razem <borut.razem AT siol.net>
4410
4411         * Small Device C Compiler 2.6.0 released
4412         * support/scripts/sdcc.nsi: added FULL_DOC option
4413         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
4414
4415 2006-07-28 Borut Razem <borut.razem AT siol.net>
4416
4417         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
4418         * doc/INSTALL.txt: updated
4419
4420 2006-07-27 Borut Razem <borut.razem AT siol.net>
4421
4422         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
4423           device/lib/pic/libdev/Makefile.in: fixed bug
4424           [ 1438354 ] pic libsdcc: distclean doesn't work
4425         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
4426           device/lib/pic16/libio/Makefile.in: fixed bug
4427           [ 1438344 ] pic16 lib: clean doesn't work properly
4428         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
4429
4430 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
4431
4432         * device/lib/pic/libsdcc/fsdiv.c,
4433         * device/lib/pic/libsdcc/fsmul.c,
4434         * device/lib/pic16/libsdcc/float/fsdiv.c,
4435         * device/lib/pic16/libsdcc/float/fsmul.c,
4436         * device/lib/_fsdiv.c,
4437         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
4438         * support/regression/tests/bug1520966.c: added
4439         * doc/knownbugs.html: removed [ 1520966 ] from the list
4440
4441 2006-07-25 Borut Razem <borut.razem AT siol.net>
4442
4443         * configure.in, configure, sdccconf_in.h: fixed bug
4444           [ 1519095 ] regression test onebyte.c fails on ppc64 host
4445         * doc/knownbugs.html: removed [ 1519095 ] from the list
4446
4447 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
4448
4449         * doc/knownbugs.html: added, contains list of known bugs at release
4450         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
4451
4452 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
4453
4454         * device/include/mcs51/compiler.h: added SFRX for xdata based special
4455           function registers and corrected defaults with additional warning
4456         * device/lib/malloc.c: cosmetic changes
4457         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
4458         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
4459           (fillGaps): and used it
4460
4461 2006-07-20 Raphael Neider <rneider AT web.de>
4462
4463         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
4464           output unless SDCCPICDEBUG is set
4465         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
4466           output if SILENT is set
4467
4468 2006-07-11 Borut Razem <borut.razem AT siol.net>
4469
4470         * doc/README.txt: updated
4471
4472 2006-07-10 Borut Razem <borut.razem AT siol.net>
4473
4474         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
4475           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
4476           in WIN32 installation
4477         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
4478           release candidate 1
4479
4480 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
4481
4482         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
4483         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
4484
4485 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
4486
4487         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
4488
4489 2006-07-06 Borut Razem <borut.razem AT siol.net>
4490
4491         * support/regression/tests/bitfields.c:
4492           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
4493         * support/regression/tests/constantRange.c:
4494           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
4495
4496 2006-07-04 Borut Razem <borut.razem AT siol.net>
4497
4498         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
4499           src/port.mk,
4500           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
4501           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
4502           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
4503           reverted changes from 2006-07-03
4504         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
4505         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
4506           added CPPFLAGS, used by the host port
4507
4508 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
4509
4510         * support/regression/valdiag/tests/switch.c,
4511         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
4512         * support/regression/tests/libmullong.c: fixed for host
4513         * support/regression/ports/host/spec.mk: disable all warnings for host,
4514         SDCC runs with --less-pedantic too
4515
4516 2006-07-03 Borut Razem <borut.razem AT siol.net>
4517
4518         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
4519           defined CPPFLAGS
4520         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
4521         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
4522           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
4523           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
4524           include ../port.mk
4525         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
4526           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
4527           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
4528           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
4529
4530 2006-07-02 Raphael Neider <rneider AT web.de>
4531
4532         * src/pic16/devices.inc,
4533         * device/include/pic16/pic18fregs.h,
4534         * device/include/pic16/pic18f4550.h,
4535         * device/lib/pic16/pics.all,
4536         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
4537
4538 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
4539
4540         * as/hc08/lkaomf51.c (OutputName),
4541         * as/mcs51/lkaomf51.c (OutputName),
4542         * as/z80/asmain.c (asmbl),
4543         * src/ds390/main.c (asmLineNodeFromLineNode),
4544         * src/hc08/ralloc.c (hc08_assignRegisters),
4545         * src/mcs51/main.c (asmLineNodeFromLineNode),
4546         * src/xa51/ralloc.c (checkRegMask),
4547         * src/xa51/gen.c (emitcode),
4548         * src/z80/gen.c (_emit2),
4549         * src/SDCCast.c (searchLitOp),
4550         * src/SDCCglobl.h,
4551         * support/packihx/packihx.c,
4552         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
4553         * src/ds390/gen.c (aopPutUsesAcc),
4554         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
4555         * support/regression/tests/libmullong.c (mullong_wrapper),
4556         * src/SDCCsymt.c (powof2),
4557         * src/SDCCast.c,
4558         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
4559         * src/SDCCsymt.h: added TYPE_TARGET_*
4560         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
4561         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
4562         SDCCast because 1) header problems 2) this is the right place
4563         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
4564         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
4565         prototype
4566
4567 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
4568
4569         * src/SDCCicode.h: removed buggy semicolon in unused macro
4570         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
4571         search for previous definiton of auto symbols too,
4572         (findPrevUse): fixed logic of emitWarnings
4573
4574 2006-06-26 Raphael Neider <rneider AT web.de>
4575
4576         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
4577           PCLATH and PCLATU on interrupts, potentially fixes #1505141
4578
4579 2006-06-25 Raphael Neider <rneider AT web.de>
4580
4581         * device/lib/pic/libm: NEW, added math library functions
4582         * device/lib/pic/libsdcc: NEW; added float support functions
4583         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
4584         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
4585           NEW, added math related headers
4586         * device/include/asm/pic/features.h: NEW
4587         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
4588           (popGet): allow larger offsets for AOP_PCODE,
4589           (genDataPointerSet): handle literals explicitly, more debug output,
4590           (genAssign): fixed for float using aopLiteral ;-)
4591         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
4592           GOTO initialisation routine
4593         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
4594           flag on registers, fixes #1469043 (local variables do not work)
4595         * src/pic/main.c (_pic14_do_link),
4596         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
4597           available
4598
4599 2006-06-25 Borut Razem <borut.razem AT siol.net>
4600
4601         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
4602           characters printed (not including the trailing '\0' used to end
4603           output to strings). Problem detected in regression test bug-927659.c.
4604           NOTE: printf() family functions should return int instead
4605           unsigned int!
4606         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
4607           specifier are printed as themselves
4608         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
4609           support flags, width and precision specifiers
4610
4611 2006-06-24 Borut Razem <borut.razem AT siol.net>
4612
4613         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
4614           to the list of sdcc tagrets not supporting bit type
4615         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
4616           testfor pic16 due to bug:
4617           [ 1511794 ] pic16: regression test bug-895992.c fails
4618
4619 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
4620
4621         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
4622         * src/SDCCglue.c (initPointer), fixed bug 1496419
4623         * support/regression/tests/bug1496419.c: new, added
4624
4625 2006-06-22 Borut Razem <borut.razem AT siol.net>
4626
4627         * support/regression/ports/pic16/support.c: use gpsim usart module from
4628           libgpsim_modules library
4629
4630 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4631
4632         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
4633         IP0H to IPH0.
4634
4635 2006-06-19 Raphael Neider <rneider AT web.de>
4636
4637         * src/pic/glue.h,src/pic16/glue.h: added prototypes
4638         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
4639           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
4640           (pic14printExterns,pic14printPublics,pic16printPublics,
4641           pic16_printExterns): use new functions to emit symbols
4642           (picglue,pic16glue): emit publics before emitting externs
4643         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
4644           locally defined functions to avoid bug #1443651
4645         * support/regression/tests/bug-716242.c: removed pic16 workaround
4646         * support/regression/ports/pic16/spec.mk: ignore errors during build
4647
4648 2006-06-19 Raphael Neider <rneider AT web.de>
4649
4650         * src/pic/glue.h: added pic14aopLiteral prototype
4651         * src/pic/glue.c (pic14aopLiteral): return unsigned int
4652         * src/pic/gen.c: removed stdint.h dependency
4653           (aopGet): use Safe_strdup()
4654           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
4655           (genDataPointerSet): use pic14aopLiteral()
4656         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
4657           for pic16; thanks to Bernhard and Maarten
4658
4659 2006-06-18 Borut Razem <borut.razem AT siol.net>
4660
4661         * support/regression/tests/structflexarray.c: flexible array members
4662           not supported by gcc < 3
4663         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
4664           GUI tool by default
4665         * src/pic/gen.c: don't include [p]strdin.h on solaris
4666         * support/Util/pstdint.h: addad svn attributes
4667         * support/regression/tests/constantRange.c,
4668           support/regression/tests/rotate.c: include inttypes.h instead
4669           stdint.h on solaris, addad svn attributes
4670
4671 2006-06-18 Raphael Neider <rneider AT web.de>
4672
4673         * src/SDCCsymt.c (initCSupport): change return type of divschar to
4674           int for PIC16
4675         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
4676           (pic16_genMinusBits): simplified sign-extension
4677           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
4678             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
4679             adjusted to correctly handle mixed-signed operands, disabled
4680             now unused multiplciation routines
4681         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
4682           (assignResultValue): added argument denoting the size of the result
4683             as returned by the function (fixes upcasts in assigning from
4684             function calls: char foo(); int i = foo();)
4685           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
4686             function result to assignResultValue
4687           (genMult): disabled inlined multiplication code
4688           (genDiv): augmented to also handle the modulus operator, fixed to
4689             handle mixed-signed operands correctly
4690           (genMod): simply call genDiv, disabled unused code
4691           (genAssign): fixed missing (sign-)extension on result
4692         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
4693             valid char operands, allow signed operands for native code, added
4694             division and modulo operator handling
4695         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
4696
4697         As a consequence, onebyte.c (if split into two files) and muldiv.c
4698         pass regression tests.
4699
4700 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4701
4702         * doc/Makefile.in: two runs of makeindex seem needed to get
4703         correct page references in the index of sdccman.pdf
4704         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
4705
4706 2006-06-17 Borut Razem <borut.razem AT siol.net>
4707
4708         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
4709
4710 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4711
4712         * doc/sdccman.lyx: updated, added (porting source code, debugging),
4713         mentioned ec2drv and paulmon
4714
4715 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
4716
4717         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
4718           consecutive abs areas
4719           (find_empty_space, allocate_space): added map to handle codemap or
4720            xdatamap,
4721           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
4722            absolute idata and xdata
4723         * as/mcs51/lkmem.c (summary2): updated legend
4724
4725 2006-06-16 Raphael Neider <rneider AT web.de>
4726
4727         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
4728
4729 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
4730
4731         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
4732           1208515
4733         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
4734
4735 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
4736
4737         * src/port.h (struct PORT): added field gp_tags, to hold the tag
4738         value of generic pointers,
4739         * src/avr/main.c,
4740           src/ds390/main.c,
4741           src/hc08/main.c,
4742           src/izt/i186.c,
4743           src/izt/tlcs900h.c,
4744           src/mcs51/main.c,
4745           src/pic/main.c,
4746           src/pic16/main.c,
4747           src/xa51/main.c,
4748           src/z80/main.c: PORT structure, added elements for gp_tags field,
4749         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
4750         fields in the PORT structure of each port,
4751         * src/SDCCast.c (decorateType): allow processing of generic pointers
4752         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
4753         S_FIXED symbols
4754
4755 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
4756
4757         * link/z80/lkgb.c,
4758         * link/z80/lkgg.c,
4759         * src/pic16/gen.c,
4760         * src/pic16/main.c,
4761         * src/pic16/pcode.c,
4762         * src/pic/main.c,
4763         * src/pic/pcoderegs.c,
4764         * src/SDCCicode.c,
4765         * src/SDCCmain.c,
4766         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
4767           bug 1504689 on minGW
4768
4769 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4770
4771         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
4772
4773 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
4774
4775         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
4776
4777 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
4778
4779         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
4780           for optimization
4781
4782 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
4783
4784         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
4785         to a char variable. Fixed bug #1504211
4786         * device/include/pic16/adc.h,
4787         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
4788         and fixed bug #1364390
4789
4790 2006-06-10 Borut Razem <borut.razem AT siol.net>
4791
4792         * CVSROOT: removed the CVS left-over
4793
4794 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
4795
4796         * as/hc08/asmain.c (asexit),
4797         * as/hc08/lkmain.c (lkexit),
4798         * as/mcs51/asmain.c (asexit),
4799         * as/mcs51/lkmain.c (lkexit),
4800         * src/SDCCglue.c (DEFSETFUNC),
4801         * src/SDCCmain.c (linkEdit, assemble),
4802         * support/librarian/sdcclib.c (AddRel),
4803           replaced unlink() by standard C remove()
4804         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
4805         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
4806           gatherImplicitVariables): new, added to fix bug 608752,
4807           (createFunction): added gatherImplicitVariables()
4808         * src/SDCCast.h: added createRMW prototype
4809         * src/SDCCsymt.h (struct symbol): added infertype
4810         * support/regression/tests/bug608752.c: new, added
4811
4812 2006-06-10 Raphael Neider <rneider AT web.de>
4813
4814         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
4815           multibyte dummy reads (fixes #1503234)
4816
4817 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
4818
4819         * device/include/mcs51/compiler.h: new, added header file to enable
4820           creating common sfr definition header files for different compilers
4821
4822 2006-06-05 Raphael Neider <rneider AT web.de>
4823
4824         * src/pic16/{pcode.h,genarith.c}:
4825           introduced pCodeOp combining any two pCodeOps (previously only
4826           two register operands could be combined), removed pcop2 from
4827           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
4828         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
4829         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
4830           rewritten to use new PO_TWO_OPS
4831         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
4832         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
4833           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
4834           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
4835           (pic16_get_op): embraced return arg to allow #define return(x),
4836             added new case for combined opcodes
4837           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
4838           (pic16_pCode2str,pic16_getRegFrompCodeOp,
4839            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
4840
4841 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
4842
4843         * src/SDCCval.c (checkConstantRange): added
4844         * src/SDCCval.h: added checkConstantRange
4845         * support/Util/SDCCerr.c,
4846         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
4847         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
4848         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
4849         * src/SDCCast.c (decorateType): added checkConstantRange,
4850         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
4851         can be emitted with the correct always true/false warning,
4852         added optimization for double '!';
4853         result of decorateType() must be assigned back to the tree, because
4854         decorateType() can change the tree
4855         * src/SDCCicode.c (geniCodeLogic),
4856         (geniCodeAssign): replaced new checkConstantRange, added warnings,
4857         (checkConstantRange): removed, it was only a fragment which never
4858         emitted a warning
4859         * src/SDCCsymt.c (computeType): fixed promotion for
4860         "-1 < (unsigned bit) b"
4861         * src/pic/ralloc.c (packRegsForAssign),
4862         * src/pic16/ralloc.c (packRegsForAssign),
4863         * src/hc08/ralloc.c (packRegsForAssign),
4864         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
4865         from mcs51
4866         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
4867         * support/regression/tests/constantRange.c: added
4868         * support/valdiag/tests/constantRange.c: added
4869         * support/valdiag/valdiag.py: added -DPORT_HOST=1
4870
4871 2006-06-02 Borut Razem <borut.razem AT siol.net>
4872
4873         * support/regression/ports/pic16/support.c: increase stack size
4874           to 255 bytes
4875         * support/regression/Makefile.in: sort tests by name so that the
4876           resutlts can be compared on different machines / platforms
4877
4878 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
4879
4880         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
4881         * src/ds390/gen.c (emitLabel): new, added,
4882           (genDjnz): fixed stack overflow bug,
4883           (throughout): cosmetic changes to sync with mcs51/gen.c,
4884           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
4885         * src/mcs51/gen.c (genEndFunction): small optimization,
4886           (throughout): cosmetic changes to sync with ds390/gen.c
4887
4888 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
4889
4890         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
4891           (_print_format): fixed printing pointers
4892         * src/mcs51/gen.c (emitLabel, movb): new, added,
4893           (genAssign): small optimization,
4894           (genDjnz): fixed stack overflow bug,
4895           (throughout): replaced sprintf with SNPRINTF,
4896           replaced mcs51_regWithIdx with REG_WITH_INDEX,
4897           replaced emitcode("mov", "b,...") with MOVB(...),
4898           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
4899           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
4900         * src/mcs51/peeph.def: added rules 140 and 264
4901         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
4902           so they may get optimized into registers
4903
4904 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
4905
4906         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
4907           immediately when encountered,
4908           (printUsage): always use stderr even on windows
4909
4910 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
4911
4912         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
4913         (processParms): fixed bug #1247551
4914         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
4915         parseCmdLine, main): print '--version' to stdout,
4916         print 'help' to stdout if --help is given,
4917         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
4918         arguments are given; fixed --help
4919
4920 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
4921
4922         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
4923         * support/regression/tests/bug-1493710.c: added
4924
4925 2006-05-27 Borut Razem <borut.razem AT siol.net>
4926
4927         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
4928           static instead auto
4929         * support/regression/ports/pic16/support.c: increase stack size
4930           from default 64 bytes to 128 bytes
4931         * support/regression/tests/staticinit.c,
4932           support/regression/tests/float.c: regression tests fully enabled
4933           for pic16 port by putting the initialized data arrays into the code
4934           section
4935         * support/regression/ports/pic16/spec.mk: don't link default libraries.
4936           This was changed by mistake in the previous version.
4937
4938 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
4939
4940         * src/pic16/gen.c (genFunction, genEndFunction): some
4941         beautifications, fixed bug with falsely restoring FSR2 in large
4942         stack model, thanks to Beau E. Cox for reporting the bug
4943
4944 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
4945
4946         * debugger/mcs51/break.c,
4947         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
4948           use %p to print pointers, made address variables unsigned
4949         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
4950         * debugger/mcs51/symtab.c (parseSymbol): must return something
4951         * src/mcs51/gen.c (aopForSym): small optimization,
4952            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
4953           (freeAsmop): added missing break,
4954           (aopPut): removed parameter bvolatile, determine it inside the function,
4955           (saveRegisters, unsaveRegisters): small optimization,
4956           (genIpush): removed pointless check,
4957           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
4958           replaced sprintf with SNPRINTF,
4959           replaced strcpy with strncpyz,
4960           updated aopPut calls,
4961           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
4962         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
4963
4964 2006-05-24 Borut Razem <borut.razem AT siol.net>
4965
4966         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
4967           modification of test for the pic16 port, put the array to the code
4968           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
4969
4970 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4971
4972         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
4973         * support/Util/pstdint.h: added
4974
4975 2006-05-22 Borut Razem <borut.razem AT siol.net>
4976
4977         * src/regression/Makefile: removed bool2.c test, added -q linker option
4978         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
4979           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
4980           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
4981           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
4982           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
4983           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
4984           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
4985           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
4986           define SUPPORT_BIT_TYPES 0, removed unused bit variables
4987
4988 2006-05-22 Raphael Neider <rneider AT web.de>
4989
4990         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
4991           bug #1492360 (problematic due to generic pointers, see code)
4992
4993 2006-05-22 Borut Razem <borut.razem AT siol.net>
4994
4995         * support/regression/ports/pic16/specs.mk: removed stack size linker
4996           directive
4997         * support/regression/tests/array.c,
4998           support/regression/tests/bitopcse.c,
4999           support/regression/tests/bug-908454.c,
5000           support/regression/tests/malloc.c: modified for pic16 regression test
5001         * support/regression/tests/bitfields.c:
5002           pic16 - excluded bitfileds of size > 8
5003         * support/regression/tests/bp.c: pic16 - reduced data size
5004         * support/regression/tests/bug-221100.c: pic16 - reduced data size
5005         * support/regression/tests/bug-460010.c:
5006           pic16 - used the absolute address the fits in memory
5007         * support/regression/tests/bug-716242.c:
5008           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
5009         * support/regression/tests/float.c:
5010           pic16 - excluded - data size too big
5011         * support/regression/tests/onebyte.c:
5012           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
5013         * support/regression/tests/shifts.c:
5014           pic16 - function names probably have to differ in first X characters
5015           (gpasm limitation?)
5016         * support/regression/tests/staticinit.c:
5017           pic16 - excluded some tests due error: no target memory available for
5018           section ".idata"
5019
5020 2006-05-22 Borut Razem <borut.razem AT siol.net>
5021
5022         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
5023           second try. Thanks Stas Sergeev once more.
5024
5025 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
5026
5027         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
5028           (genLeftShift, genRightShift): fixed bug 1491627
5029         * src/hc08/peeph.def (rules 7, 8.x): added
5030         * support/regression/tests/shifts.c (ShiftLeftByParam,
5031           ShiftRightByParam, testShiftByParam): added to test variable shifting
5032
5033 2006-05-20 Raphael Neider <rneider AT web.de>
5034
5035         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
5036         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
5037           (allocReg): add only new registers to dynAllocRegs,
5038           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
5039             #1489055, #1445850, and probably #1483693
5040
5041 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
5042
5043         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
5044         bug in for-loop that didn't emit the last of CONFIG and ID registers
5045
5046 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
5047
5048         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
5049           with offset
5050         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
5051           1489016, 1434401 and 1490124
5052         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
5053           1489016, 1434401 and 1490124
5054
5055 2006-05-17 Borut Razem <borut.razem AT siol.net>
5056
5057         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
5058           thanks Stas Sergeev
5059
5060 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5061
5062         * device/include/mcs51/P89c51RD2.h,
5063         * device/include/mcs51/P89LPC901.h,
5064         * device/include/mcs51/P89LPC922.h,
5065         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
5066
5067 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
5068
5069         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
5070         to fix missing stack pragma in compiled binary object file,
5071
5072 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
5073
5074         * support/packihx/configure.in,
5075         * support/packihx/configure: removed warning, autoconf >= 2.5x can
5076         determine sizeof basic types even while cross compiling
5077
5078 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
5079
5080         * src/avr/gen.c (aopop),
5081         * src/ds390/gen.c (aopOp),
5082         * src/hc08/gen.c (aopOp),
5083         * src/mcs51/gen.c (aopop),
5084         * src/pic16/gen.c (pic16_aopOp),
5085         * src/pic/gen.c (aopOp),
5086         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
5087         if size of operand is smaller than spill location
5088
5089 2006-05-12 Borut Razem <borut.razem AT siol.net>
5090
5091         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
5092           have to have CR/LF line endings even if they are checked out on *nix
5093           or on WIN32 in cygwin binmode
5094
5095 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
5096
5097         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
5098         * device/include/ds80c390.h: added sfr16 definitions
5099         * src/ds390/gen.c,
5100         * src/ds390/gen.h,
5101         * src/ds390/main.c,
5102         * src/ds390/ralloc.c,
5103         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
5104           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
5105           bit returning functions
5106         * support/regression/tests/sfr16.c: enabled test on ds390
5107
5108 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5109
5110         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
5111         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
5112
5113 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
5114
5115         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
5116         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
5117           (cl_address_space constructor): removed expensive initialization,
5118           (cl_address_space::get_cell): extended for late initialization,
5119           (cl_address_space::*): use late initialization,
5120           (cl_address_decoder::activate): removed expensive initialization,
5121           This reduced regression test running time by 25%
5122
5123 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
5124
5125         * packihx/,
5126         * configure.in,
5127         * configure,
5128         * sdcc.dsw,
5129         * Makefile.bcc,
5130         * Makefile.in,
5131         * support/packihx/Makefile.in,
5132         * support/packihx/clean.mk,
5133         * support/packihx/Makefile.bcc,
5134         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
5135
5136 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5137
5138         * src/SDCCval.c (valNot): fix for regression test failure
5139           of not.c on big endian hosts
5140
5141 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
5142
5143         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
5144
5145 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5146
5147         * device/lib/mcs51/Makefile.in: changed string comparison operator
5148           to = for POSIX compliance; == is bash extension
5149
5150 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
5151
5152         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
5153           kosmonaut_pirx
5154
5155 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
5156
5157         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
5158         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
5159         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
5160         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
5161         bug report #1478657,
5162
5163 2006-05-05 Borut Razem <borut.razem AT siol.net>
5164
5165         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
5166           making the html
5167
5168 2006-05-02 Borut Razem <borut.razem AT siol.net>
5169
5170         * doc/Makefile.in: removed *.ind dependency since there is no rule to
5171           create *.ind, which made make to fail if invoked with -j 2
5172
5173 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
5174
5175         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
5176           Hubert Sack for patch 1479782
5177
5178 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
5179
5180         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
5181
5182 2006-05-01 Raphael Neider <rneider AT web.de>
5183
5184         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
5185           (create_pic): store only prefix-free device name,
5186           (init_pic): check for device names with "16" prefix,
5187           (list_valid_pics),
5188         * src/pic/device.h (struct PIC_device),
5189         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
5190             stored device name,
5191         * device/include/pic/pic12f{635,675,629,683}.h,
5192         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
5193         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
5194         * device/include/pic/pic16f505.h,
5195         * device/lib/pic/libdev/pic16f505.c: removed
5196         * device/include/pic/pic14devices.txt: added support for pic12f
5197             devices, removed unsupported non 16-bit devices
5198             [above changes provided by patch from Zik Saleeba]
5199         * src/pic/*, src/pic16/*, device/include/pic16/*,
5200           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
5201
5202 2006-05-01 Borut Razem <borut.razem AT siol.net>
5203
5204         * configure.in, configure, doc/Makefile.in:
5205           sync with nightly build makefile - latex, dvipdf and dvips
5206           not needed any more
5207
5208 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
5209
5210         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
5211         in the library source
5212
5213 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
5214
5215         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
5216
5217 2006-04-28 Raphael Neider <rneider AT web.de>
5218
5219         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
5220         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
5221           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
5222         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
5223
5224 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
5225
5226         * device/lib/pic/libdev/Makefile.in,
5227         * device/lib/hc08/Makefile.in,
5228         * device/lib/gbz80/Makefile.in,
5229         * device/lib/z80/Makefile.in,
5230         * device/lib/ds390/Makefile.in,
5231         * device/lib/ds400/Makefile.in: added srcdir to include search path,
5232         thanks to Borut for the bug report
5233         * configure.in,
5234         * configure: always create doc/Makefile independent from --enable-doc
5235         * Makefile.in: always install from directory doc independent from
5236         --enable-doc
5237         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
5238         removed
5239         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
5240         * doc/Makefile.in: install *.txt if present
5241         * device/include/Makefile.in (install): added installation of pic/*.inc
5242         and pic/*.txt files again, they were erroneously removed
5243
5244 2006-04-28 Raphael Neider <rneider AT web.de>
5245
5246         * src/pic/{gen.c,main.h,pcode.c},
5247         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
5248             concerning signedness with casts
5249
5250 2006-04-28 Raphael Neider <rneider AT web.de>
5251
5252         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
5253             definition of an interrupt handler,
5254         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
5255             interrupt handler stuff from picglue() to separate routine,
5256           (picglue): enabled definition of intr handlers in files w/o main()
5257
5258 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5259
5260         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
5261           compilation with MSVC 2005 Express Edition (VC8)
5262
5263 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
5264
5265         * device/lib/Makefile: fixed build of gbz80 lib
5266
5267 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5268
5269         * support/regression/tests/bug-460010.c,
5270         * support/regression/tests/bug-524691.c,
5271         * support/regression/tests/bug-716242.c: removed conditional defines
5272           that are already in testfwk.h
5273
5274 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
5275
5276         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
5277           (AccAXRsh1): added, shift right by 1,
5278           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
5279            AccAXLrl1
5280         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
5281
5282 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
5283
5284         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
5285         remove cast to same type
5286         * src/SDCCast.c (decorateType): fix for RFE 1475742,
5287         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
5288         * as/z80/Makefile,
5289         * link/z80/Makefile: removed, they have moved to
5290         Makefile.in files
5291         * configure,
5292         * configure.in: replaced duplicate message about ucsim by missing sdcpp
5293         * install-sh: fix bug #1204398 by setting umask 0022
5294         * device/lib/Makefile: separate build of z80 and gbz80 lib
5295
5296 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
5297
5298         Enabled VPATH feature: changed nearly all Makefiles (149 files).
5299         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
5300
5301         One basic decision: e.g. src/clean.mk includes further files. In order
5302         to make this work there are two solutions:
5303         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
5304           run configure on them. This way they can use
5305           'include $(srcdir)/port-clean.mk'
5306         - always include clean.mk by the Makefile at the same level. To avoid
5307           that `make clean` tries to include and build Makefile.dep the
5308           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
5309           implemented, because now even `make uninstall` doesn't create
5310           Makefile.in. clean.mk could be eliminated by pasting it in
5311           Makefile.in.
5312
5313         * debugger/mcs51/Makefile.in: build own objects from library sources
5314         (SLIB, SDCC) in current directory
5315
5316         * configure, configure.in: renamed --disable-device-lib-build in
5317         --disable-device-lib; added --enable-doc, the required tools are
5318         searched by configure; added result message; the toolchain for the
5319         belonging ports are now only built, if the port is enabled.
5320
5321         * support/regression/*: all output is written in directory gen, because
5322         the fwk and ports directories don't livet in the build tree using vpath
5323
5324         * doc/sdccman.lyx: renamed --disable-device-lib-build to
5325         --disable-device-lib, added --enable-doc, added section VPATH
5326
5327         * sim/ucsim/configure.in,
5328         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
5329         z80 are enabled by default
5330
5331 2006-04-24 Raphael Neider <rneider AT web.de>
5332
5333         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
5334             to config word, "pic14_"-prefixed some extern functions
5335           (pic14_emitConfigWord): emit __config directive(s) if assignment to
5336             config word has been found
5337         * src/pic/device.h: added prototypes
5338         * src/pic/pcode.c: added "pic14_"-prefix where needed
5339         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
5340             fixup
5341         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
5342             words,
5343           (pic14emitRegularMap): ignore config words,
5344           (pic14createInterruptVect): moved generating __config directives away
5345           (picglue): have __config directives emitted
5346
5347 2006-04-24 Borut Razem <borut.razem AT siol.net>
5348
5349         * doc/Makefile: sync with nightly build makefile
5350
5351 2006-04-24 Raphael Neider <rneider AT web.de>
5352
5353         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
5354             registers that have not been assigned proper liveranges,
5355             fixes #1469504 and #1474602,
5356           (pCodeRegOptimizeRegUsage): fixed typo in comment
5357
5358 2006-04-24 Borut Razem <borut.razem AT siol.net>
5359
5360         * device/examples/main8051.c: deleted - it was removed from CVS
5361           24.mar.2000 and after that modified 18.feb.2001, so it reappered
5362           after the transition to Subversion
5363         * src/SDCCalloc.h: deleted - it was removed  from CVS
5364           3.feb.2001 and after that modified 18.feb.2001, so it reappered
5365           after the transition to Subversion
5366         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
5367           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
5368           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
5369           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
5370
5371 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
5372
5373         * as/asx8051.dsp: added mcs51/strcmpi.h
5374         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
5375         * as/hc08/aslink.h: updated lnksect prototype
5376         * as/hc08/asm.h,
5377         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
5378         * as/hc08/asmain.c,
5379         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
5380           (newdot): handle A_ABS
5381         * as/hc08/asout.c,
5382         * as/mcs51/asout.c (outarea): output address
5383         * as/hc08/lkaomf51.c,
5384         * as/mcs51/lkaomf51.c: disabled unused array UsageType
5385         * as/hc08/m08pst.c,
5386         * as/mcs51/i51pst.c,
5387         * as/z80/z80pst.c: "ABS" is not A_OVR
5388         * as/hc08/lkarea.c (newarea): read a_addr,
5389           (lnkarea): added codemap array, sort absolute areas to the front,
5390            combine all GSINITx/GSFINAL,
5391           (find_empty_space, allocate_space): new functions,
5392           (lnksect): return next address, handle absolute sections
5393         * as/mcs51/lkarea.c (newarea): read a_addr,
5394           lnksect2 prototype changed,
5395           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
5396           (find_empty_space, allocate_space): new, factored out of lnksect2,
5397           (lnksect2): return next address, handle absolute sections
5398         * as/hc08/lkhead.c,
5399         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
5400         * as/hc08/lklibr.c (addfile, fndsym),
5401         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
5402           index out of range and detect both '\' and '/'
5403         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
5404         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
5405           regression tests (ds390 cannot return bool yet)
5406         * doc/sdccman.lyx: changed version number, document changed --no-peep,
5407           document critical interrupts on z80, document changed SDCC define
5408         * src/asm.c (_asxxxx_mapping): fixed .org directive,
5409           (_a390_mapping): added .org directive
5410         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
5411           (genMultOneByte): fixed warnings
5412         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
5413           ones
5414         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
5415         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
5416           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
5417         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
5418         * src/pic16/main.c: removed newReg prototype
5419         * src/pic16/pcode.c,
5420         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
5421           warnings
5422         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
5423           ones
5424         * src/pic16/ralloc.c
5425         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
5426           to fix warnings
5427         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
5428           from short to PIC_OPTYPE
5429         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
5430         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
5431           optype from short to PIC_OPTYPE
5432         * src/port.h: made int_size unsigned to fix warnings
5433         * src/SDCC.y: fixed warning on MSVC
5434         * src/SDCCicode.c (getArraySizePtr): return unsigned int
5435         * src/SDCCopt.c (convertToFcall): fixed warnings
5436         * src/SDCCsymt.h: removed double prototype for genSymName
5437         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
5438           offset int to fix warnings
5439
5440 2006-04-22 Borut Razem <borut.razem AT siol.net>
5441
5442         * doc/sdccman.lyx, */Makefile, */Makefile.in:
5443           references to CVS replaced with Subversion
5444
5445 2006-04-21 Borut Razem <borut.razem AT siol.net>
5446
5447         * doc/sdccman.lyx, */Makefile, */Makefile.in:
5448           references to CVS replaced with Subversion
5449
5450 2006-04-19 Borut Razem <borut.razem AT siol.net>
5451
5452         * src/version.awk: adapted for svn
5453         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
5454           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
5455           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
5456           /binutils-avr/etc/*.vi, *.jin: removed all properties
5457           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
5458
5459 2006-04-19 Borut Razem <borut.razem AT siol.net>
5460
5461         * CVS to Subversion migration completed
5462
5463 2006-04-18 Borut Razem <borut.razem AT siol.net>
5464
5465         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
5466           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
5467
5468 2006-04-17 Borut Razem <borut.razem AT siol.net>
5469
5470         * device/include/Makefile.in: added pic/*.inc to the installation
5471
5472 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
5473
5474         * support/regression/collate-results.py: fixed output in case of
5475         a valdiag error
5476         * support/regression/generate-cases.py: fixed splitting of pathnames
5477         with dots
5478         * as/hc08/lklibr.c (addfile),
5479         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
5480
5481 2006-04-11 Raphael Neider <rneider AT web.de>
5482
5483         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
5484         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
5485         * src/pic16/pcode.c (assignValnums): fixed #1460578
5486
5487 2006-04-11 Raphael Neider <rneider AT web.de>
5488
5489         * device/lib/pic/libdev/*.c,
5490         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
5491           fixes #1468739, enables compilation in --std-c99 mode
5492         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
5493
5494 2006-04-11 Raphael Neider <rneider AT web.de>
5495
5496         * src/pic/device.c (find_device): removed debug output
5497           (list_valid_pics): enabled verbose listing of supported devices
5498         * device/include/stdbool.h: define bool as char for pic14/16 as well
5499
5500 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5501
5502         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
5503
5504 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5505
5506         * .version: bumped version to 2.5.6
5507         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
5508
5509 2006-04-06 Raphael Neider <rneider AT web.de>
5510
5511         * .version: bumped version to 2.5.6 (pic14 ABI changed)
5512         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
5513         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
5514           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
5515             pic14_constructAbsMap
5516           (pic14printPublics): declare absolute global symbols as global
5517           (pic14createInterruptVect),
5518         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
5519           (newReg): assume new registers unused, use correct name in
5520             hashtable (reg->name instead of name), more debugLog output
5521         * src/pic/device.h (PIC_device): added fields for verbose output
5522         * src/pic/device.c: moved device definition to pic14devices.txt,
5523             added routines for runtime parsing of pic14devices.txt,
5524             added support for second config word
5525         * src/pic/main.c (_process_pragma): removed #pragma maxram,
5526           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
5527           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
5528           (_pic14_parseOptions): moved pCodeInitRegisters here
5529           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
5530         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
5531           (pCodeInitRegisters): rewrapped comments, perpared new approach to
5532             handling the pseudo stack
5533         * device/lib/Makefile.in: ignore failures in objects-pic16,
5534         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
5535         * device/lib/pic/NEWS: document new dependency on picXXX.lib
5536         * device/lib/pic/Makefile.subdir,
5537         * device/lib/pic16/Makefile.subdir: improved clean rules
5538         * device/lib/pic/libdev/: NEW, pic14 device libraries
5539         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
5540         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
5541         * device/include/Makefile.in: create subdir and install pic14 headers
5542         * device/include/pic/p16f_common.inc: removed unused declarations
5543         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
5544             PICs from inc2h.pl v1.6,
5545             replaced BIT_AT macros with struct declarations
5546         * device/include/pic/pic14devices.txt: definition of supported devices,
5547             all above improvements contributed by Zik Saleeba, thanks
5548         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
5549         * support/scripts/sdcc.nsi: also install pic14 device libraries and
5550             headers
5551
5552 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
5553
5554         * device/include/mcs51/c8051f410.h: added interrupt numbers,
5555         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
5556           thanks to Charles Olds
5557
5558 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5559
5560         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
5561
5562 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
5563
5564         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
5565         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
5566         * support/regression/bug1464657.c: added, new test
5567
5568 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5569
5570         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
5571           version number
5572
5573 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5574
5575         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
5576           --no-peep and --peep-file <file> are used don't use default rules but
5577           do use the <file>
5578
5579 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5580
5581         * src/mcs51/gen.c (genCall): fixed bug 1457608
5582
5583 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5584
5585         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
5586         changes seem to cause (trigger?) problems with the build system.
5587
5588 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
5589
5590         * src/SDCCpeeph.c (operandsLiteral): new, added,
5591           (callFuncByName): inserted operandsLiteral
5592         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
5593
5594 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5595
5596         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
5597         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
5598
5599 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
5600
5601         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
5602           implemented patch 1120823 Thanks to Willy De la Court (normal
5603           interrupts need an interrupt number now if they are made critical),
5604           and enabled nesting of critical functions though not for gbz80
5605           (genCritical, genEndCritical): added functions
5606           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
5607         * src/z80/mappings.i: added "ei" to all mappings
5608
5609 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5610
5611         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
5612         submitted by the Debian SDCC maintainer Aurelien Jarno:
5613         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
5614         archive with gcc 4.1 on mips and wrote the patch"
5615
5616 2006-03-16 Raphael Neider <rneider AT web.de>
5617
5618         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
5619           the left operand is shorter than the result (c* = lit-c* + int),
5620           fixes bug #1450796
5621         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
5622           OP_SYMBOL
5623
5624 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
5625
5626         * src/.version: increased version number to 2.5.5
5627         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
5628         linking is done manually in pic16 port's _linkEdit,
5629         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
5630         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
5631         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
5632         allocate asmop as AOP_ACC,
5633         (aopForRemat): added parameter 'bool result' in function declaration,
5634         (pic16_aopGet): return AOP_ACC when accessing WREG,
5635         (pic16_popGetTempReg): minor modification,
5636         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
5637         'pic16_allocWithIdx',
5638         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
5639         calling function in absolute addresses,
5640         (genAssign): take into account AOP_ACC asmop,
5641         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
5642         * src/pic16/pcoderegs.c: some debug functions and lines added,
5643         * src/pic16/ralloc.c (decodeRegType): added but commented out,
5644         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
5645         register too,
5646         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
5647         call to allocReg, not by manually allocating a new one,
5648         (pic16_assignRegisters): now before going through the register
5649         allocating functions mark all registers as free. This eliminates some
5650         side effects resulting from peephole parser done earlier in the backbone
5651
5652 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
5653
5654         * src/SDCCicode.c (geniCodeLogic),
5655         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
5656
5657 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
5658
5659         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
5660           (genSend): bugfix, do not allocate and free twice,
5661           (shiftRLong): handle partially overlapping aops
5662         * support/regression/tests/bitopcse.c: fixed warning redefined idata
5663
5664 2006-03-08 Borut Razem <borut.razem AT siol.net>
5665
5666         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
5667           for pic16
5668
5669 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
5670
5671         * support/regression/tests/bug1409955.c: new, added
5672         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
5673         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
5674           (aopForSym, aopOp): increment asmop.allocated if reused,
5675           (freeAsmop): decrement asmop.allocated and check for zero instead of
5676           using asmop.freed,
5677           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
5678           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
5679            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
5680            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
5681            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
5682            genSignedRightShift, genRightShift, genDataPointerGet,
5683            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
5684            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
5685             in reverse order from allocation,
5686           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
5687             added swappedLR to keep track
5688         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
5689           pdata & code for GCC, z80, gbz80 & hc08
5690         * support/regression/tests/zeropad.c: moved defines to testfwk.h
5691
5692 2006-03-08 Raphael Neider <rneider AT web.de>
5693
5694         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
5695
5696 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
5697
5698         * device/include/mcs51/c8051f410.h: new SiLabs mcu
5699         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
5700         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
5701
5702 2006-03-06 Borut Razem <borut.razem AT siol.net>
5703
5704         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
5705           made the linker quiet
5706
5707 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
5708
5709         * src/pic16/gen.c (genPcall): fixed bug #1443644
5710         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
5711         which dumps before the function entry point a data byte which represents
5712         the number of the local variables used by the specified function, added
5713         'xinst' for initial support for Extended Instruction Support,
5714         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
5715         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
5716         port->fun_prefix anymore (may change later),
5717         (genFunction, genEndFunction): do not store/restore local registers for
5718         _main (this should take care the --main-return command line option in
5719         the future),
5720         (genOr): removed some legacy pic-port instructions,
5721         * src/pic16/genarith.c (genAddLit): re-enabled old code because
5722         performing operations with SFR's causes data to be written more than
5723         once to each SFR. Perhaps SFRs should be handled in special cases...
5724         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
5725         pcode.h
5726         * src/pic16/main.c (_process_pragma): stack bound checking did not take
5727         into account for stack starting position,
5728         (struct OPTIONS pic16_optionsTable): added command line argument
5729         --extended or -y for Extended Instruction Support,
5730         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
5731         (deassignLRs): *** perhaps the most important change, old 'for' code
5732         (commented out for reference), didn't account for some registers which
5733         were left marked 'not free' after a pointer operation. The change
5734         reduces register usage a lot in some cases
5735
5736 2006-03-04 Borut Razem <borut.razem AT siol.net>
5737
5738         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
5739           _clean
5740         * support/regression/tests/bug-524697.c: decreased array size for
5741           mcs51 to fit into the internal RAM
5742         * support/regression/Makefile.in: a little bit more verbose
5743
5744 2006-03-03 Borut Razem <borut.razem AT siol.net>
5745
5746         * support/regression/fwk/lib/testfwk.c,
5747           support/regression/fwk/include/testfwk.h: introduced function
5748           _prints(), nonrecursive _printn(), call _initEmu() from main()
5749         * support/regression/ports/gbz80/support.asm,
5750           support/regression/ports/ucz80/support.asm,
5751           support/regression/ports/z80/support.asm,
5752           support/regression/ports/ds390/support.c,
5753           support/regression/ports/hc08/support.c,
5754           support/regression/ports/host/support.c,
5755           support/regression/ports/mcs51/support.c,
5756           support/regression/ports/xa51/support.c: added empty _initEmu()
5757           function
5758         * support/regression/ports/pic16/gpsim.cmd,
5759           support/regression/ports/pic16/spec.mk,
5760           support/regression/ports/pic16/support.c,
5761           support/regression/Makefile.in: added pic16 regression test
5762
5763 2006-03-01 Raphael Neider <rneider AT web.de>
5764
5765         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
5766           genConstPointerGet): use safe way of generating MOVFF to cover
5767             literals as well as registers, fixes bug #1440527
5768         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
5769             dereference
5770           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
5771             more correctly, fixes bug #1232186
5772           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
5773         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
5774             gplink guess the correct processor in more cases, applied patch
5775             from Till Riedel attached to and fixing bug #1436552
5776
5777 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5778
5779         * support/regression/tests/array.c: added, contains check for #1434401
5780         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
5781
5782 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
5783
5784         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
5785         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
5786         * device/include/mcs51/c8051f326.h,
5787         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
5788         * device/include/mcs51/c8051f000.h,
5789         * device/include/mcs51/c8051f018.h,
5790         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
5791           PCON_IDLE,PCON_STOP and added sfr16 definitions
5792
5793 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
5794
5795         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
5796           genGetWord): fixed bug 1409955
5797
5798 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
5799
5800         * device/include/hc08/mc68hc908gp32.h,
5801         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
5802
5803 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
5804
5805         * src/SDCCast.c (constExprValue): return NULL if not a value
5806         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
5807         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
5808         * support/regression/tests/bitfields.c: enabled signed bitfield for all
5809
5810 2006-02-13 Borut Razem <borut.razem AT siol.net>
5811
5812         * src/regression/ptrarg.c: added, fails due to bug #1430967
5813         * src/regression/Makefile: ptrarg.c added, ...
5814
5815 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
5816
5817         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
5818         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
5819
5820 2006-02-11 Borut Razem <borut.razem AT siol.net>
5821
5822         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
5823           print "Processor: xxx" message to stdout only if --verbose
5824
5825 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
5826
5827         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
5828         * support/regression/tests/bug1426356.c: added
5829         * support/regression/tests/bitfields.c: removed 2 tests
5830
5831 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
5832
5833         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
5834         * device/include/mcs51/c8051f330.h,
5835         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
5836           PCON_IDLE,PCON_STOP and added sfr16 definitions
5837         * device/lib/_divsint.c,
5838         * device/lib/_divuint.c,
5839         * device/lib/_divulong.c,
5840         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
5841           register bank bug for small stackauto
5842
5843 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
5844
5845         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
5846
5847 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
5848
5849         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
5850         * all.dsp: corrected several bin paths
5851         * device/include/mcs51/c8051f120.h,
5852         * device/include/mcs51/c8051f300.h,
5853         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
5854           to PCON_IDLE,PCON_STOP
5855         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
5856         * device/lib/printf_large.c (output_float): fixed bug 1388703
5857         * support/regression/tests/bug1057979.c: added test for bug 1388703
5858
5859 2006-02-08 Raphael Neider <rneider AT web.de>
5860
5861         * src/pic/pcode.c (pciTRIS): fixed typo,
5862           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
5863           (LinkFlow): fixed handling of flows that end in a call,
5864           (ReuseReg): perform safety check earlier
5865         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
5866             to work with flows at the beginning of a pBlock,
5867             fixes #1426557 (Symbol not previously defined),
5868           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
5869             usage information
5870           (RemoveUnusedRegisters): update register usage info
5871         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
5872             created, reuse existing ones instead
5873         * src/pic/gen.c (genPcall): fixed #1424719
5874
5875 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
5876
5877         * link/z80/lkmain.c,
5878         * link/z80/lklex.c,
5879         * link/z80/lkdata.c,
5880         * link/z80/aslink.h: fixed build on current cygwin:
5881         replaced getline() by lk_getline()
5882
5883 2006-02-01 Borut Razem <borut.razem AT siol.net>
5884
5885         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
5886           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
5887           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
5888           src/regression/bool1.c, src/regression/bool2.c,
5889           src/regression/bool3.c, src/regression/call1.c,
5890           src/regression/compare.c, src/regression/compare10.c,
5891           src/regression/compare2.c, src/regression/compare3.c,
5892           src/regression/compare4.c, src/regression/compare5.c,
5893           src/regression/compare6.c, src/regression/compare7.c,
5894           src/regression/compare8.c, src/regression/compare9.c,
5895           src/regression/configword.c, src/regression/for.c,
5896           src/regression/inline.c, src/regression/mult1.c,
5897           src/regression/nestfor.c, src/regression/or1.c,
5898           src/regression/pointer1.c, src/regression/ptrfunc.c,
5899           src/regression/rotate1.c, src/regression/rotate2.c,
5900           src/regression/rotate3.c, src/regression/rotate4.c,
5901           src/regression/rotate5.c, src/regression/rotate6.c,
5902           src/regression/rotate7.c, src/regression/string1.c,
5903           src/regression/struct1.c, src/regression/sub.c,
5904           src/regression/sub2.c, src/regression/switch1.c,
5905           src/regression/while.c, src/regression/xor.c,
5906           src/regression/create_stc, src/regression/simulate,
5907           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
5908           regression tests
5909         * src/regression/gpsim_assert.h: added
5910
5911 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
5912
5913         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
5914         ((void (code *) (void)) 0) ();
5915         * as/hc08/aslex.c,
5916         * as/hc08/aslink.h,
5917         * as/hc08/asm.h,
5918         * as/hc08/asmain.c,
5919         * as/hc08/lkdata.c,
5920         * as/hc08/lklex.c,
5921         * as/hc08/lkmain.c,
5922         * as/mcs51/aslex.c,
5923         * as/mcs51/aslink.h,
5924         * as/mcs51/asm.h,
5925         * as/mcs51/asmain.c,
5926         * as/mcs51/lkdata.c,
5927         * as/mcs51/lklex.c,
5928         * as/mcs51/lkmain.c,
5929         * as/z80/aslex.c,
5930         * as/z80/asm.h,
5931         * as/z80/asmain.c: fixed build on current cygwin:
5932         replaced getline() by as_getline()
5933
5934 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
5935
5936         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
5937         declarator in the symbol chain
5938         * src/SDCCsymt.h,
5939         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
5940         parameter list for function pointers
5941         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
5942         * support/regression/tests/bug-716242.c: added
5943
5944 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
5945
5946         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
5947         offset if possible
5948         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
5949
5950 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
5951
5952         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
5953         inifinitely recurseable, added static
5954         * support/regression/tests/bug-1408066.c: added
5955
5956 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
5957
5958         * src/SDCCicode.h,
5959         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
5960         renamed, added possibility to create "postLoopLbl"-labels
5961         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
5962         newiTempLoopHeaderLabel
5963         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
5964         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
5965         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
5966         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
5967         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
5968         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
5969         (basicInduction): fixed bug #136564, made static,
5970         (loopInduction): changed parameter of basicInduction, made static,
5971         (addPostLoopBlock): added
5972         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
5973         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
5974         findLoopEndSeq
5975         * support/regression/tests/bug-136564.c: added
5976         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
5977         --std-sdcc99 to LIBSDCCFLAGS
5978
5979 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
5980
5981         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
5982         while loop
5983         * support/regression/tests/bug-1406131.c: added
5984
5985 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
5986
5987         * src/SDCCast.c (decorateType): fix promotion of unary minus
5988         * src/SDCCsymt.c (computeType): beautified
5989         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
5990         (valUnaryPM, valComplement): fix sign and promotion,
5991         (valNot): ANSI: result type is int (SDCC: unsigned char)
5992         * support/regression/tests/uminus.c: speedup by removing superflous
5993         test case 'int'
5994         * support/regression/tests/onebyte.c: added promotion and signedness
5995         tests for unary minus
5996         * support/regressions/tests/bug-477927.c: disable warning about
5997         uninitialized variables
5998         * support/regression/tests/not.c: added
5999
6000 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
6001
6002         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
6003         * src/mcs51/gen.c (gen51Code): show final register usage after
6004         fillGaps in asm with --i-code-in-asm
6005         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
6006         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
6007         incUsed, rliveClear, adjustIChain): made static,
6008         (setFromRange): excluded because it's unused,
6009         (findPrevUseSym, markWholeLoop): added,
6010         (findPrevUse): rewritten; fixes bug 895992; now a complete search
6011         through all branches of predecessors enables sdcc to emit the warning
6012         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
6013         (rlivePoint): made static, added parameter emitWarnings which is only
6014         true during the first run out of two,
6015         (findRecursiveSucc, findRecursivePred): removed,
6016         (computeLiveRanges): made static, added parameter emitWarnings,
6017         (dumpIcRlive): added for debugging only
6018         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
6019         removed prototype of setFromRange()
6020         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
6021         in call of computeLiveRanges()
6022         * support/regression/tests/bug-895992.c: added
6023         * support/regression/tests/bug-971834.c: added
6024         * support/valdiag/tests/bug-895992.c: added
6025         * support/valdiag/tests/bug-971834.c: added
6026
6027 2005-12-18 Raphael Neider <rneider AT web.de>
6028
6029         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
6030           (genUnpackBits): improved code for direct operands,
6031           (genPackBits): improved code for literal assignment to bitfields
6032             and for direct destination operands (no FSR indirection),
6033             prevented redundant AND, fixes #1362800,
6034           (AccLsh): added parameter to disable masking of the result
6035         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
6036           skip instructions with side-effects (like incfsz),
6037           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
6038         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
6039         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
6040           fixes #1375263
6041
6042 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
6043
6044         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
6045         volatile variables as spill location
6046
6047 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
6048
6049         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
6050         replacing literals
6051         * support/regression/tests/bug-1376320.c: added
6052
6053 2005-12-08 Raphael Neider <rneider AT web.de>
6054
6055         * src/pic/device.c: renamed is_shared to pic14_is_shared
6056         * src/pic/gen.c (genIfx): re-enabled handling of sbits
6057         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
6058           (is_valid_identifier): added for above workaround
6059
6060 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
6061
6062         * device/lib/Makefile.in: fixed to enable port-specific-objects
6063         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
6064           char, thanks Hubert Sack
6065         * doc/sdccman.lyx: documented --xstack-loc,
6066           elaborated a bit more on interrupts and pitfalls,
6067           removed "setjmp/longjmp unsupported",
6068           documented some unsupported C99 features
6069         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
6070         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
6071           if, thanks Hubert Sack
6072         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
6073         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
6074           make make_library
6075         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
6076           regression tests can report resource usage (rfe 700441)
6077         * support/regression/collate-results.py: report resource usage
6078         * support/regression/ports/ds390/spec.mk,
6079         * support/regression/ports/hc08/spec.mk,
6080         * support/regression/ports/mcs51/spec.mk,
6081         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
6082         * support/regression/ports/ds390/uCsim.cmd,
6083         * support/regression/ports/hc08/uCsim.cmd,
6084         * support/regression/ports/mcs51/uCsim.cmd,
6085         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
6086         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
6087           library, use the default one
6088         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
6089           building the library
6090
6091 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
6092
6093         * config.dsp: added dependency on .version and configure_vc.awk
6094         * device/include/setjmp.h: updated for --stack-auto and --xstack
6095         * device/include/mcs51/at89c51snd1c.h: corrected line endings
6096         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
6097         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
6098         * device/lib/libsdcc.lib: added _setjmp
6099         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
6100           (decorateType): fixed bug 1372851,
6101           (optimizeGetHbit): fixed warning
6102         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
6103           array initialisation
6104         * support/regression/tests/bug1057979.c: added test for bug 1358192
6105         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
6106
6107 2005-12-03 Borut Razem <borut.razem AT siol.net>
6108
6109         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
6110           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
6111
6112 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
6113
6114         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
6115         createIval): implement symbol independant "flexible array member",
6116         (createIvalCharPtr): implemented flexible array initialisation with a
6117         string
6118         * src/SDCCsymt.c (copyStruct): removed,
6119         (getSize): fixed misleading comment,
6120         (getAllocSize): removed, the additional allocation size is now in
6121         sym->flexArrayLength,
6122         (checkStructFlexArray): new, syntax checks for flexible array members,
6123         (compStructSize): added syntax checks for "flexible array members"
6124         (copyStruct): removed,
6125         (copyLinkChain): removed inefficient fix for bug 770487
6126         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
6127         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
6128         symbol->flexArrayLength
6129         * src/SDCCerr.c,
6130         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
6131         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
6132         * support/regression/tests/structflexarray.c: added
6133         * support/valdiag/tests/structflexiblearray.c: added
6134
6135 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
6136
6137         * src/SDCCast.c (decorateType): fixed bug 1368489
6138         * support/Util/SDCCerr.c,
6139         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
6140
6141 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6142
6143         * device/include/mcs51/at89c51snd1c.h: added file submitted by
6144           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
6145
6146 2005-11-27 Borut Razem <borut.razem AT siol.net>
6147
6148         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
6149           support/cpp2/mkdeps.h: added command line option
6150           -obj-ext=<extension> to SDCPP to define object file externion, used
6151           for generation of make dependencies (-M)
6152         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
6153
6154 2005-11-26 Borut Razem <borut.razem AT siol.net>
6155
6156         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
6157           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
6158           added pic and pic16 libraries
6159
6160 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6161
6162         * device/include/float.h: Corrected typo in prototype of __fsgt
6163
6164 2005-11-25 Borut Razem <borut.razem AT siol.net>
6165
6166         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
6167           added creation of model-mcs51-stack-auto libraries
6168
6169 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
6170
6171         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
6172         and fields-list too
6173         * src/SDCCast.c (createIvalArray): removed obsolete comment
6174
6175 2005-11-24 Borut Razem <borut.razem AT siol.net>
6176
6177         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
6178           added missing device/lib/mcs51/crt*.asm sources
6179
6180 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
6181
6182         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
6183
6184 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
6185
6186         * device/lib/_fs2schar.c,
6187         * device/lib/_fs2sint.c,
6188         * device/lib/_fs2slong.c: optimized inline asm
6189
6190 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6191
6192         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
6193           Better handling of floats between -1.0 and 0.0.
6194
6195 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6196
6197         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
6198           (the missing "if"s prohibited removal of redundant labels)
6199
6200 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6201
6202         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
6203           Properly convert floats between -1.0 and 0.0 to long, int, and char
6204           types (max integer value of negative floats tends to zero).
6205         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
6206           Removed changes made so to work properly with floats between
6207           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
6208           and _fs2char.c
6209
6210 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
6211
6212         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
6213         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
6214         (genCast) cosmetic change
6215         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
6216         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
6217         from mcs51
6218         * support/regression/tests/bitfields (testSignedBitfields): added
6219
6220 2005-11-18 Borut Razem <borut.razem AT siol.net>
6221
6222         * sdcc/device/lib/Makefile.in: remove all unnecessary files
6223         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
6224           introduced SILENT option to make building of pic16 libraries less
6225
6226 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6227
6228         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
6229           Now they work properly with floats between -1.0 and 0.0
6230         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
6231
6232 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
6233
6234         * src/SDCCicode.c (printOperand): added missing else
6235
6236 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
6237
6238         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
6239         reformatted for better readability
6240         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
6241         signed bitfields
6242
6243 2005-11-17 Borut Razem <borut.razem AT siol.net>
6244
6245         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
6246           introduced SILENT option to make building of pic16 libraries less
6247           verbose - used for nightly snapshot build
6248         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
6249           available on Win32 platforms.
6250         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
6251           medium, large, pic and pic16
6252
6253 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6254
6255         * device/lib/printf_large.c: Temporary patch for bug 1358192:
6256           printf("%f"...) sets fraction to zero.
6257
6258 2005-11-16 Raphael Neider <rneider AT web.de>
6259
6260         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
6261           fixes #1357221
6262         * src/pic/gen.c (genIfx): implemented for CARRY bit
6263         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
6264           to generic pointers, fixes #1357332,
6265           (pic16_movLit2f): NEW,
6266           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
6267
6268 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
6269
6270         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
6271
6272 2005-11-11 Raphael Neider <rneider AT web.de>
6273
6274         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
6275         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
6276           compute pointer's type from operand,
6277           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
6278           improved single bit reads, fixes bug #1353379
6279
6280 2005-11-09 Borut Razem <borut.razem AT siol.net>
6281
6282         * support/scripts/sdcc.nsi: added lib/pic to the package
6283
6284 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
6285
6286         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
6287
6288 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
6289
6290         * support/regression/tests/bug1348008.c: added
6291         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
6292         * support/regression/tests/bug1337835.c: updated comment
6293
6294 2005-11-06 Borut Razem <borut.razem AT siol.net>
6295
6296         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
6297           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
6298           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
6299           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
6300           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
6301           dynamic construction of cl_error_class and derivates - 2.nd try
6302
6303 2005-11-05 Borut Razem <borut.razem AT siol.net>
6304
6305         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
6306           bug, which caused Bus Errors on sparc solaris
6307
6308 2005-11-04 Borut Razem <borut.razem AT siol.net>
6309
6310         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
6311           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
6312           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
6313           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
6314           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
6315           and derivates to resolve the initialization problem on OSX
6316
6317 2005-11-02 Borut Razem <borut.razem AT siol.net>
6318
6319         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
6320           corrected typo - #include <winsock2.h>
6321
6322 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
6323
6324         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
6325           (_asxxxx_mapping): added org directive for future enhancements
6326
6327 2005-11-01 Borut Razem <borut.razem AT siol.net>
6328
6329         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
6330           enabled sockets on WIN32
6331         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
6332
6333 2005-10-31 Borut Razem <borut.razem AT siol.net>
6334
6335         * support/regression/generate-cases.py: escape backslashes in {testcase}:
6336           WIN32 backslash path delimiters should be escaped when used in C strings
6337         * support/regression/tests/bitfields.c: exclude failing assertions for
6338           __CYGWIN32__ and __MINGW32__ hosts
6339
6340 2005-10-30 Borut Razem <borut.razem AT siol.net>
6341
6342         * src/SDCCutil.c: corrected double comparison typo
6343
6344 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
6345
6346         * device/lib/medium/Makefile: added for new memory model medium
6347         * device/include/asm/mcs51/features.h: updated for medium/pdata
6348         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
6349           added Multiply & Accumulate sbit's and MAC0_PAGE define
6350         * device/include/mcs51/c8051f300.h: added sfr16 definitions
6351         * device/include/mcs51/c8051f310.h: added sfr16 definitions
6352         * device/lib/_mullong.c: update for medium model
6353         * device/lib/incl.mk: added medium model
6354         * doc/sdccman.lyx: documented medium model
6355         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
6356         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
6357         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
6358         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
6359           (allocParms): set SCLS and OCLS to pdata for medium model
6360         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
6361           for pdata,
6362           (powof2): return <0 if not power of 2
6363         * src/avr/gen.c (genBitWise): use updated powof2
6364         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
6365           (shiftR2Left2Result): small optimization in setup, save acc when storing,
6366           (shiftLLeftOrResult): use B if necessary
6367         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
6368         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
6369         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
6370         * support/regression/Makefile.in: added test-mcs51-medium
6371         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
6372
6373 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
6374
6375         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
6376         specifier unsigned
6377         * device/lib/time.c (mktime): fixed bug 1334315
6378
6379 2005-10-28 Raphael Neider <rneider AT web.de>
6380
6381         * device/include/pic/p16f_common.inc: added common declarations
6382         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
6383
6384 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
6385
6386         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
6387           (aopPutUsesAcc): added to predict accumulator use,
6388           (assignResultValue): save acc if necessary,
6389           (genMinusDec): store result if indirectly addressed,
6390           (genDivOneByte):  save acc if necessary,
6391           (movLeft2Result): bugfix if left already in acc,
6392           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
6393             attention to accumulator use (esp. pdata),
6394           (genReceive): receive pdata correctly
6395         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
6396         * src/SDCCicode.h: added isOperandInPagedSpace prototype
6397
6398 2005-10-27 Raphael Neider <rneider AT web.de>
6399
6400         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
6401
6402 2005-10-27 Raphael Neider <rneider AT web.de>
6403
6404         * .version: changed version to 2.5.4
6405         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
6406         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
6407           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
6408             arithmetics support routines
6409         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
6410         * device/lib/Makefile.in: also create installdir for pic
6411
6412         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
6413           pic14 port as well
6414         * src/pic/device.c (dump_sfr): rewritten to delegate register
6415           placement to the linker (use `extern sym' rather than sym EQU addr),
6416           (validAddress): fixed to check last specified address
6417         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
6418           (popGetLit): truncate literal value to 8 bit,
6419           (popGet): moved assert to more appropriate place
6420           (popGetExternal): create pCode operand from and mark the according
6421             symbol as being `extern'
6422           (popGetAddr): added sanity check on immediate's offset, provide
6423             GPOINTER tag on demand
6424           (aopPut): fixed for immediates,
6425           (mov2w_op): move operand's address or contents to WREG (depending on
6426             operand type), safer variant of mov2w,
6427           (movwf,call_libraryfunc): NEW, handy abbreviations,
6428           (get_argument_pcop,get_return_val_pcop,pass_argument,
6429           get_returnvalue): interface for accessing function parameters and
6430             return values,
6431           (assignResultValuei,genRet): use new parameter/return value interface
6432           (pic14_getDataSize): back to old version handling generic pointers,
6433           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
6434             provided implementation and/or fixed old one,
6435           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
6436             calls, removed legacy 8051 reference code
6437           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
6438           (loadSignToC): NEW, move the operands sign bit to CARRY,
6439           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
6440             genRightShiftSigned, accepts negative shift counts,
6441           (setup_fsr): load FSR and adjust IRP (indirect memory access),
6442           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
6443             generic pointers, __data pointers and __code pointers,
6444           (genUnpackBits,genPackBits): rewritten to work with generic pointers
6445             and signed bitfields, limit bitfields to 8 bit,
6446           (genDataPointerGet): fixed number of bytes read,
6447           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
6448           (genPointerGet,genPointerSet): fixed handling of __code pointers,
6449             pointers to constant data are no longer assumed to point to __code
6450             space, removed invalid pointer types,
6451           (bitpatternFromVal): retrieve the PICs representation of an integer
6452             or float literal,
6453           (genDataPointerSet): fixed assigning to po_immediate operands,
6454           (genGenPointerSet): implemented as library call,
6455           (genIfx): fixed incorrect condition,
6456           (genAddrOf): limit generic pointers' addresses to 2 bytes,
6457             provide GPOINTER tag according to destination's storage class,
6458           (genCast): added code to handle casting to generic pointers, added
6459             sign-/zero extension of the result
6460           (aop_isLitLike,op_isLitLike): fixed handling of immediates
6461         * src/pic/gen.h: added macros to access IRP bit in STATUS register
6462         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
6463           extend the result
6464         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
6465           address/register resides in the shared banks
6466           (emitSymbolToFile): improved to handle global and `pinned' symbols,
6467             put all variables into separate sections (have the linker arrange
6468             them)
6469           (picglue): put init code and interrupt handlers in separate sections
6470         * src/pic/main.c: added port specific options table, modified to PORT
6471           structure to make GPOINTERs 3 byte, added pic14_options
6472           (_pic14_do_link): private linking routine (update paths to libraries,
6473             add libsdcc.lib by default)
6474         * src/pic/main.h: declare pic14_options
6475         * src/pic/pcode.c: fixed instructions i/o relations,
6476           (RegCond): reverted to correct version,
6477           (newpCodeOpLit): truncate literals to 8 bit,
6478           (genericPrint): added debug output,
6479           (getRegFromInstruction): fixed for various operand types, simplified
6480           (BuildFlow): fixed broken handling of isntructions with labels
6481           (LinkFlow): start at last instruction in flow (skip trailing comments),
6482             pass the flow on to the next instruction after CALL
6483           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
6484           (insertPCodeInstruction): fixed inserting after a skip instruction,
6485           (DoBankSelect): fixed for labeled instructions
6486           (OptimizepBlock): honor --nopeep switch
6487           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
6488         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
6489         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
6490           (pCodeOptime2pCodes): allow disabling this optimization via
6491             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
6492             but is still buggy), started implementation of a dataflow based
6493             pCode optimization (CSE + dead code elimination)
6494           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
6495         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
6496           names are independant of the stack location and therefore portable across
6497           devices
6498
6499 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
6500
6501         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
6502           (selectSpil): fixed bug 1337835 by not spilling bit variables
6503         * support/regression/tests/bug1337835.c: added test for this bug
6504         * src/mcs51/peeph.def: restart after rule 3.c,
6505           addded rules 263.x to optimize loading constants
6506
6507 2005-10-26 Raphael Neider <rneider AT web.de>
6508
6509         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
6510         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
6511           (genAssign): emit warning when casting literals to generic pointer
6512             type, also applies when taking the address of a fixed variable,
6513           (genCast): improved casting to generic pointers
6514         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
6515           extern variables, added verbose error message
6516         * device/include/pic16/{string.h,errno.h}: added #pragma library c
6517
6518 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
6519
6520         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
6521         carry must be complemented too
6522         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
6523         could be emitted by genMinus
6524         * src/SDCCval.c (constVal): fixed bug 1305065
6525
6526 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
6527
6528         * src/SDCCast.c (addCast): added promotion for bit variables
6529         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
6530         promotion casts + optimisation
6531         (optimizeGetWord): fix warning 'i' might be used uninitialized
6532         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
6533         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
6534
6535 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
6536
6537         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
6538         all chars are promoted to int; promotion should be handled in SDCCast.c
6539
6540 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6541
6542         * device/lib/_strcmp.c: Fixed bug 1326457
6543
6544 2005-10-11 Raphael Neider <rneider AT web.de>
6545
6546         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
6547         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
6548
6549 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
6550
6551         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
6552         * support/regression/tests/sfr16.c: added test for the sfr32 bug
6553
6554 2005-10-04 Raphael Neider <rneider AT web.de>
6555
6556         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
6557           device/lib/pic16/pics.all: added pic18f1320
6558         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
6559
6560 2005-09-30 Raphael Neider <rneider AT web.de>
6561
6562         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
6563         * src/pic16/devices.inc: NEW, provides device descriptions
6564         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
6565
6566 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
6567
6568         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
6569           GETHBIT
6570
6571 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
6572
6573         * doc/sdccman.lyx: updated Highest Order Bit documentation,
6574           documented Any Order Bit, Higher Order Byte and Higher Order Word
6575         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
6576         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
6577           (optimizeGetAbit): new, to get any bit, not only the high bit,
6578           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
6579           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
6580           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
6581           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
6582             RIGHT_OP: also try GETBYTE, GETWORD optimization,
6583             GETABIT, GETBYTE, GETWORD: decorate them,
6584           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
6585           (ast_print): added GETABIT, GETBYTE, GETWORD
6586         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
6587         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
6588           (geniCodeBinary): new generic binary icode,
6589           (ast2iCode): added GETABIT, GETBYTE, GETWORD
6590         * src/port.h: updated comment for PORT.hasExtBitOp
6591         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
6592           (genGetByte): new, to get a single byte,
6593           (genGetWord): new, to get a word from a long,
6594           (gen51Code): added GETABIT, GETBYTE, GETWORD
6595         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
6596
6597 2005-09-23 Raphael Neider <rneider AT web.de>
6598
6599         * configure.in, configure: have device/lib/pic configured
6600         * device/lib/Makefile.in: added model-pic14
6601         * device/lib/clean.mk: added pic/ to clean rule
6602         * device/lib/pic: added rudimentary pic14 library providing support
6603           functions for multiplication/division/generic pointer access
6604         * src/SDCCopt.c (convilong): mark support functions as extern
6605           for pic14 port as well
6606         * src/pic/gen.c (genMult): added assertions,
6607           (genpic14Code): emit warning on unhandled iCodes
6608         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
6609         * src/pic/pcode.c (pCodeOpCopy),
6610         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
6611           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
6612           SFR_REGISTER}), made safe for future extensions
6613         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
6614           instructions even if preceeded by SKIP instructions (also remove
6615           them); removed unused code
6616         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
6617           prevents leaving parts of the structure uninitialized after copying
6618
6619 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
6620
6621         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
6622           ago by me
6623         * support/regression/tests/addsub.c: added test for the bug
6624
6625 2005-09-21 Raphael Neider <rneider AT web.de>
6626
6627         * device/include/pic16/pic18f1220.h,
6628           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
6629         * device/lib/pic16/Makefile.rules: added missing opening paren
6630         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
6631           are provided in genutils.c,
6632           (genUminusFloat,genUminus,genCmpEq): added asserts on different
6633           operand/result sizes,
6634           (genCmp): assert on NULL pointers first, then check deref'ed values
6635         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
6636           result size
6637
6638 2005-09-18 Raphael Neider <rneider AT web.de>
6639
6640         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
6641           as these are now unused,
6642           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
6643         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
6644           local, avoids uninitialized pointer dereference on r->name
6645         * src/pic16/ralloc.c (newReg): fixed indentation
6646
6647 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
6648
6649         * src/SDCCval.c (constVal): fixed bug 730366
6650         * support/Util/SDCCerr.c,
6651         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
6652
6653 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
6654
6655         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
6656
6657 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
6658
6659         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
6660
6661 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
6662
6663         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
6664           (hex2dec): made hex_digit unsigned char, removed ascii dependance
6665         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
6666           (hex2dec): made hex_digit unsigned char, removed ascii dependance
6667         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
6668         * packihx/packihx.c (hexDigit): made c unsigned char
6669         * as/mcs51/lklibr.c (fndsym),
6670         * link/z80/lkgb.c (gb),
6671         * link/z80/lklibr.c (fndsym),
6672         * link/z80/lkrloc.c (relr),
6673         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
6674         * src/SDCC.lex (checkCurrFile, process_pragma),
6675         * src/SDCCglue.c (spacesToUnderscores),
6676         * src/SDCCmain.c (setParseWithComma, processFile),
6677         * src/asm.c (tvsprintf, printCLine),
6678         * src/avr/gen.c (emitcode, aopPut),
6679         * src/ds390/gen.c (emitcode),
6680         * src/hc08/gen.c (emitcode, emitinline),
6681         * src/mcs51/gen.c (emitcode, genInline),
6682         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
6683           tokenizeLineNode),
6684         * src/pic/ralloc.c (debugLog),
6685         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
6686           tokenizeLineNode),
6687         * src/pic16/ralloc.c (debugLog),
6688         * src/z80/main.c (_process_pragma):
6689            made all ctype.h function calls safe
6690         * src/SDCCopt.c: include math.h for fabs
6691         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
6692           and used them throughout the code to make ctype.h function calls safe
6693         * src/ds390/main.c (asmLineNodeFromLineNode),
6694         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
6695         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
6696            unsigned char*
6697         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
6698           (newpCodeAsmDir): made ctype.h function calls safe
6699         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
6700           pic16_emitcode):  made lbp unsigned char*
6701         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
6702           (pic16_newpCodeAsmDir): made ctype.h function calls safe
6703         * src/xa51/gen.c (emitcode),
6704         * src/z80/gen.c (_emit2): made lbp unsigned char*
6705         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
6706            char*
6707
6708 2005-09-05 Raphael Neider <rneider AT web.de>
6709
6710         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
6711           access bank splitpoint
6712
6713 2005-09-05 Raphael Neider <rneider AT web.de>
6714
6715         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
6716
6717 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
6718
6719         * .version: changed to version 2.5.3
6720         * doc/sdccman.lyx: changed version to 2.5.3,
6721           documented --codeseg and --constseg and pragma codeseg and constseg,
6722           documented bit parameters (reentrant) and bit returning
6723         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
6724            currFunc->recvSize, but is this ok for all ports?
6725           (ast2iCode): result of ~ on unsigned char must be cast to int for
6726            bool to work
6727         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
6728           function pointers in bit space
6729         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
6730           (processFuncArgs): call port.reg_parm() with reentrancy info
6731         * src/port.h,
6732         * src/avr/main.c,
6733         * src/ds390/main.c,
6734         * src/hc08/main.c,
6735         * src/pic/main.c,
6736         * src/pic16/main.c,
6737         * src/xa51/main.c,
6738         * src/z80/main.c: port.reg_parm prototype extended with
6739           "bool reentrant" parameter
6740         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
6741           options.stackAuto for allocating bit register parameters
6742         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
6743           (genSend): set BitBankUsed if it is,
6744           (selectRegBank): factored out of genCall for use in genPcall,
6745           (genCall): removed redundant dtype assignmen, use selectRegBank,
6746           (genPcall): handle returning in Carry properly, save in F0 if needed,
6747           (genReceive): handle bit register parameters
6748         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
6749           (mcs51_assignRegisters): enable bit registers for all reentrant
6750            functions and don't set BitBankUsed unconditionally
6751         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
6752         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
6753         * support/regression/tests/funptrs.c: added tests for BOOL and for return
6754
6755 2005-08-27 Borut Razem <borut.razem AT siol.net>
6756
6757         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
6758         ppc-osx (Darwin) does not support -u option. It seems that it is
6759         supported only on Linux - GNU cp
6760
6761 2005-08-25 Borut Razem <borut.razem AT siol.net>
6762
6763         * sim/ucsim/gui.src/serio.src/Makefile.in,
6764           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
6765           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
6766           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
6767           install and strip, since the strip at /usr/ccs/bin should be used
6768           on solaris
6769
6770 2005-08-24 Borut Razem <borut.razem AT siol.net>
6771
6772         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
6773
6774 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
6775
6776         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
6777         ffffffffu
6778
6779 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
6780
6781         * as/mcs51/aslink.h: completed lkrloc.c prototypes
6782         * as/mcs51/lkmain.c (link_main): fixed warning
6783         * device/include/stdbool.h: ds390 has no advanced bit support yet
6784         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
6785         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
6786         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
6787           and updated their macros
6788         * src/SDCCval.c (constVal): updated comment for renamed b_long
6789
6790 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
6791
6792         * as/mcs51/asdata.c: changed ctype['['] to BINOP
6793         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
6794           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
6795           (oprio): set priority for '['
6796         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
6797            and adb_24_bit
6798         * as/mcs51/asm.h: added defines R_BIT and S_BIT
6799         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
6800         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
6801         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
6802           added overlayable BIT_BANK area
6803         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
6804           (summary2): explain 'T' in legenda
6805         * as/mcs51/lkrloc.c: replaced old K&R style,
6806           (relr): added R_BIT processing,
6807           (errmsg): added "Bit-addressable relocation error",
6808           (adb_bit): added for converting from byte- to bit-addressable space,
6809           (adb_24_bit): added for converting from byte- to bit-addressable space
6810         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
6811            used in reentrant functions now even as return value
6812         * device/lib/_gptrput.c (_gptrput): removed obsolete code
6813         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
6814           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
6815         * src/SDCCglobl.h: added indicator BitBankUsed
6816         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
6817            the bit registers b0-b7
6818         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
6819           (geniCodeCast): fixed bug 1263853,
6820           (geniCodeLogicAndOr): put result in bool or char,
6821           (geniCodeReceive): added parameter func for accessing the return type,
6822           (geniCodeFunctionBody): pass func to geniCodeReceive
6823         * src/SDCCmain.c: added indicator BitBankUsed
6824         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
6825         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
6826           (checkSClass): don't put automatic bool/bit on stack,
6827           (checkFunction): removed check on function cannot return bit
6828         * src/SDCCsymt.h: added newBoolLink prototype
6829         * src/mcs51/gen.c (rb1regs): added bit registers,
6830           (movc): created for assigning to carry,
6831           (pushReg, popReg): created for pushing registers,
6832           (sameRegs): check both AOP_REG and AOP_CRY types,
6833           (aopOp): handle bit registers,
6834           (aopPut): optimization no self-assign,
6835           (saveRegisters): push reg->base (bits) only once for bit registers,
6836            and use pushReg,
6837           (unsaveRegisters): pop reg->base only once and use popReg,
6838           (assignResultValue): added parameter func and return in carry for bits,
6839           (genIpush): optimization no reload in A if not changed,
6840           (genSend): bit parameters in reentrant functions are passed in bit
6841            registers by first assigning to bits in B, then save registers and
6842            copy B to bits,
6843           (genCall): handle returning in Carry properly, save it in F0 if needed,
6844           (genPcall): updated assignResultValue call, this is not safe yet for bit
6845            returning function !!!
6846           (genFunction): don't generate equ's for bit registers and use pushReg,
6847           (genEndFunction): take care of bit returning functions and use popReg,
6848           (genRet): return bit in Carry,
6849           (genIfx): optimize bit registers and other directly addressable bits,
6850           (genReceive): updated assignResultValue call
6851         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
6852           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
6853            registers when using stack-auto
6854         * src/mcs51/ralloc.c (_G): added allBitregs,
6855           (regs8051): added the bit registers,
6856           (createStackSpil): use macro IS_BIT,
6857           (getRegBit): added to allocate a bit register, else spill,
6858           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
6859           (updateRegUsage): factored out to ease stepping while debugging,
6860           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
6861            also allocate bit registers,
6862           (fillGaps): handle bit registers,
6863           (findAllBitregs): added to create bit vector with all bit registers,
6864           (mcs51_allBitregs): returns this bit vector,
6865           (mcs51_assignRegisters): when using stack-auto use bit registers for
6866            passing parameters and creating local variables
6867         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
6868
6869 2005-08-22 Borut Razem <borut.razem AT siol.net>
6870
6871         * device/lib/Makefile.in: replaced find option -or with -o
6872           to make it run on solaris
6873
6874 2005-08-22 Raphael Neider <rneider AT web.de>
6875
6876         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
6877           fixes #1265442 (crash on Solaris)
6878
6879 2005-08-20 Borut Razem <borut.razem AT siol.net>
6880
6881         * configure, configure.in: added tests for libsocket and libnsl libraries,
6882           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
6883           from support/regression/Makefile.in
6884         * support/regression/Makefile.in: added
6885         * device/lib/pic16/Makefile.common.in: force make to use bash shell
6886         * sim/ucsim/libtool: regenerated on sparc-solaris
6887         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
6888           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
6889           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
6890           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
6891           sparc-solaris, which doesn't use GNU ld linker
6892         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
6893         * as/Makefile: find on sparc-solaris does not support -maxdepth option
6894
6895 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
6896
6897         * src/mcs51/peeph.def: updated comments
6898
6899 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6900
6901         * device/lib/_gptrget.c,
6902         * device/lib/_gptrput.c: slightly shorter
6903         * doc/sdccman.lyx: incremented version
6904         * src/mcs51/peeph.def: moved peephole comments to the line of first
6905           change to better keep line correlation, reanimated 186.e
6906         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
6907
6908 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
6909
6910         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
6911           David Saxton with quotes around file name.
6912
6913 2005-08-15 Borut Razem <borut.razem AT siol.net>
6914
6915         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
6916           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
6917           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
6918           make tests run on x86_64 platform
6919
6920 2005-08-13 Raphael Neider <rneider AT web.de>
6921
6922         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
6923           as it might be executed DURING a build (parallel make is wonderful)
6924
6925 2005-08-13 Raphael Neider <rneider AT web.de>
6926
6927         * device/lib/Makefile.in (port-specific-objects-pic16):
6928           revert to cp $(PORT)/bin/*.* $(PORTDIR)
6929         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
6930           dependency
6931         * device/lib/pic16/Makefile.rules: build subdirs before creating
6932           the library, removed builddir rule, create $(builddir) early in
6933           recurse rule, use empty recurse rule for leaf directories
6934         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
6935           mkdir errors (race condition), removed duplicate suffix "hex"
6936           from clean rules
6937         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
6938         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
6939           prevents mkdir -p from aborting on Alpha
6940
6941 2005-08-12 Raphael Neider <rneider AT web.de>
6942
6943         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
6944           db-statements in order to allow for arrays of pointers in code
6945           sections to be placed without interspersed 0-padding, fixes
6946           bug #1256215
6947         * (emitStatistics): fixed division by zero for pic18f1220
6948         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
6949           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
6950         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
6951         * (pic16_pCodeConstString): keep track of already emitted string
6952           literals to prevent "duplicate definitions of symbol _str_NR"
6953         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
6954           debug message
6955         * device/lib/Makefile.in: ignore failing PIC16 library builds
6956         * device/lib/pic16/Makefile: do not build if gputils are missing
6957         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
6958
6959 2005-08-10 Raphael Neider <rneider AT web.de>
6960
6961         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
6962           my last commit)
6963
6964 2005-08-10 Raphael Neider <rneider AT web.de>
6965
6966         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
6967           Rokas' patch to add the new fixed point type "__fixed16x16"
6968         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
6969           functions for __fixed16x16 arithmetics
6970         * device/lib/pic16: reimplemented the build system to support
6971           a separate build directory, better handling of libio (create
6972           the library in a separate subdir for each architecture) and
6973           easier configuration (centralized in Makefile.common)
6974
6975 2005-08-07 Raphael Neider <rneider AT web.de>
6976
6977         * src/pic16/gen.c (genrshTwo): fixed sign extension
6978         * src/pic16/device.c: added pic18f2320, 4220 and 4320
6979         * device/include/pic16/pic18f2220.h: changed some bit definitions,
6980           added T0CONbits
6981         * device/include/pic16/pic18f4220.h: NEW, header for
6982           pic18f4220 and pic18f4320
6983         * device/include/pic16/pic18fregs.h: added new devices,
6984           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
6985         * device/include/pic16/signal.h: resolved name clashes
6986           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
6987           to also allow testing for interrupt enable bits, added
6988           comments on how to use the macros
6989         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
6990         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
6991           register definitions for the devices
6992         * device/lib/pic16/pics.all: added new devices
6993         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
6994           allocated memory
6995         * device/lib/pic16/libc/stdlib/memfree: do not count
6996           the block header as free memory
6997         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
6998           simplified and added missing end-of-blocklist-marker
6999           (reported by Peter Onion, fixes #1252814)
7000         * (_mergeHeapBlock): fixed loop condition
7001         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
7002           len==0, restructured code
7003         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
7004           up a bit, reduced bitfield accesses, prevent endless loops
7005           in case of heap corruption
7006         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
7007           "unreferenced arguments/must return a value" warnings
7008         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
7009           replaced BAUDREG with SPBRG
7010         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
7011           device/lib/pic16/debug/gstack/gstack.c: replaced
7012           _naked, _asm, _endasm with __naked, __asm, __endasm
7013
7014 2005-08-05 Raphael Neider <rneider AT web.de>
7015
7016         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
7017           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
7018
7019 2005-08-05 Borut Razem <borut.razem AT siol.net>
7020
7021         * device/lib/Makefile.in: added missing ';'
7022         * configure: removed ^M characters
7023
7024 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7025
7026         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
7027           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
7028           License
7029
7030 2005-08-04 Borut Razem <borut.razem AT siol.net>
7031
7032         * configure.in: pic16 libraries build 2nd try - enable running
7033           configure in device/lib/pic16
7034         * configure: regenerated from configure.in
7035         * device/lib/Makefile.in: create $(PORT)/bin directory
7036
7037 2005-08-03 Raphael Neider <rneider AT web.de>
7038
7039         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
7040           to get/set values via pointers
7041         * (genUnpackBits,genPackBits): changed detection of
7042           ptr->bitfield vs. sym.bitfield, fixed access via generic
7043           pointers, removed dead (wrong) code for multibyte bitfields
7044         * (genNearPointerGet, genGenPointerGet): removed useless code,
7045           fixed bitfield detection, fixes #1250594
7046         * (genNearPointerSet): removed useless code
7047         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
7048           and introduced macro pic16_emitpcode that conditionally emits
7049           the origin of the following pCode (useful for debugging SDCC)
7050         * src/pic16/pcode.c: changed (and disabled) some debug outputs
7051         * (createDefmap): fixed handling of LFSR for --optimize-df
7052
7053 2005-08-02 Borut Razem <borut.razem AT siol.net>
7054
7055         * device/lib/Makefile.in: pic16 libraries build enabled since
7056           gputils-0.13.2 are now localy installed at sourceforge's compile farm
7057
7058 2005-08-02 Raphael Neider <rneider AT web.de>
7059
7060         * src/pic16/gen.c (genPackBits): removed deprecated warning
7061         * (genGenPointerSet): fixed bitfield detection
7062
7063 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7064
7065         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
7066
7067 2005-07-31 Raphael Neider <rneider AT web.de>
7068
7069         * device/lib/pic16/libdev/pic18f458.c,
7070           device/include/pic16/pic18f458.h: added missing T0CONbits
7071
7072 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
7073
7074         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
7075
7076 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
7077
7078         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
7079
7080 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7081
7082         * device/include/mcs51/at89c51ed2.h: added.
7083
7084 2005-07-23 Raphael Neider <rneider AT web.de>
7085
7086         * src/pic/gen.h: added emitpcode macro for debugging
7087         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
7088           and replace by macro adding debug information on demand
7089         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
7090         * (gencjne): tried to fix; replaced with correct (slower) code
7091         * (gen{Unp,P}ackBits): fixed single bit access
7092         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
7093         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
7094           previous instruction
7095         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
7096           register has to be handled with care (forbidding movement
7097           of assignments/uses, removing assignments completely, ...)
7098         * (pCodeOptime2pCodes): make use of regIsSpecial
7099         * added lots of debugging output (commented out)
7100         * src/pic/rallloc.c (deassignLRs): prevent operand registers
7101           from being reused as result UNLESS it is known to work
7102
7103 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
7104
7105         * support/Util/dbuf.h: include <stddef.h> for size_t
7106         * .version: changed to version 2.5.2
7107
7108 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7109
7110         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
7111
7112 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7113
7114         * src/hc08/gen.c (genMinus): fixed bug #1241835,
7115           (genModOneByte): removed needless psha/pula
7116
7117 2005-07-22 Raphael Neider <rneider AT web.de>
7118
7119         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
7120           have PIC14 handled like PIC16, fixes broken pic14 linker calls
7121         * src/pic/gen.c (resolveIfx): do not "invent" labels
7122         * (genSkipc): changed to positive logic
7123         * (genSkipCond): removed as no longer needed
7124         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
7125           backport from PIC16
7126         * (genLeftShift): check operands are in different registers
7127         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
7128           INCF does not update CARRY...
7129         * src/pic/main.c: fixed _linkCmd
7130         * src/pic/pcode.c (unlinkpCode): added inactive code
7131         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
7132           alive (do not assign result and operand overlapping registers)
7133
7134 2005-07-22 Raphael Neider <rneider AT web.de>
7135
7136         * src/pic/device.c (dump_sfr): replaced register declaration with
7137           call to emitSymbolToFile() to avoid duplicate symbols
7138         * (assignRelocatableRegisters): do not declare external symbols
7139         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
7140           right (take size of type, not etype)
7141         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
7142         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
7143         * (packRegsForAccUse): disabled assignment of WREG as
7144           the result reg to prevent occurence of just fixed #1235003,
7145           fixes #1242954
7146         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
7147           symbols (avoids duplicate symbols in .asm file)
7148         * (pic14emitRegularMap): use emitSymbolToFile()
7149         * src/pic/gen.c (aopOp): fixed spillLocation handling
7150         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
7151         * (genDataPointerSet): removed unneccessary variables/output
7152
7153 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
7154
7155         * as/mcs51/lkarea.c: enlarged codemap for banked memory
7156         * device/lib/mcs51/crtbank.asm: added # to 0x0F
7157
7158 2005-07-21 Raphael Neider <rneider AT web.de>
7159
7160         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
7161           architecture cannot handle them efficiently, fixes bug #1235003
7162         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
7163           check for empty sets before using them (fixes bug #1232190)
7164
7165 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
7166
7167         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
7168           (lnksect2): generate warnings for memory overlap
7169         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
7170           constseg to set the name of these segments so you can instruct the linker
7171           to place them in banks
7172         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
7173         * src/SDCCglobl.h: added MODEL_HUGE to enum,
7174           added code_seg and const_seg to options
7175         * src/SDCCglue.c (emitMaps): use options.const_seg,
7176           (createInterruptVect): put interrupt vectors in segment HOME,
7177           (glue): put HOME before static segment and put the main glue in HOME,
7178           (glue): use options.code_seg
7179         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
7180         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
7181           these segments so you can instruct the linker to place them in banks
7182           (linkEdit): use code_loc for HOME segment which should be the first
7183           segment in code memory now
7184         * src/SDCCmem.c: fixed more stuff like bug 1238386
7185         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
7186           (changePointer): don't change function pointers to code pointers for
7187           banked functions,
7188           (compareType): added exceptional check for banked function pointers
7189         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
7190         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
7191           after static in code memory
7192         * src/mcs51/gen.c: added aopLiteralLong prototype,
7193           (aopForSym): use getSize for functions,
7194           (genCall): generate banked calls over one trampoline __sdcc_banked_call
7195           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
7196           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
7197           the segment,
7198           (genPcall): use call for literal function pointers and generate banked
7199           calls over the one trampoline so there's only one place for the user to
7200           modify according to his/hers hardware,
7201           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
7202           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
7203         * src/mcs51/main.c: added keyword banked,
7204           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
7205         * support/Util/SDCCerr.c,
7206         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
7207           needed for passing the bank and address to the trampoline
7208         * device/lib/mcs51/crtbank.asm: added for bankswitching
7209         * device/lib/mcs51/Makefile: added crtbank
7210
7211 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7212
7213         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
7214           for fields at offset 0 of a struct or union as reported
7215           on 2005-07-07 in the developer mailing list.
7216
7217 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
7218
7219         * src/SDCCmem.c: fixed bug 1238386
7220
7221 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7222
7223         * src/mcs51/peeph.def: added labelrefcounting for peepholes
7224           (patch #1144962), added peephole 300, enabled 259.x
7225         * doc/sdccman.lyx: removed screenshot and provided link instead
7226
7227 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7228
7229         * doc/sdccman.lyx: added section about debugging with ddd
7230         * doc/figures/ddd_example.eps: screenshot of debugging session
7231
7232 2005-07-04 Raphael Neider <rneider AT web.de>
7233
7234         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
7235           like CODE pointers, fixes #1115683
7236         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
7237           call, fixes bugs #1232211, #1228110,
7238           fixed wrong casts to pCodeFlow from pCodeInstructions
7239
7240 2005-07-04 Raphael Neider <rneider AT web.de>
7241
7242         * src/pic/gen.c (popGet): changed assert to allow for
7243           bit operands
7244         * (popGetAddr): changed signature to provide
7245           an additional index, patched all call sites
7246         * (genCmpEq): handle literal-like operands correctly
7247         * (genAddrOf): added sanity checks on __code/__data pointers
7248         * (genAssign): added handling of symbols from __code section
7249         * (gencjne): do not generate code for comparisons whose result
7250           is neither stored nor used, fixes bug #1171114
7251         * (AccLsh, AccRsh): operate on operand instead of WREG
7252         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
7253           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
7254           by known count
7255         * rewrote complete shift-by-literal logic, commented unused
7256           functions out
7257         * (genConstPointerGet): get multiple bytes (if result size > 1),
7258           fixed handling of non-immediate addresses
7259         * (genPointerGet): handle CODE pointers like CONST pointers
7260         * (genpic14Code): insert C-SRC lines as Cource-pCodes
7261         * ({aop,op}_isLitLike): NEW, single place to decide whether an
7262           operand is to be treated as a literal or not
7263         * (mov2w,genPcall,genCmpEq),
7264           src/pic/genarith.c: use aop_isLitLike() to decide between
7265           literal/register contents
7266         * (addSign): added missing offset
7267         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
7268           only emit comment in debug-mode,
7269           use {aop,op}_isLitLike throughout the file
7270         * src/pic/glue.c: fix initializers for pointers (work in progress)
7271         * src/pic/pcode.c (get_op): honor index on _const symbols
7272         * ({reset,dump}pCodeStatistics): NEW, estimate code size
7273         * (dumppBlock): added pCode size estimation
7274         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
7275           check for IS_SYMOP before OP_SYMBOL'ing
7276         * fixed indentation, compacted switch-statements
7277         * (allocReg): find free register and allocate it instead of
7278           allocating new registers all the time
7279         * (deassignLRs): prevent POINTER_GET's from being assigned the same
7280           registers as its operands (necessary only for multibyte GETs)
7281
7282 2005-07-01 Raphael Neider <rneider AT web.de>
7283
7284         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
7285           debugging .asm-output macros FENTRY + FEXIT
7286         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
7287           way... I wonder...
7288         * (emitpComment): NEW, printf to pCode
7289         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
7290           offset handling
7291         * (popGetAddr): NEW, variant of popGet to access an immediates
7292           high(er) bytes instead of the n'th byte of memory they reference,
7293           replaced popGet with popGetAddr where neccessary
7294         * (genDataPointerGet): reactivated and fixed implementation
7295         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
7296           accesses
7297         * (genDataPointerSet): fixed multibyte assignments
7298         * (genpic14Code): fixed --i-code-in-asm handling
7299         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
7300         * (genPlus): fixed index-out-of-bounds error
7301         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
7302         * src/pic/ralloc.c: added debugging output macro FENTRY2
7303         * (spillThis): fixed indentation, enbraced for-body for clarity
7304         * (rematStr): commented out as now unused
7305         * (regTypeNum): commented out special spill case (overwrites
7306           arbitrary values)
7307         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
7308
7309 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
7310
7311         * doc/sdccman.lyx: documented sfr16/sfr32,
7312           added example for using storage class with function pointers
7313         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
7314
7315 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
7316
7317         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
7318         * device/lib/_itoa.c,
7319         * device/lib/_ltoa.c: optimized codesize
7320         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
7321           but don't know how to suppress the double warning.
7322         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
7323         * support/Util/SDCCerr.c,
7324         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
7325
7326 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
7327
7328         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
7329           fixed old K&R prototypes
7330         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
7331         * device/lib/_gptrget.c,
7332         * device/lib/_gptrgetc.c,
7333         * device/lib/_gptrput.c: changed versions for new memory indicator values,
7334           also new versions for small generic pointers and banked generic pointers
7335         * src/port.h: added const_name
7336         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
7337         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
7338         * src/SDCCcse.c (findPrevIc): check all associative operators
7339         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
7340         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
7341         * src/SDCCmem.c: updated comments,
7342           set far-space to 0 for pdata, results in optimized code
7343         * src/SDCCmem.h: added macro CONST_NAME
7344         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
7345           moving the info into the highest bits, see also gptrget/gptrput
7346         * src/src.dsp: added sdcc.ico to project files
7347         * src/avr/gen.c (genCast): fixed bug 0x%d
7348         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
7349         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
7350           relation between ptr_type and DCL_TYPE,
7351           (genCast): fixed bug 0x%d
7352         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
7353           (CODE)" for const_name
7354         * src/hc08/gen.c (genCast): fixed bug 0x%d
7355         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
7356           (hc08_port): added "CONST (CODE)" for const_name
7357         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
7358           (aopForRemat, adjustArithmeticResult): disconnected direct relation
7359           between ptr_type and DCL_TYPE,
7360           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
7361           operand* and took AOP() inside function so sfr-ness can be checked,
7362           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
7363           new prototype,
7364           (genFunction, genEndFunction): optimized stack setup,
7365           (genMinus): optimized for literals with ending zeroes (in bytes),
7366           (genCast): fixed bug 0x%d
7367         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
7368           (mcs51_port): added "CONST (CODE)" for const_name
7369         * src/mcs51/peeph.def: made rule 226 more generic
7370         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
7371         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
7372         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
7373         * src/z80/main.c (z80_port): added NULL for const_name,
7374           (gbz80_port): added NULL for const_name
7375         * support/regression/tests/bug663539.c,
7376         * support/regression/tests/sfr16.c: new tests
7377
7378 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7379
7380         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
7381
7382 2005-06-24 Raphael Neider <rneider AT web.de>
7383
7384         * device/lib/pic16/libdev/pic18f[68][567]20.c:
7385           corrected typos...
7386         * device/include/pic16/signal.h: added USBIF
7387           and SIG_USB
7388
7389 2005-06-24 Raphael Neider <rneider AT web.de>
7390
7391         * device/lib/pic16/libdev/pic18f2455.c,
7392           device/include/pic16/pic18f2455.h: NEW
7393         * device/include/pic16/pic18fregs.h,
7394           device/lib/pic16/pics.all,
7395           src/pic16/device.c: added 18f2455
7396         * device/lib/pic16/libdev/pic18f[68][567]20.c,
7397           device/include/pic16/{pic18f[68][567].h,usart.h}:
7398           replaced MULTIPLE_USARTS define with more relaible
7399           compatibility sfrs (for USART access)
7400
7401 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
7402
7403         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
7404           and the output asm file line is printed on two lines.
7405
7406 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7407
7408         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
7409           BGT, BLE, BHI, and BLS instructions
7410         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
7411           genCmpEq): removed
7412         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
7413           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
7414           fixes bug #1216342
7415         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
7416
7417 2005-06-15 Raphael Neider <rneider AT web.de>
7418
7419         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
7420         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
7421         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
7422           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
7423           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
7424
7425 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7426
7427         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
7428           Marcel Telka in bug #1215704
7429
7430 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
7431
7432         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
7433           located in shared memory bank.
7434
7435 2005-05-31 Raphael Neider <rneider AT web.de>
7436
7437         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
7438           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
7439           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
7440
7441 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
7442
7443         * device/lib/_strncpy.c: fixed the fix
7444
7445 2005-05-26 Raphael Neider <rneider AT web.de>
7446
7447         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
7448           initializers with \0, bug #1208187
7449         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
7450           intializers with \0, bug #1208187
7451
7452 2005-05-26 Raphael Neider <rneider AT web.de>
7453
7454         * src/pic16/glue.c (pic16_printIvalChar): fixed string
7455           initializers with \0, bug #1208187
7456         * src/pic16/main.c (_process_pragma): added sanity checks
7457           for stack position and size, emit warnings when appropriate
7458
7459 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
7460
7461         * device/lib/_strncpy.c: fixed not filling with \0
7462
7463 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7464
7465         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
7466           createFunction),
7467         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
7468           compound_statement),
7469         * src/SDCCsymt.h,
7470         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
7471
7472 2005-05-24 Raphael Neider <rneider AT web.de>
7473
7474         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
7475
7476 2005-05-24 Raphael Neider <rneider AT web.de>
7477
7478         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
7479           TRISE definitions, closes bug #1162453
7480
7481 2005-05-22 Raphael Neider <rneider AT web.de>
7482
7483         * src/pic16/main.c (_process_pragma): check for missing
7484           arguments to pragmas code and udata
7485         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
7486           consistency fixes to match other headers (thanks to Jim Paris)
7487         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
7488
7489 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
7490
7491         * src/SDCCicode.c (isOperandEqual): fixed missing ;
7492
7493 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
7494
7495         * support/regression/tests/bug1198642.c: new test
7496         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
7497         * src/SDCCcse.c (findPrevIc): added comment, please have a look
7498         * support/scripts/resource.h,
7499         * support/scripts/resource.rc,
7500         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
7501         * support/scripts/sdcc.ico: added 32x32 icon
7502
7503 2005-05-18 Raphael Neider <rneider AT web.de>
7504
7505         * device/lib/pic16/libdev/pic18f*.c,
7506         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
7507           keywords to "__sfr" and "__at (X)"
7508         * device/include/pic16/pic18fregs.h: added pic18f4520
7509         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
7510           #1203088 (MPLAB compatibility)
7511
7512 2005-05-17 Raphael Neider <rneider AT web.de>
7513
7514         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
7515         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
7516         * device/lib/pic16/pics.all: added new devices
7517         * src/pic16/device.c: added support for pic18f4520
7518
7519 2005-05-16 Raphael Neider <rneider AT web.de>
7520         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
7521         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
7522         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
7523           convenience function for bit access
7524
7525 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
7526
7527         * device/lib/printf_large.c: fixed bug 1193299
7528         * support/regression/tests/bug1057979.c: added test %3.3s
7529
7530 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7531
7532         * device/include/mcs51/8051.h,
7533         * device/include/mcs51/8052.h: made parseable with lint
7534         * device/include/mcs51/lint.h: added include file for (sp)lint
7535         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
7536         * doc/cdbfileformat.lyx,
7537         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
7538
7539 2005-05-14 Raphael Neider <rneider AT web.de>
7540
7541         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
7542         * device/lib/pic16/libc/stdlib/itoa.c (new)
7543         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
7544         * device/lib/pic16/libio/Makefile: exclude subdir according to
7545           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
7546         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
7547         * src/pic16/gen.c (genFunction): prevent annoying warning
7548         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
7549           nameclashes on BeOS
7550         * support/cpp2/cppmain.c (cpp_output_string): new
7551         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
7552           fixes bug 1116802
7553
7554 2005-05-13 Borut Razem <borut.razem AT siol.net>
7555
7556         * src/SDCCmain.c (linkEdit): fixed bug 1195202
7557
7558 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7559
7560         * .version: changed to version 2.5.1; back to bleeding edge development
7561
7562 2005-05-11 Borut Razem <borut.razem AT siol.net>
7563
7564         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
7565           generate PDF version 1.3 documents
7566
7567 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7568
7569         * .version: changed to version 2.5.0
7570
7571 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7572
7573         * doc/sdccman.lyx: updated weblinks, index and smaller updates
7574
7575 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7576
7577         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
7578         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
7579         well as many smaller updates.
7580         * .version: changed to version 2.5.0-pre1
7581
7582 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7583
7584         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
7585
7586 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
7587
7588         * support/regression/tests/bug1185672.c: added
7589         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
7590           bug 1185672
7591         * src/mcs51/gen.c (genCall): added comments, made it look safer
7592         * src/mcs51/gen.c (genEndFunction): simplified
7593
7594 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
7595
7596         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
7597
7598 2005-04-14 Borut Razem <borut.razem AT siol.net>
7599
7600         * fixed bug 1045046 - SIGSEGV with really simple code?:
7601           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
7602           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
7603
7604 2005-04-14 Borut Razem <borut.razem AT siol.net>
7605
7606         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
7607           src/pic16/device.h: temporarily disabled experimental #inline pragma
7608           for 2.5.0 release
7609
7610 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
7611
7612         * device/include/z80/stdio.h,
7613         * device/include/z80/string.h: removed these highly incomplete files so
7614           SDCC can use the default ones in device/include/
7615
7616 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7617
7618         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
7619         gcc warning.
7620         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
7621         fix sdcpp warnings.
7622
7623 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
7624
7625         * device/include/malloc.h: removed redundant __reentrant prototypes
7626         * device/lib/_mullong.c: added working xstack variant in asm (C version
7627           doesn't pass regression tests)
7628         * device/lib/bpx.c: used __data and made bpx char for mcs51
7629         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
7630           (createFunction): fixed bug with xstackPtr
7631         * src/SDCCcse.c: corrected comments
7632         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
7633           (killDeadCode, eBBlockFromiCode): removed unused code
7634         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
7635           corrected comments
7636         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
7637           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
7638           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
7639           (genModOneByte): fixed warning in MSVC
7640         * src/mcs51/main.c (): added comments
7641         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
7642
7643 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
7644
7645         * src/SDCCmain.c (linkEdit): oops, changed one line too many
7646
7647 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
7648
7649         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
7650
7651 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
7652
7653         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
7654         characters arrays of larger size than the declared one.
7655
7656 2005-04-10 Borut Razem <borut.razem AT siol.net>
7657
7658         * src/pic/gen.c (genInline),
7659           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
7660           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
7661           (findNextInstruction), (findPrevInstruction),
7662           (findInstructionUsingLabel),
7663           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
7664         * src/pic/pcode.c (findLabel): added missing '\n'
7665         * src/src.dsp: added SDCCdwarf2.c to the project
7666
7667 2005-04-09 Borut Razem <borut.razem AT siol.net>
7668
7669         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
7670
7671 2005-04-08 Raphael Neider <rneider AT web.de>
7672
7673         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
7674           into the chain after a given one) and mergeDefmapSymbols (combine
7675           defmap entries for each symbol per pcode)
7676         * (createDefmap): have defmap entries merged in the end
7677         * (defmapReplaceSymRef): split defmap entries covering two accesses to
7678           a symbol before replacing one access type's symbol, merge symbols in
7679           the end (replacement symbol might already have an entry)
7680         * (assignValnums): keep reference to written WREG intact
7681
7682 2005-04-08 Raphael Neider <rneider AT web.de>
7683
7684         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
7685           Alpha)
7686
7687 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
7688
7689         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
7690         bytes
7691
7692 2005-04-07 Raphael Neider <rneider AT web.de>
7693
7694         * device/include/pic16/usart.h: added compatibility defines for
7695           devices with more than one USART
7696         * device/include/pic16/pic18f[68][567]20.h: activated above defines
7697
7698 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7699
7700         * device/lib/Makefile.in: updated for port specific include
7701
7702 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7703
7704         * support/regression/ports/mcs51/spec.mk: added mcs51 include
7705
7706 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7707
7708         * device/include/8051.h,
7709         * device/include/8052.h,
7710         * device/include/at89S8252.h,
7711         * device/include/at89c55.h,
7712         * device/include/at89x051.h,
7713         * device/include/at89x51.h,
7714         * device/include/at89x52.h,
7715         * device/include/mcs51reg.h,
7716         * device/include/reg51.h,
7717         * device/include/reg764.h,
7718         * device/include/regc515c.h,
7719         * device/include/sab80515.h: (re)moved these 12 files
7720         * device/include/mcs51/8051.h,
7721         * device/include/mcs51/8052.h,
7722         * device/include/mcs51/at89S8252.h,
7723         * device/include/mcs51/at89c55.h,
7724         * device/include/mcs51/at89x051.h,
7725         * device/include/mcs51/at89x51.h,
7726         * device/include/mcs51/at89x52.h,
7727         * device/include/mcs51/mcs51reg.h,
7728         * device/include/mcs51/reg51.h,
7729         * device/include/mcs51/reg764.h,
7730         * device/include/mcs51/regc515c.h,
7731         * device/include/mcs51/sab80515.h: and added them here
7732
7733 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
7734
7735         * device/include/stdarg.h: changed SDCC specific keywords to double
7736           underlined form.
7737         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
7738           mcs51 and ds390.
7739         * device/include/hc08/mc68hc908gp32.h,
7740         * device/include/hc08/mc68hc908jb8.h,
7741         * device/include/hc08/mc68hc908jkjl.h,
7742         * device/include/hc08/mc68hc908qy.h: fixed comments
7743         * device/include/mcs51/README: updated
7744         * device/include/mcs51/c8051f120.h: added PINRSF
7745         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
7746         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
7747           amidst code. Also inline is not supported.
7748
7749 2005-04-06 Raphael Neider <rneider AT web.de>
7750
7751         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
7752         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
7753           callers stack/frame pointers
7754
7755 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
7756
7757         * device/include/pic16/usart.h: added, missing in previous commit,
7758         * device/include/pic16/adc.h: fixed typo,
7759         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
7760         commit,
7761         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
7762         <p18fxxx.inc>
7763         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
7764         uninitialized because a bug appears with gplink
7765         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
7766         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
7767         complains for unrecognised option
7768
7769 2005-04-05 Raphael Neider <rneider AT web.de>
7770
7771         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
7772           structs as well (using memcpy)
7773         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
7774           on ISRs (GOTO has no label)
7775         * src/pic16/device.h: added OF_OPTIMIZE_DF
7776         * src/pic16/main.c: added compiler switch --optimize-df to enable the
7777           new data flow analysis/optimization
7778         * src/pic16/pcode.c: added (prototypes for and implementation of)
7779           dataflow analysis functions, fixed pCodeInstructions' inCond and
7780           outCond values, made RCALL a branch instruction
7781         * (pic16_unlinkpCode): keep C line if possible
7782         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
7783           C line moved if possible
7784         * (pic16_getRegFrompCodeOp): NEW, improved version of...
7785         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
7786           to use new pic16_getRegFrompCodeOp (works for more SFRs)
7787         * (pic16_BuildFlow): fixed skip instructions with label (did not start
7788           new flow)
7789         * (pic16_getJumptabpCode): NEW, needed in...
7790         * (LinkFlow): fixed handling of jumptables, calls and conditional
7791           branches
7792         * (pic16_InsertCommentAfter): NEW
7793         * (pic16_pCodeReplace): made verbose and flow preserving
7794         * (AnalyzeFlow): added call to data flow analysis
7795         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
7796         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
7797         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
7798
7799 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7800
7801         * src/SDCCast.c (decorateType): fixed bug #1105626
7802
7803 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
7804
7805         * device/include/asm/pic16/features.h,
7806         * pic18f*.h headers,
7807         * device/include/pic16/adc.h,
7808         * device/include/pic16/delay.h,
7809         * device/include/pic16/i2c.h,
7810         * device/include/pic16/malloc.h,
7811         * device/include/pic16/stdio.h,
7812         * device/include/pic16/stdlib.h,
7813         * device/include/pic16/string.h,
7814         * device/lib/pic16/libc/stdio/printf_tiny.c,
7815         * device/lib/pic16/libc/stdio/printf_small.c,
7816         * device/lib/pic16/libc/stdio/strmgpsim.c,
7817         * device/lib/pic16/libc/stdio/strmmssp.c,
7818         * device/lib/pic16/libc/stdio/strmusart.c,
7819         * device/lib/pic16/libc/stdio/vfprintf.c,
7820         * device/lib/pic16/libc/stdlib/ltoa.c,
7821         * device/lib/pic16/libc/stdlib/putchar.c,
7822         * device/lib/pic16/libc/stdlib/x_ftoa.c,
7823         * device/lib/pic16/libc/stdlib/memchrpgm.c,
7824         * device/lib/pic16/libc/stdlib/memchrram.c,
7825         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
7826         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
7827         * device/lib/pic16/libio/adc/adcbusy.c,
7828         * device/lib/pic16/libio/adc/adcread.c,
7829         * device/lib/pic16/libio/adc/adcsetch.c,
7830         * device/lib/pic16/libio/usart/ubaud.c,
7831         * device/lib/pic16/libio/usart/ubusy.c,
7832         * device/lib/pic16/libio/usart/udrdy.c,
7833         * device/lib/pic16/libio/usart/uopen.c,
7834         * device/lib/pic16/libio/usart/uputc.c,
7835         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
7836         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
7837         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
7838         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
7839         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
7840         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
7841         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
7842         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
7843         specific keywords to double underlined form,
7844         * device/lib/pic16/libc/Makefile.rules,
7845         * device/lib/pic16/libsdcc/Makefile.rules,
7846         * device/lib/pic16/libm/Makefile,
7847         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
7848         to compile with C standard set in Makefile.common
7849         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
7850         rand.c and crc.c in compilation process,
7851         * device/lib/pic16/libsdcc/int/divuint.c,
7852         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
7853         `c' from signed to unsigned,
7854         * device/lib/pic16/startup/crt0.c,
7855         * device/lib/pic16/startup/crt0i.c,
7856         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
7857         keywords to double underlined form, bug fixes in _do_cinit function
7858         which prevented the correct initialization of the .idata segment,
7859         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
7860         core to enter a infinite loop
7861         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
7862
7863 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7864
7865         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
7866
7867 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7868
7869         * device/include/Makefile.in: add support for hc08 subdirectory
7870         * device/include/hc08/: new subdirectory
7871         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
7872         Lucas Loizaga, thanks!
7873         * device/include/hc08/mc68hc908qy.h,
7874         * device/include/hc08/mc68hc908gp32.h,
7875         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
7876         their own directory. Changed internal macro names to use the compiler
7877         reserved namespace. Changed SDCC specific keywords to double
7878         underlined form.
7879         * device/include/math.h,
7880         * device/include/malloc.h,
7881         * device/include/stdarg.h,
7882         * device/include/stdbool.h
7883         * device/include/string.h,
7884         * device/include/tinibios.h,
7885         * device/include/ds400rom.h,
7886         * device/include/8051.h,
7887         * device/include/8052.h,
7888         * device/include/80c51xa.h,
7889         * device/include/at89c55.h,
7890         * device/include/at89S8252.h,
7891         * device/include/at89x51.h,
7892         * device/include/at89x52.h,
7893         * device/include/ds80c390.h,
7894         * device/include/reg764.h,
7895         * device/include/regc515c.h,
7896         * device/include/sab80515.h,
7897         * device/include/mcs51/c8051f000.h,
7898         * device/include/mcs51/c8051f018.h,
7899         * device/include/mcs51/c8051f020.h,
7900         * device/include/mcs51/c8051f040.h,
7901         * device/include/mcs51/c8051f060.h,
7902         * device/include/mcs51/c8051f120.h,
7903         * device/include/mcs51/c8051f300.h,
7904         * device/include/mcs51/c8051f310.h,
7905         * device/include/mcs51/c8051f320.h,
7906         * device/include/mcs51/c8051f330.h,
7907         * device/include/mcs51/c8051f350.h,
7908         * device/include/z180.h: Changed SDCC specific keywords to double
7909         underlined form.
7910
7911 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
7912
7913         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
7914         18F4455,
7915         * (pic16_assignConfigWordValue): disable testing of configuration
7916         register value with config mask,
7917         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
7918         function with port->fun_prefix,
7919         * (genFunction): when generating a naked interrupt function never
7920         create an absolute segment placed in interrupt vector address, place
7921         the actual interrupt function at IVA instead, when an interrupt
7922         function is generated with unspecified interrupt then do not create
7923         the absolute section,
7924         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
7925         code for generating a call to generic pointer get/put function with
7926         a call to function pic16_callGenericPointer(),
7927         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
7928         the call to the generic pointer get/put functions with prefixing the
7929         function name with port->fun_prefix,
7930         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
7931         * src/pic16/main.c (_process_pragma): prefix function with
7932         port->fun_prefix,
7933         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
7934         calling assembler, old 18Fxxxx macro is deprecated,
7935         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
7936         PC_ASMDIR in while condition,
7937         * (findInstruction): add PC_ASMDIR in while condition,
7938         * (buildCallTree): prefix main with port->fun_prefix,
7939         * (pic16_pCode2str): fixed bug that didn't emit the memory access
7940         identifier for variable with banked access in instructions BTFSS,
7941         BTFSC, BCF, BSF, BTG
7942         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
7943         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
7944         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
7945         perform optimization when enviroment variable NO_REG_OPT is set,
7946         * (insideLRBlock): NEW, return 1 if register is inside an
7947         INF_LOCALREGS block,
7948         * (RemoveRegFromLRBlock): remove a register that is completely
7949         eliminated by register optimization, but it is still left in local
7950         register store/restore in/from stack block,
7951         * (Remove2pcodes): after removing register, check to see if it
7952         should be removed from local register store/restore in/from stack
7953         block,
7954         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
7955         DUMMY_READ_VOLATILE,
7956
7957         * device/include/pic16/adc.h: minor prototype modifications and
7958         update,
7959         * device/include/pic16/malloc.h: added GPL notice various
7960         modifications,
7961         * device/include/pic16/stdint.h: NEW, standard header for ints
7962         * device/include/pic16/delay.h: NEW, header for delay functions,
7963         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
7964         delay1mtcy,
7965         * device/include/pic16/signal.h: NEW, header providing helper macros
7966         for implementing signal handlers,
7967         * device/include/pic16/stdio.h: added prototypes for functions,
7968         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
7969         prototypes for stdin and stdout, added macro PUTCHAR to
7970         automatically implement putchar function prototype,
7971         * device/include/pic16/usart.h: modified and updated USART library,
7972         * device/lib/pic16/libio/adc/,
7973         * device/lib/pic16/libio/i2c: some modifications to improve library
7974         performance,
7975         * device/lib/pic16/libc/stdio/: modifications for the new printf*
7976         family of functions,
7977         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
7978         family of functions and other sources,
7979         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
7980         of the PIC18Fxx[28] devices,
7981         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
7982         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
7983         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
7984         _do_cinit function, because the previous failed when local variables
7985         where not placed in the same memory bank,
7986         * device/lib/pic16/libsdcc/char/: various modifications to improve
7987         library performance,
7988         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
7989         information on the new functions of the c library and more...
7990
7991 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7992
7993         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
7994
7995 2005-03-26 Raphael Neider <rneider AT web.de>
7996
7997         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
7998           if condition == CARRY)
7999         * (genCmp): adapted to new genSkipc semantics
8000         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
8001           on rIfx (genCmp was broken)
8002
8003 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8004
8005         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
8006         * src/z80/main.c (_keywords[]),
8007         * src/SDCCglobal.h (struct options),
8008         * src/SDCC.y,
8009         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
8010         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
8011         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
8012         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
8013         always available in leading double underscore form. The C99 support is
8014         mostly missing, but it's a start.
8015         * support/regression/tests/bug-227710.c: fixed nonconforming use of
8016         reserved identifier "__data".
8017
8018 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
8019
8020         * src/mcs51/peeph.def: fixed bug 1170013
8021
8022 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
8023
8024         * device/include/mcs51reg.h: fixed bug 842007
8025
8026 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8027
8028         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
8029         last time.
8030
8031 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8032
8033         * src/port.h (struct PORT),
8034         * src/avr/ralloc.c (avr_assignRegisters),
8035         * src/avr/main.c,
8036         * src/ds390/ralloc.c (ds390_assignRegisters),
8037         * src/ds390/main.c,
8038         * src/hc08/ralloc.c (hc08_assignRegisters),
8039         * src/hc08/main.c,
8040         * src/mcs51/ralloc.c (mcs51_assignRegisters),
8041         * src/mcs51/main.c,
8042         * src/pic/ralloc.c (pic14_assignRegisters),
8043         * src/pic/main.c,
8044         * src/pic16/ralloc.c (pic16_assignRegisters),
8045         * src/pic16/main.c,
8046         * src/xa51/ralloc.c (xa51_assignRegisters),
8047         * src/xa51/main.c,
8048         * src/z80/ralloc.c (z80_assignRegisters),
8049         * src/z80/ralloc.h,
8050         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
8051         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
8052         * src/SDCCcse.h,
8053         * src/SDCCdflow.c (computeDataFlow),
8054         * src/SDCCdflow.h,
8055         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
8056         * src/SDCCloop.h,
8057         * src/SDCCcflow.c (*),
8058         * src/SDCCcflow.h,
8059         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
8060         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
8061         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
8062         immedDom() returning wrong block; probably fixes bug #1160833)
8063
8064 2005-03-20 Borut Razem <borut.razem AT siol.net>
8065
8066         * support/scripts/inc2h.pl: WIN32 port
8067
8068 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
8069
8070         * device/lib/makefile.in: added abs.c and labs.c
8071
8072 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
8073
8074         * device/include/stdint.h: added
8075         * device/lib/abs.c: added
8076         * device/lib/labs.c: added
8077         * device/include/stdlib.h: added abs() and labs() prototypes
8078         * device/lib/libsdcc.lib: added abs and labs
8079         * device/include/float.h,
8080         * device/lib/_fsmul.c,
8081         * device/lib/printf_fast.c,
8082         * device/lib/printf_tiny.c: updated comments
8083
8084 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8085
8086         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
8087         bug #1164313
8088
8089 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8090
8091         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
8092         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
8093
8094 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
8095
8096         * device/lib/printf_large.c: removed inline assembly for portability and
8097           readability. Use printf_fast if speed or size are more important.
8098         * src/pic16/gen.c: removed conditions around use of DEBUGpc
8099         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
8100
8101 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
8102
8103         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
8104         prevent compiler warning
8105
8106 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
8107
8108         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
8109         moved to level 0 and declared as static. Also they are explicit
8110         placed in access bank. This was necessery because some times they
8111         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
8112         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
8113         optimizations. Currently only compare to unsigned char is implemented,
8114         * src/pic16/gen.c: added fReturnIdx array,
8115         * (struct resolvedIfx) is moved to gen.h and made public,
8116         * (struct _G): added sregsAlloc and sregsAllocSet fields,
8117         * (aopForSym): added an optimization to directly store in stack of
8118         the operand of a SEND iCode,
8119         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
8120         but as registers instead (AOP_REG) using the fReturnIdx array,
8121         * (pic16_freeAsmop): remove the freed register from the
8122         _G.sregsAlloc field,
8123         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
8124         a compare of 'WREG',
8125         * (pic16_popGetTempRegCond): changed function prototype, now
8126         function takes also a bitVector argument v which holds the current
8127         set of registers that are allocated for stack access by aopForSym,
8128         registers allocated in aopForSym for accessing stack symbols are not
8129         any more part of the functions usedRegs field,
8130         * (genCall): some times aopOp is called for a stack variable to be
8131         send, aopForSym might perform the push, if this is true make sure
8132         that genCall doesn't push the variable twice by testing _G.resDirect,
8133         * (genFunction): changed testing for unspecified interrupt number
8134         from 256 to INTNO_UNSPEC,
8135         * modified selection scheme of frame pointer generation. Previously
8136         if function did use local registers a frame pointer was generated,
8137         now a frame pointer is generated only if function has arguments
8138         (that need PLUSW2 register access), or has stack arguments, or the
8139         compiler is not instructed to omit the frame pointer,
8140         * (genEndFunction): before restoring local registers that were saved
8141         in the function preamble, also restore the registers that *might*
8142         have been allocated for stack access,
8143         * (genRet): removed some old comments,
8144         * (genCmp, the active (RN's) version): added a call to the
8145         pic16_genCmp_special function to perform the compare with a more
8146         robust and optimized way,
8147         * (genInline): a feature has been added in inline code generation,
8148         which allows a wildcard variable substitution when writing inline
8149         assembly. Code is incomplete and experimental therefore undocumented,
8150         * (genCast): changed order of aopOp for result and right to allow
8151         aopForSym to directly load the result if possible,
8152         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
8153         perform an optimized compare on some selected special occasions,
8154         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
8155         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
8156         generate an IVT any more,
8157         * src/pic16/main.c (pic16_optionsTable): added command line option
8158         --optimize-cmp,
8159         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
8160         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
8161         macros,
8162         * src/pic16/NOTES: Raphael Neider added in list of active developers
8163         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
8164         jumptable_end to prevent bug #,
8165         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
8166         inCond and outCond fields,
8167         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
8168         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
8169         turn off register spilling,
8170         * (packRegsForOneUse): synced with other ports' versions although it
8171         is not used currently,
8172         * (pic16_packRegisters): added an optimization while reading
8173         structure bitfields, some registers may be saved (malloc code is
8174         decreased by 80 bytes)
8175
8176 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
8177
8178         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
8179         left is a bitfield, if yes, then don't optimize assignment. Perhaps
8180         this can be optimized more?
8181
8182 2005-03-10 Raphael Neider <rneider AT web.de>
8183
8184         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
8185           genNearPointerGet): (hopefully) fixed access to bitfields via
8186           pointers (p->bitN = x; and x = p->bitN; failed)
8187
8188 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
8189
8190         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
8191
8192 2005-03-09 Raphael Neider <rneider AT web.de>
8193
8194         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
8195
8196 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
8197
8198         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
8199         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
8200           (regTypeNum): set REG_BIT type if necessary
8201         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
8202         * support/regression/tests/critical.c: check bug 1144613
8203
8204 2005-03-02 Raphael Neider <rneider AT web.de>
8205
8206         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
8207
8208 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8209
8210         * src/avr/ralloc.c (serialRegAssign),
8211         * src/ds390/ralloc.c (serialRegAssign),
8212         * src/hc08/ralloc.c (serialRegAssign),
8213         * src/mcs51/ralloc.c (serialRegAssign),
8214         * src/pic/ralloc.c (serialRegAssign),
8215         * src/pic16/ralloc.c (serialRegAssign),
8216         * src/xa51/ralloc.c (serialRegAssign),
8217         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
8218
8219 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
8220
8221         * src/SDCCast.c (decorateType): fixed bug 1124787
8222
8223 2005-02-20 Hubert Sack <sack AT digiplan.de>
8224         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8225
8226         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
8227         patch #1121755
8228
8229 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8230
8231         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
8232         to keep the correct label reference count when adding/removing references
8233         to labels. A peephole file using this is appended to patch #1144962.
8234
8235 2005-02-14 Raphael Neider <rneider AT web.de>
8236
8237         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
8238         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
8239         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
8240           retrievals of result operand's value on assignment
8241
8242 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
8243
8244         * device/include/pic16/string.h: modified prototype for memccpy()
8245         to memccpy(void *, void *, char, size_t)
8246         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
8247         check whether to omit frame pointer or not,
8248         * (genInline): convert all occurences of "\n" to LF in inline
8249         assembler blocks, this helps formatting the inline text,
8250         * (pic16_loadFSR0): modified prototype,
8251         * (genNearPointerGet, genNearPointerSet): reorganization of code,
8252         removed some 8051 legacy code,
8253         * (genPackBits): enabled handling bitfields exceeding one byte in size,
8254         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
8255         before allocating temporary registers in functions,
8256
8257 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
8258
8259         * support/regression/tests/bitvars.c: corrected the "fix"
8260
8261 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
8262
8263         * support/regression/tests/bitvars.c,
8264         * support/regression/tests/bitwise.c,
8265         * support/regression/tests/rotate.c: "fixed" problems on Alpha
8266
8267 2005-02-10 Raphael Neider <rneider AT web.de>
8268
8269         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
8270           different size for Alpha
8271         * src/pic16/gen.c (genCmpEq) : improved compare with 0
8272
8273 2005-02-09 Raphael Neider <rneider AT web.de>
8274
8275         * src/SDCC.lex(doPragma) : save and restore warning options as well
8276           (also added new stack plus clone- and copyAndFreeSDCCERRG())
8277         * have #pragma less_pedantic set the errorlevel to WARNING
8278           (fixes #1117001)
8279         * (cloneOptimize) : fixed wrong malloc's size
8280         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
8281           facilitate correct handling of #pragma (save|restore)
8282
8283 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
8284
8285         * src/mcs51/gen.c: removed non-standard C nameless struct/union
8286
8287 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
8288
8289         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
8290
8291 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
8292
8293         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
8294
8295 2005-02-02 Raphael Neider <rneider AT web.de>
8296
8297         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
8298         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
8299         * (pic16_storeForReturn): fixed to allow returning function pointers
8300         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
8301         * device/include/pic16/{stddef.h,stdbool.h}: added
8302
8303 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
8304
8305         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
8306
8307 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
8308
8309         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
8310         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
8311          appeared to be required
8312
8313 2005-01-31 Borut Razem <borut.razem AT siol.net>
8314
8315         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
8316           include/mcs51 and include/z80 directories to the package
8317
8318 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8319
8320         * src/hc08/gen.c (genFunction): fixed bug #1112752
8321
8322 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8323
8324         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
8325
8326 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8327
8328         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
8329
8330 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
8331
8332         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
8333
8334 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
8335
8336         * device/include/c8051fxxx.h: removed these 6 files
8337         * device/include/mcs51/c8051fxxx.h: added these 11 new files
8338
8339 2005-01-26 Raphael Neider <rneider AT web.de>
8340
8341         * src/pic16/gen.c (genAssign): fixed assignment from longs
8342           in codespace (were cut to three bytes)
8343         * (genDummyRead): implemented (except for CODESPACE...),
8344           fixed bug #1108575
8345         * src/pic16/glue.c (emitStatistics): beautified
8346         * device/lib/pic16/libm/Makefile: added include path
8347
8348 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8349
8350         * src/z80/gen.c (aopPut): fixed bug #1103902
8351
8352 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8353
8354         * device/lib/expf.c: fixed bug #1095792
8355
8356 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
8357
8358         * device/lib/pic16/libm: added Math library sources
8359
8360 2005-01-24 Raphael Neider <rneider AT web.de>
8361
8362         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
8363           to enable upcast to pCodeOpReg2 (there is no type tag to
8364           differenciate the two and pic16_popGet2p cast into PCOR2)
8365         * src/pic16/main.c (_process_pragma): fixed another malloc bug
8366           (sizeof(sectNames) changed to sizeof(sectName))
8367           Both patches fix segfaults under MinGW.
8368
8369 2005-01-23 Raphael Neider <rneider AT web.de>
8370
8371         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
8372           Safe_[mc]?alloc()'ed variables
8373         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
8374           of (byte sized) temporaries (assign them to WREG for now)
8375         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
8376           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
8377           this might fix SIGSEGVs on MinGW...
8378         * src/SDCCopt.c (killDeadCode): restored original behaviour
8379           (volatile operands might get thrown away though)
8380
8381 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
8382
8383         * src/pic16/gen.c: fixed bug #1106975,
8384         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
8385         pointer update, INTCON is saved, global interrupts are disabled and
8386         restored after updateing TOS.
8387         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
8388         * added function attribute 'shadowregs' to take advantage of shadow
8389         registers,
8390         * added function attribute 'wparam' as an alternative to the wparam
8391         pragma,
8392         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
8393         user declares a non-ISR function as 'shadowregs',
8394         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
8395
8396 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
8397
8398         * .version: bumped version number to 2.4.8
8399         * device/lib/pic16/pics.all: list of PIC18F devices supported by
8400         pic16 port,
8401         * device/lib/pic16/libio/i2c/: I2C module support library,
8402         * device/include/pic16/i2c.h: I2C support library header,
8403         * device/lib/pic16/libc/stdio/: standard IO support sources,
8404         * (printf_small.c): printf_small() source, supports float print,
8405         * (printf_tiny.c): printf_tiny() source, does not support floats,
8406         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
8407         enable global optimizations for entire library source, other
8408         Makefiles in the source tree are also modified to reflect this,
8409         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
8410         function,
8411         * doc/sdccman.lyx: updated to reflect new changes,
8412         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
8413         sym->onStack if-case,
8414         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
8415         sbit, idata, _idata, xdata, _xdata,
8416         * added pragma library, to link an external library, (see doc),
8417         * removed command line options, --pomit-config-words, --pomit-ivt,
8418         --pleave-reset-vector,
8419         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
8420         when calling assembler to reflect memory model used, also define
8421         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
8422         reflect stack model used,
8423         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
8424         on stack return NULL,
8425
8426 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
8427
8428         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
8429           of the operands is volatile. Fixes #1020220
8430
8431 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
8432
8433         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
8434         * (OptimizeRegUsage): make sure that there is really no other flow where
8435           the first pCode is used
8436
8437 2005-01-22 Raphael Neider <rneider AT web.de>
8438
8439         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
8440           to fix #1106967 (pCode->seq are not set up correctly)
8441
8442 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8443
8444         * src/SDCCglue.c (glue): make sure code area is declared before the
8445         static initialization area.
8446
8447 2005-01-21 Raphael Neider <rneider AT web.de>
8448
8449         * device/lib/Makefile.in: fixed test for pic16 install dir
8450         * device/lib/pic16/*/Makefile*: modified compile flags to enable
8451           optimizations
8452         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
8453           added --optimize-goto compiler switch and pragma wparam documentation
8454         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
8455         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
8456           and PRODH closing bug #1071770 (peephole optimizer)
8457
8458 2005-01-19 Raphael Neider <rneider AT web.de>
8459
8460         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
8461           cmdLine buffers (used when calling sdcpp...) are large enough
8462           (MAX_PATH=256 truncates arguments leading to system halts when
8463           used in MinGW...)
8464         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
8465         * (genUminus): rewritten to for efficiency
8466         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
8467           used uninitialized in some cases)
8468         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
8469           copy the third byte from the int -- now assumes 0x80 (data memory)
8470         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
8471           operands (genAddLit expects the iCode's operands to swapped as
8472           well), fixed leftover bytes (crashed for short left operands)
8473         * (pic16_genMinusDec): performance improvements, removed false
8474           PIC14 emitSKPNCs
8475         * (pic16_genMinus): fixed to cope with differently sized operands
8476         * src/pic16/glue.c (pic16_glue): added new banksel optimization
8477           for --obanksel > 1
8478         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
8479         * src/pic16/graph.[ch]: implementation of directed graphs, used by
8480           new banksel optimization
8481         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
8482           analysis for temporary registers (segfaults...)
8483         * src/pic16/peeph.def: added rule
8484
8485 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
8486
8487         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
8488         which converts a float number to its ASCII representation
8489         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
8490         functions to convert the fractional and integer part of a float to ASCII,
8491         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
8492         realloc.c): added _MALLOC_SPEC to explicit place variables in data
8493         ram
8494         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
8495         _STATMEM macros,
8496         * device/include/pic16/adc.h: added GPL info,
8497         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
8498         a pCodeOp as tested operand,
8499         * (genNearPointerGet): optimized bit testing, does not use
8500         intermediate register for bit value, test directly instead with
8501         BTFSS, BTFSC, works only for single bits,
8502         * (genpic16Code): dump the name of the iCode in the asm,
8503         * src/pic16/ralloc.c (decodeOp): removed static declaration and
8504         renamed to pic16_decodeOp,
8505         * (serialRegAssign): do not allocate a temporary register for iCode
8506         sequences that test a single bit for 1/0
8507
8508 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
8509
8510         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
8511         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
8512         access stack and frame pointers. They are initially assigned to
8513         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
8514         accessing SFRs. Updated all occurences of modification of stack or
8515         frame pointer in gen.c and pcode.c,
8516         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
8517         assigning of a literal value to pointers,
8518         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
8519         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
8520         selected
8521
8522 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
8523
8524         * doc/sdccman.lyx: update documentation about stack pragma, added
8525         some info for stack memory models
8526
8527 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8528
8529         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
8530
8531 2005-01-08 Raphael Neider <rneider AT web.de>
8532
8533         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
8534           udata sections to fix bug #1097823
8535
8536 2005-01-05 Raphael Neider <rneider AT web.de>
8537
8538         * src/pic16/gen.c (genGenericShift): added handling of differently
8539           sized left operand and result
8540
8541 2005-01-04 Raphael Neider <rneider AT web.de>
8542
8543         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
8544         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
8545           to hold the condition bit)
8546         * added new version of genCmp (old code available via #define)
8547         * added new version of genShiftLeft/genShiftRight in a generic
8548           way, now supports shifting by negative values
8549         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
8550           shiftCount (expected by genGenericShift)
8551         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
8552         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
8553           dump
8554         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
8555           is an invalid literal too...)
8556
8557 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
8558
8559         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
8560         from Raphael Neider,
8561         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
8562         for 8-bit literals. This fixes some literal operands which are sign
8563         extended to 16-bits ints when instruction needs only 8-bits.
8564
8565 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
8566
8567         * device/lib/logf.c: added mcs51 assembly version
8568         * device/lib/expf.c: added mcs51 assembly version
8569         * device/lib/_logexpf.c: new shared asm code for expf and logf
8570         * device/include/math.h: add defines for assembly math library
8571         * device/lib/Makefile.in: build new _logexpf.c
8572         * device/lib/libfloat.lib: use new _logexpf.c
8573
8574 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
8575
8576         * src/pic/device.c
8577         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
8578           device types which have less than 0x7f registers.
8579
8580 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
8581
8582         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
8583
8584 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
8585
8586         * device/lib/printf_fast.c: only build on supported arch.
8587         * device/lib/printf_tiny.c: only build on supported arch.
8588         * device/lib/printf_fast_f.c: only build if asm float lib
8589         * device/lib/_fsget1arg.c: only build if asm float lib
8590         * device/lib/_fsget2args.c: only build if asm float lib
8591         * device/lib/_fsnormalize.c: only build if asm float lib
8592         * device/lib/_fsreturnval.c: only build if asm float lib
8593         * device/lib/_fsrshift.c: only build if asm float lib
8594         * device/lib/_fsswapargs.c: only build if asm float lib
8595         * device/include/stdio.h: don't provide print_fast,
8596           print_fast_f, print_tiny prototypes if --xstack used
8597
8598 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
8599
8600         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
8601         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
8602           to the SOURCES
8603
8604 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
8605
8606         * device/lib/printf_fast_f.c: same as printf_fast, but
8607           with floating point enabled
8608         * device/lib/printf_fast.c: minor tweaks
8609         * device/include/stdio.h: add printf_fast_f
8610
8611 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
8612
8613         * src/SDCCmain.c: make --float-reent default for mcs51
8614         * device/lib/_fsadd.c: added mcs51 assembly version
8615         * device/lib/_fssub.c: added mcs51 assembly version
8616         * device/lib/_fsmul.c: added mcs51 assembly version
8617         * device/lib/_fsdiv.c: added mcs51 assembly version
8618         * device/lib/_fseq.c: added mcs51 assembly version
8619         * device/lib/_fsneq.c: added mcs51 assembly version
8620         * device/lib/_fsgt.c: added mcs51 assembly version
8621         * device/lib/_fslt.c: added mcs51 assembly version
8622         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
8623         * device/lib/Makefile.in: add _fscmp to build
8624         * device/lib/libfloat.lib: add _fscmp to build
8625
8626 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
8627
8628         * device/lib/_fs2slong.c: added mcs51 assembly version
8629         * device/lib/_fs2sint.c: added mcs51 assembly version
8630         * device/lib/_fs2schar.c: added mcs51 assembly version
8631         * device/lib/_fs2ulong.c: added mcs51 assembly version
8632         * device/lib/_fs2uint.c: added mcs51 assembly version
8633         * device/lib/_fs2uchar.c: added mcs51 assembly version
8634         * device/lib/_slong2fs.c: added mcs51 assembly version
8635         * device/lib/_sint2fs.c: added mcs51 assembly version
8636         * device/lib/_schar2fs.c: added mcs51 assembly version
8637         * device/lib/_ulong2fs.c: added mcs51 assembly version
8638         * device/lib/_uint2fs.c: added mcs51 assembly version
8639         * device/lib/_uchar2fs.c: added mcs51 assembly version
8640         * device/include/float.h: added #define to select asm vs c
8641
8642 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
8643
8644         * device/lib/printf_fast.c: improvements to float output
8645         * device/include/float.h: add defines for assembly float library
8646         * device/lib/_fsget1arg.c: receive 1 float arg
8647         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
8648         * device/lib/_fsnormalize.c: normalize a float
8649         * device/lib/_fsreturnval.c: return float, various helper routines
8650         * device/lib/_fsrshift.c: right shift a float's mantissa
8651         * device/lib/_fsswapargs.c: swap 2 floats
8652         * device/lib/Makefile.in: build these 6 new files for mcs51
8653         * device/lib/libfloat.lib: add these 6 files to the library
8654
8655 2004-12-26 Borut Razem <borut.razem AT siol.net>
8656
8657         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
8658           built by gcc 3.4.2
8659
8660 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
8661
8662         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
8663           and fully reentrant and register bank neutral.
8664         * device/lib/printf_fast.c: added float (not enabled by default),
8665           added compact/slower integer (also not enabled by default),
8666           improved size/speed of fast integer code, other minor changes
8667         * device/include/stdio.h, device/lib/Makefile.in,
8668           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
8669
8670 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
8671
8672         * src/pic16/pcode.c: declaring variables other than at the start of a
8673           block is not supported in C by VC6.
8674
8675 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
8676
8677         * applied a previous patch from Raphael Neider that wasn't included
8678         in the previous commits, which fixes infinite loops within jumptable
8679         improvements,
8680         * made some fixes that previous patches introduced
8681
8682 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
8683
8684         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
8685         that fixes an issue with AOP_PCODE asmop's offset,
8686         * (pic16_popCopyReg): update instance field too,
8687         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
8688         function of pic port,
8689         * (genCmp, genAnd, genAssign),
8690         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
8691
8692 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
8693
8694         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
8695         variables initial values to idata section,
8696         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
8697         variables in some functions. This utilizes parmBytes field of iCode
8698         structure to hold the offset of the variable in stack. (might be
8699         able to use the stack field too?)
8700         * applied patch from Raphael Neider # ### , # ###
8701         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
8702         variable initial values in idata section,
8703         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
8704         for static variables with initial value
8705         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
8706         applied fix in while loop from Raphael Neider.
8707
8708 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
8709
8710         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
8711         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
8712         * src/ds390/ralloc.c (serialRegAssign): spill bits
8713         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
8714         * support/Util/SDCCerr.c,
8715         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
8716         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
8717         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
8718
8719 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
8720
8721         * device/include/sdcc-lib.h: inserted LGPL, added includes
8722           asm/ds390/features.h and asm/mcs51/features.h
8723         * device/include/asm/default/features.h,
8724         * device/include/asm/gbz80/features.h,
8725         * device/include/asm/z80/features.h: added empty _AUTOMEM
8726           and _STATMEM
8727         * device/include/asm/ds390/features.h,
8728         * device/include/asm/mcs51/features.h: added files with defines for
8729           _AUTOMEM and _STATMEM indicating automatic and static storage class
8730         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
8731         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
8732         * src/SDCCicode.c (geniCodeCast),
8733         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
8734         * src/SDCCloop.c (loopInduction): removed unused variable lr
8735         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
8736           to convertToFcall to include char modulo (RFE 1065037), added check
8737           if left operand is unsigned and use abs of literal value
8738         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
8739           as it doesn't work after conversion from peephole.def to peephole.rul
8740         * src/mcs51/gen.c (toBoolean): added check for size,
8741           (genModOneByte): optimized code for signed char modulo a literal
8742           power of 2 (thanks to Hubert Sack),
8743           (genRRC): removed unnecessary "clr c",
8744           (genRLC): replaced "add a,acc" with cheaper "rlc a"
8745         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
8746           jump optimization,
8747           swapped rules 256.c and 256.d,
8748           extended 256.d by using new multiple checks (thanks Erik),
8749           added rules 256.e and 256.f,
8750           updated rule 261.a and 261.b to new generated code
8751         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
8752
8753 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8754
8755         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
8756           induction related bugs, including first part of bug #1074377
8757
8758 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
8759
8760         * applied patch from bug-report #1076292,
8761         * applied patches for genAnd and Goto-optimizations for Raphael
8762         Neider,
8763         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
8764         dump a less iCode information,
8765         * src/pic16/device.h (pic16_options_t): added field debgen,
8766         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
8767         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
8768         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
8769         puclic,
8770         * (various functions): added macros FENTRY and FENTRY2 to functions,
8771         to emit function prologue,
8772         * (various functions): fixed indentation,
8773         * (genNearPointerGet): fixed loading of FSR0,
8774         * (genPackBits): applied patch from Raphael Neider to fix updating
8775         of FSR0 and touching only the modified bits,
8776         * src/pic16/genarith.c (various functions): added macros FENTRY to
8777         emit function prologue in comments,
8778         * src/pic16/pcode.h: added functions debugf2, debugf3,
8779         * src/pic16/ralloc.c: partial fix for packForPush caused
8780         segmentation fault,
8781
8782 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8783
8784         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
8785           <stsp AT users.sourceforge.net> with reversed byte order
8786         * support/regression/tests/rotate.c: added (ds390 skips some tests)
8787
8788 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8789
8790         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
8791           bug #1074377
8792         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
8793         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
8794
8795 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
8796
8797         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
8798
8799 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8800
8801         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
8802           conditions,
8803           (setFromConditionArgs): friendly operand parser for peephole rules,
8804           (operandBaseName, operandsNotRelated): new peephole condition
8805           "operandsNotRelated" -- similar to "operandsNotSame", but takes
8806           architecture specific register naming into account, handles n-way
8807           comparisons, and supports quoted literals
8808         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
8809
8810 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8811
8812         * src/mcs51/peeph.def: fixed bug #1076940
8813
8814 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
8815
8816         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
8817
8818 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8819
8820         Adding support for replacing ljmps with sjmps in jumptables
8821         generated for switch statements. For now you need to set the
8822         environment variable SDCC_SJMP_JUMPTABLE to enable this.
8823         Now 4 algorithms for mcs51 jumptable generation are used:
8824         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
8825         addresses loaded pc-relative for up to 112 cases and stack-pushing
8826         target addresses loaded with offset from dptr for up to 256 cases.
8827
8828         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
8829         * src/mcs51/main.c: adapted constants for switch table generation
8830         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
8831
8832 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
8833
8834         * device/lib/printf_large.c (_print_format): fixed bug 1073386
8835         * support/regression/tests/bug1057979.c: added test for bug 1073386
8836
8837 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
8838
8839         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
8840         compilers
8841
8842 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
8843
8844         * src/pic16/device.h,
8845         * src/pic16/genarith.c,
8846         * src/pic16/glue.c,
8847         * src/pic16/main.c,
8848         * src/pic16/pcode.c: applied patches #1068154 and #1070213
8849
8850 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
8851
8852         Large cummulative patch for pic16 port.
8853         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
8854         to call when a stack overflow occurs,
8855         * (malloc.h): added CVS Id tag,
8856         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
8857         variable,
8858         * added libc directory. The current version of LibC contains string
8859         functions, ctype functions and macros and some functions of the
8860         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
8861         be extensively tested in the future. Standard disclaimer here.
8862         Library is not automatically build yet. But one can build it by
8863         invoking 'make' inside the libc directory.
8864         * added ADC library under libio. Preliminary version yet.
8865
8866         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
8867         * src/pic16/gen.c (aopForRemat): asmop size is filled by
8868         aopForRemat() now and not by pic16_aopOp(),
8869         * (pic16_popGetTempReg): removed warning messgae when allocating
8870         temporary registers, its a buggy feature and will be removed,
8871         * (pic16_popGet): set register instance field in AOP_CRY,
8872         * (pic16_outBitC): fixed for results in size greater than 1,
8873         * (genUminusFloat): fixed for pic16, ported code from mcs51,
8874         * (pic16_storeForReturn): optimized return of 0,
8875         * (genCmp): experimental code for new genCmp which uses PIC18's
8876         special compare&skip instructions. Initial tests fail some times
8877         with variables grater than 1 byte in size, so new code is disabled,
8878         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
8879         a single bit,
8880         * (genCast): began a fix to optimize the casting of a bit to another
8881         bit, now assigning a bitfield to another bitfield will fail, sorry,
8882         * src/pic16/main.c: disabled the use of lr-support feature,
8883         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
8884         * added some function prototypes, added function _debugf prototype,
8885         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
8886         bits with offset (case PO_GPR_BIT),
8887         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
8888         command line,
8889         * (isBankInstruction): modified to return 0 for no banking instruction,
8890         and 1 for banking instruction,
8891         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
8892         caused stop processing pCodes after a inline assembly block,
8893         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
8894         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
8895         registers when it shouldn't,
8896         * src/pic16/ralloc.c (allocReg): add preliminary support for
8897         supporting a limited set of temporary registers,
8898
8899 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8900
8901         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
8902           genDataPointerSet): ensure assignments always copy in MSB to LSB
8903           order,
8904           (loadRegFromAop): recognize CLRH optimization,
8905           (genFunction): optimize RECEIVE iCodes in reentrant functions
8906
8907 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8908
8909         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
8910           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
8911           selected.
8912         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
8913         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
8914           contiguous with data
8915
8916 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8917
8918         * device/lib/_gptrget.c (_gptrget),
8919         * device/lib/_gptrgetc.c (_gptrgetc),
8920         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
8921           instead of sjmp to ret
8922         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
8923           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
8924
8925 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
8926
8927         * .version: bumped version to 2.4.7
8928         * device/lib/_gptrget.c (_gptrget): is now _naked
8929         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
8930         * device/lib/_gptrput.c (_gptrput): is now _naked
8931         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
8932           (createFunction): fixed xstack
8933         * src/SDCCglue.c (emitMaps): set allocation required for bit area
8934         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
8935           or bit either,
8936           (geniCodeCritical): store original interrupt state in an iTemp bit
8937           var unless stack-auto
8938         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
8939         * src/SDCCmain.c (setIncludePath): added include/target to search path
8940         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
8941         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
8942           prototype,
8943           (processFuncArgs): put bit vars in bit area
8944         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
8945           unsaveRBank): fixed xstack,
8946           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
8947           (genFunction, genEndFunction): fixed xstack,
8948           (genAssign): optimization don't walk backwards through mem
8949         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
8950         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
8951         * support/regression/Makefile: also make library (for stack-auto) when
8952           making "all" and added "test-mcs51-xstack-auto"
8953         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
8954         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
8955         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
8956         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
8957         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
8958           make-library by MAKE_LIBRARY
8959         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
8960           regression tests for xstack
8961         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
8962         * support/regression/tests/critical.c: test for critical on mcs51
8963
8964 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8965
8966         * support/regression/ports/ucz80/spec.mk: use include and lib files from
8967           built version of sdcc instead of installed version
8968
8969 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
8970
8971         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
8972         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
8973           vprintf.c now
8974         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
8975         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
8976           WARNING: remove device/lib/build/z80/printf.o by hand when
8977           updating from previous build!
8978         * device/lib/z80/printf.c: updated comment
8979         * support/regression/tests/bug1057979.c: test all ports now
8980         * support/regression/tests/bug1065458.c: file added
8981
8982 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8983
8984         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
8985           *_start and *_end symbols for static functions
8986
8987 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
8988
8989         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
8990           and search crt0.o in all library paths,
8991           (setIncludePath): proper handling of --nostdinc,
8992           (setLibPath): proper handling of --nostdlib
8993         * support/regression/Makefile,
8994         * support/regression/ports/ds390/spec.mk,
8995         * support/regression/ports/gbz80/spec.mk,
8996         * support/regression/ports/hc08/spec.mk,
8997         * support/regression/ports/mcs51/spec.mk,
8998         * support/regression/ports/mcs51-large/spec.mk,
8999         * support/regression/ports/mcs51-stack-auto/spec.mk,
9000         * support/regression/ports/z80/spec.mk: use include and lib files from
9001           built version of sdcc instead of installed version
9002         * doc/sdccman.lyx: fixed typo in --nostdinc
9003
9004 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
9005
9006         * src/pic/pcode.c,
9007         * src/pic/device.c,
9008         * src/pic/ralloc.c,
9009         * src/pic/gen.c : added support to generate code for struct bit fields.
9010
9011 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
9012
9013         * as/xa51/xa_version.h,
9014         * device/include/errno.h,
9015         * device/include/regc515c.h,
9016         * device/lib/_itoa.c,
9017         * device/lib/_ltoa.c,
9018         * device/lib/ser_ir_cts_rts.c,
9019         * sim/ucsim/xa.src/glob.cc,
9020         * sim/ucsim/xa.src/inst_gen.cc,
9021         * sim/ucsim/xa.src/xa_bit.cc,
9022         * sim/ucsim/xa.src/xa_sfr.cc,
9023         * sim/ucsim/z80.src/inst_dd.cc,
9024         * sim/ucsim/z80.src/inst_fdcb.cc,
9025         * support/scripts/keil2sdcc.pl,
9026         * src/pic16/pic16.dsp,
9027         * src/pic16/pic16a.dsp: corrected cvs line endings
9028         * device/lib/printf_large.c: fixed bug 1057979
9029         * src/pic16/gen.c: fixed non-C standard code
9030         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
9031         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
9032         * support/regression/ports/mcs51/support.c: reload T1 asap
9033         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
9034           pdata use and clear idata startup behaviour
9035         * support/regression/tests/bug1057979.c: added
9036
9037 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
9038
9039         * device/examples/ds390/ow390/ad26.h,
9040         * device/examples/ds390/ow390/cnt1d.h,
9041         * device/examples/ds390/ow390/crcutil.c,
9042         * device/examples/ds390/ow390/ownet.h,
9043         * device/examples/ds390/ow390/owsesu.c,
9044         * device/examples/ds390/ow390/swt12.h,
9045         * device/examples/ds390/ow390/swtoper.c,
9046         * device/examples/ds390/ow390/temp10.h,
9047         * device/examples/ds390/ow390/thermodl.c,
9048         * device/examples/ds390/tinitalk/tinitalk.dsp,
9049         * device/examples/ds390/tinitalk/tinitalk.dsw,
9050         * device/examples/mcs51/clock/hw.h,
9051         * device/examples/mcs51/simple2/go.bat,
9052         * device/examples/serialcomm/windows/serial.h,
9053         * device/examples/xa51/dummy.c,
9054         * device/examples/xa51/hello.c,
9055         * device/include/80c51xa.h,
9056         * device/include/at89x051.h: corrected cvs line endings
9057
9058 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
9059
9060         * src/pic16/main.c (options): added command line --gstack, to trace
9061         stack over/under flows,
9062         * added pragma 'wparam' to allow passing first byte of function
9063         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
9064         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
9065         call to __gstack_test function and sets up the symbol as extern,
9066         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
9067         * popaop): added call to pic16_testStackOverflow,
9068         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
9069         wparamList list,
9070         * (genCall, genPcall): now all parameters are passed via stack
9071         except in functions that are pass to wparam pragma in which WREG is
9072         used too,
9073         * (genPcall): REENTRANT flag is checked to see if variable prototype
9074         contains reentrant keyword, don't call a non-reentrant function, via
9075         a reentrant function pointer or vice versa, functions are never
9076         passed via WREG,
9077         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
9078         D.Winkler,
9079         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
9080         SIGSEGV when accessing a NULL register stucture,
9081         * (pic16_printGPointerType): modified to handle UPPER modifier for
9082         function initializers, changed prototype of function to simpler one,
9083         * (pic16_printIvalFuncPtr): check to see if function is already
9084         added in externs list,
9085         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
9086         optimized a move from W to SFR with a move to the same register
9087         later after a CALL,
9088         * device/lib/pic16/debug: NEW directory, contains debug features
9089         which are enabled when linking with libdebug.lib, currently command
9090         line option --gstack enables stack pointer tracing for over/under
9091         flow, corresponding sources are in debug/gstack
9092
9093 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
9094
9095         * doc/sdccman.lyx: updated SDCC version,
9096         * (PIC16 port): update list of command line options,
9097         * src/pic16/device.h (structure pic16_options_t): added field gstack
9098         to enable stack overflow tracing on push/pops,
9099         * src/pic16/device.c (statistics structure): added statistics
9100         structure,
9101         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
9102         pic16_dump_int_registers): increase statistics counters for each
9103         * variable which is encountered
9104         * (pic16_dump_usection): emit each .udata variable to its own udata
9105         section,
9106         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
9107         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
9108         parameters via stack, otherwise use old scheme,
9109         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
9110         assembler output file,
9111         * src/pic16/main.c: added command line options --gstack to enable
9112         push/pop tracing for stack overflow,
9113         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
9114         instructions): added size of each instruction,
9115         * (pic16_countInstruction): estimate size of instructions in
9116         the_pFile list, inline assembly blocks are not counted,
9117         * (pic16_FixRegisterBanking): trace previous register usage, when
9118         banksel optimizations is greater than 0, don't emit a redudant
9119         banksel directive,
9120
9121 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
9122
9123         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
9124         * src/pic16/ralloc.c : applied same fix for pic16.
9125         * src/pic/gen.c : tidied it up a little.
9126
9127 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9128
9129         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
9130         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
9131
9132 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9133
9134         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
9135
9136 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9137
9138         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
9139         non-reentrant function __modsint in the interrupt function (thus
9140         corrupting math operations during serial I/O)
9141         * device/lib/ser_ir.c: as above, changed buffersize
9142         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
9143         256.c,d for zeroing
9144         * doc/Makefile: added option -t for rsync
9145
9146 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9147
9148         * src/SDCCast.h (struct ast),
9149         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
9150
9151 2004-10-20 Borut Razem <borut.razem AT siol.net>
9152
9153         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
9154         package
9155
9156 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
9157
9158         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
9159         makefile targets,
9160         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
9161         support functions to replace long sequences of MOVFF's from access
9162         bank registers to stack and vice versa,
9163         * src/pic16/device.h: added new field opt_flags, where optimization
9164         flags can be set to enable certain features,
9165         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
9166         * pBlock, (genFunction, genEndFunction): surroung loop for
9167         saving/loading used registers in stack with PC_INFO pCodes,
9168         INF_LREGS. Code in between can then be optimized by pCode optimizer
9169         to support function calls,
9170         * (genDataPointerSet): fixed bug which loaded float fields in
9171         structures with corrupt data,
9172         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
9173         in a standard way debug info on stderr. Feature used for developing
9174         and debugging only,
9175         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
9176         obsolete chunks of code,
9177         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
9178         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
9179         * pic16/src/pcode.c (pic16_newpCodeInfo,
9180         * (pic16_newpCodeOpLocalRegs),
9181         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
9182         feature,
9183         * (pic16_pCodeConstString): printing of the initial value of a
9184         symbol as a comment is inhibited since parsing was already done by
9185         copyStr and output is corrupt,
9186         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
9187
9188 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9189
9190         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
9191
9192 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
9193
9194         * as/mcs51/lkarea.c: removed old K&R style,
9195           (lnksect): changed check on boundary error,
9196           (lnksect2): changed check on boundary error,
9197           (lnksect2): extend XSTK to end of page if size = 1
9198         * as/mcs51/lkmain.c: removed old K&R style,
9199           (Areas51): create l_IRAM symbol
9200         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
9201         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
9202           model-mcs51-stack-auto, added model-mcs51-xstack-auto
9203         * device/lib/_mullong.c: added version to be compiled with xstack
9204         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
9205         * device/lib/mcs51/crtxclear.asm: clear pdata as well
9206         * device/lib/mcs51/crtxstack.asm: fixed comment
9207         * src/SDCCglue.c: maxInterrupts defaults to 0,
9208           (emitMaps): added pdata,
9209           (createInterruptVect): (re)moved default,
9210           (glue): added pdata,
9211           (glue): moved __start__xstack to XSTK with default size 1
9212         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
9213           and options.float_rent when options.stackAuto is set,
9214           (linkEdit): only write XDATA_NAME if provided on command line
9215         * src/SDCCmem.h,
9216         * src/SDCCmem.c: added pdata
9217         * src/port.h: added pdata_name to PORT
9218         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
9219           (saveRegisters, unsaveRegisters): removed usage of B,
9220           (genMinus): fixed accumulator clash,
9221           (genJumpTab): added comment, this needs another look
9222         * src/mcs51/gen.c: added check for "B in use" paranoia,
9223           added pushB() and popB()
9224         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
9225           chance
9226         * src/avr/main.c,
9227         * src/ds390/main.c,
9228         * src/hc08/main.c,
9229         * src/mcs51/main.c,
9230         * src/pic/main.c,
9231         * src/pic16/main.c,
9232         * src/xa51/main.c,
9233         * src/z80/main.c: (reset_regparms) made void parameter explicit and
9234           added PSEG (PAG,XDATA) or NULL to port specifier
9235         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
9236         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
9237           (_mcs51_genInitStartup): removed __start__xstack equ,
9238           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
9239         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
9240         * src/z80/gen.c (_rleAppend): fixed warnings
9241         * support/regression/tests/zeropad.c: added pdata test
9242         * .version: bumped to 2.4.6
9243
9244 2004-10-17 Borut Razem <borut.razem AT siol.net>
9245
9246         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
9247         as a part of nightly build
9248
9249 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
9250
9251         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
9252         WREG holds the first byte function parameters,
9253         * (aopForSym): take special case for symbols which are in FARSPACE
9254         but in CODESPACE too,
9255         * (assignResultValue): modified to take into account _G.useWreg,
9256         * (genCall): don't use wreg for parameter passing when function is
9257         declared as reentrant, too, added optimization INCF to stack
9258         pointer when stack parameter count is 1,
9259         * (genFunction, genEndFunction): refurnished and fixed to not using
9260         wreg for passing parameters when function has varargs or is
9261         reentrant, fixed bug with symbol name compare for generating
9262         functions in absolute address,
9263         * (pic16_storeForReturn): refurnished,
9264         * (genCmp): began writing a new version of the function, not ready
9265         yet, therefore it is disabled,
9266         * (genAssign): do not read code memory when assigning a function to
9267         a pointer function,
9268         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
9269         array of characters, not pointer,
9270         * (pic16initialComments): in debug mode emit an .ident directive for
9271         the assembler,
9272         * (_process_pragma): emit a new warning type (internal to pic16)
9273         when setting stack to default length, emit a similar warning when
9274         placing a function at absolute address and address is not word aligned
9275         * (_pic16_parseOptions): added 'return TRUE' statement,
9276         * (_pic16_linkEdit): if compiling a source, then add the source's
9277         file object, first in the list of objects to link,
9278
9279 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
9280
9281         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
9282         * src/pic/main.c : removed VC warning.
9283         * src/pic/gen.c : changed comment.
9284
9285 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
9286
9287         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
9288         reference to a deprecated symbol _GPTRREG was causing failure to
9289         link. Thanks G. M. Gallant for the info.
9290
9291 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
9292
9293         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
9294         comments for Bugs item #954788.
9295
9296 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
9297
9298         * src/pic16/device.c (pic16_dump_gsection,
9299         * pic16_groupRegistersInSection): handle symbols declared to be in
9300         access bank differently,
9301         * src/pic16/gen.c (struct _G): added field resDirect,
9302         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
9303         send values read from stack directly to result and don't allocate
9304         temporary values,
9305         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
9306         same registers,
9307         * (pic16_sameRegsOfs): NEW,
9308         * (freeAsmop): if _G.resDirect is set then do not mark registers as
9309         free because they were not allocated from temporary pool,
9310         * pic16_popRegFromString): workaround to fix a problem with
9311         allocating variables twice or never,
9312         * (genGenPointerGet): using PRODL instead of FSR0H,
9313         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
9314         instead of FSR0H,
9315         * (genAssign): take advantage of the _G.resDirect flag,
9316         * (genCast): around line 11844, use mov2f instead of directly
9317         MOVFF'ing between operands to account for literal values,
9318         * src/pic16/genutils.c: some new debug functions for gpsim have been
9319         added,
9320         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
9321         float with integer part only,
9322         * src/pic16/main.c (_process_pragma): handle pragma udata access to
9323         place variables in access bank
9324         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
9325         updated sources to reflect recent changes in gen.c
9326
9327 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
9328
9329         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
9330         sources that searched for headers in installation path, now the
9331         device/include/pic16 is used,
9332         * src/pic16/glue.c (pic16glue),
9333         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
9334         .line directives if not in debug mode, this suppresses assembler's
9335         warnings for ignored directives
9336
9337 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
9338
9339         * src/port.h: made reset_regparms prototype void parameter explicit.
9340         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
9341         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
9342         * doc/sdccman.lyx: documented warning disabling and how to use
9343           printf_large to make it print floats.
9344         * device/include/stdbool.h: NEW
9345         * device/lib/_atof.c,
9346         * device/lib/_divuint.c,
9347         * device/lib/_divulong.c,
9348         * device/lib/expf.c,
9349         * device/lib/printf_large.c,
9350         * device/lib/sincosf.c,
9351         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
9352         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
9353           a completely reentrant lib.
9354
9355 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
9356
9357         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
9358         * device/include/pic16/stdio.h: fixed bug with colon
9359
9360 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
9361
9362         * device/include/pic16/stdio.h,
9363         * device/include/pic16/stdlib.h,
9364         * device/include/pic16/math.h: NEW
9365         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
9366         declared as _naked to reduce overhead
9367         * device/lib/Makefile.in (target port-specific-objects-pic16):
9368         changed * to *.* so to ignore the CVS directory,
9369         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
9370         stacked variables back in stack,
9371         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
9372         corruption
9373
9374 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
9375
9376         * .version: bumped version number to 2.4.5
9377         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
9378         * support/Util/SDCCerr.c (messages structure): added entry for
9379         W_POSSBUG2
9380
9381         Large cumulative patch for pic16 port and libraries.
9382         * device/include/pic16/sdcc-lib.h,
9383         * device/include/pic16/stdarg.h,
9384         * device/include/asm/pic16/features.h,
9385         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
9386         * device/include/pic16/float.h: changes reentrant keyword with
9387         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
9388         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
9389         updated target build-libraries to include objects from gptr,
9390         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
9391         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
9392         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
9393         all function headings,
9394         * src/SDCCmain.c: added global parameter userIncDirsSet,
9395         * (parseCmdLine): when option -I is encountered add directory to
9396         userIncDirsSet too,
9397         * src/version.awk: added space between control and long,
9398         * src/pic16/NOTES: added some notes for the port,
9399         * src/pic16/gen.c: added prototype for mov2fp function,
9400         * (fReturnpic16[]): properly named return value registers,
9401         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
9402         * (aopForSym): added code to handle symbols with onStack flag set,
9403         symbols onStack are allocated PTRSIZE bytes,
9404         * (aopFreeAsmop): handles special case where asmops are stack objects,
9405         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
9406         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
9407         added argument lock to trace flaws in allocating temporary registers
9408         when developing port,
9409         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
9410         * (pic16_popRegFromString): reenabled allocating a direct register
9411         from string,
9412         * (assignResultValue): various beautifications,
9413         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
9414         referenced function argument,
9415         * (genIpush): reenabled to allow stacked arguments, handles only
9416         ic->parmPush iCodes,
9417         * (genCall, genPcall): major changes to allow for variable argument
9418         functions, fixed a bug with falsely restoring stack pointer after
9419         returning from call,
9420         * (genFunction): pending code for critical function,
9421         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
9422         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
9423         * (genNearPointerGet): fixed bug with indirect reading, was always
9424         reading from INDF0
9425         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
9426         pointers,
9427         * (genAddrOf): rewrote code to take address of a stacked function parameter
9428         * (genCast): fixed casting to generic pointer type,
9429         * src/pic16/gen.h: added AOP_STA,
9430         * (struct asmop): added field stk,
9431         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
9432         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
9433         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
9434         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
9435         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
9436         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
9437         generic pointers,
9438         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
9439         and library paths,
9440         * (pic16_port structure): generic pointer size is set to 3,
9441         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
9442         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
9443         compiler warning,
9444         * src/pic16/ralloc.c (allocReg): prevent allocating register when
9445         operand is an iTemp,
9446
9447 2004-09-24 Martin Helmling <mh AT octo-soft.de>
9448
9449         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
9450         * debugger/mcs51/simi.c: addapt new syntax of s51
9451
9452 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
9453
9454         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
9455         * src/pic16/pcode.c: commented out some calls to free() in order to
9456         fix bug #989576,
9457
9458 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9459
9460         * src/SDCCicode.h,
9461         * src/SDCCicode.c (isiCodeInFunctionCall),
9462         * src/avr/ralloc.c (selectSpil),
9463         * src/pic/ralloc.c (selectSpil),
9464         * src/pic16/ralloc.c (selectSpil),
9465         * src/ds390/ralloc.c (selectSpil),
9466         * src/hc08/ralloc.c (selectSpil),
9467         * src/xa51/ralloc.c (selectSpil),
9468         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
9469         stack in the middle of a function call sequence (fixes bug #1020268)
9470         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
9471         costs associated with the minimum switch case.
9472
9473 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9474
9475         * src/SDCC.lex: fixed bug #1030549
9476
9477 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9478
9479         * src/SDCCcse.h (struct cseDef),
9480         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
9481         over a function call if the CSE is derived from a symbol whose
9482         address has been taken (fixes bug #1029883)
9483         * support/regression/tests/bug-1029883: a new regression test for
9484         this bug
9485
9486 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9487
9488         * src/hc08/gen.c (emitinline): fixed bug #1029778
9489         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
9490         to a cast object is no longer a syntax error ("fixes" bug #1030006,
9491         and starts toward RFE #905167)
9492
9493 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
9494
9495         * src/pic16/gen.c (mov2f): New function to move an operand to
9496         another without considering if it is a literal or a register,
9497         * (pic16_sameRegs): don't check if they are both AOP_REG,
9498         * (AccRsh): removed andmask=0 lines,
9499         * (genLeftShift): duplicated to be improved in future versions,
9500         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
9501         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
9502         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
9503         * (pic16initMnemonics): added initialization for POC_INFSNZW,
9504         * (insertBankSwitch): fixed inserting banksel directives algorithm
9505         for instructions that follow a skip instruction, this fixes a report
9506         for broken subtraction code generation,
9507         * src/pic16/ralloc.c (deassignLRs): do not free register if current
9508         iCode is a left op, just in case result and right share the same
9509         registers
9510
9511 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9512
9513         * src/hc08/main.c,
9514         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
9515         preservation of HX
9516         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
9517         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
9518         on 2004-09-12; it was buggy
9519
9520 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
9521
9522         * src/SDCCsymt.h: removed RESULT_CHECK
9523         * src/SDCCast.c,
9524         * src/SDCCglue.c,
9525         * src/SDCCval.c,
9526         * src/pic/glue.c,
9527         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
9528
9529 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
9530
9531         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
9532         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
9533         configuration values no more rejected by compiler, they are assigned
9534         to configuration registers with a warning message instead,
9535         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
9536         the for-loop so last conf register is emitted too,
9537         * (_pic16_initPaths): link library libsdcc.lib by default,
9538         * (_hasNativeMulFor): modified test for multiplication according to
9539         Raphael Neider's remarks. Integer multiplication is also done with
9540         support functions,
9541         * device/include/pic16/pic18fregs.h: corrected type error in while
9542         testing and including 18f6720 header file
9543
9544 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
9545
9546         * src/pic16/device.h (pic16_options): removed field use_crt,
9547         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
9548         until an optimization to handle single bits is added,
9549         * (pic16_loadFSR0): moved before genUnpackBits,
9550         * (genAnd): some white lines removed,
9551         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
9552         leave_reset flags in pic16_options when using crt modules,
9553
9554 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
9555
9556         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
9557           for bugs 898889 & 979599. Also used some safer print instructions.
9558
9559 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
9560
9561         * src/pic16/device.h (pic16_options_t): added field use_crt,
9562         crt_name, no_crt,
9563         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
9564         catch a probable future bug,
9565         * src/pic16/gen.c: aopIdx function commented out,
9566         * (genAssign): commented out old code which used aopIdx,
9567         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
9568         code, added if conditionals to take into account the --use-crt
9569         command line options,
9570         * src/pic16/main.c (pic16_optionsTable): added new command line
9571         options, --use-crt= and --no-crt,
9572         * (_pic16_linkEdit): now the proper crt object is added in the
9573         linker command line except than when --no-crt is specified,
9574         * src/pic16/pcode.c,
9575         * src/pic16/pcode.h: added some structures and functions for a new
9576         optimization scheme to compansate for instruction overhead between
9577         same iCodes, this scheme is currently under development and is not
9578         working in any way,
9579         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
9580         to && operator,
9581         * device/lib/pic16/startup/crt0i.c,
9582         * device/lib/pic16/startup/crt0iz.c: added global char variable
9583         __uflags to force the generation of an idata section
9584
9585 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
9586
9587         * doc/Makefile,
9588         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
9589         * doc/sdccman.lyx: updated sdcc version to 2.4.4
9590
9591 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9592
9593         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
9594         Frieder) and clarified the default code optimization mode
9595
9596 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9597
9598         * src/SDCC.lex (doPragma, process_pragma),
9599         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
9600         "opt_code_size", and "opt_code_balanced"
9601         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
9602         regrouped options by category, added support for category headers
9603         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
9604         and "--opt-code-size"
9605         * doc/sdccman.lyx: documented these new options and pragmas
9606         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
9607         preference into account
9608
9609 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
9610
9611         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
9612           geniCodePreDec): Fixed bug 904237 by generating a warning
9613         * src/SDCCerr.h,
9614         * src/SDCCerr.c: added warning W_SIZEOF_VOID
9615
9616 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
9617
9618         * src/pic/device.c : When no max ram set validate full memory range.
9619         * src/pic/pcode.c,
9620         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
9621
9622 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
9623
9624         * device/lib/_gptrget.c,
9625         * device/lib/_gptrput.c: updated comment
9626         * device/lib/calloc.c,
9627         * device/lib/free.c,
9628         * device/lib/malloc.c,
9629         * device/lib/realloc.c: added LGPL, made them reentrant-safe
9630         * src/SDCCcse.c (cseBBlock),
9631         * src/SDCCicode.c (printOperand, geniCodeArray),
9632         * src/SDCCicode.h (struct operand): fixed bug 868103
9633         * support/regression/tests/bug-868103.c: added
9634         * src/SDCCast.c (searchLitOp),
9635         * src/SDCCcse.h (struct cseDef),
9636         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
9637         * src/SDCCicode.h (struct operand),
9638         * src/SDCCsymt.h (struct sym_link),
9639         * src/avr/gen.c (hasInc),
9640         * src/ds390/gen.c (hasInc),
9641         * src/hc08/gen.c (genPlusIncr, hasInc),
9642         * src/mcs51/gen.c (hasInc),
9643         * src/pic16/glue.c (pic16_printIvalChar),
9644         * src/pic16/ralloc.c (regWithIdx),
9645         * src/xa51/gen.c (hasInc) : removed warnings
9646         * src/SDCCast.c (createBlock): added comment ???
9647         * src/hc08/ralloc.c: updated comments
9648
9649 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9650
9651         * doc/sdccman.lyx: updated section on switch statements, added
9652         section about semaphore locking
9653         * doc/Makefile: added option -info for latex2html
9654         * device/lib/_gptrget.c,
9655         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
9656
9657 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
9658
9659         * src/pic/device.h,
9660         * src/pic/device.c,
9661         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
9662          maxram is less than 0x100.
9663
9664 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
9665
9666         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
9667
9668 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9669
9670         * src/port.h,
9671         * src/mcs51/main.c,
9672         * src/ds390/main.c,
9673         * src/z80/main.c,
9674         * src/hc08/main.c,
9675         * src/pic/main.c,
9676         * src/pic16/main.c,
9677         * src/avr/main.c,
9678         * src/xa51/main.c
9679         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
9680         a jump table is the best form for a switch statement, including
9681         automatic insertion of missing cases to make the case range
9682         continuous. Developed in collaboration with Frieder Ferlemann.
9683
9684 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9685
9686         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
9687         accumulator result if it needs sign extension
9688
9689 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9690
9691         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
9692
9693 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9694
9695         * device/lib/gbz80/printf.c,
9696         * device/lib/z80/printf.c: removed define for NULL
9697
9698 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9699
9700         * as/xa51/xa_link.c,
9701         * device/examples/ds390/ow390/ad26.c,
9702         * device/examples/ds390/ow390/cnt1d.c,
9703         * device/examples/ds390/ow390/counter.c,
9704         * device/examples/ds390/ow390/ds2480.h,
9705         * device/examples/ds390/ow390/ds2480ut.c,
9706         * device/examples/ds390/ow390/findtype.c,
9707         * device/examples/ds390/ow390/gethumd.c,
9708         * device/examples/ds390/ow390/owllu.c,
9709         * device/examples/ds390/ow390/ownetu.c,
9710         * device/examples/ds390/ow390/swt12.c,
9711         * device/examples/ds390/ow390/swtloop.c,
9712         * device/examples/ds390/ow390/temp.c,
9713         * device/examples/ds390/ow390/temp10.c,
9714         * device/examples/ds390/ow390/thermo21.c,
9715         * device/examples/ds390/ow390/tinilnk.c,
9716         * device/examples/ds390/ow390/tstfind.c,
9717         * device/examples/serialcomm/windows/serial.cpp,
9718         * device/examples/serialcomm/windows/test_serialcomm.cpp,
9719         * device/include/reg51.h: fixed line endings for cvs
9720
9721 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9722
9723         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
9724         packRegsForAccUse, packRegisters): new accumulator register
9725         packing algorithm
9726         * support/regression/ports/hc08/support.c (_putchar): suppress
9727         warning of unused variable
9728         * src/SDCCicode.c: added SWAP entry to codeTable
9729
9730 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
9731
9732         * device/lib/sprintf.c: forgot to add this file before previous commit
9733
9734 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
9735
9736         * src/pic16/gen.c (genPackBits): added operand right in function
9737         parameters, load result directly if p_type is POINTER (that is
9738         called by genNearPointerSet)
9739         * (genUnPackBits): added operand left in function parameters,
9740         * (genNearPointerGet, genNearPointerSet): prevent the loading of
9741         FSR0 if accessing bitfields,
9742
9743 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
9744
9745         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
9746           _print_format; updated printf, sprintf, vsprintf
9747         * device/include/asm/default/features.h: corrected comment/define
9748         * device/lib/Makefile.in: added sprintf.c
9749         * device/lib/libsdcc.lib: added sprintf module
9750         * device/lib/printf_large.c,
9751         * device/lib/vprintf.c,
9752         * device/lib/sprintf.c: totally refactored printf_large and vprintf
9753           into these 3 files
9754         * support/regression/Makefile: changed ALL_PORTS into a usefull default
9755         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
9756         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
9757           hc08 test
9758         * support/regression/tests/zeropad.c: define idata as data for hc08
9759
9760 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9761
9762         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
9763         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
9764         labels are referenced at least once (even if a reference is not found)
9765         * src/hc08/gen.c (emitcode): set isComment flag for comments
9766         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
9767         loads), rules 6a..6b (optimize jumps to return)
9768
9769 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9770
9771         * device/lib/acosf.c (acosf),
9772         * device/lib/asinf.c (asinf),
9773         * device/lib/atanf.c (atanf),
9774         * device/lib/ceilf.c (ceilf),
9775         * device/lib/cosf.c (cosf),
9776         * device/lib/coshf.c (coshf),
9777         * device/lib/cotf.c (cotf),
9778         * device/lib/fabsf.c (fabsf),
9779         * device/lib/floorf.c (floorf),
9780         * device/lib/log10f.c (log10f),
9781         * device/lib/logf.c (logf),
9782         * device/lib/sinf.c (sinf),
9783         * device/lib/sinhf.c (sinhf),
9784         * device/lib/sqrtf.c (sqrtf),
9785         * device/lib/tanf.c (tanf),
9786         * device/lib/tanhf.c (tanhf),
9787         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
9788         replaced all instances of "reentrant" in the library functions
9789         defined in math.h with this macro.
9790         * support/regression/tests/float_trans.c: reenabled test for hc08
9791
9792 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
9793
9794         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
9795         erroneously deleted
9796
9797 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9798
9799         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
9800         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
9801         multi-byte volatile operands are used
9802         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
9803         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
9804         initialization to area GSINIT0 so that it would always precede
9805         any static initializers in GSINIT
9806         * support/regression/tests/zeropad.c: fixed idata define for hc08
9807         * support/regression/tests/bug-927659.c,
9808         * support/regression/tests/float_trans.c: disabled tests for hc08
9809         pending missing library routines
9810         * .version: increased version number to 2.4.4 - hc08 port now passes
9811         regression tests
9812
9813
9814 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
9815
9816         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
9817         * Makefile.common.in,
9818         * as/Makefile,
9819         * as/hc08/Makefile.in,
9820         * as/mcs51/Makefile.in,
9821         * as/z80/Makefile.in,
9822         * debugger/mcs51/Makefile.in,
9823         * device/include/Makefile.in,
9824         * device/lib/Makefile.in,
9825         * doc/Makefile,
9826         * link/Makefile,
9827         * link/z80/Makefile.in,
9828         * packihx/Makefile.in,
9829         * sim/ucsim/main_in.mk,
9830         * sim/ucsim/avr.src/Makefile.in,
9831         * sim/ucsim/doc/Makefile.in,
9832         * sim/ucsim/gui.src/serio.src/Makefile.in,
9833         * sim/ucsim/hc08.src/Makefile.in,
9834         * sim/ucsim/s51.src/Makefile.in,
9835         * sim/ucsim/xa.src/Makefile.in,
9836         * sim/ucsim/z80.src/Makefile.in,
9837         * src/Makefile.in,
9838         * support/cpp2/Makefile.in,
9839         * support/librarian/Makefile,
9840         * support/makebin/Makefile: added DESTDIR to the install path proposed
9841         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
9842         * doc/sdccman.lyx: added DESTDIR documentation
9843
9844 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
9845
9846         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
9847         instruction for interrupt handlers, use fast returns when returning
9848         from high priority interrupts
9849
9850 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9851
9852         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
9853         code generation
9854         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
9855         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
9856         bugs, ported much of Bernhard's code from mcs51
9857         * src/mcs51/gen.c (genSend),
9858         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
9859         than one when calling a reentrant function
9860         * device/lib/_mullong.c: defined an alternate struct layout for big
9861         endian ports (hc08)
9862
9863 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9864
9865         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
9866         test
9867
9868 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9869
9870         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
9871         are sane and complete before asking the port its prefered parameter
9872         passing method (fixes bug #1017633)
9873         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
9874         and _ret3
9875
9876 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9877
9878         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
9879         problem in bitfields >= 8 bits.
9880
9881 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9882
9883         * src/SDCCsymt.c: undid changes that were not meant to be committed
9884
9885 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9886
9887         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
9888
9889 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9890
9891         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
9892           copied and wrong bit got inverted
9893
9894 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9895
9896         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
9897         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
9898         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
9899         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
9900         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
9901         assignments to bitfields at known addresses
9902         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
9903         reads from bitfields at known addresses
9904         * src/hc08/ralloc.c (packRegisters),
9905         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
9906         genhc08Code): optimize pointer get values used as conditionals
9907         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
9908         and branch
9909
9910 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9911
9912         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
9913         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
9914         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
9915         as conditionals
9916
9917 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9918
9919         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
9920
9921 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9922
9923         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
9924         related problems
9925
9926 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
9927
9928         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
9929
9930 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9931
9932         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
9933         mcs51 port
9934
9935 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
9936
9937         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
9938
9939 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9940
9941         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
9942         cases use more compact code.
9943
9944 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
9945
9946         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
9947
9948 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9949
9950         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
9951
9952 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9953
9954         * src/SDCCsymt.h,
9955         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
9956         parameter of changePointer() from symbol* to sym_link*
9957         * src/SDCCast.c (decorateType): call changePointer() for CAST op
9958         * src/SDCCsymt.c (compareType): void* type is castable to other
9959         pointers, but not necesarily an exact match.
9960         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
9961         is no longer blindly treated as an exact match.
9962         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
9963
9964 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
9965
9966         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
9967
9968 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
9969
9970         * src/pic/gen.c,
9971         * src/pic/pcode.c,
9972         * src/pic/ralloc.h,
9973         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
9974
9975 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
9976
9977         * src/pic/device.c,
9978         * src/pic/device.h,
9979         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
9980
9981 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9982
9983         * src/mcs51/gen.c (emitcode): fixed bug #992819
9984
9985 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
9986
9987         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
9988           there's no need to make it worse
9989
9990 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9991
9992         * src/mcs51/ralloc.c (deassignLR),
9993         * src/ds390/ralloc.c (deassignLR),
9994         * src/hc08/ralloc.c (deassignLR),
9995         * src/z80/ralloc.c (deassignLR),
9996         * src/pic/ralloc.c (deassignLR),
9997         * src/pic16/ralloc.c (deassignLR),
9998         * src/avr/ralloc.c (deassignLR),
9999         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
10000         rlivePoint): fixed another part of bug #971834
10001
10002 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10003
10004         * src/z80/main.c: enabled "critical" keyword
10005         * src/z80/mappings.i,
10006         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
10007         functions (fixes bug #979646)
10008         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
10009
10010 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10011
10012         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
10013           such as c:\mydir.
10014
10015 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
10016
10017         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
10018           doesn't disable too much optimizations
10019
10020 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
10021
10022         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
10023
10024 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
10025
10026         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
10027
10028 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
10029
10030         * src/pic/gen.c tidied up tabs
10031         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
10032         * src/pic/main.c tidied up tabs
10033         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
10034         * src/pic/pcoderegs.c tidied up tabs
10035         * src/pic/ralloc.c tidied up tabs
10036
10037 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
10038
10039         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
10040         to S_FIXED for pic16 port and when symbol is not in level 0,
10041         allocate for S_REGISTER storage class and pic16 port, too,
10042         * src/pic16/device.h: prototype for checkSym,
10043         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
10044         * (pic16_assignConfigWordValue): test the value and the mask to
10045         validate that the value is suitable for the configuration word,
10046         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
10047         collect extern declared symbols, don't emit symbol twice, check
10048         first if symbol is in publics set first,
10049         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
10050         * added command line '--fstack' which enables an experimental
10051         feature for stack access, too buggy to be used yet...
10052         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
10053         * (pic16_allocDirReg): when register has storage class S_REGISTER
10054         allocate in pic16_dynAccessRegs,
10055         * device/include/pic16/pic18f????.h: modified configuration word
10056         naming convention, words started as CONFIG0H but should be CONFIG1H
10057
10058 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
10059
10060         * device/include/mcs51reg.h: fixed bug 970993
10061
10062 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
10063
10064         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
10065         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
10066         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
10067         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
10068         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
10069         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
10070           error/warning numbers,
10071           added function setWarningDisabled()
10072         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
10073         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
10074           _memcmp.c _memmove.c calloc.c realloc.c free.c
10075         * support/regression/tests/malloc.c: added tests for new functionality
10076         * support/regression/tests/zeropad.c: added tests for truncated initializers
10077           and initialized char arrays starting with '\x0'
10078         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
10079
10080 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
10081
10082         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
10083
10084 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10085
10086         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
10087         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
10088         peephole 177.e. Thanks to anonymous
10089
10090 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
10091
10092         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
10093         function isn't used in the source but referenced as a
10094         variable initializer then declare it as extern in .asm file
10095
10096 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
10097
10098         * .version: increased version number to 2.4.3
10099
10100         Adding version extension according to ChangeLog CVS revision
10101         * src/Makefile.in (target all): added dependency 'version.h'
10102         * (rule version.h): added rule to create version.h from ChangeLog,
10103         * (rule dep): added dependency version.h,
10104         * src/version.awk: AWK script to create version.h
10105         * src/SDCCdwarf2.c (dwWriteModule),
10106         * src/SDCCglue.c (initialComments),
10107         * src/SDCCmain.c (printVersionInfo): modified to write after
10108         version string the version extension number,
10109         * src/SDCCutil.c: included "version.h"
10110         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
10111         number,
10112         * src/SDCCutil.h: added prototype for getBuildNumber
10113
10114         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
10115         includeDirsSet, too,
10116         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
10117         const char [] is found in function prototype...
10118
10119         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
10120         moving to WREG with source is already in WREG,
10121         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
10122         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
10123         * (aopForSym): stack'ed symbols are partially supported, added
10124         if-clause to support symbols in FARSPACE,
10125         * (sameRegs): added test for AOP_ACC to see if registers are same,
10126         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
10127         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
10128         * (pic16_popRegFromString): will not allocate a new register if it
10129         doesn't find one by name, bug may have introduced...
10130         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
10131         * (genIpush): revived to use pic16 port's stack,
10132         * (genAddrOf): added incomplete case for stack'ed operand,
10133         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
10134         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
10135         can handle multibyte operands,
10136         * src/pic16/glue.c (pic16_printIval*): some debug info added,
10137         * (pic16initialComments): added message for MPLAB compatibility
10138         mode enabled,
10139         * src/pic16/main.h: prototype for pic16_mplab_comp,
10140         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
10141         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
10142         * (_pic16_linkEdit): NEW, handles link stage, transferred here
10143         because of increased complexity of procedure,
10144         * (_process_pragma): stack pragma changed to format 'stack pos len',
10145         emit symbol '_stack_end' to conform with gplink,
10146         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
10147         to search for register,
10148         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
10149         PO_GPR_REGISTER,
10150         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
10151         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
10152         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
10153         case for PO_GPR_REGISTER,
10154         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
10155         dies, the new era is ahead !...
10156         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
10157         pic16_dynInternalRegs,
10158         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
10159         * (pic16_allocDirReg): minor optimizations and bug fixes,
10160         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
10161
10162         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
10163         load stack and frame pointer with address of 'stack_end' symbol
10164
10165 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
10166
10167         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
10168         without source code but only variable initializers
10169
10170 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
10171
10172         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
10173         external are not declared as extern to reduce overhead while linking
10174
10175 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
10176
10177         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
10178
10179 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
10180
10181         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
10182           Yee Keat for the patch
10183         * src/SDCCast.c (decorateType): fixed bug #979599
10184         * src/ds390/gen.h: removed local fReturnSizeDS390
10185         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
10186         * src/ds390/gen.c (genAnd, genOr, genXor),
10187         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
10188
10189 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
10190
10191         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
10192         add relFilesSet to $3, manipulate $2 to handle linking of object
10193         files without source files in command line,
10194         * device/include/pic16 (all headers): added ID location macros,
10195         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
10196         entries for ID location bytes,
10197         * (pic16_assignIdByteValue): NEW,
10198         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
10199         added field dumpcalltree to pic16_options_t,
10200         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
10201         is used instead of pic16_Gstack_base_addr, check if (ifx) before
10202         emitting rFalseIfx label after check_carry label,
10203         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
10204         pic16_emitDIRegs), NEW
10205         * (pic16glue): dump .calltree file when option --calltree found,
10206         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
10207         * (_pic16_genAssemblerPreamble): emit ID locations after
10208         configuration registers,
10209         * (pic16_linkCmd): modifications of the link command,
10210         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
10211         * (pic16_pCodeInitRegisters): don't init stack registers,
10212         * (pic16_findPrevInstruction): fixed bug,
10213         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
10214         bug with immediate registers,
10215         * (buildCallTree): traces stack push and pop,
10216         * (pct2): dump also stack usage for each function,
10217         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
10218         * (pic16_allocDirReg): various modifications,
10219         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
10220         fixed to 1,
10221
10222 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
10223
10224         * src/pic16/pcode.c: removed buggy double colon
10225
10226 2004-07-01 Borut Razem <borut.razem AT siol.net>
10227
10228         * support/scripts/sdcc.nsi: added include/pic16 to setup
10229
10230 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
10231
10232         * device/lib/Makefile.in: fixed bug in target objects-pic16,
10233         * device/lib/pic16/Makefile: prefixed with dash (-) command under
10234         target 'clean',
10235         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
10236         specific command line arguments. Also added sample lkr script
10237         for placing a variable at a specific memory bank.
10238         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
10239         at a specific memory bank,
10240         * (pic16_dump_isection): fixed bug which caused string literals to
10241         be omitted when dumping idata section,
10242         * (pic16_groupRegistersInSection): added code to handle registers
10243         in specific memory banks,
10244         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
10245         public, all references are renamed too,
10246         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
10247         AOP_DPTR2,
10248         * (pic16_storeForReturn): added case to handle when dest is WREG,
10249         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
10250         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
10251         pic16_rel_udata, check to see if that register is marked as being
10252         a member of a specific memory bank,
10253         * (pic16_printIvalCharPtr): added code to add string literals either
10254         to code or the idata sections,
10255         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
10256         also accept the 'udata' pragma,
10257         * src/pic16/main.h: new structure types sectName and sectSym
10258         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
10259         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
10260         * (pic16_findPrevInstruction): fixed, it returned nothing,
10261         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
10262         instruction combinations,
10263         * (pic16_FixRegisterBanking): heavily reorganised,
10264         * (pic16_AnalyzeBanking): if generating banksel directives is
10265         disabled, then don't call FixRegisterBanking at all,
10266         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
10267         completely removed,
10268         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
10269
10270 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
10271
10272         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
10273         Phuah Yee Keat <yk.phuah AT nestac.com>
10274
10275 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
10276
10277         * src/pic16/glue.c (pic16createInterruptVect): function now emits
10278         correctly the IVT even if it is relocated to some other location
10279
10280 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
10281
10282         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
10283         * device/include/pic16/pic18f2220.h: NEW,
10284         * device/lib/pic16/libdev/pic18f2220.c: NEW,
10285         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
10286         * src/pic16/device.c (struct Pics16): added info for 18f2220,
10287         * src/pic16/device.h (struct pic16_options): added ivt_loc and
10288         nodefaultlibs, ivt_loc is the location of the interrupt vector
10289         table, and nodefaultlibs signs that default libraries should not be
10290         linked in link stage,
10291         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
10292         according to --ivt-loc argument,
10293         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
10294         when pragma stack is found,
10295
10296 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10297
10298         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
10299         256 (range check), 257 (do while), 258.a-f (bit banging
10300         f.e. on 3-wire SPI bus)
10301
10302 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10303
10304         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
10305         variables used exclusively within a loop
10306
10307 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
10308
10309         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
10310
10311 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10312
10313         * src/SDCClrange.c (computeClash): fixed bug #971834
10314
10315 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10316
10317         * src/mcs51/gen.c (genCmp): fixed bug #975903
10318         * src/hc08/gen.c (operandsEqu),
10319         * src/ds390/gen.c (operandsEqu),
10320         * src/z80/gen.c (operandsEqu),
10321         * src/pic/gen.c (operandsEqu),
10322         * src/pic16/gen.c (operandsEqu),
10323         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
10324         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
10325
10326 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10327
10328         * src/SDCCcse.c (cseBBlock): fixed bug #966963
10329
10330 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
10331
10332         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
10333         default case in switch statement,
10334         * glue.c (pic16_initPointer): expr is initialised via decoarteType
10335         to eliminate problem with initialisation of pointers, but problem
10336         still exists,
10337         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
10338         * (emitStaticSegment): removed various lines emitting debug info,
10339         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
10340         added processor registers for utilizing EEPROM,
10341         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
10342         configurable and set 8
10343
10344 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
10345
10346         * .version: increased version number to 2.4.2,
10347
10348         Cumulative patch for pic16 port
10349         * src/pic16/device.c: changed scheme to dump initial values for
10350         variables in idata segment, all print_idata* functions were removed,
10351         now the pic16_printIval* will be called,
10352         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
10353         * _pic16_printPointerType, pic16_printPointerType,
10354         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
10355         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
10356         NEW, similar to the respective functions in SDCCglue.c,
10357         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
10358         way, emitting hex bytes,
10359         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
10360
10361 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10362
10363         * src/avr/ralloc.c (serialRegAssign),
10364         * src/xa51/ralloc.c (serialRegAssign),
10365         * src/pic/ralloc.c (serialRegAssign),
10366         * src/pic16/ralloc.c (serialRegAssign),
10367         * src/hc08/ralloc.c (serialRegAssign),
10368         * src/z80/ralloc.c (serialRegAssign),
10369         * src/ds390/ralloc.c (serialRegAssign),
10370         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
10371
10372 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10373
10374         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
10375         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
10376
10377 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
10378
10379         Cumulative patch for pic16 port:
10380         * src/pic16/device.h (typedef PIC16_device) modified fields for
10381         defining microcontrollers,
10382         * src/pic16/device.c: added new info for all devices in Pics16 array,
10383         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
10384         to be optimised out by the pCode optimiser,
10385         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
10386         specially, bug reported by G.M. Gallant,
10387         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
10388         as force'd so that cannot be optimised out by pCode optimiser,
10389         * src/pic16/pcode.c,
10390         * src/pic16/pcodepeeph.c,
10391         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
10392         they are disabled by default, but can be enabled explicit with
10393         command argument --denable-peeps, for testing,
10394         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
10395         --pomit-ivt in COMPILE_FLAGS
10396
10397 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
10398
10399         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
10400           compilation on MSVC
10401
10402 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
10403
10404         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
10405
10406 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10407
10408         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
10409         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
10410
10411 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
10412
10413         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
10414         would only assign 0x300001 register.
10415
10416 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
10417
10418         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
10419         in COMPILE_FLAGS. Thanks to G. Gallant for report.
10420
10421 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10422
10423         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
10424         for ds80c400
10425         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
10426         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
10427         added peephole 254 (left shift), 255 (jump table)
10428
10429 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
10430
10431         * device/lib/Makefile.in: removed comment line with model-pic16,
10432         * (target port-specific-objects-pic16): the libraries and objects
10433         are copied to the build directory form the device/lib/pic16/bin
10434         directory
10435
10436         Cumulative patch concerning pic16 port:
10437         * library directory has been re-organized,
10438         * added support for PIC18F1220,
10439         * added headers and library sources for chips 18f1220,18f6520,
10440         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
10441
10442         * configuration registers setting has changed, now each supported
10443         device has a complete description of the registers it uses,
10444         * all initialisations are moved to idata sections, these section
10445         can be absolute or relocatable,
10446         * fixed initialisation of codespace variables,
10447         * fixed warning about PCLATU and gpsim,
10448         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
10449         * (genAssign): use table reads when assigning from variables in codespace,
10450         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
10451         char/int variables placed in codespace,
10452         * (pic16_emitConfigRegs): NEW, emits a list with configuration
10453         registers set in .asm file, no need for --pomit-config-words anymore,
10454         * (pic16glue): some 8051 legacy segments are commented out
10455         (to be removed completely),
10456         * added support for alternative assembler and linker with --asm=
10457         and --link= command line arguments,
10458         * peepholes are disabled automatically in the port, no need to
10459         specify on command line,
10460         * port supports natively char/int/long multiplication, but converts
10461         all divisions to support functions,
10462         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
10463         to the file set in variable $2,
10464         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
10465         strings in ASCII format and not in hex,
10466         * ralloc.c (serialRegAssign): added a triplet of conditional calls
10467         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
10468         allocate proper register if iCodes aren't temporary,
10469
10470 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
10471
10472         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
10473
10474 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
10475
10476         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
10477         is commented out
10478
10479 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10480
10481         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
10482         computed address is reused
10483         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
10484         multi-byte bitfields
10485
10486 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
10487
10488         * src/z80/gen.c: (genArrayInit): must check for pointers too
10489
10490 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
10491
10492         * support/regression/tests/zeropad.c: never meant to commit the
10493           nestedstruct test: removed, added check for GCC version
10494
10495 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
10496
10497         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
10498         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
10499         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
10500           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
10501           bugs 928906 and 954082 half-empty initializers
10502         * src/SDCCsymt.h,
10503         * src/SDCCsymt.c (getAllocSize): added for above fix
10504         * src/z80/gen.c (genArrayInit): fixed bug 741044
10505         * support/regression/tests/zeropad.c: added tests
10506
10507 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
10508
10509         * src/pic16/device.c (pic16_dump_section): corrected bug which
10510         caused some symbols of the libraries to be misplaced
10511
10512 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
10513
10514         * src/pic16/glue.c,
10515         * src/pic16/ralloc.h,
10516         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
10517         to fix conflict with pic port
10518
10519 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
10520
10521         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
10522         externs configuration variables,
10523         * src/pic16/ralloc.h,
10524         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
10525         prototype in header, commented out some debug messages
10526
10527 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
10528
10529         * src/pic16/glue.c,
10530         * src/pic16/main.c,
10531         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
10532         for gpasm COFF object generation. Thanks to D. Hawkins for
10533         his patch info
10534
10535 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10536
10537         * src/ds390/main.c,
10538         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
10539         Brock for spotting this)
10540         * src/ds390/gen.c (genEndFunction),
10541         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
10542         interrupt handler and critical. Disable push/pop optimizations when
10543         peephole optimizations disabled.
10544
10545 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
10546
10547         Updated pic16 library sources and headers.
10548         * device/lib/pic16/pic18f*/ ,
10549         * device/include/pic16/*.h: modified to handle structured SFR
10550         definitions
10551
10552 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
10553
10554         * src/port.h (PORT structure): added hook initPaths, now each
10555         port can declare its own default search paths,
10556         which can been seen with the --print-search-dirs option,
10557         see pic16 port for example,
10558         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
10559         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
10560         * (doPrintSearchDirs): NEW, replaces in a central manner the
10561         printing of search dirs which was split in set*Paths functions,
10562         * (main): added call to port->initPaths and doPrintSearchDirs,
10563         * src/avr/main.c,
10564         * src/ds390/main.c,
10565         * src/hc08/main.c,
10566         * src/izt/i186.c,
10567         * src/izt/tlcs900h.c,
10568         * src/mcs51/main.c,
10569         * src/pic/main.c,
10570         * src/pic16/main.c: modified port structures to reflect addition of
10571         initPaths hook,
10572
10573         * src/pic16/device.c (regCompare): registers are finally sorted by name,
10574         * (pic16_dump_section): for registers in same address reserve memory once,
10575         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
10576         to no_banksel,
10577         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
10578         result is greater in size than right or left,
10579         * (pic16_genUMult8X8_8): there are some cases where the result can
10580         be 16 bits size, so handle these,
10581         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
10582         * (pic16_outBitC): modified to emit pcodes,
10583         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
10584         or not,
10585         * (genDivOneByte): implemented algorithm to divide 8-bits,
10586         * (genCmp): uncommented goto, but issues still exist,
10587         * (genAnd): fixed a bug with variables >8bits,
10588         * (genPackBits): optimization added that uses BCF/BSF to change a
10589         single bit,
10590         * (genAssign): fixed bug when assigning floating point literals,
10591         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
10592         __sdcc_gsinit_startup label,
10593         * src/pic16/main.c (_pic16_init): removed search directory
10594         initialisations,
10595         * (_pic16_initPaths): NEW, used to initialise search directories,
10596         * (_hasNativeMulFor): support functions for all except char/int
10597         multiplication, and char division,
10598         * (PIC16_port struct): modified entry for native mul support,
10599         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
10600         no_banksel option,
10601         * (buildCallTree): call to register_usage is ifdef'ed out,
10602
10603 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10604
10605         * device/include/string.h: applied Stas Sergeev's patch to make this
10606         header file compatible with the preprocessor -Wundef option
10607         * src/SDCCmain.c (main): abort compilation if preprocessor reports
10608         failure (fixes bug #941458)
10609
10610 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10611
10612         * src/SDCCopt.c (killDeadCode): fixed bug #907733
10613         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
10614         that the variable, not the function, should be static
10615         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
10616         to be consistent with non-literal case
10617
10618 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10619
10620         * src/SDCCast.c (isConformingBody): fixed bug #949967
10621         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
10622         convilong): fixed bug #952086
10623
10624 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10625
10626         * src/SDCCmem.c (allocVariables): fixed bug #955321
10627
10628 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10629
10630         * src/hc08/main.c (_hc08_genAssemblerEnd),
10631         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
10632         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
10633         completely eliminated the use of a temporary file
10634         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
10635         when more than one file linked
10636         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
10637
10638 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10639
10640         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
10641         which fixes bug #543481
10642         * support/regression/tests/bug-751703.c: fixed comments left from a
10643         cut and paste error
10644         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
10645         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
10646         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
10647         scopes
10648         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
10649         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
10650         are now changed to underscores in moduleName
10651
10652 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10653
10654         * as/mcs51/lkmem.c: better fix for bug #954173
10655
10656 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
10657         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10658
10659         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
10660         * device/include/c8051f000.h,
10661         * device/include/c8051f120.h,
10662         * device/include/c8051f300.h,
10663         * device/include/c8051f310.h,
10664         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
10665         PWM16) and detab'ed
10666
10667 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10668
10669         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
10670         and mailing lists, doc'ed --no-peep-comments, removed reference
10671         to knoppix (newest version has no LyX/LaTeX), other minor changes
10672         * src/SDCCglue.c (glue): save 2 bytes stack space with
10673         option --main-return. The ljmp could probably be avoided too
10674
10675 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10676
10677         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
10678
10679 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10680
10681         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
10682         * src/SDCCopt.c (isLocalWithoutDef),
10683         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
10684         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
10685         (credit to Maarten Brock for patch #949363, on which this is based)
10686         * support/regression/tests/bug-751703.c: some test cases of extern used
10687         within inner scopes.
10688
10689 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10690
10691         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
10692         SPEC_STRUCT
10693         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
10694         struct definitions
10695         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
10696         dwWriteLabel): fix to create valid debugger symbols even when
10697         the module name has non-alphanumeric symbols in it
10698         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
10699         when a variable's allocation has been optimized away
10700
10701
10702 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10703
10704         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
10705         * src/hc08/main.c,
10706         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
10707         * src/mcs51/main.c,
10708         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
10709         * src/ds390/main.c,
10710         * src/z80/gen.c (z80_emitDebuggerSymbol),
10711         * src/z80/main.c,
10712         * src/pic/gen.c (pic14_emitDebuggerSymbol),
10713         * src/pic/main.c,
10714         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
10715         * src/pic16/main.c,
10716         * src/avr/gen.c (avr_emitDebuggerSymbol),
10717         * src/avr/main.c,
10718         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
10719         * src/xa51/main.c,
10720         * src/SDCCdebug.c (emitDebuggerSymbol),
10721         * src/SDCCdebug.h,
10722         * src/port.h: added a debugger struct to the port struct. Added a
10723         callback for defining debugger symbols
10724
10725         * src/SDCCast.c (createLabel),
10726         * src/SDCC.y (labeled_statement): mark all compiler generated labels
10727         with isitmp = 1
10728         * src/SDCCicode.h,
10729         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
10730         iCode back to the ast for the function
10731
10732         * src/hc08/ralloc.c (hc08_assignRegisters),
10733         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
10734         unneeded fields from the regs struct.
10735         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
10736         pushReg() & pullReg() functions instead of emitcode()
10737
10738         * src/hc08/gen.c (genLabel, genhc08Code),
10739         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
10740
10741         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
10742         debugger hooks
10743
10744         * src/hc08/gen.c (genEndFunction, genhc08Code),
10745         * src/hc08/gen.h,
10746         * src/mcs51/gen.c (genEndFunction, gen51Code),
10747         * src/mcs51/gen.h,
10748         * src/ds390/gen.c (genEndFunction, gen390Code),
10749         * src/ds390/gen.h,
10750         * src/z80/gen.c (genEndFunction, genZ80Code),
10751         * src/z80/gen.h,
10752         * src/z80/z80.h,
10753         * src/pic/gen.c (genEndFunction, genpic14Code),
10754         * src/pic/gen.h,
10755         * src/pic16/gen.c (genEndFunction, genpic16Code),
10756         * src/pic16/gen.h,
10757         * src/avr/gen.c (genEndFunction, genAVRCode),
10758         * src/avr/gen.h,
10759         * src/xa51/gen.c (genEndFunction, genXA51Code),
10760         * src/xa51/gen.h,
10761         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
10762         specific code to cdbFile.c and out of the backend code generators
10763
10764         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
10765         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
10766         starting address is now 0
10767
10768         * as/hc08/asm.h,
10769         * as/hc08/m08pst.c,
10770         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
10771         assembler directive for DWARF support
10772         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
10773
10774         * src/src.dsp,
10775         * src/Makefile.in,
10776         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
10777
10778 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10779
10780         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
10781         and inappropriate peephole optimization in jump tables
10782
10783 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10784
10785         * as/hc08/m08pst.c,
10786         * src/SDCCglue.c: sdccopt works for the hc08 port now
10787
10788 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
10789
10790         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
10791
10792 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10793
10794         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
10795
10796 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10797
10798         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
10799         rules
10800         * src/SDCCmain.c,
10801         * src/SDCCglobl.h,
10802         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
10803         comments from the peephole optimizer replacement rules
10804         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
10805         symbols
10806         * src/SDCCcse.c (updateSpillLocation),
10807         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
10808         equivalents
10809         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
10810         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
10811         objects far pointers
10812
10813 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10814
10815         * src/SDCCsymt.h: a missing part of my last change
10816         * src/pic/ralloc.c (regTypeNum),
10817         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
10818
10819 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10820
10821         * src/SDCCicode.h,
10822         * src/SDCCicode.c (aggrToPtrDclType),
10823         * src/SDCCptropt.h,
10824         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
10825         ptrPseudoSymConvert),
10826         * src/pic/ralloc.c (regTypeNum),
10827         * src/pic16/ralloc.c (regTypeNum),
10828         * src/hc08/ralloc.c (regTypeNum),
10829         * src/ds390/ralloc.c (regTypeNum),
10830         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
10831         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
10832
10833 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10834
10835         * link/z80/lkmain.c (afile),
10836         * as/hc08/lkmain.c (afile),
10837         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
10838         prevent a pointer problem when a filename has no directory and
10839         no extension specified.
10840
10841 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10842
10843         * link/z80/lkmain.c (afile): allow periods in directory names
10844         * link/z80/lkmain.c (afile),
10845         * as/mcs51/lkmain.c (afile),
10846         * as/hc08/lkmain.c (afile): allow linker script file to have an
10847         extension other than ".lnk"
10848         * link/z80/lklex.c (getfid),
10849         * link/z80/lkmain.c (parse),
10850         * as/mcs51/lklex.c (getfid),
10851         * as/mcs51/lkmain.c (parse),
10852         * as/hc08/lklex.c (getfid),
10853         * as/hc08/lkmain.c (parse): Support comments in the linker script
10854         file on lines by themselves and after filenames
10855
10856 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10857
10858         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
10859
10860 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10861
10862         * src/z80/peeph-z80.def: removed some peephole rules that don't
10863         work with multibyte arithmetic (fixed bug #937126)
10864         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
10865         to registers and not global variables
10866         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
10867         geniCodePreInc, geniCodePostDec, geniCodePreDec,
10868         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
10869         checking for assignments not internally generated (fixed bug #931895)
10870         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
10871         structure member (fixed bug #930072)
10872
10873 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10874
10875         * src/SDCCmain.c (linkEdit),
10876         * src/hc08/main.c (_hc08_parseOptions),
10877         * as/hc08/Makefile.in,
10878         * as/hc08/aslink.h,
10879         * as/hc08/asm.h,
10880         * as/hc08/m08pst.c,
10881         * as/hc08/lkrloc.c (relr, rele),
10882         * as/hc08/lkarea.c (lnkarea)
10883         * as/hc08/lkmain.c (afile, parse),
10884         * as/hc08/lkelf.c: support for ELF output
10885         * as/hc08/lks19.c (s19),
10886         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
10887
10888 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10889
10890         * as/mcs51/lkihx.c: Fixed bug #899105.
10891
10892 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10893
10894         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
10895         .dsp files from Unix to DOS.
10896
10897 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10898
10899         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
10900         function pointers; we have been compliant for several months now.
10901         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
10902         change that was accidently commented out
10903         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
10904         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
10905         bug #922319
10906
10907 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10908
10909         * src/hc08/gen.c: output of all of the internal debugging information
10910         is now controlled by the D() macro; it is disabled by default
10911
10912 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10913
10914         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
10915         harder to keep the same registers during a CAST iCode
10916         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
10917         long via int can be done in a single cast, if the signedness is
10918         correct.
10919         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
10920         putchar() in tinibios.c in ds390's library
10921
10922 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
10923
10924         * src/SDCCast.c (decorateType): fixed bug #898889,
10925         cast result of a literal complement too
10926         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
10927         fixed check for bitfields
10928
10929 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
10930
10931         * src/SDCCicode.c (geniCodeLogic): made it static,
10932         (geniCodeLogicAndOr): added in order to fix bug #905492,
10933         (ast2iCode): fixed bug #905492
10934         * support/regression/tests/bug-905492.c: added
10935         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
10936         (processParms): fixed bug #927659: don't copy parms, this will clear
10937         decorated flag
10938         * support/regression/tests/bug-927659.c: added
10939
10940 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
10941
10942         * src/SDCCast.c (addCast): don't cast float to char
10943         * device/lib/libsdcc.lib: added _memmove
10944
10945 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
10946
10947         * device/lib/large/Makefile: fixed parallel execution by
10948         replacing `make` by `$(MAKE)`
10949
10950 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10951
10952         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
10953         offsets (fixes bug #923936)
10954
10955 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
10956
10957         * device/lib/small/Makefile: fixed parallel execution by
10958         replacing `make` by `$(MAKE)`
10959
10960 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
10961
10962         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
10963
10964 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
10965
10966         * src/pic/gen.c (genCpl): multi-byte complements were not working.
10967         * src/regression/Makefile: Regression test was not running.
10968
10969 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
10970
10971         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
10972         complement if possible
10973         * src/SDCCval.c (valComplement),
10974         * src/SDCCicode.c (operandOperation): fixed complement of literal
10975         * support/regression/tests/onebyte.c (testComplement): added
10976
10977 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
10978
10979         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
10980         return an optimized tree; actually replace actParm with the new tree
10981         * src/SDCCast.h: added some parantheses to remove side effects
10982         * support/regression/tests/bug-920866.c
10983
10984 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
10985         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
10986         Bit operands were not being handled properly in the pic14 port.
10987         (now src/regression/add.c passes again).
10988
10989 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10990
10991         * src/SDCC.y (labeled_statement): case and default no longer require
10992         a following statement (RFE #893037)
10993
10994 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10995
10996         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
10997         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
10998         disabled (fixes bug #916294)
10999         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
11000         "mov a,acc"; patch provided by Lenny Story
11001         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
11002
11003 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11004
11005         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
11006         functions
11007         * src/ds390/gen.c (genFunction, genEndFunction),
11008         * src/ds390/ralloc.c (ds390_assignRegisters),
11009         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
11010         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
11011         pushed if there are parameters passed on the stack. Also, a cleaner
11012         way to decide if r0/r1 should be pushed/popped. (Together they fix
11013         bug #918693)
11014
11015 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11016
11017         * doc/sdccman.lyx,
11018         * device/lib/mcs51/crtpagesfr.asm,
11019         * device/lib/mcs51/crtxinit.asm,
11020         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
11021         to avoid confusion with Si Lab's SFRPAGE register.
11022
11023 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11024
11025         * src/SDCCglue.c (emitMaps): allow public sfr variables
11026         * src/SDCCglue.c (initialComments): include compiler build date
11027         with compiler version and put the timestamp of the generated
11028         assembly file on a serperate line to be less confusing.
11029         * src/port.h: added genInitStartup hook
11030         * src/avr/main.c,
11031         * src/ds390/main.c,
11032         * src/hc08/main.c,
11033         * src/pic/main.c,
11034         * src/pic16/main.c,
11035         * src/xa51/main.c,
11036         * src/z80/main.c: genInitStartup initialize as NULL (default to
11037         historical behaviour)
11038         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
11039         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
11040         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
11041         library instead of hard coding it into the compiler.
11042         * support/regression/ports/mcs51-stack-auto/spec.mk,
11043         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
11044         * device/lib/mcs51/Makefile,
11045         * device/lib/small/Makefile,
11046         * device/lib/large/Makefile,
11047         * device/lib/mcs51/crtpagesfr.asm,
11048         * device/lib/mcs51/crtstart.asm,
11049         * device/lib/mcs51/crtxclear.asm,
11050         * device/lib/mcs51/crtxinit.asm,
11051         * device/lib/mcs51/crtclear.asm,
11052         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
11053         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
11054         and into user configurable files.
11055         * device/lib/clean.mk: clean mcs51 directory too
11056         * support/regression/tests/longlit.c: added static to T1 declaration
11057         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
11058         accesses in the initialization code
11059
11060 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11061
11062         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
11063         OSCTRIMVAL as noted in bug #916008
11064
11065 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11066
11067         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
11068         in loops with multiple exits (reported as incorrect registers
11069         used by Martin Helmling in Sdcc-user list)
11070
11071 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11072
11073         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
11074         made ds390 register extensions look less like error messages
11075
11076 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11077
11078         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
11079         reported by Adam Wozniak in Sdcc-user list
11080
11081 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
11082
11083         * src/SDCCast.c (decorateType): fixed with bug and promotion in
11084         arithmetic optimizations, added debug output
11085
11086 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
11087
11088         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
11089         * sdcc.spec: updated and split sdcc into 3 rpms
11090         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
11091         needed for literals of LEFT_OP and '+'
11092         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
11093         introduced RESULT_TYPE_NOPROM
11094         (geniCodeMultiply): fixed logic for decision if mul is optimized to
11095         left shift
11096         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
11097         limited promotion to int only for '*'
11098         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
11099
11100 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
11101
11102         * src/pic16/gen.c (genSkip),
11103         (genc16bit2lit), (gencjneshort): commented out
11104         (is_LitOp): new helper function, checks operand type
11105         (genCmpEq): rewritten
11106
11107 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
11108
11109         * support/regression/tests/bug-908454.c: added
11110
11111 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
11112
11113         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
11114         * src/SDCCicode.c (usualBinaryConversions): op needs int type
11115         (geniCodeCast): cosmetic, don't preserve bit storage class
11116         (geniCodeLeftShift): added promotion
11117         (geniCodeLogic): fixed regression
11118         * src/SDCCsymt.c (computeTypeOr): accept bits too
11119         (compareType): 2nd part of fix for bug #908454, needed for bitfields
11120
11121 2004-03-07  Borut Razem <borut.razem AT siol.net>
11122
11123         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
11124
11125 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
11126
11127         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
11128         version of pic16_genPackRegisters which does not check if ic is a
11129         CAST operator,
11130         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
11131         function cause string1.c regression test fails
11132
11133 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
11134
11135         * sim/ucsim/configure.in,
11136         * sim/ucsim/configure,
11137         * sim/ucsim/doc/Makefile.in: use docdir
11138         * src/SDCC.y: fixed sbit atrributes
11139         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
11140         * src/SDCCast.c (decorateType): |^& need special promotion handling
11141         * src/SDCCast.h,
11142         * src/SDCCsymt.h: moved definition of RESULT_TYPE
11143         * src/SDCCsymt.h (computeType),
11144         * src/SDCCicode.c: computeType() needs op
11145         * src/SDCCsymt.c (checkTypeSanity),
11146         * doc/sddman.lyx: "plain" bitfields are unsigned
11147         * src/SDCCsymt.c (computeTypeOr): added
11148         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
11149         |^& ops
11150         * src/SDCCval.c (val*): computeType() needs op
11151         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
11152         * support/regression/tests/onebyte.c: added tests for |^&
11153
11154 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
11155
11156         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
11157         for writing icode into asm output.
11158
11159 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
11160
11161         * src/pic16/device.c: added some debug lines enabled
11162         with macro DEBUG_CHECK,
11163         * src/pic16/genarith.c: more debug in genPlus,
11164         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
11165         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
11166         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
11167         * (aopForSym): onStack symbols are re-placed in data memspace,
11168         and onStack flag is cleared,
11169         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
11170         copy temporary pcodeop,
11171         * (genPcall): added warning for not updating PCLATU,
11172         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
11173         always true for pic16 port,
11174         * (genMultOneWord): NEW, supports integer multiplication,
11175         * (genMult): modified to call genMultOneWord,
11176         * (ifxForOp): added warning when return NULL,
11177         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
11178         flag is set before call to operandFromSymbol for implicit
11179         added structures,
11180         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
11181         options.intlong_rent are set by default,
11182         * (_hasNativeMulFor): modified to allow port generation of integer
11183         multiplication,
11184         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
11185         set regtype to REG_SFR for all registers, restricting seting the
11186         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
11187
11188 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11189
11190         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
11191         more than 500 times in the regression tests
11192
11193 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11194
11195         * support/Util/SDCCerr.h,
11196         * support/Util/SDCCerr.c,
11197         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
11198         enumerator_list),
11199         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
11200         for symbol conflicts.
11201         * support/valdiags/tests/enum.c,
11202         * support/valdiags/tests/tentdecl.c,
11203         * support/valdiags/tests/struct.c: expect possible error messages
11204         referring to original symbol definitions.
11205         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
11206         * src/SDCCsymt.h,
11207         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
11208
11209 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
11210
11211         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
11212
11213 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
11214
11215         * src/pic16/ralloc.c (newReg): fixed bug #908929
11216
11217 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11218
11219         * src/ds390/gen.c: added missing #include "main.h"
11220
11221 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
11222
11223         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
11224         checking if symbol is already in set,
11225         * src/pic16/device.h: prototype for checkAddSym,
11226         * src/pic16/gen.c: (_G): added entry interruptvector,
11227         * (assignResultValue): removed some commented out lines,
11228         * (genFunction): check for ISR via sym->type, absolute section for
11229         interrupt code is created via a new pBlock, the goto instruction is
11230         placed now correctly at the interrupt vector position, changed all
11231         references from ivec to _G.interruptvector,
11232         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
11233         is the interrupt is a high priority one, same for return from ISR,
11234         * src/pic16/glue.c: changed all calls of addSetHead for publics and
11235         externs to calls of checkAddSym,
11236         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
11237         pic16_pcode_verbose flag is set,
11238         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
11239         * src/pic16/pcoderegs.c: message about how many registers are saved
11240         will only be emitted if pic16_pcode_verbose flag is set,
11241
11242 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11243
11244         * src/ds390/ralloc.h,
11245         * src/ds390/ralloc.c (ds390_regWithIdx),
11246         * src/ds390/gen.c (emitcode),
11247         * src/ds390/main.h,
11248         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
11249         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
11250         ds390operandCompare, getRegsRead, getRegsWritten,
11251         initializeAsmLineNode): customized instruction size calculation for
11252         ds390, started basis for some register optimizations
11253         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
11254         corresponding assembly output
11255         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
11256         missing push/pop of r0/r1. Optimized push/pops
11257
11258 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11259
11260         * src/mcs51/main.c (instructionSize): fixed ACALL size
11261         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
11262
11263 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
11264
11265         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
11266         the sorting of rlist with NULL elements
11267         * (print_idataType, print_idata): NEW to create idata sections
11268         * src/pic16/device.h: idataSymSet new variable
11269         * src/pic16/gen.c (genFunction): fixed some bugs in string
11270         comparing, improved the absolute section creation for ISRs,
11271         added FSR0L/FSR0H in registers that are saved in an ISR,
11272         * (genInline): fixed the processing of inline snippets,
11273         now they undergo no process by the peephole optimizer
11274         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
11275         are placed in idataSymSet,
11276         * (pic16emitStaticSeg): extern symbols are added in externs,
11277         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
11278         switching when aboslute variables are placed in access bank memory
11279         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
11280         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
11281         commented out with #if,
11282         * (pic16_packRegisters): reintroduce the check for CAST because some
11283         symbols are not correctly handled,
11284         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
11285         pCodeInstruction instead of pCode,
11286         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
11287         pCodeAsmDir definition,
11288         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
11289         directive, then the argument directive is emitted without the leading
11290         tab, hack for inline labels which must be in the first column,
11291         * (compareLabel,pic16_findNextInstruction),
11292         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
11293         * (insertBankSwitch): modified for the new pCodeAsmDir,
11294
11295 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11296         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
11297
11298         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
11299         instance,
11300         * (pushSide): commented out with #if,
11301         * (assignResultValue): fixed some typos in saving
11302         registers,
11303         * (genPcall): FIXED and sync'ed with genCall,
11304         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
11305         * (genNearPointerGet): fixed to handle some more cases,
11306         implementation scheme via table reads,
11307         * (genConstPointerGet): modified to access code memory correct,
11308         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
11309         and improved to handle some cases
11310         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
11311         instead of "RETLW" for init data
11312         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
11313         not IN_DIRSPACE, work around to reduce bank switching when aboslute
11314         variables are placed in access bank memory (<0x80 and >=0xf80),
11315         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
11316         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
11317         TBLWT_POSTDEC,TBLWT_PREINC
11318         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
11319         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
11320         directives
11321         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
11322         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
11323         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
11324         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
11325
11326 2004-02-29  Borut Razem <borut.razem AT siol.net>
11327
11328         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
11329         support/Util/findme.h, support/Util/system.h: enhance binary relative
11330         search for lib and include by using findProgramPath()
11331
11332 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11333
11334         * src/SDCCpeeph.h,
11335         * src/SDCCpeeph.c (pcDistance),
11336         * src/port.h,
11337         * src/mcs51/ralloc.h,
11338         * src/mcs51/ralloc.c (mcs51_regWithIdx),
11339         * src/mcs51/main.h,
11340         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
11341         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
11342         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
11343         size calculation port specific, started basis for some register
11344         optimizations
11345         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
11346         missing push/pop of r0/r1. Optimized push/pops
11347         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
11348         * device/lib/_modsint.c (_modsint),
11349         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
11350         and stack version so regression tests pass
11351
11352 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
11353
11354         * src/Makefile.in (dep): include SLIBOBJS in dependency check
11355         * src/SDCCast.c (decorateType): catch another small optimization
11356         with '?' operator
11357         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
11358         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
11359         modified to finally use computeType() all over SDCC,
11360         see Feature Request #877103
11361         * src/SDCCval.h: cosmetic
11362         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
11363         valCompare(); regression tested in muldiv.c
11364         * support/regression/tests/muldiv.c (testMod): mod sign follows
11365         dividend only
11366
11367 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
11368
11369         * src/SDCCast.c (decorateType): fixed bug #902362
11370         * doc/INSTALL.txt: fixed install instructions for win32
11371
11372 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
11373
11374         * device/include/Makefile.in (install): fixed by replacing spaces
11375         by tabs
11376         * doc/README.txt,
11377         * doc/INSTALL.txt: updated for release
11378         * doc/sdccman.lyx: added warning for --xstack being buggy
11379
11380 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
11381
11382         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
11383         to eliminate build warnings.
11384         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
11385
11386 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
11387            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11388
11389         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
11390         removed -penable-stack, added comment for stack pragma, added
11391         warning for not initializing the stack/frame registers, removed
11392         comment at interrupts section
11393
11394         Stack is made permanent, there is no ability to disable stack usage.
11395         * src/pic16/device.h,
11396         * src/pic16/device.c: removed all references to USE_STACK macro,
11397         * src/pic16/device.c (pic16_dump_section): when no elements in
11398         rlist, free rlist before return,
11399         * (pic16_dump_int_registers): NEW, internal registers are a new set
11400         of general purpose registers reused by each function,
11401         * (checkAddReg): returns 1 if registers is added to set,
11402         * (pic16_groupRegistersInSection): when a registers is of type
11403         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
11404         * src/pic16/device.h: memRange and Assigned Memory are deleted,
11405         SRCASECMP macro is moved here from device.c
11406         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
11407         PO_PCLATU, PO_PRODL, PO_PRODH,
11408         * (pic16_pCodeOpType, genMinus,
11409         changed compares to "a" register, with AOP_ACC,
11410         * (pic16_genPlus): fixed some bugs and indented properly,
11411         * (pic16_addSign): changed size to size+offset in the MOVWF
11412         instruction,
11413         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
11414         multiply 8-bit operand by literal, result is 8-bit,
11415         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
11416         multiply 2 8-bit operand, result is 8-bit,
11417         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
11418         genUMult8X*_16,
11419         * src/pic16/gen.c: changed accUse to contain WREG only,
11420         * (pic16_emitcomment): renamed to pic16_emitpcomment,
11421         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
11422         true, do not use immediate addressing any more unless sym is a
11423         pointer in codespace,
11424         * (aopForRemat): do not use immediate addressing when symbol not in
11425         codespace and when symbol's address is requested,
11426         * (aopOp): for-loop in if(sym->accUse) is modified for the new
11427         accUse size (= 1),
11428         * (aopGet): added case for AOP_ACC and don't return "accumulator
11429         bug" but WREG instead,
11430         * (popGetTempReg): pushes contents of temporary register in stack,
11431         * (popReleaseTempReg): pops contents of temporary register from
11432         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
11433         * (pic16_popGet): separated case AOP_ACC to return register WREG
11434         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
11435         or PO_IMMEDIATE and initializes their instance/offset appropriately,
11436         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
11437         the use of immediate pointers to certain cases only.
11438
11439         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
11440         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
11441         * (assignResultValue, genCall, genRet): modified to use the new
11442         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
11443         genPcall is still broken,
11444         * (genFunction): added code to create 'A' type pBlocks when
11445         interrupt functions are generated, code not extensively tested yet,
11446         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
11447         * (genEndFunction): modified so ISRs pop stored registers from stack,
11448         * (genMultOneByte): cleanup,
11449         * (AccRsh): added flag andmask, to and result with appropriate mask,
11450         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
11451         * (genDataPointerGet): fixed and reenabled its use,
11452         * (genNearDataPointerGet): bugs fixed,
11453         * (genDataPointerSet): bugs fixed,
11454         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
11455         pic16_DumpSymbol, pic16_DumpOp,
11456         * src/pic16/genutils.h: function prototypes for the above functions,
11457         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
11458         pointers,
11459         * (pic16emitRegularMap): many many many improvements, but needs a
11460         major cleanup,
11461         * src/pic16/main.c: enable_stack in pic16_options is removed,
11462         * (_pic16_parseOptions): removed command line options -penable-stack,
11463         * (_process_pragma): emit stack symbol only when stack pragma is
11464         processed,
11465         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
11466         redirected to FSR0L/FSR0H pair,
11467         * (pic16_get_op, pic16_get_op2): modifications and improvements,
11468         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
11469         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
11470         for immediates,
11471         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
11472         * (dumpPicOptype): NEW,
11473         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
11474         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
11475         with movff instruction,
11476         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
11477         added pic16_int_regs, some packRegsFor* functions are commented out,
11478         because produce errors,
11479         * src/pic16/NOTES: minor modifications
11480
11481 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11482
11483         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
11484         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
11485         --pack-iram.
11486         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
11487         * as/mcs51/lkaomf51.c: fixed bug #895763
11488
11489 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
11490
11491         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
11492
11493 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11494
11495         * doc/sdccman.lyx: added details about the HC08 storage classes and
11496         interrupts, fixed the register usage info for z80 & gbz80
11497
11498 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
11499
11500         * doc/sdccman.lyx: added more pic16 port documentation
11501         * device/include/pic16/: added header pic18fregs.h
11502
11503 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
11504
11505         * doc/sdccman.lyx: added Vangelis' contribution
11506
11507 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11508
11509         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
11510         extend to the next CALL or PCALL, not just to the next CALL.
11511
11512 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
11513
11514         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
11515
11516 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11517
11518         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
11519         bug #895752 and a better fix for bug #716790
11520
11521 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11522
11523         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
11524
11525 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11526
11527         * doc/sdccman.lyx: minor changes, minor changed
11528
11529 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
11530
11531         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
11532         which can't handle SDCC_NEWONEBYTEOPS,
11533         (geniCodeMultiply): removed conversion from mult to shift for pic14
11534         and pic16
11535
11536 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11537
11538         * src/hc08/gen.h,
11539         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
11540         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
11541         thus fixing bug #895406
11542
11543 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
11544
11545         * device/lib/_modsint.c,
11546         * device/lib/_modslong.c: sign follows divisor only
11547         * src/hc08/gen.c (genMultOneByte): if result size is 1,
11548         signs or signedness can be ignored
11549         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
11550         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
11551         added optimization for IFX,
11552         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
11553         arguments;
11554         reenabled optimization for IFX, which was removed on 2004-01-11
11555         * src/SDCCast.h: added return type IFX
11556         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
11557         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
11558         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
11559         SDCC_OLDONEBYTEOPS selects the old behaviour
11560         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
11561         changed again and commented promotion rule
11562         * src/SDCCval.c (valDiv): promotion no longer necessary
11563         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
11564         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
11565         rewritten
11566         * support/regression/tests/onebyte.c: added
11567
11568 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
11569
11570         * gen.c (genInline): reverted to old code for assemnling inline
11571         code because of bug reported James Chadd
11572
11573 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
11574
11575         * ralloc.h: missing declarations from previous patch,
11576         seems that patch for ralloc.h was never applied, fixed
11577
11578 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11579            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
11580
11581         * pcode.c,
11582         * pcode.h,
11583         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
11584         indirect addressing. Marked FSR0 as deprecated
11585         * gen.c (pointerCode): commented out, not needed now
11586         (pic16_popGet2p): new MOVFF helper function
11587         (genGenPointerGet),
11588         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
11589         (shiftRLong): removed duplicate debugging info
11590
11591 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11592
11593         * src/ds390/gen.c (genNearPointerGet),
11594         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
11595         optimization with bits, but not bitfields.
11596         * src/ds390/ralloc.c (packRegisters),
11597         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
11598
11599 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
11600
11601         * src/SDCCcse.c (algebraicOpts): copy operands before modification
11602
11603 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11604
11605         * src/SDCCsymt.h,
11606         * src/SDCCicode.c (operandFromSymbol),
11607         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
11608         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
11609         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
11610         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
11611         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
11612         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
11613         bug #892038
11614         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
11615         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
11616         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
11617         * src/SDCCsymt.c (newSymbol),
11618         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
11619         enumerator_list),
11620         * src/SDCCval.h,
11621         * src/SDCCval.c (newiList): fixed bug #885705
11622
11623 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11624
11625         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
11626         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
11627
11628 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11629
11630         * device/include/c8051f120.h,
11631         * device/include/c8051f300.h,
11632         * device/include/c8051f310.h: added/updated header files for Silicon
11633         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
11634         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
11635         in new section Submitting patches
11636
11637 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11638
11639         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
11640         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11641         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11642         genGenPointerSet),
11643         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
11644         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11645         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11646         genGenPointerSet),
11647         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
11648         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11649         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11650         genGenPointerSet),
11651         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
11652         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11653         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11654         genGenPointerSet): fixed bug #892400
11655         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
11656         to eliminate build warnings.
11657         * src/SDCCast.c (processParms),
11658         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
11659         fixed bug 751859
11660         * support/valdiag/valdiag.py: added GCC to the list of defines active
11661         when compiling with gcc
11662
11663 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11664
11665         * support/Util/SDCCerr.h,
11666         * support/Util/SDCCerr.c,
11667         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
11668         with an incomplete type (fixed bug #883734)
11669         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
11670
11671 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11672
11673         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
11674
11675 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11676
11677         * src/SDCCast.c (decorateType),
11678         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
11679         function pointer implementation
11680         * support/regression/tests/funptrs.c: added tests to verify both forms
11681         of function pointers work correctly. Added tests to verify parameters
11682         are passed in the correct order.
11683
11684 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
11685
11686         * device.c (regCompare): registers are sorted by ascending
11687         address and increasing size,
11688         * main.c (_pic16_finaliseOptions): removed the declaration
11689         of compiler macro MCU. Now a macro of the format pic18fxxxx
11690         will be defined from the command line
11691
11692 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11693             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
11694
11695         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
11696         PCOP_RLCF was overwritten!
11697         * gen.c (genSkip): commented out calls to pic16_emitcode,
11698         * (genCmpEQ): fixed "long" compares, only high word did get compared,
11699         * (genlshTwo),
11700         * (genRRC): added debugging info,
11701         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
11702         overwritten while shifting,
11703         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
11704         overwritten while shifting,
11705         * (AccLsh),
11706         * (AccRsh),
11707         * (shiftLLeftOrResult),
11708         * (shiftRLeftOrResult),
11709         * (shiftRLong),
11710         * (shiftLLong): Implemented with pic16_emitpcode
11711         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
11712         * (genLeftShift): Fixed bug, operand for shift by variable always
11713         was "and"ed with 0x0f,
11714         * (genLeftShiftLiteral),
11715         * (genrshTwo),
11716         * (genRightShiftLiteral): added debugging info,
11717         * (genrshFour): added comment,
11718         * (genRightShift): determined signedness from operand "left"
11719         instead of "result"
11720
11721 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11722
11723         * src/SDCCicode.c (geniCodeParms),
11724         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
11725         function pointers, fixed function pointer bugs #861242 and #861896
11726
11727 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11728
11729         * device/include/c8051f000.h,
11730         * device/include/c8051f120.h,
11731         * device/include/c8051f300.h: added header files for Silicon
11732         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
11733
11734 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
11735
11736         * src/SDCCast.c (processParams): added new type flow and restructured
11737         (gatherAutoInit): added new type flow
11738         (addCast): cosmetic changes
11739         (getLeftResultType): added new type flow for array indices, patch
11740         provided by Stas, see FR #877103
11741         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
11742         array index patch by Stas
11743         * src/SDCCast.h: added prototype getResultTypeFromType()
11744         * src/SDCCval.h,
11745         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
11746         * src/pic/glue.c (pic14emitStaticSeg),
11747         * src/pic16/glue.c (pic16emitStaticSeg),
11748         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
11749         for initialization of symbols
11750         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
11751         * support/Util/SDCCerr.h:
11752         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
11753         * .version: bumped version number to 2.3.8
11754         * device/include/Makefile.in (install),
11755         * doc/Makefile (install): changed to 'rm `find ...`' construct to
11756         avoid warnings
11757
11758 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
11759
11760         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
11761         Slade Rich fixed an optimization bug
11762         * src/pic/pcodepeep.c,
11763         * src/pic/pcoderegs.c
11764         * doc/Makefile (install): added test for directory
11765
11766 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11767
11768         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
11769         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
11770         * src/pic/ralloc.c (getRegPtr, getRegGpr),
11771         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
11772         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
11773         * as/mcs51/asexpr.c (term),
11774         * as/hc08/asexpr.c (term): fixed bug #887146
11775
11776 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11777
11778         * src/z80/gen.c (genMult): handle single byte result product
11779         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
11780         DUMMY_READ_VOLATILE (fixed bug #886367)
11781
11782 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
11783
11784         * support/regression/tests/libmullong.c: fixed logic, on little endian
11785         hosts we ended without a mullong_wrapper()
11786
11787 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11788
11789         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
11790         virus/worm forged address usage.
11791
11792 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
11793
11794         Fixed promotion, it should be done on AST level:
11795         * src/SDCCast.c (addCast): added promotion to int
11796         (decorateType): updated call to upCast()
11797         * src/SDCCicode.c (geniCodeLeftShift): removed call to
11798         usualUnaryConversions()
11799
11800 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
11801
11802         * support/regression/tests/literalop.c (mulWrapper): Added a
11803         wrapper to remove integer overflow warnings.
11804
11805         * support/regression/tests/float_trans.c: Made work on host.
11806
11807         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
11808         location of sz80.
11809
11810         * support/regression/generate-cases.py (main): Changed from inline
11811         to a main method.
11812
11813         * doc/Makefile (install): Changed to depth first to get rid of
11814         missing directory install warning.
11815
11816         * as/Makefile (install-doc): Made work on Mac.
11817
11818 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
11819
11820         * src/SDCCast.c: added an additional type flow in decorateType() of
11821         opposite direction, see feature request #860006; it's enabled at runtime
11822         by setting the environment variable SDCC_NEWTYPEFLOW
11823         * src/SDCCast.h: changed prototype of decorateType()
11824         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
11825         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
11826         'char' to 'int' can be omitted, if both operands are 'unsigned char';
11827         see feature request #877103
11828         * src/SDCCval.c: updated call of decorateType()
11829         (valBitwise): fixed bug #882876
11830         (valMinus): added promotion
11831         (valLogicAndOr): result is unsigned
11832         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
11833         * src/SDCCsymt.c (computeType),
11834         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
11835         must not cause an unsigned operation
11836         * src/pic/glue (pic14emitRegularMap),
11837         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
11838
11839 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
11840
11841         * src/pic/pcode.c (PCodeID): commented out left over debug code
11842
11843 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
11844
11845         * support/valdiag/tests/overflow.c: added shift tests
11846         * src/pic/device.c,
11847         * src/pic/gen.c,
11848         * src/pic/gen.h,
11849         * src/pic/glue.c,
11850         * src/pic/main.c,
11851         * src/pic/pcode.c,
11852         * src/pic/pcode.h,
11853         * src/pic/pcodepeep.c,
11854         * src/pic/pcoderegs.c,
11855         * src/pic/ralloc.c,
11856         * src/pic/ralloc.h: applied patch from Slade Rich;
11857         added support for multiple code pages and multiple RAM banks on the
11858         PIC 14 port. The ASM files now no longer simply assume all the
11859         code / RAM are in the same page / bank. This means the linker can
11860         safely allocate code/RAM of separate ASM files to different pages/banks.
11861         * doc/sdccman.lyx: added Slade's tips
11862         * src/mcs51/peeph.def: fixed bug #880768
11863
11864 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11865
11866         * src/hc08/ralloc.c (rematStr): fixed bug #879282
11867         * src/SDCCast.c (decorateType): fixed bug #880197
11868
11869 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
11870
11871         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
11872         getopt.h.
11873
11874         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
11875         strtof is not part of C89 and isn't included with Mac OS X.
11876
11877 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11878
11879         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
11880         shiftL2Left2Result): fixed bug #879326
11881         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
11882         (genMultOneByte): fixed bug in signed vs unsigned multiplication
11883         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
11884         address fetch for clr instruction
11885         * device/lib/hc08/_mulint.c: created optimized assembly version
11886         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
11887
11888 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
11889
11890         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
11891         proposed in FR #877103
11892
11893 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
11894
11895         * src/SDCCval.c (cheapestVal): added missing checks
11896         * src/SDCCicode.c (usualBinaryConversions): fixed condition
11897         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
11898
11899 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
11900
11901         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
11902         equal operands
11903
11904 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
11905
11906         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
11907         loaded with the linker search paths (-L arguments) and the libraries
11908         to be linked with the current source (-l arguments). Changes
11909         currently will affect only the pic16 port.
11910         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
11911         include path the port specific paths and port specific libraries,
11912         * gplink command now contains the $3 argument,
11913         * src/pic16/device.h,
11914         * src/pic16/device.c,: structure PIC_device is made public and
11915         renamed to PIC16_device, the same for variable Pics which is renamed
11916         to Pics16. Updated all references to them.
11917         * src/pic16/glue.c (pic16glue): corrected bug with code
11918         initialization which bypassed the variable initializations block.
11919
11920         * device/lib/pic16/Makefile.rules: removed --penable-stack from
11921         COMPILE_FLAGS and added the --nostdinc option
11922
11923 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11924
11925         * device/include/mc68hc908jb8.h: Register defs for another member
11926         of the hc08 family. Contributed by Bjorn Bringert - thanks!
11927
11928 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
11929
11930         Documenting changes from previous commits.
11931         * configure.in (version 1.56),
11932         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
11933         when generating output files to configure the pic16 library,
11934         but now I've commented it out, since gputils aren't installed in the
11935         SF compile farm, so library won't compile
11936
11937         * device/lib/Makefile.in (version 1.56): initially I've added in
11938         target 'all' the prerequestive 'model-pic16' so it compiled the
11939         pic16 library, but now I've commented it out for the same reasons
11940         above,
11941         * added targets 'model-pic16' and 'objects-pic16' to compile the
11942         library
11943         * added target 'port-specific-objects-pic16' to handle the
11944         generated libraries and copy them into the build/ directory
11945         * added target 'clean-intermediate-pic16' to clean intermediate
11946         files into pic16 directory
11947         * in target 'installdirs' added line to create directory pic16 in
11948         the installation path
11949
11950         * device/include/Makefile.in (version 1.11): in target 'install'
11951         added lines to copy all header files to installation path,
11952         * in target 'installdirs' added line create directory for pic16
11953         headers in the installation path
11954
11955 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
11956
11957         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
11958          a function call
11959
11960 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
11961
11962         * configure,
11963         * device/lib/configure.in,
11964         * device/lib/configure: fixed for autoconf 2.57
11965
11966 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11967
11968         * src/z80/main.c (_parseOptions): fixed the portmode= command line
11969         option so that it actually works. Made it specific to the z80, since
11970         the gbz80 doesn't have these kinds of I/O ports.
11971
11972 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11973
11974         * device/include/z180.h,
11975         * device/lib/_memcpy.c,
11976         * device/lib/_memmove.c,
11977         * device/lib/_mulint.c,
11978         * device/lib/ser_ir.c,
11979         * device/lib/ser_ir_cts_rts.c,
11980         * device/lib/_strcmp.c,
11981         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
11982         * src/z80/main.c (_process_pragma): add support for pragmas bank and
11983         portmode; added deprecation warning for bank= and protmode= forms.
11984         Also, guard against buffer overflow.
11985         * src/z80/gen.c (aopGet): generate better code for sfr banked read
11986
11987 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11988
11989         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
11990         changed interrupt vector table generation to only emit declared vectors.
11991         * device/include/Makefile.in: added missing backslash
11992         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
11993
11994 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
11995
11996         Mainly changes to support compilation of the device libraries
11997         * src/pic16/device.c: stack is allocated via symbol and not
11998         via literal number. The symbol is placed in the corresponding
11999         position of the data ram
12000         * (pic16_dump_section): relocatable and absolute uninitialized
12001         data are now emitted in sorted order to reduce section naming,
12002         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
12003         weren't marked as being in the access bank,
12004
12005 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
12006
12007         Added portion of GNU PIC Library under the directory
12008         device/include/pic16 and device/lib/pic16. These files
12009         contain the declarations of SFRs for the PIC18Fxx2 devices.
12010         The directory is initialized via configure from toplevel.
12011
12012 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
12013
12014         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
12015         the spilllocations to be compared correctly
12016
12017 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
12018
12019         * src/SDCCast.c (decorateType): fixed bug introduced today
12020
12021 2004-01-12  Borut Razem <borut.razem AT siol.net>
12022
12023         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
12024         doc/sdccman.lyx: upper case pragmas are deprecated
12025
12026 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
12027
12028         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
12029         in simpler and even better code
12030
12031 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
12032
12033         * src/SDCCicode.c (operandOperation): fixed bug #874819
12034         * src/SDCCast.c (decorateType): fixed
12035         char foo (unsigned long ul) { return ul > 0; }
12036
12037 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12038
12039         * doc/sdccman.lyx: Moved and added some sections, small changes
12040         all over. Telling LaTeX to be less strict with word spacing
12041         to better keep the right margin. Changed some notes about
12042         maintainance of the ports in section 3.2.1 - is it OK like this?
12043
12044 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
12045
12046         SDCC source changes:
12047         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
12048         convilong): modified to inform the pic16 port that builtin functions
12049         are external
12050
12051         PIC16 PORT specific changes:
12052         * src/pic16/device.c pic16_dump_equates() added,
12053         processor registers declared internally by the port are emitted in
12054         the translation as equates,
12055         * src/pic16/gen.c: inline code is passed unprocessed to the
12056         translation,
12057         * (pic16_popGetLit2): fnuction modified to take second operand as
12058         pCodeOp pointer and not as literal,
12059         * (popRegFromIdx): prefixed with pic16_,
12060         * (pic16_popCombine2): modified to receive already allocated pCode
12061         operands,
12062         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
12063         * (genFunction): initializes local stack frame and pushes on stack
12064         all the registers used by this function,
12065         * (genEndFunction): restores all registers from stack and restores
12066         stack frame,
12067         * src/pic16/glue.c (pic16emitRegularMap): various changes and
12068         improvements,
12069         * (pic16glue): changed the program startup sequence,
12070         * added new dbName code 'A' for functions placed in absolute section
12071         * src/pic16/main.c: added function attribute _naked,
12072         * added pragma 'code' to place a fnuction at an absolute address,
12073         * added command line arguments --debug-ralloc and --pcode-verbose,
12074         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
12075         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
12076         * (pic16_newpCodeOpLit2): modified to take the second operand as
12077         pCodeOp pointer,
12078         * (pic16_printpBlock): modified to emit each function in a separate
12079         section,
12080         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
12081         UPPER for immediate operands,
12082         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
12083         instruction,
12084         * src/pic16/peeph.def: all peepholes with movff are commented out,
12085         because there is a problem in the pcode peep optimizer,
12086         * src/pic16/ralloc.c: the register allocator can now reuse local
12087         function symbols for another function. This saves register usage.
12088         * src/pic16/ralloc.h: added flag isLocal in structure regs,
12089
12090         Added file src/pic16/NOTES with information about program writing on
12091         the current port version.
12092
12093 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12094
12095         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
12096         and peephole 252 (array access)
12097
12098 2004-01-09  Borut Razem <borut.razem AT siol.net>
12099
12100         * src/SDCCmain.c : fixed #872250: -l command line defined library
12101           files are scanned before standard library files
12102
12103 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12104
12105         * src/SDCCast.c (decorateType): fixed bug #874046
12106
12107 2004-01-09  Borut Razem <borut.razem AT siol.net>
12108
12109         * support/scripts/sdcc.nsi: remove previous installation
12110
12111 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12112
12113         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
12114         bytes for last interrupt vector (mcs51)
12115         * sdcc.spec: fixed typo
12116
12117 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12118
12119         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
12120         gen51Code): more efficient parameter receive for --model-large
12121         ("bug" #845294)
12122
12123 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12124
12125         * src/ds390/main.c,
12126         * src/z80/main.c: added missed needLinkerScript flags (more than
12127         one port structure defined in these file)
12128         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
12129         bug #795325
12130
12131 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
12132
12133         * src/SDCCmain.c: removed various references to DEFAULT_PORT
12134         * src/port.h: added flag needLinkerScript in port->linker
12135         structure to inform whether to create a .lnk file or not,
12136         * src/avr/main.c,
12137         * src/ds390/main.c,
12138         * src/hc08/main.c,
12139         * src/mcs51/main.c,
12140         * src/pic/main.c,
12141         * src/pic16/main.c,
12142         * src/xa51/main.c,
12143         * src/z80/main.c: changed appropriately to configure
12144         needLinkerScript flag
12145         * src/pic/gen.c,
12146         * src/pic16/gen.c (genAddrOf): fixed bug #863624
12147         * src/pic/glue.c: added variable udata_section_name to
12148         override default uninitialized data segment definition for
12149         devices only with SHAREBANK memory (reported from Erik Epetrich)
12150         * (pic14emitOverlay): modified to emit a commented overlay segment
12151         directive when no overlay data exist
12152         * (picglue): modified to emit uninitialized data segment
12153         according to udata_section_name
12154         * src/pic/main.c (_pic14_parseOptions): added command line
12155         options --udata-section-name=[name] to override default
12156         udata definition name
12157         * modified _linkCmd and _asmCmd to include compiler passed
12158         arguments via -W option
12159         * src/pic16/main.c: added $l in _asmCmd, changed extension for
12160         object file from '.rel' to '.o' in port->linker structure,
12161         changed size of fptr from 2 to 3 in port structure
12162
12163 2004-01-07  Borut Razem <borut.razem AT siol.net>
12164
12165         * support/scripts/sdcc.nsi: update PATH
12166         * support/scripts/sdcc.ico: craeted
12167
12168 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
12169
12170         * device/include/Makefile.in: fix install
12171         * doc/Makefile: fix install
12172
12173 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12174
12175         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
12176         in bug #860505
12177         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
12178         how the function variable allocation summary is displayed; also
12179         include information about variables allocated to the overlay
12180         segment
12181
12182 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12183
12184         * as/mcs51/lkmain.c: Help about -Y option
12185         * as/mcs51/lkarea.c: Fixed gcc warnings
12186
12187 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
12188
12189         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
12190         fixed warning
12191         * support/valdiag/tests/overflow.c: added
12192         * src/SDCCast.c (decorateType),
12193         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
12194         LEFT_OP (left shift)
12195
12196 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12197
12198         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
12199         (default behaviour).
12200
12201 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12202
12203         A python script to validate compiler diagnostic messages. It can be
12204         used to verify that sdcc complains about bad c source code and
12205         gives a good location of the error.
12206         * support/valdiag/Makefile,
12207         * support/valdiag/valdiag.py,
12208         * support/valdiag/tests/*
12209
12210 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12211
12212         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
12213         * src/SDCCsymt.c (newEnumType),
12214         * src/SDCCsymt.h
12215         * support/Util/SDCCerr.c,
12216         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
12217         enum related bugs.
12218         * support/regression/tests/enum.c: added test for enum values that
12219         require at least 2 bytes of storage.
12220
12221 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
12222
12223         * src/common.h: added ifndef/define/endif macros
12224         around the header file.
12225         Bug reported from Jesus Calvino-Fraga
12226
12227 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
12228
12229         * sdcc.spec: updated
12230         * device/include/Makefile.in: don't install CVS directories
12231         * device/lib/Makefile.in: added removal of CVS directories after install
12232         * doc/Makefile: fixed install, added local_icons
12233         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
12234         * src/mcs51/gen.c (genRightShift): fixed bug #870788
12235         * src/ds390/gen.c (genRightShift): fixed bug #870788
12236         * src/SDCCast.c (decorateType): fixed bug #870781
12237
12238 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
12239
12240         PIC16 port related changes:
12241         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
12242         added variable stackPos,
12243
12244         * gen.c: genCall, assignResultValue: added support for
12245         pushing/retrieving function parameters to/from stack,
12246         genFunction,genEndFunction: setup stack frame for the
12247         generated function,
12248         genAddrOf: will be changed according to bug 863624
12249
12250         * added files genutils.c and genutils.h which contain gen*
12251         debugged and optimised functions extracted from gen.c
12252
12253         * glue.c: added variable 'externs' which holds extern symbols,
12254         pic16emitRegularMap: is modified to properly handle relocatable
12255          symbols under the new scheme,
12256         pic16createInterruptVect: is modified
12257         pic16printPublics: is modified to emit 'global' assembler directives,
12258         added pic16_printExterns to print extern symbols,
12259         pic16glue: initializes stack/frame pointer in the beginning of
12260         the assembly output. Temporary hack, will be corrected later,
12261         because gplink yet does not support stack and SDCC does not
12262         yet support a type of crt0.o object to create the final binary.
12263
12264         * Removed many lines that contain 8051 legacy code.
12265         * The code is finally placed under a 'code' directive.
12266         * Added port specific options.
12267
12268         * _process_pragma: simplified since now we do not need *special*
12269         include file to define SFR registers. But a separate header
12270         will be needed. This will be developed later.
12271         * _pic16_parseOptions: added, parses port specific options:
12272         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
12273         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
12274         --preplace-udata-with=
12275
12276         * _pic16_setDefaultOptions: modified to initialize section names,
12277         but hack is temporarly out of order since it needs improvement.
12278         * _pic16_genAssemblerPreamble: configuration words are emitted by
12279         their address instead of their name. This part is incomplete and
12280         supports only the 18Fxx2 devices. Other devices will emit an error
12281         during assembly since they do not contain the same set of config
12282         registers
12283         * _pic16_genIVT: is modified,
12284
12285         * pcode.c: added definitions for some hardware registers that are needed
12286         for stack support
12287         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
12288         All PCI entries are updated. Now LFSR is supported.
12289         * Removed pic16_pciTRIS is mentioned by mdubuc in source
12290         * added pic16_newpCodeOpLit2 to support instructions with
12291         two literal arguments
12292         * pic16_pCode2str: corrected code that emits assembler instructions
12293         with two literal operands and those that have an access bit modifier
12294         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
12295         this fixes a bug which caused some labels to be lost, when an
12296         assembler directive was added, i.e. banksel,
12297         * pic16_FixRegisterBanking: improved logic that causes the insertion
12298         of bank switching,
12299         * InlineFunction: functions that are called once, are not any more
12300         inlined. This can be a port option in the future,
12301
12302         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
12303
12304         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
12305         hold the corresponding uninitialized symbols,
12306         * pic16_allocProcessorRegister: registers have explicit marked the
12307         accessBank field,
12308         * pic16_allocInternalRegister: registers are explicit marked as
12309         not used,
12310         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
12311         processing list, so bit registers were lost,
12312         *
12313
12314         * ralloc.h: added field 'accessBank' and original symbol operand
12315         in register definition,
12316         * removed the field isMapped from register definition,
12317
12318         ** Several functions have been removed from various sources:
12319         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
12320         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
12321         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
12322         pic16_assignRelocatableRegisters
12323
12324         ** others have been introduced:
12325         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
12326         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
12327
12328 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
12329
12330         * support/scripts/inc2h.pl: changed definition of BIT_AT
12331         to emit 'sbit at' instead of 'bit at'. This was a request.
12332
12333         PIC16 port related preliminary changes:
12334         * gen.c: prefixed function popRegFromString with
12335         pic16_ and all references to it corrected
12336         * pcode.c: all pic16_pc_* hardware registers prefixed
12337         with underscore (_),
12338         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
12339         * ralloc.c: newReg(): when register is REG_SFR then
12340         set address to rIdx,
12341         pic16_allocProcessorRegister(): marks register wasUsed=0
12342         pic16_writeUsedRegs(): added a call to assign processor
12343         registers via pic16_assignFixedRegisters
12344
12345 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12346
12347         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
12348         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
12349         variables in unused register banks.  Also the SSEG is placed
12350         wherever there is enough space for it, and IDATA can be anywhere
12351         in internal RAM.  For now compile using -Wl-Y[stack_size].
12352         The mem file is different for this option as well, since it
12353         makes no sense of talking about DSEG lenght.
12354
12355 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
12356
12357         * src/SDCClrange.c: fixed bug 869095 that caused segfault
12358         in certain cases, e.g. when ROM assignment, patch provided
12359         from Albert den Haan.
12360
12361 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
12362
12363         Many signedness and type propagation fixes:
12364         * src/SDCCicode.c: made geniCodeCast() static
12365         replaced SPEC_ by IS_ (cosmetic)
12366         (operandOperation): fixed div and mod operation
12367         (usualBinaryConversions): added support for promotion of char
12368         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
12369         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
12370         (geniCodeAdd): an array index will stay unsigned, even if promoted
12371         from char to int
12372         (geniCodeArray): ditto
12373         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
12374         * src/SDCCsymt.c (computeType): added more support for char;
12375         promotion of char is selectable by promoteCharToInt, fixed signedness
12376         for all cases
12377         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
12378         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
12379         * src/SDCCval (val*): replaced signedness calculation by
12380         computeType()
12381         rearranged if-branches (cosmetic)
12382         (valShift): added warning W_SHIFT_CHANGED
12383         (valCompare): fixed problem with different types
12384         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
12385         * support/regression/tests/literalop.c: added many cases
12386         * support/regression/tests/ast_constant_folding.c: changed finally to
12387         'unsigned int'
12388         * .version: new year, new version: 2.3.7
12389         * src/SDCCmain.c (main): applied patch #866468
12390         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
12391         provided by Scott Bronson
12392         * doc/sdccman.lyx: updated documentation for sdcdb
12393         updated and added chapter tips
12394
12395 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12396
12397         * src/SDCCsymt.h: missing from yesterday's commits
12398
12399 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12400
12401         * src/SDCC.y (struct_or_union_specifier),
12402         * support/Util/SDCCerr.c,
12403         * support/Util/SDCCerr.h: verify that struct & union tags are used
12404         as declared.
12405
12406 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12407
12408         * src/SDCCglobl.h: missing from yesterday's commits
12409
12410 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12411
12412         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
12413         sft_attributes, struct_declaration, parameter_declaration,
12414         type_name, start_block, declaration_list),
12415         * src/SDCC.lex (check_type): support redefinition of typedef names
12416
12417 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12418
12419         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
12420         aligned xdata arrays. Erik helped me with the if clause.
12421
12422 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12423
12424         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
12425         warning
12426
12427 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12428
12429         * src/SDCCast.h,
12430         * src/SDCCast.c (newAst_),
12431         * src/SDCCicode.h,
12432         * src/SDCCicode.c (ast2iCode, newiCode),
12433         * src/SDCCglobl.h,
12434         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
12435         expr, statement, expression_statement, selection_statement,
12436         iteration_statement, expr_opt, jump_statement): foundation for tracking
12437         sequence points
12438         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
12439         point code too)
12440
12441 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12442
12443         * support/Util/SDCCerr.c,
12444         * src/SDCCast.h,
12445         * src/SDCCast.c (createCase, createDefault, decorateType),
12446         * src/SDCClabel.c (labelUnreach),
12447         * src/SDCC.y (labeled_statement, jump_statement): More improvements
12448         to error messages.
12449         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
12450         (with thanks to Stas Sergeev)
12451         * device/include/time.h,
12452         * device/lib/time.c (CheckTime): suppress unreachable code warning
12453
12454 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12455
12456         * src/SDCCast.c (createIvalCharPtr),
12457         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
12458         bug #753752)
12459         * support/regression/tests/nullstring.c: tests for these two bugs
12460
12461 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12462
12463         * support/Util/SDCCerr.h,
12464         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
12465         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
12466         about storage class and 'at' used inside struct or union
12467         * src/SDCCBBlock.c (iCodeFromeBBlock),
12468         * src/SDCCcse.c (ifxOptimize),
12469         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
12470         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
12471         printIval, emitStaticSeg, emitOverlay),
12472         * src/SDCClabel.c (deleteIfx),
12473         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
12474         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
12475         gatherAutoInit, processParms),
12476         * support/Util/SDCCerr.h,
12477         * support/Util/SDCCerr.c (werrorfl): Support for better error location
12478         reporting for post-parse errors.
12479
12480 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12481
12482         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
12483         implicit casts via union; they don't work on big endian systems
12484         (possible fix for bug #861138)
12485
12486 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12487
12488         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
12489         * src/mcs51/main.c: fixed the fix for bug #737001
12490
12491 2003-12-15  Borut Razem <borut.razem AT siol.net>
12492
12493         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
12494
12495 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12496
12497         * support/makebin/makebin.c: put output in binary mode
12498
12499 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12500
12501         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
12502         xdata and data memory on startup. Set the environment variable
12503         SDCC_NOGENRAMCLEAR to disable this.
12504         * src/mcs51/peephole.def,
12505         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
12506         (allows non-interrupt and interrupt code to safely compete for a resource
12507         without the non-interrupt code having to disable interrupts)
12508
12509 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12510
12511         * src/SDCCicode.c (geniCodeAdd),
12512         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
12513         with valFromType if type might be a pointer and host is big endian).
12514         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
12515         types, not just integer types.
12516         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
12517         multiply defined with mismatching "at" address.
12518
12519 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12520
12521         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
12522         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
12523         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
12524         with embedded nulls (fixed bug #753752)
12525
12526 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12527
12528         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
12529         Apparently this did not see much testing (endless loop)
12530
12531 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12532
12533         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
12534
12535 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12536
12537         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
12538         gracefully handle NULL memmap pointers
12539
12540 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12541
12542         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
12543         instead of deleting the iCode when an operand is volatile
12544         * src/z80/gen.c (genDummyRead),
12545         * src/mcs51/gen.c (genDummyRead),
12546         * src/ds390/gen.c (genDummyRead),
12547         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
12548         not just IC_RIGHT
12549         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
12550         * src/SDCC.y: fixed bug #850420
12551
12552 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12553
12554         Applied z80 i/o port patch from Peter Townson and fixed some operators
12555         to better handle operands in A register.
12556         * device/include/z180.h
12557         * src/SDCC.y
12558         * src/SDCCglue.c
12559         * src/z80/gen.c
12560         * src/z80/gen.h
12561         * src/z80/main.c
12562         * src/z80/peeph-z80.def
12563         * src/z80/peeph.def
12564         * src/z80/z80.h
12565
12566 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12567
12568         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
12569
12570 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12571
12572         * device/lib/hc08/_mullong.c: Removed extra #endif
12573
12574 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12575
12576         * sim/ucsim/hc08.src/inst.cc,
12577         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
12578         carries from x to h
12579         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
12580         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
12581         * device/include/stdarg.h: fixed varargs for hc08
12582         * device/lib/Makefile.in,
12583         * device/lib/hc08/Makefile,
12584         * device/lib/hc08/_mulint.c,
12585         * device/lib/hc08/_mullong.c: fixed some endian problems
12586
12587 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12588
12589         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
12590         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
12591         * device/lib/_gptrget.c,
12592         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
12593
12594 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12595
12596         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
12597         * src/SDCCast.c (astErrors): fixed bug #846007
12598         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
12599
12600 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12601
12602         * src/SDCCast.c (decorateType): disabled a transformation I added in
12603         revision 1.188 (access to fields of a structure at an absolute address);
12604         it breaks with bitfields, extern declarations, and gcse analysis.
12605         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
12606         could be assigned through a pointer, so don't complain.
12607         * src/SDCCast.c (astErrors),
12608         * src/SDCCast.h,
12609         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
12610
12611 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
12612
12613         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
12614         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
12615         output of __config directives, since gpasm now supports them
12616         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
12617         pre-processor macro, i.e. -DMCU=p18f452
12618         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
12619         and modified to handle 'cast' icode similarly to '=' icode
12620         * src/pic16/device.h (typedef struct PIC_device): added field
12621         'extMIface' to indicate that chip has external memory interface
12622         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
12623         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
12624         18F8720
12625
12626 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12627
12628         * src/SDCC.y (pointer): fixed bug #846006
12629         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
12630         * src/SDCCast.c (decorateType): fixed bug #846009
12631         * src/ds390/peeph.def,
12632         * src/ds390/gen.c (genAnd, genOr),
12633         * src/mcs51/peeph.def,
12634         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
12635
12636 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12637
12638         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
12639         * src/SDCCdflow.c
12640         * src/SDCCcse.c
12641         * src/SDCCcse.h
12642         * src/SDCCBBlock.h
12643         * src/SDCCBBlock.c
12644
12645 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
12646
12647         fixed bug #845089
12648         * src/SDCCbitv.h,
12649         * src/SDCCbitv.c: added function to free a bitvector
12650         * src/SDCClrange.h,
12651         * src/SDCClrange.c: added function to recompute the liveranges
12652         * src/avr/ralloc.c,
12653         * src/ds390/ralloc.c,
12654         * src/hc08/ralloc.c,
12655         * src/mcs51/ralloc.c,
12656         * src/pic/ralloc.c,
12657         * src/pic16/ralloc.c,
12658         * src/xa51/ralloc.c,
12659         * src/z80/ralloc.c: recompute the liveranges after register packing
12660
12661 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
12662
12663         * src/SDCCloop.c (newInduction): fixed bug #845630
12664
12665 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12666
12667         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
12668         inadvertantly left behind from my 2003-11-12 change
12669
12670 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12671
12672         Updated headers I neglected to commit yesterday.
12673         * src/SDCClrange.h,
12674         * src/SDCCicode.h
12675
12676 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12677
12678         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
12679         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
12680         * src/SDCCopt.c (eBBlockFromiCode),
12681         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
12682         the creation of the key hash table from the sequencing so it can be used
12683         earlier (for some GCSE bug fixes still pending)
12684
12685 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12686
12687         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
12688         * support/regression/tests/addsub.c: testing genPlus shortcut
12689
12690 2003-11-15  Borut Razem <borut.razem AT siol.net>
12691
12692         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
12693
12694 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12695
12696         * src/SDCCcse.c (cseBBlock): fixed bug #527779
12697         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
12698         ordering is immaterial.
12699         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
12700
12701 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12702
12703         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
12704         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
12705         (SIGSEV) of bug #840381
12706         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
12707         unlink new file before rename if new and old filenames are the same)
12708
12709 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12710
12711         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
12712         uninitialized variables) for the mcs51. Set environment variable
12713         SDCC_GENRAMCLEAR to test.
12714         xdata initialization slightly shorter
12715
12716 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12717
12718         * src/SDCCsymt.h,
12719         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
12720         #838241 & 780691 (basicly the same bug)
12721         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
12722         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
12723
12724 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
12725
12726         * src/SDCCmain.c (linkEdit): "fix" #834252
12727
12728 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12729
12730         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
12731         * src/SDCCast.h,
12732         * src/SDCC.y: fixed bug #819403
12733
12734 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12735
12736         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
12737         the reentrant attribute.
12738         * src/hc08/gen.c (genPackBits): added missing stack readjustment
12739         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
12740         simulation
12741         * src/SDCCast.c (decorateType): fixed bug with storage class not being
12742         updated during pointer dereference; f.e. ~(((char *)1)*) was being
12743         erroneously reduced to a literal.
12744         * src/hc08/ralloc.c (packRegisters, rematStr),
12745         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
12746         some cases
12747
12748 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12749
12750         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
12751         * doc/sdccman.lyx: changed from 'article' to 'book'
12752         * doc/Makefile: readded test_suite_spec and cdbfileformat
12753
12754 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
12755
12756         * device/include/stdlib.h: include malloc.h to comply with ANSI
12757         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
12758
12759 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12760
12761         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
12762         * doc/clean.mk: also remove *.out files
12763         * doc/sdccman.lyx: some additions, larger top/bottom margins
12764
12765 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12766
12767         * src/SDCC.y: fixed bug #837365
12768         * support/regression/tests/bitopcse.c
12769         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
12770         a symbol (might be valop instead)
12771         * device/lib/Makefile.in: added errno.c to HC08SOURCES
12772         * device/lib/clean.mk: added hc08 to the cleaning list
12773
12774 2003-11-04  Borut Razem <borut.razem AT siol.net>
12775
12776         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
12777           made 2003-11-04
12778         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
12779           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
12780           malloc is declared in standard stdlib.h
12781
12782 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12783
12784         * device/lib/hc08/Makefile: need to clean .rel not .o files
12785         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
12786
12787 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12788
12789         * src/port.h,
12790         * src/hc08/main.c,
12791         * src/mcs51/main.c,
12792         * src/ds390/main.c,
12793         * src/z80/main.c,
12794         * src/avr/main.c,
12795         * src/pic/main.c,
12796         * src/pic16/main.c,
12797         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
12798         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
12799         tests (which uses the port's oclsExpense function)
12800         * src/SDCC.y,
12801         * src/SDCCast.c,
12802         * src/SDCCicode.c,
12803         * src/hc08/gen.c,
12804         * src/ds390/gen.c,
12805         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
12806
12807 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12808
12809         * src/SDCCcse.c (ifxOptimize),
12810         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
12811         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
12812         deleting the IFX iCode.
12813         * src/hc08/ralloc.c: reduced unneeded slocs
12814         * src/hc08/gen.c: fixed bug in asmopToBoolean
12815
12816 2003-11-04  Borut Razem <borut.razem AT siol.net>
12817
12818         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
12819           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
12820           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
12821           transferred to configure
12822
12823 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
12824
12825         Use headers defined in the C[++] standards:
12826         * sim/ucsim/gui.src/serio.src/fileio.cc
12827         * sim/ucsim/gui.src/serio.src/frontend.cc
12828         * sim/ucsim/gui.src/serio.src/main.cc
12829         * sim/ucsim/gui.src/serio.src/posix_signal.cc
12830         * support/Util/NewAlloc.c
12831         * as/hc08/lklibr.c
12832         * as/mcs51/lklibr.c
12833         * as/z80/aslist.c
12834         * as/z80/assym.c
12835
12836 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12837
12838         * Added MSVC projects for hc08 assembler and linker:
12839         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
12840         /as/hc08/link_hc08.dsp
12841
12842 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
12843
12844         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
12845
12846 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
12847
12848         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
12849
12850 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12851
12852         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
12853
12854 2003-10-31  Borut Razem <borut.razem AT siol.net>
12855
12856         * support/cpp2/cpplib.h,
12857           support/cpp2/cpplib.c,
12858           support/cpp2/cpplex.c,
12859           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
12860           to switch _asm block preprocessing on / off. Default is
12861           #pragma preproc_asm +
12862
12863 2003-10-31  Borut Razem <borut.razem AT siol.net>
12864
12865         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
12866           when outputting comment blocks (when executed with -C option) and
12867           _asm (SDCPP specific) blocks
12868
12869 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12870
12871         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
12872
12873 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
12874
12875         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
12876
12877 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
12878
12879         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
12880         * src/SDCCast.c (decorateType): fixed bug #832664
12881
12882 2003-10-31  Borut Razem <borut.razem AT siol.net>
12883
12884         * support/cpp2/cpplex.c: fixed for SDCPP:
12885           comments(when executed with -C option) and _asm blocks
12886           were included even if they where in skipped #if block.
12887           Applied solution from GCC cpp 3.3.2
12888
12889 2003-10-31  Borut Razem <borut.razem AT siol.net>
12890
12891         * src/SDCC.lex: sdcc now understands both formats:
12892           '# <line_number> <file_name>' and
12893           '#line <line_number> <file_name>'
12894         * support/cpp2/cppmain.c: sdcpp now generates the standard
12895           '# <line_number> <file_name>' instead of former
12896           '#line <line_number> <file_name>'
12897
12898 2003-10-30  Borut Razem <borut.razem AT siol.net>
12899
12900         * support/cpp2/cpphash.h,
12901         * support/cpp2/cpplib.h
12902         * support/cpp2/cpplex.c,
12903         * support/cpp2/cppmain.c,
12904         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
12905
12906 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12907
12908         Fixed a number of problems revealed by bug #827883.
12909         * src/SDCCloop.c (loopInvariants): Spill location of the
12910         result operand should be recomputed if extracted from
12911         a loop. Also, don't extract assignments of an iTemp
12912         from a literal.
12913         * src/SDCCast.c (isConformingBody): loop reversal should
12914         not occur if the control variable is involved with a
12915         relational operator.
12916
12917 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
12918
12919         * .version: bumped to 2.3.6 to reflect the big improvements
12920         made by Erik and Klaus. Thanks!
12921
12922 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
12923
12924         Replaced the livrange code.
12925         * src/SDCClrange.c: added new LR code
12926         * src/SDCCloop.c,
12927         * src/SDCCBBlock.h: removed remainig parts from old LR code
12928         * src/ds390/ralloc.c,
12929         * src/ds390/gen.c: minor fixes to make it work with new code
12930
12931 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12932
12933         * as/hc08/asm.h,
12934         * as/hc08/lkrloc.c,
12935         * src/hc08/gen.c,
12936         * src/hc08/ralloc.c: Fix various warnings related to the hc08
12937         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
12938         (tweaked fix for bug #818696)
12939
12940 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12941
12942         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
12943
12944 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12945
12946         * src/SDCCmain.c,
12947         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
12948         * src/mcs51/gen.c (gencjneshort),
12949         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
12950         more efficient (per Scott Bronson's suggestion)
12951
12952 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12953
12954         Extended the semantics of the critical keyword to include
12955         individual statements. See RFE #827755 and #799831
12956         * src/SDCC.y
12957         * src/SDCCicode.c
12958         * src/SDCCopt.c
12959         * src/SDCCast.c
12960         * support/Util/SDCCerr.c
12961         * support/Util/SDCCerr.h
12962         * src/mcs51/gen.c
12963         * src/ds390/gen.c
12964         * src/hc08/gen.c
12965
12966 2003-10-19  Borut Razem <borut.razem AT siol.net>
12967
12968         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
12969
12970 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12971
12972         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
12973         Fixed bug #818696
12974         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
12975         and predecrement operand is displayed
12976
12977 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
12978
12979         * src/SDCCval.c (valMinus): fixed bug #826041
12980
12981 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12982
12983         Some hc08 related updates that I missed earlier
12984         * sim/ucsim/stypes.h
12985         * support/regression/ports/hc08/spec.mk
12986
12987 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12988
12989         New target "hc08" for the Motorola 68hc08 family of micros
12990
12991         * configure
12992         * configure.in
12993         * Makefile
12994         * src/hc08/*
12995         * src/SDCCmain.c
12996         * src/port.h
12997         * sim/ucsim/hc08.src/*
12998         * sim/ucsim/configure.in
12999         * src/ucsim/configure
13000         * sim/ucsim/packages_in.mk
13001         * as/hc08/*
13002         * as/Makefile
13003         * device/include/mc68hc908qy.h
13004         * device/lib/hc08/*
13005         * device/lib/Makefile.in
13006         * support/regression/ports/hc08/*
13007         * support/regression/Makefile
13008
13009 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13010
13011         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
13012         regression test
13013         * src/ds390/gen.c (genCast): fixed bug #821957
13014
13015 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
13016
13017         * device/lib/logf.c: "fixed" overlay bug
13018         * support/regression/ports/host/spec.mk: added m library
13019         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
13020         * support/regression/tests/float_trans: added (for Eric)
13021
13022 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
13023
13024         * src/mcs51/gen.c (genCpl): fixed bug
13025         http://sf.net/mailarchive/message.php?msg_id=6263915
13026
13027 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
13028
13029         * src/SDCCast.c (decorateType): added extended constant folding
13030         * src/SDCCsymt.c (computeType): cleanup
13031         * src/SDCCval.c (valShift): minor optimization
13032         * support/regression/tests/ast_constant_folding.c: added
13033
13034 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13035
13036         * src/SDCCmain.c: removed some unintended changes
13037
13038 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13039
13040         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
13041         * src/z80/gen.c: fixed part of bug #817589
13042         * src/SDCCsymt.c (checkFunction): fixed bug #817895
13043
13044 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
13045
13046         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
13047         * src/SDCCcflow.c
13048         * src/SDCCcse.c
13049         * src/SDCCdflow.c
13050         * src/SDCClabel.c
13051         * src/SDCClrange.c
13052         * src/SDCCmem.c
13053         * src/SDCCopt.c
13054         * src/SDCCpeeph.c
13055         * src/SDCCset.c
13056         * src/avr/ralloc.c
13057         * src/ds390/ralloc.c
13058         * src/izt/ralloc.c
13059         * src/mcs51/ralloc.c
13060         * src/pic/ralloc.c
13061         * src/pic16/ralloc.c
13062         * src/xa51/ralloc.c
13063         * src/z80/ralloc.c
13064         * src/z80/gen.c: removed unused label "release:"
13065
13066 2003-10-06  Borut Razem <borut.razem AT siol.net>
13067
13068         * src/SDCC.lex: removed definition of unused variables
13069           save_optimize and save_options
13070
13071 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
13072
13073         * clean.mk: removed '=' in "-maxdepth=1"
13074         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
13075         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
13076
13077 2003-10-06  Borut Razem <borut.razem AT siol.net>
13078
13079         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
13080           my_unput() replaced by unput()
13081
13082 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
13083
13084         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
13085         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
13086         type-punned pointer will break strict-aliasing rules"
13087         Old LR behaviour is again default; Klaus' LR can be choosen by
13088         defining the environment variable LRKLAUS
13089         * src/SDCCBBlock.h
13090         * src/SDCCloop.c
13091         * src/SDCClrange.c
13092         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
13093         * clean.mk: fixed removal of files in bin/CVS/
13094         * device/lib/clean.mk: fixed removal of directories small and large
13095         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
13096         * src/SDCCicode.c,
13097         * src/SDCCval.c: removed superflous test for pedantic
13098
13099 2003-10-05  Borut Razem <borut.razem AT siol.net>
13100
13101         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
13102           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
13103           message "unmatched #pragma SAVE and #pragma RESTORE"
13104
13105 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13106
13107         * doc/sdccman.lyx: various additions and updates (interrupts, inline
13108           assembly, critical functions, atomic, nojtbound)
13109
13110 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
13111
13112         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
13113         * src/SDCCBBlock.h
13114         * src/SDCCloop.c
13115         * src/SDCCloop.h
13116         * src/SDCClrange.c
13117
13118 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13119
13120         * src/z80/gen.h,
13121         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13122         * src/mcs51/gen.h
13123         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13124         * src/ds390/gen.h
13125         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13126         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
13127         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
13128
13129 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13130
13131         * src/z80/gen.c (genRet): fixed bug #524753
13132         * src/z80/gen.c (genCast): fixed internal error on cast from
13133         pointer to long
13134         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
13135         fix for bug #477835 to the z80
13136         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
13137         for tracking iCodes in the peephole optimizer for z80
13138
13139 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13140
13141         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
13142         the other part of bug #814548
13143         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
13144
13145 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
13146
13147         * src/SDCCcse.c: fixed part of bug #814548
13148
13149 2003-09-28  Borut Razem <borut.razem AT siol.net>
13150
13151         * src/asm.c: rewrite of printILine() to use temporary file instead
13152           a pipe
13153         * src/xa51/main.c: commented out declaration of int rewinds
13154
13155 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13156
13157         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
13158
13159 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13160
13161         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
13162         * src/asm.c (printILine): Fixed bug #811015
13163
13164 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13165
13166         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
13167         freeing.
13168
13169 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13170
13171         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
13172         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
13173         to correctly handle general case of AOP_PAIRPTR
13174         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
13175
13176 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13177
13178         * src/mcs51/ralloc.c (fillGaps),
13179         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
13180         register positioning bug)
13181
13182 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
13183
13184         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
13185
13186 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13187
13188         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
13189         genCodePointerGet, genGenPointerGet, genFarPointerSet,
13190         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
13191         (ralloc doesn't intentionally do this now, but perhaps later)
13192         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
13193         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
13194         register positioning bugs (Fixed bug #762602 and #795325)
13195         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
13196         (Fixed bug #808779)
13197         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
13198         lines that --i-code-in-asm generates
13199
13200 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13201
13202         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
13203         trying to fclose a FILE* that was already closed.
13204
13205 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13206
13207         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
13208         of const struct should be treated as if const themselves)
13209
13210 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
13211
13212         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
13213
13214 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13215
13216         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
13217         Unix (/n) and DOS (/r/n) line terminations.
13218
13219 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13220
13221         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
13222         bug #613775
13223
13224 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13225
13226         * src/mcs51/gen.c (genFunction, genEndFunction),
13227         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
13228         and restore of EA so that stack offsets to parameters are
13229         correct when using both critical and reentrant/stack-auto.
13230         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
13231         size (can be triggered in error if sloc is shared between
13232         different sized objects)
13233         * device/include/float.h: fixed macros to explicitly use
13234         unsigned long where needed
13235
13236 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
13237
13238         Feature req. 799831: added code to allow nesting of critical functions
13239         * src/mcs51/gen.c (genFunction, genEndFunction)
13240         * src/ds390/gen.c (genFunction, genEndFunction)
13241
13242 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13243
13244         * src/SDCCsymt.c (sclsFromPtr),
13245         * src/SDCCsymt.h,
13246         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
13247         support for standard C idiom of memory mapped variables; for
13248         example, *((xdata int*)0x1234) = 1 is now internally equivalent
13249         to xdata int at 0x1234 tempvar = 1.
13250         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
13251         provided by Akiya ISHIDA
13252
13253 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
13254
13255         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
13256         * src/SDCCval.c (constVal): added reduction from int to char
13257         * src/SDCCval.c (valMult, valDiv): fixed sign handling
13258         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
13259         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
13260         to ignore the sign
13261         * support/regression/tests/shifts.c: fixed
13262
13263 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13264
13265         * src/z80/gen.c (genXor): Fixed bug #805445
13266
13267 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13268
13269         Fixed bug #621531 (const & volatile confusion in the type chain).
13270         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
13271         refer to the const or volatile state of the pointer itself.
13272
13273         * src/SDCCast.c
13274         * src/SDCCglue.c
13275         * src/SDCCicode.c
13276         * src/SDCCsymt.c
13277         * src/SDCCval.c
13278         * src/SDCC.y
13279         * src/SDCCsymt.h
13280         * src/pic/gen.c
13281         * src/pic/ralloc.c
13282         * src/pic16/gen.c
13283         * src/pic16/ralloc.c
13284         * support/regression/tests/const.c
13285
13286 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13287
13288         When checking for duplicated modules, use absolute paths
13289         instead of relative paths.  Files changed:
13290
13291         * as/mcs51/lklib.c
13292         * link/z80/lklib.c
13293
13294 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13295
13296         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
13297
13298 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13299
13300         * device/include/string.h: added size_t typedef, changed
13301         prototypes to use size_t, eliminated separate reentrant and
13302         non-reentrant declarations, added _memmove declaration
13303         * device/lib/_memcpy.c: changed to use size_t instead of int,
13304         changed /4 to >>2 to avoid division library call
13305         * device/lib/_memcmp.c,
13306         * device/lib/_memset.c,
13307         * device/lib/_strncat.c,
13308         * device/lib/_strncpy.c,
13309         * device/lib/_strncmp.c: changed to use size_t instead of int
13310         * device/lib/_memmove.c: new file (fixed bug #772294)
13311         * device/lib/Makefile.in: added _memmove.c
13312         * device/lib/z80/asm_strings.s: fixed bug #772290
13313         * support/regression/tests/bitfields.c: attempt to fix host assertion
13314         failure on amd64-unknown-linux2.2
13315
13316 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13317
13318         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
13319         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
13320         * as/z80/asmain.c (main): fixed bug #801766
13321
13322 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
13323
13324         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
13325         compilers
13326
13327 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13328
13329         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
13330         reported in bug #800609
13331
13332 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
13333
13334         * Top header beautifications in src/pic16 directory:
13335           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
13336           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
13337           pcoderegs.h, ralloc.c, ralloc.h
13338         * main.c: added top header and GPL license notice
13339         * pcode.c: fixed the if-conditional warning
13340
13341 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
13342
13343         * device/lib/_mullong.c: replaced int by short for gcc
13344
13345 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13346
13347         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
13348         and JUMPTABLE iCodes properly now (worked by accident before)
13349         * src/mcs51/gen.c (leftRightUseAcc),
13350         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
13351         iCode properly now. Use getSize instead of nRegs since a & b
13352         aren't part of the nRegs tally.
13353
13354 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
13355
13356         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
13357         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
13358           before instructions that use the _STATUS register
13359
13360 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
13361
13362         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
13363         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
13364         fetching of the pointer
13365         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
13366         copied from genNearPointerSet()
13367         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
13368         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
13369         If they pop r0/r1 they must be called in the opposite order than aopOp().
13370         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
13371         (resp. --stack-auto), prepared for --xstack
13372
13373 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13374
13375         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
13376
13377 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
13378
13379         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
13380         these ports have their own __sdcc_external_start()
13381
13382 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
13383
13384         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
13385         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
13386         type for bits was changed. It resulted in bit variables becoming
13387         global, which is not permitted in PIC 14 assembly output.
13388
13389 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13390
13391         * doc/sdccman.lyx: various additions and updates. Rearranged sections
13392
13393 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13394
13395         Z80 and MCS51 linkers complaint if a public symbol is defined
13396         in more than one library module:
13397
13398         * as/mcs51/lklib.c
13399         * link/z80/lklib.c
13400         * as/mcs51/Makefile.in
13401
13402 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13403
13404         A few small changes that speed up the peephole optimizer.
13405
13406         * src/SDCCpeeph.c
13407
13408 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13409
13410         Try to make the peephole optimizer smarter by maintaining
13411         an association between the assembly source code and the
13412         iCodes that originated them. Put this information to use
13413         with a new peephole rule condition "notVolatile" so that
13414         the rules can be aggressive yet still safe.
13415
13416         * src/SDCCpeeph.c
13417         * src/SDCCpeeph.h
13418         * src/mcs51/gen.c
13419         * src/mcs51/peeph.def
13420
13421 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13422
13423         Fixed bug #741761
13424
13425         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
13426         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
13427         if the left or right operand symbols have the accuse flag set.
13428
13429 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13430
13431         Changed the type of the result of the ! (NOT) operator to char;
13432         previously it returned the same type as the source. This allows
13433         us to eliminate all the genFloatNot functions (all of its target
13434         implementations were very buggy) since !float can use the same
13435         code as !long now.
13436
13437         * src/SDCCicode.c (ast2iCode): ! returns char
13438         * src/mcs51/gen.c (genNot, genNotFloat),
13439         * src/ds390/gen.c (genNot, genNotFloat),
13440         * src/z80/gen.c (genNot, genNotFloat),
13441         * src/pic/gen.c (genNot, genNotFloat),
13442         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
13443
13444 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
13445
13446         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
13447         1. Interrupt would not compile properly. Ensure PCLATH register is saved
13448            during interrupts. Ensure WSAVE is located at a shared bank address.
13449         2. Fixed page selection in some places
13450         3. Fixed BTFSS/C to where necessary use registers directly and not simply
13451            the registers name strings.
13452         4. Fixed "signed / unsigned compare" compiler warnings.
13453         5. The PIC port manages its own allocation of the general purpose
13454            registers, but makes no attempt to reuse them. As a result when
13455            compiling it soon runs out of general purpose registers. Some
13456            additional code was added to the files pcode.c and device.c to walk
13457            through the function call tree and rename the registers so that they
13458            get reused.
13459
13460         * src/pic/device.c
13461         * src/pic/gen.c
13462         * src/pic/glue.c
13463         * src/pic/pcode.c
13464         * src/pic/pcode.h
13465         * src/pic/ralloc.c
13466         * src/pic/ralloc.h
13467         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
13468         genPlus() & genMinus() when the result is the same as left or right
13469
13470 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13471
13472         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
13473
13474 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13475
13476         Made bitfield a distinct type from bit so that bitfields
13477         convert as per ANSI C and bits retain their traditional
13478         boolean style behaviour. Implemented bitfield support in
13479         the z80 port.
13480
13481         * src/SDCCsymt.h,
13482         * src/SDCCsymt.c,
13483         * src/SDCCast.c,
13484         * src/cdbFile.c,
13485         * src/mcs51/gen.c,
13486         * src/ds390/gen.c: bit v bitfield split
13487         * src/z80/gen.c: New support for bitfields
13488         * support/regression/tests/bitfields.c: reenabled z80,
13489         added more tests
13490
13491 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13492
13493         Rules 246.x, 247.x relate to bitfields, the others speed up
13494         access to xdata mapped I/O devices.
13495
13496         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
13497
13498 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13499
13500         Cleaned up genPackBits and genUnpackBits and added two helper
13501         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
13502         for literal assignments in genPackBits (thanks to Frieder for
13503         reminding me).
13504
13505         * src/mcs51/gen.c
13506         * src/ds390/gen.c
13507
13508 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13509
13510         Fixed bug #748310 (pointer to function type mishandled when the
13511         function name is omitted). Also fixed a SIGSEGV when a function
13512         attribute (reentrant, etc) is used on a non-function or on a
13513         function but misplaced before the parameter list.
13514
13515         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
13516         bug #748310
13517         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
13518         * support/Util/SDCCerr.h,
13519         * support/Util/SDCCerr.c: Added func attr misuse error msg
13520
13521 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
13522
13523         Fixed bug #787649 by anonymous
13524         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
13525         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
13526
13527 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13528
13529         Fixed numerous bitfield problems.
13530
13531         * src/SDCC.y: More bitfield related error checking
13532         * src/SDCCsymt.h,
13533         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
13534         * support/Util/SDCCerr.h,
13535         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
13536         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
13537         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
13538         * support/regression/tests/bitfields.c: tests added
13539
13540 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13541
13542         Made the constant following the "interrupt" keyword optional. If
13543         omitted, the function will not automatically be given an entry
13544         in the interrupt vector table (similar to #pragma NOIV, but
13545         less syntacticly kludgy). The interrupt number is also now
13546         range checked. Also fixed a bug in the high order bit example
13547         in the manual.
13548
13549         * src/SDCC.y
13550         * src/SDCCmem.c
13551         * src/SDCCglue.c
13552         * src/SDCCsymt.h
13553         * support/Util/SDCCerr.c
13554         * support/Util/SDCCerr.h
13555         * doc/sdccman.lyx
13556
13557 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
13558
13559         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
13560         * src/SDCCicode.c (operandOperation): rewritten some ops
13561         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
13562         * src/SDCCsymt.c (computeType): literals are handled the same way as any
13563         other type
13564         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
13565         be re-activated by defining REDUCE_LITERALS)
13566         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
13567         unsigned, but are signed by default
13568         * src/SDCCval.c (constVal): rearranged
13569         * src/SDCCval.c (valMod): preliminary fix
13570         * src/SDCCval.c (valCastLiteral): use TYPE_* types
13571         * support/regression/literalop.c: added, work in progress
13572
13573 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13574
13575         Generate warnings for useless declarations like "char data;"
13576         that don't do what new users expect.
13577
13578         * src/SDCC.y
13579         * support/Util/SDCCerr.h
13580         * support/Util/SDCCerr.c
13581
13582 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
13583
13584         * src/SDCCval.c (valMult): fix overflow detection of negative int
13585
13586 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13587
13588         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
13589
13590         Changes to support big endian targets:
13591
13592         * src/ports.h
13593         * src/SDCCglue.c
13594         * src/avr/main.c
13595         * src/ds390/main.c
13596         * src/izt/i186.c
13597         * src/mcs51/main.c
13598         * src/pic/main.c
13599         * src/pic16/main.c
13600         * src/xa51/main.c
13601         * src/z80/main.c
13602
13603 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
13604
13605         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
13606         * device/lib/time.c: fixed warning "integer overflow in expression"
13607
13608 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
13609
13610         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
13611         * src/SDCCval.c (constVal): changed default to signed; hex and octal
13612         constants are unsigned; added recognition of "u" flag for unsigned
13613         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
13614         * src/SDCCval.c (valDiv, valMod): fixed signdness
13615         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
13616         signedness of modulo, left and right shift
13617         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
13618         * support/Util/SDCCerr.h: added warning W_INT_OVL
13619         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
13620         * src/SDCCast.c (ast_print): improved output of constants
13621
13622 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13623
13624         Fixed some warnings when building with MSVC:
13625
13626         * as/mcs51/asdata.c
13627         * as/z80/asdata.c
13628         * as/mcs51/asm.h
13629         * as/z80/asm.h
13630         * link/z80/aslink.h
13631         * link/z80/lkdata.c
13632         * link/z80/lkeval.c
13633         * link/z80/lkgb.c
13634         * link/z80/lkihx.c
13635         * link/z80/lks19.c
13636         * link/z80/lksym.c
13637         * support/cpp2/cpplib.c
13638         * src/ds390/gen.c
13639         * src/mcs51/gen.c
13640
13641 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
13642
13643         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
13644
13645 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13646
13647         * support/librarian/clean.mk: Do not remove Makefile.
13648         * support/librarian/Makefile: added.
13649
13650 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13651
13652         Added librarian to MSVC build:
13653         * all.dsp
13654         * sdcc.dsw
13655         * support/librarian/librarian.dsp
13656
13657         'configure' not needed for librarian, removed:
13658         * support/librarian/configure
13659         * support/librarian/configure.in
13660         * support/librarian/config_in.h
13661         * support/librarian/Makefile.in
13662
13663         Hopefully these ones built the librarian and the rest of sdcc properly:
13664         * Makefile
13665         * Makefile.common.in
13666
13667         Messed up 'configure', so revert to previous version:
13668         * configure
13669         * configure.in
13670
13671 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
13672
13673         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
13674         there, while the mantissa of a double is "only" 53 bits wide.
13675
13676 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13677
13678         Adding sdcclib to the build.  MSVC project coming soon.
13679         Files added/changed:
13680
13681         * support/librarian/clean.mk
13682         * support/librarian/configure
13683         * support/librarian/configure.in
13684         * support/librarian/config_in.h
13685         * support/librarian/Makefile.bcc
13686         * support/librarian/Makefile.in
13687         * support/librarian/sdcclib.c
13688         * Makefile.bcc
13689         * Makefile
13690         * Makefile.common.in
13691         * configure
13692         * configure.in
13693
13694 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13695
13696         Linker now complaints if linked modules have conflicting options, for
13697         example, one compiled using --model-large and another one compiled with
13698         --model-small.  The following files were modified:
13699
13700         * as/mcs51/asdata.c
13701         * as/mcs51/aslink.h
13702         * as/mcs51/asm.h
13703         * as/mcs51/asmain.c
13704         * as/mcs51/asout.c
13705         * as/mcs51/i51pst.c
13706         * as/mcs51/lkdata.c
13707         * as/mcs51/lklibr.c
13708         * as/mcs51/lkmain.c
13709         * as/z80/asdata.c
13710         * as/z80/asm.h
13711         * as/z80/asmain.c
13712         * as/z80/asout.c
13713         * as/z80/z80pst.c
13714         * link/z80/aslink.h
13715         * link/z80/lkdata.c
13716         * link/z80/lklibr.c
13717         * link/z80/lkmain.c
13718         * src/SDCCglue.c
13719
13720 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13721
13722         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
13723         as/mcs51/lklibr.c: Generate a warning when a library is not found.
13724
13725 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
13726
13727         * src/z80/mappings.i: fix _mul[us][int,long] entries
13728
13729 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13730
13731         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
13732
13733 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
13734
13735         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
13736         * support/regression/tests/bitopcse.c: added
13737         fixed warning:
13738         * src/avr/gen.c:
13739         * src/pic/gen.c:
13740         * src/pic16/gen.c:
13741         * src/z80/gen.c:
13742         * src/xa51/gen.c:
13743
13744 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13745
13746         added support for new library format to z80, gbz80 linkers:
13747         *link/z80/aslink.h
13748         *link/z80/lklex.c
13749         *link/z80/lklib.c
13750         *link/z80/lklist.c
13751
13752 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
13753
13754         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
13755         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
13756
13757 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
13758
13759         added DUMMY_READ_VOLATILE:
13760         * src/SDCC.y:
13761         * src/avr/gen.c:
13762         * src/xa51/gen.c:
13763         * src/z80/gen.c:
13764         * src/pic/gen.c:
13765         * src/pic16/gen.c:
13766         * src/mcs51/gen.c:
13767         * src/ds390/gen.c:
13768         * src/SDCCcse.c (algebraicOpts): many improvements
13769         * src/SDCCcse.h: removed algebraicOpts()
13770         * src/SDCCicode.c (picDummyRead): added
13771
13772 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13773
13774         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
13775         "Insufficient space in data memory".
13776
13777 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13778
13779         * src/mcs51/gen.c: fixed bug #771358
13780         * src/z80/gen.c: fixed bug #759087
13781
13782 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
13783
13784         * src/pic16/glue.c: minor cleanup by Vangelis
13785
13786 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13787
13788         * device/include/regc515c.h: fixed #758477
13789         * device/lib/_gptrget.c: saving some cycles in generic pointer get
13790         * device/lib/_gptrput.c: saved a few bytes
13791         * my tab spacing is 8, yours too?)
13792         * device/lib/_ser.c: process RX bytes earlier than TX bytes
13793         * device/lib/serial.c: process RX bytes earlier than TX bytes
13794         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
13795
13796 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13797
13798         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
13799
13800 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13801
13802     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
13803
13804 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
13805
13806         * device/lib/Makefile.in: bad fix, reverted to 1.43
13807
13808 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
13809
13810         * device/lib/Makefile.in: added missing z80 object files
13811
13812 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
13813
13814         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
13815         pic16 progress by Vangelis:
13816         * src/SDCCglobl.h:
13817         * src/SDCCmain.c:
13818         * src/pic/Makefile:
13819         * src/pic:
13820         * pic/Makefile:
13821         * pic16/device.c:
13822         * pic16/device.h:
13823         * pic16/gen.c:
13824         * pic16/gen.h:
13825         * pic16/genarith.c:
13826         * pic16/glue.c:
13827         * pic16/main.c:
13828         * pic16/pcode.c:
13829         * pic16/pcode.h:
13830         * pic16/pcodepeep.c:
13831         * pic16/peeph.def:
13832
13833 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13834
13835     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
13836
13837 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13838
13839     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
13840     added gbz80 build to MSVC project.
13841     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
13842     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
13843     from 8051 stuff and setup so it links using a .lnk file.
13844
13845 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13846
13847     * support/librarian/sdcclib.c: sdcc librarian.
13848     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
13849     with sdcclib.
13850
13851 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13852
13853     * as/mcs51/lkmain.c: properly handle extensions in function afile.
13854
13855 2003-07-02  Borut Razem <borut.razem AT siol.net>
13856
13857         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
13858         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
13859         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
13860         src/xa51/main.c, src/z80/main.c:
13861         virtualization of glue() function: each port has it's own glue function,
13862         which is accessed by do_glue function pointer in PORT.general structure
13863
13864 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
13865
13866         * DS800C400 fun, improved ROM interface and tinibios.
13867
13868 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
13869
13870         * More support for DS80C400. Now includes beginning of interface to ROM.
13871
13872 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
13873
13874         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
13875
13876 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13877
13878         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
13879
13880 2003-06-19  Borut Razem <borut.razem AT siol.net>
13881
13882         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
13883
13884 2003-06-19  Borut Razem <borut.razem AT siol.net>
13885
13886         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
13887         fixed Z80 port - crt0.o: cannot open.
13888
13889 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
13890
13891         * support/Util/MySystem.c (merge_command): revert bad fix
13892
13893 2003-06-18  Borut Razem <borut.razem AT siol.net>
13894
13895         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
13896
13897 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13898
13899         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
13900         option --use-stdout sends errors to stdout instead of stderr.
13901
13902 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
13903
13904         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
13905
13906 2003-06-15  Borut Razem <borut.razem AT siol.net>
13907
13908         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
13909         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
13910         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
13911         fixed width array of pointers replaced with sets;
13912         multiple include and lib paths ared transferred to preprocessor and linker
13913         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
13914         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
13915         fixed width array of pointers
13916         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
13917         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
13918         fixupPath(), getPathDifference()
13919         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
13920         fixed width array of pointers
13921
13922 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
13923
13924         * src/pic16/ralloc.c: fix warnings
13925         * src/pic16/pcode.c: fix warning
13926
13927 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
13928
13929          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
13930         know all the details, but essentially this set of changes enable
13931         the pic16 port to generate movff instructions and generate assembler
13932         directives,
13933         * src/SDCCmain.c:
13934         * src/pic16/gen.c:
13935         * src/pic16/glue.c:
13936         * src/pic16/pcode.c:
13937         * src/pic16/device.c:
13938         * src/pic16/main.c:
13939         * src/pic16/pcode.h:
13940         * src/pic16/pcoderegs.c:
13941         * src/pic16/ralloc.c:
13942         * src/pic16/ralloc.h:
13943
13944 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13945
13946         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
13947         added option --vc, so sdcc errors and warnings are compatible with
13948         Microsoft Visual Studio.
13949
13950 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13951
13952         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
13953           device/lib/libfloat.lib: added atof function.
13954
13955 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
13956
13957         * doc/sdccman.lyx: updated to Lyx 1.3
13958         * doc/cdbfileformat.lyx: updated to Lyx 1.3
13959         * doc/test_suite_spec.lyx: updated to Lyx 1.3
13960         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
13961
13962 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
13963
13964         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
13965
13966 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13967
13968         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
13969           additions to the "related tools/documentation" section
13970
13971 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
13972
13973         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
13974
13975 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
13976
13977         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
13978         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
13979
13980 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
13981
13982         * doc/sdccman.lyx: fix double dash and other minor things
13983         * doc/Makefile: fix double dash
13984
13985 2003-05-28  Karl Bongers(patches from Martin Helmling)
13986         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
13987           condition and ignore commands.
13988
13989 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13990
13991         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
13992           is in parts still quite out of date, I did changes as far as I felt makes sense
13993           for a non-native english speaker.
13994           Please feel free to add to the manual or to correct my changes.
13995         * doc/Makefile: undid touching the date of intermediate tex files.
13996
13997 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13998
13999         * doc/sdccman.lyx: Manual has an index now
14000
14001 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
14002
14003         Finalize muluint/mulsint and mululong/mulslong merging:
14004         * device/lib/_mulint.c
14005         * device/lib/_mullong.c
14006         * device/lib/gbz80/mul.s
14007         * device/lib/gbz80/stubs.s
14008         * device/lib/z80/mul.s
14009         * device/lib/z80/stubs.s
14010         * src/SDCCsymt.c (initCSupport)
14011
14012 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14013
14014         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
14015         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
14016           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
14017           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
14018           instead of /Zm500.
14019
14020 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14021
14022         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
14023           the regression tests I'm not brave enough to enable 245.b, 245.c
14024         * doc/sdccman.lyx: added latex preamble for hyperref package.
14025           Using pdflatex this will give you a hyperlinked pdf file with
14026           bookmarks. (prepend '%' before /usepackage if this breaks something)
14027
14028 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14029
14030          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
14031
14032 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
14033
14034         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
14035
14036 2003-05-21    <johan AT balder>
14037
14038         * src/SDCCglue.c (printIval): fixed bug #739934
14039
14040 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
14041
14042         Applied patch from bug 737905 (renamed yylineo to mylineno):
14043         * src/altlex.c
14044         * src/SDCCast.c
14045         * src/SDCglobl.h
14046         * src/SDCC.lex
14047         * src/SDCCsymt.c
14048         * src/SDCCval.c
14049         * src/pic16/pcode.c: Cleaned warnings
14050         * src/pic16/pcodeflow.c: Cleaned warnings
14051         * src/pic16/pcoderegs.c: Cleaned warnings
14052
14053 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
14054
14055         * src/pic16/pcode.c: Cleaned warnings
14056         * src/pic16/pcodepeep.c: Cleaned warnings
14057         * src/pic16/ralloc.c: Cleaned warnings
14058
14059 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
14060
14061         * doc/sdccman.lyx: fixed bug 739745
14062         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
14063
14064 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
14065
14066         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
14067         it can be defined with CFLAGS when running configure
14068         * src/SDCCmain.c: fixed compiling + linking with object files
14069
14070 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
14071
14072         * configure.in: configure for pic16 port,
14073             added --disable-pic16-port
14074         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
14075         * src/SDCCmain.c: linkOptions is changed to set *,
14076             added if/endif conditional macros to remove options help
14077             messages from optionsTable when a port is not configured, added
14078             support for the PIc16 port in the ports table, when executing
14079             the compiler with no port specified on command line, a default
14080             port is selected with the new macro DEFAULT_PORT which is
14081             defined in port.h, in setDefaultOptions() linkOptions is removed
14082             from initialization assignment, since now it is a set,
14083             parseCmdLine uses setParseWithComma for linkOptions, in
14084             linkEdit() linkOptions are accessed with new function indexSet()
14085             which returns the i'th item of a set variable. See SDCCset.c, in
14086             linkEdit() when calling buildCmdLine(), added linkOptions as
14087             last argument. Now users can pass arguments to gplink via the
14088             -Wl option, main() uses pic16glue() to glue up pic16 programs
14089         * src/SDCCpeeph.c: various changes to support pic16
14090         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
14091             return the i'th item of the set
14092         * src/SDCCset.h: added function prototype for indexSet()
14093         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
14094         * src/clean.mk: added pic16 in CLEANALLPORTS variable
14095         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
14096             added macro DEFAULT_PORT
14097         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
14098         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
14099             generated
14100         * src/pic16/glue.c: commented out some error producing lines
14101         * src/pic16/main.c: __config directives are commented out to stop
14102             gpasm complaining and test the linkage with gplink, _linkCmd and
14103             _asmCmd changed to be more gplink and gpasm friendly
14104         * src/pic16/peeph.def: peep rule 3 is commented out, since it
14105             produced an error when parsed, peep rule 12 is added to utilize
14106             movff, but it is commented out since the pCode does not support
14107             yet a command with 2 address arguments
14108
14109 2003-05-18    <johan AT balder>
14110
14111         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
14112         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
14113 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
14114
14115         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
14116   Added feature to script commands from file.
14117
14118 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
14119
14120         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
14121         * src/SDCCutil.c: include ctype.h for win32
14122
14123 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
14124
14125         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
14126
14127 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
14128
14129         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
14130   Fixed so you can set breakpoints prior to run, run does not stop
14131   on entry now.  Add tbreak.  Other enhancements and fixes for use
14132   with ddd.
14133
14134 2003-05-12  Borut Razem <borut.razem AT siol.net>
14135
14136         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
14137
14138 2003-05-11  Borut Razem <borut.razem AT siol.net>
14139
14140         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
14141         the path of bin directory, so that PATH is the only env. variable, which has to be set
14142         in case of standard installation.
14143         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
14144         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
14145         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
14146
14147 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
14148
14149         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
14150         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
14151         temp files are in the port dir; clean the gen/test directory when
14152         generating new test.c
14153         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
14154         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
14155         * support/regression/tests/zeropad.c: added
14156
14157 2003-05-09    <johan AT balder>
14158
14159         * src/SDCCglue.c: fixed bug #597940
14160
14161 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
14162
14163         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
14164   cache sfr, optimize next,step, fix off by one sourceline,
14165   support ddd list function.
14166         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
14167
14168 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
14169
14170         * support/regression/HTMLgen.py: added compare_s2f()
14171         * support/regression/Makefile: redo 1.27
14172         * support/regression/generate-cases.py: redo 1.5
14173
14174 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
14175
14176         * support/regression/tests/float.c: workaround 33 bit hex constant
14177         * support/regression/tests/simplefloat.c: fix division for host
14178
14179 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
14180
14181         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
14182         that tame's the PIC's over-aggressive optimizer.
14183
14184 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14185
14186          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
14187          support for MSVC.
14188
14189 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
14190
14191         Initial support for DS80C400. "Hello world" runs on TINIm400
14192         (with polled I/O).
14193
14194 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
14195
14196          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
14197          * Some notes on ddd usage added in debugger/README
14198          Martin Helmling adding more features and fixes for ddd GUI debugger.
14199          Code added for nexti, stepi, up, down, and other adjustments.
14200
14201 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
14202
14203         * src/pic/pCodepeep.c non-wildcard asmops are now handled
14204         * src/pic/peeph.def Added two rules to optimize carry manipulation
14205         * src/pic/* removed debug printfs
14206
14207 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
14208
14209         * debugger/mcs51/cmd.c: added header newalloc.h
14210
14211 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
14212
14213         * as/Makefile: new EXEEXT
14214         * as/z80/Makefile: remove trailing slash of BUILDIR
14215         * as/z80/clean.mk: new EXEEXT
14216         * Makefile.common.in: add to CFLAGS (and others), don't replace it
14217         * support/cpp2/Makefile.in: new EXEEXT
14218         * src/pic/glue.c (pic14emitRegularMap): fixed warning
14219
14220 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
14221
14222         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
14223         EXEEXT was introduced to fix all related problems with targets
14224         "clean", "install" and "uninstall"; a couple of further flaws
14225         especially with "clean" have been fixed too
14226         * as/mcs51/Makefile.in
14227         * as/mcs51/clean.mk
14228         * as/z80/Makefile
14229         * Makefile
14230         * clean.mk
14231         * debugger/mcs51/Makefile.in
14232         * debugger/mcs51/clean.mk
14233         * link/z80/Makefile
14234         * link/z80/Makefile.in
14235         * link/z80/clean.mk
14236         * link/Makefile
14237         * packihx/Makefile.in
14238         * packihx/clean.mk
14239         * sim/ucsim/Makefile
14240         * sim/ucsim/clean.mk
14241         * sim/ucsim/avr.src/Makefile.in
14242         * sim/ucsim/avr.src/clean.mk
14243         * sim/ucsim/s51.src/Makefile.in
14244         * sim/ucsim/s51.src/clean.mk
14245         * sim/ucsim/xa.src/Makefile.in
14246         * sim/ucsim/xa.src/clean.mk
14247         * sim/ucsim/z80.src/Makefile.in
14248         * sim/ucsim/z80.src/clean.mk
14249         * sim/ucsim/main_in.mk
14250         * sim/ucsim/packages_in.mk
14251         * sim/ucsim/gui.src/Makefile.in
14252         * sim/ucsim/gui.src/serio.src/Makefile.in
14253         * sim/ucsim/gui.src/serio.src/clean.mk
14254         * src/Makefile.in
14255         * src/clean.mk
14256         * support/cpp2/Makefile.in
14257         * support/cpp2/clean.mk
14258         * support/makebin/Makefile
14259         * support/makebin/clean.mk
14260         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
14261         * doc/sdccman.lyx: --program-suffix no longer needed
14262
14263 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
14264
14265          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
14266          Martin Helmling added support for ddd GUI debugger.
14267          Code added to display assembly, set variables, and other commands
14268          to interface to ddd.
14269
14270 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
14271
14272         * as/Makefile: fix target clean
14273         * as/clean.mk: fix target clean
14274         * as/z80/clean.mk: fix target clean
14275
14276 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
14277
14278         * Makefile.common.in: added  AT EXEEXT AT
14279         * configure.in: removed all mingw32 stuff
14280         * configure: rebuilt from configure.in
14281         * doc/sdccman.lyx: updated section "installation"
14282         * support/scripts/sdcc_mingw32: adapted to configure
14283         * support/scripts/sdcc_cygwin_mingw32: added
14284
14285 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
14286
14287         * src/pic Added object file support for the PIC port
14288         * src/pic Applied patch from Craig Franklin (this started the object file support)
14289         * src/regression Updated the PIC regression tests for object files
14290
14291 2003-04-20  Borut Razem <borut.razem AT siol.net>
14292
14293         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
14294           lklex.c: In function `getfid':
14295           lklex.c:203: warning: array subscript has type `char'
14296         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
14297           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
14298         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
14299           stack handling macros
14300
14301 2003-04-19  Borut Razem <borut.razem AT siol.net>
14302
14303         * "handling space characters in file path" task:
14304         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
14305         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
14306         * support/Util/MySystem.h: make it self-sufficient
14307         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
14308           src/z80/main.c, sdcc/as/mcs51/lklex.c:
14309           handling space characters in file path
14310         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
14311           (it will be used by assemblers, which have their own includes, e.g. gpasm)
14312         * support/Util/MySystem.c: handling space characters in executable's path
14313
14314 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
14315
14316         * as/z80/Makefile: fix permanent rebuild of z80
14317         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
14318         * support/regression/tests/bitfields.c: added Johan's bitfields.c
14319
14320 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
14321
14322         * src/SDCCopt.c: add special case optimization to replace modulo by
14323           a power of two with a bitwise AND.
14324
14325 2003-04-18    <johan AT balder>
14326
14327         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
14328
14329 2003-04-17    <johan AT balder>
14330
14331         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
14332         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
14333
14334 2003-04-13  Borut Razem <borut.razem AT siol.net>
14335
14336         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
14337         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
14338           fixed mingw problem in adl_NORMALIZE_PATH
14339
14340 2003-04-12  Borut Razem <borut.razem AT siol.net>
14341
14342         * fixed "#pragma SAVE/RESTORE can not be nested":
14343         * src/SDCC.lex: reworked pragma handling functions
14344         * sdcc/src/SDCCglobl.h: reworked stack handling macros
14345         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
14346
14347 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
14348
14349         * src/SDCCutil.c (pathEquivalent): defined but not used
14350         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
14351         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
14352         * configure: rebuilt from configure.in
14353         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
14354         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
14355         * device/include/Makefile.in: replace sdcc_datadir
14356         * device/lib/Makefile.in: replace sdcc_datadir
14357         * Makefile.common.in: add LDFLAGS from configure
14358         * packihx/Makefile.in: use LDFLAGS
14359         * src/Makefile.in: use LDFLAGS
14360         * support/cpp2/Makefile.in: add LDFLAGS from configure
14361         * support/makebin/Makefile: use LDFLAGS
14362         * .version: bumped version number to 2.3.5
14363
14364 2003-04-12  Borut Razem <borut.razem AT siol.net>
14365
14366         * completed "different paths" task:
14367         * src/SDCCmacro.c: fixed bug in handling quotes
14368         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
14369         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
14370
14371 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
14372
14373         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
14374
14375 2003-04-11 kevin Vigor <kevin AT vigor.nu>
14376
14377         * ds390/gen.c ds390/peeph.def: fix bug 706781
14378
14379 2003-04-11  Borut Razem <borut.razem AT siol.net>
14380
14381         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
14382
14383 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
14384
14385         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
14386         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
14387          set - this bit used to not be set...).
14388         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
14389           bad code in PIC Port
14390         * src/regression/and2.c added to test bug 609268
14391         * src/regression/Makefile added and2.c to regression test
14392
14393
14394 2003-04-08    <johan AT CP255758-A>
14395
14396         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
14397         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
14398         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
14399
14400 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
14401
14402         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
14403         fix bug #487815
14404         * support/cpp2/Makefile.in: fix bug #487815
14405         * configure: rebuilt from configure.in
14406         * Makefile.common.in: docdir changed, new path suffixes
14407         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
14408         * sdcc_vc_in.h: reflect changes from sdccconf.h
14409         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
14410         * src/SDCCutil.h: remove BINDIR hack
14411         * doc/sdccman.lyx: update new path hierarchy
14412
14413 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
14414
14415         * src/SDCCpeeph.c: added okToRemoveSLOC test
14416
14417 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
14418
14419         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
14420
14421 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
14422
14423         * src/SDCCpeeph.c: added labelIsReturnOnly test
14424         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
14425
14426 2003-04-05    <johan AT balder>
14427
14428         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
14429         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
14430         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
14431         * src/SDCCast.c: fixed a warning
14432         * src/SDCCast.h: fixed a warning
14433         * src/SDCCicode.c (operandFromAst): fixed a warning
14434
14435 2003-04-04    <johan AT balder>
14436
14437         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
14438         * src/SDCCast.c (decorateType): fixed bug #715076
14439         * src/SDCC.y: fixed bug #702907
14440
14441 2003-04-03    <johan AT balder>
14442
14443         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
14444         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
14445         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
14446         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
14447         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
14448
14449 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
14450
14451         * _decdptr.c: fix return values
14452         * _gptrget.c: fix return values
14453         * _gptrgetc.c: fix return values
14454         * _gptrput.c: fix return values
14455         * _mulint.c: fix return values
14456         * as/z80/Makefile: fix 'make -j' problem
14457
14458 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
14459
14460         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
14461         * configure.in: big cleanup, updated to autoconf 2.5x
14462         * configure: rebuilt from configure.in
14463         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
14464         * sdcc_vc_in.h: reflect changes from sdccconf.h
14465         * doc/Makefile: fixed a flaw in "make install"
14466
14467 2003-04-02    <johan AT balder>
14468
14469         * src/ds390/gen.c (genCmp): no comments
14470         * src/mcs51/gen.c (genCmp): no comments
14471         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
14472         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
14473
14474 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
14475
14476         * support/regression/generate-cases.py: place generated file in given sub directory
14477         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
14478         * support/regression/Makefile: improvements for 'make -j';
14479         side effect: it's simpler and faster now
14480
14481 2003-03-31  Borut Razem <borut.razem AT siol.net>
14482
14483         * src/z80/main.c: link-{port} and as-{port} defined without path
14484         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
14485
14486 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
14487
14488         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
14489
14490 2003-03-30  Borut Razem <borut.razem AT siol.net>
14491
14492         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
14493           changed type of list parameter to set
14494         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
14495         * src/port.h: changed type of do_assemble() parameter to set
14496         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
14497           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
14498           definition of "cppoutfilename" macro with NULL value in preProcess()
14499         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
14500         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
14501         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
14502           replaced with set *binPathSet
14503         * shash_add() deallocates the item, if allready exsists, before adding the new one
14504         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
14505
14506 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
14507
14508         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
14509           a nested for loop bug in the PIC port
14510         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
14511           for loops
14512
14513 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
14514
14515         * support/Util/dbuf.h: remove C++ stuff to make it portable
14516
14517 2003-03-28  Borut Razem <borut.razem AT siol.net>
14518
14519         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
14520           literal strings in stringLiteral()
14521         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
14522         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
14523           to the project
14524
14525 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
14526
14527         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
14528
14529 2003-03-26    <johan AT balder>
14530
14531         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
14532         * src/ds390/gen.c (saveRegisters): catched symbol abuse
14533         * src/SDCCast.c (decorateType): fixed " -v < 3"
14534
14535 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
14536
14537         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
14538         Added Lenny Story's debug infrastructure changes:
14539         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
14540         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
14541         * src/cdbFile.c: added
14542         * src/SDCCdebug.c: added
14543         * src/SDCCdebug.h: added
14544         * src/SDCCast.c (createFunction)
14545         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
14546         * src/SDCCmain.c (parseCmdLine, main)
14547         * src/SDCCmem.c (redoStackOffsets)
14548         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
14549         * src/SDCCsymt.h
14550         * src/common.h
14551         * src/avr/gen.c (genAVRCode)
14552         * src/ds390/gen.c (gen390Code)
14553         * src/mcs51/gen.c (gen51Code)
14554         * src/pic/gen.c (genpic14Code)
14555         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
14556         * src/xa51/gen.c (genXA51Code)
14557         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
14558
14559 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14560
14561         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
14562         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
14563
14564 2003-03-22    <johan AT balder>
14565
14566         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
14567
14568 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
14569
14570         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
14571         * doc/cdbfileformat.lyx: added, written by Lenny Story
14572         * doc/Makefile: added cdbfileformat.lyx
14573         * doc/clean.mk: added cdbfileformat.lyx
14574
14575 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
14576
14577         * src/mcs51/peeph.def: fix bug #705773
14578
14579 2003-03-20    <johan AT balder>
14580
14581         An sfr/sbit can have an "at #" AND an initializer
14582         * src/SDCCsymt.c (checkSClass):
14583         * src/SDCCmem.c (allocGlobal):
14584         * src/SDCCmem.c (allocLocal):
14585         * src/SDCCast.c (createBlock):
14586
14587 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
14588
14589         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
14590
14591 2003-03-16    <johan AT balder>
14592
14593         Undid the hackup of const and volatile, the problem is much bigger
14594         * src/SDCC.y:1.65
14595         * src/SDCCast.c:1.171
14596         * src/SDCCglue.c:1.138
14597         * src/SDCCicode.c:1.146
14598         * src/SDCCsymt.c:1.150
14599         * src/SDCCval.c:1.65
14600
14601 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
14602
14603         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
14604         * src/ds390/gen.c (genAddrOf): fixed bug #704087
14605
14606 2003-03-13    <johan AT balder>
14607
14608         Hackup const and volatile modifiers in type chains a bit:
14609         * src/SDCC.y:1.63
14610         * src/SDCCast.c:1.169
14611         * src/SDCCglue.c:1.136
14612         * src/SDCCicode.c:1.143
14613         * src/SDCCsymt.c1.146
14614         * src/SDCCsymt.h1.59
14615         * src/SDCCval.c:1.63
14616
14617 2003-03-12    <johan AT balder>
14618
14619         * src/SDCCBBlock.h: more LRH debugging junk
14620         * src/SDCCcflow.h: more LRH debugging junk
14621         * src/SDCCloop.c: more LRH debugging junk
14622         * src/SDCC.y (struct_declaration): fixed bug #697590
14623         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
14624         * src/ds390/gen.c (aopForRemat): fixed bug #700031
14625         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
14626
14627 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14628         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
14629         test function names must now match exactly).
14630         * src/SDCCcse.c: added special case in findCheaperOp to allow
14631         extending a short integer. Makes less awful code for bug 700121 test case.
14632
14633 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14634
14635         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
14636         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
14637
14638 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14639
14640         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
14641         actually called (operandsNotEqual() was called for all
14642         operandsNotEqualX tests).
14643
14644 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14645
14646         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
14647         with shorter literals. Fixes bug 700121.
14648
14649 2003-03-11    <johan AT balder>
14650
14651         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
14652
14653 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
14654
14655         * src/SDCCloop.c (mergeRegions): an evil beast is dead
14656         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
14657
14658 2003-03-10  Borut Razem <borut.razem AT siol.net>
14659
14660         * src/SDCCmain.c: pipe preprocessor's output
14661         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
14662         * sdcc_vc_in.h: define pclose as _pclose for WIN32
14663         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
14664         which closes all pipes in pipeSet set
14665         * src/SDCCset.c: free deleted item in function deleteSetItem()
14666         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
14667         moved from z80 to src subproject
14668         * .version: increased version number to 2.3.4
14669
14670 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
14671
14672         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
14673         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
14674         * support/regression/ports/xa51/spec.mk: fix typo
14675
14676 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
14677
14678         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
14679
14680 2003-03-09  Borut Razem <borut.razem AT siol.net>
14681
14682         * src/SDCCmain.c: pipe preprocessor's output
14683         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
14684         * sdcc_vc_in.h: define pclose as _pclose for WIN32
14685         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
14686         which closes all pipes in pipeSet set
14687         * src/SDCCset.c: free deleted item in function deleteSetItem()
14688         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
14689         moved from z80 to src subproject
14690
14691 2003-03-09  Borut Razem <borut.razem AT siol.net>
14692
14693         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
14694         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
14695         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
14696         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
14697         * src/SDCCglobl.h: unification of WIN32 native definitions
14698
14699 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14700
14701         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
14702
14703 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
14704
14705         * src/configure.in:   check for endianess (even while cross-compiling)
14706         * src/configure:      check for endianess (even while cross-compiling)
14707         * src/configure_in.h: check for endianess (even while cross-compiling)
14708         * src/avr/gen.c:        remove old endianess stuff
14709         * src/mcs51/gen.c:      remove old endianess stuff
14710         * src/ds390/gen.c:      remove old endianess stuff
14711         * src/pic/gen.c:        remove old endianess stuff
14712         * src/pic/genarith.c:   remove old endianess stuff
14713         * src/pic/glue.c:       fix endianess check
14714         * src/pic16/gen.c:      remove old endianess stuff
14715         * src/pic16/genarith.c: remove old endianess stuff
14716         * src/pic16/glue.c:     fix endianess check
14717         * src/xa51/gen.c:       remove old endianess stuff
14718         * src/z80/gen.c:        fix endianess check
14719         * src/SDCCglue.c:       fix endianess check
14720         * src/ds390/peeph.def: fix bug 700036
14721
14722 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
14723
14724         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
14725         * src/configure: find appropriate data-types on host for SDCC's int and long
14726         * src/configure.in: find appropriate data-types on host for SDCC's int and long
14727         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
14728         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
14729
14730 2003-03-07    <johan AT balder>
14731
14732         Just a big NOOP:
14733                 some minor cleanups before the big shot
14734                 OP_DEFS and OP_USES now use Kevin's protection
14735                 new option --nolabelopt
14736
14737         * src/SDCCBBlock.c:
14738         * src/SDCCast.c,:
14739         * src/SDCCcflow.c:
14740         * src/SDCCcse.c:
14741         * src/SDCCicode.c:
14742         * src/SDCCicode.h:
14743         * src/SDCClabel.c:
14744         * src/SDCCloop.c:
14745         * src/SDCCmain.c:
14746         * src/ds390/ralloc.c:
14747         * src/mcs51/ralloc.c:
14748         * src/pic/ralloc.c:
14749         * src/xa51/ralloc.c:
14750         * src/z80/ralloc.c:
14751
14752 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
14753
14754         * src/pic/pcode.c (get_op): fix 64 bit warnings
14755         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
14756         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
14757         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
14758         * support/regression/tests/malloc.c: fix 64 bit warnings
14759
14760 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
14761
14762         * src/mcs51/gen.c (genMinus): fixed bug 696436
14763
14764 2003-03-02  Borut Razem <borut.razem AT siol.net>
14765
14766         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
14767
14768 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
14769
14770         * configure.in: test for mkstemp
14771         * sdccconf_in.h: add HAVE_MKSTEMP
14772
14773 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
14774
14775         * device/include/ctype.h: removed warning while using --stack-auto
14776         * device/include/malloc.h: removed warning while using --stack-auto
14777         * device/include/string.h: removed warning while using --stack-auto
14778
14779 2003-02-23  Borut Razem <borut.razem AT siol.net>
14780
14781         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
14782         because NDEBUG is defined (see man assert)
14783         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
14784
14785 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14786
14787         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
14788         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
14789
14790 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14791
14792         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
14793         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
14794
14795 2003-02-18    <johan AT balder>
14796
14797         * as/mcs51/asmain.c (asmbl): module can start with a digit
14798         * as/z80/asmain.c (asmbl): module can start with a digit
14799
14800 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
14801
14802         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
14803         * src/asm.c: fix pipe() for Mingw32
14804
14805 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
14806
14807         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
14808         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
14809         make -V work again; --c1mode reads now from stdin
14810         * doc/sdccman.lyx: added --c1mode
14811         * support/Util/SDCCerr.c: new messages for c1 mode
14812         * support/Util/SDCCerr.h: new messages for c1 mode
14813         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
14814
14815 2003-02-15    <johan AT balder>
14816
14817         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
14818
14819 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
14820
14821         * doc/sdccman.lyx: Environment variables, -o and other minor things
14822
14823 2003-02-14    <johan AT balder>
14824
14825         * src/xa51/main.c: before anyone really tries to use it :)
14826
14827         * Install doc's in share/sdcc/doc
14828         * removed some obsolete files
14829         * Do a proper make distclean and uninstall
14830         M Makefile.common.in
14831         R sdccbuild.sh
14832         M as/Makefile
14833         M device/include/Makefile.in
14834         M device/lib/Makefile.in
14835         M doc/sdccman.lyx
14836         M link/Makefile
14837         M sim/ucsim/doc/Makefile.in
14838         M src/clean.mk
14839         R src/avr/peeph.rul
14840         R src/xa51/peeph.rul
14841         M support/cpp2/Makefile.in
14842         M support/makebin/Makefile
14843
14844
14845 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
14846
14847         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
14848
14849 2003-02-10  Borut Razem <borut.razem AT siol.net>
14850
14851         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
14852         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
14853         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
14854         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
14855         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
14856         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
14857         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
14858         src/z80/Makefile.bcc: Borland Makefile cleanup
14859         * as/z80/Makefile.bcc: Added Borland Makefile
14860         * support/cpp2/borland.h: Removed
14861
14862 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
14863
14864         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
14865         * src/SDCC.lex: new pragma NOIV
14866         * src/SDCCglobl.h: new pragma NOIV
14867         * src/SDCCmem.c: new pragma NOIV
14868
14869 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
14870
14871         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
14872
14873 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
14874
14875         * src/SDCCmain.c: signal handling is switched off by --debug
14876         * doc/Makefile: small fix for install; use clean.mk again
14877         * doc/clean.mk: clean *.pdf and *.html too
14878
14879 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
14880
14881         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
14882         * device/lib/printfl.c: fix a ds390 bug by making it portable
14883         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
14884         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
14885         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
14886         * debugger/mcs51/cmd.c: converted multi-line string literals
14887         * sim/ucsim/globals.cc: converted multi-line string literals
14888         * src/SDCCmain.c: introduced signal handler to remove temp files
14889         * doc/Makefile: small tweaks, implement clean
14890         * doc: removed generated files
14891
14892 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14893
14894         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
14895         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
14896         Address Record is not correctly generated for DS390."
14897
14898 2003-02-02  Borut Razem <borut.razem AT siol.net>
14899
14900         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
14901         * as/mcs51/asm.h: fixed compilation with Borland C
14902         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
14903         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
14904         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
14905         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
14906         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
14907         src/z80/Makefile.bcc: delete $(LIB) only if exist
14908         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
14909
14910 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
14911
14912         * device/include/malloc.h: introduced NULL
14913         * device/include/string.h: introduced NULL
14914         * device/include/stdlib.h: introduced NULL
14915         * device/lib/_memcpy.c: removed NULL
14916         * device/lib/_strcat.c: removed NULL
14917         * device/lib/_strchr.c: removed NULL
14918         * device/lib/_strcmp.c: removed NULL
14919         * device/lib/_strcpy.c: removed NULL
14920         * device/lib/_strcspn.c: removed NULL
14921         * device/lib/_strlen.c: removed NULL
14922         * device/lib/_strncat.c: removed NULL
14923         * device/lib/_strncmp.c: removed NULL
14924         * device/lib/_strncpy.c: removed NULL
14925         * device/lib/_strpbrk.c: removed NULL
14926         * device/lib/_strrchr.c: removed NULL
14927         * device/lib/_strspn.c: removed NULL
14928         * device/lib/_strstr.c: removed NULL
14929         * device/lib/_strtok.c: removed NULL
14930         * device/lib/malloc.c: removed NULL, include own header
14931
14932 2003-02-02    <johan AT balder>
14933
14934         * 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
14935         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
14936         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
14937         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
14938         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
14939         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
14940
14941 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14942
14943         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
14944         area 'DATA'"
14945
14946 2003-02-01    <johan AT balder>
14947
14948         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
14949
14950 2003-01-31    <johan AT CP255758-A>
14951
14952         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
14953
14954 2003-01-30    <johan AT balder>
14955
14956         * src/SDCCBBlock.c: automatic bug detection
14957         * src/SDCCicode.c: automatic bug detection
14958
14959 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14960
14961         * src/SDCCglobl.h:   now --xram-size 0 works
14962         * src/SDCCmain.c:    now --xram-size 0 works
14963
14964 2003-01-29    <johan AT balder>
14965
14966         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
14967
14968 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14969
14970         * as/mcs51/aslink.h: Added options --xram-size and --code-size
14971         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
14972         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
14973         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
14974         * src/SDCCglobl.h:   Added options --xram-size and --code-size
14975         * src/SDCCmain.c:    Added options --xram-size and --code-size
14976
14977 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
14978
14979         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
14980         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
14981
14982 2003-01-27    <johan AT balder>
14983
14984         * src/SDCC.y: fixed bug #613764
14985
14986 2003-01-26    <johan AT balder>
14987
14988         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
14989         * src/SDCCsymt.h: fixed bug #673374
14990         * src/SDCCglue.c: fixed bug #661910
14991         * src/SDCCast.c: fixed bug #458099 and 673374
14992
14993 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
14994
14995         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
14996         * as/mcs51/strcmpi.h: added
14997         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
14998         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
14999         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
15000         * as/mcs51/assym.c: strcmpi -> as_strcmpi
15001         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
15002         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
15003         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
15004         * as/mcs51/Makefile.aslink: new module strcmpi
15005         * as/mcs51/Makefile.asx8051: new module strcmpi
15006         * as/mcs51/Makefil.bcc: new module strcmpi
15007         * as/mcs51/Makefile.in: new module strcmpi
15008         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
15009
15010 2003-01-26    <johan AT balder>
15011
15012         * src/SDCCglue.c: reverted back to 1.124
15013         * src/SDCCast.c: reverted back to 1.156
15014         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
15015
15016 2003-01-25    <johan AT balder>
15017
15018         * src/SDCCglue.c: A better fix for bug #661910
15019         * src/SDCCast.c: A better fix for bug #661910
15020         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
15021
15022 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
15023
15024         * src/Makefile.in: remove spawn.o
15025         * src/SDCCmain.c: remove spawn.h
15026         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
15027         * src/spawn.c: removed
15028         * src/spawn.h: removed
15029         * support/regression/ports/ds390/spec.mk: link with -r
15030
15031 2003-01-24    <johan AT CP255758-A>
15032
15033         * src/ds390/gen.c (aopOp): fixed bug #667458
15034         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
15035         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
15036         (createIvalCharPtr): an ival doesn't always have a storage class anymore
15037
15038 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
15039
15040         * src/mcs51/peeph.def: better assembler identation by Frieder
15041         * src/mcs51/gen.c: better assembler identation by Frieder
15042
15043 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
15044
15045         * as/z80/string.h: removed for gcc 3.2
15046         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
15047         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
15048
15049 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
15050
15051         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
15052         * src/SDCCpeeph.c (replaceRule): fix bug #663503
15053         * support/regression/Makefile: separate temp files for ports
15054         * support/regression/generate-cases.py: separate temp files for ports
15055         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
15056         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
15057
15058 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
15059
15060         * moved tinitalk to device/examples/ds390
15061
15062 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
15063
15064         * as/mcs51/lkmem.c: rflag is for DS390
15065         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
15066         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
15067                          (linkEdit): move mem- and map-files the same way as ihx-files
15068         * src/z80/main.c (_setDefaultOptions): removed --generic
15069         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
15070         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
15071         * src/pic/glue.c (picglue): --c1mode works again
15072         * src/pic16/glue.c (pic16glue): --c1mode works again
15073         * src/asm.c (printCLine): fix #660034
15074
15075 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
15076
15077         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
15078         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
15079         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
15080         * as/mcs51/lkmem (summary): better fix for sp problem
15081         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
15082         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
15083         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
15084                                               remove --stack-after-data
15085
15086 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
15087
15088         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
15089         * src/SDCCutil.c (join): ugly bug: missing '\0'
15090         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
15091
15092 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
15093
15094         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
15095         * src/port.h: typo
15096         * src/pic/main.c (_asmCmd): gpasm supports -o
15097         * src/z80/main.c: more general macros
15098         * device/lib/Makefile.in: remove intermediate files
15099
15100 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
15101
15102         * .version: Bumped version number to 2.3.3
15103         * src/SDCCBBlock.c: new option -o
15104         * src/SDCCglobl.h: new option -o
15105         * src/SDCCglue.c: new option -o
15106         * src/SDCCmain.c: new option -o
15107         * src/asm.c: new option -o
15108         * src/ds390/main.c: new option -o
15109         * src/pic/glue.c: new option -o
15110         * src/pic/pcode.c: new option -o
15111         * src/pic/ralloc.c: new option -o
15112         * src/pic16/glue.c: new option -o
15113         * src/pic16/pcode.c: new option -o
15114         * src/pic16/ralloc.c: new option -o
15115         * src/z80/main.c: new option -o
15116         * device/lib/Makefile.in: use -o
15117         * support/regression/ports/ds390/spec.mk: use -o
15118         * support/regression/ports/gbz80/spec.mk: use -o
15119         * support/regression/ports/mcs51/spec.mk: use -o
15120         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
15121         * support/regression/ports/z80/spec.mk: use -o
15122         * support/regression/ports/ucz80/spec.mk: use -o
15123         * support/regression/ports/xa51/spec.mk: use -o
15124         * support/regression/fwk/lib/timeout.c: fix usage string
15125
15126 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
15127         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
15128
15129 2003-01-07    <johan AT balder>
15130
15131         * src/SDCCast.c (decorateType): fixed bug #600035
15132
15133 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
15134         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
15135         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
15136         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
15137         * src/pic/pcode.c: outcommented unused variable to remove warnings
15138         * src/pic/ralloc.c: outcommented unused variable to remove warnings
15139
15140 2003-01-06    <karl AT turbobit.com>
15141         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
15142    regression tests.
15143
15144 2003-01-06    <johan AT balder>
15145
15146         * src/SDCCicode.c: fixed array add
15147
15148 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
15149         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
15150         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
15151
15152 2003-01-04    <johan AT balder>
15153
15154         * src/SDCCval.c (getNelements): fixed the initialized array of structures
15155
15156 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15157         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
15158
15159 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
15160         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
15161         * support/regression/tests/bug-524697.c: fit mem usage into 8032
15162
15163 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
15164         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
15165
15166 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
15167         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
15168
15169 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
15170         * src/mcs51/main.c: removed {bindir}{sep} from aslink
15171
15172 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15173
15174     * in /sdcc/as/mcs51/ changed these files in order to create an
15175     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
15176     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
15177     following files to include the previous two files: aslink.dsp,
15178     Makefile.aslink, Makefile.bcc, and Makefile.in.
15179
15180     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
15181     .adb instead of .cdb
15182
15183 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15184
15185         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
15186         value from option --iram-size.
15187
15188 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15189
15190         * /sdcc/as/mcs51/lklist.c: added boundary check before using
15191         dram[] array.
15192
15193 2002-09-18    <wiml AT hhhh.org>
15194
15195         * SDCClrange.h: exposed setFromRange() and setToRange()
15196         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
15197           packRegsForAccUse() (bug 542397)
15198         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
15199           multiple times and emitting the fetch operations more than once
15200           added aopGetUsesAcc() function to allow binary operators to
15201           fetch their operands in the correct order; made genMinus() emit
15202           compact code for X = LITERAL - Y
15203
15204 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15205         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
15206         sprintf() in line 1267.
15207
15208 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15209         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
15210         like ports.
15211
15212 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15213         Changes to aslink (All the changes are marked with 'JCF'):
15214
15215         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
15216         summary().
15217
15218         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
15219         area BSEG.  Also moves, if possible, the DATA area down into the internal
15220         ram so more space is available.
15221
15222         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
15223         sflag.
15224
15225         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
15226         not bytes.  Function summary() which creates a memory usage summary
15227         file with extension .mem.  Reports of overlaping stack and small stack
15228         size.  If the space for the stack is less than 16 bytes aslink trows a
15229         warning.
15230
15231         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
15232         the 8051.  Option 'y' for memory summary output file.
15233
15234         Changes to sdcc (All the changes are marked with 'JCF'):
15235
15236         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
15237
15238         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
15239         overlaying area for it (uses RegBankUsed[4]).
15240
15241         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
15242         bank zero as used by default.  By default aslink locates the stack
15243         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
15244         the creation of the .mem file.  Delegates the allocation of data area
15245         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
15246         the begining of the stack area to aslink.
15247
15248         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
15249         glue() in SDCCglue.c creates an area for it.
15250
15251 2002-09-03  Borut Razem <borut.razem AT siol.net>
15252         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
15253         sdcc/src/pic/glue.c:
15254         introduced atexit() handler for teporay files removal in case of
15255         errors, assertions, ...
15256
15257 2002-08-29  Borut Razem <borut.razem AT siol.net>
15258         * sdcc/support/cpp2/auto-host_vc_in.h:
15259         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
15260         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
15261         Maybe there is a similar problem with BORLANDC? It should be checked!
15262
15263         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
15264         corrected improper use of assert: the assignment to clr variable was done inside the assert.
15265         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
15266         was not executed, and the compiler (cl) launched a warning:
15267         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
15268
15269 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
15270         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
15271
15272 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
15273         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
15274
15275         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
15276           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
15277           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
15278           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
15279           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
15280           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
15281           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
15282         - added Release configuration in VS projects
15283         - review of compiler an linker options
15284         - VC .exe files are generated in bin_vc directory, not to interfere
15285           with binaries generated from other projects (cygwin, mingw, bcc ...)
15286
15287         * sdcc/src/yacc.dsp: added
15288
15289         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
15290         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
15291         and insert the version number definitions from .version
15292
15293         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
15294
15295         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
15296         added - genarate auto-host.h using auto-host_vc_in.h as template
15297
15298         * sdcc/sdcc_vc.h,
15299         removed from CVS, generated automatically
15300
15301 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
15302         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
15303
15304 2002-08-11  Borut Razem <borut.razem AT siol.net>
15305         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
15306
15307 2002-08-10  Borut Razem <borut.razem AT siol.net>
15308         * src/SDCCmain.c (main):
15309         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
15310         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
15311         The consequence was that some temporary files were not removed.
15312
15313         * src/SDCCglue.c:
15314         unification of code in functions tempfilename() and tempfile():
15315         function tempnam() is defined in Visual Studio 6.0 and .NET
15316
15317         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
15318
15319         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
15320           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
15321         - removed compiler command line option /WX: Treats all warnings as errors
15322         - update a list of source files, included into the project
15323
15324         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
15325           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
15326         changed project type to Generic Project so that can be correcly converted to VS.NET project
15327
15328         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
15329
15330         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
15331
15332         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
15333
15334         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
15335         added return 0 statements after assert() to make compiler happy
15336
15337         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
15338         added newline in the def file to keep MSC compiler satisfied
15339
15340         * sdcc/src/z80/gen.c:
15341         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
15342           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
15343         - solved MSC error in function aopDump()
15344
15345         * sdcc_vc.h: define PREFIX as "\\sdcc"
15346
15347 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
15348         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
15349
15350 2002-06-22  Scott Dattalo <scott AT dattalo.com>
15351         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
15352         - Rewrote the register banking algorithm.
15353         - Added pCode live-range analysis to registers (for now, only non-used and
15354         singly-used registers optimized away)
15355
15356         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
15357
15358         * 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.
15359
15360 2002-05-10  Scott Dattalo <scott AT dattalo.com>
15361         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
15362
15363 2002-04-22  Michael Hope  <michaelh AT vroom>
15364
15365         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
15366
15367         * configure.in (DD_COPT): Added include support required for gbdk.
15368
15369         * .version: Bumped version number just to increase it.
15370
15371         * src/SDCCmain.c: Added -nostdinc to the default options.
15372
15373 2002-04-15  Michael Hope  <michaelh AT vroom>
15374
15375         * device/lib/z80/printf.c (sprintf): Added.
15376
15377         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
15378
15379         * src/z80/peeph.def: Added transpose redundent load rule.
15380
15381         * src/z80/main.c: Added force callee saves for jaune.
15382
15383         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
15384
15385         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
15386
15387 2002-03-28  Johan Knol  <johan AT balder>
15388
15389         * src/SDCCval.c: fixed bug #532436
15390
15391 2002-03-14  Scott Dattalo <scott AT dattalo.com>
15392         * /src/port.h:
15393         Added "char *Processor" field to the port structure.
15394
15395         * /src/SDCCmain.c:
15396         Added -p option. Allows port dependent processor to be specified.
15397
15398         * all ports:
15399         Initialized the new field char *Processor field to NULL in all ports
15400
15401         * /src/pic/*:
15402         Compiler generated registers for interrupt context saving
15403         were not getting allocated.
15404
15405 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
15406
15407         * /src/SDCCast.c:
15408         Fixed left shift. Will promote the left side of a left shift
15409         if a) left shifting more than size of operand or b) when assigned
15410         to something size > size of left side
15411
15412 2002-03-14  Scott Dattalo <scott AT dattalo.com>
15413         * src/pic/*
15414         tons of changes. Register allocation has been
15415         rewritten. Added customization for the various PICs. Flow
15416         analysis is restructured. ...
15417
15418         * src/pic/device.h:
15419         Added
15420
15421         * src/pic/device.c:
15422         Added. device.c is a PIC port hack to accomodate variations
15423         in PIC devices.
15424
15425 2002-03-13  Michael Hope  <michaelh AT vroom>
15426
15427         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
15428
15429 2002-03-04  johanknol  <johanknol AT manik>
15430
15431         * /src/SDCCval.c: fixed
15432
15433         const unsigned char arr[][2] = { { 0, 1 } };
15434         t18.c:1: error: Initializer element is not constant
15435
15436 2002-03-04  bela  <bela AT manik>
15437
15438         * /device/include/mcs51reg.h:
15439         ds89c420 register definition update
15440
15441 2002-03-03    <johan AT FRIJA>
15442
15443         * support/Util/SDCCerr.c: did something, but don't no why anymore
15444
15445         * support/regression/tests/bug-524691.c: made it a little less shy
15446
15447         * src/SDCCast.c (decorateType): fixed bug #524697
15448
15449         * src/SDCCast.c: made some lineno improvements
15450
15451         * src/SDCCval.c (getNelements): changed warning to error
15452
15453         * src/SDCCglue.c (printIvalArray): changed warning to error
15454
15455         * src/SDCCicode.c: fixed a warning for mingw
15456
15457         * src/SDCCast.c (decorateType): fixed the << promotion for ops
15458
15459         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
15460
15461 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
15462
15463         * src/ds390/peeph.def:
15464         Added some more peephole rules
15465
15466         * src/ds390/gen.c: Various fixes & enhancements
15467
15468         * src/SDCClrange.c, src/SDCClrange.h:
15469         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
15470
15471         * src/ds390/ralloc.c:
15472         various fixes & enhancements (ds390) specific
15473
15474         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
15475         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
15476         from rallocs.
15477
15478         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
15479
15480 2002-03-02    <johan AT FRIJA>
15481
15482         * src/SDCCast.c (decorateType): fixed bug #524708
15483
15484         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
15485
15486         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
15487
15488 2002-03-01  Michael Hope  <michaelh AT vroom>
15489
15490         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
15491
15492         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
15493
15494 2002-03-01    <johan AT FRIJA>
15495
15496         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
15497
15498         * src/SDCCast.c (decorateType): fixed bug #524209
15499
15500         * src/SDCCval.c (valNot): fixed bug #524195
15501
15502 2002-02-26    <johan AT balder>
15503
15504         * src/xa51/gen.c: fixed a warning
15505
15506         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
15507
15508         * src/SDCCast.c (decorateType): fixed bug #522534
15509
15510 2002-02-23    <johan AT balder>
15511
15512         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
15513
15514 2002-02-22    <johan AT balder>
15515
15516         * src/SDCCast.c: fixed bug #514865
15517
15518         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
15519
15520 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
15521
15522         * sdcc/src/SDCCloop.c:
15523         Previous fix was not good. basic blocks that have "break" or "return" are
15524         not really partof a loop , but live ranges used in these blocks should
15525         be live thru the entire loop, so set partOfLoop but don't add them to
15526         loop region
15527
15528 2002-02-21    <johan AT FRIJA>
15529
15530         * src/SDCCcse.c: fixed bug #514308
15531
15532 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
15533
15534         * src/SDCCloop.c:
15535         Fixed BUG #519583. If a conditional block ended in a return/break
15536         statement inside a loop, it was not being considered part of the loop.
15537
15538         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
15539
15540 2002-02-10  Karl Bongers <karl AT turbobit.com>
15541
15542         * debugger/*:
15543         Fixed up SDCDB debugger somewhat.  Updated debugger/README
15544         with lots of comments and notes.
15545
15546         * device/examples/test2.c:
15547         Fix bug, "red" variable not being initialized(compiler complained).
15548
15549         * device/examples/Makefile, examples/test3.c:
15550         Add Makefile in device/examples folder, compiles test3.c
15551         for use as a multiple module SDCDB test case.
15552
15553         * sim/ucsim/cmd.src/cmdset.cc:
15554         Took out debug printfs in ucsim "next" command.
15555
15556         * sim/ucsim/xa.src:
15557         Karl and Johan start ucsim XA support.  Most dissassembly working,
15558         about 75% emulation done(plenty of work remaining).
15559
15560         * sim/ucsim/z80.src:
15561         Add Z80 support to ucsim, add test-ucz80 regression test,
15562         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
15563         Notice z80 compiler fails on examples/test3.c/crc code.
15564
15565 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
15566
15567         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
15568         Added support for --parms-in-bank1
15569
15570         * src/ds390/peeph.def:
15571         added a few more peephole optimzations
15572
15573         * src/ds390/main.c:
15574         1) added __builtin_inp & __builtin_outp used to read in data of given length
15575            from a memory mapped port
15576         2) added __builtin_memcmp
15577         3) added __builtin_swapw swap bytes of a short
15578
15579         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
15580         1) handle multiple send & receives from register bank1
15581         2) ralloc can now allocate DPTR1 to some liveRanges
15582
15583         * src/SDCCsymt.c, src/SDCCsymt.h:
15584         changes to handle multiple sends & receives
15585
15586         * src/SDCCptropt.h:
15587         added some pointer arithmetic optimization
15588
15589         * src/SDCCptropt.c:
15590         added some pointer arithmetic optimizations but not stable yet so not
15591         called from anywhere (will get this working shortly)
15592
15593         * src/SDCCopt.c: fixed for multiple sends & receives
15594
15595         * src/SDCCmain.c:
15596         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
15597         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
15598            set preprocessor defines (depending on options)
15599
15600         * src/SDCCicode.c, src/SDCCicode.h:
15601         changes made to handle multiple sends & receives
15602
15603         * src/SDCCglobl.h:
15604         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
15605
15606         * src/SDCCcse.c, src/SDCCcse.h:
15607         added function findbackward def (to be used in upcoming optimization)
15608
15609         * src/SDCCcflow.c, src/SDCCcflow.h:
15610         added function returnAtEnd - to determine if a basic block terminates with
15611         a RETURN iCode
15612
15613         * src/SDCCast.c, src/SDCCast.h:
15614         added option parms-in-bank1
15615
15616         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
15617         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
15618         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
15619         adjusted for --parms-in-bank1 option
15620
15621         * device/include/string.h:
15622         donot redefine "reentrant" keyword
15623
15624         * device/include/ds80c390.h: Added some more SFRs
15625
15626 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
15627
15628         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
15629
15630 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
15631
15632         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
15633
15634 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
15635
15636         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
15637
15638 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
15639
15640         * Added --xram-movc option
15641
15642 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
15643
15644         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
15645
15646 2002-01-11  Johan Knol
15647
15648         * Added math lib of Jesus Calvino-Fraga
15649
15650 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
15651
15652         * src/SDCCmain.c (processFile): fix processing of ../../src.c
15653         * support/regression/Makefile: new target test-mcs51-stack-auto
15654         * support/regression/ports/mcs51-stack-auto/spec.mk: added
15655
15656 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
15657
15658         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
15659
15660 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
15661
15662         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
15663
15664 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
15665
15666         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
15667
15668         * src/SDCCglue.h: add definition for printIvalChar()
15669
15670 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
15671
15672         * src/SDCCast.c: fix #498138 by Johan
15673
15674         * src/SDCCglue.c: fix #498138 by Johan
15675
15676 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
15677
15678         * support/regression/Makefile: fix clean
15679
15680         * support/regression/ports/ds390/support.c: fix transmission of last character
15681
15682 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
15683
15684         * /sdcc/src/ds390/gen.c:
15685         a) improved computing address of stack variable
15686         b) took out some #if 0 code
15687         c) improved parmBytes adjustment
15688         d) improved genPlusIncr & genMinusIncr
15689         e) genCmp could generate bad code (when left assigned to DPTR)
15690         f) Fixed bug in hasInc
15691
15692         * /sdcc/src/ds390/ralloc.c:
15693         a) packRegsForSupport could mess up live information (Fixed)
15694         b) packRegsDPTRuse could be incorrect for left & right shift
15695
15696         * /sdcc/src/mcs51/ralloc.c:
15697         packRegsForSupport could mess up the live information (Fixed)
15698
15699         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
15700
15701         * /sdcc/src/SDCCast.c:
15702         can reverse a loop even if function call is present as long
15703         as the loop control variable is local & is not passed as parameter
15704
15705 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15706
15707         * /sdcc/ChangeLog: *** empty log message ***
15708
15709         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
15710         More builtin function additions for TININative
15711
15712         * /sdcc/src/ds390/ralloc.c:
15713         Had broken the regression testsuite
15714
15715         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
15716
15717         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
15718         Added funcattr hasStackParms will be set for reentrant functions when there
15719         are paramteres on the stack, this helps in minimizing frame pointer generation
15720         typeFromStr can handle function pointers now
15721
15722         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
15723         *** empty log message ***
15724
15725 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15726
15727         * /src/ds390/gen.c, /src/ds390/main.c:
15728         More builtin function additions for TININative
15729
15730         * /src/ds390/ralloc.c:
15731         Had broken the regression testsuite
15732
15733         * /src/SDCCast.c: Fixed a bug in dumptree
15734
15735         * /src/SDCCsymt.c, /src/SDCCsymt.h:
15736         Added funcattr hasStackParms will be set for reentrant functions when there
15737         are paramteres on the stack, this helps in minimizing frame pointer generation
15738         typeFromStr can handle function pointers now
15739
15740         * /doc/builtins.txt, /doc/TININative.txt:
15741         *** empty log message ***
15742
15743
15744 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15745
15746         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
15747         ALPHA version for -mTININative
15748
15749         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
15750         updated to reflect changes in the port structure
15751
15752         * /src/port.h:
15753         added function do_assemble (similar to do_link) if non-null this function
15754         will be called to do assembly (-mTININative) requires a multi command
15755         assembly
15756         added function genAssemblerEnd will be called to generate assembler Epilogue
15757
15758         * /src/SDCCsymt.c:
15759         added _JavaNative to debug info printing
15760
15761         * /src/SDCCmain.c: added option --tini-libid
15762         added port->do_assemble function (-mTININative) has a multi command assemble
15763
15764         * /src/SDCCglue.c: Disabled "constExpr" check
15765         added port->genAssemblerEnd function
15766
15767         * /src/SDCCglobl.h: Added option --tini-libid value
15768
15769         * /src/SDCCast.h:
15770         tookout optimizeCompare from the header (has no external references)
15771
15772         * /src/SDCCast.c: made one more function "static"
15773
15774 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
15775
15776         * src/z80/mappings.i: Added z80asm support.
15777
15778         * src/z80/main.c: Added z80asm support on --asm=z80asm
15779
15780         * src/z80/gen.c: Fixed asm portability issues.
15781
15782         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
15783
15784         * src/SDCCglue.c (printExterns): Added global/extern split.
15785
15786 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
15787
15788         * support/regression/Makefile: added test for mcs51 model large
15789
15790         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
15791
15792         * support/regression/ports/gbz80/spec.mk: added -mgbz80
15793
15794 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
15795
15796         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
15797
15798 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
15799
15800         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
15801
15802         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
15803
15804 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
15805
15806         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
15807
15808         * support/regression/tests/simplefloat.c: Port to mcs51.
15809
15810 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
15811         * support/regression/tests/bug-485362.c: Added.
15812
15813         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
15814
15815         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
15816
15817         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
15818
15819         * src/z80/gen.c (aopDump): Added a dump function.
15820
15821 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
15822         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
15823
15824         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
15825
15826         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
15827
15828         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
15829
15830         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
15831
15832         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
15833
15834         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
15835
15836         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
15837
15838         * support/regression/ports/ds390/support.c: Use tinibios.
15839
15840         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
15841
15842 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
15843
15844         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
15845         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
15846
15847         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
15848
15849         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
15850
15851 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
15852
15853         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
15854
15855         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
15856         (packRegsForIYUse): Created and optimised.
15857
15858 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
15859
15860         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
15861 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
15862
15863         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
15864
15865         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
15866
15867         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
15868
15869 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15870
15871         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
15872
15873         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
15874
15875 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15876
15877         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
15878
15879         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
15880
15881         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
15882
15883 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
15884
15885         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
15886         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
15887         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
15888
15889         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
15890
15891         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
15892         (genNotFloat): Added.
15893         (genUminusFloat): Added.
15894
15895         * device/lib/z80/Makefile: Added floating pt stubs.
15896
15897         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
15898
15899         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
15900
15901         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
15902
15903 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15904
15905         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
15906
15907         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
15908
15909         * sdcc/support/regression/Makefile: Add port ds390.
15910
15911         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
15912
15913         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
15914
15915         * sdcc/support/regression/ports/ds390/spec.mk: Added.
15916
15917         * sdcc/support/regression/ports/ds390/support.c: Added.
15918
15919         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
15920
15921         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
15922
15923         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
15924
15925 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
15926
15927         * device/include/malloc.h: Added z80 and gbz80 support.
15928
15929         * device/lib/gbz80/heap.s: Added.
15930
15931         * device/lib/z80/heap.s: Added.
15932
15933         * device/lib/malloc.c: Added z80 and gbz80 support.
15934
15935         * support/regression/tests/malloc.c (testMalloc): Added.
15936
15937         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
15938
15939         * support/regression/tests/bug-478094.c: Added.
15940
15941         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
15942
15943 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
15944
15945         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
15946
15947         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
15948
15949         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
15950
15951         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
15952
15953         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
15954
15955 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
15956
15957         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
15958
15959 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
15960
15961         * support/regression/tests/bug-477927.c: Added.
15962
15963         * src/z80/peeph.def: Added minor rules.
15964
15965         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
15966
15967         * src/z80/peeph.def: Added jump optimisation modification.
15968
15969 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
15970
15971         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
15972
15973 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
15974
15975         * support/regression/tests/funptrs.c: Added.
15976
15977 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
15978
15979         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
15980
15981 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
15982
15983         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
15984
15985         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
15986
15987         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
15988         (movLeft2ResultLong): Created.
15989
15990         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
15991         (joinPushes): Added.  Joins two char pushes into a word push.
15992
15993 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
15994
15995         * support/cpp2/Makefile.in (install): Added creation of dest dir.
15996
15997         * support/makebin/Makefile (install): Added creation of dest dir.
15998
15999 2001-10-24 Karl Bongers <karl AT turbobit.com>
16000
16001         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
16002
16003 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
16004
16005         * src/z80/ralloc.c: Turned off faulty pack for one use.
16006
16007         * src/z80/peeph-gbz80.def: Removed redundent restart options.
16008
16009         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
16010
16011 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
16012
16013         * support/regression/Makefile: Improved clean
16014
16015         * support/regression/ports/gbz80/spec.mk: Added clean
16016
16017         * support/regression/ports/host/spec.mk: Added clean
16018
16019         * support/regression/ports/z80/spec.mk: Added clean
16020
16021         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
16022
16023         * support/regression/ports/mcs51/timeout.c: little improvements
16024
16025 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
16026
16027         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
16028
16029         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
16030
16031         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
16032
16033 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
16034
16035         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
16036
16037         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
16038
16039 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
16040         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
16041
16042         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
16043
16044         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
16045
16046         * src/mcs51/main.c (_linkCmd): Added bin path to command.
16047
16048         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
16049
16050         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
16051
16052         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
16053
16054         * support/regression/tests/longor.c: Added.
16055
16056 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
16057
16058         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
16059
16060         * as/mcs51/aslink.h: define PATH_MAX
16061
16062         * as/mcs51/asm.h: define PATH_MAX
16063
16064         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
16065
16066         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
16067
16068         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
16069
16070         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
16071
16072         * src/SDCCglobl.h: define PATH_MAX
16073
16074         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
16075
16076         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
16077
16078 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
16079
16080         * src/z80/gen.c (gencjneshort): Fixed
16081
16082         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
16083
16084 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
16085
16086         * support/regression/tests/bug-469671.c: Added.
16087
16088         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
16089
16090 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
16091
16092         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
16093
16094         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
16095
16096 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
16097
16098         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
16099
16100         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
16101
16102         * src/device/lib/_mullong.c : removed hint: nooverlay bug
16103
16104         * src/device/lib/_divuint.c : removed hint: nooverlay bug
16105
16106         * src/device/lib/_divulong.c: removed hint: nooverlay bug
16107
16108         * src/device/lib/_moduint.c : removed hint: nooverlay bug
16109
16110         * src/device/lib/_modulong.c: removed hint: nooverlay bug
16111
16112 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
16113
16114         * 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.
16115
16116         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
16117
16118         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
16119
16120 2001-10-07    <johan AT FRIJA>
16121
16122         * device/lib/gets.c (gets): fixed the return value.
16123
16124 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
16125         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
16126
16127         * 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.
16128
16129         * 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.
16130
16131         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
16132
16133         * src/pic/gen.c: Removed Safe_strdup.
16134
16135         * configure.in: Added option to enable libgc support.
16136
16137         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
16138         (bitVectUnion): Optimised.
16139         (bitVectIntersect): Optimised.
16140         (bitVectBitsInCommon): Optimised.
16141         (bitVectCplAnd): Optimised.
16142
16143         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
16144
16145 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16146
16147         * src/SDCCmain.c: distinguish between assembler debug and plain options
16148
16149         * src/avr/main.c:   remove standard assembler options
16150
16151         * src/ds390/main.c: remove standard assembler options
16152
16153         * src/mcs51/main.c: remove standard assembler options
16154
16155         * src/port.h: removed "PENDING" comment
16156
16157 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16158
16159         * src/device/lib/_mulint.c  : new, with assember functions
16160
16161         * src/device/lib/_mullong.c : new, with assember functions
16162
16163         * src/device/lib/_divuint.c : with assember functions
16164
16165         * src/device/lib/_divsint.c : with assember functions
16166
16167         * src/device/lib/_divulong.c: with assember functions
16168
16169         * src/device/lib/_divslong.c: with assember functions
16170
16171         * src/device/lib/_moduint.c : with assember functions
16172
16173         * src/device/lib/_modsint.c : with assember functions
16174
16175         * src/device/lib/_modulong.c: with assember functions
16176
16177         * src/device/lib/_modslong.c: with assember functions
16178
16179         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
16180
16181         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
16182
16183         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
16184                                       replaced _mululong.c and _mulslong.c by _mullong.c
16185
16186 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16187
16188         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
16189
16190 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
16191
16192         * src/SDCCglue.c: test, if win32api is available for MINGW
16193
16194 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
16195
16196         * src/SDCCsymt.c: no more _modifier in printTypeChain()
16197         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
16198         * support/regression/ports/gbz80/spec.mk: removed GENERIC
16199         * support/regression/ports/host/spec.mk: removed GENERIC
16200         * support/regression/ports/mcs51/spec.mk: removed GENERIC
16201         * support/regression/ports/z80/spec.mk: removed GENERIC
16202
16203 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
16204
16205         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
16206
16207         * support/regression/tests/bug-467035.c: Created.
16208
16209 2001-10-01    <johan AT FRIJA>
16210
16211         * src/SDCC.y: fixed bug #466586 part 1
16212
16213 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
16214
16215         * SDCCicode.c: z80 has no generic pointers
16216         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
16217
16218 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
16219
16220         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
16221
16222 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
16223
16224         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
16225
16226         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
16227
16228 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
16229
16230         * configure.in: Fixed up so that ucsim is only configured once.
16231
16232         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
16233
16234         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
16235         (getPathDifference): As above.
16236
16237         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
16238
16239         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
16240
16241 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
16242         * .version: Updated to 2.3.1
16243
16244         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
16245         Added copyright header.
16246
16247         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
16248         (assemble): Added support for macro based assembler commands.
16249         (linkEdit): Added support for macro based linker commands.
16250         (preProcess): Changed the pre-processor to use macros.
16251         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
16252         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
16253
16254         * device/lib/z80/crt0.s: Added module name for debugging.
16255
16256 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
16257
16258         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
16259
16260         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
16261
16262         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
16263
16264         * src/Makefile.in: Added SDCCmacro and SDCCutil
16265
16266 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
16267
16268         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
16269
16270 2001-09-16    <johan AT FRIJA>
16271
16272         * 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.
16273
16274 2001-09-15    <johan AT FRIJA>
16275
16276         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
16277         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
16278
16279 2001-09-11    <johan AT FRIJA>
16280
16281         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
16282
16283 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
16284
16285         * support/regression/tests/bug-460444.c: Added test case.
16286
16287         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
16288         (genCast): Added justification for all of the asserts.
16289
16290 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
16291
16292         * support/regression/support.c: _xdata replaced by xdata
16293
16294         * support/regression/spec.mk: removed _generic
16295
16296 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
16297
16298         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
16299
16300         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
16301         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
16302
16303         * src/z80/peeph.def: Added a rule to optimise shift then compare.
16304
16305         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
16306
16307         * support/regression/tests/bug-460010.c: Added test case.
16308
16309         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
16310
16311 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
16312
16313         * support/regression/Makefile: inter-port-clean adjusted for mcs51
16314
16315         * support/regression/testfwk.c: removed workaround for bug #436344
16316
16317         * support/regression/tests/bp.c: use less memory with mcs51
16318
16319         * support/regression/tests/bug-441448.c: use less memory
16320
16321         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
16322
16323         * support/regression/collate-results.py: typo
16324
16325 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
16326
16327         * support/regression/tests/fetchoverlap.c: Added new test case.
16328
16329         * support/regression/tests/bp.c: Added new test case.
16330
16331         * support/regression/tests/bug-448984.c: Added new test case.
16332
16333         * support/regression/tests/pow2shifts.c: Added new test case.
16334
16335         * src/z80/gen.c: Turned off the noise it normally generates for the release.
16336         (genlshTwo): Fixed right shift for count > 8.
16337
16338         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
16339
16340 2001-09-08    <johan AT FRIJA>
16341
16342         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
16343
16344 2001-09-07    <johan AT FRIJA>
16345
16346         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
16347
16348         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
16349
16350 2001-09-06    <johan AT FRIJA>
16351
16352         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
16353         * bernhard noted me at this: "() equals to (void)" (1.38)
16354
16355 2001-09-05    <johan AT FRIJA>
16356
16357         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
16358
16359 2001-09-04    <johan AT FRIJA>
16360
16361         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
16362
16363
16364 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
16365
16366         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
16367
16368 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
16369
16370         * link/z80/aslink.h: Fixed path for PATH_MAX
16371
16372 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
16373
16374         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
16375
16376         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
16377
16378         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
16379
16380         * 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.
16381
16382 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
16383
16384         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
16385         (genCmp): Fixed up genCmp for the GB with longs.
16386
16387         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
16388
16389         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
16390
16391         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
16392
16393         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
16394
16395 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
16396
16397         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
16398
16399 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
16400
16401         * 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.
16402
16403         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
16404
16405 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
16406
16407         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
16408
16409         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
16410
16411 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
16412
16413   * sim/ucsim/configure:    little improvement of Cygwin-detection
16414   * sim/ucsim/configure.in: little improvement of Cygwin-detection
16415   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
16416   * support/regression/tests/bug-221100.c: small changes for mcs51
16417   * support/regression/tests/bug-221168.c: small changes for mcs51
16418   * support/regression/tests/bug-227710.c: small changes for mcs51
16419   * support/regression/tests/staticinit.c: small changes for mcs51
16420   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
16421   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
16422   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
16423
16424 $Revision$