* support/scripts/sdcc.nsi: uninstall include/pic16/pic16devices.txt
[fw/sdcc] / ChangeLog
1 2008-05-19 Borut Razem <borut.razem AT siol.net>
2
3         * support/scripts/sdcc.nsi: remove uninstall.exe after uninstallation,
4           fixed typo, uninstall include/pic16/pic16devices.txt
5
6 2008-05-18 Borut Razem <borut.razem AT siol.net>
7
8         * support/Utils/dbuf_string.[ch]: added dbuf_chomp(),
9           the buffer is null terminated
10         * src/device/pic16.c:
11           applied modified patch 1965676: Patch for Win32 16 bit PIC
12         * sdcc_vc_in.h: defined YY_NO_UNISTD_H
13
14 2008-05-16 Maarten Brock <sourceforge.brock AT dse.nl>
15
16         * src/SDCC.lex (check_type),
17         * src/SDCC.y (type_specifier2 TYPE_NAME): fixed bug 1925942
18         * as/hc08/clean.mk,
19         * as/mcs51/clean.mk,
20         * as/z80/clean.mk: also clean *.dep
21         * device/lib/pic16/libsdcc/stack/Makefile,
22         * sim/ucsim/libtool: removed as they are rebuild by configure
23         * src/clean.mk: removed izt, so Makefile is not deleted for distclean
24
25 2008-05-13 Maarten Brock <sourceforge.brock AT dse.nl>
26
27         * src/SDCCast.c (fixupInline, createFunction): save currBlockno in
28           fixupInline instead of createFunction to fix bug 1864577
29           (inlineFindMaxBlockno): removed, use global blockNo
30         * src/SDCCglobl.h: added blockNo
31         * src/z80/peep.c,
32         * src/z80/peep.h: modified properties
33         * support/regression/tests/bug1864577.c: new, added
34
35 2008-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
36
37         * as/mcs51/asdata.c,
38         * as/mcs51/asm.h: added org_cnt
39         * as/mcs51/asmain.c (main, asmbl): fixed bug 1957716, changed old K&R to ANSI
40         * as/mcs51/asout.c: changed old K&R to ANSI
41         * as/mcs51/Makefile.in: use common identifiers
42         * as/hc08/asdata.c,
43         * as/hc08/asexpr.c,
44         * as/hc08/asm.h,
45         * as/hc08/asmain.c,
46         * as/hc08/asout.c,
47         * as/hc08/Makefile.bcc,
48         * as/hc08/Makefile.in: synchronized with as/mcs51/*
49         * sdcc_vc_in.h: added define __func__
50         * src/SDCCast.c (expandInlineFuncs): applied patch 1957148 to fix bug 1717305,
51           Thanks Ruud van Silfhout
52         * support/regression/tests/bug1717305.c: new, added
53
54 2008-05-05 Borut Razem <borut.razem AT siol.net>
55
56         * support/regression/Makefile.in,
57           support/regression/ports/ds390/spec.mk,
58           support/regression/ports/hc08/spec.mk,
59           support/regression/ports/mcs51-common/spec.mk,
60           support/regression/ports/pic14/spec.mk,
61           support/regression/ports/pic16/spec.mk,
62           support/regression/ports/ucz80/spec.mk,
63           support/regression/ports/z80/spec.mk:
64           added INC_DIR and LIBDIR paths
65         * src/ds390/gen.c: removed duplicated selicolon
66
67 2008-05-04 Borut Razem <borut.razem AT siol.net>
68
69         * support/regression/Makefile.in,
70           support/regression/fwk/lib/testfwk.c,
71           support/regression/ports/ds390/spec.mk,
72           support/regression/ports/hc08/spec.mk,
73           support/regression/ports/mcs51-common/spec.mk,
74           support/regression/ports/mcs51-large/spec.mk,
75           support/regression/ports/mcs51-medium/spec.mk,
76           support/regression/ports/mcs51-small/spec.mk,
77           support/regression/ports/mcs51-stack-auto/spec.mk,
78           support/regression/ports/mcs51-xstack-auto/spec.mk,
79           support/regression/ports/pic14/spec.mk,
80           support/regression/ports/pic16/spec.mk,
81           support/regression/ports/ucz80/spec.mk:
82           added possibility to define the sdcc binary directory SDCC_BIN_PATH
83           used to run regeression tests
84
85 2008-05-01 Raphael Neider <rneider AT web.de>
86
87         * doc/sdccman.lyx, support/scripts/inc2h-pic16.pl: updated list of
88           supported devices and instructions to add new ones
89
90 2008-05-01 Raphael Neider <rneider AT web.de>
91
92         * device/include/pic16/adc.h,
93           device/lib/pic16/libio/adc/adcbusy.c,
94           device/lib/pic16/libio/adc/adcopen.c,
95           device/lib/pic16/libio/adc/adcsetch.c: support old 18f242 and new
96           18f2455 style ADC devices, based on patch #1776197
97         * device/lib/pic16/libio/adc/adcclose.c,
98           device/lib/pic16/libio/adc/adcconv.c,
99           device/lib/pic16/libio/adc/adcread.c: cosmetic changes
100         * device/include/pic16/{pic18f2331.h,pic18f2431.h},
101           device/lib/pic16/libdev/{pic18f2331.c,pic18f2431.c}: reuse 18f4331
102         * device/include/pic16/pic18f4431.h,
103           device/lib/pic16/libdev/pic18f4431.c: remove outdated comments
104         * device/lib/pic16/libio/adc.ignore: forbid unhandled devices
105
106 2008-05-01 Raphael Neider <rneider AT web.de>
107
108         * src/pic16/device.h: removed unused field PIC16_device.sfrRange,
109           moved xinst flag into pic16_options_t
110         * src/pic16/device.c (default_device, pic16_list_devices,
111           pic16_find_device): removed references to sfrrange
112         * src/pic16/gen.c (genFunction),
113           src/pic16/glue.c (pic16initialComments),
114           src/pic16/main.c (pic16_optionsTable),
115           src/pic16/ralloc.c (newReg, pic16_writeUsedRegs): updated references
116           to xinst
117         * device/include/pic16/pic16devices.txt: removed sfrrange lines
118
119 2008-04-29 Raphael Neider <rneider AT web.de>
120
121         * src/pic16/devices.inc,
122           device/include/pic16/pic16devices.txt: replaced compiled-in list
123           of devices with a variant parsed at runtime
124         * src/pic16/device.c: added support for parsing pic16devices.txt,
125           clean up
126         * src/pic16/device.h: removed (now) unused fields from PIC_device
127         * src/pic16/main.c: removed #pragma maxram,
128           (_pic16_initPaths): removed bogus generation of search paths,
129           setup the port proper only after the search paths (for
130           pic16devices.txt) are set up,
131           (_pic16_finaliseOptions): moved processor dependant code here
132           from _pic16_initPaths(), clean up
133         * src/pic16/ralloc.c (pic16_init_stack),
134         * src/pic16/ralloc.h,
135         * src/pic16/pcode.c: clean up
136         * device/include/Makefile.in,
137           support/scripts/sdcc.nsi: also install/package pic16devices.txt
138         * support/scripts/inc2h-pic16.pl: updated instructions
139
140 2008-04-29 Raphael Neider <rneider AT web.de>
141
142         * device/include/pic16/{pic18f2480.h, pic18f2580.h, pic18f4423.h,
143           pic18f4480.h, pic18f4523.h, pic18f4580.h, pic18f6585.h, pic18f8585.h},
144           device/lib/pic16/libdev/{pic18f2480.c, pic18f2580.c, pic18f4423.c,
145           pic18f4480.c, pic18f4523.c, pic18f4580.c, pic18f6585.c, pic18f8585.c}:
146           added missing family members and 18f2480/2580/4480/4580 family
147         * device/include/pic16/{pic18f2423.h, pic18f2523.h}: use 18f4523.h
148         * device/include/pic16/pic18f2525.h: use 18f4620.h
149         * device/include/pic16/pic18f6680.h: use 18f8680.h
150         * device/include/pic16/pic18fregs.h,
151           device/lib/pic16/pics.all,
152           src/pic16/devices.inc: add new devices
153         * device/lib/pic16/libdev/{pic18f2423.c, pic18f2523.c}: use 18f4523.c
154         * device/lib/pic16/libdev/pic18f2525.c: use 18f4620.c
155         * device/lib/pic16/libdev/pic18f6680.c: uso 18f8680.c
156         * device/lib/pic16/libio/{adc.ignore, i2c.ignore, usart.ignore}:
157           prevent attempting to build the libio for some new devices
158
159 2008-04-29 Raphael Neider <rneider AT web.de>
160
161         * debugger/mcs51/Makefile.in: fixed paths to sources
162
163 2008-04-25 Borut Razem <borut.razem AT siol.net>
164
165         * as/link/lklibr.c: moved from as/link/z80/lklibr.c
166         * as/link/hc08/lklibr.c, as/link/mcs51/lklibr.c: deleted
167         * as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
168         * as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
169           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
170           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
171           as/link/z80/linkz80.dsp: lklibr.c moved
172         * doc/INSTALL.txt: binary archives in bz2 format
173         * support/cpp/auto-host_vc_in.h: CPP2 replaced with CPP
174
175 2008-04-23 Maarten Brock <sourceforge.brock AT dse.nl>
176
177         * src/SDCCglue.c (printIvalType, printIvalBitFields): fixed bug 1856409
178         * support/regression/tests/bug1856409.c: new, added
179
180 2008-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
181
182         * src/z80/peep.c,
183         * src/mcs51/peep.c: Use werror for error messages.
184         * src/SDCCicode.c (geniCodeConditional),
185         * src/SDCCsymt.c (structElemType): fixed bug 1839321
186         * src/z80/Makefile.bcc,
187         * src/z80/z80.dsp: added src/z80/peep.c/h
188         * support/regression/tests/bug1839321.c: new, added
189
190 2008-04-20 Raphael Neider <rneider AT web.de>
191
192         * device/include/pic16/pic18f2455.h: added bitfields for port C
193
194 2008-04-20 Philipp Klaus Krause <pkk AT spth.de>
195
196         * src/z80/peep.c: Use werror for error messages.
197
198 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
199
200         * src/z80/peep.h (declaration of notUsed()),
201         * src/z80/main.c (enabled notUsed() for z80 port, documented z80_port
202           struct),
203         * src/z80/z80.h (added dependency on peep.h),
204         * src/z80/peep.c (definition of notUsed()): Implemented RFE #1880202
205           for Z80.
206
207 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
208
209         * src/SDCCpeeph.c (added support for notUsed()),
210         * src/mcs51/main.c (added dependency on peep.h, documented mcs51_port
211           struct),
212         * src/port.h (removed dependency on mcs51/peep.h, added declaration
213           for notUsed()): Implemented generic (that is not port-specific) part
214           of RFE #1880202.
215
216 2008-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
217
218         * as/link/mcs51/lkmem.c (summary2): fixed bug 1796077
219         * device/lib/libsdcc.lib,
220         * device/lib/Makefile.in,
221         * support/regression/ports/mcs51-xstack-auto/spec.mk,
222         * device/lib/calloc.c: renamed to _calloc.c
223         * device/lib/free.c: renamed to _free.c
224         * device/lib/malloc.c: renamed to _malloc.c
225         * device/lib/realloc.c: renamed to _realloc.c
226         * src/ds390/gen.c (aopGet, aopPut, genPlusBits, genDataPointerSet,
227           genNearPointerSet, genPagedPointerSet): synchronized with mcs51/gen.c
228         * src/ds390/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq, ifxForOp,
229           genAnd, genOr, genXor, genIfx, gen390Code): fixed bug 1509084
230         * src/mcs51/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq,
231           ifxForOp, genAnd, genOr, genXor, genNearPointerGet,
232           genPagedPointerGet, genFarPointerGet, genCodePointerGet,
233           genGenPointerGet, genIfx, gen51Code): fixed bug 1509084
234         * src/ds390/gen.c,
235         * src/mcs51/gen.c: throughout cosmetic changes for syncing both
236         * src/SDCCsymt.h: updated IS_OP_RUONLY, IS_OP_ACCUSE
237         * support/regression/tests/bug1509084.c: new, added
238
239 2008-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
240
241         * device/include/mcs51/cc2510fx.h: added _XPAGE
242         * device/include/mcs51/compiler.h: cosmetic changes
243
244 2008-03-31 Maarten Brock <sourceforge.brock AT dse.nl>
245
246         * sdcc.dsw: adapted for moved cpp2, added dependency for as_z80 on
247           config
248
249 2008-03-31 Borut Razem <borut.razem AT siol.net>
250
251         * support/cpp2 renamed to support/cpp
252         * support/cpp2/libiberty/filenames.h, support/cpp2/libiberty/hex.c,
253           support/cpp2/libiberty/splay-tree.c,
254           support/cpp2/libiberty/splay-tree.h, support/cpp2/libcpp/macro.c,
255           support/cpp2/libcpp/directives.c,
256           support/cpp2/libcpp/include/cpplib.h,
257           support/cpp2/libcpp/include/symtab.h,
258           support/cpp2/libcpp/include/line-map.h,
259           support/cpp2/libcpp/line-map.c, support/cpp2/libcpp/files.c,
260           support/cpp2/libcpp/init.c, support/cpp2/libcpp/traditional.c,
261           support/cpp2/libcpp/expr.c, support/cpp2/libcpp/internal.h,
262           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/system.h,
263           support/cpp2/libcpp/charset.c: SDCPP synchronized with GCC CPP
264           release version 4.3.0
265         * configure.in, configure, Makefile.in, Makefile.bcc:
266           adapted for moved cpp2
267
268 2008-03-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
269
270         * device/include/hc08/mc68hc908jkjl.h: committed fix for bug #1929739,
271           thanks Alejandro Pustowka <alejo_pustowka AT yahoo.com.mx>
272
273 2008-03-30 Maarten Brock <sourceforge.brock AT dse.nl>
274
275         * src/SDCCloop.c (loopInvariants): applied fix for bug 1717943, thanks
276           Robert Larice
277         * support/regression/tests/bug1717943.c: new, added
278
279 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
280
281         * src/z80/gen.c (assignResultValue): Reverted reversal of order of
282           bytewise return value assignments introduced in last commit.
283
284 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
285
286         * src/z80/gen.c (emitDebug, assignResultValue, genPlus, genMinus,
287           genMult, genJumpTab):
288           Use 16-bit instructions for addition in some additional cases,
289           implemented RFEs #1914251, #1914245, #1922090, #1921382, #1918323.
290
291 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
292
293         * src/z80/ralloc.c (serialRegAssign, allocReg, tryAllocatingRegPair):
294           Implemented RFE #1921450, changed some debug messages.
295
296 2008-03-30 Borut Razem <borut.razem AT siol.net>
297
298         * Small Device C Compiler 2.8.0 released
299         * .version, doc/sdccman.lyx: changed sdcc version to 2.8.1
300         * support/scripts/sdcc.nsi: added finish page; this version
301           was used for 2.8.0 release
302         * doc/knownbugs.html: removed; magically generated by the build
303           process using gen_known_bugs.pl from now on
304
305 2008-03-23 Borut Razem <borut.razem AT siol.net>
306
307         * src/pic/gen.h: Q&D solution for the bug, found by Jim Paris
308           and reverted it, since it was already fixed by Raphael ;-)
309         * doc/knownbugs.html: updated for RC2
310
311 2008-03-22 Raphael Neider <rneider AT web.de>
312
313         * src/SDCCicode.c (getPtrType): avoid unnecessary extra assignments
314           for PIC16 targets
315
316 2008-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
317
318         * src/mcs51/gen.c (adjustArithmeticResult): fixed bug 1839299
319         * support/regression/tests/bug1839277.c: added related testBug1839299
320
321 2008-03-21 Maarten Brock <sourceforge.brock AT dse.nl>
322
323         * src/ds390/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign),
324         * src/mcs51/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign):
325           fixed bug 1839277
326         * src/mcs51/gen.c: throughout only output hex constants
327         * src/SDCCicode.c (getPtrType, geniCodeCast): fixed code size regression
328         * support/regression/tests/bug1839277.c: new, added
329
330 2008-03-21 Philipp Klaus Krause <pkk AT spth.de>
331
332         * src/z80/ralloc.c (callFuncByName): Used // instead of /**/ to fix
333           compilation warning about nested comments.
334
335 2008-03-20 Maarten Brock <sourceforge.brock AT dse.nl>
336
337         * src/SDCCsymt.c (comparePtrType): fixed bug 1921073
338         * support/regression/tests/bug1921073.c: new, added
339
340 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
341
342         * src/z80/SDCCpeeph.c.c (callFuncByName):
343           Commented function parameters.
344
345 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
346
347         * src/z80/ralloc.c (packRegsForAccUse2):
348           disabled a broken accumulator packing optimization (fixed #1292721).
349         * support/regression/tests/bug-1292721: Regression test for #1292721.
350
351 2008-03-16 Raphael Neider <rneider AT web.de>
352
353         * src/pic/gen.c (SetIrp,genNearPointerGet,genNearPointerSet):
354           fixed code bloat regression using a variant of patch #1915618
355
356 2008-03-16 Borut Razem <borut.razem AT siol.net>
357
358         * support/scripts/sdcc.nsi: added section debugging macros, added SDCC
359           icon, changed startup menu for release distribution, code cleaning,
360           create url files instead links in startup menu
361
362 2008-03-16 Maarten Brock <sourceforge.brock AT dse.nl>
363
364         * src/SDCCcse.c (algebraicOpts): fixed bug 1579949
365         * support/regression/tests/bug1579949.c: new, added
366
367 2008-03-14 Paul Stoffregen <paul AT pjrc.com>
368
369         * device/lib/printf_fast.c: fixed bug 1255403
370
371 2008-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
372
373         * doc/sdccman.lyx: enhanced paragraph about bankswitching for mcs51
374         * src/cdbFile.c (cdbWriteBasicSymbol): fixed bug 1909409 for locals
375
376 2008-03-14 Borut Razem <borut.razem AT siol.net>
377
378         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated link-xx and aslink
379           command line options
380         * as/link/hc08/lkmain.c: converted tabs to spaces so that the usage
381           is correctly displayed
382         * as/link/z80/lkmain.c: usage line commented out
383
384 2008-03-13 Borut Razem <borut.razem AT siol.net>
385
386         * doc/sdccman.lyx: corrected to be able to convert to PDF,
387           updated the list pf supported pic14 devices
388
389 2008-03-12 Maarten Brock <sourceforge.brock AT dse.nl>
390
391         * doc/sdccman.lyx: added paragraph about bankswitching for mcs51
392
393 2008-03-12 Borut Razem <borut.razem AT siol.net>
394
395         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated command line options,
396           fixed documentation request #1718191
397         * as/hc80/asmain.c, as/mcs51/asmain.c: added option -c to usage
398         * doc/sdccman.lyx: added description of --no-std-crt0 gbz80
399           command line option
400
401 2008-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
402
403         * src/SDCCast.c (isConformingBody): fixed bug 1505811, thanks Robert Larice
404         * support/regression/tests/bug1505811.c: new, added
405
406 2008-03-09 Raphael Neider <rneider AT web.de>
407
408         * device/include/pic16/pic18f2620.h,
409         * device/include/pic16/pic18f4620.h,
410         * device/lib/pic16/libdev/pic18f2620.c,
411         * device/lib/pic16/libdev/pic18f4525.c,
412         * device/lib/pic16/libdev/pic18f4620.c: merged 18f2525/2620/4525/4620
413           family to consistently use pic18f4620.[ch], fixes #1832562
414
415 2008-03-09 Borut Razem <borut.razem AT siol.net>
416
417         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
418           changed sdcc version to 2.8.0
419         * knownbugs.html: regenerated
420         * support/scripts/gen_known_bugs.pl: added number of open bugs
421
422 2008-03-09 Raphael Neider <rneider AT web.de>
423
424         * src/pic16/gen.c (pic16_mov2w_volatile): NEW, read volatile operands,
425           (genOr): read volatile operand even if the result is known,
426           closes #1511838
427           (genOr,genXor): removed unused legacy code,
428           (genDummyRead): use pic16_mov2w_volatile()
429
430 2008-03-08 Borut Razem <borut.razem AT siol.net>
431
432         * src/SDCCglue.c: fixed bug #1864582: multiple definition of char
433           cons w. --model-large
434         * support/regression/staticinit.c: added regression test for bug
435           #1864582
436
437 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
438
439         * src/ds390/gen.c (pushSide, genPcall),
440         * src/hc08/gen.c (pushSide, genPcall): synchronized with mcs51
441         * src/mcs51/gen.c: cosmetic changes
442         * support/regression/fwk/include/testfwk.h: added macro reentrant
443         * support/regression/tests/bug1908493.c: new, added
444
445 2008-03-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
446
447         * src/SDCCdebug.c:, as/link/lkaomf51.c: Fixed bug 1909409: Pdata in OMF file
448
449 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
450
451         * src/mcs51/gen.c (pushSide, genPcall): fixed bug 1908493
452         * src/SDCCmain.c (preProcess): removed -DSDCC_PARMS_IN_BANK1 because it is
453           already set in ds390/main.c and mcs51/main.c
454
455 2008-03-07 Raphael Neider <rneider AT web.de>
456
457         * src/regression/init0.c: new test for initialized arrays of function
458           pointers
459         * src/regression/Makefile: made a bit more flexible, added init0.c
460         * src/pic/glue.c (emitIvals): hacky fix for initializing from function
461           pointers, closes #1427663
462
463 2008-03-05 Borut Razem <borut.razem AT siol.net>
464
465         * dos/sdccman.lyx: docummented predefined macros SDCC_REVISION,
466           SDCC_PARMS_IN_BANK1, SDCC_FLOAT_REENT and SDCC_INT_LONG_REENT
467
468 2008-03-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
469
470         * support/librarian/sdcclib.c:Added feature request 1908061:
471           Synchronise sdcclib commands with ar.
472
473 2008-03-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
474
475         * src/SDCCmain.c: added predefined macros SDCC_REVISION (RFE #1907229),
476           and (depending on corresponding compiler option) SDCC_PARMS_IN_BANK1,
477           SDCC_FLOAT_REENT, SDCC_INT_LONG_REENT
478         * device/include/mcs51/compiler.h: removed umlauts, added double
479           underscore
480
481 2008-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
482
483         * src/SDCCptropt.c (ptrPseudoSymConvert): fixed bug 1536762
484         * support/regression/tests/bug1536762.c: new, added
485         * src/SDCCutil.c,
486         * src/SDCCutil.h: added getBuildDate()
487         * src/SDCCmain.c (printVersionInfo),
488         * src/SDCCglue.c (initialComments): use getBuildDate() instead of
489           __DATE__
490         * src/*/ralloc.c: removed IS_OP_RUONLY macro
491         * src/ds390/ralloc.c (packRegisters),
492         * src/mcs51/ralloc.c (packRegisters),
493         * src/z80/ralloc.c (packRegisters): applied fix for bug 1618050, thanks
494           Robert Larice
495         * support/regression/tests/bug1618050.c: new, added
496         * src/SDCCsymt.h: fixed typo in DECLSPEC2TXT
497         * support/regression/fwk/include/testfwk.h,
498         * support/regression/tests/bug1838000.c: moved _AUTOMEM and _STATMEM to
499           testfwk.h
500
501 2008-03-04 Raphael Neider <rneider AT web.de>
502
503         * src/pic/gen.c: removed unused prototypes, prevent internal errors
504           on accessing OP_SYM_TYPE(op)
505         * src/pic/gen.h: removed unused prototype of genMinusDec()
506         * src/pic/genarith.c (genMinus): cosmetic changes, rewritten to
507           fix #1876953 (invalid subtraction code), removed unused code
508
509 2008-03-03 Raphael Neider <rneider AT web.de>
510
511         * src/pic/gen.c,
512         * src/pic/gen.h,
513         * src/pic/genarith.c,
514         * src/pic/ralloc.c,
515         * src/pic/ralloc.h: removed AOP_R0, AOP_R1, AOP_DPTR, AOP_DPTR2,
516           AOP_ACC, and *_IDX and adjusted code, removed unused legacy code
517
518 2008-03-03 Raphael Neider <rneider AT web.de>
519
520         * src/pic/device.c (find_device): search user-specified paths first
521           for pic14devices.txt, fixes #1900827
522
523 2008-03-02 Borut Razem <borut.razem AT siol.net>
524
525         * support/scripts/sdcc.nsi: fixed bug in IsNT, LogicLib-isation of
526           AddToPath and RemoveFromPath
527
528 2008-03-01 Borut Razem <borut.razem AT siol.net>
529
530         * support/scripts/sdcc.nsi: reverted MULTIUSER page since it didn't
531           work correctly, added debugging support if -DSDCC.DEBUG command line
532           option is defined
533
534 2008-02-28 Borut Razem <borut.razem AT siol.net>
535
536         * doc/sdccman.lyx: cosmetic changes
537
538 2008-02-28 Maarten Brock <sourceforge.brock AT dse.nl>
539
540         * src/mcs51/ralloc.c (fillGaps): fixed bug 1839671
541         * doc/sdccman.lyx: fixed unmeant removal of spaces
542
543 2008-02-27 Borut Razem <borut.razem AT siol.net>
544
545         * support/scripts/sdcc.nsi: corrected installation directory for
546           current user installation mode
547         * doc/README.txt: added Philipp Klaus Krause to the developers list
548
549 2008-02-27 Maarten Brock <sourceforge.brock AT dse.nl>
550
551         * src/mcs51/gen.c (genUnpackBits): don't generate ifxJump, instead
552           return ifx condition
553           (genNearPointerGet, genPagedPointerGet, genFarPointerGet,
554           genCodePointerGet, genGenPointerGet): cleanup aop before generating
555             ifxJump to fix bug 1838000
556         * src/SDCCsymt.c (aggregateToPointer): fix problem for xstack
557         * support/regression/tests/bug1838000.c: new, added
558         * device/include/mcs51/cc1110.h: new, added, thanks to Pravin Angolkar
559
560 2008-02-26 Borut Razem <borut.razem AT siol.net>
561
562         * src/SDCCast.c, doc/sdccman.lyx: fixed RFE #1901171: inerger promotion
563           of casted varargs
564         * support/scripts/sdcc.nsi: added MULTIUSER page,
565           NSIS upgraded to version 2.35
566
567 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
568
569         * src/mcs51/ralloc.c (isSpiltOnStack): fixed bug 1565152
570         * support/regression/tests/bug1565152.c: new, added
571
572 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
573
574         * src/mcs51/gen.c (genPagedPointerSet): fixed bug 1670148
575         * support/regression/ports/mcs51-xstack-auto/spec.mk: added expf.c
576         * support/regression/tests/bug1670148.c: new, added
577
578 2008-02-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
579
580         * device/include/mcs51/at89c51ed2.h: fixed bug 1901469.
581
582 2008-02-24 Borut Razem <borut.razem AT siol.net>
583
584         * src/SDCCast.c, src/SDCCast.h: fixed bug #1874922: explicit typecast
585           is ineffective for unsigned char parameter
586
587 2008-02-24 Maarten Brock <sourceforge.brock AT dse.nl>
588
589         * src/SDCCast.c (expandInlineFuncs): fixed bug 1875869
590         * src/SDCCglue.c (printIvalBitFields): fixed bug 1806631
591         * support/regression/tests/bitopcse.c: removed hc08 exception, see testfwk.h
592         * support/Util/MySystem.c (my_system): output errorcode when verbose
593
594 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
595
596         * src/z80/gen.c (genMult): Rewrote 8-bit multiplication by constant,
597           implements #1898231
598
599 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
600
601         * device/lib/z80/mul.s: Rewrote __muluchar_rrx_s, to improve 8-bit mult.,
602           implements #1896290
603
604 2008-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
605
606         * src/SDCCast.c (createIvalStruct): fixed bug 1466761
607
608 2008-02-21 Borut Razem <borut.razem AT siol.net>
609
610         * support/regression/Makefile.in,
611           support/regression/ports/ds390/spec.mk,
612           support/regression/ports/hc08/spec.mk,
613           support/regression/ports/mcs51-common/spec.mk,
614           support/regression/ports/pic14/spec.mk,
615           support/regression/ports/pic16/spec.mk,
616           support/regression/ports/ucz80/spec.mk,
617           support/regression/ports/xa51/spec.mk:
618           added CFLAGS when compiling timeout
619
620 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
621
622         * support/regression/tests/bugs-1596270-1736867.c: Regression test for
623           #1596270, #1736867
624
625 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
626
627         * src/SDCClrange.c (findPrevUse): fixed bug 1888147
628         * support/regression/tests/bug1888147.c: new, added
629
630 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
631
632         * src/z80/gen.c: fixed bugs #1596270, #1736867
633
634 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
635
636         * src/z80/gen.c: fixed bug in register pair loading when swapping register
637           contents, mostly fixes #1596270
638
639 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
640
641         * src/z80/peeph.def,
642         * src/z80/peeph-z80.def: moved peephole that breaks gbz80 to z80-specific
643           peepholes, fixes #1806565
644
645 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
646
647         * src/SDCCpeeph.c (operandBaseName): added check for @Ri
648         * src/mcs51/peeph.def (rule 177.c): added operandsNotRelated(%1 %3)
649           fixes bug 1739475, thanks Robert Larice
650           (rule 271): new, added
651
652 2008-02-18 Borut Razem <borut.razem AT siol.net>
653
654         * sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
655
656 2008-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
657
658         * src/SDCCmain.c (linkEdit): emit -z when using --debug for z80
659
660 2008-02-17 Raphael Neider <rneider AT web.de>
661
662         * src/pic16/genarith.c,
663         * src/pic16/gen.c,
664         * src/pic16/gen.h,
665         * src/pic16/genutils.c: removed unused legacy code,
666           removed unused fields from struct asmop and struct _G
667
668 2008-02-17 Raphael Neider <rneider AT web.de>
669
670         * src/pic16/gen.c (AccRsh): cosmetic changes,
671           (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
672           genRightShiftLiteral): fixed to work with SFRs as result by
673           assigning only once to result,
674           removed a lot of unused/excluded code fragments
675
676 2008-02-17 Raphael Neider <rneider AT web.de>
677
678         * device/include/pic/pic16f88.h,
679         * device/include/pic/pic16f886.h,
680         * device/include/pic/pic16f887.h: added TRISA6 and TRISA7
681
682 2008-02-17 Borut Razem <borut.razem AT siol.net>
683
684         * src/z80/peeph.def: applied patch
685           #1893626: Optimize tail calls on Z80, thanks to Philipp Krause
686         * src/z80/gen.c, src/z80/peeph.def: applied patch
687           #1893510: Improve logical left shift on Z80, thanks to Philipp Krause
688         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
689           sim/ucsim/s51.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
690           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
691           sim/ucsim/main_in.mk: renamed libutil.a to libucsimutil.a in order to
692           enable compilation on Mac OS X 10.5 (Leopard) and XCode v3.0
693
694 2008-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
695
696         * as/link/mcs51/aslink.dsp: removed SDK define
697         * as/link/z80/clean.mk: brought in sync with other ports
698         * as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
699         * as/hc08/Makefile.bcc,
700         * as/mcs51/Makefile.bcc,
701         * as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
702         * src/z80/main.c (_setValues): use the now capitalized -Z,
703           (z80_port, gbz80_port): generate debug information when asked
704
705 2008-02-16 Borut Razem <borut.razem AT siol.net>
706
707         * as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
708           as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
709           as/z80/Makefile.in. as/z80/Makefile.bcc:
710           applied patch #1893393: patch for as-z80 and link-z80 to generate
711           cdb, thanks to Armin Diehl
712         * as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
713           as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
714           asnoice.c moved to as/asxxsrc/asnoice.c
715         * src/z80/peeph-gbz80.def: applied patch
716           #1880235: Z80 return peephole, thanks to Philipp Krause
717
718 2008-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
719
720         * .version,
721         * doc/sdccman.lyx: bumped version to 2.7.5
722         * src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583
723
724 2008-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
725
726         * device/include/pic16/stdlib.h,
727         * device/lib/pic16/libc/stdlib/ltoa.c,
728         * device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*
729
730 2008-02-13 Borut Razem <borut.razem AT siol.net>
731
732         * src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
733         * src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
734           src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
735           src/SDCCopt.c,  src/SDCCval.c:
736           fixed bug #1890273: SDCC Warning 154 shows wrong filename
737
738 2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
739
740         * src/SDCCsymt.c (compareType): fixed bug 1309013
741
742 2008-02-09 Borut Razem <borut.razem AT siol.net>
743
744         * src/SDCCval.c, src/SDCCval.h:
745           code cleaning, added function constChrVal()
746         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
747           call constChrVal() instead constVal()
748
749 2008-02-01 Maarten Brock <sourceforge.brock AT dse.nl>
750
751         * src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
752           of function pointer
753         * src/SDCCerr.h,
754         * src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
755         * support/regression/tests/absolute.c: added TestStruct TestVar (see also
756           bug 1859853)
757
758 2008-02-01 Raphael Neider <rneider AT web.de>
759
760         * device/include/pic/pic16f886.h,
761         * device/include/pic/pic16f887.h: added RA6 and RA7
762
763 2008-01-24 Raphael Neider <rneider AT web.de>
764
765         * device/include/pic/pic16f88.h: added RA6 and RA7
766         * device/lib/pic/libdev/disabled_pic16f886.c,
767         * device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled
768
769         * src/pic16/devices.inc,
770         * device/include/pic16/pic18f2423.h,
771         * device/include/pic16/pic18f2523.h,
772         * device/include/pic16/pic18fregs.h,
773         * device/lib/pic16/pics.all
774         * device/lib/pic16/libdev/pic18f2423.c,
775         * device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
776         * device/lib/pic16/libio/i2c.ignore,
777         * device/lib/pic16/libio/usart.ignore,
778         * device/lib/pic16/libio/adc.ignore: ignore new devices
779
780 2008-01-23 Maarten Brock <sourceforge.brock AT dse.nl>
781
782         * src/SDCCast.c (createRMW): fixed bug 1582651
783
784 2008-01-20 Borut Razem <borut.razem AT siol.net>
785
786         * src/SDCCcse.c: partially fixed enhancement request
787           #1793872 - multiply by -1 not collapsed
788         * support/regression/tests/arithcsi.c: added regression test
789
790 2008-01-19 Maarten Brock <sourceforge.brock AT dse.nl>
791
792         * as/mcs51/asx8051.dsp: removed define SDK
793         * as/mcs51/i51mch.c (machine): fixed bug 1865114
794         * device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
795         * as/link/lklex.c,
796         * as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
797           cosmetic changes, brought more in sync, changed old K&R to ANSI
798
799 2008-01-13 Borut Razem <borut.razem AT siol.net>
800
801         * support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...
802         * src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
803
804 2007-12-30 Borut Razem <borut.razem AT siol.net>
805
806         * src/pic16/gen.c: fixed implementation of bitwise operations for
807           pic16 target
808         * support/regression/tests/bitwise.c: added test cases
809
810 2007-12-29 Borut Razem <borut.razem AT siol.net>
811
812         * src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
813         * src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
814           src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
815         * support/Util/dbuf_string.[ch]: added function dbuf_getline()
816         * src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
817           src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
818           src/pic16/pcode.[ch]: added const qualifier
819         * as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
820           as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
821           as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
822           as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
823         * as/asxxsrc/aslex.c: use dbuf_getline()
824         * as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
825           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
826           as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
827           as/z80/asm.h, as/z80/z80adr.c:
828           changed type of ib and ip to const char *
829
830 2007-12-28 Borut Razem <borut.razem AT siol.net>
831
832         * as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
833           introduced (readlin) - long lines are turuncated
834         * as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
835           as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
836           as/z80/Makefile.in: moved aslex.c to asxxsrc
837         * as/hc08/aslex.c, as/z80/aslex.c: deleted
838         * as/hc08/asmain.c, as/mcs51/asmain.c:
839           added missing initialization of a_addr field
840         * support/regression/tests/long_asm_line.c: added regtest for long
841           assembler line
842
843 2007-12-22 Borut Razem <borut.razem AT siol.net>
844
845         * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
846
847 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
848
849         * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
850
851 2007-12-16 Borut Razem <borut.razem AT siol.net>
852
853         * device/include/pic16/stdbool.h: removed, since already exists in
854          device/include/; this also fixes bitopcse.c regression test for pic16
855          target
856         * support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
857         * src/pic16/glue.c: fixed bug #1851855: generic static pointer
858           dereference doesn't work; covered by regression test bug1399290
859
860 2007-12-05 Borut Razem <borut.razem AT siol.net>
861
862         * doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
863           Adding new PIC16
864
865 2007-12-01 Borut Razem <borut.razem AT siol.net>
866
867         * sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
868           corrected handling of the highest_valid_address
869
870 2007-11-17 Raphael Neider <rneider AT web.de>
871
872         * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
873         * src/pic/glue.c (picglue): emit .file if --debug is given
874
875 2007-11-17 Raphael Neider <rneider AT web.de>
876
877         * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
878         care when left or right operand resides in result, fixes #1830220
879
880 2007-11-17 Borut Razem <borut.razem AT siol.net>
881
882         * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
883           #983491 - "Merge duplicate strings function is ineffective"
884         * support/regression/tests/bug-983491.c: regtest disabled
885         * as/asxxsrc: created
886           as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
887           as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
888           as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
889           as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
890           as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
891           as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
892           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
893           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
894           as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
895           as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
896           as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
897           as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
898           created as/asxxsrc directory, assym.c and strcpi.c moved into it
899
900 2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
901
902         * device/include/stdarg.h: added and removed some casts
903         * src/SDCCsymt.c (compareType): Fully check types between generic and
904           non-generic pointers, also accept ptr-ptr to void-ptr assignments
905
906 2007-11-13 Borut Razem <borut.razem AT siol.net>
907
908         * support/regression/tests/bug-1817005.c:
909           added regtest for bug #1817005 - as-z80 chokes on long labels
910
911 2007-11-12 Borut Razem <borut.razem AT siol.net>
912
913         * as\z80\asmain.c, as\z80\asm.h, as\z80\assym.c, as\z80\asdata.c,
914           as\z80\asout.c, as\z80\aslist.c:
915           fixed bug #1817005 - as-z80 chokes on long labels
916
917 2007-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
918
919         * as/hc08/asmain.c,
920         * as/z80/asmain.c: cosmetic changes
921         * as/hc08/alloc.h,
922         * as/mcs51/alloc.h,
923         * as/z80/alloc.h: removed
924         * as/hc08/assym.c,
925         * as/mcs51/assym.c: replaced alloc.h with stdlib.h
926         * as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
927         * as/link/hc08/Makefile.in,
928         * as/link/mcs51/Makefile.in,
929         * as/link/z80/Makefile.in: added -DUNIX to CFLAGS
930         * as/link/lklex.c,
931         * as/link/mcs51/lkarea.c,
932         * as/link/mcs51/lkmain.c: cosmetic changes
933         * as/link/hc08/lklibr.c,
934         * as/link/z80/lklibr.c,
935         * as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
936           used cygwin_conv_to_full_posix_path,
937           added warnings, cosmetic changes, brought more in sync
938           changed old K&R into ANSI function declarations
939         * as/link/z80/lklibr.c (loadAdb): added
940         * as/link/z80/lkmain.c: removed -- option from usage text
941
942 2007-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
943
944         * src/mcs51/gen.c (outBitC): optimized for no result
945
946 2007-10-31 Borut Razem <borut.razem AT siol.net>
947
948         * src/SDCCsymt.c: fixed (hopeful properly) bug
949           #1805702 - order of extern matters
950         * support/regression/tests/bug-1805702.c: enabled regtest for bug
951           #1805702
952
953 2007-10-29 Borut Razem <borut.razem AT siol.net>
954
955         * src/SDCCsymt.c: reverted bad fixed of bug #1805702
956           - order of extern matters
957         * support/regression/tests/bug-1805702.c: disabled regtest for bug
958           #1805702
959
960 2007-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
961
962         * src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
963           24bitMode, portIsDS390
964         * src/mcs51/gen.c (genOr): optimized for RFE 1750727
965         * src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
966           (notVolatileVariable): also check sloc names,
967           (callFuncByName): moved ftab[] out of function and sorted it by use
968
969 2007-10-28 Maarten Brock <sourceforge.brock AT dse.nl>
970
971         * device/include/stdarg.h: fixed bug in va_start macro for --xstack
972         * src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
973           aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
974         * src/SDCCicode.c (geniCodeCast): fixed bug 880197
975         * support/regression/tests/bug-880197.c: new, added
976
977 2007-10-28 Borut Razem <borut.razem AT siol.net>
978
979         * support/regression/Makefile.in,
980           support/regression/ports/mcs51-large/spec.mk,
981           support/regression/ports/mcs51-xstack-auto/spec.mk,
982           support/regression/ports/mcs51-stack-auto/spec.mk,
983           support/regression/ports/mcs51-medium/spec.mk,
984           support/regression/ports/mcs51-common/spec.mk,
985           support/regression/ports/mcs51-common/*,
986           support/regression/ports/mcs51-small/*:
987           mcs51 renamed to mcs51-common, created mcs51-small
988         * src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
989         * support/regression/tests/bug-1805702.c: added regtest for bug
990           #1805702
991
992 2007-10-26 Maarten Brock <sourceforge.brock AT dse.nl>
993
994         * src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b,
995           added new rules 265 - 270
996         * support/regression/tests/bug1721024.c:new, added
997         * support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
998           introduced new test-mcs51 to run all mcs51 tests
999
1000 2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
1001
1002         * support/regression/tests/bug1816470.c: new, added
1003
1004 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
1005
1006         * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
1007           propagate for *,+,- with float, fixed bug 1816470
1008           (decorateType): cast to resultTypeProp instead of resultType
1009
1010 2007-10-19 Borut Razem <borut.razem AT siol.net>
1011
1012         * src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
1013           function is ineffective" for pic16 tareget
1014         * support/scripts/listerr.c: corrected include path
1015         * device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
1016           adjacent memory
1017
1018 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
1019
1020         * support/regression/tests/using.c: new, added
1021         * support/regression/tests/vaargs.c: fixed and enabled test
1022
1023 2007-10-18 Borut Razem <borut.razem AT siol.net>
1024
1025         * src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
1026           is ineffective
1027         * support/regression/tests/bug-983491.c: added regtest for bug #983491
1028
1029 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
1030
1031         * doc/sdccman.lyx: documented option --Werror
1032         * src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
1033           RegBankUsed[] earlier
1034
1035 2007-10-14 Maarten Brock <sourceforge.brock AT dse.nl>
1036
1037         * device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
1038         * src/pic/glue.c,
1039         * src/SDCCval.c,
1040         * src/SDCCast.c,
1041         * src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
1042           AST_ULONG_VALUE
1043         * src/SDCCast.c (decorateType): improved optimization of tri-op
1044         * src/SDCCerr.c (vwerror, setWError),
1045         * src/SDCCerr.h,
1046         * src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
1047           warnings as errors, thanks Stas Sergeev for PATCH 1813211
1048
1049 2007-10-13 Maarten Brock <sourceforge.brock AT dse.nl>
1050
1051         * src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
1052         * src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
1053         * support/regression/tests/bug-223113.c,
1054         * support/regression/tests/bug-426632.c,
1055         * support/regression/tests/bug-468811.c,
1056         * support/regression/tests/bug-477835.c,
1057         * support/regression/tests/bug-478094.c,
1058         * support/regression/tests/bug-499644.c,
1059         * support/regression/tests/bug-524209.c,
1060         * support/regression/tests/bug-524211.c,
1061         * support/regression/tests/packcast.c,
1062         * support/regression/tests/structidx.c: added empty tests
1063         * support/regression/tests/bug-607243.c: enabled test
1064
1065 2007-10-06 Borut Razem <borut.razem AT siol.net>
1066
1067         * .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
1068            support of universal binaries on Mac OS X
1069
1070 2007-10-02 Borut Razem <borut.razem AT siol.net>
1071
1072         * src/SDCCval.h: unified double2ul macro for all platforms
1073         * src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
1074         * support/regression/tests/bitwise.c: added regtest for bug #1777758
1075
1076 2007-09-30 Borut Razem <borut.razem AT siol.net>
1077
1078         * src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
1079           platforms
1080         * sdcc_vc_in.h: enabled warnings
1081         * src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
1082           unsigned type, result still unsigned
1083         * src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
1084
1085 2007-09-28 Raphael Neider <rneider AT web.de>
1086
1087         * src/pic/device.c (find_device): prevent buffer underflow error
1088         * src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
1089           the just destroyed list entry
1090
1091 2007-09-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1092
1093         * doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks
1094           Alexander Neundorf
1095
1096 2007-09-18 Borut Razem <borut.razem AT siol.net>
1097
1098         * src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
1099          applied to unsigned type, result still unsigned
1100
1101 2007-09-17 Borut Razem <borut.razem AT siol.net>
1102
1103         * src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c,
1104           src/SDCCicode.c, src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c,
1105           src/SDCCval.h, src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c,
1106           src/mcs51/gen.c, src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c,
1107           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/genarith.c,
1108           src/pic16/genutils.c, src/pic16/glue.c, src/pic16/main.c,
1109           src/z80/gen.c, src/z80/ralloc.c:
1110           fixed bug #1739860 - sdcc does not work correctly on some platforms
1111           (not finished)
1112           introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()
1113
1114 2007-09-17 Raphael Neider <rneider AT web.de>
1115
1116         * src/pic16/device.c: reverted to previous version
1117         * device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q
1118
1119 2007-09-16 Raphael Neider <rneider AT web.de>
1120
1121         * src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
1122           as this raises a ton of gpasm warnings, just emit a second label
1123         * src/pic16/devices.inc,
1124         * device/lib/pic16/pics.all,
1125         * device/lib/pic16/libdev/pic18f2585.c,
1126         * device/lib/pic16/libdev/pic18f2680.c,
1127         * device/lib/pic16/libdev/pic18f2682.c,
1128         * device/lib/pic16/libdev/pic18f2685.c,
1129         * device/lib/pic16/libdev/pic18f4585.c,
1130         * device/lib/pic16/libdev/pic18f4680.c,
1131         * device/lib/pic16/libdev/pic18f4682.c,
1132         * device/lib/pic16/libdev/pic18f4685.c,
1133         * device/include/pic16/pic18f2585.h,
1134         * device/include/pic16/pic18f2680.h,
1135         * device/include/pic16/pic18f2682.h,
1136         * device/include/pic16/pic18f2685.h,
1137         * device/include/pic16/pic18f4585.h,
1138         * device/include/pic16/pic18f4680.h,
1139         * device/include/pic16/pic18f4682.h,
1140         * device/include/pic16/pic18f4685.h,
1141         * device/include/pic16/pic18fregs.h: added 18f2585, 18f2680,
1142           18f2682, 18f2685, 18f4585, 18f4680, 18f4682, 18f4685,
1143           patch contributed by Anton Strobl, applied with changes
1144
1145 2007-09-16 Raphael Neider <rneider AT web.de>
1146
1147         * device/include/pic16/pic18f2431.h,
1148         * device/include/pic16/pic18f25j10.h,
1149         * device/include/pic16/pic18f4431.h,
1150         * device/include/pic16/pic18f45j10.h: adopted common include style
1151         * device/include/pic16/pic18f1320.h,
1152         * device/include/pic16/pic18f2320.h,
1153         * device/include/pic16/pic18f2525.h,
1154         * device/include/pic16/pic18f4320.h,
1155         * device/include/pic16/pic18f4525.h: NEW, just include proper .h file
1156         * device/include/pic16/pic18fregs.h: prepared for automatic include
1157           file selection by having DEVICE.h for every DEVICE
1158         * device/lib/pic16/libdev/pic18f2320.c,
1159         * device/lib/pic16/libdev/pic18f4320.c: just include proper .c file
1160
1161         * device/lib/pic16/configure.in,
1162         * device/lib/pic16/configure: use rm -rf instead of rmdir
1163         * device/lib/pic16/Makefile.in: use RMDIR to remove build directories
1164         * device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast
1165
1166 2007-09-09 Borut Razem <borut.razem AT siol.net>
1167
1168         * src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
1169           distingush between i386 and ppc Mac OS X versions
1170
1171 2007-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
1172
1173         * src/mcs51/gen.c (genReceive): fixed bug 1788177
1174         * support/regression/tests/bug1788177.c: new, added
1175
1176 2007-09-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1177
1178         * doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
1179         * device/include/mcs51/lint.h added keyword __naked
1180
1181 2007-09-04 Maarten Brock <sourceforge.brock AT dse.nl>
1182
1183         * src/pic16/glue.c,
1184         * src/pic/glue.c,
1185         * src/SDCCmem.h: removed maxRegBank
1186         * src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
1187           RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
1188         * src/SDCCsymt.c (checkFunction): set RegBankUsed[] here
1189         * src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
1190           name and behaviour to handle banked functions
1191           (scan4op): and use it to fix bug 1786213
1192
1193 2007-09-03 Raphael Neider <rneider AT web.de>
1194
1195         * device/include/pic16/pic18f248.h,
1196         * device/include/pic16/pic18f258.h,
1197         * device/include/pic16/pic18f448.h,
1198         * device/lib/pic16/libdev/pic18f248.c,
1199         * device/lib/pic16/libdev/pic18f258.c,
1200         * device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
1201           added T0CONbits, fixes #1786891
1202
1203 2007-08-29 Maarten Brock <sourceforge.brock AT dse.nl>
1204
1205         * src/ds390/gen.c (genFarPointerSet),
1206         * src/hc08/ralloc.c (packRegisters),
1207         * src/mcs51/ralloc.c (packRegisters),
1208         * src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
1209           bug 1750318
1210         * src/SDCCicode.h: POINTER_SET can be true for literals too
1211         * support/regression/tests/bug1750318.c: new, added
1212
1213 2007-08-23 Borut Razem <borut.razem AT siol.net>
1214
1215         * debugger/mcs51/sdcdb.c: fixed compilation with older readline
1216           library versions without the completition functionality
1217
1218 2007-08-22 Raphael Neider <rneider AT web.de>
1219
1220         * device/include/pic16/pic18f1220.h,
1221         * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
1222
1223 2007-08-12 Borut Razem <borut.razem AT siol.net>
1224
1225         * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
1226
1227 2007-08-11 Borut Razem <borut.razem AT siol.net>
1228
1229         * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
1230           src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
1231           support/Util/SDCCerr.[ch] moved to src
1232         * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
1233           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
1234           device/examples/ds390/tinitalk/tinitalk.dsp,
1235           device/examples/serialcomm/windows/serialcomm.dsp,
1236           support/librarian/librarian.dsp:
1237           removed linking of unused odbc32.lib and odbccp32.lib
1238         * support/scripts/winres.h:
1239           added for compilation with Visual C++ 2005 Express Edition
1240
1241 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1242
1243         * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
1244           and CKCON1.
1245
1246 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1247
1248         * sdccconf_in.h: update the endian test so that SPARC Solaris
1249           does not throw syntax errors
1250
1251 2007-08-06 Borut Razem <borut.razem AT siol.net>
1252
1253         * doc/sdccman.lyx: removed two index entries which prevented the
1254           generation of sdcc doc archive
1255
1256 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1257
1258         * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
1259           instead of lyx 1.5.0.
1260
1261 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1262
1263         * device/include/hc08/mc68hc908apxx.h: new header contributed by
1264           Lucas Loizaga, with minor modifications. Thanks!
1265
1266 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1267
1268         * doc/sdccman.lyx: Documented --acall-ajmp and described new features
1269           in sdcclib.
1270
1271 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1272
1273         * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
1274           src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
1275           with acall/ajmp.
1276
1277 2007-07-22 Borut Razem <borut.razem AT siol.net>
1278
1279         * configure.in, configure: re-introduced .version
1280         * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
1281           the version reverted to 2.7.0
1282
1283 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
1284
1285         * configure.in,
1286         * doc/sdccman.lyx: bumped version to 2.7.3
1287         * device/include/mcs51/compiler.h: fixed elif->else
1288         * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
1289         * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
1290           (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
1291            enable accuse for bit operands
1292         * src/SDCCmain.c (printVersionInfo),
1293         * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
1294           environment descriptor
1295         * src/SDCCutil.h: added getBuildEnvironment
1296         * src/SDCCglue.c (initialComments): use getBuildEnvironment
1297         * support/regression/tests/bug1464657.c: enabled test test_Peephole251
1298         * support/regression/tests/bug-408972.c: enabled test leftShiftLong
1299         * support/regression/tests/bug1348008.c,
1300         * support/regression/tests/bug1496419.c,
1301         * support/regression/tests/bug1503067.c,
1302         * support/regression/tests/preproc.c: added empty tests
1303
1304 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
1305
1306         * support/regression/tests/bug1678803.c: new, added
1307
1308 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
1309
1310         * as/link/aslink.h,
1311         * as/link/hc08/lkihx.c,
1312         * as/link/hc08/lkrloc.c,
1313         * as/link/mcs51/lkihx.c,
1314         * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
1315           ihxExtendedLinearAddress
1316         * as/link/mcs51/lkrloc.c (relr),
1317         * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
1318           acall/ajmp, see bug 830513
1319
1320 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
1321
1322         * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
1323           (cseBBlock): remember aggr2ptr has been used
1324         * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
1325           (geniCodeAssign): fixed bug 868103
1326         * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
1327           added operandSize prototype
1328         * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
1329           (genDataPointerSet): use max of size of right and result,
1330           (gencjne): added parameter useCarry for optimization,
1331           (genCmpEq): use carry if appropriate,
1332           (genXor): check if operand already in carry
1333         * support/regression/tests/bug-868103.c: enabled test
1334
1335 2007-07-12 Raphael Neider <rneider AT web.de>
1336
1337         * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
1338
1339 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
1340
1341         * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
1342           from Robert Larice, thanks
1343         * support/regression/tests/bitopcse.c,
1344         * support/regression/tests/bitvars.c,
1345         * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
1346         * support/regression/tests/bug-927659.c: enabled test for z80
1347         * support/regression/tests/bug1738367.c: added extra tests by Frieder
1348         * support/regression/tests/bug1745717.c: new, added
1349         * support/regression/tests/literalop.c,
1350         * support/regression/tests/nullstring.c: removed storage definitions that
1351           are now in testfwk.h
1352
1353 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
1354
1355         * device/include/stdbool.h: do not define __bool_true_false_are_defined
1356           and bool for targets that do not fully support it.
1357         * support/regression/tests/bug1546986.c,
1358         * support/regression/tests/bug1723128.c,
1359         * support/regression/tests/bug1734654.c,
1360         * support/regression/tests/bug1738367.c,
1361         * support/regression/tests/constantRange.c: only use bool if allowed
1362
1363 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
1364
1365         * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
1366           Larice, also handle function pointers
1367         * support/regression/tests/bug1749275.c: new, added
1368
1369 2007-07-03 Borut Razem <borut.razem AT siol.net>
1370
1371         * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
1372           src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
1373           #1746528: SDCC should ignore ':' in inline assembler comments
1374         * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
1375
1376 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
1377
1378         * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
1379         * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
1380
1381 2007-06-29 Borut Razem <borut.razem AT siol.net>
1382
1383         * src/SDCCmain.c: fixed bug
1384           #1744746: SDCC #4867: broken option --xram-size
1385
1386 2007-06-28 Borut Razem <borut.razem AT siol.net>
1387
1388         * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
1389           find out the endianess of host machine for ucsim
1390
1391 2007-06-27 Borut Razem <borut.razem AT siol.net>
1392
1393         * support/regression/generate-cases.py: corrected the file name
1394           in warning
1395         * configure.in, configure, sdccconf_in.h: find out the endianess of
1396           host machine
1397         * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
1398           negative size
1399
1400 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
1401
1402         * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
1403
1404 2007-06-26 Borut Razem <borut.razem AT siol.net>
1405
1406         * support/regression/generate-cases.py: display warning if function
1407           list is empty; implemented more flexible rule for detection of
1408           testing functions, allowing return type 'void' in the same line as
1409           the function name in the function definition
1410         * support/regression/tests/bug-1654060.c: corrected test
1411         * support/librarian/sdcclib.c: fixed warning:
1412           format '%s' expects type 'char *', but argument 2 has type 'int'
1413
1414 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1415
1416         * support/librarian/sdcclib.c: Added feature Requests [1510635]
1417           Multiple infiles for sdcclib.
1418
1419 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1420
1421         * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
1422           bug 1731741
1423
1424 2007-06-18 Borut Razem <borut.razem AT siol.net>
1425
1426         * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
1427           how to handle comments, so they have to be removed by the
1428           preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
1429         * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
1430           src/pic16/main.c, src/pic/main.c, src/z80/main.c,
1431           support/Util/SDCCerr.c, support/Util/SDCCerr.h:
1432           table driven option hadling
1433
1434 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
1435
1436         * src/SDCCast.c (decorateType),
1437         * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
1438           iCode to ast level to fix bug 1738367
1439         * support/regression/tests/bug1738367.c: new, added
1440
1441 2007-06-15 Raphael Neider <rneider AT web.de>
1442
1443         * src/pic16/devices.inc,
1444         * device/lib/pic16/pics.all,
1445         * device/include/pic16/pic18fregs.h,
1446         * device/include/pic16/pic18f[24][45]20.h,
1447         * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
1448           18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
1449         * device/lib/pic16/Makefile.in: faster cleanup
1450
1451 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1452
1453         * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
1454
1455 2007-06-13 Raphael Neider <rneider AT web.de>
1456
1457         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
1458
1459 2007-06-12 Raphael Neider <rneider AT web.de>
1460
1461         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
1462           suppress bit defines if NO_BIT_DEFINES is #define'd
1463         * device/include/pic/pic*.h: recreated all headers to include
1464           conditional bit defines
1465         * device/include/pic/pic16f886.h,
1466         * device/include/pic/pic16f887.h: fixed based on newer .inc file
1467         * device/include/pic/recreate.sh: script to recreate the complete
1468           device library files based on the currently supported devices
1469
1470 2007-06-12 Borut Razem <borut.razem AT siol.net>
1471
1472         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
1473           support/regression/Makefile.in, support/scripts/build.mak,
1474           support/scripts/Makefile.snapshot:
1475           use new svn URL scheme
1476         * doc/sdccman.lyx: SDCC Wiki moved to
1477           http://sdcc.wiki.sourceforge.net/
1478
1479 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1480
1481         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
1482         * support/regression/tests/bug1734654.c: added
1483
1484 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
1485
1486         * src/SDCCast.c (decorateType): optimized '?' for equal operands
1487         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
1488           with literal operands
1489
1490 2007-06-10 Borut Razem <borut.razem AT siol.net>
1491
1492         * as/link/z80/lklibr.c: fixed mingw build warning
1493           lklibr.c:575: warning: implicit declaration of function 'tolower'
1494         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
1495           src/z80/main.c: move target specific options from src/SDCCmain.c
1496           to src/<target>/main.c
1497
1498 2007-06-09 Borut Razem <borut.razem AT siol.net>
1499
1500         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
1501           removed unused swap_sense; removed outBitCLong, replaced with outBitC
1502         * support/regression/tests/bug-1294691.c: added
1503
1504 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
1505
1506         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
1507           can also be static, fixes bug 1733438
1508         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
1509           have absolute address too
1510           (computeType): added optimization for 'cond ? true : false'
1511         * support/regression/tests/absolute.c: added test for static absolute var
1512
1513 2007-06-08 Raphael Neider <rneider AT web.de>
1514
1515         * src/regression/Makefile: suppress parallel builds, allow easy
1516           switching between pic14/pic16 ports
1517         * src/regression/picregs.h: added pic14/16 header file switch
1518         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
1519           inline.c,nestfor.c,string1.c}: include "picregs.h"
1520
1521 2007-06-07 Borut Razem <borut.razem AT siol.net>
1522
1523         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
1524           permanent solution to suppress GCC 4.2.0 c++ warning:
1525           deprecated conversion from string constant to `char *'
1526           use 'const char *' where ever required
1527         * support/regression/generate-cases.py: implemented more flexible rule
1528           for detection of testing functions, allowing white-spaces surrounding
1529           the function name and the 'void' parameter.
1530         * support/regression/tests/constantRange.c,
1531           support/regression/tests/scott-compare3.c: fixed failing regression
1532           tests, uncovered by implementation of more flexible rule for detection
1533           of testing functions
1534
1535 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
1536
1537         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
1538
1539 2007-06-04 Borut Razem <borut.razem AT siol.net>
1540
1541         * configure.in, configure, config_vc.awk: sdcc version number is now
1542           stored in configure.in; removed .version
1543         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
1544           doc/INSTALL.txt: version bumped to 2.7.2
1545         * sim/ucsim/configure.in, sim/ucsim/configure:
1546           use "read" to read from .version
1547
1548 2007-06-03 Borut Razem <borut.razem AT siol.net>
1549
1550         * */Makefile.in: removed annoying warning:
1551           Makefile:xx: Makefile.dep: No such file or directory
1552
1553 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
1554
1555         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
1556           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
1557         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
1558         * src/SDCCast.c (resultTypePropagate): propagate for '!',
1559           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
1560           bugfix: only use newBoolLink for bit result type
1561         * src/SDCCicode.c (geniCodeLogic): added param tree,
1562           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
1563           (geniCodeLogicAndOr): use IS_BIT,
1564           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
1565           (ast2iCode): added tree param to geniCodeLogic for comparisons
1566         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
1567         * support/regression/tests/bug1723128.c: added test NotZero
1568
1569 2007-06-01 Borut Razem <borut.razem AT siol.net>
1570
1571         * SDCPP synchronized with GCC CPP release version 4.2.0,
1572           currently the latest release:
1573         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1574           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
1575           support/cpp2/cppdefault.h, support/cpp2/except.h,
1576           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
1577           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
1578           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
1579           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
1580           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
1581           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
1582           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
1583           support/cpp2/opts.h, support/cpp2/output.h,
1584           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
1585           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
1586           support/cpp2/system.h, support/cpp2/version.c,
1587           support/cpp2/Makefile.in: modified
1588         * support/cpp2/opts-common.c: added
1589         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
1590         * device/lib/pic16/libdev/pic18f[24]5j10.c:
1591           search for included source file in local directory
1592         * sim/ucsim/configure, sim/ucsim/configure.in:
1593           temporary solution to suppress GCC 4.2.0 c++ warning:
1594           deprecated conversion from string constant to `char *'
1595
1596 2007-06-01 Raphael Neider <rneider AT web.de>
1597
1598         * device/lib/pic/libdev/pic12f683.c,
1599         * device/include/pic/pic12f683.h: added GPIO bits
1600
1601 2007-06-01 Raphael Neider <rneider AT web.de>
1602
1603         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
1604           quotation marks, clarified role of PIC14 vs. PIC16 ports
1605         * src/pic16/devices.inc,
1606         * device/include/pic16/pic18fregs.h,
1607         * device/include/pic16/pic18f[24][45]j10.h,
1608         * device/lib/pic16/pics.all,
1609         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
1610           18f24j10, 18f25j10, 18f44j10, and 18f45j10
1611         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
1612           for new devices as they are not yet supported by gputils
1613
1614 2007-05-31 Borut Razem <borut.razem AT siol.net>
1615
1616         * Small Device C Compiler 2.7.0 released
1617         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
1618           changed sdcc version to 2.7.1
1619         * support/scripts/sdcc.nsi: added How to create WIN32 release
1620           setup.exe package
1621
1622 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1623
1624         * doc/sdccman.lyx: documented initialization and allocation of absolute
1625           variables, bit parameter passing, the need for function pointers to be
1626           reentrant and alpha quality support of inline and retrict
1627
1628 2007-05-26 Borut Razem <borut.razem AT siol.net>
1629
1630         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
1631           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
1632         * docs/knownbugs.html: updated
1633
1634 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
1635
1636         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
1637           thanks Jan Waclawek
1638         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
1639           AOP_CRY and ruonly
1640           (gencjneshort): optimized when left is AOP_DIR
1641         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
1642           initializing unions in a struct/array
1643         * support/regression/fwk/include/testfwk.h: added defines for data, near
1644           and far for host and z80
1645         * support/regression/tests/bug1723128.c: new, added
1646
1647 2007-05-22 Borut Razem <borut.razem AT siol.net>
1648
1649         * doc/knownbugs.html: updated
1650
1651 2007-05-21 Raphael Neider <rneider AT web.de>
1652
1653         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
1654           error message instead
1655         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
1656
1657 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
1658
1659         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
1660
1661 2007-05-21 Raphael Neider <rneider AT web.de>
1662
1663         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
1664           closes #1722392
1665         * src/regression/gpsim_assert.h,
1666         * src/regression/Makefile,
1667         * src/regression/pcodeopt.c: regression test for the above fix
1668
1669 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
1670
1671         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
1672           jumps to self, fixed bug 1717281
1673
1674 2007-05-10 Borut Razem <borut.razem AT siol.net>
1675
1676         * support/scripts/gen_known_bugs.pl: cosmetic fix
1677         * doc/knownbugs.html: generated by gen_known_bugs.pl
1678
1679 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1680
1681         * src/SDCCast.c (createFunction): also generate non-inlined version of
1682           function for functions declared as "static inline"
1683         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
1684           function can be inlined after non-inlined version generated.
1685
1686 2007-05-10 Borut Razem <borut.razem AT siol.net>
1687
1688         * support/scripts/gen_known_bugs.pl: added script
1689           which generates knownbugs.html
1690
1691 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
1692
1693         * doc/knownbugs.html: updated for release 2.7.0
1694
1695 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1696
1697         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
1698
1699 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
1700
1701         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
1702           (throughout): updated generating comments
1703         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
1704           (throughout): updated generating comments
1705         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
1706           rule instead of at the second, or it might skip lines when removing the
1707           complete match
1708         * support/regression/tests/bug1714204.c: changed test to foo
1709
1710 2007-05-08 Borut Razem <borut.razem AT siol.net>
1711
1712         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
1713           thanks to SDCC Distributed Compile Farm members,
1714           added Z80 and GBZ80 command line options
1715         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
1716
1717 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
1718
1719         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
1720         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
1721         * support/regression/tests/longlit.c: modified to be tested at all and
1722           to pass the actual test
1723
1724 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1725
1726         * device/include/mcs51/uPSD33xx.h: Added.
1727
1728 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
1729
1730         * device/lib/_gptrput.c,
1731         * device/lib/_gptrget.c: removed old code,
1732          (_gptrgetWord),
1733         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
1734         * support/regression/tests/bug1714204.c: new, added
1735
1736 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1737
1738         * support/regression/tests/regtrack.c: test was never executed
1739           because of the regression test being picky about white spaces.
1740         * device/lib/mcs51/crtclear.asm: added comment
1741
1742 2007-05-06 Raphael Neider <rneider AT web.de>
1743
1744         * device/lib/pic/Makefile.rules,
1745         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
1746           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
1747
1748 2007-05-06 Raphael Neider <rneider AT web.de>
1749
1750         * src/pic16/device.h,
1751         * src/pic16/main.h,
1752         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
1753           _pic16_setDefaultOptions): removed/reordered command-line args
1754         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
1755           devices, regrouped command line args, environment variables),
1756           clarified sone points, added sections on how to add devices to the
1757           PIC14/PIC16 ports
1758
1759 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
1760
1761         * src/z80/peeph.def: fixed bug in rule 2
1762
1763 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
1764
1765         * src/port.h: added TARGET_MCS51_LIKE
1766         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
1767           take advantage of it too
1768         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
1769           (shiftR2Left2Result): Optimized: don't check shifting by 0
1770         * src/z80/peeph-z80.def,
1771         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
1772           modifications, see patch 1700823
1773         * src/mcs51/peep.c (): fixed bug 1712928
1774         * support/regression/tests/bug1712928.c: new, added
1775
1776 2007-05-05 Borut Razem <borut.razem AT siol.net>
1777
1778         * device/lib/pic16/Makefile.common.in,
1779           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
1780           removed bash dependencies
1781
1782 2007-05-01 Borut Razem <borut.razem AT siol.net>
1783
1784         * src/SDCCicode.c:
1785           fixed bug #1710507: --i-code-in-asm makes compile fail
1786           all iCode comments are now one liners
1787         * src/mcs51/gen.c: fixed memory leak
1788
1789 2007-05-01 Raphael Neider <rneider AT web.de>
1790
1791         * device/lib/pic/libdev/*.c
1792         * device/include/pic/*.h: regenerated all device libs from updated
1793           .inc files
1794         * support/scripts/inc2h.pl: documented usage, now uses strict to
1795           catch more bugs
1796
1797 2007-04-30 Borut Razem <borut.razem AT siol.net>
1798
1799         * doc/sdccman.lyx:
1800           fixed bug #1669175: Problem with space in output paths
1801           documented how to use paths with spaces for Windows users
1802
1803 2007-04-29 Borut Razem <borut.razem AT siol.net>
1804
1805         * Fixed svn:eol-style and svn:keywords properties
1806         * src/SDCCval.c: fixed bug
1807           #1592871: Segfault with "large" const arrays of characters
1808           replaced recursion with iteration
1809         * Removed svn:executable property from non-executable files
1810
1811 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
1812
1813         * src/mcs51/gen.c (genRet): fixed bug 1707003
1814
1815 2007-04-27 Raphael Neider <rneider AT web.de>
1816
1817         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
1818           createReachingDefinitions,assignValnums,pic16_destructDF,
1819           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
1820           prevent NULL pointer dereferences
1821         * device/lib/pic/libdev/pic16f886.c,
1822         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
1823           prevent building them, gputils do not really support them yet
1824
1825 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1826
1827         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
1828           helps printf_small. 32 bytes more __idata mem.
1829
1830 2007-04-27 Raphael Neider <rneider AT web.de>
1831
1832         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
1833           return early when pb or pb->pcHead is NULL (patch #1708427)
1834         * src/regression/empty.c,
1835         * src/regression/Makefile: added test with empty functions
1836         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
1837
1838 2007-04-27 Borut Razem <borut.razem AT siol.net>
1839
1840         * src/SDCCast.c: fixed feature request
1841           #1547512: Redundant strings linked when using sizeof("abc")
1842
1843 2007-04-23 Borut Razem <borut.razem AT siol.net>
1844
1845         * doc/sdccman.lyx, src/SDCCmain.c:
1846           peep-hole comments are generated only if --fverbose-asm option is
1847           specified and --no-peep-comments is not, as proposed by Frieder.
1848         * support/regression/Makefile.in: compile regression tests with
1849           --fverbose-asm option so one can "grep" whether a new (or an old)
1850           peephole is (still) applied; requested by Frieder.
1851
1852 2007-04-23 Kevin Buettner <kevin AT buettner.to>
1853
1854         * device/include/pic/pic16f886.h,
1855         * device/include/pic/pic16f887.h,
1856         * device/lib/pic/libdev/pic16f886.c,
1857         * device/lib/pic/libdev/pic16f887.c,
1858         * device/include/pic/pic14devices.txt,
1859         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
1860
1861 2007-04-23 Kevin Buettner <kevin AT buettner.to>
1862
1863         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
1864           fixes #1704666
1865
1866 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1867
1868         * device/lib/_memset.c: assembler version for mcs51
1869
1870 2007-04-22 Borut Razem <borut.razem AT siol.net>
1871
1872         * support/scripts/listerr.c: program to create the list of errors and
1873           warnings list from - added
1874         * doc/sdccman.lyx: removed the note
1875           "For list of warnings and corresponding codes, see err_warn.txt"
1876         * src/SDCCsymt.c: fixed bug #1699804:
1877           Bug with some uses of sizeof(static local array) (MCS51)
1878         * support/regression/tests/bug-1699804.c: added
1879
1880 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
1881
1882         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
1883           (main): added option -i,
1884           (asmbl, case S_INCL): use search_path_fopen,
1885           mostly from patch 1579668 by Peter Miller, thanks
1886         * src/z80/main.c: fixed typo --callee-saves-bc
1887         * device/include/mcs51/compiler.h: added sfrword for Tasking
1888
1889 2007-04-20 Borut Razem <borut.razem AT siol.net>
1890
1891         * src/z80/main.c: replaced reserved keyword asm with asmblr
1892
1893 2007-04-19 Borut Razem <borut.razem AT siol.net>
1894
1895         * src/port.h: use const pointers to strings
1896         * src/SDCCargs.h: declared getStringArg() and getIntArg()
1897         * src/pic16/main.c: include SDCCargs.h
1898         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
1899           const char, since the strings are dynamically allocated
1900         * src/SDCCmain.c: options.code_seg and options.const_seg are
1901           dynamically allocated; check port specific command line options
1902           before the general ones
1903         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
1904
1905 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
1906
1907         * device/include/ds400rom.h,
1908         * device/lib/ds390/lcd390.c,
1909         * device/lib/ds390/memcpyx.c,
1910         * device/lib/ds390/rtc390.c,
1911         * device/lib/ds400/ds400rom.c,
1912         * device/lib/ds400/memcpyx.c,
1913         * device/lib/hc08/_ret.c: more replacements of keywords with their
1914           double underscore equivalents
1915         * device/lib/ds390/Makefile.in,
1916         * device/lib/ds400/Makefile.in,
1917         * device/lib/gbz80/Makefile.in,
1918         * device/lib/hc08/Makefile.in,
1919         * device/lib/mcs51/Makefile.in,
1920         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
1921
1922 2007-04-17 Borut Razem <borut.razem AT siol.net>
1923
1924         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
1925           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
1926           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
1927           to --fverbose-asm, to be gcc'ish
1928
1929 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
1930
1931         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
1932
1933 2007-04-17 Borut Razem <borut.razem AT siol.net>
1934
1935         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
1936         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
1937           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
1938           with their double underscore equivalent
1939
1940 2007-04-14 Borut Razem <borut.razem AT siol.net>
1941
1942         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
1943           source"
1944
1945 2007-04-13 Borut Razem <borut.razem AT siol.net>
1946
1947         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
1948           C99 standard
1949         * device/examples/serialcomm/windows/serial.[ch],
1950           device/examples/serialcomm/windows/test_serialcomm.cpp:
1951           updated by Bela Torok
1952         * device/examples/serialcomm/windows/serialcomm.dsw,
1953           device/examples/serialcomm/windows/serialcomm.dsp: added
1954
1955 2007-04-13 Jan Waclawek <wek AT efton.sk>
1956
1957         * doc/sdccman.lyx: additions and changes at various places
1958           (submitted as #1697136).
1959           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
1960
1961 2007-04-10 Borut Razem <borut.razem AT siol.net>
1962
1963         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
1964           LyX file format changed to 245
1965         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
1966           "FreeWare" replaced with "free open source"
1967
1968 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
1969
1970         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
1971
1972 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
1973
1974         * device/include/pic16/pic18fregs.h,
1975         * device/lib/_bp.c,
1976         * device/lib/_decdptr.c,
1977         * device/lib/_divsint.c,
1978         * device/lib/_divslong.c,
1979         * device/lib/_divuint.c,
1980         * device/lib/_divulong.c,
1981         * device/lib/_fs2schar.c,
1982         * device/lib/_fs2sint.c,
1983         * device/lib/_fs2slong.c,
1984         * device/lib/_fs2uchar.c,
1985         * device/lib/_fs2uint.c,
1986         * device/lib/_fs2ulong.c,
1987         * device/lib/_fsadd.c,
1988         * device/lib/_fscmp.c,
1989         * device/lib/_fsdiv.c,
1990         * device/lib/_fseq.c,
1991         * device/lib/_fsget1arg.c,
1992         * device/lib/_fsget2args.c,
1993         * device/lib/_fsgt.c,
1994         * device/lib/_fslt.c,
1995         * device/lib/_fsmul.c,
1996         * device/lib/_fsneq.c,
1997         * device/lib/_fsnormalize.c,
1998         * device/lib/_fsreturnval.c,
1999         * device/lib/_fsrshift.c,
2000         * device/lib/_fssub.c,
2001         * device/lib/_fsswapargs.c,
2002         * device/lib/_gptrget.c,
2003         * device/lib/_gptrgetc.c,
2004         * device/lib/_gptrput.c,
2005         * device/lib/_logexpf.c,
2006         * device/lib/_modsint.c,
2007         * device/lib/_modslong.c,
2008         * device/lib/_moduint.c,
2009         * device/lib/_modulong.c,
2010         * device/lib/_mulint.c,
2011         * device/lib/_mullong.c,
2012         * device/lib/_schar2fs.c,
2013         * device/lib/_ser.c,
2014         * device/lib/_setjmp.c,
2015         * device/lib/_sint2fs.c,
2016         * device/lib/_slong2fs.c,
2017         * device/lib/_spx.c,
2018         * device/lib/_uchar2fs.c,
2019         * device/lib/_uint2fs.c,
2020         * device/lib/_ulong2fs.c,
2021         * device/lib/asincosf.c,
2022         * device/lib/atanf.c,
2023         * device/lib/calloc.c,
2024         * device/lib/ds390/tinibios.c,
2025         * device/lib/ds400/tinibios.c,
2026         * device/lib/expf.c,
2027         * device/lib/free.c,
2028         * device/lib/hc08/_mulint.c,
2029         * device/lib/logf.c,
2030         * device/lib/malloc.c,
2031         * device/lib/printf_fast.c,
2032         * device/lib/printf_tiny.c,
2033         * device/lib/printfl.c,
2034         * device/lib/realloc.c,
2035         * device/lib/ser_ir.c,
2036         * device/lib/serial.c,
2037         * support/regression/tests/libmullong.c: replaced all special keywords
2038           with their double underscore equivalent
2039         * support/regression/ports/mcs51-xstack-auto/spec.mk,
2040         * device/lib/Makefile.in: compile libs with --std-c99 instead of
2041           --std-sdcc99
2042         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
2043           (genRet): if the bit-symbol is ruonly it already is in the carry
2044         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
2045         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
2046         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
2047           type UCHAR if dest is not bit
2048
2049 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
2050
2051         * device/include/math.h,
2052         * device/lib/cotf.c,
2053         * device/lib/expf.c,
2054         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
2055
2056 2007-04-01 Borut Razem <borut.razem AT siol.net>
2057
2058         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
2059           fixed bug #1692042: input buffer overflow...scanner uses REJECT
2060         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
2061           gcc_unreachable() called internal_error()...
2062
2063 2007-03-30 Raphael Neider <rneider AT web.de>
2064
2065         * src/pic/ralloc.c (isData): suppress garbage debug output
2066
2067 2007-03-28 Borut Razem <borut.razem AT siol.net>
2068
2069         * doc/sdccman.lyx:
2070           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
2071           is developed, built and used worldwide, and the word "night" doesn't
2072           make any sense.
2073
2074 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
2075
2076         * device/include/mcs51/C8051F360.h: new, added
2077         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
2078
2079 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2080
2081         * src/SDCC.y (declaration_specifiers, function_specifier),
2082         * support/Util/SDCCerr.c,
2083         * support/Util/SDCCerr.h,
2084         * src/SDCCsymt.h,
2085         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
2086           inline keyword
2087         * src/SDCCmem.c (deallocParms),
2088         * src/SDCCast.c: support for function inlining, not quite complete
2089         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
2090           'restrict' qualifier
2091
2092 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
2093
2094         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
2095           (saveRBank, unsaveRBank): don't save bits,
2096           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
2097         * support/regression/tests/bug1535242.c: new, added
2098         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
2099           thanks Alexey Shamrin <shamrin AT gmail.com>,
2100           made assert.h header ANSI compliant (added a check for NDEBUG macro,
2101           removed header guard)
2102         * .version,
2103         * sdcc.spec: bumped version to 2.6.5
2104         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
2105
2106 2007-03-22 Borut Razem <borut.razem AT siol.net>
2107
2108         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
2109           fixed bug #1653671: sdcdb integration into ddd is broken
2110
2111 2007-03-22 Raphael Neider <rneider AT web.de>
2112
2113         * src/pic/gen.c (popGetExternal): augmented to also create references
2114           to external variables (not only labels),
2115           (genCall): comment on plan to reduce PAGESEL overhead,
2116           (genFunction, genEndFunction): also save/restore FSR around interrupt
2117           handling code, removed lots of unused code
2118           (genDivOneByte): release acquired temp register
2119         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
2120           of popGetExternal
2121         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
2122           for registers that need to be saved during interrupts (FSR, STATUS,
2123           PCLATH; W needs special handling), currently only FSR is used
2124
2125 2007-03-22 Raphael Neider <rneider AT web.de>
2126
2127         * device/include/pic/pic14devices.txt: 16f688 has only one config word
2128
2129 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2130
2131         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
2132
2133 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
2134
2135         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
2136
2137 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
2138
2139         * as/link/aslink.h: added LKOBJEXT
2140         * as/link/hc08/link_hc08.dsp,
2141         * as/link/hc08/Makefile.bcc,
2142         * as/link/hc08/Makefile.in,
2143         * as/link/mcs51/aslink.dsp,
2144         * as/link/mcs51/Makefile.bcc,
2145         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
2146         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
2147         * as/link/lkaomf51.c: merged and moved
2148         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
2149         * as/link/z80/lkdata.c,
2150         * as/link/lkdata.c: merged and moved
2151         * as/link/hc08/lkmain.c,
2152         * as/link/mcs51/lkmain.c: cosmetic changes
2153         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
2154         * as/link/lklex.c: use LKOBJEXT
2155         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
2156           ANSI-fied functions, removed bubble-sorts
2157         * as/link/z80/lksym.c           as/link/lksym.c: merged,
2158           ANSI-fied functions
2159         * as/link/z80/linkgbz80.dsp,
2160         * as/link/z80/linkz80.dsp,
2161         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
2162           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
2163         * as/link/z80/lkhead.c,
2164         * as/link/z80/lklex.c: deleted
2165         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
2166         * as/link/z80/lkmain.c: added copyfile()
2167
2168 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2169
2170         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
2171
2172 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2173
2174         * device/lib/_strlen.c: assembler version for mcs51
2175
2176 2007-03-13 Raphael Neider <rneider AT web.de>
2177
2178         * device/include/pic16/pic18f2221.h,
2179         * device/include/pic16/pic18f2321.h,
2180         * device/include/pic16/pic18f2331.h,
2181         * device/include/pic16/pic18f4221.h,
2182         * device/include/pic16/pic18f4321.h,
2183         * device/include/pic16/pic18f4331.h: fixed config byte location names
2184         * support/scripts/inc2h-pic16.pl: removed debug output, emit
2185           consistently named config byte locations
2186
2187 2007-03-13 Borut Razem <borut.razem AT siol.net>
2188
2189         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
2190           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
2191           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
2192           as/link/z80/Makefile.in, as/z80/Makefile.in:
2193           introduced LDFLAGS
2194
2195 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2196
2197         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
2198         * device/lib/printf_large.c: pointer was converted to generic
2199         pointer for mcs51 models other than model-small (Maarten noticed)
2200
2201 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2202
2203         * device/include/mcs51/ADuC84x.h: Added.
2204
2205 2007-03-10 Borut Razem <borut.razem AT siol.net>
2206
2207         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
2208           fixed RFE #1624219: double backslashes in filenames;
2209           functions hexEscape(), octalEscape() and copyStr() moved from
2210           SDCCval.c to SDCCutil.c and made them glovbally available
2211
2212 2007-03-09 Borut Razem <borut.razem AT siol.net>
2213
2214         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
2215           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
2216           1673361: Missaligned comments in output files
2217
2218 2007-03-09 Raphael Neider <rneider AT web.de>
2219
2220         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
2221
2222 2007-03-09 Raphael Neider <rneider AT web.de>
2223
2224         * src/pic/gen.c,
2225         * src/pic/glue.c,
2226         * src/pic/ralloc.c: suppress undesired debug output
2227         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
2228
2229 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2230
2231         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
2232
2233 2007-03-07 Borut Razem <borut.razem AT siol.net>
2234
2235         * device/lib/pic16/libdev/pic18f[24][34]31.c:
2236           search include files in the current directory
2237
2238 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
2239
2240         * src/SDCCglue.c (emitMaps, glue),
2241         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
2242           absolute xdata
2243         * support/regression/tests/absolute.c: added xdata test
2244
2245 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
2246
2247         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
2248           added condition to macro, fixes bug 1666080
2249
2250 2007-03-02 Raphael Neider <rneider AT web.de>
2251
2252         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
2253
2254 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2255
2256         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
2257         be cleared. Unconditionally set __XPAGE
2258         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
2259
2260 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2261
2262         * src/SDCCglobl.h,
2263         * src/SDCCmain.c,
2264         * src/mcs51/gen.c,
2265         * src/mcs51/rtrack.c,
2266         * src/ds390/gen.c,
2267         * doc/sdccman.lyx: added --no-gen-comments
2268         * src/mcs51/peeph.def: added 192.b, disabled 185
2269
2270 2007-02-25 Raphael Neider <rneider AT web.de>
2271
2272         * src/pic16/gen.c (genCast): fixed typo
2273         * device/lib/pic16/Makefile.subdir: only install existing files
2274         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
2275
2276 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
2277
2278         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
2279         * device/lib/mcs51/crtclear.asm,
2280         * device/lib/mcs51/crtxclear.asm: renumbered labels
2281         * device/lib/mcs51/Makefile.in: added crtcall.asm
2282         * doc/sdccman.lyx: documented mcs51 crt* library startup code
2283         * src/mcs51/gen.c (movc): removed,
2284           (aopGet, genPlusBits): clear a after loading the carry (possibly from
2285             acc.x or psw.x),
2286           (toCarry, genSend, genRet): added function toCarry,
2287           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
2288           (assignBit, genAssign, genCast): added function assignBit
2289         * src/mcs51/Makefile.bcc: added rtrack.c
2290         * src/mcs51/ralloc.h: made valueKnown a bitfield
2291         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
2292           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
2293           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
2294         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
2295         * src/z80/gen.c: added AOP_IS_PAIRPTR,
2296           (_pop): only pop valid pairs, see gencjneshort,
2297           (gencjneshort): return pair that still needs to be popped, restructured,
2298           (gencjne, genCmpEq): call _pop
2299
2300 2007-02-23 Raphael Neider <rneider AT web.de>
2301
2302         * device/include/pic/pic14devices.txt: 16f684 has only one config word
2303
2304 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2305
2306         * device/include/mcs51/P89LPC925.h: Added.
2307
2308 2007-02-18 Raphael Neider <rneider AT web.de>
2309
2310         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
2311
2312 2007-02-17 Borut Razem <borut.razem AT siol.net>
2313
2314         * support/cpp2/directives.c, support/cpp2/version.c:
2315           synchronized with GCC CPP 4.1.2
2316
2317 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2318
2319         * src/mcs51/rtrack.h,
2320         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
2321           by checking the strings passed by emitcode() to the assembler.
2322           Feel free to change. This in part addresses RFE #482179.
2323           Set environment variable SDCC_RTRACK to enable.
2324         * src/mcs51/gen.c: inserted hooks
2325         * src/mcs51/ralloc.h: added two members to struct regs
2326         * support/regression/tests/regtrack.c: added
2327
2328 2007-02-14 Borut Razem <borut.razem AT siol.net>
2329
2330         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
2331         * Makefile.in: applied patch from Makefile related part of
2332           #1469393: Compiler does not initialize static data
2333
2334 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
2335
2336         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
2337           for better fix of bug 1273984, compiles pic16 rand.c
2338
2339 2007-02-12 Borut Razem <borut.razem AT siol.net>
2340
2341         * src/pic16/main.c: fixed pic16 standard library directory bug
2342
2343 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
2344
2345         * src/hc08/gen.c (genSwap): fix swap regression test
2346
2347 2007-02-10 Borut Razem <borut.razem AT siol.net>
2348
2349         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
2350           with same scope
2351         * support/regression/tests/bug-1654060.c: added regression test for
2352           #1654060
2353
2354 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
2355
2356         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
2357         bit moves in return statement
2358
2359 2007-02-09 Borut Razem <borut.razem AT siol.net>
2360
2361         * src/SDCC.y: fixed bug #1654060 typedef within function causes
2362           syntax error
2363
2364 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
2365
2366         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
2367         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
2368
2369 2007-02-07 Raphael Neider <rneider AT web.de>
2370
2371         * src/pic16/devices.inc,
2372         * device/include/pic16/pic18fregs.h,
2373         * device/include/pic16/pic18f[24][34]31.h,
2374         * device/lib/pic16/libdev/pic18f[24][34]31.c,
2375         * device/lib/pic16/pics.all: added 18f[24][34]31 family
2376         * device/lib/pic16/libio/i2c.ignore: do not build i2c
2377
2378 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
2379
2380         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
2381           can this have lived here for so many years?
2382         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
2383           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
2384         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
2385
2386 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
2387
2388         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
2389         appended by loop induction must be at the very end of the eBBlock
2390
2391 2007-02-05 Kevin Vigor
2392
2393         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
2394
2395 2007-02-05 Borut Razem <borut.razem AT siol.net>
2396
2397         * support/regression/fwk/lib/timeout.c: native WIN32 port,
2398           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
2399
2400 2007-02-03 Borut Razem <borut.razem AT siol.net>
2401
2402         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
2403           applied patch #1646602 option to set default signedness of char to
2404           unsigned, added -funsigned-char command line option,
2405           thanks to Gunther Jehle
2406         * device/lib/Makefile.in: added the -f option to rm so it doesn't
2407           prompt for file deletion a few hundred times (especially the
2408           subversion files, which have ro permissions so it asks for
2409           confirmation), thanks to Simon McAuliffe;
2410           added {} + option to find in order to remove multiple files from a
2411           single rm commad
2412
2413 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2414
2415         * device/include/mcs51/SST89x5xRDx.h: Added.
2416
2417 2007-02-02 Raphael Neider <rneider AT web.de>
2418
2419         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
2420         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
2421
2422 2007-02-01 Raphael Neider <rneider AT web.de>
2423
2424         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
2425           config words again
2426
2427 2007-01-31 Borut Razem <borut.razem AT siol.net>
2428
2429         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
2430           if compiled with GCC. Thanks to Raphael Neider
2431
2432 2007-01-31 Raphael Neider <rneider AT web.de>
2433
2434         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
2435             operand names, handles name and (name + n) for all n,
2436           (sameBank): restructured, also check bank allocation policy,
2437         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
2438           (pic14_operandsAllocatedInSameBank): check whether to operands
2439             will be allocated into the same bank (i.e., section) to reduce
2440             BANKSEL overhead, queried from pcode.c:sameBank,
2441           (pic14printLocals): reintroduced clustering registers into a single
2442             section: all compiler generated symbols will now reside in one
2443             bank (per file), reducing BANKSEL overhead and code size,
2444           (showAllMemmaps): use local dbuf where possible
2445
2446 2007-01-29 Raphael Neider <rneider AT web.de>
2447
2448         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
2449           (call_libraryfunc): retrieve/create symbol and mark as used,
2450           (genFunction): mark defined functions as non-extern and add again
2451            to code memmap for later output
2452         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
2453           (pic14printLocals): reworked for new symbol emission,
2454           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
2455           showAllMemmaps): reworked symbol output using dbufs, added handling
2456             of string literals (still incomplete),
2457           (picglue): removed symbol emission, moved into showAllMemmaps,
2458           (emitSymbolSet): new workhorse for symbol output,
2459           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
2460
2461 2007-01-29 Borut Razem <borut.razem AT siol.net>
2462
2463         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
2464           component contains the extension separator.
2465
2466 2007-01-28 Borut Razem <borut.razem AT siol.net>
2467
2468         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
2469           on WIN32
2470         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
2471           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
2472           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
2473           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
2474           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
2475           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
2476           src/z80/gen.c, support/Util/MySystem.c:
2477           accept slash and backslash as directory separator on WIN32 and
2478           Cygwin ports
2479
2480 2007-01-28 Raphael Neider <rneider AT web.de>
2481
2482         * src/pic16/devices.inc,
2483         * device/include/pic16/pic18f[24][23]21.h,
2484         * device/include/pic16/pic18fregs.h,
2485         * device/lib/pic16/libdev/pic18f[24][23]21.c,
2486         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
2487         * device/lib/pic16/libio/adc.ignore,
2488         * device/lib/pic16/libio/i2c.ignore,
2489         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
2490           family, as gputils do not yet support the devices
2491         * device/lib/pic16/Makefile.subdir: ignore errors on install
2492         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
2493           headers and libraries from gputils .inc files
2494
2495 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
2496
2497         * doc/sdccman.lyx: add printf_fast_f precision limitation note
2498
2499 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
2500
2501         * doc/sdccman.lyx: add printf benchmarks
2502
2503 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
2504
2505         * device/lib/printf_fast.c: fix %c, char promoted to int
2506         * device/lib/printf_tiny.c: fix %c, char promoted to int
2507
2508 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
2509
2510         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
2511
2512 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2513
2514         * support/regression/tests/swap.c: 64 bit hosts failed
2515         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
2516
2517 2007-01-25 Raphael Neider <rneider AT web.de>
2518
2519         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
2520           based on absolute register address, patch by Alex Blond
2521
2522 2007-01-22 Raphael Neider <rneider AT web.de>
2523
2524         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
2525           emitted, do not emit them again...
2526
2527 2007-01-22 Raphael Neider <rneider AT web.de>
2528
2529         * src/regression/bank1.c, src/regression/compare6.c,
2530           src/regression/add.c: cosmetic changes
2531         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
2532         * src/pic/gen.c: fixed global zero and one,
2533           (aopForSym): removed unued code,
2534           (aopGet): assert aop is defined, check and use `index' of
2535             pCodeImmd operands (fixes #1630908),
2536         * src/pic/pcode.c (get_op): added output of generic pointer tag,
2537           (register_reassign): prevent accidental register unification,
2538           (ReuseReg): cosmetic changes (also above)
2539         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
2540           pic14emitStaticSeg): do not emit initialized data,
2541           (printIval*): replaced with working versions,
2542           (pic14createInterruptVect,picglue): use idata for initialized data,
2543             now init data should work in all modules (not only main()),
2544         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
2545
2546 2007-01-21 Borut Razem <borut.razem AT siol.net>
2547
2548         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
2549           use -fPIC or -fpic if they are supported and not ignored
2550         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
2551         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
2552
2553 2007-01-20 Borut Razem <borut.razem AT siol.net>
2554
2555         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
2556           implemented RFE #1470316: allow "$" in variable names
2557
2558 2007-01-20 Raphael Neider <rneider AT web.de>
2559
2560         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
2561
2562 2007-01-20 Raphael Neider <rneider AT web.de>
2563
2564         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
2565         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
2566         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
2567         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
2568           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
2569         * device/lib/pic/libdev/pic*.c,
2570         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
2571         * device/lib/pic/libdev/Makefile.in: show progress
2572
2573 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
2574
2575         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
2576         * support/scripts/sdcc_cygwin_mingw32,
2577         * support/scripts/sdcc_mingw32,
2578         * support/scripts/build.mak: replaced --datadir by --datarootdir for
2579         conformance with autoconf 2.6
2580
2581 2007-01-19 Raphael Neider <rneider AT web.de>
2582
2583         * src/pic/device.c (register_map): fixed list construction
2584         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
2585           (genMod): removed case for genModbits,
2586           (genModbits): removed as now unused/unimplemented
2587         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
2588
2589 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2590
2591         * support/regression/tests/swap.c: added in response to #1638622
2592         * doc/sdccman.lyx: synced version, minor changes
2593
2594 2007-01-18 Borut Razem <borut.razem AT siol.net>
2595
2596         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
2597           thanks to Gunther Jehle
2598         * src/asm.c: don't die if the file drfined in #line couldn't be opened
2599         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
2600           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
2601           use filename in lineno instead.
2602         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
2603           print the file name in ast_print()
2604
2605 2007-01-18 Borut Razem <borut.razem AT siol.net>
2606
2607         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
2608           defined in MSVC
2609         * src/SDCC.lex: stringLiteral() returns const char pointer,
2610           EOF detection in stringLiteral(), fixed asmbuf memory leak,
2611           fixed column counting
2612         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
2613           accept const char pointer as parameter
2614         * src/SDCCdwarf2.c: corrected buffer size
2615
2616 2007-01-17 Borut Razem <borut.razem AT siol.net>
2617
2618         * support/Util/dbuf_string.c: fixed for amd64
2619
2620 2007-01-15 Borut Razem <borut.razem AT siol.net>
2621
2622         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
2623           removed terminal symbol ELIPSIS, since it was never generated by the
2624           lexer and it was wrongly used in parameter_identifier_list rule
2625
2626 2007-01-15 Raphael Neider <rneider AT web.de>
2627
2628         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
2629             code page and data banking description
2630         * src/pic/genarith.c,
2631         * src/pic/gen.h: removed bit arithmetic functions,
2632             updated exit(1) to exit(EXIT_FAILURE)
2633         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
2634         * device/include/pic16/pic18f2455.h,
2635         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
2636             TRISD and TRISE, fixed/added some bit names
2637         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
2638         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
2639             updated pic18f2455.{c,h} instead of duplicating them
2640
2641 2007-01-14 Borut Razem <borut.razem AT siol.net>
2642
2643         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
2644           Cannot debug files that contain spaces in the path name
2645           by converting spaces in asm file name to underscores
2646
2647 2007-01-13 Borut Razem <borut.razem AT siol.net>
2648
2649         * doc/sdccman.lyx: fixed format errors
2650
2651 2007-01-10 Borut Razem <borut.razem AT siol.net>
2652
2653         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
2654           codeseg/constseg #pragma fail
2655         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
2656         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
2657           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
2658           suppoprt/cpp2/sdcpp.[ch]: house cleaning
2659
2660 2007-01-09 Borut Razem <borut.razem AT siol.net>
2661
2662         * get rid of diagnistic.[ch], pretty-print.[ch],
2663           c-pretty-print.[ch], ... used just for error, warning, ...
2664           message formatting
2665         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
2666           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
2667           suppoprt/cpp2/pretty-print.[ch]:
2668           removed
2669         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
2670           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
2671           suppoprt/cpp2/sdcpp.dsp:
2672           changed
2673
2674 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
2675
2676         * device/lib/printf_large.c (output_float): removed recursion,
2677           use smaller buffer on stack for mcs51,
2678           fixed bug printing 1.96
2679         * support/regression/tests/snprintf.c: added test
2680
2681 2007-01-07 Borut Razem <borut.razem AT siol.net>
2682
2683         * use dynamic memory buffers instead temporary files
2684         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
2685           added
2686         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
2687           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
2688           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
2689           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
2690           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
2691           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
2692           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
2693           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
2694           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
2695           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
2696           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
2697           support/Util/dbuf.c, support/Util/dbuf.h:
2698           modified
2699         * .version, sdcc.spec: bumped version to 2.6.4
2700
2701 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
2702
2703         * src/port.h: added TARGET_Z80_LIKE macro
2704         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
2705           output PSEG location if --xram-loc or --xstack-loc was used
2706         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
2707
2708 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
2709
2710         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
2711         * as/as_z80.dsp,   as/z80/as_z80.dsp,
2712         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
2713         * sdcc.dsw: moved project files into subdir
2714         * as/hc08/as_hc08.dsp,
2715         * as/hc08/Makefile.bcc,
2716         * as/hc08/Makefile.in,
2717         * as/mcs51/Makefile.bcc,
2718         * as/mcs51/Makefile.in,
2719         * as/z80/Makefile.bcc,
2720         * as/z80/Makefile.in,
2721         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
2722         * as/hc08/asm.h,
2723         * as/mcs51/asm.h,
2724         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
2725         * as/hc08/asmain.c,
2726         * as/hc08/assym.c,
2727         * as/mcs51/asmain.c,
2728         * as/mcs51/assym.c,
2729         * as/z80/assym.c: removed include "strcmpi.h"
2730         * as/hc08/strcmpi.c,
2731         * as/hc08/strcmpi.h,
2732         * as/mcs51/strcmpi.c,
2733         * as/mcs51/strcmpi.h,
2734         * support/Util/strcmpi.c,
2735         * support/Util/strcmpi.h: removed files
2736         * as/strcmpi.c: added as_strncmpi()
2737
2738 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2739
2740         * sdcc.dsw: Added some dependencies on project config.dsp
2741
2742 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
2743
2744         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
2745           with [di]ram_start to fix a regresion
2746
2747 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
2748
2749         * configure.in: added missing mcs51 in status output
2750         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
2751         directory
2752         * debugger/mcs51/clean.mk (distclean): remove config.h
2753         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
2754         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
2755         options.h, s-options-h and options.c
2756         * support/cpp2/clean.mk: unused, removed
2757         * Makefile.common.in,
2758         * main_in.mk,
2759         * as/Makefile.in,
2760         * as/hc08/Makefile.in,
2761         * as/hc08/clean.mk,
2762         * as/mcs51/Makefile.in,
2763         * as/mcs51/clean.mk,
2764         * as/z80/clean.mk,
2765         * as/z80/conf.mk,
2766         * as/z80/Makefile.in,
2767         * as/z80/clean.mk,
2768         * as/link/Makefile.in,
2769         * as/link/hc08/Makefile.in,
2770         * as/link/hc08/clean.mk,
2771         * as/link/mcs51/Makefile.in,
2772         * as/link/mcs51/clean.mk,
2773         * as/link/z80/Makefile.in,
2774         * as/link/z80/clean.mk,
2775         * as/link/z80/conf.mk,
2776         * debugger/mcs51/Makefile.in,
2777         * debugger/mcs51/clean.mk,
2778         * device/include/Makefile.in,
2779         * device/lib/Makefile.in,
2780         * device/lib/mcs51/Makefile.in,
2781         * device/lib/pic/Makefile.in,
2782         * device/lib/pic/Makefile.common.in,
2783         * device/lib/pic/Makefile.subdir,
2784         * device/lib/pic/Makefile.rules,
2785         * device/lib/pic16/libio/Makefile.in,
2786         * device/lib/pic16/Makefile.subdir,
2787         * device/lib/pic16/libdev/Makefile.in,
2788         * device/lib/pic16/Makefile.rules,
2789         * device/lib/pic16/Makefile.common.in,
2790         * sim/ucsim/avr.src/Makefile.in,
2791         * sim/ucsim/main_in.mk,
2792         * sim/ucsim/cmd.src/Makefile.in,
2793         * sim/ucsim/doc/Makefile.in,
2794         * sim/ucsim/gui.src/Makefile.in,
2795         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
2796         * sim/ucsim/gui.src/serio.src/Makefile.in,
2797         * sim/ucsim/hc08.src/Makefile.in,
2798         * sim/ucsim/libltdl/Makefile.in,
2799         * sim/ucsim/s51.src/Makefile.in,
2800         * sim/ucsim/sim.src/Makefile.in,
2801         * sim/ucsim/sim.src/conf.mk,
2802         * sim/ucsim/xa.src/Makefile.in,
2803         * sim/ucsim/z80.src/Makefile.in,
2804         * src/Makefile.in,
2805         * src/clean.mk,
2806         * src/port.mk,
2807         * support/cpp2/Makefile.in,
2808         * support/librarian/Makefile.in,
2809         * support/librarian/clean.mk,
2810         * support/makebin/Makefile.in,
2811         * support/makebin/clean.mk,
2812         * support/packihx/Makefile.in,
2813         * support/regression/Makefile.in,
2814         * support/regression/ports/ds390/spec.mk,
2815         * support/regression/ports/gbz80/spec.mk,
2816         * support/regression/ports/hc08/spec.mk,
2817         * support/regression/ports/mcs51/spec.mk,
2818         * support/regression/ports/mcs51-large/spec.mk,
2819         * support/regression/ports/mcs51-medium/spec.mk,
2820         * support/regression/ports/mcs51-xstack-auto/spec.mk,
2821         * support/regression/ports/pic14/spec.mk,
2822         * support/regression/ports/pic16/spec.mk,
2823         * support/regression/ports/mcs51-stack-auto/spec.mk,
2824         * support/regression/ports/ucz80/spec.mk,
2825         * support/regression/ports/xa51/spec.mk,
2826         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
2827         adding a slash after $(top_builddir) and/or adding @datarootdir@
2828         * configure.in,
2829         * debugger/mcs51/configure.in,
2830         * device/lib/pic/configure.in,
2831         * device/lib/pic16/configure.in,
2832         * sim/ucsim/configure.in,
2833         * support/cpp2/configure.in,
2834         * support/packihx/configure.in: changed AC_PREREQ to 2.60
2835         * configure,
2836         * debugger/mcs51/configure,
2837         * device/lib/pic/configure,
2838         * device/lib/pic16/configure,
2839         * sim/ucsim/configure,
2840         * support/cpp2/configure,
2841         * support/packihx/configure: generated with autoconf 2.60
2842
2843 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
2844
2845         * as/link/hc08/lkihx.c (newArea),
2846         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
2847
2848 2007-01-02 Borut Razem <borut.razem AT siol.net>
2849
2850         * doc/sdccman.lyx: documented #pragma sdcc_hash
2851         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
2852           initialized to 0
2853         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
2854
2855 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
2856
2857         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
2858         empty 'while'-loop to work correctly, see regression test 'while.c'
2859         * support/regression/tests/while.c: added
2860
2861 2007-01-01 Borut Razem <borut.razem AT siol.net>
2862
2863         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
2864           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
2865           support/cpp2/libcpp/sdcpp.c:
2866           sdcpp specific pragma/directive/option handling moved to sdcpp.c
2867         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
2868         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
2869
2870 2006-12-31 Borut Razem <borut.razem AT siol.net>
2871
2872         * SDCPP synchronized with GCC CPP release version 4.1.1,
2873           currently the latest release:
2874         * support/cpp2/libcpp, support/cpp2/libcpp/include,
2875           support/cpp2/libcpp/include/cpp-id-data.h
2876           support/cpp2/libiberty/fopen_unlocked.c
2877           support/cpp2/libiberty/md5.c
2878           support/cpp2/md5.h
2879           support/cpp2/opt-functions.awk
2880           support/cpp2/opt-gather.awk
2881           support/cpp2/optc-gen.awk
2882           support/cpp2/opth-gen.awk:
2883           added
2884         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
2885           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2886           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
2887           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
2888           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
2889           support/cpp2/diagnostic.h, support/cpp2/except.h,
2890           support/cpp2/hwint.h, support/cpp2/input.h,
2891           support/cpp2/intl.h, support/cpp2/move-if-change,
2892           support/cpp2/opts.c, support/cpp2/opts.h,
2893           support/cpp2/output.h, support/cpp2/prefix.c,
2894           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
2895           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
2896           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
2897           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
2898           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
2899           support/cpp2/version.c:
2900           modified
2901         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
2902           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
2903           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
2904           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
2905           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
2906           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
2907           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
2908           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
2909           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
2910           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
2911           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
2912           moved
2913         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
2914           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
2915           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
2916           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
2917           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
2918           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
2919           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
2920           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
2921           support/cpp2/hashtable.h, support/cpp2/line-map.c,
2922           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
2923           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
2924           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
2925           support/cpp2/system.h:
2926           deleted / moved
2927
2928 2006-12-31 Borut Razem <borut.razem AT siol.net>
2929
2930         * configure.in, configure: fixed bug #1538756: configure dies if bison
2931           and flex are not installed, 2nd try
2932
2933 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
2934
2935         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
2936         400.x for better code in RFE 899102
2937
2938 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
2939
2940         * src/SDCCpeeph.c (deadMove),
2941         * src/port.h,
2942         * src/mcs51/peep.h: renamed 'op' by 'reg'
2943         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
2944         (scan4op): small change for removeDeadMove(), added support for
2945         'callee saves' and/or PACLL function calls,
2946         (removeDeadMove): added, removes superflous 'mov r%1,%2',
2947         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
2948         left in new dispatcher mcs51DeadMove()
2949         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
2950         removeDeadMove()
2951         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
2952
2953 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2954
2955         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
2956           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
2957
2958 2006-12-30 Borut Razem <borut.razem AT siol.net>
2959
2960         * support/cpp2/spacs.h: deleted from svn
2961         * configure.in, configure: fixed bug #1538756: configure dies if bison
2962           and flex are not installed
2963
2964 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
2965
2966         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
2967           with this z80 passes printf float test when enabled
2968         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
2969
2970 2006-12-28 Borut Razem <borut.razem AT siol.net>
2971
2972         * support/cpp2/config.in, support/cpp2/configure.in,
2973           support/cpp2/configure, support/cpp2/Makefile.in:
2974           fix for the solaris build
2975
2976 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2977
2978         * src/SDCC.y (type_specifier2, pointer),
2979         * src/SDCCsymt.h,
2980         * src/SDCCsymt.c (mergeSpec, checkSClass),
2981         * support/Util/SDCCerr.c,
2982         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
2983         * support/valdiag/valdiag.py: Allow test cases to specify
2984           required language standard
2985         * support/valdiag/tests/restrict.c: New file to test restrict keyword
2986         * support/valdiag/tests/tentdecl.c: Supress empty source file error
2987
2988 2006-12-27 Borut Razem <borut.razem AT siol.net>
2989
2990         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
2991         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
2992           mbchar removed
2993         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
2994           fixed for borland C
2995         * support/cpp2/libiberty/Makefile.bcc: updated
2996         * src/pic16/main.c: fixed #pragma udata handling
2997         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
2998
2999 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
3000
3001         * src/SDCCpeeph.c: made labelHashEntry global,
3002         made pcDistance, FBYNAME static,
3003         (pcDistance): made static, use isComment and isLabel,
3004         (deadMove): added,
3005         (getLabelRef): added, extracted from labelRefCount(),
3006         (labelRefCount): use new getLabelRef(),
3007         (callFuncByName): made static, added deadMove,
3008         use isComment and isLabel,
3009         (newPeepRule): made static, set isLabel,
3010         (isLabelDefinition): added parameter isPeepRule to allow '%' in
3011         labels from peephole rules,
3012         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
3013         when isComment or isLabel is set
3014         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
3015         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
3016         to make them global
3017         * src/mcs51/peep.h: added
3018         * src/mcs51/peep.c: added, implements mcs51DeadMove()
3019         * src/port.h: added peep->deadMove to port structure
3020         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
3021         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
3022         deadMove, finally removed no. 1 and 2
3023         * src/mcs51/gen.c,
3024         * src/pic/gen.c,
3025         * src/z80/gen.c,
3026         * src/z80/ralloc.c,
3027         * src/pic16/gen.c,
3028         * src/ds390/gen.c,
3029         * src/hc08/gen.c: mark lines with isComment or isLabel
3030         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
3031         * .version,
3032         * sdcc.spec: bumped version to 2.6.3
3033
3034 2006-12-26 Borut Razem <borut.razem AT siol.net>
3035
3036         * support/cpp2/Makefile.in: added dependency on options.h
3037         * configure: regenerated
3038         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
3039         * support/cpp2/Makefile.in: added vasprintf.c
3040
3041 2006-12-25 Borut Razem <borut.razem AT siol.net>
3042
3043         * SDCPP synchronized with GCC CPP release version 3.4.6,
3044           the latest release before 4.x:
3045         * support/cpp2/Makefile.in, support/cpp2/config.h,
3046           support/cpp2/configure, support/cpp2/configure.in,
3047           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
3048           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
3049           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
3050           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
3051           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
3052           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
3053           support/cpp2/cpptrad.c, support/cpp2/except.h,
3054           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
3055           support/cpp2/hwint.h, support/cpp2/intl.h,
3056           support/cpp2/line-map.c, support/cpp2/line-map.h,
3057           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
3058           support/cpp2/output.h, support/cpp2/prefix.c,
3059           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
3060           support/cpp2/system.h, support/cpp2/version.c:
3061           modified
3062         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
3063           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
3064           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
3065           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
3066           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
3067           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
3068           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
3069           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
3070           support/cpp2/move-if-change, support/cpp2/opts.c,
3071           support/cpp2/opts.h, support/cpp2/opts.sh,
3072           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
3073           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
3074           support/cpp2/win32, support/cpp2/win32/dirent.c,
3075           support/cpp2/win32/dirent.h:
3076           added
3077         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
3078         * support/cpp2/sdcpp.h: renamed from sdcc.h
3079         * sdcppinit.c: deleted
3080
3081 2006-12-23 Borut Razem <borut.razem AT siol.net>
3082
3083         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
3084           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
3085           preproc.c: an other try to fix bug #982435: introduced
3086           -pedantic-parse-number command line option and pedantic_parse_number
3087           pragma
3088
3089 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
3090
3091         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
3092            BSEG handling,
3093           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
3094            corrected overlayed areax addresses, warn about memory overlaps
3095         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
3096         * src/avr/main.c,
3097         * src/ds390/main.c,
3098         * src/hc08/main.c,
3099         * src/mcs51/main.c,
3100         * src/pic16/main.c,
3101         * src/pic/main.c,
3102         * src/xa51/main.c,
3103         * src/z80/main.c,
3104         * src/port.h: added xabs_name and iabs_name
3105         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
3106           (glue, emitMaps): create and emit maps d_abs and i_abs
3107         * src/SDCCglue.h: cosmetic changes
3108         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
3109         * src/SDCCmem.h,
3110         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
3111           (allocDefault): put absolute, initialized globals in them
3112         * support/regression/tests/absolute.c: added absolute bdata test
3113         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
3114
3115 2006-12-20 Borut Razem <borut.razem AT siol.net>
3116
3117         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
3118         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
3119           added regression test for bug #982435
3120
3121 2006-12-18 Borut Razem <borut.razem AT siol.net>
3122
3123         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
3124         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
3125           small cosmetic changes
3126         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
3127         * support/regression/tests/bug-1351710.c: added regression test
3128
3129 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3130
3131         * doc/sdccman.lyx: added the long missed iCode table
3132           "<where is figure II?>", added links to wiki
3133
3134 2006-12-17 Borut Razem <borut.razem AT siol.net>
3135
3136         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
3137           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
3138           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
3139           unified table driven pragma handling, pragma argument type checking
3140         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
3141           current one - version 1.1.3
3142         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
3143
3144 2006-12-13 Raphael Neider <rneider AT web.de>
3145
3146         * src/pic/device.h: removed AssignedMemory structure and macros
3147         * src/pic/device.c: removed global finalMapping (linker assigns
3148             memory locations),
3149           (register_map): add SFRs to remembered memRanges
3150           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
3151           assignFixedRegisters,assignRelocatableRegisters): removed,
3152           (setMaxRAM,validAddress): adapted accordingly,
3153           (pic14_hasSharebank,pic14_getSharedStack): only report and use
3154             reasonably sized sharebanks,
3155         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
3156           (allDefsOutOfRange): removed unused code,
3157         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
3158             handling
3159         * src/pic/pcode.c (register_reassign): removed recursion warning,
3160             fired far too often,
3161         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
3162             to use existing pic14_stringInSet() to avoid duplicate symbols,
3163             tidied up the code a bit,
3164           (pic14printLocals): added in symmetry to printExterns, replaces
3165             writeUsedRegs more or less,
3166           (picglue): call new pic14_printLocals(),
3167         * device/include/pic/pic*.h: removed #pragma memmap directives,
3168             information gathered from include/pic/pic14devices.txt
3169         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
3170
3171 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
3172
3173         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
3174
3175 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3176
3177         * device/include/mcs51/cc2430.h: fixed missing ';'
3178
3179 2006-12-10 Raphael Neider <rneider AT web.de>
3180
3181         * device/lib/pic16/libc/stdio/vfprintf.c,
3182         * device/lib/pic16/libc/stdio/printf_small.c,
3183         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
3184           char arguments, as char varargs are cast to int by the caller,
3185           hopefully fixes #1604915 (other device libraries are still affected)
3186
3187 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3188
3189         * src/mcs51/ralloc.c (packRegsForAssign),
3190         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
3191
3192 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
3193
3194         * device/include/malloc.h: removed init_dynamic_memory
3195         * device/lib/malloc.c: made init_dynamic_memory static and automatically
3196           call it once from malloc. Also use _sdcc_heap[] from _heap.c
3197         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
3198         * device/lib/libsdcc.lib,
3199         * device/lib/Makefile.in,
3200         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
3201         * doc/sdccman.lyx: documented use of new _heap.c
3202         * support/regression/tests/malloc.c: removed init_dynamic_memory
3203         * src/cdbFile.c(spacesToUnderscores): new function,
3204           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
3205           1068030
3206         * device/include/tinibios.h: removed defines for putchar and getchar
3207         * device/lib/ds390/Makefile.in: added putchar.c
3208         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
3209
3210 2006-12-09 Borut Razem <borut.razem AT siol.net>
3211
3212         * support/cpp2/sdcc.h: prevent multiple inclusion
3213         * support/cpp2/options.h: deleted
3214
3215 2006-12-08 Borut Razem <borut.razem AT siol.net>
3216
3217         * support/cpp2/sdcc.h: removed x*alloc() macros
3218         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
3219         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
3220           support/cpp2/sdcpp.sdc: x*alloc files added to the project
3221         * support/cpp2/system.h: moved #include "sdcc.h"
3222         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
3223           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
3224           added
3225         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
3226           -funsigned-char options
3227         * support/cpp2/sdcppmain.c: fixed bug 1611411
3228
3229 2006-12-07 Borut Razem <borut.razem AT siol.net>
3230
3231         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
3232           directive
3233
3234 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
3235
3236         * src/SDCCsymt.c (addDecl): fixed bug 1609244
3237         * src/SDCCmain.c (linkEdit): fixed bug 1609279
3238         * doc/sdccman.lyx,
3239         * .version: bumped to 2.6.2 because a) it's been a while
3240           b) the linker sources have moved c) the preprocessor is upgraded
3241
3242 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3243
3244         * support/regression/tests/snprintf.c: some checks
3245         * lib/src/printf_large.c: %bc: read char instead of int from stack
3246
3247 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
3248
3249         * device/include/mcs51/cc2430.h: inserted _XPAGE
3250
3251 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3252
3253         * device/include/mcs51/cc2430.h: added
3254
3255 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
3256
3257         * device/include/asm/default/features.h,
3258         * device/include/asm/ds390/features.h,
3259         * device/include/mcs51/at89s53.h,
3260         * device/include/ser.h,
3261         * device/include/ser_ir.h,
3262         * device/include/serial.h: changed keywords to double underscore variants,
3263           fixes bug 1590261 some more, thanks Steven Borley
3264
3265 2006-12-01 Raphael Neider <rneider AT web.de>
3266
3267         * src/pic/pcode.c (register_reassign): do not crash on recursive code
3268           but emit warning (recursion is not supported for pic14)
3269
3270 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3271
3272         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
3273         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
3274
3275 2006-11-30 Raphael Neider <rneider AT web.de>
3276
3277         * src/pic/device.c (dump_sfr): always emit symbols
3278         * src/pic/glue.c (pic14printPublics): fixed typo
3279
3280 2006-11-30 Raphael Neider <rneider AT web.de>
3281
3282         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
3283           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
3284           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
3285            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
3286            a sharebank, use a non-shared bank for the stack if none available
3287         * src/pic/device.h (struct memRange): added linked list next field,
3288           added prototypes for above functions
3289         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
3290           (typeRegWithIdx): accept fixed and unfixed stack registers
3291         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
3292           the stack, handle shared and banked stack (except for WSAVE),
3293           (insertBankSel): removed useless optimization (will never fire),
3294           (FixRegisterBanking): added optimization for devices with only one
3295           possibly aliased bank of memory, like 16f84
3296         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
3297           devices have no SHAREBANK in the linker script
3298         * device/include/pic/pic14devices.txt: documented memmap
3299         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
3300
3301 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3302
3303         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
3304           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
3305           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
3306           genhc08Code): switched most of the D (debug) macros to DD (detailed
3307           debug) macros to better control clutter in the generated .asm file.
3308         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
3309           genRightShift): fixed bug with non-constant bit shift stored to
3310           a volatile result (SF Open Discussion forum thread #1616749).
3311           Single byte case is not yet optimized.
3312
3313 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
3314
3315         * device/include/asm/mcs51/features.h,
3316         * device/include/malloc.h,
3317         * device/include/stdio.h: changed keywords to double underscore variants,
3318           fixes bug 1590261
3319
3320 2006-11-27 Borut Razem <borut.razem AT siol.net>
3321
3322         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
3323           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
3324           support/cpp2/output.h, support/cpp2/cppinit.c,
3325           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
3326           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
3327           support/cpp2/cppdefault.c, support/cpp2/system.h,
3328           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
3329           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
3330           support/cpp2/prefix.c, support/cpp2/except.h,
3331           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
3332           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
3333           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
3334           support/cpp2/version.c, support/cpp2/cppmain.c,
3335           support/cpp2/version.h, support/cpp2/hashtable.c,
3336           support/cpp2/cpperror.c:
3337           synchronized with GCC CPP release version 3.3.6,
3338           the latest where cppmain.c still exists.
3339         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
3340           support/cpp2/sdcppinit.c: added
3341
3342 2006-11-27 Borut Razem <borut.razem AT siol.net>
3343
3344         * support/cpp2/cpplex.c:
3345           fixed _asm ... _endasm handling bug, introduce with GCC CPP
3346           synchronization
3347         * support/cpp2/cpplib.c: removed definitions of unused variables
3348
3349 2006-11-26 Borut Razem <borut.razem AT siol.net>
3350
3351         * support/cpp2/libiberty.h: commented out x*alloc() declarations
3352           since they are redefined by macros in support/cpp2/sdcc.h
3353         * support/cpp2/sdcc.h: x*alloc macro redefinition
3354
3355 2006-11-25 Borut Razem <borut.razem AT siol.net>
3356
3357         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
3358           support/cpp2/configure, support/cpp2/Makefile.in,
3359           support/cpp2/cppfiles.c, support/cpp2/output.h,
3360           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
3361           support/cpp2/config.h, support/cpp2/cpplib.h,
3362           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
3363           support/cpp2/cppdefault.c, support/cpp2/config.in,
3364           support/cpp2/system.h, support/cpp2/cpplex.c,
3365           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
3366           support/cpp2/cppdefault.h, support/cpp2/prefix.c
3367           support/cpp2/hwint.h, support/cpp2/mbchar.h,
3368           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
3369           support/cpp2/configure.in, support/cpp2/intl.h,
3370           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
3371           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
3372           support/cpp2/version.c, support/cpp2/cppmain.c,
3373           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
3374           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
3375           support/cpp2/cpperror.c,
3376           support/cpp2/libiberty/safe-ctype.c,
3377           support/cpp2/libiberty/safe-ctype.h,
3378           support/cpp2/libiberty/splay-tree.c,
3379           support/cpp2/libiberty/obstack.c,
3380           support/cpp2/libiberty/lbasename.c,
3381           support/cpp2/libiberty/splay-tree.h,
3382           support/cpp2/libiberty/obstack.h:
3383           synchronized with GCC CPP release version 3.2.3,
3384           the latest before integration of cpp into gcc
3385         * support/cpp2/except.h, support/cpp2/line-map.c,
3386           support/cpp2/line-map.h,
3387           support/cpp2/libiberty/hex.c,
3388           support/cpp2/libiberty/concat.c,
3389           support/cpp2/libiberty/filenames.h: added
3390         * support/cpp2/intl.c: deleted
3391
3392 2006-11-24 Borut Razem <borut.razem AT siol.net>
3393
3394         * src/SDCC.y: enabled compilation of empty source file
3395         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
3396           "ISO C forbids an empty source file"
3397         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
3398           if all the code is ifdefed out.
3399
3400 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3401
3402         * src/hc08/gen.c (genPcall): fix for bug #1601032
3403
3404 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
3405
3406         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
3407         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
3408         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
3409         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
3410         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
3411         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
3412         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
3413         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
3414         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
3415         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
3416         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
3417         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
3418         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
3419         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
3420         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
3421           Renamed to all upper case as per the standard set by SiLabs
3422
3423 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
3424
3425         * device/include/mcs51/C8051F520.h: new, added
3426         * device/include/mcs51/compiler.h: added link about predefined macros
3427
3428 2006-11-23 Raphael Neider <rneider AT web.de>
3429
3430         * src/regression/Makefile: add -L path to fresh library
3431         * src/regression/simulate: emphasize FAILED output
3432         * src/regression/create_stc: output _failures from gpsim
3433         * src/regression/compare4.c,
3434         * src/regression/rotate6.c: fixed char literals,
3435           all compile, all run =8-D
3436
3437         * src/pic/pcode.h: added isPCASMDIR macro
3438         * src/pic/gen.c (genAnd): fixed bit offset
3439         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
3440           packBits): unified register numbering schemes,
3441           (newReg): do not insert stack registers into hash table,
3442           (initStack): unpinned pseudo stack, simplified,
3443           (typeRegWithIdx): fixed retrieval of stack registers,
3444         * src/pic/pcode.c (addpCodeComment,sameBank): added,
3445           (pCodeReplace): removed invalid assertion,
3446           (insertPCodeInstruction): fixed newly added labels,
3447           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
3448           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
3449           DumpFlow): removed unsed (broken?) code,
3450           (insertBankSel): prevent STATUS from being BANKSELed,
3451           (FixRegisterBanking): rewritten from scratch, implemented generic
3452             optimizations (suppress BANKSELs to same register and to registers
3453             present in all banks),
3454           (AnalyzeBanking): update flow after BANKSELection
3455
3456         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
3457             sharebank, let linker place it, mark STKxx symbols as emitted
3458
3459 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3460
3461         * src/regression/arrays.c,
3462         * src/regression/bank1.c,
3463         * src/regression/bool2.c,
3464         * src/regression/compare7.c,
3465         * src/regression/compare8.c,
3466         * src/regression/compare9.c,
3467         * src/regression/compare10.c,
3468         * src/regression/configword.c,
3469         * src/regression/for.c,
3470         * src/regression/mult1.c,
3471         * src/regression/pointer1.c,
3472         * src/regression/rotate6.c,
3473         * src/regression/string1.c,
3474         * src/regression/struct1.c,
3475         * src/regression/Makefile: make PIC14 regression tests run again
3476           (3 fail, 6 won't compile)
3477
3478 2006-11-21 Raphael Neider <rneider AT web.de>
3479
3480         * device/include/pic16/pic18f4550.h,
3481         * device/include/pic16/pic18f4455.h,
3482         * device/lib/pic16/libdev/pic18f4550.c,
3483         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
3484         * configure.in: removed superfluous closing bracket
3485
3486 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3487
3488         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
3489           always positive.
3490
3491 2006-11-21 Raphael Neider <rneider AT web.de>
3492
3493         * src/pic/device.{c,h}: added pic14_getPIC()
3494         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
3495           (genAnd): added PIC code for one case, fixes #1597044
3496         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
3497           SFRs that are present in all banks (e.g., STATUS)
3498
3499 2006-11-20 Raphael Neider <rneider AT web.de>
3500
3501         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
3502           INCFSZ/INCFSZW and declared them as changing Z bit,
3503           (insertPCodeInstruction): correctly invert the above instructions,
3504           fixes #1599333,
3505           (DoBankSelect): don't panic on po_immediates
3506
3507 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
3508
3509         * as/link/aslink.h,
3510         * as/link/mcs51/lkihx.c (newArea),
3511         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
3512         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
3513
3514 2006-11-11 Raphael Neider <rneider AT web.de>
3515
3516         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
3517           bitfield symbols, fixes #1579535 (once more...).
3518
3519 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3520
3521         * support/regression/generate-cases.py,
3522         * support/regression/fwk/include/testfwk.h,
3523         * support/regression/fwk/lib/testfwk.c: used code pointers,
3524           (about 50kByte less code generated for mcs51)
3525
3526 2006-11-06 Borut Razem <borut.razem AT siol.net>
3527
3528         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3529           debugger/mcs51/configure: fixed failed check because the function
3530           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
3531           who submitted the patch for gpsim.
3532         * debugger/mcs51/configure.in: removed the result message
3533         * debugger/mcs51/Makefile.in: fixed the config.status warning
3534           "... seems to ignore the --datarootdir setting"
3535
3536 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
3537
3538         * device/include/mcs51/c8051f020.h,
3539         * device/include/mcs51/c8051f040.h,
3540         * device/include/mcs51/c8051f060.h,
3541         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
3542         * src/z80/gen.c (gencjneshort),
3543         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
3544
3545 2006-10-31 Borut Razem <borut.razem AT siol.net>
3546
3547         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3548           debugger/mcs51/configure: get readline version
3549
3550 2006-10-30 Borut Razem <borut.razem AT siol.net>
3551
3552         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
3553         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3554           debugger/mcs51/configure: locate readline even when cross compiling
3555         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
3556
3557 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3558
3559         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
3560           serial port.
3561
3562 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
3563
3564         * device/include/malloc.h,
3565         * device/lib/calloc.c,
3566         * device/lib/free.c,
3567         * device/lib/malloc.c,
3568         * device/lib/realloc.c: moved definition of struct into sources
3569         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
3570
3571 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
3572
3573         * as/asx8051.dsp: corrected output directories
3574         * as/link/hc08: new directory for hc08 linker
3575         * as/hc08/aslink.h,             as/link/aslink.h,
3576         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
3577         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
3578         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
3579         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
3580         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
3581         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
3582         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
3583         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
3584         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
3585         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
3586         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
3587         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
3588         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
3589         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
3590         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
3591         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
3592         * as/link/hc08/conf.mk,
3593         * configure,
3594         * configure.in,
3595         * Makefile.in,
3596         * sdcc.dsw: moved hc08 linker to as/link/hc08
3597         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
3598         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
3599         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
3600         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
3601         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
3602         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
3603         * as/link/mcs51/aslink.dsp,
3604         * as/link/mcs51/Makefile.in: factored out the common files
3605         * as/hc08/lkstore.c: deleted, use the one already in as/link/
3606         * as/clean.mk: extra cleaning common files
3607         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
3608         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
3609         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
3610
3611 2006-10-29 Raphael Neider <rneider AT web.de>
3612
3613         * src/pic/ralloc.c (newReg): create aliases for registers with
3614           multiple names to fix #1579535 and #1584001,
3615           (regWithIdx,dirregWithName): resolve aliases on lookup
3616         * src/pic/pcode.c (DoBankSelect): die with error message on failing
3617           bankselect
3618         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
3619           to prevent build errors on small devices
3620
3621 2006-10-28 Raphael Neider <rneider AT web.de>
3622
3623         * src/pic/gen.c (genFunction,genCall): drop "same code page"
3624           assumption within interrupt handlers, fixes #1584940
3625         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
3626           "emitted" to avoid emitting them again in udata
3627
3628 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3629
3630         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
3631         Removed.
3632
3633 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3634
3635         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
3636         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
3637         on/off CR to CRLF conversion.
3638
3639 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3640
3641         * doc/sdccman.lyx: updated IRQ section
3642
3643 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3644
3645         * device/lib/serial_io.c: removed
3646         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
3647         replacements for serial_io.c
3648
3649 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
3650
3651         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
3652
3653 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3654
3655         * device/lib/serial_io.c: Default putchar() and getchar() for
3656           mcs51 uses serial port.
3657
3658 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
3659
3660         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
3661
3662 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3663
3664         * support/regression/ports/mcs51/support.c: smaller
3665         _sdcc_external_startup()
3666         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
3667
3668 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
3669
3670         * device/lib/gbz80/crt0.s,
3671         * device/lib/gbz80/crt0_rle.s,
3672         * device/lib/gbz80/div.s,
3673         * device/lib/gbz80/fstubs.s,
3674         * device/lib/gbz80/heap.s,
3675         * device/lib/gbz80/mul.s,
3676         * device/lib/gbz80/putchar.s,
3677         * device/lib/gbz80/stubs.s,
3678         * device/lib/z80/crt0.s,
3679         * device/lib/z80/crt0_rle.s,
3680         * device/lib/z80/div.s,
3681         * device/lib/z80/fstubs.s,
3682         * device/lib/z80/heap.s,
3683         * device/lib/z80/mul.s,
3684         * device/lib/z80/putchar.s,
3685         * device/lib/z80/stubs.s: reverted, I was mistaken
3686
3687 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3688
3689         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
3690         * support/regression/ports/mcs51/support.c: removed race
3691         condition on TI in _putchar allowing to use serial port mode 0
3692
3693 2006-10-20 Borut Razem <borut.razem AT siol.net>
3694
3695         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
3696
3697 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
3698
3699         * device/lib/gbz80/crt0.s,
3700         * device/lib/gbz80/crt0_rle.s,
3701         * device/lib/gbz80/div.s,
3702         * device/lib/gbz80/fstubs.s,
3703         * device/lib/gbz80/heap.s,
3704         * device/lib/gbz80/mul.s,
3705         * device/lib/gbz80/putchar.s,
3706         * device/lib/gbz80/stubs.s,
3707         * device/lib/z80/crt0.s,
3708         * device/lib/z80/crt0_rle.s,
3709         * device/lib/z80/div.s,
3710         * device/lib/z80/fstubs.s,
3711         * device/lib/z80/heap.s,
3712         * device/lib/z80/mul.s,
3713         * device/lib/z80/putchar.s,
3714         * device/lib/z80/stubs.s: removed all leading underscores from area names
3715
3716 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
3717
3718         * support/regression/ports/mcs51/support.c: use highest baudrate so the
3719           regression tests are not waiting in the simulator for simulated
3720           transmission of debug output
3721
3722 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3723
3724         * device/lib/printf_large.c: slightly smaller
3725         * doc/sdccman.lyx: do not use spaces within html links
3726
3727 2006-10-16 Borut Razem <borut.razem AT siol.net>
3728
3729         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
3730           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
3731           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
3732           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
3733           debugger/mcs51/configure:
3734           [ 1185668 ] add gnu readline support to sdcdb - enabled
3735
3736 2006-10-16 Raphael Neider <rneider AT web.de>
3737
3738         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
3739           fixes #1577882, removes close to all banking optimizations
3740
3741 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
3742
3743         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
3744           variables in code memory
3745         * support/regression/tests/absolute.c: added test for this
3746
3747 2006-10-15 Raphael Neider <rneider AT web.de>
3748
3749         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
3750           devices,
3751           (BankSelect): emit BANKSEL before touching linker-placed regs,
3752           fixes #1570934
3753
3754 2006-10-10 Raphael Neider <rneider AT web.de>
3755
3756         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
3757         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
3758         * src/pic/main.c (_pic14_parseOptions),
3759         * src/pic/main.h: mostly reverted to previous state, now use results
3760             from SDCCmain.c's argument parsing
3761
3762 2006-10-10 Borut Razem <borut.razem AT siol.net>
3763
3764         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
3765           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
3766           [ 1185668 ] add gnu readline support to sdcdb -
3767           prepared for READLINE, not enabled yet,
3768           thanks to <tal.bav AT gmail.com>
3769
3770 2006-10-10 Raphael Neider <rneider AT web.de>
3771
3772         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
3773         * src/pic16/devices.inc,
3774         * device/include/pic16 (pic18f[24]620.h),
3775         * device/include/pic18fregs.h,
3776         * device/lib/pic16/pics.all,
3777         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
3778             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
3779             Gary Plumbridge and Anton Strobl
3780
3781 2006-10-10 Raphael Neider <rneider AT web.de>
3782
3783         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
3784           --stack-siz=NUM options to configure the argument passing stack
3785         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
3786         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
3787           (pic14_getSharebankSize): obey --stack-siz=NUM,
3788           (pic14_getSharebankAddress): obey --stack-loc=NUM
3789
3790 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3791
3792         * doc/sdccman.lyx: added to the manual
3793         * doc/figures/ddd_example.png: added (neither pdflatex nor
3794         most browsers seem to like the .eps file)
3795
3796 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
3797
3798         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
3799         to /tmp and /var/tmp acc. LSB
3800         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
3801         RESULT_TYPE_IFX
3802         * support/regression/tests/onebyte.c: added test
3803
3804 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3805
3806         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
3807
3808 2006-10-05 Borut Razem <borut.razem AT siol.net>
3809
3810         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
3811           thanks to dfulab:
3812           - sdcc.dsw: changed property eol-style to CRLF
3813           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
3814
3815 2006-10-04 Raphael Neider <rneider AT web.de>
3816
3817         * device/include/pic/{pic16f84.h,pic16f84a.h},
3818         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
3819           from patch #1522504, thanks to Robas Teodor
3820
3821 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
3822
3823         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
3824           fixes bug 1566015
3825
3826 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
3827
3828         * src/pic16/glue.c (pic16emitMaps),
3829         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
3830         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
3831         * device/lib/pic16/libc/string/memcpypgm2ram.c,
3832         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
3833           Philipp Krause
3834         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
3835         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
3836
3837 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3838
3839         * support/librarian/sdcclib.c: Added option -l.
3840         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
3841           usage totals.
3842         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
3843           using Windows command prompt.
3844
3845 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
3846
3847         * device/lib/libsdcc.lib: added module rand
3848         * src/ds390/ralloc.c (rematStr),
3849         * src/hc08/ralloc.c (rematStr),
3850         * src/mcs51/ralloc.c (rematStr),
3851         * src/z80/ralloc.c (rematStr): made output more consistent
3852         * src/mcs51/gen.c: cosmetic changes
3853
3854 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
3855
3856         * src/port.h: added mem.cabs_name to PORT
3857         * src/ds390/main.c,
3858         * src/hc08/main.c,
3859         * src/mcs51/main.c,
3860         * src/pic16/main.c,
3861         * src/pic/main.c,
3862         * src/xa51/main.c,
3863         * src/z80/main.c: added cabs_name initializers
3864         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
3865           constants
3866           (emitMaps): emit absolutes in code memory into cabs_name
3867         * src/SDCCmem.c,
3868         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
3869         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
3870         * support/regression/fwk/include/testfwk.h: added define for at
3871         * support/regression/tests/absolute.c: added, new
3872
3873 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
3874
3875         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
3876           optimizations, see also patch 887161 by Stas Sergeev
3877         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
3878           to be necessary anymore,
3879           (102, 103, 104, 127): renamed all occurances of bp to _bp
3880
3881 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
3882
3883         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
3884           thanks Weston T. Schmidt for patch 1555221
3885         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
3886         * src/SDCCicode.c(geniCodeMultiply): small optimization
3887
3888 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
3889
3890         * device/include/stdlib.h: added rand prototypes
3891         * device/lib/rand.c: new, added
3892         * device/lib/Makefile.in: added rand.c
3893         * src/z80/peeph.def,
3894         * src/z80/peeph-gbz80.def,
3895         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
3896
3897 2006-09-20 Raphael Neider <rneider AT web.de>
3898
3899         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
3900
3901 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
3902
3903         * as/link/aslink.h: cosmetic changes
3904         * as/link/mcs51/Makefile.in,
3905         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
3906
3907 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
3908
3909         * as/link/aslink.h,
3910         * as/link/mcs51/aslink.h,
3911         * as/link/z80/aslink.h: merged and moved to as/link/
3912         * as/link/lkstore.c,
3913         * as/link/mcs51/lkstore.c: moved to as/link/
3914         * as/link/clean.mk: remove *.o
3915         * as/link/mcs51/alloc.h: deleted
3916         * as/link/mcs51/lkarea.c: added lnksect prototype
3917         * as/link/mcs51/lkdata.c,
3918         * as/link/mcs51/lklex.c,
3919         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
3920         * as/link/mcs51/lkmem.c,
3921         * as/link/mcs51/lknoice.c: removed include strcmpi.h
3922         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
3923         * as/link/mcs51/aslink.dsp,
3924         * as/link/mcs51/Makefile.aslink,
3925         * as/link/mcs51/Makefile.bcc,
3926         * as/link/mcs51/Makefile.in: updated for moved files
3927         * as/link/z80/lkarea.c,
3928         * as/link/z80/lkhead.c,
3929         * as/link/z80/lklex.c,
3930         * as/link/z80/lklibr.c,
3931         * as/link/z80/lklist.c,
3932         * as/link/z80/lkmain.c,
3933         * as/link/z80/lkrloc.c,
3934         * as/link/z80/lksym.c: synced with mcs51
3935         * as/link/z80/lkdata.c,
3936         * as/link/z80/lkeval.c,
3937         * as/link/z80/lkihx.c,
3938         * as/link/z80/lks19.c: cosmetic changes
3939         * as/link/z80/Makefile.in,
3940         * as/link/z80/linkgbz80.dsp,
3941         * as/link/z80/linkz80.dsp: updated for moved files
3942
3943 2006-09-16 Borut Razem <borut.razem AT siol.net>
3944
3945         * debugger/mcs51/sdcdb.c: partially fixed
3946           [ 1203664 ] sdcdb fails to open files w. two "." periods
3947         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
3948           debugger/mcs51/symtab.h: fixed indenting
3949         * configure.in, configure: up to date with latest Maarten's changes
3950
3951 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
3952
3953         as/link/mcs51
3954         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
3955         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
3956         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
3957         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
3958         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
3959         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
3960         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
3961         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
3962         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
3963         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
3964         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
3965         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
3966         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
3967         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
3968         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
3969         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
3970         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
3971         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
3972         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
3973         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
3974         as/link/mcs51/alloc.h,
3975         as/link/mcs51/clean.mk,
3976         as/link/mcs51/conf.mk,
3977         as/link/mcs51/Makefile.bcc,
3978         as/link/mcs51/Makefile.in,
3979         as/link/mcs51/readme.390,
3980         as/link/mcs51/strcmpi.c,
3981         as/link/mcs51/strcmpi.h,
3982         as/mcs51/clean.mk,
3983         as/mcs51/Makefile.bcc,
3984         as/mcs51/Makefile.in,
3985         configure,
3986         Makefile.in,
3987         sdcc.dsw: moved mcs51 linker to as/link/mcs51
3988
3989 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
3990
3991         * as/link,
3992         * as/link/Makefile.in,
3993         * as/link/z80/linkgbz80.dsp,
3994         * as/link/z80/linkz80.dsp,
3995         * configure,
3996         * link,
3997         * link/clean.mk,
3998         * link/Makefile.in,
3999         * link/README,
4000         * link/z80,
4001         * link/z80/aslink.h,
4002         * link/z80/clean.mk,
4003         * link/z80/conf.mk,
4004         * link/z80/linkgbz80.dsp,
4005         * link/z80/linkz80.dsp,
4006         * link/z80/lkarea.c,
4007         * link/z80/lkdata.c,
4008         * link/z80/lkeval.c,
4009         * link/z80/lkgb.c,
4010         * link/z80/lkgg.c,
4011         * link/z80/lkhead.c,
4012         * link/z80/lkihx.c,
4013         * link/z80/lklex.c,
4014         * link/z80/lklibr.c,
4015         * link/z80/lklist.c,
4016         * link/z80/lkmain.c,
4017         * link/z80/lkrloc.c,
4018         * link/z80/lks19.c,
4019         * link/z80/lksym.c,
4020         * link/z80/Makefile.in,
4021         * Makefile.in,
4022         * sdcc.dsw: moved link/ to as/link/
4023
4024 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
4025
4026         * as/mcs51/i51mch.c (machine): fixed warning
4027
4028 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
4029
4030         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
4031
4032 2006-09-09 Borut Razem <borut.razem AT siol.net>
4033
4034         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
4035           sdcdb WIN32 native port
4036         * src/clean.mk: fixed
4037
4038 2006-09-08 Borut Razem <borut.razem AT siol.net>
4039
4040         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
4041
4042 2006-09-08 Raphael Neider <rneider AT web.de>
4043
4044         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
4045         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
4046             to gplink to disable processor mismatch warning and to allow
4047             the use of devices with only aliased (shared) memory banks,
4048           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
4049
4050 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4051
4052         * doc/sdccman.lyx: Some re-formating plus example on using
4053           #pragma preproc_asm +/-
4054
4055 2006-09-07 Borut Razem <borut.razem AT siol.net>
4056
4057         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
4058           section
4059
4060 2006-09-06 Borut Razem <borut.razem AT siol.net>
4061
4062         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
4063           line at sdcc.nsi:153
4064         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
4065
4066 2006-09-05 Borut Razem <borut.razem AT siol.net>
4067
4068         * configure.in, configure: support for winsock2
4069         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
4070           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
4071           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
4072           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
4073           debugger/mcs51/symtab.h: sdcdb WIN32 native port
4074
4075 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
4076
4077         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
4078           and OP_DEFS
4079         * support/regression/tests/bug1551947.c: new, added
4080         * src/SDCCsymt.h: strings are char* not byte*
4081
4082 2006-09-05 Raphael Neider <rneider AT web.de>
4083
4084         * device/lib/pic16/libdev/pic18f4550.c,
4085           device/include/pic16/pic18f4550.h: added PORTD/TRISD
4086             declarations/definitions from patch #1520949
4087
4088 2006-09-05 Raphael Neider <rneider AT web.de>
4089
4090         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
4091           byte-aligned bitfields, fixes #1539278
4092
4093 2006-09-05 Raphael Neider <rneider AT web.de>
4094
4095         * src/pic/gen.c (genReceive): skip unreferenced arguments,
4096           fixes #1544120
4097
4098 2006-09-04 Borut Razem <borut.razem AT siol.net>
4099
4100         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
4101         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
4102           -mno-cygwin is a part of the compiler name
4103         * support/scripts/sdcc_mingw32: don't disable ucsim
4104
4105 2006-09-03 Borut Razem <borut.razem AT siol.net>
4106
4107         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
4108         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
4109
4110 2006-09-03 Raphael Neider <rneider AT web.de>
4111
4112         * src/pic/ralloc.c,
4113         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
4114           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
4115           fixes #1550049
4116
4117 2006-09-01 Borut Razem <borut.razem AT siol.net>
4118
4119         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
4120           to make ppc-osx happy
4121
4122 2006-08-31 Borut Razem <borut.razem AT siol.net>
4123
4124         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
4125         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
4126         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
4127         * support/regression/ports/ds390/spec.mk,
4128           support/regression/ports/mcs51/spec.mk,
4129           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
4130           To run regression tests in mingw environment:
4131           make DEV_NULL=NUL CC=gcc
4132
4133 2006-08-30 Borut Razem <borut.razem AT siol.net>
4134
4135         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
4136           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
4137           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
4138           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
4139           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
4140           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
4141           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
4142           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
4143           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
4144           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
4145           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
4146           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
4147           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
4148           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
4149           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
4150           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
4151           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
4152           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
4153           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
4154           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
4155           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
4156           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
4157           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
4158           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
4159           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
4160           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
4161           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
4162           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
4163           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
4164           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
4165           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
4166           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
4167           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
4168           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
4169           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
4170           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
4171           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4172           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
4173           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
4174           ucsim WIN32 native port
4175
4176 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4177
4178         * doc/sdccman.lyx: added note on dynamic memory heap initialization
4179
4180 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4181
4182         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
4183         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
4184
4185 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
4186
4187         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
4188         * support/regression/tests/bug1546986.c: new, added
4189         * as/mcs51/.cvsignore,
4190         * debugger/mcs51/.cvsignore,
4191         * src/.cvsignore: deleted
4192
4193 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4194
4195         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
4196           definitions)
4197
4198 2006-08-20 Borut Razem <borut.razem AT siol.net>
4199
4200         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
4201           removed cl_listen_console::match(), cl_console::match(),
4202           restructured cl_commander::proc_input()
4203
4204 2006-08-16 Borut Razem <borut.razem AT siol.net>
4205
4206         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
4207           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
4208           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
4209
4210 2006-08-14 Borut Razem <borut.razem AT siol.net>
4211
4212         * support/regression/Makefile.in,
4213           support/regression/ports/pic14/gpsim.cmd,
4214           support/regression/ports/pic14/spec.mk,
4215           support/regression/ports/pic14/support.c:
4216           added pic14 regression test
4217
4218 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
4219
4220         * as/doc/asxhtm.html: documented changed ABS behaviour
4221         * as/doc/README: fixed some typos
4222
4223 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
4224
4225         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
4226           not defined on host
4227
4228 2006-08-12 Borut Razem <borut.razem AT siol.net>
4229
4230         * support/regression/fwk/include/testfwk.h,
4231           support/regression/fwk/lib/testfwk.c,
4232           support/regression/generate-cases.py,
4233           support/regression/Makefile.in:
4234           regression test framework does not depend on function pointers and
4235           variable arguments
4236
4237 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
4238
4239         * device/include/stddef.h: c temporary hack to fix bug 1518273
4240
4241 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4242
4243         * device/include/mcs51/cc2510fx.h: added
4244         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
4245           to projects.
4246
4247 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
4248
4249         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
4250         * as/z80/Makefile.in: added strcmpi.c
4251         * as/z80/z80adr.c: added upper case registers and lower case conditionals
4252         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
4253
4254 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
4255
4256         * device/lib/gbz80/asm_strings.s,
4257         * device/lib/gbz80/crt0_rle.s,
4258         * device/lib/gbz80/div.s,
4259         * device/lib/gbz80/mul.s,
4260         * device/lib/gbz80/shift.s,
4261         * device/lib/z80/asm_strings.s,
4262         * device/lib/z80/crt0_rle.s,
4263         * device/lib/z80/div.s,
4264         * device/lib/z80/mul.s,
4265         * device/lib/z80/shift.s: changed to all lower case menmonics except the
4266           flags which are all upper case
4267
4268 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
4269
4270         * as/z80/asm.h: made CASE_SENSITIVE 1
4271         * link/z80/aslink.h: made CASE_SENSITIVE 1
4272         * src/z80/gen.c (throughout): made all conditionals upper case
4273         * support/regression/tests/bug1503067.c: new
4274
4275 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
4276
4277         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
4278           (shiftIntoPair): added case 2 for PAIR_IY,
4279           (setupToPreserveCarry): replaced parameters with iCode and check if
4280            PAIR_DE is in use to fix bug 1399290,
4281           (genPlus, genMinus): updated call to setupToPreserveCarry
4282         * support/regression/tests/bug1399290.c: new
4283
4284 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
4285
4286         * device/lib/Makefile.in (Z80SOURCES): enabled float support
4287         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
4288         * src/ds390/gen.c (shiftRLong),
4289         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
4290         * src/mcs51/gen.c (sameReg): changed to sameByte,
4291           (xch_a_aopGet): new,
4292           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
4293            shiftRLong): fixed bug 1533966
4294         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
4295           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
4296         * support/regression/Makefile.in: disabled z80, enabled ucz80
4297         * support/regression/tests/float_trans.c: enabled test for z80 and host
4298         * support/regression/tests/shifts2.c: new, for testing bug 1533966
4299
4300 2006-08-01 Borut Razem <borut.razem AT siol.net>
4301
4302         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
4303           comparison is always false due to limited range of data type
4304           on PPC64 machine (openpower-linux1) where "char = unsigned char"
4305
4306 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
4307
4308         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
4309         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
4310         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
4311         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
4312
4313 2006-07-31 Borut Razem <borut.razem AT siol.net>
4314
4315         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
4316           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
4317           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
4318           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
4319           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
4320           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
4321           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
4322           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
4323           enable ucsim mingw compilation. Serial port is disabled,
4324           since it uses termios.h API, which is not available on native
4325           WIN32
4326
4327 2006-07-31 Borut Razem <borut.razem AT siol.net>
4328
4329         * Small Device C Compiler 2.6.0 released
4330         * support/scripts/sdcc.nsi: added FULL_DOC option
4331         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
4332
4333 2006-07-28 Borut Razem <borut.razem AT siol.net>
4334
4335         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
4336         * doc/INSTALL.txt: updated
4337
4338 2006-07-27 Borut Razem <borut.razem AT siol.net>
4339
4340         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
4341           device/lib/pic/libdev/Makefile.in: fixed bug
4342           [ 1438354 ] pic libsdcc: distclean doesn't work
4343         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
4344           device/lib/pic16/libio/Makefile.in: fixed bug
4345           [ 1438344 ] pic16 lib: clean doesn't work properly
4346         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
4347
4348 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
4349
4350         * device/lib/pic/libsdcc/fsdiv.c,
4351         * device/lib/pic/libsdcc/fsmul.c,
4352         * device/lib/pic16/libsdcc/float/fsdiv.c,
4353         * device/lib/pic16/libsdcc/float/fsmul.c,
4354         * device/lib/_fsdiv.c,
4355         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
4356         * support/regression/tests/bug1520966.c: added
4357         * doc/knownbugs.html: removed [ 1520966 ] from the list
4358
4359 2006-07-25 Borut Razem <borut.razem AT siol.net>
4360
4361         * configure.in, configure, sdccconf_in.h: fixed bug
4362           [ 1519095 ] regression test onebyte.c fails on ppc64 host
4363         * doc/knownbugs.html: removed [ 1519095 ] from the list
4364
4365 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
4366
4367         * doc/knownbugs.html: added, contains list of known bugs at release
4368         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
4369
4370 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
4371
4372         * device/include/mcs51/compiler.h: added SFRX for xdata based special
4373           function registers and corrected defaults with additional warning
4374         * device/lib/malloc.c: cosmetic changes
4375         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
4376         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
4377           (fillGaps): and used it
4378
4379 2006-07-20 Raphael Neider <rneider AT web.de>
4380
4381         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
4382           output unless SDCCPICDEBUG is set
4383         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
4384           output if SILENT is set
4385
4386 2006-07-11 Borut Razem <borut.razem AT siol.net>
4387
4388         * doc/README.txt: updated
4389
4390 2006-07-10 Borut Razem <borut.razem AT siol.net>
4391
4392         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
4393           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
4394           in WIN32 installation
4395         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
4396           release candidate 1
4397
4398 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
4399
4400         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
4401         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
4402
4403 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
4404
4405         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
4406
4407 2006-07-06 Borut Razem <borut.razem AT siol.net>
4408
4409         * support/regression/tests/bitfields.c:
4410           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
4411         * support/regression/tests/constantRange.c:
4412           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
4413
4414 2006-07-04 Borut Razem <borut.razem AT siol.net>
4415
4416         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
4417           src/port.mk,
4418           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
4419           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
4420           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
4421           reverted changes from 2006-07-03
4422         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
4423         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
4424           added CPPFLAGS, used by the host port
4425
4426 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
4427
4428         * support/regression/valdiag/tests/switch.c,
4429         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
4430         * support/regression/tests/libmullong.c: fixed for host
4431         * support/regression/ports/host/spec.mk: disable all warnings for host,
4432         SDCC runs with --less-pedantic too
4433
4434 2006-07-03 Borut Razem <borut.razem AT siol.net>
4435
4436         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
4437           defined CPPFLAGS
4438         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
4439         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
4440           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
4441           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
4442           include ../port.mk
4443         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
4444           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
4445           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
4446           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
4447
4448 2006-07-02 Raphael Neider <rneider AT web.de>
4449
4450         * src/pic16/devices.inc,
4451         * device/include/pic16/pic18fregs.h,
4452         * device/include/pic16/pic18f4550.h,
4453         * device/lib/pic16/pics.all,
4454         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
4455
4456 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
4457
4458         * as/hc08/lkaomf51.c (OutputName),
4459         * as/mcs51/lkaomf51.c (OutputName),
4460         * as/z80/asmain.c (asmbl),
4461         * src/ds390/main.c (asmLineNodeFromLineNode),
4462         * src/hc08/ralloc.c (hc08_assignRegisters),
4463         * src/mcs51/main.c (asmLineNodeFromLineNode),
4464         * src/xa51/ralloc.c (checkRegMask),
4465         * src/xa51/gen.c (emitcode),
4466         * src/z80/gen.c (_emit2),
4467         * src/SDCCast.c (searchLitOp),
4468         * src/SDCCglobl.h,
4469         * support/packihx/packihx.c,
4470         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
4471         * src/ds390/gen.c (aopPutUsesAcc),
4472         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
4473         * support/regression/tests/libmullong.c (mullong_wrapper),
4474         * src/SDCCsymt.c (powof2),
4475         * src/SDCCast.c,
4476         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
4477         * src/SDCCsymt.h: added TYPE_TARGET_*
4478         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
4479         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
4480         SDCCast because 1) header problems 2) this is the right place
4481         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
4482         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
4483         prototype
4484
4485 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
4486
4487         * src/SDCCicode.h: removed buggy semicolon in unused macro
4488         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
4489         search for previous definiton of auto symbols too,
4490         (findPrevUse): fixed logic of emitWarnings
4491
4492 2006-06-26 Raphael Neider <rneider AT web.de>
4493
4494         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
4495           PCLATH and PCLATU on interrupts, potentially fixes #1505141
4496
4497 2006-06-25 Raphael Neider <rneider AT web.de>
4498
4499         * device/lib/pic/libm: NEW, added math library functions
4500         * device/lib/pic/libsdcc: NEW; added float support functions
4501         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
4502         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
4503           NEW, added math related headers
4504         * device/include/asm/pic/features.h: NEW
4505         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
4506           (popGet): allow larger offsets for AOP_PCODE,
4507           (genDataPointerSet): handle literals explicitly, more debug output,
4508           (genAssign): fixed for float using aopLiteral ;-)
4509         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
4510           GOTO initialisation routine
4511         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
4512           flag on registers, fixes #1469043 (local variables do not work)
4513         * src/pic/main.c (_pic14_do_link),
4514         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
4515           available
4516
4517 2006-06-25 Borut Razem <borut.razem AT siol.net>
4518
4519         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
4520           characters printed (not including the trailing '\0' used to end
4521           output to strings). Problem detected in regression test bug-927659.c.
4522           NOTE: printf() family functions should return int instead
4523           unsigned int!
4524         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
4525           specifier are printed as themselves
4526         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
4527           support flags, width and precision specifiers
4528
4529 2006-06-24 Borut Razem <borut.razem AT siol.net>
4530
4531         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
4532           to the list of sdcc tagrets not supporting bit type
4533         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
4534           testfor pic16 due to bug:
4535           [ 1511794 ] pic16: regression test bug-895992.c fails
4536
4537 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
4538
4539         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
4540         * src/SDCCglue.c (initPointer), fixed bug 1496419
4541         * support/regression/tests/bug1496419.c: new, added
4542
4543 2006-06-22 Borut Razem <borut.razem AT siol.net>
4544
4545         * support/regression/ports/pic16/support.c: use gpsim usart module from
4546           libgpsim_modules library
4547
4548 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4549
4550         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
4551         IP0H to IPH0.
4552
4553 2006-06-19 Raphael Neider <rneider AT web.de>
4554
4555         * src/pic/glue.h,src/pic16/glue.h: added prototypes
4556         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
4557           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
4558           (pic14printExterns,pic14printPublics,pic16printPublics,
4559           pic16_printExterns): use new functions to emit symbols
4560           (picglue,pic16glue): emit publics before emitting externs
4561         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
4562           locally defined functions to avoid bug #1443651
4563         * support/regression/tests/bug-716242.c: removed pic16 workaround
4564         * support/regression/ports/pic16/spec.mk: ignore errors during build
4565
4566 2006-06-19 Raphael Neider <rneider AT web.de>
4567
4568         * src/pic/glue.h: added pic14aopLiteral prototype
4569         * src/pic/glue.c (pic14aopLiteral): return unsigned int
4570         * src/pic/gen.c: removed stdint.h dependency
4571           (aopGet): use Safe_strdup()
4572           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
4573           (genDataPointerSet): use pic14aopLiteral()
4574         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
4575           for pic16; thanks to Bernhard and Maarten
4576
4577 2006-06-18 Borut Razem <borut.razem AT siol.net>
4578
4579         * support/regression/tests/structflexarray.c: flexible array members
4580           not supported by gcc < 3
4581         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
4582           GUI tool by default
4583         * src/pic/gen.c: don't include [p]strdin.h on solaris
4584         * support/Util/pstdint.h: addad svn attributes
4585         * support/regression/tests/constantRange.c,
4586           support/regression/tests/rotate.c: include inttypes.h instead
4587           stdint.h on solaris, addad svn attributes
4588
4589 2006-06-18 Raphael Neider <rneider AT web.de>
4590
4591         * src/SDCCsymt.c (initCSupport): change return type of divschar to
4592           int for PIC16
4593         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
4594           (pic16_genMinusBits): simplified sign-extension
4595           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
4596             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
4597             adjusted to correctly handle mixed-signed operands, disabled
4598             now unused multiplciation routines
4599         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
4600           (assignResultValue): added argument denoting the size of the result
4601             as returned by the function (fixes upcasts in assigning from
4602             function calls: char foo(); int i = foo();)
4603           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
4604             function result to assignResultValue
4605           (genMult): disabled inlined multiplication code
4606           (genDiv): augmented to also handle the modulus operator, fixed to
4607             handle mixed-signed operands correctly
4608           (genMod): simply call genDiv, disabled unused code
4609           (genAssign): fixed missing (sign-)extension on result
4610         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
4611             valid char operands, allow signed operands for native code, added
4612             division and modulo operator handling
4613         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
4614
4615         As a consequence, onebyte.c (if split into two files) and muldiv.c
4616         pass regression tests.
4617
4618 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4619
4620         * doc/Makefile.in: two runs of makeindex seem needed to get
4621         correct page references in the index of sdccman.pdf
4622         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
4623
4624 2006-06-17 Borut Razem <borut.razem AT siol.net>
4625
4626         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
4627
4628 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4629
4630         * doc/sdccman.lyx: updated, added (porting source code, debugging),
4631         mentioned ec2drv and paulmon
4632
4633 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
4634
4635         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
4636           consecutive abs areas
4637           (find_empty_space, allocate_space): added map to handle codemap or
4638            xdatamap,
4639           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
4640            absolute idata and xdata
4641         * as/mcs51/lkmem.c (summary2): updated legend
4642
4643 2006-06-16 Raphael Neider <rneider AT web.de>
4644
4645         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
4646
4647 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
4648
4649         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
4650           1208515
4651         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
4652
4653 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
4654
4655         * src/port.h (struct PORT): added field gp_tags, to hold the tag
4656         value of generic pointers,
4657         * src/avr/main.c,
4658           src/ds390/main.c,
4659           src/hc08/main.c,
4660           src/izt/i186.c,
4661           src/izt/tlcs900h.c,
4662           src/mcs51/main.c,
4663           src/pic/main.c,
4664           src/pic16/main.c,
4665           src/xa51/main.c,
4666           src/z80/main.c: PORT structure, added elements for gp_tags field,
4667         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
4668         fields in the PORT structure of each port,
4669         * src/SDCCast.c (decorateType): allow processing of generic pointers
4670         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
4671         S_FIXED symbols
4672
4673 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
4674
4675         * link/z80/lkgb.c,
4676         * link/z80/lkgg.c,
4677         * src/pic16/gen.c,
4678         * src/pic16/main.c,
4679         * src/pic16/pcode.c,
4680         * src/pic/main.c,
4681         * src/pic/pcoderegs.c,
4682         * src/SDCCicode.c,
4683         * src/SDCCmain.c,
4684         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
4685           bug 1504689 on minGW
4686
4687 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4688
4689         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
4690
4691 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
4692
4693         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
4694
4695 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
4696
4697         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
4698           for optimization
4699
4700 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
4701
4702         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
4703         to a char variable. Fixed bug #1504211
4704         * device/include/pic16/adc.h,
4705         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
4706         and fixed bug #1364390
4707
4708 2006-06-10 Borut Razem <borut.razem AT siol.net>
4709
4710         * CVSROOT: removed the CVS left-over
4711
4712 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
4713
4714         * as/hc08/asmain.c (asexit),
4715         * as/hc08/lkmain.c (lkexit),
4716         * as/mcs51/asmain.c (asexit),
4717         * as/mcs51/lkmain.c (lkexit),
4718         * src/SDCCglue.c (DEFSETFUNC),
4719         * src/SDCCmain.c (linkEdit, assemble),
4720         * support/librarian/sdcclib.c (AddRel),
4721           replaced unlink() by standard C remove()
4722         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
4723         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
4724           gatherImplicitVariables): new, added to fix bug 608752,
4725           (createFunction): added gatherImplicitVariables()
4726         * src/SDCCast.h: added createRMW prototype
4727         * src/SDCCsymt.h (struct symbol): added infertype
4728         * support/regression/tests/bug608752.c: new, added
4729
4730 2006-06-10 Raphael Neider <rneider AT web.de>
4731
4732         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
4733           multibyte dummy reads (fixes #1503234)
4734
4735 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
4736
4737         * device/include/mcs51/compiler.h: new, added header file to enable
4738           creating common sfr definition header files for different compilers
4739
4740 2006-06-05 Raphael Neider <rneider AT web.de>
4741
4742         * src/pic16/{pcode.h,genarith.c}:
4743           introduced pCodeOp combining any two pCodeOps (previously only
4744           two register operands could be combined), removed pcop2 from
4745           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
4746         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
4747         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
4748           rewritten to use new PO_TWO_OPS
4749         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
4750         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
4751           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
4752           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
4753           (pic16_get_op): embraced return arg to allow #define return(x),
4754             added new case for combined opcodes
4755           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
4756           (pic16_pCode2str,pic16_getRegFrompCodeOp,
4757            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
4758
4759 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
4760
4761         * src/SDCCval.c (checkConstantRange): added
4762         * src/SDCCval.h: added checkConstantRange
4763         * support/Util/SDCCerr.c,
4764         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
4765         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
4766         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
4767         * src/SDCCast.c (decorateType): added checkConstantRange,
4768         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
4769         can be emitted with the correct always true/false warning,
4770         added optimization for double '!';
4771         result of decorateType() must be assigned back to the tree, because
4772         decorateType() can change the tree
4773         * src/SDCCicode.c (geniCodeLogic),
4774         (geniCodeAssign): replaced new checkConstantRange, added warnings,
4775         (checkConstantRange): removed, it was only a fragment which never
4776         emitted a warning
4777         * src/SDCCsymt.c (computeType): fixed promotion for
4778         "-1 < (unsigned bit) b"
4779         * src/pic/ralloc.c (packRegsForAssign),
4780         * src/pic16/ralloc.c (packRegsForAssign),
4781         * src/hc08/ralloc.c (packRegsForAssign),
4782         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
4783         from mcs51
4784         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
4785         * support/regression/tests/constantRange.c: added
4786         * support/valdiag/tests/constantRange.c: added
4787         * support/valdiag/valdiag.py: added -DPORT_HOST=1
4788
4789 2006-06-02 Borut Razem <borut.razem AT siol.net>
4790
4791         * support/regression/ports/pic16/support.c: increase stack size
4792           to 255 bytes
4793         * support/regression/Makefile.in: sort tests by name so that the
4794           resutlts can be compared on different machines / platforms
4795
4796 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
4797
4798         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
4799         * src/ds390/gen.c (emitLabel): new, added,
4800           (genDjnz): fixed stack overflow bug,
4801           (throughout): cosmetic changes to sync with mcs51/gen.c,
4802           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
4803         * src/mcs51/gen.c (genEndFunction): small optimization,
4804           (throughout): cosmetic changes to sync with ds390/gen.c
4805
4806 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
4807
4808         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
4809           (_print_format): fixed printing pointers
4810         * src/mcs51/gen.c (emitLabel, movb): new, added,
4811           (genAssign): small optimization,
4812           (genDjnz): fixed stack overflow bug,
4813           (throughout): replaced sprintf with SNPRINTF,
4814           replaced mcs51_regWithIdx with REG_WITH_INDEX,
4815           replaced emitcode("mov", "b,...") with MOVB(...),
4816           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
4817           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
4818         * src/mcs51/peeph.def: added rules 140 and 264
4819         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
4820           so they may get optimized into registers
4821
4822 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
4823
4824         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
4825           immediately when encountered,
4826           (printUsage): always use stderr even on windows
4827
4828 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
4829
4830         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
4831         (processParms): fixed bug #1247551
4832         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
4833         parseCmdLine, main): print '--version' to stdout,
4834         print 'help' to stdout if --help is given,
4835         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
4836         arguments are given; fixed --help
4837
4838 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
4839
4840         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
4841         * support/regression/tests/bug-1493710.c: added
4842
4843 2006-05-27 Borut Razem <borut.razem AT siol.net>
4844
4845         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
4846           static instead auto
4847         * support/regression/ports/pic16/support.c: increase stack size
4848           from default 64 bytes to 128 bytes
4849         * support/regression/tests/staticinit.c,
4850           support/regression/tests/float.c: regression tests fully enabled
4851           for pic16 port by putting the initialized data arrays into the code
4852           section
4853         * support/regression/ports/pic16/spec.mk: don't link default libraries.
4854           This was changed by mistake in the previous version.
4855
4856 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
4857
4858         * src/pic16/gen.c (genFunction, genEndFunction): some
4859         beautifications, fixed bug with falsely restoring FSR2 in large
4860         stack model, thanks to Beau E. Cox for reporting the bug
4861
4862 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
4863
4864         * debugger/mcs51/break.c,
4865         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
4866           use %p to print pointers, made address variables unsigned
4867         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
4868         * debugger/mcs51/symtab.c (parseSymbol): must return something
4869         * src/mcs51/gen.c (aopForSym): small optimization,
4870            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
4871           (freeAsmop): added missing break,
4872           (aopPut): removed parameter bvolatile, determine it inside the function,
4873           (saveRegisters, unsaveRegisters): small optimization,
4874           (genIpush): removed pointless check,
4875           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
4876           replaced sprintf with SNPRINTF,
4877           replaced strcpy with strncpyz,
4878           updated aopPut calls,
4879           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
4880         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
4881
4882 2006-05-24 Borut Razem <borut.razem AT siol.net>
4883
4884         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
4885           modification of test for the pic16 port, put the array to the code
4886           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
4887
4888 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4889
4890         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
4891         * support/Util/pstdint.h: added
4892
4893 2006-05-22 Borut Razem <borut.razem AT siol.net>
4894
4895         * src/regression/Makefile: removed bool2.c test, added -q linker option
4896         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
4897           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
4898           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
4899           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
4900           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
4901           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
4902           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
4903           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
4904           define SUPPORT_BIT_TYPES 0, removed unused bit variables
4905
4906 2006-05-22 Raphael Neider <rneider AT web.de>
4907
4908         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
4909           bug #1492360 (problematic due to generic pointers, see code)
4910
4911 2006-05-22 Borut Razem <borut.razem AT siol.net>
4912
4913         * support/regression/ports/pic16/specs.mk: removed stack size linker
4914           directive
4915         * support/regression/tests/array.c,
4916           support/regression/tests/bitopcse.c,
4917           support/regression/tests/bug-908454.c,
4918           support/regression/tests/malloc.c: modified for pic16 regression test
4919         * support/regression/tests/bitfields.c:
4920           pic16 - excluded bitfileds of size > 8
4921         * support/regression/tests/bp.c: pic16 - reduced data size
4922         * support/regression/tests/bug-221100.c: pic16 - reduced data size
4923         * support/regression/tests/bug-460010.c:
4924           pic16 - used the absolute address the fits in memory
4925         * support/regression/tests/bug-716242.c:
4926           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
4927         * support/regression/tests/float.c:
4928           pic16 - excluded - data size too big
4929         * support/regression/tests/onebyte.c:
4930           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
4931         * support/regression/tests/shifts.c:
4932           pic16 - function names probably have to differ in first X characters
4933           (gpasm limitation?)
4934         * support/regression/tests/staticinit.c:
4935           pic16 - excluded some tests due error: no target memory available for
4936           section ".idata"
4937
4938 2006-05-22 Borut Razem <borut.razem AT siol.net>
4939
4940         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
4941           second try. Thanks Stas Sergeev once more.
4942
4943 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
4944
4945         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
4946           (genLeftShift, genRightShift): fixed bug 1491627
4947         * src/hc08/peeph.def (rules 7, 8.x): added
4948         * support/regression/tests/shifts.c (ShiftLeftByParam,
4949           ShiftRightByParam, testShiftByParam): added to test variable shifting
4950
4951 2006-05-20 Raphael Neider <rneider AT web.de>
4952
4953         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
4954         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
4955           (allocReg): add only new registers to dynAllocRegs,
4956           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
4957             #1489055, #1445850, and probably #1483693
4958
4959 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
4960
4961         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
4962         bug in for-loop that didn't emit the last of CONFIG and ID registers
4963
4964 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
4965
4966         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
4967           with offset
4968         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
4969           1489016, 1434401 and 1490124
4970         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
4971           1489016, 1434401 and 1490124
4972
4973 2006-05-17 Borut Razem <borut.razem AT siol.net>
4974
4975         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
4976           thanks Stas Sergeev
4977
4978 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
4979
4980         * device/include/mcs51/P89c51RD2.h,
4981         * device/include/mcs51/P89LPC901.h,
4982         * device/include/mcs51/P89LPC922.h,
4983         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
4984
4985 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
4986
4987         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
4988         to fix missing stack pragma in compiled binary object file,
4989
4990 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
4991
4992         * support/packihx/configure.in,
4993         * support/packihx/configure: removed warning, autoconf >= 2.5x can
4994         determine sizeof basic types even while cross compiling
4995
4996 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
4997
4998         * src/avr/gen.c (aopop),
4999         * src/ds390/gen.c (aopOp),
5000         * src/hc08/gen.c (aopOp),
5001         * src/mcs51/gen.c (aopop),
5002         * src/pic16/gen.c (pic16_aopOp),
5003         * src/pic/gen.c (aopOp),
5004         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
5005         if size of operand is smaller than spill location
5006
5007 2006-05-12 Borut Razem <borut.razem AT siol.net>
5008
5009         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
5010           have to have CR/LF line endings even if they are checked out on *nix
5011           or on WIN32 in cygwin binmode
5012
5013 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
5014
5015         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
5016         * device/include/ds80c390.h: added sfr16 definitions
5017         * src/ds390/gen.c,
5018         * src/ds390/gen.h,
5019         * src/ds390/main.c,
5020         * src/ds390/ralloc.c,
5021         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
5022           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
5023           bit returning functions
5024         * support/regression/tests/sfr16.c: enabled test on ds390
5025
5026 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5027
5028         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
5029         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
5030
5031 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
5032
5033         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
5034         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
5035           (cl_address_space constructor): removed expensive initialization,
5036           (cl_address_space::get_cell): extended for late initialization,
5037           (cl_address_space::*): use late initialization,
5038           (cl_address_decoder::activate): removed expensive initialization,
5039           This reduced regression test running time by 25%
5040
5041 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
5042
5043         * packihx/,
5044         * configure.in,
5045         * configure,
5046         * sdcc.dsw,
5047         * Makefile.bcc,
5048         * Makefile.in,
5049         * support/packihx/Makefile.in,
5050         * support/packihx/clean.mk,
5051         * support/packihx/Makefile.bcc,
5052         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
5053
5054 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5055
5056         * src/SDCCval.c (valNot): fix for regression test failure
5057           of not.c on big endian hosts
5058
5059 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
5060
5061         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
5062
5063 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5064
5065         * device/lib/mcs51/Makefile.in: changed string comparison operator
5066           to = for POSIX compliance; == is bash extension
5067
5068 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
5069
5070         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
5071           kosmonaut_pirx
5072
5073 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
5074
5075         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
5076         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
5077         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
5078         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
5079         bug report #1478657,
5080
5081 2006-05-05 Borut Razem <borut.razem AT siol.net>
5082
5083         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
5084           making the html
5085
5086 2006-05-02 Borut Razem <borut.razem AT siol.net>
5087
5088         * doc/Makefile.in: removed *.ind dependency since there is no rule to
5089           create *.ind, which made make to fail if invoked with -j 2
5090
5091 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
5092
5093         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
5094           Hubert Sack for patch 1479782
5095
5096 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
5097
5098         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
5099
5100 2006-05-01 Raphael Neider <rneider AT web.de>
5101
5102         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
5103           (create_pic): store only prefix-free device name,
5104           (init_pic): check for device names with "16" prefix,
5105           (list_valid_pics),
5106         * src/pic/device.h (struct PIC_device),
5107         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
5108             stored device name,
5109         * device/include/pic/pic12f{635,675,629,683}.h,
5110         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
5111         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
5112         * device/include/pic/pic16f505.h,
5113         * device/lib/pic/libdev/pic16f505.c: removed
5114         * device/include/pic/pic14devices.txt: added support for pic12f
5115             devices, removed unsupported non 16-bit devices
5116             [above changes provided by patch from Zik Saleeba]
5117         * src/pic/*, src/pic16/*, device/include/pic16/*,
5118           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
5119
5120 2006-05-01 Borut Razem <borut.razem AT siol.net>
5121
5122         * configure.in, configure, doc/Makefile.in:
5123           sync with nightly build makefile - latex, dvipdf and dvips
5124           not needed any more
5125
5126 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
5127
5128         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
5129         in the library source
5130
5131 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
5132
5133         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
5134
5135 2006-04-28 Raphael Neider <rneider AT web.de>
5136
5137         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
5138         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
5139           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
5140         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
5141
5142 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
5143
5144         * device/lib/pic/libdev/Makefile.in,
5145         * device/lib/hc08/Makefile.in,
5146         * device/lib/gbz80/Makefile.in,
5147         * device/lib/z80/Makefile.in,
5148         * device/lib/ds390/Makefile.in,
5149         * device/lib/ds400/Makefile.in: added srcdir to include search path,
5150         thanks to Borut for the bug report
5151         * configure.in,
5152         * configure: always create doc/Makefile independent from --enable-doc
5153         * Makefile.in: always install from directory doc independent from
5154         --enable-doc
5155         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
5156         removed
5157         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
5158         * doc/Makefile.in: install *.txt if present
5159         * device/include/Makefile.in (install): added installation of pic/*.inc
5160         and pic/*.txt files again, they were erroneously removed
5161
5162 2006-04-28 Raphael Neider <rneider AT web.de>
5163
5164         * src/pic/{gen.c,main.h,pcode.c},
5165         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
5166             concerning signedness with casts
5167
5168 2006-04-28 Raphael Neider <rneider AT web.de>
5169
5170         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
5171             definition of an interrupt handler,
5172         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
5173             interrupt handler stuff from picglue() to separate routine,
5174           (picglue): enabled definition of intr handlers in files w/o main()
5175
5176 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5177
5178         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
5179           compilation with MSVC 2005 Express Edition (VC8)
5180
5181 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
5182
5183         * device/lib/Makefile: fixed build of gbz80 lib
5184
5185 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5186
5187         * support/regression/tests/bug-460010.c,
5188         * support/regression/tests/bug-524691.c,
5189         * support/regression/tests/bug-716242.c: removed conditional defines
5190           that are already in testfwk.h
5191
5192 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
5193
5194         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
5195           (AccAXRsh1): added, shift right by 1,
5196           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
5197            AccAXLrl1
5198         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
5199
5200 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
5201
5202         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
5203         remove cast to same type
5204         * src/SDCCast.c (decorateType): fix for RFE 1475742,
5205         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
5206         * as/z80/Makefile,
5207         * link/z80/Makefile: removed, they have moved to
5208         Makefile.in files
5209         * configure,
5210         * configure.in: replaced duplicate message about ucsim by missing sdcpp
5211         * install-sh: fix bug #1204398 by setting umask 0022
5212         * device/lib/Makefile: separate build of z80 and gbz80 lib
5213
5214 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
5215
5216         Enabled VPATH feature: changed nearly all Makefiles (149 files).
5217         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
5218
5219         One basic decision: e.g. src/clean.mk includes further files. In order
5220         to make this work there are two solutions:
5221         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
5222           run configure on them. This way they can use
5223           'include $(srcdir)/port-clean.mk'
5224         - always include clean.mk by the Makefile at the same level. To avoid
5225           that `make clean` tries to include and build Makefile.dep the
5226           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
5227           implemented, because now even `make uninstall` doesn't create
5228           Makefile.in. clean.mk could be eliminated by pasting it in
5229           Makefile.in.
5230
5231         * debugger/mcs51/Makefile.in: build own objects from library sources
5232         (SLIB, SDCC) in current directory
5233
5234         * configure, configure.in: renamed --disable-device-lib-build in
5235         --disable-device-lib; added --enable-doc, the required tools are
5236         searched by configure; added result message; the toolchain for the
5237         belonging ports are now only built, if the port is enabled.
5238
5239         * support/regression/*: all output is written in directory gen, because
5240         the fwk and ports directories don't livet in the build tree using vpath
5241
5242         * doc/sdccman.lyx: renamed --disable-device-lib-build to
5243         --disable-device-lib, added --enable-doc, added section VPATH
5244
5245         * sim/ucsim/configure.in,
5246         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
5247         z80 are enabled by default
5248
5249 2006-04-24 Raphael Neider <rneider AT web.de>
5250
5251         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
5252             to config word, "pic14_"-prefixed some extern functions
5253           (pic14_emitConfigWord): emit __config directive(s) if assignment to
5254             config word has been found
5255         * src/pic/device.h: added prototypes
5256         * src/pic/pcode.c: added "pic14_"-prefix where needed
5257         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
5258             fixup
5259         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
5260             words,
5261           (pic14emitRegularMap): ignore config words,
5262           (pic14createInterruptVect): moved generating __config directives away
5263           (picglue): have __config directives emitted
5264
5265 2006-04-24 Borut Razem <borut.razem AT siol.net>
5266
5267         * doc/Makefile: sync with nightly build makefile
5268
5269 2006-04-24 Raphael Neider <rneider AT web.de>
5270
5271         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
5272             registers that have not been assigned proper liveranges,
5273             fixes #1469504 and #1474602,
5274           (pCodeRegOptimizeRegUsage): fixed typo in comment
5275
5276 2006-04-24 Borut Razem <borut.razem AT siol.net>
5277
5278         * device/examples/main8051.c: deleted - it was removed from CVS
5279           24.mar.2000 and after that modified 18.feb.2001, so it reappered
5280           after the transition to Subversion
5281         * src/SDCCalloc.h: deleted - it was removed  from CVS
5282           3.feb.2001 and after that modified 18.feb.2001, so it reappered
5283           after the transition to Subversion
5284         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
5285           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
5286           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
5287           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
5288
5289 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
5290
5291         * as/asx8051.dsp: added mcs51/strcmpi.h
5292         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
5293         * as/hc08/aslink.h: updated lnksect prototype
5294         * as/hc08/asm.h,
5295         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
5296         * as/hc08/asmain.c,
5297         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
5298           (newdot): handle A_ABS
5299         * as/hc08/asout.c,
5300         * as/mcs51/asout.c (outarea): output address
5301         * as/hc08/lkaomf51.c,
5302         * as/mcs51/lkaomf51.c: disabled unused array UsageType
5303         * as/hc08/m08pst.c,
5304         * as/mcs51/i51pst.c,
5305         * as/z80/z80pst.c: "ABS" is not A_OVR
5306         * as/hc08/lkarea.c (newarea): read a_addr,
5307           (lnkarea): added codemap array, sort absolute areas to the front,
5308            combine all GSINITx/GSFINAL,
5309           (find_empty_space, allocate_space): new functions,
5310           (lnksect): return next address, handle absolute sections
5311         * as/mcs51/lkarea.c (newarea): read a_addr,
5312           lnksect2 prototype changed,
5313           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
5314           (find_empty_space, allocate_space): new, factored out of lnksect2,
5315           (lnksect2): return next address, handle absolute sections
5316         * as/hc08/lkhead.c,
5317         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
5318         * as/hc08/lklibr.c (addfile, fndsym),
5319         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
5320           index out of range and detect both '\' and '/'
5321         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
5322         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
5323           regression tests (ds390 cannot return bool yet)
5324         * doc/sdccman.lyx: changed version number, document changed --no-peep,
5325           document critical interrupts on z80, document changed SDCC define
5326         * src/asm.c (_asxxxx_mapping): fixed .org directive,
5327           (_a390_mapping): added .org directive
5328         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
5329           (genMultOneByte): fixed warnings
5330         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
5331           ones
5332         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
5333         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
5334           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
5335         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
5336         * src/pic16/main.c: removed newReg prototype
5337         * src/pic16/pcode.c,
5338         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
5339           warnings
5340         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
5341           ones
5342         * src/pic16/ralloc.c
5343         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
5344           to fix warnings
5345         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
5346           from short to PIC_OPTYPE
5347         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
5348         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
5349           optype from short to PIC_OPTYPE
5350         * src/port.h: made int_size unsigned to fix warnings
5351         * src/SDCC.y: fixed warning on MSVC
5352         * src/SDCCicode.c (getArraySizePtr): return unsigned int
5353         * src/SDCCopt.c (convertToFcall): fixed warnings
5354         * src/SDCCsymt.h: removed double prototype for genSymName
5355         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
5356           offset int to fix warnings
5357
5358 2006-04-22 Borut Razem <borut.razem AT siol.net>
5359
5360         * doc/sdccman.lyx, */Makefile, */Makefile.in:
5361           references to CVS replaced with Subversion
5362
5363 2006-04-21 Borut Razem <borut.razem AT siol.net>
5364
5365         * doc/sdccman.lyx, */Makefile, */Makefile.in:
5366           references to CVS replaced with Subversion
5367
5368 2006-04-19 Borut Razem <borut.razem AT siol.net>
5369
5370         * src/version.awk: adapted for svn
5371         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
5372           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
5373           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
5374           /binutils-avr/etc/*.vi, *.jin: removed all properties
5375           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
5376
5377 2006-04-19 Borut Razem <borut.razem AT siol.net>
5378
5379         * CVS to Subversion migration completed
5380
5381 2006-04-18 Borut Razem <borut.razem AT siol.net>
5382
5383         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
5384           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
5385
5386 2006-04-17 Borut Razem <borut.razem AT siol.net>
5387
5388         * device/include/Makefile.in: added pic/*.inc to the installation
5389
5390 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
5391
5392         * support/regression/collate-results.py: fixed output in case of
5393         a valdiag error
5394         * support/regression/generate-cases.py: fixed splitting of pathnames
5395         with dots
5396         * as/hc08/lklibr.c (addfile),
5397         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
5398
5399 2006-04-11 Raphael Neider <rneider AT web.de>
5400
5401         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
5402         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
5403         * src/pic16/pcode.c (assignValnums): fixed #1460578
5404
5405 2006-04-11 Raphael Neider <rneider AT web.de>
5406
5407         * device/lib/pic/libdev/*.c,
5408         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
5409           fixes #1468739, enables compilation in --std-c99 mode
5410         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
5411
5412 2006-04-11 Raphael Neider <rneider AT web.de>
5413
5414         * src/pic/device.c (find_device): removed debug output
5415           (list_valid_pics): enabled verbose listing of supported devices
5416         * device/include/stdbool.h: define bool as char for pic14/16 as well
5417
5418 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5419
5420         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
5421
5422 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5423
5424         * .version: bumped version to 2.5.6
5425         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
5426
5427 2006-04-06 Raphael Neider <rneider AT web.de>
5428
5429         * .version: bumped version to 2.5.6 (pic14 ABI changed)
5430         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
5431         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
5432           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
5433             pic14_constructAbsMap
5434           (pic14printPublics): declare absolute global symbols as global
5435           (pic14createInterruptVect),
5436         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
5437           (newReg): assume new registers unused, use correct name in
5438             hashtable (reg->name instead of name), more debugLog output
5439         * src/pic/device.h (PIC_device): added fields for verbose output
5440         * src/pic/device.c: moved device definition to pic14devices.txt,
5441             added routines for runtime parsing of pic14devices.txt,
5442             added support for second config word
5443         * src/pic/main.c (_process_pragma): removed #pragma maxram,
5444           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
5445           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
5446           (_pic14_parseOptions): moved pCodeInitRegisters here
5447           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
5448         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
5449           (pCodeInitRegisters): rewrapped comments, perpared new approach to
5450             handling the pseudo stack
5451         * device/lib/Makefile.in: ignore failures in objects-pic16,
5452         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
5453         * device/lib/pic/NEWS: document new dependency on picXXX.lib
5454         * device/lib/pic/Makefile.subdir,
5455         * device/lib/pic16/Makefile.subdir: improved clean rules
5456         * device/lib/pic/libdev/: NEW, pic14 device libraries
5457         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
5458         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
5459         * device/include/Makefile.in: create subdir and install pic14 headers
5460         * device/include/pic/p16f_common.inc: removed unused declarations
5461         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
5462             PICs from inc2h.pl v1.6,
5463             replaced BIT_AT macros with struct declarations
5464         * device/include/pic/pic14devices.txt: definition of supported devices,
5465             all above improvements contributed by Zik Saleeba, thanks
5466         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
5467         * support/scripts/sdcc.nsi: also install pic14 device libraries and
5468             headers
5469
5470 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
5471
5472         * device/include/mcs51/c8051f410.h: added interrupt numbers,
5473         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
5474           thanks to Charles Olds
5475
5476 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5477
5478         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
5479
5480 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
5481
5482         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
5483         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
5484         * support/regression/bug1464657.c: added, new test
5485
5486 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5487
5488         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
5489           version number
5490
5491 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5492
5493         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
5494           --no-peep and --peep-file <file> are used don't use default rules but
5495           do use the <file>
5496
5497 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5498
5499         * src/mcs51/gen.c (genCall): fixed bug 1457608
5500
5501 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5502
5503         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
5504         changes seem to cause (trigger?) problems with the build system.
5505
5506 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
5507
5508         * src/SDCCpeeph.c (operandsLiteral): new, added,
5509           (callFuncByName): inserted operandsLiteral
5510         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
5511
5512 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5513
5514         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
5515         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
5516
5517 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
5518
5519         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
5520           implemented patch 1120823 Thanks to Willy De la Court (normal
5521           interrupts need an interrupt number now if they are made critical),
5522           and enabled nesting of critical functions though not for gbz80
5523           (genCritical, genEndCritical): added functions
5524           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
5525         * src/z80/mappings.i: added "ei" to all mappings
5526
5527 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5528
5529         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
5530         submitted by the Debian SDCC maintainer Aurelien Jarno:
5531         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
5532         archive with gcc 4.1 on mips and wrote the patch"
5533
5534 2006-03-16 Raphael Neider <rneider AT web.de>
5535
5536         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
5537           the left operand is shorter than the result (c* = lit-c* + int),
5538           fixes bug #1450796
5539         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
5540           OP_SYMBOL
5541
5542 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
5543
5544         * src/.version: increased version number to 2.5.5
5545         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
5546         linking is done manually in pic16 port's _linkEdit,
5547         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
5548         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
5549         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
5550         allocate asmop as AOP_ACC,
5551         (aopForRemat): added parameter 'bool result' in function declaration,
5552         (pic16_aopGet): return AOP_ACC when accessing WREG,
5553         (pic16_popGetTempReg): minor modification,
5554         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
5555         'pic16_allocWithIdx',
5556         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
5557         calling function in absolute addresses,
5558         (genAssign): take into account AOP_ACC asmop,
5559         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
5560         * src/pic16/pcoderegs.c: some debug functions and lines added,
5561         * src/pic16/ralloc.c (decodeRegType): added but commented out,
5562         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
5563         register too,
5564         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
5565         call to allocReg, not by manually allocating a new one,
5566         (pic16_assignRegisters): now before going through the register
5567         allocating functions mark all registers as free. This eliminates some
5568         side effects resulting from peephole parser done earlier in the backbone
5569
5570 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
5571
5572         * src/SDCCicode.c (geniCodeLogic),
5573         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
5574
5575 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
5576
5577         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
5578           (genSend): bugfix, do not allocate and free twice,
5579           (shiftRLong): handle partially overlapping aops
5580         * support/regression/tests/bitopcse.c: fixed warning redefined idata
5581
5582 2006-03-08 Borut Razem <borut.razem AT siol.net>
5583
5584         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
5585           for pic16
5586
5587 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
5588
5589         * support/regression/tests/bug1409955.c: new, added
5590         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
5591         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
5592           (aopForSym, aopOp): increment asmop.allocated if reused,
5593           (freeAsmop): decrement asmop.allocated and check for zero instead of
5594           using asmop.freed,
5595           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
5596           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
5597            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
5598            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
5599            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
5600            genSignedRightShift, genRightShift, genDataPointerGet,
5601            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
5602            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
5603             in reverse order from allocation,
5604           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
5605             added swappedLR to keep track
5606         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
5607           pdata & code for GCC, z80, gbz80 & hc08
5608         * support/regression/tests/zeropad.c: moved defines to testfwk.h
5609
5610 2006-03-08 Raphael Neider <rneider AT web.de>
5611
5612         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
5613
5614 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
5615
5616         * device/include/mcs51/c8051f410.h: new SiLabs mcu
5617         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
5618         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
5619
5620 2006-03-06 Borut Razem <borut.razem AT siol.net>
5621
5622         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
5623           made the linker quiet
5624
5625 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
5626
5627         * src/pic16/gen.c (genPcall): fixed bug #1443644
5628         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
5629         which dumps before the function entry point a data byte which represents
5630         the number of the local variables used by the specified function, added
5631         'xinst' for initial support for Extended Instruction Support,
5632         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
5633         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
5634         port->fun_prefix anymore (may change later),
5635         (genFunction, genEndFunction): do not store/restore local registers for
5636         _main (this should take care the --main-return command line option in
5637         the future),
5638         (genOr): removed some legacy pic-port instructions,
5639         * src/pic16/genarith.c (genAddLit): re-enabled old code because
5640         performing operations with SFR's causes data to be written more than
5641         once to each SFR. Perhaps SFRs should be handled in special cases...
5642         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
5643         pcode.h
5644         * src/pic16/main.c (_process_pragma): stack bound checking did not take
5645         into account for stack starting position,
5646         (struct OPTIONS pic16_optionsTable): added command line argument
5647         --extended or -y for Extended Instruction Support,
5648         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
5649         (deassignLRs): *** perhaps the most important change, old 'for' code
5650         (commented out for reference), didn't account for some registers which
5651         were left marked 'not free' after a pointer operation. The change
5652         reduces register usage a lot in some cases
5653
5654 2006-03-04 Borut Razem <borut.razem AT siol.net>
5655
5656         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
5657           _clean
5658         * support/regression/tests/bug-524697.c: decreased array size for
5659           mcs51 to fit into the internal RAM
5660         * support/regression/Makefile.in: a little bit more verbose
5661
5662 2006-03-03 Borut Razem <borut.razem AT siol.net>
5663
5664         * support/regression/fwk/lib/testfwk.c,
5665           support/regression/fwk/include/testfwk.h: introduced function
5666           _prints(), nonrecursive _printn(), call _initEmu() from main()
5667         * support/regression/ports/gbz80/support.asm,
5668           support/regression/ports/ucz80/support.asm,
5669           support/regression/ports/z80/support.asm,
5670           support/regression/ports/ds390/support.c,
5671           support/regression/ports/hc08/support.c,
5672           support/regression/ports/host/support.c,
5673           support/regression/ports/mcs51/support.c,
5674           support/regression/ports/xa51/support.c: added empty _initEmu()
5675           function
5676         * support/regression/ports/pic16/gpsim.cmd,
5677           support/regression/ports/pic16/spec.mk,
5678           support/regression/ports/pic16/support.c,
5679           support/regression/Makefile.in: added pic16 regression test
5680
5681 2006-03-01 Raphael Neider <rneider AT web.de>
5682
5683         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
5684           genConstPointerGet): use safe way of generating MOVFF to cover
5685             literals as well as registers, fixes bug #1440527
5686         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
5687             dereference
5688           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
5689             more correctly, fixes bug #1232186
5690           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
5691         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
5692             gplink guess the correct processor in more cases, applied patch
5693             from Till Riedel attached to and fixing bug #1436552
5694
5695 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5696
5697         * support/regression/tests/array.c: added, contains check for #1434401
5698         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
5699
5700 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
5701
5702         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
5703         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
5704         * device/include/mcs51/c8051f326.h,
5705         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
5706         * device/include/mcs51/c8051f000.h,
5707         * device/include/mcs51/c8051f018.h,
5708         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
5709           PCON_IDLE,PCON_STOP and added sfr16 definitions
5710
5711 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
5712
5713         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
5714           genGetWord): fixed bug 1409955
5715
5716 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
5717
5718         * device/include/hc08/mc68hc908gp32.h,
5719         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
5720
5721 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
5722
5723         * src/SDCCast.c (constExprValue): return NULL if not a value
5724         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
5725         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
5726         * support/regression/tests/bitfields.c: enabled signed bitfield for all
5727
5728 2006-02-13 Borut Razem <borut.razem AT siol.net>
5729
5730         * src/regression/ptrarg.c: added, fails due to bug #1430967
5731         * src/regression/Makefile: ptrarg.c added, ...
5732
5733 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
5734
5735         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
5736         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
5737
5738 2006-02-11 Borut Razem <borut.razem AT siol.net>
5739
5740         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
5741           print "Processor: xxx" message to stdout only if --verbose
5742
5743 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
5744
5745         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
5746         * support/regression/tests/bug1426356.c: added
5747         * support/regression/tests/bitfields.c: removed 2 tests
5748
5749 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
5750
5751         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
5752         * device/include/mcs51/c8051f330.h,
5753         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
5754           PCON_IDLE,PCON_STOP and added sfr16 definitions
5755         * device/lib/_divsint.c,
5756         * device/lib/_divuint.c,
5757         * device/lib/_divulong.c,
5758         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
5759           register bank bug for small stackauto
5760
5761 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
5762
5763         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
5764
5765 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
5766
5767         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
5768         * all.dsp: corrected several bin paths
5769         * device/include/mcs51/c8051f120.h,
5770         * device/include/mcs51/c8051f300.h,
5771         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
5772           to PCON_IDLE,PCON_STOP
5773         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
5774         * device/lib/printf_large.c (output_float): fixed bug 1388703
5775         * support/regression/tests/bug1057979.c: added test for bug 1388703
5776
5777 2006-02-08 Raphael Neider <rneider AT web.de>
5778
5779         * src/pic/pcode.c (pciTRIS): fixed typo,
5780           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
5781           (LinkFlow): fixed handling of flows that end in a call,
5782           (ReuseReg): perform safety check earlier
5783         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
5784             to work with flows at the beginning of a pBlock,
5785             fixes #1426557 (Symbol not previously defined),
5786           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
5787             usage information
5788           (RemoveUnusedRegisters): update register usage info
5789         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
5790             created, reuse existing ones instead
5791         * src/pic/gen.c (genPcall): fixed #1424719
5792
5793 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
5794
5795         * link/z80/lkmain.c,
5796         * link/z80/lklex.c,
5797         * link/z80/lkdata.c,
5798         * link/z80/aslink.h: fixed build on current cygwin:
5799         replaced getline() by lk_getline()
5800
5801 2006-02-01 Borut Razem <borut.razem AT siol.net>
5802
5803         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
5804           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
5805           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
5806           src/regression/bool1.c, src/regression/bool2.c,
5807           src/regression/bool3.c, src/regression/call1.c,
5808           src/regression/compare.c, src/regression/compare10.c,
5809           src/regression/compare2.c, src/regression/compare3.c,
5810           src/regression/compare4.c, src/regression/compare5.c,
5811           src/regression/compare6.c, src/regression/compare7.c,
5812           src/regression/compare8.c, src/regression/compare9.c,
5813           src/regression/configword.c, src/regression/for.c,
5814           src/regression/inline.c, src/regression/mult1.c,
5815           src/regression/nestfor.c, src/regression/or1.c,
5816           src/regression/pointer1.c, src/regression/ptrfunc.c,
5817           src/regression/rotate1.c, src/regression/rotate2.c,
5818           src/regression/rotate3.c, src/regression/rotate4.c,
5819           src/regression/rotate5.c, src/regression/rotate6.c,
5820           src/regression/rotate7.c, src/regression/string1.c,
5821           src/regression/struct1.c, src/regression/sub.c,
5822           src/regression/sub2.c, src/regression/switch1.c,
5823           src/regression/while.c, src/regression/xor.c,
5824           src/regression/create_stc, src/regression/simulate,
5825           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
5826           regression tests
5827         * src/regression/gpsim_assert.h: added
5828
5829 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
5830
5831         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
5832         ((void (code *) (void)) 0) ();
5833         * as/hc08/aslex.c,
5834         * as/hc08/aslink.h,
5835         * as/hc08/asm.h,
5836         * as/hc08/asmain.c,
5837         * as/hc08/lkdata.c,
5838         * as/hc08/lklex.c,
5839         * as/hc08/lkmain.c,
5840         * as/mcs51/aslex.c,
5841         * as/mcs51/aslink.h,
5842         * as/mcs51/asm.h,
5843         * as/mcs51/asmain.c,
5844         * as/mcs51/lkdata.c,
5845         * as/mcs51/lklex.c,
5846         * as/mcs51/lkmain.c,
5847         * as/z80/aslex.c,
5848         * as/z80/asm.h,
5849         * as/z80/asmain.c: fixed build on current cygwin:
5850         replaced getline() by as_getline()
5851
5852 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
5853
5854         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
5855         declarator in the symbol chain
5856         * src/SDCCsymt.h,
5857         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
5858         parameter list for function pointers
5859         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
5860         * support/regression/tests/bug-716242.c: added
5861
5862 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
5863
5864         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
5865         offset if possible
5866         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
5867
5868 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
5869
5870         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
5871         inifinitely recurseable, added static
5872         * support/regression/tests/bug-1408066.c: added
5873
5874 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
5875
5876         * src/SDCCicode.h,
5877         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
5878         renamed, added possibility to create "postLoopLbl"-labels
5879         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
5880         newiTempLoopHeaderLabel
5881         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
5882         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
5883         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
5884         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
5885         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
5886         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
5887         (basicInduction): fixed bug #136564, made static,
5888         (loopInduction): changed parameter of basicInduction, made static,
5889         (addPostLoopBlock): added
5890         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
5891         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
5892         findLoopEndSeq
5893         * support/regression/tests/bug-136564.c: added
5894         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
5895         --std-sdcc99 to LIBSDCCFLAGS
5896
5897 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
5898
5899         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
5900         while loop
5901         * support/regression/tests/bug-1406131.c: added
5902
5903 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
5904
5905         * src/SDCCast.c (decorateType): fix promotion of unary minus
5906         * src/SDCCsymt.c (computeType): beautified
5907         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
5908         (valUnaryPM, valComplement): fix sign and promotion,
5909         (valNot): ANSI: result type is int (SDCC: unsigned char)
5910         * support/regression/tests/uminus.c: speedup by removing superflous
5911         test case 'int'
5912         * support/regression/tests/onebyte.c: added promotion and signedness
5913         tests for unary minus
5914         * support/regressions/tests/bug-477927.c: disable warning about
5915         uninitialized variables
5916         * support/regression/tests/not.c: added
5917
5918 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
5919
5920         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
5921         * src/mcs51/gen.c (gen51Code): show final register usage after
5922         fillGaps in asm with --i-code-in-asm
5923         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
5924         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
5925         incUsed, rliveClear, adjustIChain): made static,
5926         (setFromRange): excluded because it's unused,
5927         (findPrevUseSym, markWholeLoop): added,
5928         (findPrevUse): rewritten; fixes bug 895992; now a complete search
5929         through all branches of predecessors enables sdcc to emit the warning
5930         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
5931         (rlivePoint): made static, added parameter emitWarnings which is only
5932         true during the first run out of two,
5933         (findRecursiveSucc, findRecursivePred): removed,
5934         (computeLiveRanges): made static, added parameter emitWarnings,
5935         (dumpIcRlive): added for debugging only
5936         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
5937         removed prototype of setFromRange()
5938         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
5939         in call of computeLiveRanges()
5940         * support/regression/tests/bug-895992.c: added
5941         * support/regression/tests/bug-971834.c: added
5942         * support/valdiag/tests/bug-895992.c: added
5943         * support/valdiag/tests/bug-971834.c: added
5944
5945 2005-12-18 Raphael Neider <rneider AT web.de>
5946
5947         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
5948           (genUnpackBits): improved code for direct operands,
5949           (genPackBits): improved code for literal assignment to bitfields
5950             and for direct destination operands (no FSR indirection),
5951             prevented redundant AND, fixes #1362800,
5952           (AccLsh): added parameter to disable masking of the result
5953         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
5954           skip instructions with side-effects (like incfsz),
5955           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
5956         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
5957         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
5958           fixes #1375263
5959
5960 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
5961
5962         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
5963         volatile variables as spill location
5964
5965 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
5966
5967         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
5968         replacing literals
5969         * support/regression/tests/bug-1376320.c: added
5970
5971 2005-12-08 Raphael Neider <rneider AT web.de>
5972
5973         * src/pic/device.c: renamed is_shared to pic14_is_shared
5974         * src/pic/gen.c (genIfx): re-enabled handling of sbits
5975         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
5976           (is_valid_identifier): added for above workaround
5977
5978 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
5979
5980         * device/lib/Makefile.in: fixed to enable port-specific-objects
5981         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
5982           char, thanks Hubert Sack
5983         * doc/sdccman.lyx: documented --xstack-loc,
5984           elaborated a bit more on interrupts and pitfalls,
5985           removed "setjmp/longjmp unsupported",
5986           documented some unsupported C99 features
5987         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
5988         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
5989           if, thanks Hubert Sack
5990         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
5991         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
5992           make make_library
5993         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
5994           regression tests can report resource usage (rfe 700441)
5995         * support/regression/collate-results.py: report resource usage
5996         * support/regression/ports/ds390/spec.mk,
5997         * support/regression/ports/hc08/spec.mk,
5998         * support/regression/ports/mcs51/spec.mk,
5999         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
6000         * support/regression/ports/ds390/uCsim.cmd,
6001         * support/regression/ports/hc08/uCsim.cmd,
6002         * support/regression/ports/mcs51/uCsim.cmd,
6003         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
6004         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
6005           library, use the default one
6006         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
6007           building the library
6008
6009 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
6010
6011         * config.dsp: added dependency on .version and configure_vc.awk
6012         * device/include/setjmp.h: updated for --stack-auto and --xstack
6013         * device/include/mcs51/at89c51snd1c.h: corrected line endings
6014         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
6015         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
6016         * device/lib/libsdcc.lib: added _setjmp
6017         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
6018           (decorateType): fixed bug 1372851,
6019           (optimizeGetHbit): fixed warning
6020         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
6021           array initialisation
6022         * support/regression/tests/bug1057979.c: added test for bug 1358192
6023         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
6024
6025 2005-12-03 Borut Razem <borut.razem AT siol.net>
6026
6027         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
6028           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
6029
6030 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
6031
6032         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
6033         createIval): implement symbol independant "flexible array member",
6034         (createIvalCharPtr): implemented flexible array initialisation with a
6035         string
6036         * src/SDCCsymt.c (copyStruct): removed,
6037         (getSize): fixed misleading comment,
6038         (getAllocSize): removed, the additional allocation size is now in
6039         sym->flexArrayLength,
6040         (checkStructFlexArray): new, syntax checks for flexible array members,
6041         (compStructSize): added syntax checks for "flexible array members"
6042         (copyStruct): removed,
6043         (copyLinkChain): removed inefficient fix for bug 770487
6044         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
6045         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
6046         symbol->flexArrayLength
6047         * src/SDCCerr.c,
6048         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
6049         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
6050         * support/regression/tests/structflexarray.c: added
6051         * support/valdiag/tests/structflexiblearray.c: added
6052
6053 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
6054
6055         * src/SDCCast.c (decorateType): fixed bug 1368489
6056         * support/Util/SDCCerr.c,
6057         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
6058
6059 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6060
6061         * device/include/mcs51/at89c51snd1c.h: added file submitted by
6062           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
6063
6064 2005-11-27 Borut Razem <borut.razem AT siol.net>
6065
6066         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
6067           support/cpp2/mkdeps.h: added command line option
6068           -obj-ext=<extension> to SDCPP to define object file externion, used
6069           for generation of make dependencies (-M)
6070         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
6071
6072 2005-11-26 Borut Razem <borut.razem AT siol.net>
6073
6074         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
6075           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
6076           added pic and pic16 libraries
6077
6078 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6079
6080         * device/include/float.h: Corrected typo in prototype of __fsgt
6081
6082 2005-11-25 Borut Razem <borut.razem AT siol.net>
6083
6084         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
6085           added creation of model-mcs51-stack-auto libraries
6086
6087 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
6088
6089         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
6090         and fields-list too
6091         * src/SDCCast.c (createIvalArray): removed obsolete comment
6092
6093 2005-11-24 Borut Razem <borut.razem AT siol.net>
6094
6095         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
6096           added missing device/lib/mcs51/crt*.asm sources
6097
6098 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
6099
6100         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
6101
6102 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
6103
6104         * device/lib/_fs2schar.c,
6105         * device/lib/_fs2sint.c,
6106         * device/lib/_fs2slong.c: optimized inline asm
6107
6108 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6109
6110         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
6111           Better handling of floats between -1.0 and 0.0.
6112
6113 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6114
6115         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
6116           (the missing "if"s prohibited removal of redundant labels)
6117
6118 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6119
6120         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
6121           Properly convert floats between -1.0 and 0.0 to long, int, and char
6122           types (max integer value of negative floats tends to zero).
6123         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
6124           Removed changes made so to work properly with floats between
6125           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
6126           and _fs2char.c
6127
6128 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
6129
6130         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
6131         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
6132         (genCast) cosmetic change
6133         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
6134         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
6135         from mcs51
6136         * support/regression/tests/bitfields (testSignedBitfields): added
6137
6138 2005-11-18 Borut Razem <borut.razem AT siol.net>
6139
6140         * sdcc/device/lib/Makefile.in: remove all unnecessary files
6141         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
6142           introduced SILENT option to make building of pic16 libraries less
6143
6144 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6145
6146         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
6147           Now they work properly with floats between -1.0 and 0.0
6148         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
6149
6150 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
6151
6152         * src/SDCCicode.c (printOperand): added missing else
6153
6154 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
6155
6156         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
6157         reformatted for better readability
6158         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
6159         signed bitfields
6160
6161 2005-11-17 Borut Razem <borut.razem AT siol.net>
6162
6163         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
6164           introduced SILENT option to make building of pic16 libraries less
6165           verbose - used for nightly snapshot build
6166         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
6167           available on Win32 platforms.
6168         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
6169           medium, large, pic and pic16
6170
6171 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6172
6173         * device/lib/printf_large.c: Temporary patch for bug 1358192:
6174           printf("%f"...) sets fraction to zero.
6175
6176 2005-11-16 Raphael Neider <rneider AT web.de>
6177
6178         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
6179           fixes #1357221
6180         * src/pic/gen.c (genIfx): implemented for CARRY bit
6181         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
6182           to generic pointers, fixes #1357332,
6183           (pic16_movLit2f): NEW,
6184           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
6185
6186 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
6187
6188         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
6189
6190 2005-11-11 Raphael Neider <rneider AT web.de>
6191
6192         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
6193         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
6194           compute pointer's type from operand,
6195           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
6196           improved single bit reads, fixes bug #1353379
6197
6198 2005-11-09 Borut Razem <borut.razem AT siol.net>
6199
6200         * support/scripts/sdcc.nsi: added lib/pic to the package
6201
6202 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
6203
6204         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
6205
6206 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
6207
6208         * support/regression/tests/bug1348008.c: added
6209         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
6210         * support/regression/tests/bug1337835.c: updated comment
6211
6212 2005-11-06 Borut Razem <borut.razem AT siol.net>
6213
6214         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
6215           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
6216           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
6217           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
6218           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
6219           dynamic construction of cl_error_class and derivates - 2.nd try
6220
6221 2005-11-05 Borut Razem <borut.razem AT siol.net>
6222
6223         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
6224           bug, which caused Bus Errors on sparc solaris
6225
6226 2005-11-04 Borut Razem <borut.razem AT siol.net>
6227
6228         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
6229           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
6230           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
6231           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
6232           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
6233           and derivates to resolve the initialization problem on OSX
6234
6235 2005-11-02 Borut Razem <borut.razem AT siol.net>
6236
6237         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
6238           corrected typo - #include <winsock2.h>
6239
6240 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
6241
6242         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
6243           (_asxxxx_mapping): added org directive for future enhancements
6244
6245 2005-11-01 Borut Razem <borut.razem AT siol.net>
6246
6247         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
6248           enabled sockets on WIN32
6249         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
6250
6251 2005-10-31 Borut Razem <borut.razem AT siol.net>
6252
6253         * support/regression/generate-cases.py: escape backslashes in {testcase}:
6254           WIN32 backslash path delimiters should be escaped when used in C strings
6255         * support/regression/tests/bitfields.c: exclude failing assertions for
6256           __CYGWIN32__ and __MINGW32__ hosts
6257
6258 2005-10-30 Borut Razem <borut.razem AT siol.net>
6259
6260         * src/SDCCutil.c: corrected double comparison typo
6261
6262 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
6263
6264         * device/lib/medium/Makefile: added for new memory model medium
6265         * device/include/asm/mcs51/features.h: updated for medium/pdata
6266         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
6267           added Multiply & Accumulate sbit's and MAC0_PAGE define
6268         * device/include/mcs51/c8051f300.h: added sfr16 definitions
6269         * device/include/mcs51/c8051f310.h: added sfr16 definitions
6270         * device/lib/_mullong.c: update for medium model
6271         * device/lib/incl.mk: added medium model
6272         * doc/sdccman.lyx: documented medium model
6273         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
6274         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
6275         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
6276         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
6277           (allocParms): set SCLS and OCLS to pdata for medium model
6278         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
6279           for pdata,
6280           (powof2): return <0 if not power of 2
6281         * src/avr/gen.c (genBitWise): use updated powof2
6282         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
6283           (shiftR2Left2Result): small optimization in setup, save acc when storing,
6284           (shiftLLeftOrResult): use B if necessary
6285         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
6286         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
6287         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
6288         * support/regression/Makefile.in: added test-mcs51-medium
6289         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
6290
6291 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
6292
6293         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
6294         specifier unsigned
6295         * device/lib/time.c (mktime): fixed bug 1334315
6296
6297 2005-10-28 Raphael Neider <rneider AT web.de>
6298
6299         * device/include/pic/p16f_common.inc: added common declarations
6300         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
6301
6302 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
6303
6304         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
6305           (aopPutUsesAcc): added to predict accumulator use,
6306           (assignResultValue): save acc if necessary,
6307           (genMinusDec): store result if indirectly addressed,
6308           (genDivOneByte):  save acc if necessary,
6309           (movLeft2Result): bugfix if left already in acc,
6310           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
6311             attention to accumulator use (esp. pdata),
6312           (genReceive): receive pdata correctly
6313         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
6314         * src/SDCCicode.h: added isOperandInPagedSpace prototype
6315
6316 2005-10-27 Raphael Neider <rneider AT web.de>
6317
6318         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
6319
6320 2005-10-27 Raphael Neider <rneider AT web.de>
6321
6322         * .version: changed version to 2.5.4
6323         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
6324         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
6325           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
6326             arithmetics support routines
6327         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
6328         * device/lib/Makefile.in: also create installdir for pic
6329
6330         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
6331           pic14 port as well
6332         * src/pic/device.c (dump_sfr): rewritten to delegate register
6333           placement to the linker (use `extern sym' rather than sym EQU addr),
6334           (validAddress): fixed to check last specified address
6335         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
6336           (popGetLit): truncate literal value to 8 bit,
6337           (popGet): moved assert to more appropriate place
6338           (popGetExternal): create pCode operand from and mark the according
6339             symbol as being `extern'
6340           (popGetAddr): added sanity check on immediate's offset, provide
6341             GPOINTER tag on demand
6342           (aopPut): fixed for immediates,
6343           (mov2w_op): move operand's address or contents to WREG (depending on
6344             operand type), safer variant of mov2w,
6345           (movwf,call_libraryfunc): NEW, handy abbreviations,
6346           (get_argument_pcop,get_return_val_pcop,pass_argument,
6347           get_returnvalue): interface for accessing function parameters and
6348             return values,
6349           (assignResultValuei,genRet): use new parameter/return value interface
6350           (pic14_getDataSize): back to old version handling generic pointers,
6351           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
6352             provided implementation and/or fixed old one,
6353           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
6354             calls, removed legacy 8051 reference code
6355           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
6356           (loadSignToC): NEW, move the operands sign bit to CARRY,
6357           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
6358             genRightShiftSigned, accepts negative shift counts,
6359           (setup_fsr): load FSR and adjust IRP (indirect memory access),
6360           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
6361             generic pointers, __data pointers and __code pointers,
6362           (genUnpackBits,genPackBits): rewritten to work with generic pointers
6363             and signed bitfields, limit bitfields to 8 bit,
6364           (genDataPointerGet): fixed number of bytes read,
6365           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
6366           (genPointerGet,genPointerSet): fixed handling of __code pointers,
6367             pointers to constant data are no longer assumed to point to __code
6368             space, removed invalid pointer types,
6369           (bitpatternFromVal): retrieve the PICs representation of an integer
6370             or float literal,
6371           (genDataPointerSet): fixed assigning to po_immediate operands,
6372           (genGenPointerSet): implemented as library call,
6373           (genIfx): fixed incorrect condition,
6374           (genAddrOf): limit generic pointers' addresses to 2 bytes,
6375             provide GPOINTER tag according to destination's storage class,
6376           (genCast): added code to handle casting to generic pointers, added
6377             sign-/zero extension of the result
6378           (aop_isLitLike,op_isLitLike): fixed handling of immediates
6379         * src/pic/gen.h: added macros to access IRP bit in STATUS register
6380         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
6381           extend the result
6382         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
6383           address/register resides in the shared banks
6384           (emitSymbolToFile): improved to handle global and `pinned' symbols,
6385             put all variables into separate sections (have the linker arrange
6386             them)
6387           (picglue): put init code and interrupt handlers in separate sections
6388         * src/pic/main.c: added port specific options table, modified to PORT
6389           structure to make GPOINTERs 3 byte, added pic14_options
6390           (_pic14_do_link): private linking routine (update paths to libraries,
6391             add libsdcc.lib by default)
6392         * src/pic/main.h: declare pic14_options
6393         * src/pic/pcode.c: fixed instructions i/o relations,
6394           (RegCond): reverted to correct version,
6395           (newpCodeOpLit): truncate literals to 8 bit,
6396           (genericPrint): added debug output,
6397           (getRegFromInstruction): fixed for various operand types, simplified
6398           (BuildFlow): fixed broken handling of isntructions with labels
6399           (LinkFlow): start at last instruction in flow (skip trailing comments),
6400             pass the flow on to the next instruction after CALL
6401           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
6402           (insertPCodeInstruction): fixed inserting after a skip instruction,
6403           (DoBankSelect): fixed for labeled instructions
6404           (OptimizepBlock): honor --nopeep switch
6405           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
6406         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
6407         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
6408           (pCodeOptime2pCodes): allow disabling this optimization via
6409             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
6410             but is still buggy), started implementation of a dataflow based
6411             pCode optimization (CSE + dead code elimination)
6412           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
6413         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
6414           names are independant of the stack location and therefore portable across
6415           devices
6416
6417 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
6418
6419         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
6420           (selectSpil): fixed bug 1337835 by not spilling bit variables
6421         * support/regression/tests/bug1337835.c: added test for this bug
6422         * src/mcs51/peeph.def: restart after rule 3.c,
6423           addded rules 263.x to optimize loading constants
6424
6425 2005-10-26 Raphael Neider <rneider AT web.de>
6426
6427         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
6428         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
6429           (genAssign): emit warning when casting literals to generic pointer
6430             type, also applies when taking the address of a fixed variable,
6431           (genCast): improved casting to generic pointers
6432         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
6433           extern variables, added verbose error message
6434         * device/include/pic16/{string.h,errno.h}: added #pragma library c
6435
6436 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
6437
6438         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
6439         carry must be complemented too
6440         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
6441         could be emitted by genMinus
6442         * src/SDCCval.c (constVal): fixed bug 1305065
6443
6444 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
6445
6446         * src/SDCCast.c (addCast): added promotion for bit variables
6447         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
6448         promotion casts + optimisation
6449         (optimizeGetWord): fix warning 'i' might be used uninitialized
6450         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
6451         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
6452
6453 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
6454
6455         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
6456         all chars are promoted to int; promotion should be handled in SDCCast.c
6457
6458 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6459
6460         * device/lib/_strcmp.c: Fixed bug 1326457
6461
6462 2005-10-11 Raphael Neider <rneider AT web.de>
6463
6464         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
6465         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
6466
6467 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
6468
6469         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
6470         * support/regression/tests/sfr16.c: added test for the sfr32 bug
6471
6472 2005-10-04 Raphael Neider <rneider AT web.de>
6473
6474         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
6475           device/lib/pic16/pics.all: added pic18f1320
6476         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
6477
6478 2005-09-30 Raphael Neider <rneider AT web.de>
6479
6480         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
6481         * src/pic16/devices.inc: NEW, provides device descriptions
6482         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
6483
6484 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
6485
6486         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
6487           GETHBIT
6488
6489 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
6490
6491         * doc/sdccman.lyx: updated Highest Order Bit documentation,
6492           documented Any Order Bit, Higher Order Byte and Higher Order Word
6493         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
6494         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
6495           (optimizeGetAbit): new, to get any bit, not only the high bit,
6496           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
6497           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
6498           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
6499           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
6500             RIGHT_OP: also try GETBYTE, GETWORD optimization,
6501             GETABIT, GETBYTE, GETWORD: decorate them,
6502           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
6503           (ast_print): added GETABIT, GETBYTE, GETWORD
6504         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
6505         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
6506           (geniCodeBinary): new generic binary icode,
6507           (ast2iCode): added GETABIT, GETBYTE, GETWORD
6508         * src/port.h: updated comment for PORT.hasExtBitOp
6509         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
6510           (genGetByte): new, to get a single byte,
6511           (genGetWord): new, to get a word from a long,
6512           (gen51Code): added GETABIT, GETBYTE, GETWORD
6513         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
6514
6515 2005-09-23 Raphael Neider <rneider AT web.de>
6516
6517         * configure.in, configure: have device/lib/pic configured
6518         * device/lib/Makefile.in: added model-pic14
6519         * device/lib/clean.mk: added pic/ to clean rule
6520         * device/lib/pic: added rudimentary pic14 library providing support
6521           functions for multiplication/division/generic pointer access
6522         * src/SDCCopt.c (convilong): mark support functions as extern
6523           for pic14 port as well
6524         * src/pic/gen.c (genMult): added assertions,
6525           (genpic14Code): emit warning on unhandled iCodes
6526         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
6527         * src/pic/pcode.c (pCodeOpCopy),
6528         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
6529           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
6530           SFR_REGISTER}), made safe for future extensions
6531         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
6532           instructions even if preceeded by SKIP instructions (also remove
6533           them); removed unused code
6534         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
6535           prevents leaving parts of the structure uninitialized after copying
6536
6537 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
6538
6539         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
6540           ago by me
6541         * support/regression/tests/addsub.c: added test for the bug
6542
6543 2005-09-21 Raphael Neider <rneider AT web.de>
6544
6545         * device/include/pic16/pic18f1220.h,
6546           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
6547         * device/lib/pic16/Makefile.rules: added missing opening paren
6548         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
6549           are provided in genutils.c,
6550           (genUminusFloat,genUminus,genCmpEq): added asserts on different
6551           operand/result sizes,
6552           (genCmp): assert on NULL pointers first, then check deref'ed values
6553         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
6554           result size
6555
6556 2005-09-18 Raphael Neider <rneider AT web.de>
6557
6558         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
6559           as these are now unused,
6560           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
6561         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
6562           local, avoids uninitialized pointer dereference on r->name
6563         * src/pic16/ralloc.c (newReg): fixed indentation
6564
6565 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
6566
6567         * src/SDCCval.c (constVal): fixed bug 730366
6568         * support/Util/SDCCerr.c,
6569         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
6570
6571 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
6572
6573         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
6574
6575 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
6576
6577         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
6578
6579 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
6580
6581         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
6582           (hex2dec): made hex_digit unsigned char, removed ascii dependance
6583         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
6584           (hex2dec): made hex_digit unsigned char, removed ascii dependance
6585         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
6586         * packihx/packihx.c (hexDigit): made c unsigned char
6587         * as/mcs51/lklibr.c (fndsym),
6588         * link/z80/lkgb.c (gb),
6589         * link/z80/lklibr.c (fndsym),
6590         * link/z80/lkrloc.c (relr),
6591         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
6592         * src/SDCC.lex (checkCurrFile, process_pragma),
6593         * src/SDCCglue.c (spacesToUnderscores),
6594         * src/SDCCmain.c (setParseWithComma, processFile),
6595         * src/asm.c (tvsprintf, printCLine),
6596         * src/avr/gen.c (emitcode, aopPut),
6597         * src/ds390/gen.c (emitcode),
6598         * src/hc08/gen.c (emitcode, emitinline),
6599         * src/mcs51/gen.c (emitcode, genInline),
6600         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
6601           tokenizeLineNode),
6602         * src/pic/ralloc.c (debugLog),
6603         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
6604           tokenizeLineNode),
6605         * src/pic16/ralloc.c (debugLog),
6606         * src/z80/main.c (_process_pragma):
6607            made all ctype.h function calls safe
6608         * src/SDCCopt.c: include math.h for fabs
6609         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
6610           and used them throughout the code to make ctype.h function calls safe
6611         * src/ds390/main.c (asmLineNodeFromLineNode),
6612         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
6613         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
6614            unsigned char*
6615         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
6616           (newpCodeAsmDir): made ctype.h function calls safe
6617         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
6618           pic16_emitcode):  made lbp unsigned char*
6619         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
6620           (pic16_newpCodeAsmDir): made ctype.h function calls safe
6621         * src/xa51/gen.c (emitcode),
6622         * src/z80/gen.c (_emit2): made lbp unsigned char*
6623         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
6624            char*
6625
6626 2005-09-05 Raphael Neider <rneider AT web.de>
6627
6628         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
6629           access bank splitpoint
6630
6631 2005-09-05 Raphael Neider <rneider AT web.de>
6632
6633         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
6634
6635 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
6636
6637         * .version: changed to version 2.5.3
6638         * doc/sdccman.lyx: changed version to 2.5.3,
6639           documented --codeseg and --constseg and pragma codeseg and constseg,
6640           documented bit parameters (reentrant) and bit returning
6641         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
6642            currFunc->recvSize, but is this ok for all ports?
6643           (ast2iCode): result of ~ on unsigned char must be cast to int for
6644            bool to work
6645         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
6646           function pointers in bit space
6647         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
6648           (processFuncArgs): call port.reg_parm() with reentrancy info
6649         * src/port.h,
6650         * src/avr/main.c,
6651         * src/ds390/main.c,
6652         * src/hc08/main.c,
6653         * src/pic/main.c,
6654         * src/pic16/main.c,
6655         * src/xa51/main.c,
6656         * src/z80/main.c: port.reg_parm prototype extended with
6657           "bool reentrant" parameter
6658         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
6659           options.stackAuto for allocating bit register parameters
6660         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
6661           (genSend): set BitBankUsed if it is,
6662           (selectRegBank): factored out of genCall for use in genPcall,
6663           (genCall): removed redundant dtype assignmen, use selectRegBank,
6664           (genPcall): handle returning in Carry properly, save in F0 if needed,
6665           (genReceive): handle bit register parameters
6666         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
6667           (mcs51_assignRegisters): enable bit registers for all reentrant
6668            functions and don't set BitBankUsed unconditionally
6669         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
6670         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
6671         * support/regression/tests/funptrs.c: added tests for BOOL and for return
6672
6673 2005-08-27 Borut Razem <borut.razem AT siol.net>
6674
6675         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
6676         ppc-osx (Darwin) does not support -u option. It seems that it is
6677         supported only on Linux - GNU cp
6678
6679 2005-08-25 Borut Razem <borut.razem AT siol.net>
6680
6681         * sim/ucsim/gui.src/serio.src/Makefile.in,
6682           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
6683           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
6684           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
6685           install and strip, since the strip at /usr/ccs/bin should be used
6686           on solaris
6687
6688 2005-08-24 Borut Razem <borut.razem AT siol.net>
6689
6690         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
6691
6692 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
6693
6694         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
6695         ffffffffu
6696
6697 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
6698
6699         * as/mcs51/aslink.h: completed lkrloc.c prototypes
6700         * as/mcs51/lkmain.c (link_main): fixed warning
6701         * device/include/stdbool.h: ds390 has no advanced bit support yet
6702         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
6703         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
6704         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
6705           and updated their macros
6706         * src/SDCCval.c (constVal): updated comment for renamed b_long
6707
6708 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
6709
6710         * as/mcs51/asdata.c: changed ctype['['] to BINOP
6711         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
6712           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
6713           (oprio): set priority for '['
6714         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
6715            and adb_24_bit
6716         * as/mcs51/asm.h: added defines R_BIT and S_BIT
6717         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
6718         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
6719         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
6720           added overlayable BIT_BANK area
6721         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
6722           (summary2): explain 'T' in legenda
6723         * as/mcs51/lkrloc.c: replaced old K&R style,
6724           (relr): added R_BIT processing,
6725           (errmsg): added "Bit-addressable relocation error",
6726           (adb_bit): added for converting from byte- to bit-addressable space,
6727           (adb_24_bit): added for converting from byte- to bit-addressable space
6728         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
6729            used in reentrant functions now even as return value
6730         * device/lib/_gptrput.c (_gptrput): removed obsolete code
6731         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
6732           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
6733         * src/SDCCglobl.h: added indicator BitBankUsed
6734         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
6735            the bit registers b0-b7
6736         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
6737           (geniCodeCast): fixed bug 1263853,
6738           (geniCodeLogicAndOr): put result in bool or char,
6739           (geniCodeReceive): added parameter func for accessing the return type,
6740           (geniCodeFunctionBody): pass func to geniCodeReceive
6741         * src/SDCCmain.c: added indicator BitBankUsed
6742         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
6743         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
6744           (checkSClass): don't put automatic bool/bit on stack,
6745           (checkFunction): removed check on function cannot return bit
6746         * src/SDCCsymt.h: added newBoolLink prototype
6747         * src/mcs51/gen.c (rb1regs): added bit registers,
6748           (movc): created for assigning to carry,
6749           (pushReg, popReg): created for pushing registers,
6750           (sameRegs): check both AOP_REG and AOP_CRY types,
6751           (aopOp): handle bit registers,
6752           (aopPut): optimization no self-assign,
6753           (saveRegisters): push reg->base (bits) only once for bit registers,
6754            and use pushReg,
6755           (unsaveRegisters): pop reg->base only once and use popReg,
6756           (assignResultValue): added parameter func and return in carry for bits,
6757           (genIpush): optimization no reload in A if not changed,
6758           (genSend): bit parameters in reentrant functions are passed in bit
6759            registers by first assigning to bits in B, then save registers and
6760            copy B to bits,
6761           (genCall): handle returning in Carry properly, save it in F0 if needed,
6762           (genPcall): updated assignResultValue call, this is not safe yet for bit
6763            returning function !!!
6764           (genFunction): don't generate equ's for bit registers and use pushReg,
6765           (genEndFunction): take care of bit returning functions and use popReg,
6766           (genRet): return bit in Carry,
6767           (genIfx): optimize bit registers and other directly addressable bits,
6768           (genReceive): updated assignResultValue call
6769         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
6770           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
6771            registers when using stack-auto
6772         * src/mcs51/ralloc.c (_G): added allBitregs,
6773           (regs8051): added the bit registers,
6774           (createStackSpil): use macro IS_BIT,
6775           (getRegBit): added to allocate a bit register, else spill,
6776           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
6777           (updateRegUsage): factored out to ease stepping while debugging,
6778           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
6779            also allocate bit registers,
6780           (fillGaps): handle bit registers,
6781           (findAllBitregs): added to create bit vector with all bit registers,
6782           (mcs51_allBitregs): returns this bit vector,
6783           (mcs51_assignRegisters): when using stack-auto use bit registers for
6784            passing parameters and creating local variables
6785         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
6786
6787 2005-08-22 Borut Razem <borut.razem AT siol.net>
6788
6789         * device/lib/Makefile.in: replaced find option -or with -o
6790           to make it run on solaris
6791
6792 2005-08-22 Raphael Neider <rneider AT web.de>
6793
6794         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
6795           fixes #1265442 (crash on Solaris)
6796
6797 2005-08-20 Borut Razem <borut.razem AT siol.net>
6798
6799         * configure, configure.in: added tests for libsocket and libnsl libraries,
6800           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
6801           from support/regression/Makefile.in
6802         * support/regression/Makefile.in: added
6803         * device/lib/pic16/Makefile.common.in: force make to use bash shell
6804         * sim/ucsim/libtool: regenerated on sparc-solaris
6805         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
6806           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
6807           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
6808           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
6809           sparc-solaris, which doesn't use GNU ld linker
6810         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
6811         * as/Makefile: find on sparc-solaris does not support -maxdepth option
6812
6813 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
6814
6815         * src/mcs51/peeph.def: updated comments
6816
6817 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6818
6819         * device/lib/_gptrget.c,
6820         * device/lib/_gptrput.c: slightly shorter
6821         * doc/sdccman.lyx: incremented version
6822         * src/mcs51/peeph.def: moved peephole comments to the line of first
6823           change to better keep line correlation, reanimated 186.e
6824         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
6825
6826 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
6827
6828         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
6829           David Saxton with quotes around file name.
6830
6831 2005-08-15 Borut Razem <borut.razem AT siol.net>
6832
6833         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
6834           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
6835           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
6836           make tests run on x86_64 platform
6837
6838 2005-08-13 Raphael Neider <rneider AT web.de>
6839
6840         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
6841           as it might be executed DURING a build (parallel make is wonderful)
6842
6843 2005-08-13 Raphael Neider <rneider AT web.de>
6844
6845         * device/lib/Makefile.in (port-specific-objects-pic16):
6846           revert to cp $(PORT)/bin/*.* $(PORTDIR)
6847         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
6848           dependency
6849         * device/lib/pic16/Makefile.rules: build subdirs before creating
6850           the library, removed builddir rule, create $(builddir) early in
6851           recurse rule, use empty recurse rule for leaf directories
6852         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
6853           mkdir errors (race condition), removed duplicate suffix "hex"
6854           from clean rules
6855         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
6856         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
6857           prevents mkdir -p from aborting on Alpha
6858
6859 2005-08-12 Raphael Neider <rneider AT web.de>
6860
6861         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
6862           db-statements in order to allow for arrays of pointers in code
6863           sections to be placed without interspersed 0-padding, fixes
6864           bug #1256215
6865         * (emitStatistics): fixed division by zero for pic18f1220
6866         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
6867           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
6868         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
6869         * (pic16_pCodeConstString): keep track of already emitted string
6870           literals to prevent "duplicate definitions of symbol _str_NR"
6871         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
6872           debug message
6873         * device/lib/Makefile.in: ignore failing PIC16 library builds
6874         * device/lib/pic16/Makefile: do not build if gputils are missing
6875         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
6876
6877 2005-08-10 Raphael Neider <rneider AT web.de>
6878
6879         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
6880           my last commit)
6881
6882 2005-08-10 Raphael Neider <rneider AT web.de>
6883
6884         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
6885           Rokas' patch to add the new fixed point type "__fixed16x16"
6886         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
6887           functions for __fixed16x16 arithmetics
6888         * device/lib/pic16: reimplemented the build system to support
6889           a separate build directory, better handling of libio (create
6890           the library in a separate subdir for each architecture) and
6891           easier configuration (centralized in Makefile.common)
6892
6893 2005-08-07 Raphael Neider <rneider AT web.de>
6894
6895         * src/pic16/gen.c (genrshTwo): fixed sign extension
6896         * src/pic16/device.c: added pic18f2320, 4220 and 4320
6897         * device/include/pic16/pic18f2220.h: changed some bit definitions,
6898           added T0CONbits
6899         * device/include/pic16/pic18f4220.h: NEW, header for
6900           pic18f4220 and pic18f4320
6901         * device/include/pic16/pic18fregs.h: added new devices,
6902           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
6903         * device/include/pic16/signal.h: resolved name clashes
6904           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
6905           to also allow testing for interrupt enable bits, added
6906           comments on how to use the macros
6907         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
6908         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
6909           register definitions for the devices
6910         * device/lib/pic16/pics.all: added new devices
6911         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
6912           allocated memory
6913         * device/lib/pic16/libc/stdlib/memfree: do not count
6914           the block header as free memory
6915         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
6916           simplified and added missing end-of-blocklist-marker
6917           (reported by Peter Onion, fixes #1252814)
6918         * (_mergeHeapBlock): fixed loop condition
6919         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
6920           len==0, restructured code
6921         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
6922           up a bit, reduced bitfield accesses, prevent endless loops
6923           in case of heap corruption
6924         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
6925           "unreferenced arguments/must return a value" warnings
6926         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
6927           replaced BAUDREG with SPBRG
6928         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
6929           device/lib/pic16/debug/gstack/gstack.c: replaced
6930           _naked, _asm, _endasm with __naked, __asm, __endasm
6931
6932 2005-08-05 Raphael Neider <rneider AT web.de>
6933
6934         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
6935           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
6936
6937 2005-08-05 Borut Razem <borut.razem AT siol.net>
6938
6939         * device/lib/Makefile.in: added missing ';'
6940         * configure: removed ^M characters
6941
6942 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6943
6944         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
6945           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
6946           License
6947
6948 2005-08-04 Borut Razem <borut.razem AT siol.net>
6949
6950         * configure.in: pic16 libraries build 2nd try - enable running
6951           configure in device/lib/pic16
6952         * configure: regenerated from configure.in
6953         * device/lib/Makefile.in: create $(PORT)/bin directory
6954
6955 2005-08-03 Raphael Neider <rneider AT web.de>
6956
6957         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
6958           to get/set values via pointers
6959         * (genUnpackBits,genPackBits): changed detection of
6960           ptr->bitfield vs. sym.bitfield, fixed access via generic
6961           pointers, removed dead (wrong) code for multibyte bitfields
6962         * (genNearPointerGet, genGenPointerGet): removed useless code,
6963           fixed bitfield detection, fixes #1250594
6964         * (genNearPointerSet): removed useless code
6965         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
6966           and introduced macro pic16_emitpcode that conditionally emits
6967           the origin of the following pCode (useful for debugging SDCC)
6968         * src/pic16/pcode.c: changed (and disabled) some debug outputs
6969         * (createDefmap): fixed handling of LFSR for --optimize-df
6970
6971 2005-08-02 Borut Razem <borut.razem AT siol.net>
6972
6973         * device/lib/Makefile.in: pic16 libraries build enabled since
6974           gputils-0.13.2 are now localy installed at sourceforge's compile farm
6975
6976 2005-08-02 Raphael Neider <rneider AT web.de>
6977
6978         * src/pic16/gen.c (genPackBits): removed deprecated warning
6979         * (genGenPointerSet): fixed bitfield detection
6980
6981 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6982
6983         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
6984
6985 2005-07-31 Raphael Neider <rneider AT web.de>
6986
6987         * device/lib/pic16/libdev/pic18f458.c,
6988           device/include/pic16/pic18f458.h: added missing T0CONbits
6989
6990 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
6991
6992         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
6993
6994 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
6995
6996         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
6997
6998 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6999
7000         * device/include/mcs51/at89c51ed2.h: added.
7001
7002 2005-07-23 Raphael Neider <rneider AT web.de>
7003
7004         * src/pic/gen.h: added emitpcode macro for debugging
7005         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
7006           and replace by macro adding debug information on demand
7007         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
7008         * (gencjne): tried to fix; replaced with correct (slower) code
7009         * (gen{Unp,P}ackBits): fixed single bit access
7010         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
7011         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
7012           previous instruction
7013         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
7014           register has to be handled with care (forbidding movement
7015           of assignments/uses, removing assignments completely, ...)
7016         * (pCodeOptime2pCodes): make use of regIsSpecial
7017         * added lots of debugging output (commented out)
7018         * src/pic/rallloc.c (deassignLRs): prevent operand registers
7019           from being reused as result UNLESS it is known to work
7020
7021 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
7022
7023         * support/Util/dbuf.h: include <stddef.h> for size_t
7024         * .version: changed to version 2.5.2
7025
7026 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7027
7028         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
7029
7030 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7031
7032         * src/hc08/gen.c (genMinus): fixed bug #1241835,
7033           (genModOneByte): removed needless psha/pula
7034
7035 2005-07-22 Raphael Neider <rneider AT web.de>
7036
7037         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
7038           have PIC14 handled like PIC16, fixes broken pic14 linker calls
7039         * src/pic/gen.c (resolveIfx): do not "invent" labels
7040         * (genSkipc): changed to positive logic
7041         * (genSkipCond): removed as no longer needed
7042         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
7043           backport from PIC16
7044         * (genLeftShift): check operands are in different registers
7045         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
7046           INCF does not update CARRY...
7047         * src/pic/main.c: fixed _linkCmd
7048         * src/pic/pcode.c (unlinkpCode): added inactive code
7049         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
7050           alive (do not assign result and operand overlapping registers)
7051
7052 2005-07-22 Raphael Neider <rneider AT web.de>
7053
7054         * src/pic/device.c (dump_sfr): replaced register declaration with
7055           call to emitSymbolToFile() to avoid duplicate symbols
7056         * (assignRelocatableRegisters): do not declare external symbols
7057         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
7058           right (take size of type, not etype)
7059         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
7060         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
7061         * (packRegsForAccUse): disabled assignment of WREG as
7062           the result reg to prevent occurence of just fixed #1235003,
7063           fixes #1242954
7064         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
7065           symbols (avoids duplicate symbols in .asm file)
7066         * (pic14emitRegularMap): use emitSymbolToFile()
7067         * src/pic/gen.c (aopOp): fixed spillLocation handling
7068         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
7069         * (genDataPointerSet): removed unneccessary variables/output
7070
7071 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
7072
7073         * as/mcs51/lkarea.c: enlarged codemap for banked memory
7074         * device/lib/mcs51/crtbank.asm: added # to 0x0F
7075
7076 2005-07-21 Raphael Neider <rneider AT web.de>
7077
7078         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
7079           architecture cannot handle them efficiently, fixes bug #1235003
7080         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
7081           check for empty sets before using them (fixes bug #1232190)
7082
7083 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
7084
7085         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
7086           (lnksect2): generate warnings for memory overlap
7087         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
7088           constseg to set the name of these segments so you can instruct the linker
7089           to place them in banks
7090         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
7091         * src/SDCCglobl.h: added MODEL_HUGE to enum,
7092           added code_seg and const_seg to options
7093         * src/SDCCglue.c (emitMaps): use options.const_seg,
7094           (createInterruptVect): put interrupt vectors in segment HOME,
7095           (glue): put HOME before static segment and put the main glue in HOME,
7096           (glue): use options.code_seg
7097         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
7098         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
7099           these segments so you can instruct the linker to place them in banks
7100           (linkEdit): use code_loc for HOME segment which should be the first
7101           segment in code memory now
7102         * src/SDCCmem.c: fixed more stuff like bug 1238386
7103         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
7104           (changePointer): don't change function pointers to code pointers for
7105           banked functions,
7106           (compareType): added exceptional check for banked function pointers
7107         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
7108         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
7109           after static in code memory
7110         * src/mcs51/gen.c: added aopLiteralLong prototype,
7111           (aopForSym): use getSize for functions,
7112           (genCall): generate banked calls over one trampoline __sdcc_banked_call
7113           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
7114           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
7115           the segment,
7116           (genPcall): use call for literal function pointers and generate banked
7117           calls over the one trampoline so there's only one place for the user to
7118           modify according to his/hers hardware,
7119           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
7120           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
7121         * src/mcs51/main.c: added keyword banked,
7122           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
7123         * support/Util/SDCCerr.c,
7124         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
7125           needed for passing the bank and address to the trampoline
7126         * device/lib/mcs51/crtbank.asm: added for bankswitching
7127         * device/lib/mcs51/Makefile: added crtbank
7128
7129 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7130
7131         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
7132           for fields at offset 0 of a struct or union as reported
7133           on 2005-07-07 in the developer mailing list.
7134
7135 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
7136
7137         * src/SDCCmem.c: fixed bug 1238386
7138
7139 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7140
7141         * src/mcs51/peeph.def: added labelrefcounting for peepholes
7142           (patch #1144962), added peephole 300, enabled 259.x
7143         * doc/sdccman.lyx: removed screenshot and provided link instead
7144
7145 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7146
7147         * doc/sdccman.lyx: added section about debugging with ddd
7148         * doc/figures/ddd_example.eps: screenshot of debugging session
7149
7150 2005-07-04 Raphael Neider <rneider AT web.de>
7151
7152         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
7153           like CODE pointers, fixes #1115683
7154         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
7155           call, fixes bugs #1232211, #1228110,
7156           fixed wrong casts to pCodeFlow from pCodeInstructions
7157
7158 2005-07-04 Raphael Neider <rneider AT web.de>
7159
7160         * src/pic/gen.c (popGet): changed assert to allow for
7161           bit operands
7162         * (popGetAddr): changed signature to provide
7163           an additional index, patched all call sites
7164         * (genCmpEq): handle literal-like operands correctly
7165         * (genAddrOf): added sanity checks on __code/__data pointers
7166         * (genAssign): added handling of symbols from __code section
7167         * (gencjne): do not generate code for comparisons whose result
7168           is neither stored nor used, fixes bug #1171114
7169         * (AccLsh, AccRsh): operate on operand instead of WREG
7170         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
7171           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
7172           by known count
7173         * rewrote complete shift-by-literal logic, commented unused
7174           functions out
7175         * (genConstPointerGet): get multiple bytes (if result size > 1),
7176           fixed handling of non-immediate addresses
7177         * (genPointerGet): handle CODE pointers like CONST pointers
7178         * (genpic14Code): insert C-SRC lines as Cource-pCodes
7179         * ({aop,op}_isLitLike): NEW, single place to decide whether an
7180           operand is to be treated as a literal or not
7181         * (mov2w,genPcall,genCmpEq),
7182           src/pic/genarith.c: use aop_isLitLike() to decide between
7183           literal/register contents
7184         * (addSign): added missing offset
7185         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
7186           only emit comment in debug-mode,
7187           use {aop,op}_isLitLike throughout the file
7188         * src/pic/glue.c: fix initializers for pointers (work in progress)
7189         * src/pic/pcode.c (get_op): honor index on _const symbols
7190         * ({reset,dump}pCodeStatistics): NEW, estimate code size
7191         * (dumppBlock): added pCode size estimation
7192         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
7193           check for IS_SYMOP before OP_SYMBOL'ing
7194         * fixed indentation, compacted switch-statements
7195         * (allocReg): find free register and allocate it instead of
7196           allocating new registers all the time
7197         * (deassignLRs): prevent POINTER_GET's from being assigned the same
7198           registers as its operands (necessary only for multibyte GETs)
7199
7200 2005-07-01 Raphael Neider <rneider AT web.de>
7201
7202         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
7203           debugging .asm-output macros FENTRY + FEXIT
7204         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
7205           way... I wonder...
7206         * (emitpComment): NEW, printf to pCode
7207         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
7208           offset handling
7209         * (popGetAddr): NEW, variant of popGet to access an immediates
7210           high(er) bytes instead of the n'th byte of memory they reference,
7211           replaced popGet with popGetAddr where neccessary
7212         * (genDataPointerGet): reactivated and fixed implementation
7213         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
7214           accesses
7215         * (genDataPointerSet): fixed multibyte assignments
7216         * (genpic14Code): fixed --i-code-in-asm handling
7217         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
7218         * (genPlus): fixed index-out-of-bounds error
7219         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
7220         * src/pic/ralloc.c: added debugging output macro FENTRY2
7221         * (spillThis): fixed indentation, enbraced for-body for clarity
7222         * (rematStr): commented out as now unused
7223         * (regTypeNum): commented out special spill case (overwrites
7224           arbitrary values)
7225         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
7226
7227 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
7228
7229         * doc/sdccman.lyx: documented sfr16/sfr32,
7230           added example for using storage class with function pointers
7231         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
7232
7233 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
7234
7235         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
7236         * device/lib/_itoa.c,
7237         * device/lib/_ltoa.c: optimized codesize
7238         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
7239           but don't know how to suppress the double warning.
7240         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
7241         * support/Util/SDCCerr.c,
7242         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
7243
7244 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
7245
7246         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
7247           fixed old K&R prototypes
7248         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
7249         * device/lib/_gptrget.c,
7250         * device/lib/_gptrgetc.c,
7251         * device/lib/_gptrput.c: changed versions for new memory indicator values,
7252           also new versions for small generic pointers and banked generic pointers
7253         * src/port.h: added const_name
7254         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
7255         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
7256         * src/SDCCcse.c (findPrevIc): check all associative operators
7257         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
7258         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
7259         * src/SDCCmem.c: updated comments,
7260           set far-space to 0 for pdata, results in optimized code
7261         * src/SDCCmem.h: added macro CONST_NAME
7262         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
7263           moving the info into the highest bits, see also gptrget/gptrput
7264         * src/src.dsp: added sdcc.ico to project files
7265         * src/avr/gen.c (genCast): fixed bug 0x%d
7266         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
7267         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
7268           relation between ptr_type and DCL_TYPE,
7269           (genCast): fixed bug 0x%d
7270         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
7271           (CODE)" for const_name
7272         * src/hc08/gen.c (genCast): fixed bug 0x%d
7273         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
7274           (hc08_port): added "CONST (CODE)" for const_name
7275         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
7276           (aopForRemat, adjustArithmeticResult): disconnected direct relation
7277           between ptr_type and DCL_TYPE,
7278           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
7279           operand* and took AOP() inside function so sfr-ness can be checked,
7280           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
7281           new prototype,
7282           (genFunction, genEndFunction): optimized stack setup,
7283           (genMinus): optimized for literals with ending zeroes (in bytes),
7284           (genCast): fixed bug 0x%d
7285         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
7286           (mcs51_port): added "CONST (CODE)" for const_name
7287         * src/mcs51/peeph.def: made rule 226 more generic
7288         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
7289         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
7290         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
7291         * src/z80/main.c (z80_port): added NULL for const_name,
7292           (gbz80_port): added NULL for const_name
7293         * support/regression/tests/bug663539.c,
7294         * support/regression/tests/sfr16.c: new tests
7295
7296 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7297
7298         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
7299
7300 2005-06-24 Raphael Neider <rneider AT web.de>
7301
7302         * device/lib/pic16/libdev/pic18f[68][567]20.c:
7303           corrected typos...
7304         * device/include/pic16/signal.h: added USBIF
7305           and SIG_USB
7306
7307 2005-06-24 Raphael Neider <rneider AT web.de>
7308
7309         * device/lib/pic16/libdev/pic18f2455.c,
7310           device/include/pic16/pic18f2455.h: NEW
7311         * device/include/pic16/pic18fregs.h,
7312           device/lib/pic16/pics.all,
7313           src/pic16/device.c: added 18f2455
7314         * device/lib/pic16/libdev/pic18f[68][567]20.c,
7315           device/include/pic16/{pic18f[68][567].h,usart.h}:
7316           replaced MULTIPLE_USARTS define with more relaible
7317           compatibility sfrs (for USART access)
7318
7319 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
7320
7321         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
7322           and the output asm file line is printed on two lines.
7323
7324 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7325
7326         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
7327           BGT, BLE, BHI, and BLS instructions
7328         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
7329           genCmpEq): removed
7330         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
7331           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
7332           fixes bug #1216342
7333         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
7334
7335 2005-06-15 Raphael Neider <rneider AT web.de>
7336
7337         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
7338         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
7339         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
7340           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
7341           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
7342
7343 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7344
7345         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
7346           Marcel Telka in bug #1215704
7347
7348 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
7349
7350         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
7351           located in shared memory bank.
7352
7353 2005-05-31 Raphael Neider <rneider AT web.de>
7354
7355         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
7356           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
7357           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
7358
7359 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
7360
7361         * device/lib/_strncpy.c: fixed the fix
7362
7363 2005-05-26 Raphael Neider <rneider AT web.de>
7364
7365         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
7366           initializers with \0, bug #1208187
7367         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
7368           intializers with \0, bug #1208187
7369
7370 2005-05-26 Raphael Neider <rneider AT web.de>
7371
7372         * src/pic16/glue.c (pic16_printIvalChar): fixed string
7373           initializers with \0, bug #1208187
7374         * src/pic16/main.c (_process_pragma): added sanity checks
7375           for stack position and size, emit warnings when appropriate
7376
7377 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
7378
7379         * device/lib/_strncpy.c: fixed not filling with \0
7380
7381 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7382
7383         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
7384           createFunction),
7385         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
7386           compound_statement),
7387         * src/SDCCsymt.h,
7388         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
7389
7390 2005-05-24 Raphael Neider <rneider AT web.de>
7391
7392         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
7393
7394 2005-05-24 Raphael Neider <rneider AT web.de>
7395
7396         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
7397           TRISE definitions, closes bug #1162453
7398
7399 2005-05-22 Raphael Neider <rneider AT web.de>
7400
7401         * src/pic16/main.c (_process_pragma): check for missing
7402           arguments to pragmas code and udata
7403         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
7404           consistency fixes to match other headers (thanks to Jim Paris)
7405         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
7406
7407 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
7408
7409         * src/SDCCicode.c (isOperandEqual): fixed missing ;
7410
7411 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
7412
7413         * support/regression/tests/bug1198642.c: new test
7414         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
7415         * src/SDCCcse.c (findPrevIc): added comment, please have a look
7416         * support/scripts/resource.h,
7417         * support/scripts/resource.rc,
7418         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
7419         * support/scripts/sdcc.ico: added 32x32 icon
7420
7421 2005-05-18 Raphael Neider <rneider AT web.de>
7422
7423         * device/lib/pic16/libdev/pic18f*.c,
7424         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
7425           keywords to "__sfr" and "__at (X)"
7426         * device/include/pic16/pic18fregs.h: added pic18f4520
7427         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
7428           #1203088 (MPLAB compatibility)
7429
7430 2005-05-17 Raphael Neider <rneider AT web.de>
7431
7432         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
7433         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
7434         * device/lib/pic16/pics.all: added new devices
7435         * src/pic16/device.c: added support for pic18f4520
7436
7437 2005-05-16 Raphael Neider <rneider AT web.de>
7438         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
7439         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
7440         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
7441           convenience function for bit access
7442
7443 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
7444
7445         * device/lib/printf_large.c: fixed bug 1193299
7446         * support/regression/tests/bug1057979.c: added test %3.3s
7447
7448 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7449
7450         * device/include/mcs51/8051.h,
7451         * device/include/mcs51/8052.h: made parseable with lint
7452         * device/include/mcs51/lint.h: added include file for (sp)lint
7453         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
7454         * doc/cdbfileformat.lyx,
7455         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
7456
7457 2005-05-14 Raphael Neider <rneider AT web.de>
7458
7459         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
7460         * device/lib/pic16/libc/stdlib/itoa.c (new)
7461         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
7462         * device/lib/pic16/libio/Makefile: exclude subdir according to
7463           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
7464         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
7465         * src/pic16/gen.c (genFunction): prevent annoying warning
7466         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
7467           nameclashes on BeOS
7468         * support/cpp2/cppmain.c (cpp_output_string): new
7469         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
7470           fixes bug 1116802
7471
7472 2005-05-13 Borut Razem <borut.razem AT siol.net>
7473
7474         * src/SDCCmain.c (linkEdit): fixed bug 1195202
7475
7476 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7477
7478         * .version: changed to version 2.5.1; back to bleeding edge development
7479
7480 2005-05-11 Borut Razem <borut.razem AT siol.net>
7481
7482         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
7483           generate PDF version 1.3 documents
7484
7485 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7486
7487         * .version: changed to version 2.5.0
7488
7489 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7490
7491         * doc/sdccman.lyx: updated weblinks, index and smaller updates
7492
7493 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7494
7495         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
7496         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
7497         well as many smaller updates.
7498         * .version: changed to version 2.5.0-pre1
7499
7500 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7501
7502         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
7503
7504 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
7505
7506         * support/regression/tests/bug1185672.c: added
7507         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
7508           bug 1185672
7509         * src/mcs51/gen.c (genCall): added comments, made it look safer
7510         * src/mcs51/gen.c (genEndFunction): simplified
7511
7512 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
7513
7514         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
7515
7516 2005-04-14 Borut Razem <borut.razem AT siol.net>
7517
7518         * fixed bug 1045046 - SIGSEGV with really simple code?:
7519           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
7520           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
7521
7522 2005-04-14 Borut Razem <borut.razem AT siol.net>
7523
7524         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
7525           src/pic16/device.h: temporarily disabled experimental #inline pragma
7526           for 2.5.0 release
7527
7528 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
7529
7530         * device/include/z80/stdio.h,
7531         * device/include/z80/string.h: removed these highly incomplete files so
7532           SDCC can use the default ones in device/include/
7533
7534 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7535
7536         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
7537         gcc warning.
7538         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
7539         fix sdcpp warnings.
7540
7541 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
7542
7543         * device/include/malloc.h: removed redundant __reentrant prototypes
7544         * device/lib/_mullong.c: added working xstack variant in asm (C version
7545           doesn't pass regression tests)
7546         * device/lib/bpx.c: used __data and made bpx char for mcs51
7547         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
7548           (createFunction): fixed bug with xstackPtr
7549         * src/SDCCcse.c: corrected comments
7550         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
7551           (killDeadCode, eBBlockFromiCode): removed unused code
7552         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
7553           corrected comments
7554         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
7555           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
7556           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
7557           (genModOneByte): fixed warning in MSVC
7558         * src/mcs51/main.c (): added comments
7559         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
7560
7561 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
7562
7563         * src/SDCCmain.c (linkEdit): oops, changed one line too many
7564
7565 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
7566
7567         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
7568
7569 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
7570
7571         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
7572         characters arrays of larger size than the declared one.
7573
7574 2005-04-10 Borut Razem <borut.razem AT siol.net>
7575
7576         * src/pic/gen.c (genInline),
7577           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
7578           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
7579           (findNextInstruction), (findPrevInstruction),
7580           (findInstructionUsingLabel),
7581           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
7582         * src/pic/pcode.c (findLabel): added missing '\n'
7583         * src/src.dsp: added SDCCdwarf2.c to the project
7584
7585 2005-04-09 Borut Razem <borut.razem AT siol.net>
7586
7587         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
7588
7589 2005-04-08 Raphael Neider <rneider AT web.de>
7590
7591         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
7592           into the chain after a given one) and mergeDefmapSymbols (combine
7593           defmap entries for each symbol per pcode)
7594         * (createDefmap): have defmap entries merged in the end
7595         * (defmapReplaceSymRef): split defmap entries covering two accesses to
7596           a symbol before replacing one access type's symbol, merge symbols in
7597           the end (replacement symbol might already have an entry)
7598         * (assignValnums): keep reference to written WREG intact
7599
7600 2005-04-08 Raphael Neider <rneider AT web.de>
7601
7602         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
7603           Alpha)
7604
7605 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
7606
7607         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
7608         bytes
7609
7610 2005-04-07 Raphael Neider <rneider AT web.de>
7611
7612         * device/include/pic16/usart.h: added compatibility defines for
7613           devices with more than one USART
7614         * device/include/pic16/pic18f[68][567]20.h: activated above defines
7615
7616 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7617
7618         * device/lib/Makefile.in: updated for port specific include
7619
7620 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7621
7622         * support/regression/ports/mcs51/spec.mk: added mcs51 include
7623
7624 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7625
7626         * device/include/8051.h,
7627         * device/include/8052.h,
7628         * device/include/at89S8252.h,
7629         * device/include/at89c55.h,
7630         * device/include/at89x051.h,
7631         * device/include/at89x51.h,
7632         * device/include/at89x52.h,
7633         * device/include/mcs51reg.h,
7634         * device/include/reg51.h,
7635         * device/include/reg764.h,
7636         * device/include/regc515c.h,
7637         * device/include/sab80515.h: (re)moved these 12 files
7638         * device/include/mcs51/8051.h,
7639         * device/include/mcs51/8052.h,
7640         * device/include/mcs51/at89S8252.h,
7641         * device/include/mcs51/at89c55.h,
7642         * device/include/mcs51/at89x051.h,
7643         * device/include/mcs51/at89x51.h,
7644         * device/include/mcs51/at89x52.h,
7645         * device/include/mcs51/mcs51reg.h,
7646         * device/include/mcs51/reg51.h,
7647         * device/include/mcs51/reg764.h,
7648         * device/include/mcs51/regc515c.h,
7649         * device/include/mcs51/sab80515.h: and added them here
7650
7651 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
7652
7653         * device/include/stdarg.h: changed SDCC specific keywords to double
7654           underlined form.
7655         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
7656           mcs51 and ds390.
7657         * device/include/hc08/mc68hc908gp32.h,
7658         * device/include/hc08/mc68hc908jb8.h,
7659         * device/include/hc08/mc68hc908jkjl.h,
7660         * device/include/hc08/mc68hc908qy.h: fixed comments
7661         * device/include/mcs51/README: updated
7662         * device/include/mcs51/c8051f120.h: added PINRSF
7663         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
7664         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
7665           amidst code. Also inline is not supported.
7666
7667 2005-04-06 Raphael Neider <rneider AT web.de>
7668
7669         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
7670         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
7671           callers stack/frame pointers
7672
7673 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
7674
7675         * device/include/pic16/usart.h: added, missing in previous commit,
7676         * device/include/pic16/adc.h: fixed typo,
7677         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
7678         commit,
7679         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
7680         <p18fxxx.inc>
7681         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
7682         uninitialized because a bug appears with gplink
7683         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
7684         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
7685         complains for unrecognised option
7686
7687 2005-04-05 Raphael Neider <rneider AT web.de>
7688
7689         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
7690           structs as well (using memcpy)
7691         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
7692           on ISRs (GOTO has no label)
7693         * src/pic16/device.h: added OF_OPTIMIZE_DF
7694         * src/pic16/main.c: added compiler switch --optimize-df to enable the
7695           new data flow analysis/optimization
7696         * src/pic16/pcode.c: added (prototypes for and implementation of)
7697           dataflow analysis functions, fixed pCodeInstructions' inCond and
7698           outCond values, made RCALL a branch instruction
7699         * (pic16_unlinkpCode): keep C line if possible
7700         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
7701           C line moved if possible
7702         * (pic16_getRegFrompCodeOp): NEW, improved version of...
7703         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
7704           to use new pic16_getRegFrompCodeOp (works for more SFRs)
7705         * (pic16_BuildFlow): fixed skip instructions with label (did not start
7706           new flow)
7707         * (pic16_getJumptabpCode): NEW, needed in...
7708         * (LinkFlow): fixed handling of jumptables, calls and conditional
7709           branches
7710         * (pic16_InsertCommentAfter): NEW
7711         * (pic16_pCodeReplace): made verbose and flow preserving
7712         * (AnalyzeFlow): added call to data flow analysis
7713         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
7714         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
7715         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
7716
7717 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7718
7719         * src/SDCCast.c (decorateType): fixed bug #1105626
7720
7721 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
7722
7723         * device/include/asm/pic16/features.h,
7724         * pic18f*.h headers,
7725         * device/include/pic16/adc.h,
7726         * device/include/pic16/delay.h,
7727         * device/include/pic16/i2c.h,
7728         * device/include/pic16/malloc.h,
7729         * device/include/pic16/stdio.h,
7730         * device/include/pic16/stdlib.h,
7731         * device/include/pic16/string.h,
7732         * device/lib/pic16/libc/stdio/printf_tiny.c,
7733         * device/lib/pic16/libc/stdio/printf_small.c,
7734         * device/lib/pic16/libc/stdio/strmgpsim.c,
7735         * device/lib/pic16/libc/stdio/strmmssp.c,
7736         * device/lib/pic16/libc/stdio/strmusart.c,
7737         * device/lib/pic16/libc/stdio/vfprintf.c,
7738         * device/lib/pic16/libc/stdlib/ltoa.c,
7739         * device/lib/pic16/libc/stdlib/putchar.c,
7740         * device/lib/pic16/libc/stdlib/x_ftoa.c,
7741         * device/lib/pic16/libc/stdlib/memchrpgm.c,
7742         * device/lib/pic16/libc/stdlib/memchrram.c,
7743         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
7744         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
7745         * device/lib/pic16/libio/adc/adcbusy.c,
7746         * device/lib/pic16/libio/adc/adcread.c,
7747         * device/lib/pic16/libio/adc/adcsetch.c,
7748         * device/lib/pic16/libio/usart/ubaud.c,
7749         * device/lib/pic16/libio/usart/ubusy.c,
7750         * device/lib/pic16/libio/usart/udrdy.c,
7751         * device/lib/pic16/libio/usart/uopen.c,
7752         * device/lib/pic16/libio/usart/uputc.c,
7753         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
7754         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
7755         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
7756         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
7757         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
7758         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
7759         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
7760         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
7761         specific keywords to double underlined form,
7762         * device/lib/pic16/libc/Makefile.rules,
7763         * device/lib/pic16/libsdcc/Makefile.rules,
7764         * device/lib/pic16/libm/Makefile,
7765         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
7766         to compile with C standard set in Makefile.common
7767         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
7768         rand.c and crc.c in compilation process,
7769         * device/lib/pic16/libsdcc/int/divuint.c,
7770         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
7771         `c' from signed to unsigned,
7772         * device/lib/pic16/startup/crt0.c,
7773         * device/lib/pic16/startup/crt0i.c,
7774         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
7775         keywords to double underlined form, bug fixes in _do_cinit function
7776         which prevented the correct initialization of the .idata segment,
7777         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
7778         core to enter a infinite loop
7779         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
7780
7781 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7782
7783         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
7784
7785 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7786
7787         * device/include/Makefile.in: add support for hc08 subdirectory
7788         * device/include/hc08/: new subdirectory
7789         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
7790         Lucas Loizaga, thanks!
7791         * device/include/hc08/mc68hc908qy.h,
7792         * device/include/hc08/mc68hc908gp32.h,
7793         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
7794         their own directory. Changed internal macro names to use the compiler
7795         reserved namespace. Changed SDCC specific keywords to double
7796         underlined form.
7797         * device/include/math.h,
7798         * device/include/malloc.h,
7799         * device/include/stdarg.h,
7800         * device/include/stdbool.h
7801         * device/include/string.h,
7802         * device/include/tinibios.h,
7803         * device/include/ds400rom.h,
7804         * device/include/8051.h,
7805         * device/include/8052.h,
7806         * device/include/80c51xa.h,
7807         * device/include/at89c55.h,
7808         * device/include/at89S8252.h,
7809         * device/include/at89x51.h,
7810         * device/include/at89x52.h,
7811         * device/include/ds80c390.h,
7812         * device/include/reg764.h,
7813         * device/include/regc515c.h,
7814         * device/include/sab80515.h,
7815         * device/include/mcs51/c8051f000.h,
7816         * device/include/mcs51/c8051f018.h,
7817         * device/include/mcs51/c8051f020.h,
7818         * device/include/mcs51/c8051f040.h,
7819         * device/include/mcs51/c8051f060.h,
7820         * device/include/mcs51/c8051f120.h,
7821         * device/include/mcs51/c8051f300.h,
7822         * device/include/mcs51/c8051f310.h,
7823         * device/include/mcs51/c8051f320.h,
7824         * device/include/mcs51/c8051f330.h,
7825         * device/include/mcs51/c8051f350.h,
7826         * device/include/z180.h: Changed SDCC specific keywords to double
7827         underlined form.
7828
7829 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
7830
7831         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
7832         18F4455,
7833         * (pic16_assignConfigWordValue): disable testing of configuration
7834         register value with config mask,
7835         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
7836         function with port->fun_prefix,
7837         * (genFunction): when generating a naked interrupt function never
7838         create an absolute segment placed in interrupt vector address, place
7839         the actual interrupt function at IVA instead, when an interrupt
7840         function is generated with unspecified interrupt then do not create
7841         the absolute section,
7842         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
7843         code for generating a call to generic pointer get/put function with
7844         a call to function pic16_callGenericPointer(),
7845         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
7846         the call to the generic pointer get/put functions with prefixing the
7847         function name with port->fun_prefix,
7848         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
7849         * src/pic16/main.c (_process_pragma): prefix function with
7850         port->fun_prefix,
7851         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
7852         calling assembler, old 18Fxxxx macro is deprecated,
7853         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
7854         PC_ASMDIR in while condition,
7855         * (findInstruction): add PC_ASMDIR in while condition,
7856         * (buildCallTree): prefix main with port->fun_prefix,
7857         * (pic16_pCode2str): fixed bug that didn't emit the memory access
7858         identifier for variable with banked access in instructions BTFSS,
7859         BTFSC, BCF, BSF, BTG
7860         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
7861         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
7862         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
7863         perform optimization when enviroment variable NO_REG_OPT is set,
7864         * (insideLRBlock): NEW, return 1 if register is inside an
7865         INF_LOCALREGS block,
7866         * (RemoveRegFromLRBlock): remove a register that is completely
7867         eliminated by register optimization, but it is still left in local
7868         register store/restore in/from stack block,
7869         * (Remove2pcodes): after removing register, check to see if it
7870         should be removed from local register store/restore in/from stack
7871         block,
7872         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
7873         DUMMY_READ_VOLATILE,
7874
7875         * device/include/pic16/adc.h: minor prototype modifications and
7876         update,
7877         * device/include/pic16/malloc.h: added GPL notice various
7878         modifications,
7879         * device/include/pic16/stdint.h: NEW, standard header for ints
7880         * device/include/pic16/delay.h: NEW, header for delay functions,
7881         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
7882         delay1mtcy,
7883         * device/include/pic16/signal.h: NEW, header providing helper macros
7884         for implementing signal handlers,
7885         * device/include/pic16/stdio.h: added prototypes for functions,
7886         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
7887         prototypes for stdin and stdout, added macro PUTCHAR to
7888         automatically implement putchar function prototype,
7889         * device/include/pic16/usart.h: modified and updated USART library,
7890         * device/lib/pic16/libio/adc/,
7891         * device/lib/pic16/libio/i2c: some modifications to improve library
7892         performance,
7893         * device/lib/pic16/libc/stdio/: modifications for the new printf*
7894         family of functions,
7895         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
7896         family of functions and other sources,
7897         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
7898         of the PIC18Fxx[28] devices,
7899         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
7900         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
7901         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
7902         _do_cinit function, because the previous failed when local variables
7903         where not placed in the same memory bank,
7904         * device/lib/pic16/libsdcc/char/: various modifications to improve
7905         library performance,
7906         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
7907         information on the new functions of the c library and more...
7908
7909 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7910
7911         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
7912
7913 2005-03-26 Raphael Neider <rneider AT web.de>
7914
7915         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
7916           if condition == CARRY)
7917         * (genCmp): adapted to new genSkipc semantics
7918         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
7919           on rIfx (genCmp was broken)
7920
7921 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7922
7923         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
7924         * src/z80/main.c (_keywords[]),
7925         * src/SDCCglobal.h (struct options),
7926         * src/SDCC.y,
7927         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
7928         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
7929         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
7930         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
7931         always available in leading double underscore form. The C99 support is
7932         mostly missing, but it's a start.
7933         * support/regression/tests/bug-227710.c: fixed nonconforming use of
7934         reserved identifier "__data".
7935
7936 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
7937
7938         * src/mcs51/peeph.def: fixed bug 1170013
7939
7940 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
7941
7942         * device/include/mcs51reg.h: fixed bug 842007
7943
7944 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7945
7946         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
7947         last time.
7948
7949 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7950
7951         * src/port.h (struct PORT),
7952         * src/avr/ralloc.c (avr_assignRegisters),
7953         * src/avr/main.c,
7954         * src/ds390/ralloc.c (ds390_assignRegisters),
7955         * src/ds390/main.c,
7956         * src/hc08/ralloc.c (hc08_assignRegisters),
7957         * src/hc08/main.c,
7958         * src/mcs51/ralloc.c (mcs51_assignRegisters),
7959         * src/mcs51/main.c,
7960         * src/pic/ralloc.c (pic14_assignRegisters),
7961         * src/pic/main.c,
7962         * src/pic16/ralloc.c (pic16_assignRegisters),
7963         * src/pic16/main.c,
7964         * src/xa51/ralloc.c (xa51_assignRegisters),
7965         * src/xa51/main.c,
7966         * src/z80/ralloc.c (z80_assignRegisters),
7967         * src/z80/ralloc.h,
7968         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
7969         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
7970         * src/SDCCcse.h,
7971         * src/SDCCdflow.c (computeDataFlow),
7972         * src/SDCCdflow.h,
7973         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
7974         * src/SDCCloop.h,
7975         * src/SDCCcflow.c (*),
7976         * src/SDCCcflow.h,
7977         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
7978         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
7979         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
7980         immedDom() returning wrong block; probably fixes bug #1160833)
7981
7982 2005-03-20 Borut Razem <borut.razem AT siol.net>
7983
7984         * support/scripts/inc2h.pl: WIN32 port
7985
7986 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
7987
7988         * device/lib/makefile.in: added abs.c and labs.c
7989
7990 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
7991
7992         * device/include/stdint.h: added
7993         * device/lib/abs.c: added
7994         * device/lib/labs.c: added
7995         * device/include/stdlib.h: added abs() and labs() prototypes
7996         * device/lib/libsdcc.lib: added abs and labs
7997         * device/include/float.h,
7998         * device/lib/_fsmul.c,
7999         * device/lib/printf_fast.c,
8000         * device/lib/printf_tiny.c: updated comments
8001
8002 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8003
8004         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
8005         bug #1164313
8006
8007 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8008
8009         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
8010         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
8011
8012 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
8013
8014         * device/lib/printf_large.c: removed inline assembly for portability and
8015           readability. Use printf_fast if speed or size are more important.
8016         * src/pic16/gen.c: removed conditions around use of DEBUGpc
8017         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
8018
8019 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
8020
8021         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
8022         prevent compiler warning
8023
8024 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
8025
8026         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
8027         moved to level 0 and declared as static. Also they are explicit
8028         placed in access bank. This was necessery because some times they
8029         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
8030         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
8031         optimizations. Currently only compare to unsigned char is implemented,
8032         * src/pic16/gen.c: added fReturnIdx array,
8033         * (struct resolvedIfx) is moved to gen.h and made public,
8034         * (struct _G): added sregsAlloc and sregsAllocSet fields,
8035         * (aopForSym): added an optimization to directly store in stack of
8036         the operand of a SEND iCode,
8037         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
8038         but as registers instead (AOP_REG) using the fReturnIdx array,
8039         * (pic16_freeAsmop): remove the freed register from the
8040         _G.sregsAlloc field,
8041         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
8042         a compare of 'WREG',
8043         * (pic16_popGetTempRegCond): changed function prototype, now
8044         function takes also a bitVector argument v which holds the current
8045         set of registers that are allocated for stack access by aopForSym,
8046         registers allocated in aopForSym for accessing stack symbols are not
8047         any more part of the functions usedRegs field,
8048         * (genCall): some times aopOp is called for a stack variable to be
8049         send, aopForSym might perform the push, if this is true make sure
8050         that genCall doesn't push the variable twice by testing _G.resDirect,
8051         * (genFunction): changed testing for unspecified interrupt number
8052         from 256 to INTNO_UNSPEC,
8053         * modified selection scheme of frame pointer generation. Previously
8054         if function did use local registers a frame pointer was generated,
8055         now a frame pointer is generated only if function has arguments
8056         (that need PLUSW2 register access), or has stack arguments, or the
8057         compiler is not instructed to omit the frame pointer,
8058         * (genEndFunction): before restoring local registers that were saved
8059         in the function preamble, also restore the registers that *might*
8060         have been allocated for stack access,
8061         * (genRet): removed some old comments,
8062         * (genCmp, the active (RN's) version): added a call to the
8063         pic16_genCmp_special function to perform the compare with a more
8064         robust and optimized way,
8065         * (genInline): a feature has been added in inline code generation,
8066         which allows a wildcard variable substitution when writing inline
8067         assembly. Code is incomplete and experimental therefore undocumented,
8068         * (genCast): changed order of aopOp for result and right to allow
8069         aopForSym to directly load the result if possible,
8070         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
8071         perform an optimized compare on some selected special occasions,
8072         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
8073         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
8074         generate an IVT any more,
8075         * src/pic16/main.c (pic16_optionsTable): added command line option
8076         --optimize-cmp,
8077         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
8078         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
8079         macros,
8080         * src/pic16/NOTES: Raphael Neider added in list of active developers
8081         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
8082         jumptable_end to prevent bug #,
8083         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
8084         inCond and outCond fields,
8085         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
8086         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
8087         turn off register spilling,
8088         * (packRegsForOneUse): synced with other ports' versions although it
8089         is not used currently,
8090         * (pic16_packRegisters): added an optimization while reading
8091         structure bitfields, some registers may be saved (malloc code is
8092         decreased by 80 bytes)
8093
8094 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
8095
8096         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
8097         left is a bitfield, if yes, then don't optimize assignment. Perhaps
8098         this can be optimized more?
8099
8100 2005-03-10 Raphael Neider <rneider AT web.de>
8101
8102         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
8103           genNearPointerGet): (hopefully) fixed access to bitfields via
8104           pointers (p->bitN = x; and x = p->bitN; failed)
8105
8106 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
8107
8108         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
8109
8110 2005-03-09 Raphael Neider <rneider AT web.de>
8111
8112         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
8113
8114 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
8115
8116         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
8117         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
8118           (regTypeNum): set REG_BIT type if necessary
8119         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
8120         * support/regression/tests/critical.c: check bug 1144613
8121
8122 2005-03-02 Raphael Neider <rneider AT web.de>
8123
8124         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
8125
8126 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8127
8128         * src/avr/ralloc.c (serialRegAssign),
8129         * src/ds390/ralloc.c (serialRegAssign),
8130         * src/hc08/ralloc.c (serialRegAssign),
8131         * src/mcs51/ralloc.c (serialRegAssign),
8132         * src/pic/ralloc.c (serialRegAssign),
8133         * src/pic16/ralloc.c (serialRegAssign),
8134         * src/xa51/ralloc.c (serialRegAssign),
8135         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
8136
8137 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
8138
8139         * src/SDCCast.c (decorateType): fixed bug 1124787
8140
8141 2005-02-20 Hubert Sack <sack AT digiplan.de>
8142         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8143
8144         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
8145         patch #1121755
8146
8147 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8148
8149         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
8150         to keep the correct label reference count when adding/removing references
8151         to labels. A peephole file using this is appended to patch #1144962.
8152
8153 2005-02-14 Raphael Neider <rneider AT web.de>
8154
8155         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
8156         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
8157         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
8158           retrievals of result operand's value on assignment
8159
8160 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
8161
8162         * device/include/pic16/string.h: modified prototype for memccpy()
8163         to memccpy(void *, void *, char, size_t)
8164         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
8165         check whether to omit frame pointer or not,
8166         * (genInline): convert all occurences of "\n" to LF in inline
8167         assembler blocks, this helps formatting the inline text,
8168         * (pic16_loadFSR0): modified prototype,
8169         * (genNearPointerGet, genNearPointerSet): reorganization of code,
8170         removed some 8051 legacy code,
8171         * (genPackBits): enabled handling bitfields exceeding one byte in size,
8172         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
8173         before allocating temporary registers in functions,
8174
8175 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
8176
8177         * support/regression/tests/bitvars.c: corrected the "fix"
8178
8179 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
8180
8181         * support/regression/tests/bitvars.c,
8182         * support/regression/tests/bitwise.c,
8183         * support/regression/tests/rotate.c: "fixed" problems on Alpha
8184
8185 2005-02-10 Raphael Neider <rneider AT web.de>
8186
8187         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
8188           different size for Alpha
8189         * src/pic16/gen.c (genCmpEq) : improved compare with 0
8190
8191 2005-02-09 Raphael Neider <rneider AT web.de>
8192
8193         * src/SDCC.lex(doPragma) : save and restore warning options as well
8194           (also added new stack plus clone- and copyAndFreeSDCCERRG())
8195         * have #pragma less_pedantic set the errorlevel to WARNING
8196           (fixes #1117001)
8197         * (cloneOptimize) : fixed wrong malloc's size
8198         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
8199           facilitate correct handling of #pragma (save|restore)
8200
8201 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
8202
8203         * src/mcs51/gen.c: removed non-standard C nameless struct/union
8204
8205 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
8206
8207         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
8208
8209 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
8210
8211         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
8212
8213 2005-02-02 Raphael Neider <rneider AT web.de>
8214
8215         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
8216         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
8217         * (pic16_storeForReturn): fixed to allow returning function pointers
8218         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
8219         * device/include/pic16/{stddef.h,stdbool.h}: added
8220
8221 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
8222
8223         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
8224
8225 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
8226
8227         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
8228         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
8229          appeared to be required
8230
8231 2005-01-31 Borut Razem <borut.razem AT siol.net>
8232
8233         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
8234           include/mcs51 and include/z80 directories to the package
8235
8236 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8237
8238         * src/hc08/gen.c (genFunction): fixed bug #1112752
8239
8240 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8241
8242         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
8243
8244 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8245
8246         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
8247
8248 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
8249
8250         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
8251
8252 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
8253
8254         * device/include/c8051fxxx.h: removed these 6 files
8255         * device/include/mcs51/c8051fxxx.h: added these 11 new files
8256
8257 2005-01-26 Raphael Neider <rneider AT web.de>
8258
8259         * src/pic16/gen.c (genAssign): fixed assignment from longs
8260           in codespace (were cut to three bytes)
8261         * (genDummyRead): implemented (except for CODESPACE...),
8262           fixed bug #1108575
8263         * src/pic16/glue.c (emitStatistics): beautified
8264         * device/lib/pic16/libm/Makefile: added include path
8265
8266 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8267
8268         * src/z80/gen.c (aopPut): fixed bug #1103902
8269
8270 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8271
8272         * device/lib/expf.c: fixed bug #1095792
8273
8274 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
8275
8276         * device/lib/pic16/libm: added Math library sources
8277
8278 2005-01-24 Raphael Neider <rneider AT web.de>
8279
8280         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
8281           to enable upcast to pCodeOpReg2 (there is no type tag to
8282           differenciate the two and pic16_popGet2p cast into PCOR2)
8283         * src/pic16/main.c (_process_pragma): fixed another malloc bug
8284           (sizeof(sectNames) changed to sizeof(sectName))
8285           Both patches fix segfaults under MinGW.
8286
8287 2005-01-23 Raphael Neider <rneider AT web.de>
8288
8289         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
8290           Safe_[mc]?alloc()'ed variables
8291         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
8292           of (byte sized) temporaries (assign them to WREG for now)
8293         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
8294           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
8295           this might fix SIGSEGVs on MinGW...
8296         * src/SDCCopt.c (killDeadCode): restored original behaviour
8297           (volatile operands might get thrown away though)
8298
8299 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
8300
8301         * src/pic16/gen.c: fixed bug #1106975,
8302         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
8303         pointer update, INTCON is saved, global interrupts are disabled and
8304         restored after updateing TOS.
8305         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
8306         * added function attribute 'shadowregs' to take advantage of shadow
8307         registers,
8308         * added function attribute 'wparam' as an alternative to the wparam
8309         pragma,
8310         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
8311         user declares a non-ISR function as 'shadowregs',
8312         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
8313
8314 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
8315
8316         * .version: bumped version number to 2.4.8
8317         * device/lib/pic16/pics.all: list of PIC18F devices supported by
8318         pic16 port,
8319         * device/lib/pic16/libio/i2c/: I2C module support library,
8320         * device/include/pic16/i2c.h: I2C support library header,
8321         * device/lib/pic16/libc/stdio/: standard IO support sources,
8322         * (printf_small.c): printf_small() source, supports float print,
8323         * (printf_tiny.c): printf_tiny() source, does not support floats,
8324         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
8325         enable global optimizations for entire library source, other
8326         Makefiles in the source tree are also modified to reflect this,
8327         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
8328         function,
8329         * doc/sdccman.lyx: updated to reflect new changes,
8330         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
8331         sym->onStack if-case,
8332         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
8333         sbit, idata, _idata, xdata, _xdata,
8334         * added pragma library, to link an external library, (see doc),
8335         * removed command line options, --pomit-config-words, --pomit-ivt,
8336         --pleave-reset-vector,
8337         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
8338         when calling assembler to reflect memory model used, also define
8339         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
8340         reflect stack model used,
8341         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
8342         on stack return NULL,
8343
8344 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
8345
8346         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
8347           of the operands is volatile. Fixes #1020220
8348
8349 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
8350
8351         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
8352         * (OptimizeRegUsage): make sure that there is really no other flow where
8353           the first pCode is used
8354
8355 2005-01-22 Raphael Neider <rneider AT web.de>
8356
8357         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
8358           to fix #1106967 (pCode->seq are not set up correctly)
8359
8360 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8361
8362         * src/SDCCglue.c (glue): make sure code area is declared before the
8363         static initialization area.
8364
8365 2005-01-21 Raphael Neider <rneider AT web.de>
8366
8367         * device/lib/Makefile.in: fixed test for pic16 install dir
8368         * device/lib/pic16/*/Makefile*: modified compile flags to enable
8369           optimizations
8370         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
8371           added --optimize-goto compiler switch and pragma wparam documentation
8372         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
8373         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
8374           and PRODH closing bug #1071770 (peephole optimizer)
8375
8376 2005-01-19 Raphael Neider <rneider AT web.de>
8377
8378         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
8379           cmdLine buffers (used when calling sdcpp...) are large enough
8380           (MAX_PATH=256 truncates arguments leading to system halts when
8381           used in MinGW...)
8382         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
8383         * (genUminus): rewritten to for efficiency
8384         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
8385           used uninitialized in some cases)
8386         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
8387           copy the third byte from the int -- now assumes 0x80 (data memory)
8388         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
8389           operands (genAddLit expects the iCode's operands to swapped as
8390           well), fixed leftover bytes (crashed for short left operands)
8391         * (pic16_genMinusDec): performance improvements, removed false
8392           PIC14 emitSKPNCs
8393         * (pic16_genMinus): fixed to cope with differently sized operands
8394         * src/pic16/glue.c (pic16_glue): added new banksel optimization
8395           for --obanksel > 1
8396         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
8397         * src/pic16/graph.[ch]: implementation of directed graphs, used by
8398           new banksel optimization
8399         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
8400           analysis for temporary registers (segfaults...)
8401         * src/pic16/peeph.def: added rule
8402
8403 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
8404
8405         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
8406         which converts a float number to its ASCII representation
8407         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
8408         functions to convert the fractional and integer part of a float to ASCII,
8409         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
8410         realloc.c): added _MALLOC_SPEC to explicit place variables in data
8411         ram
8412         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
8413         _STATMEM macros,
8414         * device/include/pic16/adc.h: added GPL info,
8415         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
8416         a pCodeOp as tested operand,
8417         * (genNearPointerGet): optimized bit testing, does not use
8418         intermediate register for bit value, test directly instead with
8419         BTFSS, BTFSC, works only for single bits,
8420         * (genpic16Code): dump the name of the iCode in the asm,
8421         * src/pic16/ralloc.c (decodeOp): removed static declaration and
8422         renamed to pic16_decodeOp,
8423         * (serialRegAssign): do not allocate a temporary register for iCode
8424         sequences that test a single bit for 1/0
8425
8426 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
8427
8428         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
8429         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
8430         access stack and frame pointers. They are initially assigned to
8431         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
8432         accessing SFRs. Updated all occurences of modification of stack or
8433         frame pointer in gen.c and pcode.c,
8434         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
8435         assigning of a literal value to pointers,
8436         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
8437         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
8438         selected
8439
8440 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
8441
8442         * doc/sdccman.lyx: update documentation about stack pragma, added
8443         some info for stack memory models
8444
8445 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8446
8447         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
8448
8449 2005-01-08 Raphael Neider <rneider AT web.de>
8450
8451         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
8452           udata sections to fix bug #1097823
8453
8454 2005-01-05 Raphael Neider <rneider AT web.de>
8455
8456         * src/pic16/gen.c (genGenericShift): added handling of differently
8457           sized left operand and result
8458
8459 2005-01-04 Raphael Neider <rneider AT web.de>
8460
8461         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
8462         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
8463           to hold the condition bit)
8464         * added new version of genCmp (old code available via #define)
8465         * added new version of genShiftLeft/genShiftRight in a generic
8466           way, now supports shifting by negative values
8467         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
8468           shiftCount (expected by genGenericShift)
8469         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
8470         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
8471           dump
8472         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
8473           is an invalid literal too...)
8474
8475 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
8476
8477         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
8478         from Raphael Neider,
8479         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
8480         for 8-bit literals. This fixes some literal operands which are sign
8481         extended to 16-bits ints when instruction needs only 8-bits.
8482
8483 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
8484
8485         * device/lib/logf.c: added mcs51 assembly version
8486         * device/lib/expf.c: added mcs51 assembly version
8487         * device/lib/_logexpf.c: new shared asm code for expf and logf
8488         * device/include/math.h: add defines for assembly math library
8489         * device/lib/Makefile.in: build new _logexpf.c
8490         * device/lib/libfloat.lib: use new _logexpf.c
8491
8492 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
8493
8494         * src/pic/device.c
8495         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
8496           device types which have less than 0x7f registers.
8497
8498 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
8499
8500         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
8501
8502 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
8503
8504         * device/lib/printf_fast.c: only build on supported arch.
8505         * device/lib/printf_tiny.c: only build on supported arch.
8506         * device/lib/printf_fast_f.c: only build if asm float lib
8507         * device/lib/_fsget1arg.c: only build if asm float lib
8508         * device/lib/_fsget2args.c: only build if asm float lib
8509         * device/lib/_fsnormalize.c: only build if asm float lib
8510         * device/lib/_fsreturnval.c: only build if asm float lib
8511         * device/lib/_fsrshift.c: only build if asm float lib
8512         * device/lib/_fsswapargs.c: only build if asm float lib
8513         * device/include/stdio.h: don't provide print_fast,
8514           print_fast_f, print_tiny prototypes if --xstack used
8515
8516 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
8517
8518         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
8519         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
8520           to the SOURCES
8521
8522 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
8523
8524         * device/lib/printf_fast_f.c: same as printf_fast, but
8525           with floating point enabled
8526         * device/lib/printf_fast.c: minor tweaks
8527         * device/include/stdio.h: add printf_fast_f
8528
8529 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
8530
8531         * src/SDCCmain.c: make --float-reent default for mcs51
8532         * device/lib/_fsadd.c: added mcs51 assembly version
8533         * device/lib/_fssub.c: added mcs51 assembly version
8534         * device/lib/_fsmul.c: added mcs51 assembly version
8535         * device/lib/_fsdiv.c: added mcs51 assembly version
8536         * device/lib/_fseq.c: added mcs51 assembly version
8537         * device/lib/_fsneq.c: added mcs51 assembly version
8538         * device/lib/_fsgt.c: added mcs51 assembly version
8539         * device/lib/_fslt.c: added mcs51 assembly version
8540         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
8541         * device/lib/Makefile.in: add _fscmp to build
8542         * device/lib/libfloat.lib: add _fscmp to build
8543
8544 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
8545
8546         * device/lib/_fs2slong.c: added mcs51 assembly version
8547         * device/lib/_fs2sint.c: added mcs51 assembly version
8548         * device/lib/_fs2schar.c: added mcs51 assembly version
8549         * device/lib/_fs2ulong.c: added mcs51 assembly version
8550         * device/lib/_fs2uint.c: added mcs51 assembly version
8551         * device/lib/_fs2uchar.c: added mcs51 assembly version
8552         * device/lib/_slong2fs.c: added mcs51 assembly version
8553         * device/lib/_sint2fs.c: added mcs51 assembly version
8554         * device/lib/_schar2fs.c: added mcs51 assembly version
8555         * device/lib/_ulong2fs.c: added mcs51 assembly version
8556         * device/lib/_uint2fs.c: added mcs51 assembly version
8557         * device/lib/_uchar2fs.c: added mcs51 assembly version
8558         * device/include/float.h: added #define to select asm vs c
8559
8560 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
8561
8562         * device/lib/printf_fast.c: improvements to float output
8563         * device/include/float.h: add defines for assembly float library
8564         * device/lib/_fsget1arg.c: receive 1 float arg
8565         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
8566         * device/lib/_fsnormalize.c: normalize a float
8567         * device/lib/_fsreturnval.c: return float, various helper routines
8568         * device/lib/_fsrshift.c: right shift a float's mantissa
8569         * device/lib/_fsswapargs.c: swap 2 floats
8570         * device/lib/Makefile.in: build these 6 new files for mcs51
8571         * device/lib/libfloat.lib: add these 6 files to the library
8572
8573 2004-12-26 Borut Razem <borut.razem AT siol.net>
8574
8575         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
8576           built by gcc 3.4.2
8577
8578 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
8579
8580         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
8581           and fully reentrant and register bank neutral.
8582         * device/lib/printf_fast.c: added float (not enabled by default),
8583           added compact/slower integer (also not enabled by default),
8584           improved size/speed of fast integer code, other minor changes
8585         * device/include/stdio.h, device/lib/Makefile.in,
8586           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
8587
8588 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
8589
8590         * src/pic16/pcode.c: declaring variables other than at the start of a
8591           block is not supported in C by VC6.
8592
8593 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
8594
8595         * applied a previous patch from Raphael Neider that wasn't included
8596         in the previous commits, which fixes infinite loops within jumptable
8597         improvements,
8598         * made some fixes that previous patches introduced
8599
8600 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
8601
8602         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
8603         that fixes an issue with AOP_PCODE asmop's offset,
8604         * (pic16_popCopyReg): update instance field too,
8605         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
8606         function of pic port,
8607         * (genCmp, genAnd, genAssign),
8608         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
8609
8610 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
8611
8612         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
8613         variables initial values to idata section,
8614         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
8615         variables in some functions. This utilizes parmBytes field of iCode
8616         structure to hold the offset of the variable in stack. (might be
8617         able to use the stack field too?)
8618         * applied patch from Raphael Neider # ### , # ###
8619         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
8620         variable initial values in idata section,
8621         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
8622         for static variables with initial value
8623         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
8624         applied fix in while loop from Raphael Neider.
8625
8626 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
8627
8628         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
8629         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
8630         * src/ds390/ralloc.c (serialRegAssign): spill bits
8631         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
8632         * support/Util/SDCCerr.c,
8633         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
8634         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
8635         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
8636
8637 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
8638
8639         * device/include/sdcc-lib.h: inserted LGPL, added includes
8640           asm/ds390/features.h and asm/mcs51/features.h
8641         * device/include/asm/default/features.h,
8642         * device/include/asm/gbz80/features.h,
8643         * device/include/asm/z80/features.h: added empty _AUTOMEM
8644           and _STATMEM
8645         * device/include/asm/ds390/features.h,
8646         * device/include/asm/mcs51/features.h: added files with defines for
8647           _AUTOMEM and _STATMEM indicating automatic and static storage class
8648         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
8649         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
8650         * src/SDCCicode.c (geniCodeCast),
8651         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
8652         * src/SDCCloop.c (loopInduction): removed unused variable lr
8653         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
8654           to convertToFcall to include char modulo (RFE 1065037), added check
8655           if left operand is unsigned and use abs of literal value
8656         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
8657           as it doesn't work after conversion from peephole.def to peephole.rul
8658         * src/mcs51/gen.c (toBoolean): added check for size,
8659           (genModOneByte): optimized code for signed char modulo a literal
8660           power of 2 (thanks to Hubert Sack),
8661           (genRRC): removed unnecessary "clr c",
8662           (genRLC): replaced "add a,acc" with cheaper "rlc a"
8663         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
8664           jump optimization,
8665           swapped rules 256.c and 256.d,
8666           extended 256.d by using new multiple checks (thanks Erik),
8667           added rules 256.e and 256.f,
8668           updated rule 261.a and 261.b to new generated code
8669         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
8670
8671 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8672
8673         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
8674           induction related bugs, including first part of bug #1074377
8675
8676 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
8677
8678         * applied patch from bug-report #1076292,
8679         * applied patches for genAnd and Goto-optimizations for Raphael
8680         Neider,
8681         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
8682         dump a less iCode information,
8683         * src/pic16/device.h (pic16_options_t): added field debgen,
8684         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
8685         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
8686         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
8687         puclic,
8688         * (various functions): added macros FENTRY and FENTRY2 to functions,
8689         to emit function prologue,
8690         * (various functions): fixed indentation,
8691         * (genNearPointerGet): fixed loading of FSR0,
8692         * (genPackBits): applied patch from Raphael Neider to fix updating
8693         of FSR0 and touching only the modified bits,
8694         * src/pic16/genarith.c (various functions): added macros FENTRY to
8695         emit function prologue in comments,
8696         * src/pic16/pcode.h: added functions debugf2, debugf3,
8697         * src/pic16/ralloc.c: partial fix for packForPush caused
8698         segmentation fault,
8699
8700 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8701
8702         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
8703           <stsp AT users.sourceforge.net> with reversed byte order
8704         * support/regression/tests/rotate.c: added (ds390 skips some tests)
8705
8706 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8707
8708         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
8709           bug #1074377
8710         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
8711         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
8712
8713 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
8714
8715         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
8716
8717 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8718
8719         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
8720           conditions,
8721           (setFromConditionArgs): friendly operand parser for peephole rules,
8722           (operandBaseName, operandsNotRelated): new peephole condition
8723           "operandsNotRelated" -- similar to "operandsNotSame", but takes
8724           architecture specific register naming into account, handles n-way
8725           comparisons, and supports quoted literals
8726         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
8727
8728 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8729
8730         * src/mcs51/peeph.def: fixed bug #1076940
8731
8732 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
8733
8734         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
8735
8736 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8737
8738         Adding support for replacing ljmps with sjmps in jumptables
8739         generated for switch statements. For now you need to set the
8740         environment variable SDCC_SJMP_JUMPTABLE to enable this.
8741         Now 4 algorithms for mcs51 jumptable generation are used:
8742         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
8743         addresses loaded pc-relative for up to 112 cases and stack-pushing
8744         target addresses loaded with offset from dptr for up to 256 cases.
8745
8746         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
8747         * src/mcs51/main.c: adapted constants for switch table generation
8748         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
8749
8750 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
8751
8752         * device/lib/printf_large.c (_print_format): fixed bug 1073386
8753         * support/regression/tests/bug1057979.c: added test for bug 1073386
8754
8755 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
8756
8757         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
8758         compilers
8759
8760 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
8761
8762         * src/pic16/device.h,
8763         * src/pic16/genarith.c,
8764         * src/pic16/glue.c,
8765         * src/pic16/main.c,
8766         * src/pic16/pcode.c: applied patches #1068154 and #1070213
8767
8768 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
8769
8770         Large cummulative patch for pic16 port.
8771         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
8772         to call when a stack overflow occurs,
8773         * (malloc.h): added CVS Id tag,
8774         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
8775         variable,
8776         * added libc directory. The current version of LibC contains string
8777         functions, ctype functions and macros and some functions of the
8778         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
8779         be extensively tested in the future. Standard disclaimer here.
8780         Library is not automatically build yet. But one can build it by
8781         invoking 'make' inside the libc directory.
8782         * added ADC library under libio. Preliminary version yet.
8783
8784         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
8785         * src/pic16/gen.c (aopForRemat): asmop size is filled by
8786         aopForRemat() now and not by pic16_aopOp(),
8787         * (pic16_popGetTempReg): removed warning messgae when allocating
8788         temporary registers, its a buggy feature and will be removed,
8789         * (pic16_popGet): set register instance field in AOP_CRY,
8790         * (pic16_outBitC): fixed for results in size greater than 1,
8791         * (genUminusFloat): fixed for pic16, ported code from mcs51,
8792         * (pic16_storeForReturn): optimized return of 0,
8793         * (genCmp): experimental code for new genCmp which uses PIC18's
8794         special compare&skip instructions. Initial tests fail some times
8795         with variables grater than 1 byte in size, so new code is disabled,
8796         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
8797         a single bit,
8798         * (genCast): began a fix to optimize the casting of a bit to another
8799         bit, now assigning a bitfield to another bitfield will fail, sorry,
8800         * src/pic16/main.c: disabled the use of lr-support feature,
8801         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
8802         * added some function prototypes, added function _debugf prototype,
8803         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
8804         bits with offset (case PO_GPR_BIT),
8805         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
8806         command line,
8807         * (isBankInstruction): modified to return 0 for no banking instruction,
8808         and 1 for banking instruction,
8809         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
8810         caused stop processing pCodes after a inline assembly block,
8811         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
8812         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
8813         registers when it shouldn't,
8814         * src/pic16/ralloc.c (allocReg): add preliminary support for
8815         supporting a limited set of temporary registers,
8816
8817 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8818
8819         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
8820           genDataPointerSet): ensure assignments always copy in MSB to LSB
8821           order,
8822           (loadRegFromAop): recognize CLRH optimization,
8823           (genFunction): optimize RECEIVE iCodes in reentrant functions
8824
8825 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8826
8827         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
8828           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
8829           selected.
8830         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
8831         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
8832           contiguous with data
8833
8834 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8835
8836         * device/lib/_gptrget.c (_gptrget),
8837         * device/lib/_gptrgetc.c (_gptrgetc),
8838         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
8839           instead of sjmp to ret
8840         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
8841           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
8842
8843 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
8844
8845         * .version: bumped version to 2.4.7
8846         * device/lib/_gptrget.c (_gptrget): is now _naked
8847         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
8848         * device/lib/_gptrput.c (_gptrput): is now _naked
8849         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
8850           (createFunction): fixed xstack
8851         * src/SDCCglue.c (emitMaps): set allocation required for bit area
8852         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
8853           or bit either,
8854           (geniCodeCritical): store original interrupt state in an iTemp bit
8855           var unless stack-auto
8856         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
8857         * src/SDCCmain.c (setIncludePath): added include/target to search path
8858         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
8859         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
8860           prototype,
8861           (processFuncArgs): put bit vars in bit area
8862         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
8863           unsaveRBank): fixed xstack,
8864           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
8865           (genFunction, genEndFunction): fixed xstack,
8866           (genAssign): optimization don't walk backwards through mem
8867         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
8868         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
8869         * support/regression/Makefile: also make library (for stack-auto) when
8870           making "all" and added "test-mcs51-xstack-auto"
8871         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
8872         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
8873         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
8874         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
8875         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
8876           make-library by MAKE_LIBRARY
8877         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
8878           regression tests for xstack
8879         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
8880         * support/regression/tests/critical.c: test for critical on mcs51
8881
8882 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8883
8884         * support/regression/ports/ucz80/spec.mk: use include and lib files from
8885           built version of sdcc instead of installed version
8886
8887 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
8888
8889         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
8890         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
8891           vprintf.c now
8892         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
8893         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
8894           WARNING: remove device/lib/build/z80/printf.o by hand when
8895           updating from previous build!
8896         * device/lib/z80/printf.c: updated comment
8897         * support/regression/tests/bug1057979.c: test all ports now
8898         * support/regression/tests/bug1065458.c: file added
8899
8900 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8901
8902         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
8903           *_start and *_end symbols for static functions
8904
8905 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
8906
8907         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
8908           and search crt0.o in all library paths,
8909           (setIncludePath): proper handling of --nostdinc,
8910           (setLibPath): proper handling of --nostdlib
8911         * support/regression/Makefile,
8912         * support/regression/ports/ds390/spec.mk,
8913         * support/regression/ports/gbz80/spec.mk,
8914         * support/regression/ports/hc08/spec.mk,
8915         * support/regression/ports/mcs51/spec.mk,
8916         * support/regression/ports/mcs51-large/spec.mk,
8917         * support/regression/ports/mcs51-stack-auto/spec.mk,
8918         * support/regression/ports/z80/spec.mk: use include and lib files from
8919           built version of sdcc instead of installed version
8920         * doc/sdccman.lyx: fixed typo in --nostdinc
8921
8922 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
8923
8924         * src/pic/pcode.c,
8925         * src/pic/device.c,
8926         * src/pic/ralloc.c,
8927         * src/pic/gen.c : added support to generate code for struct bit fields.
8928
8929 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
8930
8931         * as/xa51/xa_version.h,
8932         * device/include/errno.h,
8933         * device/include/regc515c.h,
8934         * device/lib/_itoa.c,
8935         * device/lib/_ltoa.c,
8936         * device/lib/ser_ir_cts_rts.c,
8937         * sim/ucsim/xa.src/glob.cc,
8938         * sim/ucsim/xa.src/inst_gen.cc,
8939         * sim/ucsim/xa.src/xa_bit.cc,
8940         * sim/ucsim/xa.src/xa_sfr.cc,
8941         * sim/ucsim/z80.src/inst_dd.cc,
8942         * sim/ucsim/z80.src/inst_fdcb.cc,
8943         * support/scripts/keil2sdcc.pl,
8944         * src/pic16/pic16.dsp,
8945         * src/pic16/pic16a.dsp: corrected cvs line endings
8946         * device/lib/printf_large.c: fixed bug 1057979
8947         * src/pic16/gen.c: fixed non-C standard code
8948         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
8949         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
8950         * support/regression/ports/mcs51/support.c: reload T1 asap
8951         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
8952           pdata use and clear idata startup behaviour
8953         * support/regression/tests/bug1057979.c: added
8954
8955 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
8956
8957         * device/examples/ds390/ow390/ad26.h,
8958         * device/examples/ds390/ow390/cnt1d.h,
8959         * device/examples/ds390/ow390/crcutil.c,
8960         * device/examples/ds390/ow390/ownet.h,
8961         * device/examples/ds390/ow390/owsesu.c,
8962         * device/examples/ds390/ow390/swt12.h,
8963         * device/examples/ds390/ow390/swtoper.c,
8964         * device/examples/ds390/ow390/temp10.h,
8965         * device/examples/ds390/ow390/thermodl.c,
8966         * device/examples/ds390/tinitalk/tinitalk.dsp,
8967         * device/examples/ds390/tinitalk/tinitalk.dsw,
8968         * device/examples/mcs51/clock/hw.h,
8969         * device/examples/mcs51/simple2/go.bat,
8970         * device/examples/serialcomm/windows/serial.h,
8971         * device/examples/xa51/dummy.c,
8972         * device/examples/xa51/hello.c,
8973         * device/include/80c51xa.h,
8974         * device/include/at89x051.h: corrected cvs line endings
8975
8976 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
8977
8978         * src/pic16/main.c (options): added command line --gstack, to trace
8979         stack over/under flows,
8980         * added pragma 'wparam' to allow passing first byte of function
8981         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
8982         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
8983         call to __gstack_test function and sets up the symbol as extern,
8984         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
8985         * popaop): added call to pic16_testStackOverflow,
8986         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
8987         wparamList list,
8988         * (genCall, genPcall): now all parameters are passed via stack
8989         except in functions that are pass to wparam pragma in which WREG is
8990         used too,
8991         * (genPcall): REENTRANT flag is checked to see if variable prototype
8992         contains reentrant keyword, don't call a non-reentrant function, via
8993         a reentrant function pointer or vice versa, functions are never
8994         passed via WREG,
8995         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
8996         D.Winkler,
8997         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
8998         SIGSEGV when accessing a NULL register stucture,
8999         * (pic16_printGPointerType): modified to handle UPPER modifier for
9000         function initializers, changed prototype of function to simpler one,
9001         * (pic16_printIvalFuncPtr): check to see if function is already
9002         added in externs list,
9003         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
9004         optimized a move from W to SFR with a move to the same register
9005         later after a CALL,
9006         * device/lib/pic16/debug: NEW directory, contains debug features
9007         which are enabled when linking with libdebug.lib, currently command
9008         line option --gstack enables stack pointer tracing for over/under
9009         flow, corresponding sources are in debug/gstack
9010
9011 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
9012
9013         * doc/sdccman.lyx: updated SDCC version,
9014         * (PIC16 port): update list of command line options,
9015         * src/pic16/device.h (structure pic16_options_t): added field gstack
9016         to enable stack overflow tracing on push/pops,
9017         * src/pic16/device.c (statistics structure): added statistics
9018         structure,
9019         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
9020         pic16_dump_int_registers): increase statistics counters for each
9021         * variable which is encountered
9022         * (pic16_dump_usection): emit each .udata variable to its own udata
9023         section,
9024         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
9025         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
9026         parameters via stack, otherwise use old scheme,
9027         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
9028         assembler output file,
9029         * src/pic16/main.c: added command line options --gstack to enable
9030         push/pop tracing for stack overflow,
9031         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
9032         instructions): added size of each instruction,
9033         * (pic16_countInstruction): estimate size of instructions in
9034         the_pFile list, inline assembly blocks are not counted,
9035         * (pic16_FixRegisterBanking): trace previous register usage, when
9036         banksel optimizations is greater than 0, don't emit a redudant
9037         banksel directive,
9038
9039 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
9040
9041         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
9042         * src/pic16/ralloc.c : applied same fix for pic16.
9043         * src/pic/gen.c : tidied it up a little.
9044
9045 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9046
9047         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
9048         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
9049
9050 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9051
9052         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
9053
9054 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9055
9056         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
9057         non-reentrant function __modsint in the interrupt function (thus
9058         corrupting math operations during serial I/O)
9059         * device/lib/ser_ir.c: as above, changed buffersize
9060         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
9061         256.c,d for zeroing
9062         * doc/Makefile: added option -t for rsync
9063
9064 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9065
9066         * src/SDCCast.h (struct ast),
9067         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
9068
9069 2004-10-20 Borut Razem <borut.razem AT siol.net>
9070
9071         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
9072         package
9073
9074 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
9075
9076         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
9077         makefile targets,
9078         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
9079         support functions to replace long sequences of MOVFF's from access
9080         bank registers to stack and vice versa,
9081         * src/pic16/device.h: added new field opt_flags, where optimization
9082         flags can be set to enable certain features,
9083         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
9084         * pBlock, (genFunction, genEndFunction): surroung loop for
9085         saving/loading used registers in stack with PC_INFO pCodes,
9086         INF_LREGS. Code in between can then be optimized by pCode optimizer
9087         to support function calls,
9088         * (genDataPointerSet): fixed bug which loaded float fields in
9089         structures with corrupt data,
9090         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
9091         in a standard way debug info on stderr. Feature used for developing
9092         and debugging only,
9093         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
9094         obsolete chunks of code,
9095         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
9096         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
9097         * pic16/src/pcode.c (pic16_newpCodeInfo,
9098         * (pic16_newpCodeOpLocalRegs),
9099         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
9100         feature,
9101         * (pic16_pCodeConstString): printing of the initial value of a
9102         symbol as a comment is inhibited since parsing was already done by
9103         copyStr and output is corrupt,
9104         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
9105
9106 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9107
9108         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
9109
9110 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
9111
9112         * as/mcs51/lkarea.c: removed old K&R style,
9113           (lnksect): changed check on boundary error,
9114           (lnksect2): changed check on boundary error,
9115           (lnksect2): extend XSTK to end of page if size = 1
9116         * as/mcs51/lkmain.c: removed old K&R style,
9117           (Areas51): create l_IRAM symbol
9118         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
9119         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
9120           model-mcs51-stack-auto, added model-mcs51-xstack-auto
9121         * device/lib/_mullong.c: added version to be compiled with xstack
9122         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
9123         * device/lib/mcs51/crtxclear.asm: clear pdata as well
9124         * device/lib/mcs51/crtxstack.asm: fixed comment
9125         * src/SDCCglue.c: maxInterrupts defaults to 0,
9126           (emitMaps): added pdata,
9127           (createInterruptVect): (re)moved default,
9128           (glue): added pdata,
9129           (glue): moved __start__xstack to XSTK with default size 1
9130         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
9131           and options.float_rent when options.stackAuto is set,
9132           (linkEdit): only write XDATA_NAME if provided on command line
9133         * src/SDCCmem.h,
9134         * src/SDCCmem.c: added pdata
9135         * src/port.h: added pdata_name to PORT
9136         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
9137           (saveRegisters, unsaveRegisters): removed usage of B,
9138           (genMinus): fixed accumulator clash,
9139           (genJumpTab): added comment, this needs another look
9140         * src/mcs51/gen.c: added check for "B in use" paranoia,
9141           added pushB() and popB()
9142         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
9143           chance
9144         * src/avr/main.c,
9145         * src/ds390/main.c,
9146         * src/hc08/main.c,
9147         * src/mcs51/main.c,
9148         * src/pic/main.c,
9149         * src/pic16/main.c,
9150         * src/xa51/main.c,
9151         * src/z80/main.c: (reset_regparms) made void parameter explicit and
9152           added PSEG (PAG,XDATA) or NULL to port specifier
9153         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
9154         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
9155           (_mcs51_genInitStartup): removed __start__xstack equ,
9156           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
9157         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
9158         * src/z80/gen.c (_rleAppend): fixed warnings
9159         * support/regression/tests/zeropad.c: added pdata test
9160         * .version: bumped to 2.4.6
9161
9162 2004-10-17 Borut Razem <borut.razem AT siol.net>
9163
9164         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
9165         as a part of nightly build
9166
9167 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
9168
9169         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
9170         WREG holds the first byte function parameters,
9171         * (aopForSym): take special case for symbols which are in FARSPACE
9172         but in CODESPACE too,
9173         * (assignResultValue): modified to take into account _G.useWreg,
9174         * (genCall): don't use wreg for parameter passing when function is
9175         declared as reentrant, too, added optimization INCF to stack
9176         pointer when stack parameter count is 1,
9177         * (genFunction, genEndFunction): refurnished and fixed to not using
9178         wreg for passing parameters when function has varargs or is
9179         reentrant, fixed bug with symbol name compare for generating
9180         functions in absolute address,
9181         * (pic16_storeForReturn): refurnished,
9182         * (genCmp): began writing a new version of the function, not ready
9183         yet, therefore it is disabled,
9184         * (genAssign): do not read code memory when assigning a function to
9185         a pointer function,
9186         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
9187         array of characters, not pointer,
9188         * (pic16initialComments): in debug mode emit an .ident directive for
9189         the assembler,
9190         * (_process_pragma): emit a new warning type (internal to pic16)
9191         when setting stack to default length, emit a similar warning when
9192         placing a function at absolute address and address is not word aligned
9193         * (_pic16_parseOptions): added 'return TRUE' statement,
9194         * (_pic16_linkEdit): if compiling a source, then add the source's
9195         file object, first in the list of objects to link,
9196
9197 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
9198
9199         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
9200         * src/pic/main.c : removed VC warning.
9201         * src/pic/gen.c : changed comment.
9202
9203 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
9204
9205         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
9206         reference to a deprecated symbol _GPTRREG was causing failure to
9207         link. Thanks G. M. Gallant for the info.
9208
9209 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
9210
9211         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
9212         comments for Bugs item #954788.
9213
9214 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
9215
9216         * src/pic16/device.c (pic16_dump_gsection,
9217         * pic16_groupRegistersInSection): handle symbols declared to be in
9218         access bank differently,
9219         * src/pic16/gen.c (struct _G): added field resDirect,
9220         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
9221         send values read from stack directly to result and don't allocate
9222         temporary values,
9223         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
9224         same registers,
9225         * (pic16_sameRegsOfs): NEW,
9226         * (freeAsmop): if _G.resDirect is set then do not mark registers as
9227         free because they were not allocated from temporary pool,
9228         * pic16_popRegFromString): workaround to fix a problem with
9229         allocating variables twice or never,
9230         * (genGenPointerGet): using PRODL instead of FSR0H,
9231         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
9232         instead of FSR0H,
9233         * (genAssign): take advantage of the _G.resDirect flag,
9234         * (genCast): around line 11844, use mov2f instead of directly
9235         MOVFF'ing between operands to account for literal values,
9236         * src/pic16/genutils.c: some new debug functions for gpsim have been
9237         added,
9238         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
9239         float with integer part only,
9240         * src/pic16/main.c (_process_pragma): handle pragma udata access to
9241         place variables in access bank
9242         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
9243         updated sources to reflect recent changes in gen.c
9244
9245 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
9246
9247         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
9248         sources that searched for headers in installation path, now the
9249         device/include/pic16 is used,
9250         * src/pic16/glue.c (pic16glue),
9251         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
9252         .line directives if not in debug mode, this suppresses assembler's
9253         warnings for ignored directives
9254
9255 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
9256
9257         * src/port.h: made reset_regparms prototype void parameter explicit.
9258         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
9259         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
9260         * doc/sdccman.lyx: documented warning disabling and how to use
9261           printf_large to make it print floats.
9262         * device/include/stdbool.h: NEW
9263         * device/lib/_atof.c,
9264         * device/lib/_divuint.c,
9265         * device/lib/_divulong.c,
9266         * device/lib/expf.c,
9267         * device/lib/printf_large.c,
9268         * device/lib/sincosf.c,
9269         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
9270         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
9271           a completely reentrant lib.
9272
9273 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
9274
9275         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
9276         * device/include/pic16/stdio.h: fixed bug with colon
9277
9278 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
9279
9280         * device/include/pic16/stdio.h,
9281         * device/include/pic16/stdlib.h,
9282         * device/include/pic16/math.h: NEW
9283         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
9284         declared as _naked to reduce overhead
9285         * device/lib/Makefile.in (target port-specific-objects-pic16):
9286         changed * to *.* so to ignore the CVS directory,
9287         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
9288         stacked variables back in stack,
9289         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
9290         corruption
9291
9292 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
9293
9294         * .version: bumped version number to 2.4.5
9295         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
9296         * support/Util/SDCCerr.c (messages structure): added entry for
9297         W_POSSBUG2
9298
9299         Large cumulative patch for pic16 port and libraries.
9300         * device/include/pic16/sdcc-lib.h,
9301         * device/include/pic16/stdarg.h,
9302         * device/include/asm/pic16/features.h,
9303         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
9304         * device/include/pic16/float.h: changes reentrant keyword with
9305         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
9306         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
9307         updated target build-libraries to include objects from gptr,
9308         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
9309         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
9310         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
9311         all function headings,
9312         * src/SDCCmain.c: added global parameter userIncDirsSet,
9313         * (parseCmdLine): when option -I is encountered add directory to
9314         userIncDirsSet too,
9315         * src/version.awk: added space between control and long,
9316         * src/pic16/NOTES: added some notes for the port,
9317         * src/pic16/gen.c: added prototype for mov2fp function,
9318         * (fReturnpic16[]): properly named return value registers,
9319         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
9320         * (aopForSym): added code to handle symbols with onStack flag set,
9321         symbols onStack are allocated PTRSIZE bytes,
9322         * (aopFreeAsmop): handles special case where asmops are stack objects,
9323         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
9324         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
9325         added argument lock to trace flaws in allocating temporary registers
9326         when developing port,
9327         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
9328         * (pic16_popRegFromString): reenabled allocating a direct register
9329         from string,
9330         * (assignResultValue): various beautifications,
9331         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
9332         referenced function argument,
9333         * (genIpush): reenabled to allow stacked arguments, handles only
9334         ic->parmPush iCodes,
9335         * (genCall, genPcall): major changes to allow for variable argument
9336         functions, fixed a bug with falsely restoring stack pointer after
9337         returning from call,
9338         * (genFunction): pending code for critical function,
9339         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
9340         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
9341         * (genNearPointerGet): fixed bug with indirect reading, was always
9342         reading from INDF0
9343         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
9344         pointers,
9345         * (genAddrOf): rewrote code to take address of a stacked function parameter
9346         * (genCast): fixed casting to generic pointer type,
9347         * src/pic16/gen.h: added AOP_STA,
9348         * (struct asmop): added field stk,
9349         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
9350         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
9351         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
9352         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
9353         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
9354         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
9355         generic pointers,
9356         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
9357         and library paths,
9358         * (pic16_port structure): generic pointer size is set to 3,
9359         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
9360         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
9361         compiler warning,
9362         * src/pic16/ralloc.c (allocReg): prevent allocating register when
9363         operand is an iTemp,
9364
9365 2004-09-24 Martin Helmling <mh AT octo-soft.de>
9366
9367         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
9368         * debugger/mcs51/simi.c: addapt new syntax of s51
9369
9370 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
9371
9372         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
9373         * src/pic16/pcode.c: commented out some calls to free() in order to
9374         fix bug #989576,
9375
9376 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9377
9378         * src/SDCCicode.h,
9379         * src/SDCCicode.c (isiCodeInFunctionCall),
9380         * src/avr/ralloc.c (selectSpil),
9381         * src/pic/ralloc.c (selectSpil),
9382         * src/pic16/ralloc.c (selectSpil),
9383         * src/ds390/ralloc.c (selectSpil),
9384         * src/hc08/ralloc.c (selectSpil),
9385         * src/xa51/ralloc.c (selectSpil),
9386         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
9387         stack in the middle of a function call sequence (fixes bug #1020268)
9388         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
9389         costs associated with the minimum switch case.
9390
9391 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9392
9393         * src/SDCC.lex: fixed bug #1030549
9394
9395 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9396
9397         * src/SDCCcse.h (struct cseDef),
9398         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
9399         over a function call if the CSE is derived from a symbol whose
9400         address has been taken (fixes bug #1029883)
9401         * support/regression/tests/bug-1029883: a new regression test for
9402         this bug
9403
9404 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9405
9406         * src/hc08/gen.c (emitinline): fixed bug #1029778
9407         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
9408         to a cast object is no longer a syntax error ("fixes" bug #1030006,
9409         and starts toward RFE #905167)
9410
9411 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
9412
9413         * src/pic16/gen.c (mov2f): New function to move an operand to
9414         another without considering if it is a literal or a register,
9415         * (pic16_sameRegs): don't check if they are both AOP_REG,
9416         * (AccRsh): removed andmask=0 lines,
9417         * (genLeftShift): duplicated to be improved in future versions,
9418         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
9419         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
9420         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
9421         * (pic16initMnemonics): added initialization for POC_INFSNZW,
9422         * (insertBankSwitch): fixed inserting banksel directives algorithm
9423         for instructions that follow a skip instruction, this fixes a report
9424         for broken subtraction code generation,
9425         * src/pic16/ralloc.c (deassignLRs): do not free register if current
9426         iCode is a left op, just in case result and right share the same
9427         registers
9428
9429 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9430
9431         * src/hc08/main.c,
9432         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
9433         preservation of HX
9434         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
9435         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
9436         on 2004-09-12; it was buggy
9437
9438 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
9439
9440         * src/SDCCsymt.h: removed RESULT_CHECK
9441         * src/SDCCast.c,
9442         * src/SDCCglue.c,
9443         * src/SDCCval.c,
9444         * src/pic/glue.c,
9445         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
9446
9447 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
9448
9449         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
9450         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
9451         configuration values no more rejected by compiler, they are assigned
9452         to configuration registers with a warning message instead,
9453         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
9454         the for-loop so last conf register is emitted too,
9455         * (_pic16_initPaths): link library libsdcc.lib by default,
9456         * (_hasNativeMulFor): modified test for multiplication according to
9457         Raphael Neider's remarks. Integer multiplication is also done with
9458         support functions,
9459         * device/include/pic16/pic18fregs.h: corrected type error in while
9460         testing and including 18f6720 header file
9461
9462 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
9463
9464         * src/pic16/device.h (pic16_options): removed field use_crt,
9465         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
9466         until an optimization to handle single bits is added,
9467         * (pic16_loadFSR0): moved before genUnpackBits,
9468         * (genAnd): some white lines removed,
9469         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
9470         leave_reset flags in pic16_options when using crt modules,
9471
9472 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
9473
9474         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
9475           for bugs 898889 & 979599. Also used some safer print instructions.
9476
9477 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
9478
9479         * src/pic16/device.h (pic16_options_t): added field use_crt,
9480         crt_name, no_crt,
9481         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
9482         catch a probable future bug,
9483         * src/pic16/gen.c: aopIdx function commented out,
9484         * (genAssign): commented out old code which used aopIdx,
9485         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
9486         code, added if conditionals to take into account the --use-crt
9487         command line options,
9488         * src/pic16/main.c (pic16_optionsTable): added new command line
9489         options, --use-crt= and --no-crt,
9490         * (_pic16_linkEdit): now the proper crt object is added in the
9491         linker command line except than when --no-crt is specified,
9492         * src/pic16/pcode.c,
9493         * src/pic16/pcode.h: added some structures and functions for a new
9494         optimization scheme to compansate for instruction overhead between
9495         same iCodes, this scheme is currently under development and is not
9496         working in any way,
9497         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
9498         to && operator,
9499         * device/lib/pic16/startup/crt0i.c,
9500         * device/lib/pic16/startup/crt0iz.c: added global char variable
9501         __uflags to force the generation of an idata section
9502
9503 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
9504
9505         * doc/Makefile,
9506         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
9507         * doc/sdccman.lyx: updated sdcc version to 2.4.4
9508
9509 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9510
9511         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
9512         Frieder) and clarified the default code optimization mode
9513
9514 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9515
9516         * src/SDCC.lex (doPragma, process_pragma),
9517         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
9518         "opt_code_size", and "opt_code_balanced"
9519         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
9520         regrouped options by category, added support for category headers
9521         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
9522         and "--opt-code-size"
9523         * doc/sdccman.lyx: documented these new options and pragmas
9524         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
9525         preference into account
9526
9527 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
9528
9529         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
9530           geniCodePreDec): Fixed bug 904237 by generating a warning
9531         * src/SDCCerr.h,
9532         * src/SDCCerr.c: added warning W_SIZEOF_VOID
9533
9534 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
9535
9536         * src/pic/device.c : When no max ram set validate full memory range.
9537         * src/pic/pcode.c,
9538         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
9539
9540 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
9541
9542         * device/lib/_gptrget.c,
9543         * device/lib/_gptrput.c: updated comment
9544         * device/lib/calloc.c,
9545         * device/lib/free.c,
9546         * device/lib/malloc.c,
9547         * device/lib/realloc.c: added LGPL, made them reentrant-safe
9548         * src/SDCCcse.c (cseBBlock),
9549         * src/SDCCicode.c (printOperand, geniCodeArray),
9550         * src/SDCCicode.h (struct operand): fixed bug 868103
9551         * support/regression/tests/bug-868103.c: added
9552         * src/SDCCast.c (searchLitOp),
9553         * src/SDCCcse.h (struct cseDef),
9554         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
9555         * src/SDCCicode.h (struct operand),
9556         * src/SDCCsymt.h (struct sym_link),
9557         * src/avr/gen.c (hasInc),
9558         * src/ds390/gen.c (hasInc),
9559         * src/hc08/gen.c (genPlusIncr, hasInc),
9560         * src/mcs51/gen.c (hasInc),
9561         * src/pic16/glue.c (pic16_printIvalChar),
9562         * src/pic16/ralloc.c (regWithIdx),
9563         * src/xa51/gen.c (hasInc) : removed warnings
9564         * src/SDCCast.c (createBlock): added comment ???
9565         * src/hc08/ralloc.c: updated comments
9566
9567 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9568
9569         * doc/sdccman.lyx: updated section on switch statements, added
9570         section about semaphore locking
9571         * doc/Makefile: added option -info for latex2html
9572         * device/lib/_gptrget.c,
9573         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
9574
9575 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
9576
9577         * src/pic/device.h,
9578         * src/pic/device.c,
9579         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
9580          maxram is less than 0x100.
9581
9582 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
9583
9584         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
9585
9586 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9587
9588         * src/port.h,
9589         * src/mcs51/main.c,
9590         * src/ds390/main.c,
9591         * src/z80/main.c,
9592         * src/hc08/main.c,
9593         * src/pic/main.c,
9594         * src/pic16/main.c,
9595         * src/avr/main.c,
9596         * src/xa51/main.c
9597         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
9598         a jump table is the best form for a switch statement, including
9599         automatic insertion of missing cases to make the case range
9600         continuous. Developed in collaboration with Frieder Ferlemann.
9601
9602 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9603
9604         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
9605         accumulator result if it needs sign extension
9606
9607 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9608
9609         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
9610
9611 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9612
9613         * device/lib/gbz80/printf.c,
9614         * device/lib/z80/printf.c: removed define for NULL
9615
9616 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9617
9618         * as/xa51/xa_link.c,
9619         * device/examples/ds390/ow390/ad26.c,
9620         * device/examples/ds390/ow390/cnt1d.c,
9621         * device/examples/ds390/ow390/counter.c,
9622         * device/examples/ds390/ow390/ds2480.h,
9623         * device/examples/ds390/ow390/ds2480ut.c,
9624         * device/examples/ds390/ow390/findtype.c,
9625         * device/examples/ds390/ow390/gethumd.c,
9626         * device/examples/ds390/ow390/owllu.c,
9627         * device/examples/ds390/ow390/ownetu.c,
9628         * device/examples/ds390/ow390/swt12.c,
9629         * device/examples/ds390/ow390/swtloop.c,
9630         * device/examples/ds390/ow390/temp.c,
9631         * device/examples/ds390/ow390/temp10.c,
9632         * device/examples/ds390/ow390/thermo21.c,
9633         * device/examples/ds390/ow390/tinilnk.c,
9634         * device/examples/ds390/ow390/tstfind.c,
9635         * device/examples/serialcomm/windows/serial.cpp,
9636         * device/examples/serialcomm/windows/test_serialcomm.cpp,
9637         * device/include/reg51.h: fixed line endings for cvs
9638
9639 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9640
9641         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
9642         packRegsForAccUse, packRegisters): new accumulator register
9643         packing algorithm
9644         * support/regression/ports/hc08/support.c (_putchar): suppress
9645         warning of unused variable
9646         * src/SDCCicode.c: added SWAP entry to codeTable
9647
9648 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
9649
9650         * device/lib/sprintf.c: forgot to add this file before previous commit
9651
9652 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
9653
9654         * src/pic16/gen.c (genPackBits): added operand right in function
9655         parameters, load result directly if p_type is POINTER (that is
9656         called by genNearPointerSet)
9657         * (genUnPackBits): added operand left in function parameters,
9658         * (genNearPointerGet, genNearPointerSet): prevent the loading of
9659         FSR0 if accessing bitfields,
9660
9661 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
9662
9663         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
9664           _print_format; updated printf, sprintf, vsprintf
9665         * device/include/asm/default/features.h: corrected comment/define
9666         * device/lib/Makefile.in: added sprintf.c
9667         * device/lib/libsdcc.lib: added sprintf module
9668         * device/lib/printf_large.c,
9669         * device/lib/vprintf.c,
9670         * device/lib/sprintf.c: totally refactored printf_large and vprintf
9671           into these 3 files
9672         * support/regression/Makefile: changed ALL_PORTS into a usefull default
9673         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
9674         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
9675           hc08 test
9676         * support/regression/tests/zeropad.c: define idata as data for hc08
9677
9678 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9679
9680         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
9681         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
9682         labels are referenced at least once (even if a reference is not found)
9683         * src/hc08/gen.c (emitcode): set isComment flag for comments
9684         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
9685         loads), rules 6a..6b (optimize jumps to return)
9686
9687 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9688
9689         * device/lib/acosf.c (acosf),
9690         * device/lib/asinf.c (asinf),
9691         * device/lib/atanf.c (atanf),
9692         * device/lib/ceilf.c (ceilf),
9693         * device/lib/cosf.c (cosf),
9694         * device/lib/coshf.c (coshf),
9695         * device/lib/cotf.c (cotf),
9696         * device/lib/fabsf.c (fabsf),
9697         * device/lib/floorf.c (floorf),
9698         * device/lib/log10f.c (log10f),
9699         * device/lib/logf.c (logf),
9700         * device/lib/sinf.c (sinf),
9701         * device/lib/sinhf.c (sinhf),
9702         * device/lib/sqrtf.c (sqrtf),
9703         * device/lib/tanf.c (tanf),
9704         * device/lib/tanhf.c (tanhf),
9705         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
9706         replaced all instances of "reentrant" in the library functions
9707         defined in math.h with this macro.
9708         * support/regression/tests/float_trans.c: reenabled test for hc08
9709
9710 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
9711
9712         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
9713         erroneously deleted
9714
9715 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9716
9717         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
9718         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
9719         multi-byte volatile operands are used
9720         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
9721         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
9722         initialization to area GSINIT0 so that it would always precede
9723         any static initializers in GSINIT
9724         * support/regression/tests/zeropad.c: fixed idata define for hc08
9725         * support/regression/tests/bug-927659.c,
9726         * support/regression/tests/float_trans.c: disabled tests for hc08
9727         pending missing library routines
9728         * .version: increased version number to 2.4.4 - hc08 port now passes
9729         regression tests
9730
9731
9732 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
9733
9734         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
9735         * Makefile.common.in,
9736         * as/Makefile,
9737         * as/hc08/Makefile.in,
9738         * as/mcs51/Makefile.in,
9739         * as/z80/Makefile.in,
9740         * debugger/mcs51/Makefile.in,
9741         * device/include/Makefile.in,
9742         * device/lib/Makefile.in,
9743         * doc/Makefile,
9744         * link/Makefile,
9745         * link/z80/Makefile.in,
9746         * packihx/Makefile.in,
9747         * sim/ucsim/main_in.mk,
9748         * sim/ucsim/avr.src/Makefile.in,
9749         * sim/ucsim/doc/Makefile.in,
9750         * sim/ucsim/gui.src/serio.src/Makefile.in,
9751         * sim/ucsim/hc08.src/Makefile.in,
9752         * sim/ucsim/s51.src/Makefile.in,
9753         * sim/ucsim/xa.src/Makefile.in,
9754         * sim/ucsim/z80.src/Makefile.in,
9755         * src/Makefile.in,
9756         * support/cpp2/Makefile.in,
9757         * support/librarian/Makefile,
9758         * support/makebin/Makefile: added DESTDIR to the install path proposed
9759         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
9760         * doc/sdccman.lyx: added DESTDIR documentation
9761
9762 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
9763
9764         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
9765         instruction for interrupt handlers, use fast returns when returning
9766         from high priority interrupts
9767
9768 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9769
9770         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
9771         code generation
9772         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
9773         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
9774         bugs, ported much of Bernhard's code from mcs51
9775         * src/mcs51/gen.c (genSend),
9776         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
9777         than one when calling a reentrant function
9778         * device/lib/_mullong.c: defined an alternate struct layout for big
9779         endian ports (hc08)
9780
9781 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9782
9783         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
9784         test
9785
9786 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9787
9788         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
9789         are sane and complete before asking the port its prefered parameter
9790         passing method (fixes bug #1017633)
9791         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
9792         and _ret3
9793
9794 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9795
9796         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
9797         problem in bitfields >= 8 bits.
9798
9799 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9800
9801         * src/SDCCsymt.c: undid changes that were not meant to be committed
9802
9803 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9804
9805         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
9806
9807 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9808
9809         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
9810           copied and wrong bit got inverted
9811
9812 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9813
9814         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
9815         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
9816         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
9817         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
9818         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
9819         assignments to bitfields at known addresses
9820         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
9821         reads from bitfields at known addresses
9822         * src/hc08/ralloc.c (packRegisters),
9823         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
9824         genhc08Code): optimize pointer get values used as conditionals
9825         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
9826         and branch
9827
9828 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9829
9830         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
9831         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
9832         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
9833         as conditionals
9834
9835 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9836
9837         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
9838
9839 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9840
9841         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
9842         related problems
9843
9844 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
9845
9846         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
9847
9848 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9849
9850         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
9851         mcs51 port
9852
9853 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
9854
9855         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
9856
9857 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9858
9859         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
9860         cases use more compact code.
9861
9862 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
9863
9864         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
9865
9866 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9867
9868         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
9869
9870 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9871
9872         * src/SDCCsymt.h,
9873         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
9874         parameter of changePointer() from symbol* to sym_link*
9875         * src/SDCCast.c (decorateType): call changePointer() for CAST op
9876         * src/SDCCsymt.c (compareType): void* type is castable to other
9877         pointers, but not necesarily an exact match.
9878         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
9879         is no longer blindly treated as an exact match.
9880         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
9881
9882 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
9883
9884         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
9885
9886 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
9887
9888         * src/pic/gen.c,
9889         * src/pic/pcode.c,
9890         * src/pic/ralloc.h,
9891         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
9892
9893 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
9894
9895         * src/pic/device.c,
9896         * src/pic/device.h,
9897         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
9898
9899 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9900
9901         * src/mcs51/gen.c (emitcode): fixed bug #992819
9902
9903 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
9904
9905         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
9906           there's no need to make it worse
9907
9908 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9909
9910         * src/mcs51/ralloc.c (deassignLR),
9911         * src/ds390/ralloc.c (deassignLR),
9912         * src/hc08/ralloc.c (deassignLR),
9913         * src/z80/ralloc.c (deassignLR),
9914         * src/pic/ralloc.c (deassignLR),
9915         * src/pic16/ralloc.c (deassignLR),
9916         * src/avr/ralloc.c (deassignLR),
9917         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
9918         rlivePoint): fixed another part of bug #971834
9919
9920 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9921
9922         * src/z80/main.c: enabled "critical" keyword
9923         * src/z80/mappings.i,
9924         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
9925         functions (fixes bug #979646)
9926         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
9927
9928 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9929
9930         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
9931           such as c:\mydir.
9932
9933 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
9934
9935         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
9936           doesn't disable too much optimizations
9937
9938 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
9939
9940         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
9941
9942 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
9943
9944         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
9945
9946 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
9947
9948         * src/pic/gen.c tidied up tabs
9949         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
9950         * src/pic/main.c tidied up tabs
9951         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
9952         * src/pic/pcoderegs.c tidied up tabs
9953         * src/pic/ralloc.c tidied up tabs
9954
9955 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
9956
9957         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
9958         to S_FIXED for pic16 port and when symbol is not in level 0,
9959         allocate for S_REGISTER storage class and pic16 port, too,
9960         * src/pic16/device.h: prototype for checkSym,
9961         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
9962         * (pic16_assignConfigWordValue): test the value and the mask to
9963         validate that the value is suitable for the configuration word,
9964         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
9965         collect extern declared symbols, don't emit symbol twice, check
9966         first if symbol is in publics set first,
9967         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
9968         * added command line '--fstack' which enables an experimental
9969         feature for stack access, too buggy to be used yet...
9970         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
9971         * (pic16_allocDirReg): when register has storage class S_REGISTER
9972         allocate in pic16_dynAccessRegs,
9973         * device/include/pic16/pic18f????.h: modified configuration word
9974         naming convention, words started as CONFIG0H but should be CONFIG1H
9975
9976 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
9977
9978         * device/include/mcs51reg.h: fixed bug 970993
9979
9980 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
9981
9982         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
9983         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
9984         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
9985         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
9986         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
9987         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
9988           error/warning numbers,
9989           added function setWarningDisabled()
9990         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
9991         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
9992           _memcmp.c _memmove.c calloc.c realloc.c free.c
9993         * support/regression/tests/malloc.c: added tests for new functionality
9994         * support/regression/tests/zeropad.c: added tests for truncated initializers
9995           and initialized char arrays starting with '\x0'
9996         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
9997
9998 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
9999
10000         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
10001
10002 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10003
10004         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
10005         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
10006         peephole 177.e. Thanks to anonymous
10007
10008 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
10009
10010         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
10011         function isn't used in the source but referenced as a
10012         variable initializer then declare it as extern in .asm file
10013
10014 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
10015
10016         * .version: increased version number to 2.4.3
10017
10018         Adding version extension according to ChangeLog CVS revision
10019         * src/Makefile.in (target all): added dependency 'version.h'
10020         * (rule version.h): added rule to create version.h from ChangeLog,
10021         * (rule dep): added dependency version.h,
10022         * src/version.awk: AWK script to create version.h
10023         * src/SDCCdwarf2.c (dwWriteModule),
10024         * src/SDCCglue.c (initialComments),
10025         * src/SDCCmain.c (printVersionInfo): modified to write after
10026         version string the version extension number,
10027         * src/SDCCutil.c: included "version.h"
10028         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
10029         number,
10030         * src/SDCCutil.h: added prototype for getBuildNumber
10031
10032         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
10033         includeDirsSet, too,
10034         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
10035         const char [] is found in function prototype...
10036
10037         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
10038         moving to WREG with source is already in WREG,
10039         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
10040         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
10041         * (aopForSym): stack'ed symbols are partially supported, added
10042         if-clause to support symbols in FARSPACE,
10043         * (sameRegs): added test for AOP_ACC to see if registers are same,
10044         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
10045         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
10046         * (pic16_popRegFromString): will not allocate a new register if it
10047         doesn't find one by name, bug may have introduced...
10048         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
10049         * (genIpush): revived to use pic16 port's stack,
10050         * (genAddrOf): added incomplete case for stack'ed operand,
10051         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
10052         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
10053         can handle multibyte operands,
10054         * src/pic16/glue.c (pic16_printIval*): some debug info added,
10055         * (pic16initialComments): added message for MPLAB compatibility
10056         mode enabled,
10057         * src/pic16/main.h: prototype for pic16_mplab_comp,
10058         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
10059         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
10060         * (_pic16_linkEdit): NEW, handles link stage, transferred here
10061         because of increased complexity of procedure,
10062         * (_process_pragma): stack pragma changed to format 'stack pos len',
10063         emit symbol '_stack_end' to conform with gplink,
10064         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
10065         to search for register,
10066         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
10067         PO_GPR_REGISTER,
10068         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
10069         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
10070         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
10071         case for PO_GPR_REGISTER,
10072         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
10073         dies, the new era is ahead !...
10074         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
10075         pic16_dynInternalRegs,
10076         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
10077         * (pic16_allocDirReg): minor optimizations and bug fixes,
10078         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
10079
10080         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
10081         load stack and frame pointer with address of 'stack_end' symbol
10082
10083 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
10084
10085         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
10086         without source code but only variable initializers
10087
10088 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
10089
10090         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
10091         external are not declared as extern to reduce overhead while linking
10092
10093 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
10094
10095         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
10096
10097 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
10098
10099         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
10100           Yee Keat for the patch
10101         * src/SDCCast.c (decorateType): fixed bug #979599
10102         * src/ds390/gen.h: removed local fReturnSizeDS390
10103         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
10104         * src/ds390/gen.c (genAnd, genOr, genXor),
10105         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
10106
10107 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
10108
10109         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
10110         add relFilesSet to $3, manipulate $2 to handle linking of object
10111         files without source files in command line,
10112         * device/include/pic16 (all headers): added ID location macros,
10113         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
10114         entries for ID location bytes,
10115         * (pic16_assignIdByteValue): NEW,
10116         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
10117         added field dumpcalltree to pic16_options_t,
10118         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
10119         is used instead of pic16_Gstack_base_addr, check if (ifx) before
10120         emitting rFalseIfx label after check_carry label,
10121         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
10122         pic16_emitDIRegs), NEW
10123         * (pic16glue): dump .calltree file when option --calltree found,
10124         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
10125         * (_pic16_genAssemblerPreamble): emit ID locations after
10126         configuration registers,
10127         * (pic16_linkCmd): modifications of the link command,
10128         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
10129         * (pic16_pCodeInitRegisters): don't init stack registers,
10130         * (pic16_findPrevInstruction): fixed bug,
10131         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
10132         bug with immediate registers,
10133         * (buildCallTree): traces stack push and pop,
10134         * (pct2): dump also stack usage for each function,
10135         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
10136         * (pic16_allocDirReg): various modifications,
10137         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
10138         fixed to 1,
10139
10140 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
10141
10142         * src/pic16/pcode.c: removed buggy double colon
10143
10144 2004-07-01 Borut Razem <borut.razem AT siol.net>
10145
10146         * support/scripts/sdcc.nsi: added include/pic16 to setup
10147
10148 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
10149
10150         * device/lib/Makefile.in: fixed bug in target objects-pic16,
10151         * device/lib/pic16/Makefile: prefixed with dash (-) command under
10152         target 'clean',
10153         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
10154         specific command line arguments. Also added sample lkr script
10155         for placing a variable at a specific memory bank.
10156         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
10157         at a specific memory bank,
10158         * (pic16_dump_isection): fixed bug which caused string literals to
10159         be omitted when dumping idata section,
10160         * (pic16_groupRegistersInSection): added code to handle registers
10161         in specific memory banks,
10162         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
10163         public, all references are renamed too,
10164         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
10165         AOP_DPTR2,
10166         * (pic16_storeForReturn): added case to handle when dest is WREG,
10167         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
10168         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
10169         pic16_rel_udata, check to see if that register is marked as being
10170         a member of a specific memory bank,
10171         * (pic16_printIvalCharPtr): added code to add string literals either
10172         to code or the idata sections,
10173         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
10174         also accept the 'udata' pragma,
10175         * src/pic16/main.h: new structure types sectName and sectSym
10176         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
10177         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
10178         * (pic16_findPrevInstruction): fixed, it returned nothing,
10179         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
10180         instruction combinations,
10181         * (pic16_FixRegisterBanking): heavily reorganised,
10182         * (pic16_AnalyzeBanking): if generating banksel directives is
10183         disabled, then don't call FixRegisterBanking at all,
10184         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
10185         completely removed,
10186         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
10187
10188 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
10189
10190         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
10191         Phuah Yee Keat <yk.phuah AT nestac.com>
10192
10193 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
10194
10195         * src/pic16/glue.c (pic16createInterruptVect): function now emits
10196         correctly the IVT even if it is relocated to some other location
10197
10198 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
10199
10200         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
10201         * device/include/pic16/pic18f2220.h: NEW,
10202         * device/lib/pic16/libdev/pic18f2220.c: NEW,
10203         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
10204         * src/pic16/device.c (struct Pics16): added info for 18f2220,
10205         * src/pic16/device.h (struct pic16_options): added ivt_loc and
10206         nodefaultlibs, ivt_loc is the location of the interrupt vector
10207         table, and nodefaultlibs signs that default libraries should not be
10208         linked in link stage,
10209         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
10210         according to --ivt-loc argument,
10211         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
10212         when pragma stack is found,
10213
10214 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10215
10216         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
10217         256 (range check), 257 (do while), 258.a-f (bit banging
10218         f.e. on 3-wire SPI bus)
10219
10220 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10221
10222         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
10223         variables used exclusively within a loop
10224
10225 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
10226
10227         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
10228
10229 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10230
10231         * src/SDCClrange.c (computeClash): fixed bug #971834
10232
10233 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10234
10235         * src/mcs51/gen.c (genCmp): fixed bug #975903
10236         * src/hc08/gen.c (operandsEqu),
10237         * src/ds390/gen.c (operandsEqu),
10238         * src/z80/gen.c (operandsEqu),
10239         * src/pic/gen.c (operandsEqu),
10240         * src/pic16/gen.c (operandsEqu),
10241         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
10242         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
10243
10244 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10245
10246         * src/SDCCcse.c (cseBBlock): fixed bug #966963
10247
10248 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
10249
10250         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
10251         default case in switch statement,
10252         * glue.c (pic16_initPointer): expr is initialised via decoarteType
10253         to eliminate problem with initialisation of pointers, but problem
10254         still exists,
10255         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
10256         * (emitStaticSegment): removed various lines emitting debug info,
10257         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
10258         added processor registers for utilizing EEPROM,
10259         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
10260         configurable and set 8
10261
10262 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
10263
10264         * .version: increased version number to 2.4.2,
10265
10266         Cumulative patch for pic16 port
10267         * src/pic16/device.c: changed scheme to dump initial values for
10268         variables in idata segment, all print_idata* functions were removed,
10269         now the pic16_printIval* will be called,
10270         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
10271         * _pic16_printPointerType, pic16_printPointerType,
10272         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
10273         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
10274         NEW, similar to the respective functions in SDCCglue.c,
10275         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
10276         way, emitting hex bytes,
10277         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
10278
10279 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10280
10281         * src/avr/ralloc.c (serialRegAssign),
10282         * src/xa51/ralloc.c (serialRegAssign),
10283         * src/pic/ralloc.c (serialRegAssign),
10284         * src/pic16/ralloc.c (serialRegAssign),
10285         * src/hc08/ralloc.c (serialRegAssign),
10286         * src/z80/ralloc.c (serialRegAssign),
10287         * src/ds390/ralloc.c (serialRegAssign),
10288         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
10289
10290 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10291
10292         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
10293         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
10294
10295 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
10296
10297         Cumulative patch for pic16 port:
10298         * src/pic16/device.h (typedef PIC16_device) modified fields for
10299         defining microcontrollers,
10300         * src/pic16/device.c: added new info for all devices in Pics16 array,
10301         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
10302         to be optimised out by the pCode optimiser,
10303         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
10304         specially, bug reported by G.M. Gallant,
10305         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
10306         as force'd so that cannot be optimised out by pCode optimiser,
10307         * src/pic16/pcode.c,
10308         * src/pic16/pcodepeeph.c,
10309         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
10310         they are disabled by default, but can be enabled explicit with
10311         command argument --denable-peeps, for testing,
10312         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
10313         --pomit-ivt in COMPILE_FLAGS
10314
10315 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
10316
10317         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
10318           compilation on MSVC
10319
10320 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
10321
10322         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
10323
10324 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10325
10326         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
10327         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
10328
10329 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
10330
10331         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
10332         would only assign 0x300001 register.
10333
10334 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
10335
10336         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
10337         in COMPILE_FLAGS. Thanks to G. Gallant for report.
10338
10339 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10340
10341         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
10342         for ds80c400
10343         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
10344         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
10345         added peephole 254 (left shift), 255 (jump table)
10346
10347 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
10348
10349         * device/lib/Makefile.in: removed comment line with model-pic16,
10350         * (target port-specific-objects-pic16): the libraries and objects
10351         are copied to the build directory form the device/lib/pic16/bin
10352         directory
10353
10354         Cumulative patch concerning pic16 port:
10355         * library directory has been re-organized,
10356         * added support for PIC18F1220,
10357         * added headers and library sources for chips 18f1220,18f6520,
10358         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
10359
10360         * configuration registers setting has changed, now each supported
10361         device has a complete description of the registers it uses,
10362         * all initialisations are moved to idata sections, these section
10363         can be absolute or relocatable,
10364         * fixed initialisation of codespace variables,
10365         * fixed warning about PCLATU and gpsim,
10366         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
10367         * (genAssign): use table reads when assigning from variables in codespace,
10368         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
10369         char/int variables placed in codespace,
10370         * (pic16_emitConfigRegs): NEW, emits a list with configuration
10371         registers set in .asm file, no need for --pomit-config-words anymore,
10372         * (pic16glue): some 8051 legacy segments are commented out
10373         (to be removed completely),
10374         * added support for alternative assembler and linker with --asm=
10375         and --link= command line arguments,
10376         * peepholes are disabled automatically in the port, no need to
10377         specify on command line,
10378         * port supports natively char/int/long multiplication, but converts
10379         all divisions to support functions,
10380         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
10381         to the file set in variable $2,
10382         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
10383         strings in ASCII format and not in hex,
10384         * ralloc.c (serialRegAssign): added a triplet of conditional calls
10385         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
10386         allocate proper register if iCodes aren't temporary,
10387
10388 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
10389
10390         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
10391
10392 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
10393
10394         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
10395         is commented out
10396
10397 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10398
10399         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
10400         computed address is reused
10401         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
10402         multi-byte bitfields
10403
10404 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
10405
10406         * src/z80/gen.c: (genArrayInit): must check for pointers too
10407
10408 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
10409
10410         * support/regression/tests/zeropad.c: never meant to commit the
10411           nestedstruct test: removed, added check for GCC version
10412
10413 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
10414
10415         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
10416         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
10417         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
10418           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
10419           bugs 928906 and 954082 half-empty initializers
10420         * src/SDCCsymt.h,
10421         * src/SDCCsymt.c (getAllocSize): added for above fix
10422         * src/z80/gen.c (genArrayInit): fixed bug 741044
10423         * support/regression/tests/zeropad.c: added tests
10424
10425 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
10426
10427         * src/pic16/device.c (pic16_dump_section): corrected bug which
10428         caused some symbols of the libraries to be misplaced
10429
10430 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
10431
10432         * src/pic16/glue.c,
10433         * src/pic16/ralloc.h,
10434         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
10435         to fix conflict with pic port
10436
10437 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
10438
10439         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
10440         externs configuration variables,
10441         * src/pic16/ralloc.h,
10442         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
10443         prototype in header, commented out some debug messages
10444
10445 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
10446
10447         * src/pic16/glue.c,
10448         * src/pic16/main.c,
10449         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
10450         for gpasm COFF object generation. Thanks to D. Hawkins for
10451         his patch info
10452
10453 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10454
10455         * src/ds390/main.c,
10456         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
10457         Brock for spotting this)
10458         * src/ds390/gen.c (genEndFunction),
10459         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
10460         interrupt handler and critical. Disable push/pop optimizations when
10461         peephole optimizations disabled.
10462
10463 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
10464
10465         Updated pic16 library sources and headers.
10466         * device/lib/pic16/pic18f*/ ,
10467         * device/include/pic16/*.h: modified to handle structured SFR
10468         definitions
10469
10470 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
10471
10472         * src/port.h (PORT structure): added hook initPaths, now each
10473         port can declare its own default search paths,
10474         which can been seen with the --print-search-dirs option,
10475         see pic16 port for example,
10476         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
10477         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
10478         * (doPrintSearchDirs): NEW, replaces in a central manner the
10479         printing of search dirs which was split in set*Paths functions,
10480         * (main): added call to port->initPaths and doPrintSearchDirs,
10481         * src/avr/main.c,
10482         * src/ds390/main.c,
10483         * src/hc08/main.c,
10484         * src/izt/i186.c,
10485         * src/izt/tlcs900h.c,
10486         * src/mcs51/main.c,
10487         * src/pic/main.c,
10488         * src/pic16/main.c: modified port structures to reflect addition of
10489         initPaths hook,
10490
10491         * src/pic16/device.c (regCompare): registers are finally sorted by name,
10492         * (pic16_dump_section): for registers in same address reserve memory once,
10493         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
10494         to no_banksel,
10495         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
10496         result is greater in size than right or left,
10497         * (pic16_genUMult8X8_8): there are some cases where the result can
10498         be 16 bits size, so handle these,
10499         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
10500         * (pic16_outBitC): modified to emit pcodes,
10501         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
10502         or not,
10503         * (genDivOneByte): implemented algorithm to divide 8-bits,
10504         * (genCmp): uncommented goto, but issues still exist,
10505         * (genAnd): fixed a bug with variables >8bits,
10506         * (genPackBits): optimization added that uses BCF/BSF to change a
10507         single bit,
10508         * (genAssign): fixed bug when assigning floating point literals,
10509         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
10510         __sdcc_gsinit_startup label,
10511         * src/pic16/main.c (_pic16_init): removed search directory
10512         initialisations,
10513         * (_pic16_initPaths): NEW, used to initialise search directories,
10514         * (_hasNativeMulFor): support functions for all except char/int
10515         multiplication, and char division,
10516         * (PIC16_port struct): modified entry for native mul support,
10517         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
10518         no_banksel option,
10519         * (buildCallTree): call to register_usage is ifdef'ed out,
10520
10521 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10522
10523         * device/include/string.h: applied Stas Sergeev's patch to make this
10524         header file compatible with the preprocessor -Wundef option
10525         * src/SDCCmain.c (main): abort compilation if preprocessor reports
10526         failure (fixes bug #941458)
10527
10528 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10529
10530         * src/SDCCopt.c (killDeadCode): fixed bug #907733
10531         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
10532         that the variable, not the function, should be static
10533         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
10534         to be consistent with non-literal case
10535
10536 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10537
10538         * src/SDCCast.c (isConformingBody): fixed bug #949967
10539         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
10540         convilong): fixed bug #952086
10541
10542 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10543
10544         * src/SDCCmem.c (allocVariables): fixed bug #955321
10545
10546 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10547
10548         * src/hc08/main.c (_hc08_genAssemblerEnd),
10549         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
10550         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
10551         completely eliminated the use of a temporary file
10552         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
10553         when more than one file linked
10554         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
10555
10556 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10557
10558         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
10559         which fixes bug #543481
10560         * support/regression/tests/bug-751703.c: fixed comments left from a
10561         cut and paste error
10562         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
10563         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
10564         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
10565         scopes
10566         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
10567         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
10568         are now changed to underscores in moduleName
10569
10570 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10571
10572         * as/mcs51/lkmem.c: better fix for bug #954173
10573
10574 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
10575         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10576
10577         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
10578         * device/include/c8051f000.h,
10579         * device/include/c8051f120.h,
10580         * device/include/c8051f300.h,
10581         * device/include/c8051f310.h,
10582         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
10583         PWM16) and detab'ed
10584
10585 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10586
10587         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
10588         and mailing lists, doc'ed --no-peep-comments, removed reference
10589         to knoppix (newest version has no LyX/LaTeX), other minor changes
10590         * src/SDCCglue.c (glue): save 2 bytes stack space with
10591         option --main-return. The ljmp could probably be avoided too
10592
10593 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10594
10595         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
10596
10597 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10598
10599         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
10600         * src/SDCCopt.c (isLocalWithoutDef),
10601         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
10602         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
10603         (credit to Maarten Brock for patch #949363, on which this is based)
10604         * support/regression/tests/bug-751703.c: some test cases of extern used
10605         within inner scopes.
10606
10607 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10608
10609         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
10610         SPEC_STRUCT
10611         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
10612         struct definitions
10613         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
10614         dwWriteLabel): fix to create valid debugger symbols even when
10615         the module name has non-alphanumeric symbols in it
10616         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
10617         when a variable's allocation has been optimized away
10618
10619
10620 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10621
10622         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
10623         * src/hc08/main.c,
10624         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
10625         * src/mcs51/main.c,
10626         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
10627         * src/ds390/main.c,
10628         * src/z80/gen.c (z80_emitDebuggerSymbol),
10629         * src/z80/main.c,
10630         * src/pic/gen.c (pic14_emitDebuggerSymbol),
10631         * src/pic/main.c,
10632         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
10633         * src/pic16/main.c,
10634         * src/avr/gen.c (avr_emitDebuggerSymbol),
10635         * src/avr/main.c,
10636         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
10637         * src/xa51/main.c,
10638         * src/SDCCdebug.c (emitDebuggerSymbol),
10639         * src/SDCCdebug.h,
10640         * src/port.h: added a debugger struct to the port struct. Added a
10641         callback for defining debugger symbols
10642
10643         * src/SDCCast.c (createLabel),
10644         * src/SDCC.y (labeled_statement): mark all compiler generated labels
10645         with isitmp = 1
10646         * src/SDCCicode.h,
10647         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
10648         iCode back to the ast for the function
10649
10650         * src/hc08/ralloc.c (hc08_assignRegisters),
10651         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
10652         unneeded fields from the regs struct.
10653         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
10654         pushReg() & pullReg() functions instead of emitcode()
10655
10656         * src/hc08/gen.c (genLabel, genhc08Code),
10657         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
10658
10659         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
10660         debugger hooks
10661
10662         * src/hc08/gen.c (genEndFunction, genhc08Code),
10663         * src/hc08/gen.h,
10664         * src/mcs51/gen.c (genEndFunction, gen51Code),
10665         * src/mcs51/gen.h,
10666         * src/ds390/gen.c (genEndFunction, gen390Code),
10667         * src/ds390/gen.h,
10668         * src/z80/gen.c (genEndFunction, genZ80Code),
10669         * src/z80/gen.h,
10670         * src/z80/z80.h,
10671         * src/pic/gen.c (genEndFunction, genpic14Code),
10672         * src/pic/gen.h,
10673         * src/pic16/gen.c (genEndFunction, genpic16Code),
10674         * src/pic16/gen.h,
10675         * src/avr/gen.c (genEndFunction, genAVRCode),
10676         * src/avr/gen.h,
10677         * src/xa51/gen.c (genEndFunction, genXA51Code),
10678         * src/xa51/gen.h,
10679         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
10680         specific code to cdbFile.c and out of the backend code generators
10681
10682         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
10683         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
10684         starting address is now 0
10685
10686         * as/hc08/asm.h,
10687         * as/hc08/m08pst.c,
10688         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
10689         assembler directive for DWARF support
10690         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
10691
10692         * src/src.dsp,
10693         * src/Makefile.in,
10694         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
10695
10696 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10697
10698         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
10699         and inappropriate peephole optimization in jump tables
10700
10701 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10702
10703         * as/hc08/m08pst.c,
10704         * src/SDCCglue.c: sdccopt works for the hc08 port now
10705
10706 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
10707
10708         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
10709
10710 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10711
10712         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
10713
10714 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10715
10716         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
10717         rules
10718         * src/SDCCmain.c,
10719         * src/SDCCglobl.h,
10720         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
10721         comments from the peephole optimizer replacement rules
10722         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
10723         symbols
10724         * src/SDCCcse.c (updateSpillLocation),
10725         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
10726         equivalents
10727         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
10728         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
10729         objects far pointers
10730
10731 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10732
10733         * src/SDCCsymt.h: a missing part of my last change
10734         * src/pic/ralloc.c (regTypeNum),
10735         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
10736
10737 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10738
10739         * src/SDCCicode.h,
10740         * src/SDCCicode.c (aggrToPtrDclType),
10741         * src/SDCCptropt.h,
10742         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
10743         ptrPseudoSymConvert),
10744         * src/pic/ralloc.c (regTypeNum),
10745         * src/pic16/ralloc.c (regTypeNum),
10746         * src/hc08/ralloc.c (regTypeNum),
10747         * src/ds390/ralloc.c (regTypeNum),
10748         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
10749         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
10750
10751 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10752
10753         * link/z80/lkmain.c (afile),
10754         * as/hc08/lkmain.c (afile),
10755         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
10756         prevent a pointer problem when a filename has no directory and
10757         no extension specified.
10758
10759 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10760
10761         * link/z80/lkmain.c (afile): allow periods in directory names
10762         * link/z80/lkmain.c (afile),
10763         * as/mcs51/lkmain.c (afile),
10764         * as/hc08/lkmain.c (afile): allow linker script file to have an
10765         extension other than ".lnk"
10766         * link/z80/lklex.c (getfid),
10767         * link/z80/lkmain.c (parse),
10768         * as/mcs51/lklex.c (getfid),
10769         * as/mcs51/lkmain.c (parse),
10770         * as/hc08/lklex.c (getfid),
10771         * as/hc08/lkmain.c (parse): Support comments in the linker script
10772         file on lines by themselves and after filenames
10773
10774 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10775
10776         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
10777
10778 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10779
10780         * src/z80/peeph-z80.def: removed some peephole rules that don't
10781         work with multibyte arithmetic (fixed bug #937126)
10782         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
10783         to registers and not global variables
10784         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
10785         geniCodePreInc, geniCodePostDec, geniCodePreDec,
10786         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
10787         checking for assignments not internally generated (fixed bug #931895)
10788         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
10789         structure member (fixed bug #930072)
10790
10791 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10792
10793         * src/SDCCmain.c (linkEdit),
10794         * src/hc08/main.c (_hc08_parseOptions),
10795         * as/hc08/Makefile.in,
10796         * as/hc08/aslink.h,
10797         * as/hc08/asm.h,
10798         * as/hc08/m08pst.c,
10799         * as/hc08/lkrloc.c (relr, rele),
10800         * as/hc08/lkarea.c (lnkarea)
10801         * as/hc08/lkmain.c (afile, parse),
10802         * as/hc08/lkelf.c: support for ELF output
10803         * as/hc08/lks19.c (s19),
10804         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
10805
10806 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10807
10808         * as/mcs51/lkihx.c: Fixed bug #899105.
10809
10810 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10811
10812         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
10813         .dsp files from Unix to DOS.
10814
10815 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10816
10817         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
10818         function pointers; we have been compliant for several months now.
10819         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
10820         change that was accidently commented out
10821         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
10822         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
10823         bug #922319
10824
10825 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10826
10827         * src/hc08/gen.c: output of all of the internal debugging information
10828         is now controlled by the D() macro; it is disabled by default
10829
10830 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10831
10832         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
10833         harder to keep the same registers during a CAST iCode
10834         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
10835         long via int can be done in a single cast, if the signedness is
10836         correct.
10837         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
10838         putchar() in tinibios.c in ds390's library
10839
10840 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
10841
10842         * src/SDCCast.c (decorateType): fixed bug #898889,
10843         cast result of a literal complement too
10844         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
10845         fixed check for bitfields
10846
10847 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
10848
10849         * src/SDCCicode.c (geniCodeLogic): made it static,
10850         (geniCodeLogicAndOr): added in order to fix bug #905492,
10851         (ast2iCode): fixed bug #905492
10852         * support/regression/tests/bug-905492.c: added
10853         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
10854         (processParms): fixed bug #927659: don't copy parms, this will clear
10855         decorated flag
10856         * support/regression/tests/bug-927659.c: added
10857
10858 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
10859
10860         * src/SDCCast.c (addCast): don't cast float to char
10861         * device/lib/libsdcc.lib: added _memmove
10862
10863 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
10864
10865         * device/lib/large/Makefile: fixed parallel execution by
10866         replacing `make` by `$(MAKE)`
10867
10868 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10869
10870         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
10871         offsets (fixes bug #923936)
10872
10873 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
10874
10875         * device/lib/small/Makefile: fixed parallel execution by
10876         replacing `make` by `$(MAKE)`
10877
10878 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
10879
10880         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
10881
10882 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
10883
10884         * src/pic/gen.c (genCpl): multi-byte complements were not working.
10885         * src/regression/Makefile: Regression test was not running.
10886
10887 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
10888
10889         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
10890         complement if possible
10891         * src/SDCCval.c (valComplement),
10892         * src/SDCCicode.c (operandOperation): fixed complement of literal
10893         * support/regression/tests/onebyte.c (testComplement): added
10894
10895 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
10896
10897         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
10898         return an optimized tree; actually replace actParm with the new tree
10899         * src/SDCCast.h: added some parantheses to remove side effects
10900         * support/regression/tests/bug-920866.c
10901
10902 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
10903         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
10904         Bit operands were not being handled properly in the pic14 port.
10905         (now src/regression/add.c passes again).
10906
10907 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10908
10909         * src/SDCC.y (labeled_statement): case and default no longer require
10910         a following statement (RFE #893037)
10911
10912 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10913
10914         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
10915         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
10916         disabled (fixes bug #916294)
10917         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
10918         "mov a,acc"; patch provided by Lenny Story
10919         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
10920
10921 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10922
10923         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
10924         functions
10925         * src/ds390/gen.c (genFunction, genEndFunction),
10926         * src/ds390/ralloc.c (ds390_assignRegisters),
10927         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
10928         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
10929         pushed if there are parameters passed on the stack. Also, a cleaner
10930         way to decide if r0/r1 should be pushed/popped. (Together they fix
10931         bug #918693)
10932
10933 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10934
10935         * doc/sdccman.lyx,
10936         * device/lib/mcs51/crtpagesfr.asm,
10937         * device/lib/mcs51/crtxinit.asm,
10938         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
10939         to avoid confusion with Si Lab's SFRPAGE register.
10940
10941 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10942
10943         * src/SDCCglue.c (emitMaps): allow public sfr variables
10944         * src/SDCCglue.c (initialComments): include compiler build date
10945         with compiler version and put the timestamp of the generated
10946         assembly file on a serperate line to be less confusing.
10947         * src/port.h: added genInitStartup hook
10948         * src/avr/main.c,
10949         * src/ds390/main.c,
10950         * src/hc08/main.c,
10951         * src/pic/main.c,
10952         * src/pic16/main.c,
10953         * src/xa51/main.c,
10954         * src/z80/main.c: genInitStartup initialize as NULL (default to
10955         historical behaviour)
10956         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
10957         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
10958         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
10959         library instead of hard coding it into the compiler.
10960         * support/regression/ports/mcs51-stack-auto/spec.mk,
10961         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
10962         * device/lib/mcs51/Makefile,
10963         * device/lib/small/Makefile,
10964         * device/lib/large/Makefile,
10965         * device/lib/mcs51/crtpagesfr.asm,
10966         * device/lib/mcs51/crtstart.asm,
10967         * device/lib/mcs51/crtxclear.asm,
10968         * device/lib/mcs51/crtxinit.asm,
10969         * device/lib/mcs51/crtclear.asm,
10970         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
10971         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
10972         and into user configurable files.
10973         * device/lib/clean.mk: clean mcs51 directory too
10974         * support/regression/tests/longlit.c: added static to T1 declaration
10975         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
10976         accesses in the initialization code
10977
10978 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10979
10980         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
10981         OSCTRIMVAL as noted in bug #916008
10982
10983 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10984
10985         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
10986         in loops with multiple exits (reported as incorrect registers
10987         used by Martin Helmling in Sdcc-user list)
10988
10989 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10990
10991         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
10992         made ds390 register extensions look less like error messages
10993
10994 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10995
10996         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
10997         reported by Adam Wozniak in Sdcc-user list
10998
10999 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
11000
11001         * src/SDCCast.c (decorateType): fixed with bug and promotion in
11002         arithmetic optimizations, added debug output
11003
11004 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
11005
11006         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
11007         * sdcc.spec: updated and split sdcc into 3 rpms
11008         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
11009         needed for literals of LEFT_OP and '+'
11010         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
11011         introduced RESULT_TYPE_NOPROM
11012         (geniCodeMultiply): fixed logic for decision if mul is optimized to
11013         left shift
11014         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
11015         limited promotion to int only for '*'
11016         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
11017
11018 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
11019
11020         * src/pic16/gen.c (genSkip),
11021         (genc16bit2lit), (gencjneshort): commented out
11022         (is_LitOp): new helper function, checks operand type
11023         (genCmpEq): rewritten
11024
11025 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
11026
11027         * support/regression/tests/bug-908454.c: added
11028
11029 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
11030
11031         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
11032         * src/SDCCicode.c (usualBinaryConversions): op needs int type
11033         (geniCodeCast): cosmetic, don't preserve bit storage class
11034         (geniCodeLeftShift): added promotion
11035         (geniCodeLogic): fixed regression
11036         * src/SDCCsymt.c (computeTypeOr): accept bits too
11037         (compareType): 2nd part of fix for bug #908454, needed for bitfields
11038
11039 2004-03-07  Borut Razem <borut.razem AT siol.net>
11040
11041         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
11042
11043 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
11044
11045         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
11046         version of pic16_genPackRegisters which does not check if ic is a
11047         CAST operator,
11048         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
11049         function cause string1.c regression test fails
11050
11051 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
11052
11053         * sim/ucsim/configure.in,
11054         * sim/ucsim/configure,
11055         * sim/ucsim/doc/Makefile.in: use docdir
11056         * src/SDCC.y: fixed sbit atrributes
11057         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
11058         * src/SDCCast.c (decorateType): |^& need special promotion handling
11059         * src/SDCCast.h,
11060         * src/SDCCsymt.h: moved definition of RESULT_TYPE
11061         * src/SDCCsymt.h (computeType),
11062         * src/SDCCicode.c: computeType() needs op
11063         * src/SDCCsymt.c (checkTypeSanity),
11064         * doc/sddman.lyx: "plain" bitfields are unsigned
11065         * src/SDCCsymt.c (computeTypeOr): added
11066         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
11067         |^& ops
11068         * src/SDCCval.c (val*): computeType() needs op
11069         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
11070         * support/regression/tests/onebyte.c: added tests for |^&
11071
11072 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
11073
11074         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
11075         for writing icode into asm output.
11076
11077 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
11078
11079         * src/pic16/device.c: added some debug lines enabled
11080         with macro DEBUG_CHECK,
11081         * src/pic16/genarith.c: more debug in genPlus,
11082         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
11083         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
11084         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
11085         * (aopForSym): onStack symbols are re-placed in data memspace,
11086         and onStack flag is cleared,
11087         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
11088         copy temporary pcodeop,
11089         * (genPcall): added warning for not updating PCLATU,
11090         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
11091         always true for pic16 port,
11092         * (genMultOneWord): NEW, supports integer multiplication,
11093         * (genMult): modified to call genMultOneWord,
11094         * (ifxForOp): added warning when return NULL,
11095         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
11096         flag is set before call to operandFromSymbol for implicit
11097         added structures,
11098         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
11099         options.intlong_rent are set by default,
11100         * (_hasNativeMulFor): modified to allow port generation of integer
11101         multiplication,
11102         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
11103         set regtype to REG_SFR for all registers, restricting seting the
11104         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
11105
11106 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11107
11108         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
11109         more than 500 times in the regression tests
11110
11111 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11112
11113         * support/Util/SDCCerr.h,
11114         * support/Util/SDCCerr.c,
11115         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
11116         enumerator_list),
11117         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
11118         for symbol conflicts.
11119         * support/valdiags/tests/enum.c,
11120         * support/valdiags/tests/tentdecl.c,
11121         * support/valdiags/tests/struct.c: expect possible error messages
11122         referring to original symbol definitions.
11123         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
11124         * src/SDCCsymt.h,
11125         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
11126
11127 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
11128
11129         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
11130
11131 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
11132
11133         * src/pic16/ralloc.c (newReg): fixed bug #908929
11134
11135 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11136
11137         * src/ds390/gen.c: added missing #include "main.h"
11138
11139 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
11140
11141         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
11142         checking if symbol is already in set,
11143         * src/pic16/device.h: prototype for checkAddSym,
11144         * src/pic16/gen.c: (_G): added entry interruptvector,
11145         * (assignResultValue): removed some commented out lines,
11146         * (genFunction): check for ISR via sym->type, absolute section for
11147         interrupt code is created via a new pBlock, the goto instruction is
11148         placed now correctly at the interrupt vector position, changed all
11149         references from ivec to _G.interruptvector,
11150         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
11151         is the interrupt is a high priority one, same for return from ISR,
11152         * src/pic16/glue.c: changed all calls of addSetHead for publics and
11153         externs to calls of checkAddSym,
11154         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
11155         pic16_pcode_verbose flag is set,
11156         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
11157         * src/pic16/pcoderegs.c: message about how many registers are saved
11158         will only be emitted if pic16_pcode_verbose flag is set,
11159
11160 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11161
11162         * src/ds390/ralloc.h,
11163         * src/ds390/ralloc.c (ds390_regWithIdx),
11164         * src/ds390/gen.c (emitcode),
11165         * src/ds390/main.h,
11166         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
11167         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
11168         ds390operandCompare, getRegsRead, getRegsWritten,
11169         initializeAsmLineNode): customized instruction size calculation for
11170         ds390, started basis for some register optimizations
11171         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
11172         corresponding assembly output
11173         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
11174         missing push/pop of r0/r1. Optimized push/pops
11175
11176 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11177
11178         * src/mcs51/main.c (instructionSize): fixed ACALL size
11179         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
11180
11181 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
11182
11183         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
11184         the sorting of rlist with NULL elements
11185         * (print_idataType, print_idata): NEW to create idata sections
11186         * src/pic16/device.h: idataSymSet new variable
11187         * src/pic16/gen.c (genFunction): fixed some bugs in string
11188         comparing, improved the absolute section creation for ISRs,
11189         added FSR0L/FSR0H in registers that are saved in an ISR,
11190         * (genInline): fixed the processing of inline snippets,
11191         now they undergo no process by the peephole optimizer
11192         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
11193         are placed in idataSymSet,
11194         * (pic16emitStaticSeg): extern symbols are added in externs,
11195         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
11196         switching when aboslute variables are placed in access bank memory
11197         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
11198         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
11199         commented out with #if,
11200         * (pic16_packRegisters): reintroduce the check for CAST because some
11201         symbols are not correctly handled,
11202         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
11203         pCodeInstruction instead of pCode,
11204         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
11205         pCodeAsmDir definition,
11206         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
11207         directive, then the argument directive is emitted without the leading
11208         tab, hack for inline labels which must be in the first column,
11209         * (compareLabel,pic16_findNextInstruction),
11210         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
11211         * (insertBankSwitch): modified for the new pCodeAsmDir,
11212
11213 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11214         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
11215
11216         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
11217         instance,
11218         * (pushSide): commented out with #if,
11219         * (assignResultValue): fixed some typos in saving
11220         registers,
11221         * (genPcall): FIXED and sync'ed with genCall,
11222         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
11223         * (genNearPointerGet): fixed to handle some more cases,
11224         implementation scheme via table reads,
11225         * (genConstPointerGet): modified to access code memory correct,
11226         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
11227         and improved to handle some cases
11228         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
11229         instead of "RETLW" for init data
11230         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
11231         not IN_DIRSPACE, work around to reduce bank switching when aboslute
11232         variables are placed in access bank memory (<0x80 and >=0xf80),
11233         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
11234         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
11235         TBLWT_POSTDEC,TBLWT_PREINC
11236         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
11237         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
11238         directives
11239         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
11240         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
11241         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
11242         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
11243
11244 2004-02-29  Borut Razem <borut.razem AT siol.net>
11245
11246         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
11247         support/Util/findme.h, support/Util/system.h: enhance binary relative
11248         search for lib and include by using findProgramPath()
11249
11250 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11251
11252         * src/SDCCpeeph.h,
11253         * src/SDCCpeeph.c (pcDistance),
11254         * src/port.h,
11255         * src/mcs51/ralloc.h,
11256         * src/mcs51/ralloc.c (mcs51_regWithIdx),
11257         * src/mcs51/main.h,
11258         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
11259         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
11260         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
11261         size calculation port specific, started basis for some register
11262         optimizations
11263         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
11264         missing push/pop of r0/r1. Optimized push/pops
11265         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
11266         * device/lib/_modsint.c (_modsint),
11267         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
11268         and stack version so regression tests pass
11269
11270 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
11271
11272         * src/Makefile.in (dep): include SLIBOBJS in dependency check
11273         * src/SDCCast.c (decorateType): catch another small optimization
11274         with '?' operator
11275         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
11276         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
11277         modified to finally use computeType() all over SDCC,
11278         see Feature Request #877103
11279         * src/SDCCval.h: cosmetic
11280         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
11281         valCompare(); regression tested in muldiv.c
11282         * support/regression/tests/muldiv.c (testMod): mod sign follows
11283         dividend only
11284
11285 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
11286
11287         * src/SDCCast.c (decorateType): fixed bug #902362
11288         * doc/INSTALL.txt: fixed install instructions for win32
11289
11290 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
11291
11292         * device/include/Makefile.in (install): fixed by replacing spaces
11293         by tabs
11294         * doc/README.txt,
11295         * doc/INSTALL.txt: updated for release
11296         * doc/sdccman.lyx: added warning for --xstack being buggy
11297
11298 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
11299
11300         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
11301         to eliminate build warnings.
11302         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
11303
11304 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
11305            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11306
11307         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
11308         removed -penable-stack, added comment for stack pragma, added
11309         warning for not initializing the stack/frame registers, removed
11310         comment at interrupts section
11311
11312         Stack is made permanent, there is no ability to disable stack usage.
11313         * src/pic16/device.h,
11314         * src/pic16/device.c: removed all references to USE_STACK macro,
11315         * src/pic16/device.c (pic16_dump_section): when no elements in
11316         rlist, free rlist before return,
11317         * (pic16_dump_int_registers): NEW, internal registers are a new set
11318         of general purpose registers reused by each function,
11319         * (checkAddReg): returns 1 if registers is added to set,
11320         * (pic16_groupRegistersInSection): when a registers is of type
11321         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
11322         * src/pic16/device.h: memRange and Assigned Memory are deleted,
11323         SRCASECMP macro is moved here from device.c
11324         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
11325         PO_PCLATU, PO_PRODL, PO_PRODH,
11326         * (pic16_pCodeOpType, genMinus,
11327         changed compares to "a" register, with AOP_ACC,
11328         * (pic16_genPlus): fixed some bugs and indented properly,
11329         * (pic16_addSign): changed size to size+offset in the MOVWF
11330         instruction,
11331         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
11332         multiply 8-bit operand by literal, result is 8-bit,
11333         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
11334         multiply 2 8-bit operand, result is 8-bit,
11335         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
11336         genUMult8X*_16,
11337         * src/pic16/gen.c: changed accUse to contain WREG only,
11338         * (pic16_emitcomment): renamed to pic16_emitpcomment,
11339         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
11340         true, do not use immediate addressing any more unless sym is a
11341         pointer in codespace,
11342         * (aopForRemat): do not use immediate addressing when symbol not in
11343         codespace and when symbol's address is requested,
11344         * (aopOp): for-loop in if(sym->accUse) is modified for the new
11345         accUse size (= 1),
11346         * (aopGet): added case for AOP_ACC and don't return "accumulator
11347         bug" but WREG instead,
11348         * (popGetTempReg): pushes contents of temporary register in stack,
11349         * (popReleaseTempReg): pops contents of temporary register from
11350         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
11351         * (pic16_popGet): separated case AOP_ACC to return register WREG
11352         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
11353         or PO_IMMEDIATE and initializes their instance/offset appropriately,
11354         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
11355         the use of immediate pointers to certain cases only.
11356
11357         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
11358         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
11359         * (assignResultValue, genCall, genRet): modified to use the new
11360         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
11361         genPcall is still broken,
11362         * (genFunction): added code to create 'A' type pBlocks when
11363         interrupt functions are generated, code not extensively tested yet,
11364         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
11365         * (genEndFunction): modified so ISRs pop stored registers from stack,
11366         * (genMultOneByte): cleanup,
11367         * (AccRsh): added flag andmask, to and result with appropriate mask,
11368         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
11369         * (genDataPointerGet): fixed and reenabled its use,
11370         * (genNearDataPointerGet): bugs fixed,
11371         * (genDataPointerSet): bugs fixed,
11372         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
11373         pic16_DumpSymbol, pic16_DumpOp,
11374         * src/pic16/genutils.h: function prototypes for the above functions,
11375         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
11376         pointers,
11377         * (pic16emitRegularMap): many many many improvements, but needs a
11378         major cleanup,
11379         * src/pic16/main.c: enable_stack in pic16_options is removed,
11380         * (_pic16_parseOptions): removed command line options -penable-stack,
11381         * (_process_pragma): emit stack symbol only when stack pragma is
11382         processed,
11383         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
11384         redirected to FSR0L/FSR0H pair,
11385         * (pic16_get_op, pic16_get_op2): modifications and improvements,
11386         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
11387         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
11388         for immediates,
11389         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
11390         * (dumpPicOptype): NEW,
11391         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
11392         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
11393         with movff instruction,
11394         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
11395         added pic16_int_regs, some packRegsFor* functions are commented out,
11396         because produce errors,
11397         * src/pic16/NOTES: minor modifications
11398
11399 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11400
11401         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
11402         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
11403         --pack-iram.
11404         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
11405         * as/mcs51/lkaomf51.c: fixed bug #895763
11406
11407 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
11408
11409         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
11410
11411 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11412
11413         * doc/sdccman.lyx: added details about the HC08 storage classes and
11414         interrupts, fixed the register usage info for z80 & gbz80
11415
11416 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
11417
11418         * doc/sdccman.lyx: added more pic16 port documentation
11419         * device/include/pic16/: added header pic18fregs.h
11420
11421 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
11422
11423         * doc/sdccman.lyx: added Vangelis' contribution
11424
11425 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11426
11427         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
11428         extend to the next CALL or PCALL, not just to the next CALL.
11429
11430 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
11431
11432         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
11433
11434 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11435
11436         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
11437         bug #895752 and a better fix for bug #716790
11438
11439 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11440
11441         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
11442
11443 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11444
11445         * doc/sdccman.lyx: minor changes, minor changed
11446
11447 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
11448
11449         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
11450         which can't handle SDCC_NEWONEBYTEOPS,
11451         (geniCodeMultiply): removed conversion from mult to shift for pic14
11452         and pic16
11453
11454 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11455
11456         * src/hc08/gen.h,
11457         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
11458         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
11459         thus fixing bug #895406
11460
11461 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
11462
11463         * device/lib/_modsint.c,
11464         * device/lib/_modslong.c: sign follows divisor only
11465         * src/hc08/gen.c (genMultOneByte): if result size is 1,
11466         signs or signedness can be ignored
11467         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
11468         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
11469         added optimization for IFX,
11470         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
11471         arguments;
11472         reenabled optimization for IFX, which was removed on 2004-01-11
11473         * src/SDCCast.h: added return type IFX
11474         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
11475         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
11476         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
11477         SDCC_OLDONEBYTEOPS selects the old behaviour
11478         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
11479         changed again and commented promotion rule
11480         * src/SDCCval.c (valDiv): promotion no longer necessary
11481         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
11482         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
11483         rewritten
11484         * support/regression/tests/onebyte.c: added
11485
11486 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
11487
11488         * gen.c (genInline): reverted to old code for assemnling inline
11489         code because of bug reported James Chadd
11490
11491 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
11492
11493         * ralloc.h: missing declarations from previous patch,
11494         seems that patch for ralloc.h was never applied, fixed
11495
11496 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11497            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
11498
11499         * pcode.c,
11500         * pcode.h,
11501         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
11502         indirect addressing. Marked FSR0 as deprecated
11503         * gen.c (pointerCode): commented out, not needed now
11504         (pic16_popGet2p): new MOVFF helper function
11505         (genGenPointerGet),
11506         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
11507         (shiftRLong): removed duplicate debugging info
11508
11509 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11510
11511         * src/ds390/gen.c (genNearPointerGet),
11512         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
11513         optimization with bits, but not bitfields.
11514         * src/ds390/ralloc.c (packRegisters),
11515         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
11516
11517 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
11518
11519         * src/SDCCcse.c (algebraicOpts): copy operands before modification
11520
11521 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11522
11523         * src/SDCCsymt.h,
11524         * src/SDCCicode.c (operandFromSymbol),
11525         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
11526         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
11527         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
11528         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
11529         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
11530         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
11531         bug #892038
11532         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
11533         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
11534         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
11535         * src/SDCCsymt.c (newSymbol),
11536         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
11537         enumerator_list),
11538         * src/SDCCval.h,
11539         * src/SDCCval.c (newiList): fixed bug #885705
11540
11541 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11542
11543         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
11544         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
11545
11546 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11547
11548         * device/include/c8051f120.h,
11549         * device/include/c8051f300.h,
11550         * device/include/c8051f310.h: added/updated header files for Silicon
11551         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
11552         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
11553         in new section Submitting patches
11554
11555 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11556
11557         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
11558         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11559         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11560         genGenPointerSet),
11561         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
11562         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11563         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11564         genGenPointerSet),
11565         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
11566         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11567         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11568         genGenPointerSet),
11569         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
11570         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11571         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11572         genGenPointerSet): fixed bug #892400
11573         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
11574         to eliminate build warnings.
11575         * src/SDCCast.c (processParms),
11576         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
11577         fixed bug 751859
11578         * support/valdiag/valdiag.py: added GCC to the list of defines active
11579         when compiling with gcc
11580
11581 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11582
11583         * support/Util/SDCCerr.h,
11584         * support/Util/SDCCerr.c,
11585         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
11586         with an incomplete type (fixed bug #883734)
11587         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
11588
11589 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11590
11591         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
11592
11593 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11594
11595         * src/SDCCast.c (decorateType),
11596         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
11597         function pointer implementation
11598         * support/regression/tests/funptrs.c: added tests to verify both forms
11599         of function pointers work correctly. Added tests to verify parameters
11600         are passed in the correct order.
11601
11602 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
11603
11604         * device.c (regCompare): registers are sorted by ascending
11605         address and increasing size,
11606         * main.c (_pic16_finaliseOptions): removed the declaration
11607         of compiler macro MCU. Now a macro of the format pic18fxxxx
11608         will be defined from the command line
11609
11610 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11611             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
11612
11613         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
11614         PCOP_RLCF was overwritten!
11615         * gen.c (genSkip): commented out calls to pic16_emitcode,
11616         * (genCmpEQ): fixed "long" compares, only high word did get compared,
11617         * (genlshTwo),
11618         * (genRRC): added debugging info,
11619         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
11620         overwritten while shifting,
11621         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
11622         overwritten while shifting,
11623         * (AccLsh),
11624         * (AccRsh),
11625         * (shiftLLeftOrResult),
11626         * (shiftRLeftOrResult),
11627         * (shiftRLong),
11628         * (shiftLLong): Implemented with pic16_emitpcode
11629         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
11630         * (genLeftShift): Fixed bug, operand for shift by variable always
11631         was "and"ed with 0x0f,
11632         * (genLeftShiftLiteral),
11633         * (genrshTwo),
11634         * (genRightShiftLiteral): added debugging info,
11635         * (genrshFour): added comment,
11636         * (genRightShift): determined signedness from operand "left"
11637         instead of "result"
11638
11639 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11640
11641         * src/SDCCicode.c (geniCodeParms),
11642         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
11643         function pointers, fixed function pointer bugs #861242 and #861896
11644
11645 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11646
11647         * device/include/c8051f000.h,
11648         * device/include/c8051f120.h,
11649         * device/include/c8051f300.h: added header files for Silicon
11650         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
11651
11652 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
11653
11654         * src/SDCCast.c (processParams): added new type flow and restructured
11655         (gatherAutoInit): added new type flow
11656         (addCast): cosmetic changes
11657         (getLeftResultType): added new type flow for array indices, patch
11658         provided by Stas, see FR #877103
11659         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
11660         array index patch by Stas
11661         * src/SDCCast.h: added prototype getResultTypeFromType()
11662         * src/SDCCval.h,
11663         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
11664         * src/pic/glue.c (pic14emitStaticSeg),
11665         * src/pic16/glue.c (pic16emitStaticSeg),
11666         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
11667         for initialization of symbols
11668         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
11669         * support/Util/SDCCerr.h:
11670         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
11671         * .version: bumped version number to 2.3.8
11672         * device/include/Makefile.in (install),
11673         * doc/Makefile (install): changed to 'rm `find ...`' construct to
11674         avoid warnings
11675
11676 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
11677
11678         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
11679         Slade Rich fixed an optimization bug
11680         * src/pic/pcodepeep.c,
11681         * src/pic/pcoderegs.c
11682         * doc/Makefile (install): added test for directory
11683
11684 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11685
11686         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
11687         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
11688         * src/pic/ralloc.c (getRegPtr, getRegGpr),
11689         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
11690         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
11691         * as/mcs51/asexpr.c (term),
11692         * as/hc08/asexpr.c (term): fixed bug #887146
11693
11694 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11695
11696         * src/z80/gen.c (genMult): handle single byte result product
11697         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
11698         DUMMY_READ_VOLATILE (fixed bug #886367)
11699
11700 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
11701
11702         * support/regression/tests/libmullong.c: fixed logic, on little endian
11703         hosts we ended without a mullong_wrapper()
11704
11705 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11706
11707         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
11708         virus/worm forged address usage.
11709
11710 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
11711
11712         Fixed promotion, it should be done on AST level:
11713         * src/SDCCast.c (addCast): added promotion to int
11714         (decorateType): updated call to upCast()
11715         * src/SDCCicode.c (geniCodeLeftShift): removed call to
11716         usualUnaryConversions()
11717
11718 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
11719
11720         * support/regression/tests/literalop.c (mulWrapper): Added a
11721         wrapper to remove integer overflow warnings.
11722
11723         * support/regression/tests/float_trans.c: Made work on host.
11724
11725         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
11726         location of sz80.
11727
11728         * support/regression/generate-cases.py (main): Changed from inline
11729         to a main method.
11730
11731         * doc/Makefile (install): Changed to depth first to get rid of
11732         missing directory install warning.
11733
11734         * as/Makefile (install-doc): Made work on Mac.
11735
11736 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
11737
11738         * src/SDCCast.c: added an additional type flow in decorateType() of
11739         opposite direction, see feature request #860006; it's enabled at runtime
11740         by setting the environment variable SDCC_NEWTYPEFLOW
11741         * src/SDCCast.h: changed prototype of decorateType()
11742         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
11743         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
11744         'char' to 'int' can be omitted, if both operands are 'unsigned char';
11745         see feature request #877103
11746         * src/SDCCval.c: updated call of decorateType()
11747         (valBitwise): fixed bug #882876
11748         (valMinus): added promotion
11749         (valLogicAndOr): result is unsigned
11750         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
11751         * src/SDCCsymt.c (computeType),
11752         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
11753         must not cause an unsigned operation
11754         * src/pic/glue (pic14emitRegularMap),
11755         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
11756
11757 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
11758
11759         * src/pic/pcode.c (PCodeID): commented out left over debug code
11760
11761 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
11762
11763         * support/valdiag/tests/overflow.c: added shift tests
11764         * src/pic/device.c,
11765         * src/pic/gen.c,
11766         * src/pic/gen.h,
11767         * src/pic/glue.c,
11768         * src/pic/main.c,
11769         * src/pic/pcode.c,
11770         * src/pic/pcode.h,
11771         * src/pic/pcodepeep.c,
11772         * src/pic/pcoderegs.c,
11773         * src/pic/ralloc.c,
11774         * src/pic/ralloc.h: applied patch from Slade Rich;
11775         added support for multiple code pages and multiple RAM banks on the
11776         PIC 14 port. The ASM files now no longer simply assume all the
11777         code / RAM are in the same page / bank. This means the linker can
11778         safely allocate code/RAM of separate ASM files to different pages/banks.
11779         * doc/sdccman.lyx: added Slade's tips
11780         * src/mcs51/peeph.def: fixed bug #880768
11781
11782 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11783
11784         * src/hc08/ralloc.c (rematStr): fixed bug #879282
11785         * src/SDCCast.c (decorateType): fixed bug #880197
11786
11787 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
11788
11789         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
11790         getopt.h.
11791
11792         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
11793         strtof is not part of C89 and isn't included with Mac OS X.
11794
11795 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11796
11797         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
11798         shiftL2Left2Result): fixed bug #879326
11799         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
11800         (genMultOneByte): fixed bug in signed vs unsigned multiplication
11801         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
11802         address fetch for clr instruction
11803         * device/lib/hc08/_mulint.c: created optimized assembly version
11804         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
11805
11806 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
11807
11808         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
11809         proposed in FR #877103
11810
11811 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
11812
11813         * src/SDCCval.c (cheapestVal): added missing checks
11814         * src/SDCCicode.c (usualBinaryConversions): fixed condition
11815         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
11816
11817 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
11818
11819         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
11820         equal operands
11821
11822 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
11823
11824         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
11825         loaded with the linker search paths (-L arguments) and the libraries
11826         to be linked with the current source (-l arguments). Changes
11827         currently will affect only the pic16 port.
11828         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
11829         include path the port specific paths and port specific libraries,
11830         * gplink command now contains the $3 argument,
11831         * src/pic16/device.h,
11832         * src/pic16/device.c,: structure PIC_device is made public and
11833         renamed to PIC16_device, the same for variable Pics which is renamed
11834         to Pics16. Updated all references to them.
11835         * src/pic16/glue.c (pic16glue): corrected bug with code
11836         initialization which bypassed the variable initializations block.
11837
11838         * device/lib/pic16/Makefile.rules: removed --penable-stack from
11839         COMPILE_FLAGS and added the --nostdinc option
11840
11841 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11842
11843         * device/include/mc68hc908jb8.h: Register defs for another member
11844         of the hc08 family. Contributed by Bjorn Bringert - thanks!
11845
11846 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
11847
11848         Documenting changes from previous commits.
11849         * configure.in (version 1.56),
11850         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
11851         when generating output files to configure the pic16 library,
11852         but now I've commented it out, since gputils aren't installed in the
11853         SF compile farm, so library won't compile
11854
11855         * device/lib/Makefile.in (version 1.56): initially I've added in
11856         target 'all' the prerequestive 'model-pic16' so it compiled the
11857         pic16 library, but now I've commented it out for the same reasons
11858         above,
11859         * added targets 'model-pic16' and 'objects-pic16' to compile the
11860         library
11861         * added target 'port-specific-objects-pic16' to handle the
11862         generated libraries and copy them into the build/ directory
11863         * added target 'clean-intermediate-pic16' to clean intermediate
11864         files into pic16 directory
11865         * in target 'installdirs' added line to create directory pic16 in
11866         the installation path
11867
11868         * device/include/Makefile.in (version 1.11): in target 'install'
11869         added lines to copy all header files to installation path,
11870         * in target 'installdirs' added line create directory for pic16
11871         headers in the installation path
11872
11873 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
11874
11875         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
11876          a function call
11877
11878 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
11879
11880         * configure,
11881         * device/lib/configure.in,
11882         * device/lib/configure: fixed for autoconf 2.57
11883
11884 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11885
11886         * src/z80/main.c (_parseOptions): fixed the portmode= command line
11887         option so that it actually works. Made it specific to the z80, since
11888         the gbz80 doesn't have these kinds of I/O ports.
11889
11890 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11891
11892         * device/include/z180.h,
11893         * device/lib/_memcpy.c,
11894         * device/lib/_memmove.c,
11895         * device/lib/_mulint.c,
11896         * device/lib/ser_ir.c,
11897         * device/lib/ser_ir_cts_rts.c,
11898         * device/lib/_strcmp.c,
11899         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
11900         * src/z80/main.c (_process_pragma): add support for pragmas bank and
11901         portmode; added deprecation warning for bank= and protmode= forms.
11902         Also, guard against buffer overflow.
11903         * src/z80/gen.c (aopGet): generate better code for sfr banked read
11904
11905 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11906
11907         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
11908         changed interrupt vector table generation to only emit declared vectors.
11909         * device/include/Makefile.in: added missing backslash
11910         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
11911
11912 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
11913
11914         Mainly changes to support compilation of the device libraries
11915         * src/pic16/device.c: stack is allocated via symbol and not
11916         via literal number. The symbol is placed in the corresponding
11917         position of the data ram
11918         * (pic16_dump_section): relocatable and absolute uninitialized
11919         data are now emitted in sorted order to reduce section naming,
11920         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
11921         weren't marked as being in the access bank,
11922
11923 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
11924
11925         Added portion of GNU PIC Library under the directory
11926         device/include/pic16 and device/lib/pic16. These files
11927         contain the declarations of SFRs for the PIC18Fxx2 devices.
11928         The directory is initialized via configure from toplevel.
11929
11930 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
11931
11932         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
11933         the spilllocations to be compared correctly
11934
11935 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
11936
11937         * src/SDCCast.c (decorateType): fixed bug introduced today
11938
11939 2004-01-12  Borut Razem <borut.razem AT siol.net>
11940
11941         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
11942         doc/sdccman.lyx: upper case pragmas are deprecated
11943
11944 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
11945
11946         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
11947         in simpler and even better code
11948
11949 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
11950
11951         * src/SDCCicode.c (operandOperation): fixed bug #874819
11952         * src/SDCCast.c (decorateType): fixed
11953         char foo (unsigned long ul) { return ul > 0; }
11954
11955 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11956
11957         * doc/sdccman.lyx: Moved and added some sections, small changes
11958         all over. Telling LaTeX to be less strict with word spacing
11959         to better keep the right margin. Changed some notes about
11960         maintainance of the ports in section 3.2.1 - is it OK like this?
11961
11962 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
11963
11964         SDCC source changes:
11965         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
11966         convilong): modified to inform the pic16 port that builtin functions
11967         are external
11968
11969         PIC16 PORT specific changes:
11970         * src/pic16/device.c pic16_dump_equates() added,
11971         processor registers declared internally by the port are emitted in
11972         the translation as equates,
11973         * src/pic16/gen.c: inline code is passed unprocessed to the
11974         translation,
11975         * (pic16_popGetLit2): fnuction modified to take second operand as
11976         pCodeOp pointer and not as literal,
11977         * (popRegFromIdx): prefixed with pic16_,
11978         * (pic16_popCombine2): modified to receive already allocated pCode
11979         operands,
11980         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
11981         * (genFunction): initializes local stack frame and pushes on stack
11982         all the registers used by this function,
11983         * (genEndFunction): restores all registers from stack and restores
11984         stack frame,
11985         * src/pic16/glue.c (pic16emitRegularMap): various changes and
11986         improvements,
11987         * (pic16glue): changed the program startup sequence,
11988         * added new dbName code 'A' for functions placed in absolute section
11989         * src/pic16/main.c: added function attribute _naked,
11990         * added pragma 'code' to place a fnuction at an absolute address,
11991         * added command line arguments --debug-ralloc and --pcode-verbose,
11992         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
11993         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
11994         * (pic16_newpCodeOpLit2): modified to take the second operand as
11995         pCodeOp pointer,
11996         * (pic16_printpBlock): modified to emit each function in a separate
11997         section,
11998         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
11999         UPPER for immediate operands,
12000         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
12001         instruction,
12002         * src/pic16/peeph.def: all peepholes with movff are commented out,
12003         because there is a problem in the pcode peep optimizer,
12004         * src/pic16/ralloc.c: the register allocator can now reuse local
12005         function symbols for another function. This saves register usage.
12006         * src/pic16/ralloc.h: added flag isLocal in structure regs,
12007
12008         Added file src/pic16/NOTES with information about program writing on
12009         the current port version.
12010
12011 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12012
12013         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
12014         and peephole 252 (array access)
12015
12016 2004-01-09  Borut Razem <borut.razem AT siol.net>
12017
12018         * src/SDCCmain.c : fixed #872250: -l command line defined library
12019           files are scanned before standard library files
12020
12021 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12022
12023         * src/SDCCast.c (decorateType): fixed bug #874046
12024
12025 2004-01-09  Borut Razem <borut.razem AT siol.net>
12026
12027         * support/scripts/sdcc.nsi: remove previous installation
12028
12029 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12030
12031         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
12032         bytes for last interrupt vector (mcs51)
12033         * sdcc.spec: fixed typo
12034
12035 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12036
12037         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
12038         gen51Code): more efficient parameter receive for --model-large
12039         ("bug" #845294)
12040
12041 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12042
12043         * src/ds390/main.c,
12044         * src/z80/main.c: added missed needLinkerScript flags (more than
12045         one port structure defined in these file)
12046         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
12047         bug #795325
12048
12049 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
12050
12051         * src/SDCCmain.c: removed various references to DEFAULT_PORT
12052         * src/port.h: added flag needLinkerScript in port->linker
12053         structure to inform whether to create a .lnk file or not,
12054         * src/avr/main.c,
12055         * src/ds390/main.c,
12056         * src/hc08/main.c,
12057         * src/mcs51/main.c,
12058         * src/pic/main.c,
12059         * src/pic16/main.c,
12060         * src/xa51/main.c,
12061         * src/z80/main.c: changed appropriately to configure
12062         needLinkerScript flag
12063         * src/pic/gen.c,
12064         * src/pic16/gen.c (genAddrOf): fixed bug #863624
12065         * src/pic/glue.c: added variable udata_section_name to
12066         override default uninitialized data segment definition for
12067         devices only with SHAREBANK memory (reported from Erik Epetrich)
12068         * (pic14emitOverlay): modified to emit a commented overlay segment
12069         directive when no overlay data exist
12070         * (picglue): modified to emit uninitialized data segment
12071         according to udata_section_name
12072         * src/pic/main.c (_pic14_parseOptions): added command line
12073         options --udata-section-name=[name] to override default
12074         udata definition name
12075         * modified _linkCmd and _asmCmd to include compiler passed
12076         arguments via -W option
12077         * src/pic16/main.c: added $l in _asmCmd, changed extension for
12078         object file from '.rel' to '.o' in port->linker structure,
12079         changed size of fptr from 2 to 3 in port structure
12080
12081 2004-01-07  Borut Razem <borut.razem AT siol.net>
12082
12083         * support/scripts/sdcc.nsi: update PATH
12084         * support/scripts/sdcc.ico: craeted
12085
12086 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
12087
12088         * device/include/Makefile.in: fix install
12089         * doc/Makefile: fix install
12090
12091 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12092
12093         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
12094         in bug #860505
12095         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
12096         how the function variable allocation summary is displayed; also
12097         include information about variables allocated to the overlay
12098         segment
12099
12100 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12101
12102         * as/mcs51/lkmain.c: Help about -Y option
12103         * as/mcs51/lkarea.c: Fixed gcc warnings
12104
12105 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
12106
12107         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
12108         fixed warning
12109         * support/valdiag/tests/overflow.c: added
12110         * src/SDCCast.c (decorateType),
12111         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
12112         LEFT_OP (left shift)
12113
12114 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12115
12116         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
12117         (default behaviour).
12118
12119 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12120
12121         A python script to validate compiler diagnostic messages. It can be
12122         used to verify that sdcc complains about bad c source code and
12123         gives a good location of the error.
12124         * support/valdiag/Makefile,
12125         * support/valdiag/valdiag.py,
12126         * support/valdiag/tests/*
12127
12128 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12129
12130         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
12131         * src/SDCCsymt.c (newEnumType),
12132         * src/SDCCsymt.h
12133         * support/Util/SDCCerr.c,
12134         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
12135         enum related bugs.
12136         * support/regression/tests/enum.c: added test for enum values that
12137         require at least 2 bytes of storage.
12138
12139 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
12140
12141         * src/common.h: added ifndef/define/endif macros
12142         around the header file.
12143         Bug reported from Jesus Calvino-Fraga
12144
12145 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
12146
12147         * sdcc.spec: updated
12148         * device/include/Makefile.in: don't install CVS directories
12149         * device/lib/Makefile.in: added removal of CVS directories after install
12150         * doc/Makefile: fixed install, added local_icons
12151         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
12152         * src/mcs51/gen.c (genRightShift): fixed bug #870788
12153         * src/ds390/gen.c (genRightShift): fixed bug #870788
12154         * src/SDCCast.c (decorateType): fixed bug #870781
12155
12156 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
12157
12158         PIC16 port related changes:
12159         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
12160         added variable stackPos,
12161
12162         * gen.c: genCall, assignResultValue: added support for
12163         pushing/retrieving function parameters to/from stack,
12164         genFunction,genEndFunction: setup stack frame for the
12165         generated function,
12166         genAddrOf: will be changed according to bug 863624
12167
12168         * added files genutils.c and genutils.h which contain gen*
12169         debugged and optimised functions extracted from gen.c
12170
12171         * glue.c: added variable 'externs' which holds extern symbols,
12172         pic16emitRegularMap: is modified to properly handle relocatable
12173          symbols under the new scheme,
12174         pic16createInterruptVect: is modified
12175         pic16printPublics: is modified to emit 'global' assembler directives,
12176         added pic16_printExterns to print extern symbols,
12177         pic16glue: initializes stack/frame pointer in the beginning of
12178         the assembly output. Temporary hack, will be corrected later,
12179         because gplink yet does not support stack and SDCC does not
12180         yet support a type of crt0.o object to create the final binary.
12181
12182         * Removed many lines that contain 8051 legacy code.
12183         * The code is finally placed under a 'code' directive.
12184         * Added port specific options.
12185
12186         * _process_pragma: simplified since now we do not need *special*
12187         include file to define SFR registers. But a separate header
12188         will be needed. This will be developed later.
12189         * _pic16_parseOptions: added, parses port specific options:
12190         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
12191         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
12192         --preplace-udata-with=
12193
12194         * _pic16_setDefaultOptions: modified to initialize section names,
12195         but hack is temporarly out of order since it needs improvement.
12196         * _pic16_genAssemblerPreamble: configuration words are emitted by
12197         their address instead of their name. This part is incomplete and
12198         supports only the 18Fxx2 devices. Other devices will emit an error
12199         during assembly since they do not contain the same set of config
12200         registers
12201         * _pic16_genIVT: is modified,
12202
12203         * pcode.c: added definitions for some hardware registers that are needed
12204         for stack support
12205         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
12206         All PCI entries are updated. Now LFSR is supported.
12207         * Removed pic16_pciTRIS is mentioned by mdubuc in source
12208         * added pic16_newpCodeOpLit2 to support instructions with
12209         two literal arguments
12210         * pic16_pCode2str: corrected code that emits assembler instructions
12211         with two literal operands and those that have an access bit modifier
12212         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
12213         this fixes a bug which caused some labels to be lost, when an
12214         assembler directive was added, i.e. banksel,
12215         * pic16_FixRegisterBanking: improved logic that causes the insertion
12216         of bank switching,
12217         * InlineFunction: functions that are called once, are not any more
12218         inlined. This can be a port option in the future,
12219
12220         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
12221
12222         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
12223         hold the corresponding uninitialized symbols,
12224         * pic16_allocProcessorRegister: registers have explicit marked the
12225         accessBank field,
12226         * pic16_allocInternalRegister: registers are explicit marked as
12227         not used,
12228         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
12229         processing list, so bit registers were lost,
12230         *
12231
12232         * ralloc.h: added field 'accessBank' and original symbol operand
12233         in register definition,
12234         * removed the field isMapped from register definition,
12235
12236         ** Several functions have been removed from various sources:
12237         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
12238         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
12239         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
12240         pic16_assignRelocatableRegisters
12241
12242         ** others have been introduced:
12243         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
12244         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
12245
12246 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
12247
12248         * support/scripts/inc2h.pl: changed definition of BIT_AT
12249         to emit 'sbit at' instead of 'bit at'. This was a request.
12250
12251         PIC16 port related preliminary changes:
12252         * gen.c: prefixed function popRegFromString with
12253         pic16_ and all references to it corrected
12254         * pcode.c: all pic16_pc_* hardware registers prefixed
12255         with underscore (_),
12256         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
12257         * ralloc.c: newReg(): when register is REG_SFR then
12258         set address to rIdx,
12259         pic16_allocProcessorRegister(): marks register wasUsed=0
12260         pic16_writeUsedRegs(): added a call to assign processor
12261         registers via pic16_assignFixedRegisters
12262
12263 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12264
12265         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
12266         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
12267         variables in unused register banks.  Also the SSEG is placed
12268         wherever there is enough space for it, and IDATA can be anywhere
12269         in internal RAM.  For now compile using -Wl-Y[stack_size].
12270         The mem file is different for this option as well, since it
12271         makes no sense of talking about DSEG lenght.
12272
12273 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
12274
12275         * src/SDCClrange.c: fixed bug 869095 that caused segfault
12276         in certain cases, e.g. when ROM assignment, patch provided
12277         from Albert den Haan.
12278
12279 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
12280
12281         Many signedness and type propagation fixes:
12282         * src/SDCCicode.c: made geniCodeCast() static
12283         replaced SPEC_ by IS_ (cosmetic)
12284         (operandOperation): fixed div and mod operation
12285         (usualBinaryConversions): added support for promotion of char
12286         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
12287         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
12288         (geniCodeAdd): an array index will stay unsigned, even if promoted
12289         from char to int
12290         (geniCodeArray): ditto
12291         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
12292         * src/SDCCsymt.c (computeType): added more support for char;
12293         promotion of char is selectable by promoteCharToInt, fixed signedness
12294         for all cases
12295         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
12296         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
12297         * src/SDCCval (val*): replaced signedness calculation by
12298         computeType()
12299         rearranged if-branches (cosmetic)
12300         (valShift): added warning W_SHIFT_CHANGED
12301         (valCompare): fixed problem with different types
12302         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
12303         * support/regression/tests/literalop.c: added many cases
12304         * support/regression/tests/ast_constant_folding.c: changed finally to
12305         'unsigned int'
12306         * .version: new year, new version: 2.3.7
12307         * src/SDCCmain.c (main): applied patch #866468
12308         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
12309         provided by Scott Bronson
12310         * doc/sdccman.lyx: updated documentation for sdcdb
12311         updated and added chapter tips
12312
12313 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12314
12315         * src/SDCCsymt.h: missing from yesterday's commits
12316
12317 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12318
12319         * src/SDCC.y (struct_or_union_specifier),
12320         * support/Util/SDCCerr.c,
12321         * support/Util/SDCCerr.h: verify that struct & union tags are used
12322         as declared.
12323
12324 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12325
12326         * src/SDCCglobl.h: missing from yesterday's commits
12327
12328 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12329
12330         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
12331         sft_attributes, struct_declaration, parameter_declaration,
12332         type_name, start_block, declaration_list),
12333         * src/SDCC.lex (check_type): support redefinition of typedef names
12334
12335 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12336
12337         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
12338         aligned xdata arrays. Erik helped me with the if clause.
12339
12340 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12341
12342         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
12343         warning
12344
12345 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12346
12347         * src/SDCCast.h,
12348         * src/SDCCast.c (newAst_),
12349         * src/SDCCicode.h,
12350         * src/SDCCicode.c (ast2iCode, newiCode),
12351         * src/SDCCglobl.h,
12352         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
12353         expr, statement, expression_statement, selection_statement,
12354         iteration_statement, expr_opt, jump_statement): foundation for tracking
12355         sequence points
12356         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
12357         point code too)
12358
12359 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12360
12361         * support/Util/SDCCerr.c,
12362         * src/SDCCast.h,
12363         * src/SDCCast.c (createCase, createDefault, decorateType),
12364         * src/SDCClabel.c (labelUnreach),
12365         * src/SDCC.y (labeled_statement, jump_statement): More improvements
12366         to error messages.
12367         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
12368         (with thanks to Stas Sergeev)
12369         * device/include/time.h,
12370         * device/lib/time.c (CheckTime): suppress unreachable code warning
12371
12372 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12373
12374         * src/SDCCast.c (createIvalCharPtr),
12375         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
12376         bug #753752)
12377         * support/regression/tests/nullstring.c: tests for these two bugs
12378
12379 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12380
12381         * support/Util/SDCCerr.h,
12382         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
12383         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
12384         about storage class and 'at' used inside struct or union
12385         * src/SDCCBBlock.c (iCodeFromeBBlock),
12386         * src/SDCCcse.c (ifxOptimize),
12387         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
12388         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
12389         printIval, emitStaticSeg, emitOverlay),
12390         * src/SDCClabel.c (deleteIfx),
12391         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
12392         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
12393         gatherAutoInit, processParms),
12394         * support/Util/SDCCerr.h,
12395         * support/Util/SDCCerr.c (werrorfl): Support for better error location
12396         reporting for post-parse errors.
12397
12398 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12399
12400         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
12401         implicit casts via union; they don't work on big endian systems
12402         (possible fix for bug #861138)
12403
12404 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12405
12406         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
12407         * src/mcs51/main.c: fixed the fix for bug #737001
12408
12409 2003-12-15  Borut Razem <borut.razem AT siol.net>
12410
12411         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
12412
12413 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12414
12415         * support/makebin/makebin.c: put output in binary mode
12416
12417 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12418
12419         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
12420         xdata and data memory on startup. Set the environment variable
12421         SDCC_NOGENRAMCLEAR to disable this.
12422         * src/mcs51/peephole.def,
12423         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
12424         (allows non-interrupt and interrupt code to safely compete for a resource
12425         without the non-interrupt code having to disable interrupts)
12426
12427 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12428
12429         * src/SDCCicode.c (geniCodeAdd),
12430         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
12431         with valFromType if type might be a pointer and host is big endian).
12432         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
12433         types, not just integer types.
12434         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
12435         multiply defined with mismatching "at" address.
12436
12437 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12438
12439         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
12440         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
12441         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
12442         with embedded nulls (fixed bug #753752)
12443
12444 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12445
12446         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
12447         Apparently this did not see much testing (endless loop)
12448
12449 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12450
12451         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
12452
12453 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12454
12455         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
12456         gracefully handle NULL memmap pointers
12457
12458 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12459
12460         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
12461         instead of deleting the iCode when an operand is volatile
12462         * src/z80/gen.c (genDummyRead),
12463         * src/mcs51/gen.c (genDummyRead),
12464         * src/ds390/gen.c (genDummyRead),
12465         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
12466         not just IC_RIGHT
12467         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
12468         * src/SDCC.y: fixed bug #850420
12469
12470 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12471
12472         Applied z80 i/o port patch from Peter Townson and fixed some operators
12473         to better handle operands in A register.
12474         * device/include/z180.h
12475         * src/SDCC.y
12476         * src/SDCCglue.c
12477         * src/z80/gen.c
12478         * src/z80/gen.h
12479         * src/z80/main.c
12480         * src/z80/peeph-z80.def
12481         * src/z80/peeph.def
12482         * src/z80/z80.h
12483
12484 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12485
12486         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
12487
12488 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12489
12490         * device/lib/hc08/_mullong.c: Removed extra #endif
12491
12492 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12493
12494         * sim/ucsim/hc08.src/inst.cc,
12495         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
12496         carries from x to h
12497         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
12498         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
12499         * device/include/stdarg.h: fixed varargs for hc08
12500         * device/lib/Makefile.in,
12501         * device/lib/hc08/Makefile,
12502         * device/lib/hc08/_mulint.c,
12503         * device/lib/hc08/_mullong.c: fixed some endian problems
12504
12505 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12506
12507         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
12508         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
12509         * device/lib/_gptrget.c,
12510         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
12511
12512 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12513
12514         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
12515         * src/SDCCast.c (astErrors): fixed bug #846007
12516         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
12517
12518 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12519
12520         * src/SDCCast.c (decorateType): disabled a transformation I added in
12521         revision 1.188 (access to fields of a structure at an absolute address);
12522         it breaks with bitfields, extern declarations, and gcse analysis.
12523         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
12524         could be assigned through a pointer, so don't complain.
12525         * src/SDCCast.c (astErrors),
12526         * src/SDCCast.h,
12527         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
12528
12529 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
12530
12531         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
12532         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
12533         output of __config directives, since gpasm now supports them
12534         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
12535         pre-processor macro, i.e. -DMCU=p18f452
12536         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
12537         and modified to handle 'cast' icode similarly to '=' icode
12538         * src/pic16/device.h (typedef struct PIC_device): added field
12539         'extMIface' to indicate that chip has external memory interface
12540         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
12541         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
12542         18F8720
12543
12544 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12545
12546         * src/SDCC.y (pointer): fixed bug #846006
12547         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
12548         * src/SDCCast.c (decorateType): fixed bug #846009
12549         * src/ds390/peeph.def,
12550         * src/ds390/gen.c (genAnd, genOr),
12551         * src/mcs51/peeph.def,
12552         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
12553
12554 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12555
12556         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
12557         * src/SDCCdflow.c
12558         * src/SDCCcse.c
12559         * src/SDCCcse.h
12560         * src/SDCCBBlock.h
12561         * src/SDCCBBlock.c
12562
12563 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
12564
12565         fixed bug #845089
12566         * src/SDCCbitv.h,
12567         * src/SDCCbitv.c: added function to free a bitvector
12568         * src/SDCClrange.h,
12569         * src/SDCClrange.c: added function to recompute the liveranges
12570         * src/avr/ralloc.c,
12571         * src/ds390/ralloc.c,
12572         * src/hc08/ralloc.c,
12573         * src/mcs51/ralloc.c,
12574         * src/pic/ralloc.c,
12575         * src/pic16/ralloc.c,
12576         * src/xa51/ralloc.c,
12577         * src/z80/ralloc.c: recompute the liveranges after register packing
12578
12579 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
12580
12581         * src/SDCCloop.c (newInduction): fixed bug #845630
12582
12583 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12584
12585         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
12586         inadvertantly left behind from my 2003-11-12 change
12587
12588 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12589
12590         Updated headers I neglected to commit yesterday.
12591         * src/SDCClrange.h,
12592         * src/SDCCicode.h
12593
12594 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12595
12596         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
12597         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
12598         * src/SDCCopt.c (eBBlockFromiCode),
12599         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
12600         the creation of the key hash table from the sequencing so it can be used
12601         earlier (for some GCSE bug fixes still pending)
12602
12603 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12604
12605         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
12606         * support/regression/tests/addsub.c: testing genPlus shortcut
12607
12608 2003-11-15  Borut Razem <borut.razem AT siol.net>
12609
12610         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
12611
12612 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12613
12614         * src/SDCCcse.c (cseBBlock): fixed bug #527779
12615         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
12616         ordering is immaterial.
12617         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
12618
12619 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12620
12621         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
12622         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
12623         (SIGSEV) of bug #840381
12624         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
12625         unlink new file before rename if new and old filenames are the same)
12626
12627 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12628
12629         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
12630         uninitialized variables) for the mcs51. Set environment variable
12631         SDCC_GENRAMCLEAR to test.
12632         xdata initialization slightly shorter
12633
12634 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12635
12636         * src/SDCCsymt.h,
12637         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
12638         #838241 & 780691 (basicly the same bug)
12639         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
12640         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
12641
12642 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
12643
12644         * src/SDCCmain.c (linkEdit): "fix" #834252
12645
12646 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12647
12648         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
12649         * src/SDCCast.h,
12650         * src/SDCC.y: fixed bug #819403
12651
12652 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12653
12654         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
12655         the reentrant attribute.
12656         * src/hc08/gen.c (genPackBits): added missing stack readjustment
12657         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
12658         simulation
12659         * src/SDCCast.c (decorateType): fixed bug with storage class not being
12660         updated during pointer dereference; f.e. ~(((char *)1)*) was being
12661         erroneously reduced to a literal.
12662         * src/hc08/ralloc.c (packRegisters, rematStr),
12663         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
12664         some cases
12665
12666 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12667
12668         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
12669         * doc/sdccman.lyx: changed from 'article' to 'book'
12670         * doc/Makefile: readded test_suite_spec and cdbfileformat
12671
12672 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
12673
12674         * device/include/stdlib.h: include malloc.h to comply with ANSI
12675         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
12676
12677 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12678
12679         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
12680         * doc/clean.mk: also remove *.out files
12681         * doc/sdccman.lyx: some additions, larger top/bottom margins
12682
12683 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12684
12685         * src/SDCC.y: fixed bug #837365
12686         * support/regression/tests/bitopcse.c
12687         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
12688         a symbol (might be valop instead)
12689         * device/lib/Makefile.in: added errno.c to HC08SOURCES
12690         * device/lib/clean.mk: added hc08 to the cleaning list
12691
12692 2003-11-04  Borut Razem <borut.razem AT siol.net>
12693
12694         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
12695           made 2003-11-04
12696         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
12697           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
12698           malloc is declared in standard stdlib.h
12699
12700 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12701
12702         * device/lib/hc08/Makefile: need to clean .rel not .o files
12703         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
12704
12705 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12706
12707         * src/port.h,
12708         * src/hc08/main.c,
12709         * src/mcs51/main.c,
12710         * src/ds390/main.c,
12711         * src/z80/main.c,
12712         * src/avr/main.c,
12713         * src/pic/main.c,
12714         * src/pic16/main.c,
12715         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
12716         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
12717         tests (which uses the port's oclsExpense function)
12718         * src/SDCC.y,
12719         * src/SDCCast.c,
12720         * src/SDCCicode.c,
12721         * src/hc08/gen.c,
12722         * src/ds390/gen.c,
12723         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
12724
12725 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12726
12727         * src/SDCCcse.c (ifxOptimize),
12728         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
12729         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
12730         deleting the IFX iCode.
12731         * src/hc08/ralloc.c: reduced unneeded slocs
12732         * src/hc08/gen.c: fixed bug in asmopToBoolean
12733
12734 2003-11-04  Borut Razem <borut.razem AT siol.net>
12735
12736         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
12737           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
12738           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
12739           transferred to configure
12740
12741 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
12742
12743         Use headers defined in the C[++] standards:
12744         * sim/ucsim/gui.src/serio.src/fileio.cc
12745         * sim/ucsim/gui.src/serio.src/frontend.cc
12746         * sim/ucsim/gui.src/serio.src/main.cc
12747         * sim/ucsim/gui.src/serio.src/posix_signal.cc
12748         * support/Util/NewAlloc.c
12749         * as/hc08/lklibr.c
12750         * as/mcs51/lklibr.c
12751         * as/z80/aslist.c
12752         * as/z80/assym.c
12753
12754 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12755
12756         * Added MSVC projects for hc08 assembler and linker:
12757         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
12758         /as/hc08/link_hc08.dsp
12759
12760 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
12761
12762         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
12763
12764 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
12765
12766         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
12767
12768 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12769
12770         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
12771
12772 2003-10-31  Borut Razem <borut.razem AT siol.net>
12773
12774         * support/cpp2/cpplib.h,
12775           support/cpp2/cpplib.c,
12776           support/cpp2/cpplex.c,
12777           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
12778           to switch _asm block preprocessing on / off. Default is
12779           #pragma preproc_asm +
12780
12781 2003-10-31  Borut Razem <borut.razem AT siol.net>
12782
12783         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
12784           when outputting comment blocks (when executed with -C option) and
12785           _asm (SDCPP specific) blocks
12786
12787 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12788
12789         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
12790
12791 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
12792
12793         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
12794
12795 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
12796
12797         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
12798         * src/SDCCast.c (decorateType): fixed bug #832664
12799
12800 2003-10-31  Borut Razem <borut.razem AT siol.net>
12801
12802         * support/cpp2/cpplex.c: fixed for SDCPP:
12803           comments(when executed with -C option) and _asm blocks
12804           were included even if they where in skipped #if block.
12805           Applied solution from GCC cpp 3.3.2
12806
12807 2003-10-31  Borut Razem <borut.razem AT siol.net>
12808
12809         * src/SDCC.lex: sdcc now understands both formats:
12810           '# <line_number> <file_name>' and
12811           '#line <line_number> <file_name>'
12812         * support/cpp2/cppmain.c: sdcpp now generates the standard
12813           '# <line_number> <file_name>' instead of former
12814           '#line <line_number> <file_name>'
12815
12816 2003-10-30  Borut Razem <borut.razem AT siol.net>
12817
12818         * support/cpp2/cpphash.h,
12819         * support/cpp2/cpplib.h
12820         * support/cpp2/cpplex.c,
12821         * support/cpp2/cppmain.c,
12822         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
12823
12824 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12825
12826         Fixed a number of problems revealed by bug #827883.
12827         * src/SDCCloop.c (loopInvariants): Spill location of the
12828         result operand should be recomputed if extracted from
12829         a loop. Also, don't extract assignments of an iTemp
12830         from a literal.
12831         * src/SDCCast.c (isConformingBody): loop reversal should
12832         not occur if the control variable is involved with a
12833         relational operator.
12834
12835 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
12836
12837         * .version: bumped to 2.3.6 to reflect the big improvements
12838         made by Erik and Klaus. Thanks!
12839
12840 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
12841
12842         Replaced the livrange code.
12843         * src/SDCClrange.c: added new LR code
12844         * src/SDCCloop.c,
12845         * src/SDCCBBlock.h: removed remainig parts from old LR code
12846         * src/ds390/ralloc.c,
12847         * src/ds390/gen.c: minor fixes to make it work with new code
12848
12849 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12850
12851         * as/hc08/asm.h,
12852         * as/hc08/lkrloc.c,
12853         * src/hc08/gen.c,
12854         * src/hc08/ralloc.c: Fix various warnings related to the hc08
12855         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
12856         (tweaked fix for bug #818696)
12857
12858 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12859
12860         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
12861
12862 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12863
12864         * src/SDCCmain.c,
12865         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
12866         * src/mcs51/gen.c (gencjneshort),
12867         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
12868         more efficient (per Scott Bronson's suggestion)
12869
12870 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12871
12872         Extended the semantics of the critical keyword to include
12873         individual statements. See RFE #827755 and #799831
12874         * src/SDCC.y
12875         * src/SDCCicode.c
12876         * src/SDCCopt.c
12877         * src/SDCCast.c
12878         * support/Util/SDCCerr.c
12879         * support/Util/SDCCerr.h
12880         * src/mcs51/gen.c
12881         * src/ds390/gen.c
12882         * src/hc08/gen.c
12883
12884 2003-10-19  Borut Razem <borut.razem AT siol.net>
12885
12886         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
12887
12888 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12889
12890         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
12891         Fixed bug #818696
12892         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
12893         and predecrement operand is displayed
12894
12895 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
12896
12897         * src/SDCCval.c (valMinus): fixed bug #826041
12898
12899 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12900
12901         Some hc08 related updates that I missed earlier
12902         * sim/ucsim/stypes.h
12903         * support/regression/ports/hc08/spec.mk
12904
12905 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12906
12907         New target "hc08" for the Motorola 68hc08 family of micros
12908
12909         * configure
12910         * configure.in
12911         * Makefile
12912         * src/hc08/*
12913         * src/SDCCmain.c
12914         * src/port.h
12915         * sim/ucsim/hc08.src/*
12916         * sim/ucsim/configure.in
12917         * src/ucsim/configure
12918         * sim/ucsim/packages_in.mk
12919         * as/hc08/*
12920         * as/Makefile
12921         * device/include/mc68hc908qy.h
12922         * device/lib/hc08/*
12923         * device/lib/Makefile.in
12924         * support/regression/ports/hc08/*
12925         * support/regression/Makefile
12926
12927 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12928
12929         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
12930         regression test
12931         * src/ds390/gen.c (genCast): fixed bug #821957
12932
12933 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
12934
12935         * device/lib/logf.c: "fixed" overlay bug
12936         * support/regression/ports/host/spec.mk: added m library
12937         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
12938         * support/regression/tests/float_trans: added (for Eric)
12939
12940 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
12941
12942         * src/mcs51/gen.c (genCpl): fixed bug
12943         http://sf.net/mailarchive/message.php?msg_id=6263915
12944
12945 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
12946
12947         * src/SDCCast.c (decorateType): added extended constant folding
12948         * src/SDCCsymt.c (computeType): cleanup
12949         * src/SDCCval.c (valShift): minor optimization
12950         * support/regression/tests/ast_constant_folding.c: added
12951
12952 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12953
12954         * src/SDCCmain.c: removed some unintended changes
12955
12956 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12957
12958         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
12959         * src/z80/gen.c: fixed part of bug #817589
12960         * src/SDCCsymt.c (checkFunction): fixed bug #817895
12961
12962 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
12963
12964         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
12965         * src/SDCCcflow.c
12966         * src/SDCCcse.c
12967         * src/SDCCdflow.c
12968         * src/SDCClabel.c
12969         * src/SDCClrange.c
12970         * src/SDCCmem.c
12971         * src/SDCCopt.c
12972         * src/SDCCpeeph.c
12973         * src/SDCCset.c
12974         * src/avr/ralloc.c
12975         * src/ds390/ralloc.c
12976         * src/izt/ralloc.c
12977         * src/mcs51/ralloc.c
12978         * src/pic/ralloc.c
12979         * src/pic16/ralloc.c
12980         * src/xa51/ralloc.c
12981         * src/z80/ralloc.c
12982         * src/z80/gen.c: removed unused label "release:"
12983
12984 2003-10-06  Borut Razem <borut.razem AT siol.net>
12985
12986         * src/SDCC.lex: removed definition of unused variables
12987           save_optimize and save_options
12988
12989 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
12990
12991         * clean.mk: removed '=' in "-maxdepth=1"
12992         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
12993         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
12994
12995 2003-10-06  Borut Razem <borut.razem AT siol.net>
12996
12997         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
12998           my_unput() replaced by unput()
12999
13000 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
13001
13002         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
13003         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
13004         type-punned pointer will break strict-aliasing rules"
13005         Old LR behaviour is again default; Klaus' LR can be choosen by
13006         defining the environment variable LRKLAUS
13007         * src/SDCCBBlock.h
13008         * src/SDCCloop.c
13009         * src/SDCClrange.c
13010         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
13011         * clean.mk: fixed removal of files in bin/CVS/
13012         * device/lib/clean.mk: fixed removal of directories small and large
13013         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
13014         * src/SDCCicode.c,
13015         * src/SDCCval.c: removed superflous test for pedantic
13016
13017 2003-10-05  Borut Razem <borut.razem AT siol.net>
13018
13019         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
13020           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
13021           message "unmatched #pragma SAVE and #pragma RESTORE"
13022
13023 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13024
13025         * doc/sdccman.lyx: various additions and updates (interrupts, inline
13026           assembly, critical functions, atomic, nojtbound)
13027
13028 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
13029
13030         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
13031         * src/SDCCBBlock.h
13032         * src/SDCCloop.c
13033         * src/SDCCloop.h
13034         * src/SDCClrange.c
13035
13036 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13037
13038         * src/z80/gen.h,
13039         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13040         * src/mcs51/gen.h
13041         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13042         * src/ds390/gen.h
13043         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13044         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
13045         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
13046
13047 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13048
13049         * src/z80/gen.c (genRet): fixed bug #524753
13050         * src/z80/gen.c (genCast): fixed internal error on cast from
13051         pointer to long
13052         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
13053         fix for bug #477835 to the z80
13054         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
13055         for tracking iCodes in the peephole optimizer for z80
13056
13057 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13058
13059         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
13060         the other part of bug #814548
13061         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
13062
13063 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
13064
13065         * src/SDCCcse.c: fixed part of bug #814548
13066
13067 2003-09-28  Borut Razem <borut.razem AT siol.net>
13068
13069         * src/asm.c: rewrite of printILine() to use temporary file instead
13070           a pipe
13071         * src/xa51/main.c: commented out declaration of int rewinds
13072
13073 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13074
13075         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
13076
13077 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13078
13079         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
13080         * src/asm.c (printILine): Fixed bug #811015
13081
13082 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13083
13084         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
13085         freeing.
13086
13087 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13088
13089         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
13090         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
13091         to correctly handle general case of AOP_PAIRPTR
13092         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
13093
13094 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13095
13096         * src/mcs51/ralloc.c (fillGaps),
13097         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
13098         register positioning bug)
13099
13100 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
13101
13102         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
13103
13104 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13105
13106         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
13107         genCodePointerGet, genGenPointerGet, genFarPointerSet,
13108         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
13109         (ralloc doesn't intentionally do this now, but perhaps later)
13110         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
13111         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
13112         register positioning bugs (Fixed bug #762602 and #795325)
13113         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
13114         (Fixed bug #808779)
13115         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
13116         lines that --i-code-in-asm generates
13117
13118 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13119
13120         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
13121         trying to fclose a FILE* that was already closed.
13122
13123 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13124
13125         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
13126         of const struct should be treated as if const themselves)
13127
13128 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
13129
13130         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
13131
13132 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13133
13134         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
13135         Unix (/n) and DOS (/r/n) line terminations.
13136
13137 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13138
13139         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
13140         bug #613775
13141
13142 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13143
13144         * src/mcs51/gen.c (genFunction, genEndFunction),
13145         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
13146         and restore of EA so that stack offsets to parameters are
13147         correct when using both critical and reentrant/stack-auto.
13148         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
13149         size (can be triggered in error if sloc is shared between
13150         different sized objects)
13151         * device/include/float.h: fixed macros to explicitly use
13152         unsigned long where needed
13153
13154 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
13155
13156         Feature req. 799831: added code to allow nesting of critical functions
13157         * src/mcs51/gen.c (genFunction, genEndFunction)
13158         * src/ds390/gen.c (genFunction, genEndFunction)
13159
13160 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13161
13162         * src/SDCCsymt.c (sclsFromPtr),
13163         * src/SDCCsymt.h,
13164         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
13165         support for standard C idiom of memory mapped variables; for
13166         example, *((xdata int*)0x1234) = 1 is now internally equivalent
13167         to xdata int at 0x1234 tempvar = 1.
13168         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
13169         provided by Akiya ISHIDA
13170
13171 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
13172
13173         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
13174         * src/SDCCval.c (constVal): added reduction from int to char
13175         * src/SDCCval.c (valMult, valDiv): fixed sign handling
13176         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
13177         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
13178         to ignore the sign
13179         * support/regression/tests/shifts.c: fixed
13180
13181 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13182
13183         * src/z80/gen.c (genXor): Fixed bug #805445
13184
13185 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13186
13187         Fixed bug #621531 (const & volatile confusion in the type chain).
13188         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
13189         refer to the const or volatile state of the pointer itself.
13190
13191         * src/SDCCast.c
13192         * src/SDCCglue.c
13193         * src/SDCCicode.c
13194         * src/SDCCsymt.c
13195         * src/SDCCval.c
13196         * src/SDCC.y
13197         * src/SDCCsymt.h
13198         * src/pic/gen.c
13199         * src/pic/ralloc.c
13200         * src/pic16/gen.c
13201         * src/pic16/ralloc.c
13202         * support/regression/tests/const.c
13203
13204 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13205
13206         When checking for duplicated modules, use absolute paths
13207         instead of relative paths.  Files changed:
13208
13209         * as/mcs51/lklib.c
13210         * link/z80/lklib.c
13211
13212 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13213
13214         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
13215
13216 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13217
13218         * device/include/string.h: added size_t typedef, changed
13219         prototypes to use size_t, eliminated separate reentrant and
13220         non-reentrant declarations, added _memmove declaration
13221         * device/lib/_memcpy.c: changed to use size_t instead of int,
13222         changed /4 to >>2 to avoid division library call
13223         * device/lib/_memcmp.c,
13224         * device/lib/_memset.c,
13225         * device/lib/_strncat.c,
13226         * device/lib/_strncpy.c,
13227         * device/lib/_strncmp.c: changed to use size_t instead of int
13228         * device/lib/_memmove.c: new file (fixed bug #772294)
13229         * device/lib/Makefile.in: added _memmove.c
13230         * device/lib/z80/asm_strings.s: fixed bug #772290
13231         * support/regression/tests/bitfields.c: attempt to fix host assertion
13232         failure on amd64-unknown-linux2.2
13233
13234 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13235
13236         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
13237         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
13238         * as/z80/asmain.c (main): fixed bug #801766
13239
13240 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
13241
13242         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
13243         compilers
13244
13245 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13246
13247         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
13248         reported in bug #800609
13249
13250 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
13251
13252         * Top header beautifications in src/pic16 directory:
13253           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
13254           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
13255           pcoderegs.h, ralloc.c, ralloc.h
13256         * main.c: added top header and GPL license notice
13257         * pcode.c: fixed the if-conditional warning
13258
13259 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
13260
13261         * device/lib/_mullong.c: replaced int by short for gcc
13262
13263 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13264
13265         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
13266         and JUMPTABLE iCodes properly now (worked by accident before)
13267         * src/mcs51/gen.c (leftRightUseAcc),
13268         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
13269         iCode properly now. Use getSize instead of nRegs since a & b
13270         aren't part of the nRegs tally.
13271
13272 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
13273
13274         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
13275         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
13276           before instructions that use the _STATUS register
13277
13278 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
13279
13280         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
13281         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
13282         fetching of the pointer
13283         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
13284         copied from genNearPointerSet()
13285         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
13286         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
13287         If they pop r0/r1 they must be called in the opposite order than aopOp().
13288         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
13289         (resp. --stack-auto), prepared for --xstack
13290
13291 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13292
13293         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
13294
13295 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
13296
13297         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
13298         these ports have their own __sdcc_external_start()
13299
13300 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
13301
13302         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
13303         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
13304         type for bits was changed. It resulted in bit variables becoming
13305         global, which is not permitted in PIC 14 assembly output.
13306
13307 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13308
13309         * doc/sdccman.lyx: various additions and updates. Rearranged sections
13310
13311 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13312
13313         Z80 and MCS51 linkers complaint if a public symbol is defined
13314         in more than one library module:
13315
13316         * as/mcs51/lklib.c
13317         * link/z80/lklib.c
13318         * as/mcs51/Makefile.in
13319
13320 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13321
13322         A few small changes that speed up the peephole optimizer.
13323
13324         * src/SDCCpeeph.c
13325
13326 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13327
13328         Try to make the peephole optimizer smarter by maintaining
13329         an association between the assembly source code and the
13330         iCodes that originated them. Put this information to use
13331         with a new peephole rule condition "notVolatile" so that
13332         the rules can be aggressive yet still safe.
13333
13334         * src/SDCCpeeph.c
13335         * src/SDCCpeeph.h
13336         * src/mcs51/gen.c
13337         * src/mcs51/peeph.def
13338
13339 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13340
13341         Fixed bug #741761
13342
13343         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
13344         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
13345         if the left or right operand symbols have the accuse flag set.
13346
13347 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13348
13349         Changed the type of the result of the ! (NOT) operator to char;
13350         previously it returned the same type as the source. This allows
13351         us to eliminate all the genFloatNot functions (all of its target
13352         implementations were very buggy) since !float can use the same
13353         code as !long now.
13354
13355         * src/SDCCicode.c (ast2iCode): ! returns char
13356         * src/mcs51/gen.c (genNot, genNotFloat),
13357         * src/ds390/gen.c (genNot, genNotFloat),
13358         * src/z80/gen.c (genNot, genNotFloat),
13359         * src/pic/gen.c (genNot, genNotFloat),
13360         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
13361
13362 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
13363
13364         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
13365         1. Interrupt would not compile properly. Ensure PCLATH register is saved
13366            during interrupts. Ensure WSAVE is located at a shared bank address.
13367         2. Fixed page selection in some places
13368         3. Fixed BTFSS/C to where necessary use registers directly and not simply
13369            the registers name strings.
13370         4. Fixed "signed / unsigned compare" compiler warnings.
13371         5. The PIC port manages its own allocation of the general purpose
13372            registers, but makes no attempt to reuse them. As a result when
13373            compiling it soon runs out of general purpose registers. Some
13374            additional code was added to the files pcode.c and device.c to walk
13375            through the function call tree and rename the registers so that they
13376            get reused.
13377
13378         * src/pic/device.c
13379         * src/pic/gen.c
13380         * src/pic/glue.c
13381         * src/pic/pcode.c
13382         * src/pic/pcode.h
13383         * src/pic/ralloc.c
13384         * src/pic/ralloc.h
13385         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
13386         genPlus() & genMinus() when the result is the same as left or right
13387
13388 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13389
13390         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
13391
13392 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13393
13394         Made bitfield a distinct type from bit so that bitfields
13395         convert as per ANSI C and bits retain their traditional
13396         boolean style behaviour. Implemented bitfield support in
13397         the z80 port.
13398
13399         * src/SDCCsymt.h,
13400         * src/SDCCsymt.c,
13401         * src/SDCCast.c,
13402         * src/cdbFile.c,
13403         * src/mcs51/gen.c,
13404         * src/ds390/gen.c: bit v bitfield split
13405         * src/z80/gen.c: New support for bitfields
13406         * support/regression/tests/bitfields.c: reenabled z80,
13407         added more tests
13408
13409 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13410
13411         Rules 246.x, 247.x relate to bitfields, the others speed up
13412         access to xdata mapped I/O devices.
13413
13414         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
13415
13416 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13417
13418         Cleaned up genPackBits and genUnpackBits and added two helper
13419         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
13420         for literal assignments in genPackBits (thanks to Frieder for
13421         reminding me).
13422
13423         * src/mcs51/gen.c
13424         * src/ds390/gen.c
13425
13426 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13427
13428         Fixed bug #748310 (pointer to function type mishandled when the
13429         function name is omitted). Also fixed a SIGSEGV when a function
13430         attribute (reentrant, etc) is used on a non-function or on a
13431         function but misplaced before the parameter list.
13432
13433         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
13434         bug #748310
13435         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
13436         * support/Util/SDCCerr.h,
13437         * support/Util/SDCCerr.c: Added func attr misuse error msg
13438
13439 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
13440
13441         Fixed bug #787649 by anonymous
13442         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
13443         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
13444
13445 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13446
13447         Fixed numerous bitfield problems.
13448
13449         * src/SDCC.y: More bitfield related error checking
13450         * src/SDCCsymt.h,
13451         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
13452         * support/Util/SDCCerr.h,
13453         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
13454         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
13455         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
13456         * support/regression/tests/bitfields.c: tests added
13457
13458 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13459
13460         Made the constant following the "interrupt" keyword optional. If
13461         omitted, the function will not automatically be given an entry
13462         in the interrupt vector table (similar to #pragma NOIV, but
13463         less syntacticly kludgy). The interrupt number is also now
13464         range checked. Also fixed a bug in the high order bit example
13465         in the manual.
13466
13467         * src/SDCC.y
13468         * src/SDCCmem.c
13469         * src/SDCCglue.c
13470         * src/SDCCsymt.h
13471         * support/Util/SDCCerr.c
13472         * support/Util/SDCCerr.h
13473         * doc/sdccman.lyx
13474
13475 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
13476
13477         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
13478         * src/SDCCicode.c (operandOperation): rewritten some ops
13479         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
13480         * src/SDCCsymt.c (computeType): literals are handled the same way as any
13481         other type
13482         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
13483         be re-activated by defining REDUCE_LITERALS)
13484         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
13485         unsigned, but are signed by default
13486         * src/SDCCval.c (constVal): rearranged
13487         * src/SDCCval.c (valMod): preliminary fix
13488         * src/SDCCval.c (valCastLiteral): use TYPE_* types
13489         * support/regression/literalop.c: added, work in progress
13490
13491 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13492
13493         Generate warnings for useless declarations like "char data;"
13494         that don't do what new users expect.
13495
13496         * src/SDCC.y
13497         * support/Util/SDCCerr.h
13498         * support/Util/SDCCerr.c
13499
13500 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
13501
13502         * src/SDCCval.c (valMult): fix overflow detection of negative int
13503
13504 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13505
13506         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
13507
13508         Changes to support big endian targets:
13509
13510         * src/ports.h
13511         * src/SDCCglue.c
13512         * src/avr/main.c
13513         * src/ds390/main.c
13514         * src/izt/i186.c
13515         * src/mcs51/main.c
13516         * src/pic/main.c
13517         * src/pic16/main.c
13518         * src/xa51/main.c
13519         * src/z80/main.c
13520
13521 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
13522
13523         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
13524         * device/lib/time.c: fixed warning "integer overflow in expression"
13525
13526 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
13527
13528         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
13529         * src/SDCCval.c (constVal): changed default to signed; hex and octal
13530         constants are unsigned; added recognition of "u" flag for unsigned
13531         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
13532         * src/SDCCval.c (valDiv, valMod): fixed signdness
13533         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
13534         signedness of modulo, left and right shift
13535         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
13536         * support/Util/SDCCerr.h: added warning W_INT_OVL
13537         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
13538         * src/SDCCast.c (ast_print): improved output of constants
13539
13540 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13541
13542         Fixed some warnings when building with MSVC:
13543
13544         * as/mcs51/asdata.c
13545         * as/z80/asdata.c
13546         * as/mcs51/asm.h
13547         * as/z80/asm.h
13548         * link/z80/aslink.h
13549         * link/z80/lkdata.c
13550         * link/z80/lkeval.c
13551         * link/z80/lkgb.c
13552         * link/z80/lkihx.c
13553         * link/z80/lks19.c
13554         * link/z80/lksym.c
13555         * support/cpp2/cpplib.c
13556         * src/ds390/gen.c
13557         * src/mcs51/gen.c
13558
13559 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
13560
13561         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
13562
13563 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13564
13565         * support/librarian/clean.mk: Do not remove Makefile.
13566         * support/librarian/Makefile: added.
13567
13568 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13569
13570         Added librarian to MSVC build:
13571         * all.dsp
13572         * sdcc.dsw
13573         * support/librarian/librarian.dsp
13574
13575         'configure' not needed for librarian, removed:
13576         * support/librarian/configure
13577         * support/librarian/configure.in
13578         * support/librarian/config_in.h
13579         * support/librarian/Makefile.in
13580
13581         Hopefully these ones built the librarian and the rest of sdcc properly:
13582         * Makefile
13583         * Makefile.common.in
13584
13585         Messed up 'configure', so revert to previous version:
13586         * configure
13587         * configure.in
13588
13589 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
13590
13591         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
13592         there, while the mantissa of a double is "only" 53 bits wide.
13593
13594 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13595
13596         Adding sdcclib to the build.  MSVC project coming soon.
13597         Files added/changed:
13598
13599         * support/librarian/clean.mk
13600         * support/librarian/configure
13601         * support/librarian/configure.in
13602         * support/librarian/config_in.h
13603         * support/librarian/Makefile.bcc
13604         * support/librarian/Makefile.in
13605         * support/librarian/sdcclib.c
13606         * Makefile.bcc
13607         * Makefile
13608         * Makefile.common.in
13609         * configure
13610         * configure.in
13611
13612 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13613
13614         Linker now complaints if linked modules have conflicting options, for
13615         example, one compiled using --model-large and another one compiled with
13616         --model-small.  The following files were modified:
13617
13618         * as/mcs51/asdata.c
13619         * as/mcs51/aslink.h
13620         * as/mcs51/asm.h
13621         * as/mcs51/asmain.c
13622         * as/mcs51/asout.c
13623         * as/mcs51/i51pst.c
13624         * as/mcs51/lkdata.c
13625         * as/mcs51/lklibr.c
13626         * as/mcs51/lkmain.c
13627         * as/z80/asdata.c
13628         * as/z80/asm.h
13629         * as/z80/asmain.c
13630         * as/z80/asout.c
13631         * as/z80/z80pst.c
13632         * link/z80/aslink.h
13633         * link/z80/lkdata.c
13634         * link/z80/lklibr.c
13635         * link/z80/lkmain.c
13636         * src/SDCCglue.c
13637
13638 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13639
13640         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
13641         as/mcs51/lklibr.c: Generate a warning when a library is not found.
13642
13643 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
13644
13645         * src/z80/mappings.i: fix _mul[us][int,long] entries
13646
13647 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13648
13649         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
13650
13651 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
13652
13653         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
13654         * support/regression/tests/bitopcse.c: added
13655         fixed warning:
13656         * src/avr/gen.c:
13657         * src/pic/gen.c:
13658         * src/pic16/gen.c:
13659         * src/z80/gen.c:
13660         * src/xa51/gen.c:
13661
13662 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13663
13664         added support for new library format to z80, gbz80 linkers:
13665         *link/z80/aslink.h
13666         *link/z80/lklex.c
13667         *link/z80/lklib.c
13668         *link/z80/lklist.c
13669
13670 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
13671
13672         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
13673         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
13674
13675 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
13676
13677         added DUMMY_READ_VOLATILE:
13678         * src/SDCC.y:
13679         * src/avr/gen.c:
13680         * src/xa51/gen.c:
13681         * src/z80/gen.c:
13682         * src/pic/gen.c:
13683         * src/pic16/gen.c:
13684         * src/mcs51/gen.c:
13685         * src/ds390/gen.c:
13686         * src/SDCCcse.c (algebraicOpts): many improvements
13687         * src/SDCCcse.h: removed algebraicOpts()
13688         * src/SDCCicode.c (picDummyRead): added
13689
13690 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13691
13692         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
13693         "Insufficient space in data memory".
13694
13695 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13696
13697         * src/mcs51/gen.c: fixed bug #771358
13698         * src/z80/gen.c: fixed bug #759087
13699
13700 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
13701
13702         * src/pic16/glue.c: minor cleanup by Vangelis
13703
13704 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13705
13706         * device/include/regc515c.h: fixed #758477
13707         * device/lib/_gptrget.c: saving some cycles in generic pointer get
13708         * device/lib/_gptrput.c: saved a few bytes
13709         * my tab spacing is 8, yours too?)
13710         * device/lib/_ser.c: process RX bytes earlier than TX bytes
13711         * device/lib/serial.c: process RX bytes earlier than TX bytes
13712         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
13713
13714 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13715
13716         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
13717
13718 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13719
13720     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
13721
13722 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
13723
13724         * device/lib/Makefile.in: bad fix, reverted to 1.43
13725
13726 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
13727
13728         * device/lib/Makefile.in: added missing z80 object files
13729
13730 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
13731
13732         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
13733         pic16 progress by Vangelis:
13734         * src/SDCCglobl.h:
13735         * src/SDCCmain.c:
13736         * src/pic/Makefile:
13737         * src/pic:
13738         * pic/Makefile:
13739         * pic16/device.c:
13740         * pic16/device.h:
13741         * pic16/gen.c:
13742         * pic16/gen.h:
13743         * pic16/genarith.c:
13744         * pic16/glue.c:
13745         * pic16/main.c:
13746         * pic16/pcode.c:
13747         * pic16/pcode.h:
13748         * pic16/pcodepeep.c:
13749         * pic16/peeph.def:
13750
13751 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13752
13753     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
13754
13755 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13756
13757     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
13758     added gbz80 build to MSVC project.
13759     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
13760     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
13761     from 8051 stuff and setup so it links using a .lnk file.
13762
13763 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13764
13765     * support/librarian/sdcclib.c: sdcc librarian.
13766     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
13767     with sdcclib.
13768
13769 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13770
13771     * as/mcs51/lkmain.c: properly handle extensions in function afile.
13772
13773 2003-07-02  Borut Razem <borut.razem AT siol.net>
13774
13775         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
13776         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
13777         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
13778         src/xa51/main.c, src/z80/main.c:
13779         virtualization of glue() function: each port has it's own glue function,
13780         which is accessed by do_glue function pointer in PORT.general structure
13781
13782 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
13783
13784         * DS800C400 fun, improved ROM interface and tinibios.
13785
13786 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
13787
13788         * More support for DS80C400. Now includes beginning of interface to ROM.
13789
13790 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
13791
13792         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
13793
13794 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13795
13796         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
13797
13798 2003-06-19  Borut Razem <borut.razem AT siol.net>
13799
13800         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
13801
13802 2003-06-19  Borut Razem <borut.razem AT siol.net>
13803
13804         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
13805         fixed Z80 port - crt0.o: cannot open.
13806
13807 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
13808
13809         * support/Util/MySystem.c (merge_command): revert bad fix
13810
13811 2003-06-18  Borut Razem <borut.razem AT siol.net>
13812
13813         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
13814
13815 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13816
13817         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
13818         option --use-stdout sends errors to stdout instead of stderr.
13819
13820 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
13821
13822         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
13823
13824 2003-06-15  Borut Razem <borut.razem AT siol.net>
13825
13826         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
13827         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
13828         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
13829         fixed width array of pointers replaced with sets;
13830         multiple include and lib paths ared transferred to preprocessor and linker
13831         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
13832         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
13833         fixed width array of pointers
13834         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
13835         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
13836         fixupPath(), getPathDifference()
13837         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
13838         fixed width array of pointers
13839
13840 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
13841
13842         * src/pic16/ralloc.c: fix warnings
13843         * src/pic16/pcode.c: fix warning
13844
13845 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
13846
13847          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
13848         know all the details, but essentially this set of changes enable
13849         the pic16 port to generate movff instructions and generate assembler
13850         directives,
13851         * src/SDCCmain.c:
13852         * src/pic16/gen.c:
13853         * src/pic16/glue.c:
13854         * src/pic16/pcode.c:
13855         * src/pic16/device.c:
13856         * src/pic16/main.c:
13857         * src/pic16/pcode.h:
13858         * src/pic16/pcoderegs.c:
13859         * src/pic16/ralloc.c:
13860         * src/pic16/ralloc.h:
13861
13862 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13863
13864         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
13865         added option --vc, so sdcc errors and warnings are compatible with
13866         Microsoft Visual Studio.
13867
13868 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13869
13870         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
13871           device/lib/libfloat.lib: added atof function.
13872
13873 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
13874
13875         * doc/sdccman.lyx: updated to Lyx 1.3
13876         * doc/cdbfileformat.lyx: updated to Lyx 1.3
13877         * doc/test_suite_spec.lyx: updated to Lyx 1.3
13878         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
13879
13880 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
13881
13882         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
13883
13884 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13885
13886         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
13887           additions to the "related tools/documentation" section
13888
13889 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
13890
13891         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
13892
13893 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
13894
13895         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
13896         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
13897
13898 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
13899
13900         * doc/sdccman.lyx: fix double dash and other minor things
13901         * doc/Makefile: fix double dash
13902
13903 2003-05-28  Karl Bongers(patches from Martin Helmling)
13904         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
13905           condition and ignore commands.
13906
13907 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13908
13909         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
13910           is in parts still quite out of date, I did changes as far as I felt makes sense
13911           for a non-native english speaker.
13912           Please feel free to add to the manual or to correct my changes.
13913         * doc/Makefile: undid touching the date of intermediate tex files.
13914
13915 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13916
13917         * doc/sdccman.lyx: Manual has an index now
13918
13919 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
13920
13921         Finalize muluint/mulsint and mululong/mulslong merging:
13922         * device/lib/_mulint.c
13923         * device/lib/_mullong.c
13924         * device/lib/gbz80/mul.s
13925         * device/lib/gbz80/stubs.s
13926         * device/lib/z80/mul.s
13927         * device/lib/z80/stubs.s
13928         * src/SDCCsymt.c (initCSupport)
13929
13930 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13931
13932         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
13933         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
13934           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
13935           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
13936           instead of /Zm500.
13937
13938 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13939
13940         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
13941           the regression tests I'm not brave enough to enable 245.b, 245.c
13942         * doc/sdccman.lyx: added latex preamble for hyperref package.
13943           Using pdflatex this will give you a hyperlinked pdf file with
13944           bookmarks. (prepend '%' before /usepackage if this breaks something)
13945
13946 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13947
13948          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
13949
13950 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
13951
13952         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
13953
13954 2003-05-21    <johan AT balder>
13955
13956         * src/SDCCglue.c (printIval): fixed bug #739934
13957
13958 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
13959
13960         Applied patch from bug 737905 (renamed yylineo to mylineno):
13961         * src/altlex.c
13962         * src/SDCCast.c
13963         * src/SDCglobl.h
13964         * src/SDCC.lex
13965         * src/SDCCsymt.c
13966         * src/SDCCval.c
13967         * src/pic16/pcode.c: Cleaned warnings
13968         * src/pic16/pcodeflow.c: Cleaned warnings
13969         * src/pic16/pcoderegs.c: Cleaned warnings
13970
13971 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
13972
13973         * src/pic16/pcode.c: Cleaned warnings
13974         * src/pic16/pcodepeep.c: Cleaned warnings
13975         * src/pic16/ralloc.c: Cleaned warnings
13976
13977 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
13978
13979         * doc/sdccman.lyx: fixed bug 739745
13980         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
13981
13982 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
13983
13984         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
13985         it can be defined with CFLAGS when running configure
13986         * src/SDCCmain.c: fixed compiling + linking with object files
13987
13988 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
13989
13990         * configure.in: configure for pic16 port,
13991             added --disable-pic16-port
13992         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
13993         * src/SDCCmain.c: linkOptions is changed to set *,
13994             added if/endif conditional macros to remove options help
13995             messages from optionsTable when a port is not configured, added
13996             support for the PIc16 port in the ports table, when executing
13997             the compiler with no port specified on command line, a default
13998             port is selected with the new macro DEFAULT_PORT which is
13999             defined in port.h, in setDefaultOptions() linkOptions is removed
14000             from initialization assignment, since now it is a set,
14001             parseCmdLine uses setParseWithComma for linkOptions, in
14002             linkEdit() linkOptions are accessed with new function indexSet()
14003             which returns the i'th item of a set variable. See SDCCset.c, in
14004             linkEdit() when calling buildCmdLine(), added linkOptions as
14005             last argument. Now users can pass arguments to gplink via the
14006             -Wl option, main() uses pic16glue() to glue up pic16 programs
14007         * src/SDCCpeeph.c: various changes to support pic16
14008         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
14009             return the i'th item of the set
14010         * src/SDCCset.h: added function prototype for indexSet()
14011         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
14012         * src/clean.mk: added pic16 in CLEANALLPORTS variable
14013         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
14014             added macro DEFAULT_PORT
14015         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
14016         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
14017             generated
14018         * src/pic16/glue.c: commented out some error producing lines
14019         * src/pic16/main.c: __config directives are commented out to stop
14020             gpasm complaining and test the linkage with gplink, _linkCmd and
14021             _asmCmd changed to be more gplink and gpasm friendly
14022         * src/pic16/peeph.def: peep rule 3 is commented out, since it
14023             produced an error when parsed, peep rule 12 is added to utilize
14024             movff, but it is commented out since the pCode does not support
14025             yet a command with 2 address arguments
14026
14027 2003-05-18    <johan AT balder>
14028
14029         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
14030         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
14031 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
14032
14033         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
14034   Added feature to script commands from file.
14035
14036 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
14037
14038         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
14039         * src/SDCCutil.c: include ctype.h for win32
14040
14041 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
14042
14043         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
14044
14045 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
14046
14047         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
14048   Fixed so you can set breakpoints prior to run, run does not stop
14049   on entry now.  Add tbreak.  Other enhancements and fixes for use
14050   with ddd.
14051
14052 2003-05-12  Borut Razem <borut.razem AT siol.net>
14053
14054         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
14055
14056 2003-05-11  Borut Razem <borut.razem AT siol.net>
14057
14058         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
14059         the path of bin directory, so that PATH is the only env. variable, which has to be set
14060         in case of standard installation.
14061         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
14062         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
14063         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
14064
14065 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
14066
14067         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
14068         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
14069         temp files are in the port dir; clean the gen/test directory when
14070         generating new test.c
14071         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
14072         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
14073         * support/regression/tests/zeropad.c: added
14074
14075 2003-05-09    <johan AT balder>
14076
14077         * src/SDCCglue.c: fixed bug #597940
14078
14079 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
14080
14081         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
14082   cache sfr, optimize next,step, fix off by one sourceline,
14083   support ddd list function.
14084         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
14085
14086 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
14087
14088         * support/regression/HTMLgen.py: added compare_s2f()
14089         * support/regression/Makefile: redo 1.27
14090         * support/regression/generate-cases.py: redo 1.5
14091
14092 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
14093
14094         * support/regression/tests/float.c: workaround 33 bit hex constant
14095         * support/regression/tests/simplefloat.c: fix division for host
14096
14097 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
14098
14099         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
14100         that tame's the PIC's over-aggressive optimizer.
14101
14102 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14103
14104          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
14105          support for MSVC.
14106
14107 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
14108
14109         Initial support for DS80C400. "Hello world" runs on TINIm400
14110         (with polled I/O).
14111
14112 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
14113
14114          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
14115          * Some notes on ddd usage added in debugger/README
14116          Martin Helmling adding more features and fixes for ddd GUI debugger.
14117          Code added for nexti, stepi, up, down, and other adjustments.
14118
14119 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
14120
14121         * src/pic/pCodepeep.c non-wildcard asmops are now handled
14122         * src/pic/peeph.def Added two rules to optimize carry manipulation
14123         * src/pic/* removed debug printfs
14124
14125 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
14126
14127         * debugger/mcs51/cmd.c: added header newalloc.h
14128
14129 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
14130
14131         * as/Makefile: new EXEEXT
14132         * as/z80/Makefile: remove trailing slash of BUILDIR
14133         * as/z80/clean.mk: new EXEEXT
14134         * Makefile.common.in: add to CFLAGS (and others), don't replace it
14135         * support/cpp2/Makefile.in: new EXEEXT
14136         * src/pic/glue.c (pic14emitRegularMap): fixed warning
14137
14138 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
14139
14140         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
14141         EXEEXT was introduced to fix all related problems with targets
14142         "clean", "install" and "uninstall"; a couple of further flaws
14143         especially with "clean" have been fixed too
14144         * as/mcs51/Makefile.in
14145         * as/mcs51/clean.mk
14146         * as/z80/Makefile
14147         * Makefile
14148         * clean.mk
14149         * debugger/mcs51/Makefile.in
14150         * debugger/mcs51/clean.mk
14151         * link/z80/Makefile
14152         * link/z80/Makefile.in
14153         * link/z80/clean.mk
14154         * link/Makefile
14155         * packihx/Makefile.in
14156         * packihx/clean.mk
14157         * sim/ucsim/Makefile
14158         * sim/ucsim/clean.mk
14159         * sim/ucsim/avr.src/Makefile.in
14160         * sim/ucsim/avr.src/clean.mk
14161         * sim/ucsim/s51.src/Makefile.in
14162         * sim/ucsim/s51.src/clean.mk
14163         * sim/ucsim/xa.src/Makefile.in
14164         * sim/ucsim/xa.src/clean.mk
14165         * sim/ucsim/z80.src/Makefile.in
14166         * sim/ucsim/z80.src/clean.mk
14167         * sim/ucsim/main_in.mk
14168         * sim/ucsim/packages_in.mk
14169         * sim/ucsim/gui.src/Makefile.in
14170         * sim/ucsim/gui.src/serio.src/Makefile.in
14171         * sim/ucsim/gui.src/serio.src/clean.mk
14172         * src/Makefile.in
14173         * src/clean.mk
14174         * support/cpp2/Makefile.in
14175         * support/cpp2/clean.mk
14176         * support/makebin/Makefile
14177         * support/makebin/clean.mk
14178         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
14179         * doc/sdccman.lyx: --program-suffix no longer needed
14180
14181 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
14182
14183          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
14184          Martin Helmling added support for ddd GUI debugger.
14185          Code added to display assembly, set variables, and other commands
14186          to interface to ddd.
14187
14188 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
14189
14190         * as/Makefile: fix target clean
14191         * as/clean.mk: fix target clean
14192         * as/z80/clean.mk: fix target clean
14193
14194 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
14195
14196         * Makefile.common.in: added  AT EXEEXT AT
14197         * configure.in: removed all mingw32 stuff
14198         * configure: rebuilt from configure.in
14199         * doc/sdccman.lyx: updated section "installation"
14200         * support/scripts/sdcc_mingw32: adapted to configure
14201         * support/scripts/sdcc_cygwin_mingw32: added
14202
14203 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
14204
14205         * src/pic Added object file support for the PIC port
14206         * src/pic Applied patch from Craig Franklin (this started the object file support)
14207         * src/regression Updated the PIC regression tests for object files
14208
14209 2003-04-20  Borut Razem <borut.razem AT siol.net>
14210
14211         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
14212           lklex.c: In function `getfid':
14213           lklex.c:203: warning: array subscript has type `char'
14214         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
14215           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
14216         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
14217           stack handling macros
14218
14219 2003-04-19  Borut Razem <borut.razem AT siol.net>
14220
14221         * "handling space characters in file path" task:
14222         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
14223         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
14224         * support/Util/MySystem.h: make it self-sufficient
14225         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
14226           src/z80/main.c, sdcc/as/mcs51/lklex.c:
14227           handling space characters in file path
14228         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
14229           (it will be used by assemblers, which have their own includes, e.g. gpasm)
14230         * support/Util/MySystem.c: handling space characters in executable's path
14231
14232 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
14233
14234         * as/z80/Makefile: fix permanent rebuild of z80
14235         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
14236         * support/regression/tests/bitfields.c: added Johan's bitfields.c
14237
14238 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
14239
14240         * src/SDCCopt.c: add special case optimization to replace modulo by
14241           a power of two with a bitwise AND.
14242
14243 2003-04-18    <johan AT balder>
14244
14245         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
14246
14247 2003-04-17    <johan AT balder>
14248
14249         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
14250         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
14251
14252 2003-04-13  Borut Razem <borut.razem AT siol.net>
14253
14254         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
14255         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
14256           fixed mingw problem in adl_NORMALIZE_PATH
14257
14258 2003-04-12  Borut Razem <borut.razem AT siol.net>
14259
14260         * fixed "#pragma SAVE/RESTORE can not be nested":
14261         * src/SDCC.lex: reworked pragma handling functions
14262         * sdcc/src/SDCCglobl.h: reworked stack handling macros
14263         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
14264
14265 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
14266
14267         * src/SDCCutil.c (pathEquivalent): defined but not used
14268         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
14269         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
14270         * configure: rebuilt from configure.in
14271         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
14272         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
14273         * device/include/Makefile.in: replace sdcc_datadir
14274         * device/lib/Makefile.in: replace sdcc_datadir
14275         * Makefile.common.in: add LDFLAGS from configure
14276         * packihx/Makefile.in: use LDFLAGS
14277         * src/Makefile.in: use LDFLAGS
14278         * support/cpp2/Makefile.in: add LDFLAGS from configure
14279         * support/makebin/Makefile: use LDFLAGS
14280         * .version: bumped version number to 2.3.5
14281
14282 2003-04-12  Borut Razem <borut.razem AT siol.net>
14283
14284         * completed "different paths" task:
14285         * src/SDCCmacro.c: fixed bug in handling quotes
14286         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
14287         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
14288
14289 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
14290
14291         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
14292
14293 2003-04-11 kevin Vigor <kevin AT vigor.nu>
14294
14295         * ds390/gen.c ds390/peeph.def: fix bug 706781
14296
14297 2003-04-11  Borut Razem <borut.razem AT siol.net>
14298
14299         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
14300
14301 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
14302
14303         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
14304         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
14305          set - this bit used to not be set...).
14306         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
14307           bad code in PIC Port
14308         * src/regression/and2.c added to test bug 609268
14309         * src/regression/Makefile added and2.c to regression test
14310
14311
14312 2003-04-08    <johan AT CP255758-A>
14313
14314         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
14315         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
14316         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
14317
14318 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
14319
14320         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
14321         fix bug #487815
14322         * support/cpp2/Makefile.in: fix bug #487815
14323         * configure: rebuilt from configure.in
14324         * Makefile.common.in: docdir changed, new path suffixes
14325         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
14326         * sdcc_vc_in.h: reflect changes from sdccconf.h
14327         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
14328         * src/SDCCutil.h: remove BINDIR hack
14329         * doc/sdccman.lyx: update new path hierarchy
14330
14331 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
14332
14333         * src/SDCCpeeph.c: added okToRemoveSLOC test
14334
14335 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
14336
14337         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
14338
14339 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
14340
14341         * src/SDCCpeeph.c: added labelIsReturnOnly test
14342         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
14343
14344 2003-04-05    <johan AT balder>
14345
14346         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
14347         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
14348         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
14349         * src/SDCCast.c: fixed a warning
14350         * src/SDCCast.h: fixed a warning
14351         * src/SDCCicode.c (operandFromAst): fixed a warning
14352
14353 2003-04-04    <johan AT balder>
14354
14355         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
14356         * src/SDCCast.c (decorateType): fixed bug #715076
14357         * src/SDCC.y: fixed bug #702907
14358
14359 2003-04-03    <johan AT balder>
14360
14361         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
14362         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
14363         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
14364         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
14365         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
14366
14367 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
14368
14369         * _decdptr.c: fix return values
14370         * _gptrget.c: fix return values
14371         * _gptrgetc.c: fix return values
14372         * _gptrput.c: fix return values
14373         * _mulint.c: fix return values
14374         * as/z80/Makefile: fix 'make -j' problem
14375
14376 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
14377
14378         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
14379         * configure.in: big cleanup, updated to autoconf 2.5x
14380         * configure: rebuilt from configure.in
14381         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
14382         * sdcc_vc_in.h: reflect changes from sdccconf.h
14383         * doc/Makefile: fixed a flaw in "make install"
14384
14385 2003-04-02    <johan AT balder>
14386
14387         * src/ds390/gen.c (genCmp): no comments
14388         * src/mcs51/gen.c (genCmp): no comments
14389         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
14390         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
14391
14392 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
14393
14394         * support/regression/generate-cases.py: place generated file in given sub directory
14395         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
14396         * support/regression/Makefile: improvements for 'make -j';
14397         side effect: it's simpler and faster now
14398
14399 2003-03-31  Borut Razem <borut.razem AT siol.net>
14400
14401         * src/z80/main.c: link-{port} and as-{port} defined without path
14402         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
14403
14404 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
14405
14406         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
14407
14408 2003-03-30  Borut Razem <borut.razem AT siol.net>
14409
14410         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
14411           changed type of list parameter to set
14412         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
14413         * src/port.h: changed type of do_assemble() parameter to set
14414         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
14415           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
14416           definition of "cppoutfilename" macro with NULL value in preProcess()
14417         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
14418         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
14419         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
14420           replaced with set *binPathSet
14421         * shash_add() deallocates the item, if allready exsists, before adding the new one
14422         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
14423
14424 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
14425
14426         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
14427           a nested for loop bug in the PIC port
14428         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
14429           for loops
14430
14431 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
14432
14433         * support/Util/dbuf.h: remove C++ stuff to make it portable
14434
14435 2003-03-28  Borut Razem <borut.razem AT siol.net>
14436
14437         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
14438           literal strings in stringLiteral()
14439         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
14440         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
14441           to the project
14442
14443 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
14444
14445         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
14446
14447 2003-03-26    <johan AT balder>
14448
14449         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
14450         * src/ds390/gen.c (saveRegisters): catched symbol abuse
14451         * src/SDCCast.c (decorateType): fixed " -v < 3"
14452
14453 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
14454
14455         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
14456         Added Lenny Story's debug infrastructure changes:
14457         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
14458         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
14459         * src/cdbFile.c: added
14460         * src/SDCCdebug.c: added
14461         * src/SDCCdebug.h: added
14462         * src/SDCCast.c (createFunction)
14463         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
14464         * src/SDCCmain.c (parseCmdLine, main)
14465         * src/SDCCmem.c (redoStackOffsets)
14466         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
14467         * src/SDCCsymt.h
14468         * src/common.h
14469         * src/avr/gen.c (genAVRCode)
14470         * src/ds390/gen.c (gen390Code)
14471         * src/mcs51/gen.c (gen51Code)
14472         * src/pic/gen.c (genpic14Code)
14473         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
14474         * src/xa51/gen.c (genXA51Code)
14475         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
14476
14477 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14478
14479         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
14480         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
14481
14482 2003-03-22    <johan AT balder>
14483
14484         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
14485
14486 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
14487
14488         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
14489         * doc/cdbfileformat.lyx: added, written by Lenny Story
14490         * doc/Makefile: added cdbfileformat.lyx
14491         * doc/clean.mk: added cdbfileformat.lyx
14492
14493 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
14494
14495         * src/mcs51/peeph.def: fix bug #705773
14496
14497 2003-03-20    <johan AT balder>
14498
14499         An sfr/sbit can have an "at #" AND an initializer
14500         * src/SDCCsymt.c (checkSClass):
14501         * src/SDCCmem.c (allocGlobal):
14502         * src/SDCCmem.c (allocLocal):
14503         * src/SDCCast.c (createBlock):
14504
14505 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
14506
14507         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
14508
14509 2003-03-16    <johan AT balder>
14510
14511         Undid the hackup of const and volatile, the problem is much bigger
14512         * src/SDCC.y:1.65
14513         * src/SDCCast.c:1.171
14514         * src/SDCCglue.c:1.138
14515         * src/SDCCicode.c:1.146
14516         * src/SDCCsymt.c:1.150
14517         * src/SDCCval.c:1.65
14518
14519 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
14520
14521         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
14522         * src/ds390/gen.c (genAddrOf): fixed bug #704087
14523
14524 2003-03-13    <johan AT balder>
14525
14526         Hackup const and volatile modifiers in type chains a bit:
14527         * src/SDCC.y:1.63
14528         * src/SDCCast.c:1.169
14529         * src/SDCCglue.c:1.136
14530         * src/SDCCicode.c:1.143
14531         * src/SDCCsymt.c1.146
14532         * src/SDCCsymt.h1.59
14533         * src/SDCCval.c:1.63
14534
14535 2003-03-12    <johan AT balder>
14536
14537         * src/SDCCBBlock.h: more LRH debugging junk
14538         * src/SDCCcflow.h: more LRH debugging junk
14539         * src/SDCCloop.c: more LRH debugging junk
14540         * src/SDCC.y (struct_declaration): fixed bug #697590
14541         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
14542         * src/ds390/gen.c (aopForRemat): fixed bug #700031
14543         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
14544
14545 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14546         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
14547         test function names must now match exactly).
14548         * src/SDCCcse.c: added special case in findCheaperOp to allow
14549         extending a short integer. Makes less awful code for bug 700121 test case.
14550
14551 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14552
14553         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
14554         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
14555
14556 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14557
14558         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
14559         actually called (operandsNotEqual() was called for all
14560         operandsNotEqualX tests).
14561
14562 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14563
14564         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
14565         with shorter literals. Fixes bug 700121.
14566
14567 2003-03-11    <johan AT balder>
14568
14569         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
14570
14571 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
14572
14573         * src/SDCCloop.c (mergeRegions): an evil beast is dead
14574         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
14575
14576 2003-03-10  Borut Razem <borut.razem AT siol.net>
14577
14578         * src/SDCCmain.c: pipe preprocessor's output
14579         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
14580         * sdcc_vc_in.h: define pclose as _pclose for WIN32
14581         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
14582         which closes all pipes in pipeSet set
14583         * src/SDCCset.c: free deleted item in function deleteSetItem()
14584         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
14585         moved from z80 to src subproject
14586         * .version: increased version number to 2.3.4
14587
14588 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
14589
14590         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
14591         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
14592         * support/regression/ports/xa51/spec.mk: fix typo
14593
14594 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
14595
14596         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
14597
14598 2003-03-09  Borut Razem <borut.razem AT siol.net>
14599
14600         * src/SDCCmain.c: pipe preprocessor's output
14601         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
14602         * sdcc_vc_in.h: define pclose as _pclose for WIN32
14603         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
14604         which closes all pipes in pipeSet set
14605         * src/SDCCset.c: free deleted item in function deleteSetItem()
14606         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
14607         moved from z80 to src subproject
14608
14609 2003-03-09  Borut Razem <borut.razem AT siol.net>
14610
14611         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
14612         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
14613         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
14614         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
14615         * src/SDCCglobl.h: unification of WIN32 native definitions
14616
14617 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14618
14619         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
14620
14621 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
14622
14623         * src/configure.in:   check for endianess (even while cross-compiling)
14624         * src/configure:      check for endianess (even while cross-compiling)
14625         * src/configure_in.h: check for endianess (even while cross-compiling)
14626         * src/avr/gen.c:        remove old endianess stuff
14627         * src/mcs51/gen.c:      remove old endianess stuff
14628         * src/ds390/gen.c:      remove old endianess stuff
14629         * src/pic/gen.c:        remove old endianess stuff
14630         * src/pic/genarith.c:   remove old endianess stuff
14631         * src/pic/glue.c:       fix endianess check
14632         * src/pic16/gen.c:      remove old endianess stuff
14633         * src/pic16/genarith.c: remove old endianess stuff
14634         * src/pic16/glue.c:     fix endianess check
14635         * src/xa51/gen.c:       remove old endianess stuff
14636         * src/z80/gen.c:        fix endianess check
14637         * src/SDCCglue.c:       fix endianess check
14638         * src/ds390/peeph.def: fix bug 700036
14639
14640 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
14641
14642         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
14643         * src/configure: find appropriate data-types on host for SDCC's int and long
14644         * src/configure.in: find appropriate data-types on host for SDCC's int and long
14645         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
14646         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
14647
14648 2003-03-07    <johan AT balder>
14649
14650         Just a big NOOP:
14651                 some minor cleanups before the big shot
14652                 OP_DEFS and OP_USES now use Kevin's protection
14653                 new option --nolabelopt
14654
14655         * src/SDCCBBlock.c:
14656         * src/SDCCast.c,:
14657         * src/SDCCcflow.c:
14658         * src/SDCCcse.c:
14659         * src/SDCCicode.c:
14660         * src/SDCCicode.h:
14661         * src/SDCClabel.c:
14662         * src/SDCCloop.c:
14663         * src/SDCCmain.c:
14664         * src/ds390/ralloc.c:
14665         * src/mcs51/ralloc.c:
14666         * src/pic/ralloc.c:
14667         * src/xa51/ralloc.c:
14668         * src/z80/ralloc.c:
14669
14670 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
14671
14672         * src/pic/pcode.c (get_op): fix 64 bit warnings
14673         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
14674         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
14675         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
14676         * support/regression/tests/malloc.c: fix 64 bit warnings
14677
14678 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
14679
14680         * src/mcs51/gen.c (genMinus): fixed bug 696436
14681
14682 2003-03-02  Borut Razem <borut.razem AT siol.net>
14683
14684         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
14685
14686 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
14687
14688         * configure.in: test for mkstemp
14689         * sdccconf_in.h: add HAVE_MKSTEMP
14690
14691 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
14692
14693         * device/include/ctype.h: removed warning while using --stack-auto
14694         * device/include/malloc.h: removed warning while using --stack-auto
14695         * device/include/string.h: removed warning while using --stack-auto
14696
14697 2003-02-23  Borut Razem <borut.razem AT siol.net>
14698
14699         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
14700         because NDEBUG is defined (see man assert)
14701         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
14702
14703 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14704
14705         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
14706         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
14707
14708 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14709
14710         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
14711         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
14712
14713 2003-02-18    <johan AT balder>
14714
14715         * as/mcs51/asmain.c (asmbl): module can start with a digit
14716         * as/z80/asmain.c (asmbl): module can start with a digit
14717
14718 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
14719
14720         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
14721         * src/asm.c: fix pipe() for Mingw32
14722
14723 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
14724
14725         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
14726         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
14727         make -V work again; --c1mode reads now from stdin
14728         * doc/sdccman.lyx: added --c1mode
14729         * support/Util/SDCCerr.c: new messages for c1 mode
14730         * support/Util/SDCCerr.h: new messages for c1 mode
14731         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
14732
14733 2003-02-15    <johan AT balder>
14734
14735         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
14736
14737 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
14738
14739         * doc/sdccman.lyx: Environment variables, -o and other minor things
14740
14741 2003-02-14    <johan AT balder>
14742
14743         * src/xa51/main.c: before anyone really tries to use it :)
14744
14745         * Install doc's in share/sdcc/doc
14746         * removed some obsolete files
14747         * Do a proper make distclean and uninstall
14748         M Makefile.common.in
14749         R sdccbuild.sh
14750         M as/Makefile
14751         M device/include/Makefile.in
14752         M device/lib/Makefile.in
14753         M doc/sdccman.lyx
14754         M link/Makefile
14755         M sim/ucsim/doc/Makefile.in
14756         M src/clean.mk
14757         R src/avr/peeph.rul
14758         R src/xa51/peeph.rul
14759         M support/cpp2/Makefile.in
14760         M support/makebin/Makefile
14761
14762
14763 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
14764
14765         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
14766
14767 2003-02-10  Borut Razem <borut.razem AT siol.net>
14768
14769         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
14770         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
14771         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
14772         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
14773         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
14774         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
14775         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
14776         src/z80/Makefile.bcc: Borland Makefile cleanup
14777         * as/z80/Makefile.bcc: Added Borland Makefile
14778         * support/cpp2/borland.h: Removed
14779
14780 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
14781
14782         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
14783         * src/SDCC.lex: new pragma NOIV
14784         * src/SDCCglobl.h: new pragma NOIV
14785         * src/SDCCmem.c: new pragma NOIV
14786
14787 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
14788
14789         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
14790
14791 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
14792
14793         * src/SDCCmain.c: signal handling is switched off by --debug
14794         * doc/Makefile: small fix for install; use clean.mk again
14795         * doc/clean.mk: clean *.pdf and *.html too
14796
14797 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
14798
14799         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
14800         * device/lib/printfl.c: fix a ds390 bug by making it portable
14801         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
14802         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
14803         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
14804         * debugger/mcs51/cmd.c: converted multi-line string literals
14805         * sim/ucsim/globals.cc: converted multi-line string literals
14806         * src/SDCCmain.c: introduced signal handler to remove temp files
14807         * doc/Makefile: small tweaks, implement clean
14808         * doc: removed generated files
14809
14810 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14811
14812         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
14813         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
14814         Address Record is not correctly generated for DS390."
14815
14816 2003-02-02  Borut Razem <borut.razem AT siol.net>
14817
14818         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
14819         * as/mcs51/asm.h: fixed compilation with Borland C
14820         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
14821         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
14822         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
14823         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
14824         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
14825         src/z80/Makefile.bcc: delete $(LIB) only if exist
14826         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
14827
14828 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
14829
14830         * device/include/malloc.h: introduced NULL
14831         * device/include/string.h: introduced NULL
14832         * device/include/stdlib.h: introduced NULL
14833         * device/lib/_memcpy.c: removed NULL
14834         * device/lib/_strcat.c: removed NULL
14835         * device/lib/_strchr.c: removed NULL
14836         * device/lib/_strcmp.c: removed NULL
14837         * device/lib/_strcpy.c: removed NULL
14838         * device/lib/_strcspn.c: removed NULL
14839         * device/lib/_strlen.c: removed NULL
14840         * device/lib/_strncat.c: removed NULL
14841         * device/lib/_strncmp.c: removed NULL
14842         * device/lib/_strncpy.c: removed NULL
14843         * device/lib/_strpbrk.c: removed NULL
14844         * device/lib/_strrchr.c: removed NULL
14845         * device/lib/_strspn.c: removed NULL
14846         * device/lib/_strstr.c: removed NULL
14847         * device/lib/_strtok.c: removed NULL
14848         * device/lib/malloc.c: removed NULL, include own header
14849
14850 2003-02-02    <johan AT balder>
14851
14852         * 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
14853         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
14854         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
14855         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
14856         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
14857         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
14858
14859 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14860
14861         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
14862         area 'DATA'"
14863
14864 2003-02-01    <johan AT balder>
14865
14866         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
14867
14868 2003-01-31    <johan AT CP255758-A>
14869
14870         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
14871
14872 2003-01-30    <johan AT balder>
14873
14874         * src/SDCCBBlock.c: automatic bug detection
14875         * src/SDCCicode.c: automatic bug detection
14876
14877 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14878
14879         * src/SDCCglobl.h:   now --xram-size 0 works
14880         * src/SDCCmain.c:    now --xram-size 0 works
14881
14882 2003-01-29    <johan AT balder>
14883
14884         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
14885
14886 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14887
14888         * as/mcs51/aslink.h: Added options --xram-size and --code-size
14889         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
14890         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
14891         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
14892         * src/SDCCglobl.h:   Added options --xram-size and --code-size
14893         * src/SDCCmain.c:    Added options --xram-size and --code-size
14894
14895 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
14896
14897         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
14898         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
14899
14900 2003-01-27    <johan AT balder>
14901
14902         * src/SDCC.y: fixed bug #613764
14903
14904 2003-01-26    <johan AT balder>
14905
14906         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
14907         * src/SDCCsymt.h: fixed bug #673374
14908         * src/SDCCglue.c: fixed bug #661910
14909         * src/SDCCast.c: fixed bug #458099 and 673374
14910
14911 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
14912
14913         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
14914         * as/mcs51/strcmpi.h: added
14915         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
14916         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
14917         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
14918         * as/mcs51/assym.c: strcmpi -> as_strcmpi
14919         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
14920         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
14921         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
14922         * as/mcs51/Makefile.aslink: new module strcmpi
14923         * as/mcs51/Makefile.asx8051: new module strcmpi
14924         * as/mcs51/Makefil.bcc: new module strcmpi
14925         * as/mcs51/Makefile.in: new module strcmpi
14926         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
14927
14928 2003-01-26    <johan AT balder>
14929
14930         * src/SDCCglue.c: reverted back to 1.124
14931         * src/SDCCast.c: reverted back to 1.156
14932         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
14933
14934 2003-01-25    <johan AT balder>
14935
14936         * src/SDCCglue.c: A better fix for bug #661910
14937         * src/SDCCast.c: A better fix for bug #661910
14938         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
14939
14940 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
14941
14942         * src/Makefile.in: remove spawn.o
14943         * src/SDCCmain.c: remove spawn.h
14944         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
14945         * src/spawn.c: removed
14946         * src/spawn.h: removed
14947         * support/regression/ports/ds390/spec.mk: link with -r
14948
14949 2003-01-24    <johan AT CP255758-A>
14950
14951         * src/ds390/gen.c (aopOp): fixed bug #667458
14952         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
14953         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
14954         (createIvalCharPtr): an ival doesn't always have a storage class anymore
14955
14956 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
14957
14958         * src/mcs51/peeph.def: better assembler identation by Frieder
14959         * src/mcs51/gen.c: better assembler identation by Frieder
14960
14961 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
14962
14963         * as/z80/string.h: removed for gcc 3.2
14964         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
14965         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
14966
14967 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
14968
14969         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
14970         * src/SDCCpeeph.c (replaceRule): fix bug #663503
14971         * support/regression/Makefile: separate temp files for ports
14972         * support/regression/generate-cases.py: separate temp files for ports
14973         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
14974         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
14975
14976 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
14977
14978         * moved tinitalk to device/examples/ds390
14979
14980 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
14981
14982         * as/mcs51/lkmem.c: rflag is for DS390
14983         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
14984         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
14985                          (linkEdit): move mem- and map-files the same way as ihx-files
14986         * src/z80/main.c (_setDefaultOptions): removed --generic
14987         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
14988         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
14989         * src/pic/glue.c (picglue): --c1mode works again
14990         * src/pic16/glue.c (pic16glue): --c1mode works again
14991         * src/asm.c (printCLine): fix #660034
14992
14993 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
14994
14995         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
14996         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
14997         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
14998         * as/mcs51/lkmem (summary): better fix for sp problem
14999         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
15000         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
15001         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
15002                                               remove --stack-after-data
15003
15004 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
15005
15006         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
15007         * src/SDCCutil.c (join): ugly bug: missing '\0'
15008         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
15009
15010 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
15011
15012         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
15013         * src/port.h: typo
15014         * src/pic/main.c (_asmCmd): gpasm supports -o
15015         * src/z80/main.c: more general macros
15016         * device/lib/Makefile.in: remove intermediate files
15017
15018 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
15019
15020         * .version: Bumped version number to 2.3.3
15021         * src/SDCCBBlock.c: new option -o
15022         * src/SDCCglobl.h: new option -o
15023         * src/SDCCglue.c: new option -o
15024         * src/SDCCmain.c: new option -o
15025         * src/asm.c: new option -o
15026         * src/ds390/main.c: new option -o
15027         * src/pic/glue.c: new option -o
15028         * src/pic/pcode.c: new option -o
15029         * src/pic/ralloc.c: new option -o
15030         * src/pic16/glue.c: new option -o
15031         * src/pic16/pcode.c: new option -o
15032         * src/pic16/ralloc.c: new option -o
15033         * src/z80/main.c: new option -o
15034         * device/lib/Makefile.in: use -o
15035         * support/regression/ports/ds390/spec.mk: use -o
15036         * support/regression/ports/gbz80/spec.mk: use -o
15037         * support/regression/ports/mcs51/spec.mk: use -o
15038         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
15039         * support/regression/ports/z80/spec.mk: use -o
15040         * support/regression/ports/ucz80/spec.mk: use -o
15041         * support/regression/ports/xa51/spec.mk: use -o
15042         * support/regression/fwk/lib/timeout.c: fix usage string
15043
15044 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
15045         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
15046
15047 2003-01-07    <johan AT balder>
15048
15049         * src/SDCCast.c (decorateType): fixed bug #600035
15050
15051 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
15052         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
15053         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
15054         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
15055         * src/pic/pcode.c: outcommented unused variable to remove warnings
15056         * src/pic/ralloc.c: outcommented unused variable to remove warnings
15057
15058 2003-01-06    <karl AT turbobit.com>
15059         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
15060    regression tests.
15061
15062 2003-01-06    <johan AT balder>
15063
15064         * src/SDCCicode.c: fixed array add
15065
15066 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
15067         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
15068         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
15069
15070 2003-01-04    <johan AT balder>
15071
15072         * src/SDCCval.c (getNelements): fixed the initialized array of structures
15073
15074 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15075         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
15076
15077 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
15078         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
15079         * support/regression/tests/bug-524697.c: fit mem usage into 8032
15080
15081 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
15082         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
15083
15084 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
15085         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
15086
15087 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
15088         * src/mcs51/main.c: removed {bindir}{sep} from aslink
15089
15090 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15091
15092     * in /sdcc/as/mcs51/ changed these files in order to create an
15093     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
15094     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
15095     following files to include the previous two files: aslink.dsp,
15096     Makefile.aslink, Makefile.bcc, and Makefile.in.
15097
15098     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
15099     .adb instead of .cdb
15100
15101 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15102
15103         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
15104         value from option --iram-size.
15105
15106 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15107
15108         * /sdcc/as/mcs51/lklist.c: added boundary check before using
15109         dram[] array.
15110
15111 2002-09-18    <wiml AT hhhh.org>
15112
15113         * SDCClrange.h: exposed setFromRange() and setToRange()
15114         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
15115           packRegsForAccUse() (bug 542397)
15116         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
15117           multiple times and emitting the fetch operations more than once
15118           added aopGetUsesAcc() function to allow binary operators to
15119           fetch their operands in the correct order; made genMinus() emit
15120           compact code for X = LITERAL - Y
15121
15122 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15123         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
15124         sprintf() in line 1267.
15125
15126 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15127         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
15128         like ports.
15129
15130 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15131         Changes to aslink (All the changes are marked with 'JCF'):
15132
15133         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
15134         summary().
15135
15136         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
15137         area BSEG.  Also moves, if possible, the DATA area down into the internal
15138         ram so more space is available.
15139
15140         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
15141         sflag.
15142
15143         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
15144         not bytes.  Function summary() which creates a memory usage summary
15145         file with extension .mem.  Reports of overlaping stack and small stack
15146         size.  If the space for the stack is less than 16 bytes aslink trows a
15147         warning.
15148
15149         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
15150         the 8051.  Option 'y' for memory summary output file.
15151
15152         Changes to sdcc (All the changes are marked with 'JCF'):
15153
15154         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
15155
15156         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
15157         overlaying area for it (uses RegBankUsed[4]).
15158
15159         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
15160         bank zero as used by default.  By default aslink locates the stack
15161         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
15162         the creation of the .mem file.  Delegates the allocation of data area
15163         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
15164         the begining of the stack area to aslink.
15165
15166         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
15167         glue() in SDCCglue.c creates an area for it.
15168
15169 2002-09-03  Borut Razem <borut.razem AT siol.net>
15170         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
15171         sdcc/src/pic/glue.c:
15172         introduced atexit() handler for teporay files removal in case of
15173         errors, assertions, ...
15174
15175 2002-08-29  Borut Razem <borut.razem AT siol.net>
15176         * sdcc/support/cpp2/auto-host_vc_in.h:
15177         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
15178         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
15179         Maybe there is a similar problem with BORLANDC? It should be checked!
15180
15181         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
15182         corrected improper use of assert: the assignment to clr variable was done inside the assert.
15183         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
15184         was not executed, and the compiler (cl) launched a warning:
15185         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
15186
15187 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
15188         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
15189
15190 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
15191         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
15192
15193         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
15194           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
15195           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
15196           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
15197           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
15198           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
15199           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
15200         - added Release configuration in VS projects
15201         - review of compiler an linker options
15202         - VC .exe files are generated in bin_vc directory, not to interfere
15203           with binaries generated from other projects (cygwin, mingw, bcc ...)
15204
15205         * sdcc/src/yacc.dsp: added
15206
15207         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
15208         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
15209         and insert the version number definitions from .version
15210
15211         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
15212
15213         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
15214         added - genarate auto-host.h using auto-host_vc_in.h as template
15215
15216         * sdcc/sdcc_vc.h,
15217         removed from CVS, generated automatically
15218
15219 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
15220         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
15221
15222 2002-08-11  Borut Razem <borut.razem AT siol.net>
15223         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
15224
15225 2002-08-10  Borut Razem <borut.razem AT siol.net>
15226         * src/SDCCmain.c (main):
15227         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
15228         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
15229         The consequence was that some temporary files were not removed.
15230
15231         * src/SDCCglue.c:
15232         unification of code in functions tempfilename() and tempfile():
15233         function tempnam() is defined in Visual Studio 6.0 and .NET
15234
15235         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
15236
15237         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
15238           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
15239         - removed compiler command line option /WX: Treats all warnings as errors
15240         - update a list of source files, included into the project
15241
15242         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
15243           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
15244         changed project type to Generic Project so that can be correcly converted to VS.NET project
15245
15246         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
15247
15248         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
15249
15250         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
15251
15252         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
15253         added return 0 statements after assert() to make compiler happy
15254
15255         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
15256         added newline in the def file to keep MSC compiler satisfied
15257
15258         * sdcc/src/z80/gen.c:
15259         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
15260           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
15261         - solved MSC error in function aopDump()
15262
15263         * sdcc_vc.h: define PREFIX as "\\sdcc"
15264
15265 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
15266         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
15267
15268 2002-06-22  Scott Dattalo <scott AT dattalo.com>
15269         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
15270         - Rewrote the register banking algorithm.
15271         - Added pCode live-range analysis to registers (for now, only non-used and
15272         singly-used registers optimized away)
15273
15274         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
15275
15276         * 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.
15277
15278 2002-05-10  Scott Dattalo <scott AT dattalo.com>
15279         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
15280
15281 2002-04-22  Michael Hope  <michaelh AT vroom>
15282
15283         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
15284
15285         * configure.in (DD_COPT): Added include support required for gbdk.
15286
15287         * .version: Bumped version number just to increase it.
15288
15289         * src/SDCCmain.c: Added -nostdinc to the default options.
15290
15291 2002-04-15  Michael Hope  <michaelh AT vroom>
15292
15293         * device/lib/z80/printf.c (sprintf): Added.
15294
15295         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
15296
15297         * src/z80/peeph.def: Added transpose redundent load rule.
15298
15299         * src/z80/main.c: Added force callee saves for jaune.
15300
15301         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
15302
15303         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
15304
15305 2002-03-28  Johan Knol  <johan AT balder>
15306
15307         * src/SDCCval.c: fixed bug #532436
15308
15309 2002-03-14  Scott Dattalo <scott AT dattalo.com>
15310         * /src/port.h:
15311         Added "char *Processor" field to the port structure.
15312
15313         * /src/SDCCmain.c:
15314         Added -p option. Allows port dependent processor to be specified.
15315
15316         * all ports:
15317         Initialized the new field char *Processor field to NULL in all ports
15318
15319         * /src/pic/*:
15320         Compiler generated registers for interrupt context saving
15321         were not getting allocated.
15322
15323 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
15324
15325         * /src/SDCCast.c:
15326         Fixed left shift. Will promote the left side of a left shift
15327         if a) left shifting more than size of operand or b) when assigned
15328         to something size > size of left side
15329
15330 2002-03-14  Scott Dattalo <scott AT dattalo.com>
15331         * src/pic/*
15332         tons of changes. Register allocation has been
15333         rewritten. Added customization for the various PICs. Flow
15334         analysis is restructured. ...
15335
15336         * src/pic/device.h:
15337         Added
15338
15339         * src/pic/device.c:
15340         Added. device.c is a PIC port hack to accomodate variations
15341         in PIC devices.
15342
15343 2002-03-13  Michael Hope  <michaelh AT vroom>
15344
15345         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
15346
15347 2002-03-04  johanknol  <johanknol AT manik>
15348
15349         * /src/SDCCval.c: fixed
15350
15351         const unsigned char arr[][2] = { { 0, 1 } };
15352         t18.c:1: error: Initializer element is not constant
15353
15354 2002-03-04  bela  <bela AT manik>
15355
15356         * /device/include/mcs51reg.h:
15357         ds89c420 register definition update
15358
15359 2002-03-03    <johan AT FRIJA>
15360
15361         * support/Util/SDCCerr.c: did something, but don't no why anymore
15362
15363         * support/regression/tests/bug-524691.c: made it a little less shy
15364
15365         * src/SDCCast.c (decorateType): fixed bug #524697
15366
15367         * src/SDCCast.c: made some lineno improvements
15368
15369         * src/SDCCval.c (getNelements): changed warning to error
15370
15371         * src/SDCCglue.c (printIvalArray): changed warning to error
15372
15373         * src/SDCCicode.c: fixed a warning for mingw
15374
15375         * src/SDCCast.c (decorateType): fixed the << promotion for ops
15376
15377         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
15378
15379 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
15380
15381         * src/ds390/peeph.def:
15382         Added some more peephole rules
15383
15384         * src/ds390/gen.c: Various fixes & enhancements
15385
15386         * src/SDCClrange.c, src/SDCClrange.h:
15387         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
15388
15389         * src/ds390/ralloc.c:
15390         various fixes & enhancements (ds390) specific
15391
15392         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
15393         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
15394         from rallocs.
15395
15396         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
15397
15398 2002-03-02    <johan AT FRIJA>
15399
15400         * src/SDCCast.c (decorateType): fixed bug #524708
15401
15402         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
15403
15404         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
15405
15406 2002-03-01  Michael Hope  <michaelh AT vroom>
15407
15408         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
15409
15410         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
15411
15412 2002-03-01    <johan AT FRIJA>
15413
15414         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
15415
15416         * src/SDCCast.c (decorateType): fixed bug #524209
15417
15418         * src/SDCCval.c (valNot): fixed bug #524195
15419
15420 2002-02-26    <johan AT balder>
15421
15422         * src/xa51/gen.c: fixed a warning
15423
15424         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
15425
15426         * src/SDCCast.c (decorateType): fixed bug #522534
15427
15428 2002-02-23    <johan AT balder>
15429
15430         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
15431
15432 2002-02-22    <johan AT balder>
15433
15434         * src/SDCCast.c: fixed bug #514865
15435
15436         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
15437
15438 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
15439
15440         * sdcc/src/SDCCloop.c:
15441         Previous fix was not good. basic blocks that have "break" or "return" are
15442         not really partof a loop , but live ranges used in these blocks should
15443         be live thru the entire loop, so set partOfLoop but don't add them to
15444         loop region
15445
15446 2002-02-21    <johan AT FRIJA>
15447
15448         * src/SDCCcse.c: fixed bug #514308
15449
15450 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
15451
15452         * src/SDCCloop.c:
15453         Fixed BUG #519583. If a conditional block ended in a return/break
15454         statement inside a loop, it was not being considered part of the loop.
15455
15456         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
15457
15458 2002-02-10  Karl Bongers <karl AT turbobit.com>
15459
15460         * debugger/*:
15461         Fixed up SDCDB debugger somewhat.  Updated debugger/README
15462         with lots of comments and notes.
15463
15464         * device/examples/test2.c:
15465         Fix bug, "red" variable not being initialized(compiler complained).
15466
15467         * device/examples/Makefile, examples/test3.c:
15468         Add Makefile in device/examples folder, compiles test3.c
15469         for use as a multiple module SDCDB test case.
15470
15471         * sim/ucsim/cmd.src/cmdset.cc:
15472         Took out debug printfs in ucsim "next" command.
15473
15474         * sim/ucsim/xa.src:
15475         Karl and Johan start ucsim XA support.  Most dissassembly working,
15476         about 75% emulation done(plenty of work remaining).
15477
15478         * sim/ucsim/z80.src:
15479         Add Z80 support to ucsim, add test-ucz80 regression test,
15480         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
15481         Notice z80 compiler fails on examples/test3.c/crc code.
15482
15483 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
15484
15485         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
15486         Added support for --parms-in-bank1
15487
15488         * src/ds390/peeph.def:
15489         added a few more peephole optimzations
15490
15491         * src/ds390/main.c:
15492         1) added __builtin_inp & __builtin_outp used to read in data of given length
15493            from a memory mapped port
15494         2) added __builtin_memcmp
15495         3) added __builtin_swapw swap bytes of a short
15496
15497         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
15498         1) handle multiple send & receives from register bank1
15499         2) ralloc can now allocate DPTR1 to some liveRanges
15500
15501         * src/SDCCsymt.c, src/SDCCsymt.h:
15502         changes to handle multiple sends & receives
15503
15504         * src/SDCCptropt.h:
15505         added some pointer arithmetic optimization
15506
15507         * src/SDCCptropt.c:
15508         added some pointer arithmetic optimizations but not stable yet so not
15509         called from anywhere (will get this working shortly)
15510
15511         * src/SDCCopt.c: fixed for multiple sends & receives
15512
15513         * src/SDCCmain.c:
15514         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
15515         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
15516            set preprocessor defines (depending on options)
15517
15518         * src/SDCCicode.c, src/SDCCicode.h:
15519         changes made to handle multiple sends & receives
15520
15521         * src/SDCCglobl.h:
15522         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
15523
15524         * src/SDCCcse.c, src/SDCCcse.h:
15525         added function findbackward def (to be used in upcoming optimization)
15526
15527         * src/SDCCcflow.c, src/SDCCcflow.h:
15528         added function returnAtEnd - to determine if a basic block terminates with
15529         a RETURN iCode
15530
15531         * src/SDCCast.c, src/SDCCast.h:
15532         added option parms-in-bank1
15533
15534         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
15535         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
15536         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
15537         adjusted for --parms-in-bank1 option
15538
15539         * device/include/string.h:
15540         donot redefine "reentrant" keyword
15541
15542         * device/include/ds80c390.h: Added some more SFRs
15543
15544 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
15545
15546         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
15547
15548 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
15549
15550         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
15551
15552 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
15553
15554         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
15555
15556 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
15557
15558         * Added --xram-movc option
15559
15560 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
15561
15562         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
15563
15564 2002-01-11  Johan Knol
15565
15566         * Added math lib of Jesus Calvino-Fraga
15567
15568 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
15569
15570         * src/SDCCmain.c (processFile): fix processing of ../../src.c
15571         * support/regression/Makefile: new target test-mcs51-stack-auto
15572         * support/regression/ports/mcs51-stack-auto/spec.mk: added
15573
15574 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
15575
15576         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
15577
15578 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
15579
15580         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
15581
15582 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
15583
15584         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
15585
15586         * src/SDCCglue.h: add definition for printIvalChar()
15587
15588 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
15589
15590         * src/SDCCast.c: fix #498138 by Johan
15591
15592         * src/SDCCglue.c: fix #498138 by Johan
15593
15594 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
15595
15596         * support/regression/Makefile: fix clean
15597
15598         * support/regression/ports/ds390/support.c: fix transmission of last character
15599
15600 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
15601
15602         * /sdcc/src/ds390/gen.c:
15603         a) improved computing address of stack variable
15604         b) took out some #if 0 code
15605         c) improved parmBytes adjustment
15606         d) improved genPlusIncr & genMinusIncr
15607         e) genCmp could generate bad code (when left assigned to DPTR)
15608         f) Fixed bug in hasInc
15609
15610         * /sdcc/src/ds390/ralloc.c:
15611         a) packRegsForSupport could mess up live information (Fixed)
15612         b) packRegsDPTRuse could be incorrect for left & right shift
15613
15614         * /sdcc/src/mcs51/ralloc.c:
15615         packRegsForSupport could mess up the live information (Fixed)
15616
15617         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
15618
15619         * /sdcc/src/SDCCast.c:
15620         can reverse a loop even if function call is present as long
15621         as the loop control variable is local & is not passed as parameter
15622
15623 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15624
15625         * /sdcc/ChangeLog: *** empty log message ***
15626
15627         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
15628         More builtin function additions for TININative
15629
15630         * /sdcc/src/ds390/ralloc.c:
15631         Had broken the regression testsuite
15632
15633         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
15634
15635         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
15636         Added funcattr hasStackParms will be set for reentrant functions when there
15637         are paramteres on the stack, this helps in minimizing frame pointer generation
15638         typeFromStr can handle function pointers now
15639
15640         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
15641         *** empty log message ***
15642
15643 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15644
15645         * /src/ds390/gen.c, /src/ds390/main.c:
15646         More builtin function additions for TININative
15647
15648         * /src/ds390/ralloc.c:
15649         Had broken the regression testsuite
15650
15651         * /src/SDCCast.c: Fixed a bug in dumptree
15652
15653         * /src/SDCCsymt.c, /src/SDCCsymt.h:
15654         Added funcattr hasStackParms will be set for reentrant functions when there
15655         are paramteres on the stack, this helps in minimizing frame pointer generation
15656         typeFromStr can handle function pointers now
15657
15658         * /doc/builtins.txt, /doc/TININative.txt:
15659         *** empty log message ***
15660
15661
15662 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15663
15664         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
15665         ALPHA version for -mTININative
15666
15667         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
15668         updated to reflect changes in the port structure
15669
15670         * /src/port.h:
15671         added function do_assemble (similar to do_link) if non-null this function
15672         will be called to do assembly (-mTININative) requires a multi command
15673         assembly
15674         added function genAssemblerEnd will be called to generate assembler Epilogue
15675
15676         * /src/SDCCsymt.c:
15677         added _JavaNative to debug info printing
15678
15679         * /src/SDCCmain.c: added option --tini-libid
15680         added port->do_assemble function (-mTININative) has a multi command assemble
15681
15682         * /src/SDCCglue.c: Disabled "constExpr" check
15683         added port->genAssemblerEnd function
15684
15685         * /src/SDCCglobl.h: Added option --tini-libid value
15686
15687         * /src/SDCCast.h:
15688         tookout optimizeCompare from the header (has no external references)
15689
15690         * /src/SDCCast.c: made one more function "static"
15691
15692 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
15693
15694         * src/z80/mappings.i: Added z80asm support.
15695
15696         * src/z80/main.c: Added z80asm support on --asm=z80asm
15697
15698         * src/z80/gen.c: Fixed asm portability issues.
15699
15700         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
15701
15702         * src/SDCCglue.c (printExterns): Added global/extern split.
15703
15704 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
15705
15706         * support/regression/Makefile: added test for mcs51 model large
15707
15708         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
15709
15710         * support/regression/ports/gbz80/spec.mk: added -mgbz80
15711
15712 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
15713
15714         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
15715
15716 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
15717
15718         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
15719
15720         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
15721
15722 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
15723
15724         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
15725
15726         * support/regression/tests/simplefloat.c: Port to mcs51.
15727
15728 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
15729         * support/regression/tests/bug-485362.c: Added.
15730
15731         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
15732
15733         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
15734
15735         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
15736
15737         * src/z80/gen.c (aopDump): Added a dump function.
15738
15739 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
15740         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
15741
15742         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
15743
15744         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
15745
15746         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
15747
15748         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
15749
15750         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
15751
15752         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
15753
15754         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
15755
15756         * support/regression/ports/ds390/support.c: Use tinibios.
15757
15758         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
15759
15760 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
15761
15762         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
15763         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
15764
15765         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
15766
15767         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
15768
15769 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
15770
15771         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
15772
15773         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
15774         (packRegsForIYUse): Created and optimised.
15775
15776 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
15777
15778         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
15779 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
15780
15781         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
15782
15783         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
15784
15785         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
15786
15787 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15788
15789         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
15790
15791         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
15792
15793 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15794
15795         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
15796
15797         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
15798
15799         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
15800
15801 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
15802
15803         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
15804         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
15805         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
15806
15807         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
15808
15809         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
15810         (genNotFloat): Added.
15811         (genUminusFloat): Added.
15812
15813         * device/lib/z80/Makefile: Added floating pt stubs.
15814
15815         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
15816
15817         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
15818
15819         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
15820
15821 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15822
15823         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
15824
15825         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
15826
15827         * sdcc/support/regression/Makefile: Add port ds390.
15828
15829         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
15830
15831         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
15832
15833         * sdcc/support/regression/ports/ds390/spec.mk: Added.
15834
15835         * sdcc/support/regression/ports/ds390/support.c: Added.
15836
15837         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
15838
15839         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
15840
15841         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
15842
15843 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
15844
15845         * device/include/malloc.h: Added z80 and gbz80 support.
15846
15847         * device/lib/gbz80/heap.s: Added.
15848
15849         * device/lib/z80/heap.s: Added.
15850
15851         * device/lib/malloc.c: Added z80 and gbz80 support.
15852
15853         * support/regression/tests/malloc.c (testMalloc): Added.
15854
15855         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
15856
15857         * support/regression/tests/bug-478094.c: Added.
15858
15859         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
15860
15861 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
15862
15863         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
15864
15865         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
15866
15867         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
15868
15869         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
15870
15871         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
15872
15873 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
15874
15875         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
15876
15877 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
15878
15879         * support/regression/tests/bug-477927.c: Added.
15880
15881         * src/z80/peeph.def: Added minor rules.
15882
15883         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
15884
15885         * src/z80/peeph.def: Added jump optimisation modification.
15886
15887 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
15888
15889         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
15890
15891 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
15892
15893         * support/regression/tests/funptrs.c: Added.
15894
15895 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
15896
15897         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
15898
15899 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
15900
15901         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
15902
15903         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
15904
15905         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
15906         (movLeft2ResultLong): Created.
15907
15908         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
15909         (joinPushes): Added.  Joins two char pushes into a word push.
15910
15911 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
15912
15913         * support/cpp2/Makefile.in (install): Added creation of dest dir.
15914
15915         * support/makebin/Makefile (install): Added creation of dest dir.
15916
15917 2001-10-24 Karl Bongers <karl AT turbobit.com>
15918
15919         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
15920
15921 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
15922
15923         * src/z80/ralloc.c: Turned off faulty pack for one use.
15924
15925         * src/z80/peeph-gbz80.def: Removed redundent restart options.
15926
15927         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
15928
15929 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
15930
15931         * support/regression/Makefile: Improved clean
15932
15933         * support/regression/ports/gbz80/spec.mk: Added clean
15934
15935         * support/regression/ports/host/spec.mk: Added clean
15936
15937         * support/regression/ports/z80/spec.mk: Added clean
15938
15939         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
15940
15941         * support/regression/ports/mcs51/timeout.c: little improvements
15942
15943 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
15944
15945         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
15946
15947         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
15948
15949         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
15950
15951 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
15952
15953         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
15954
15955         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
15956
15957 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
15958         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
15959
15960         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
15961
15962         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
15963
15964         * src/mcs51/main.c (_linkCmd): Added bin path to command.
15965
15966         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
15967
15968         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
15969
15970         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
15971
15972         * support/regression/tests/longor.c: Added.
15973
15974 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
15975
15976         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
15977
15978         * as/mcs51/aslink.h: define PATH_MAX
15979
15980         * as/mcs51/asm.h: define PATH_MAX
15981
15982         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
15983
15984         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
15985
15986         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
15987
15988         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
15989
15990         * src/SDCCglobl.h: define PATH_MAX
15991
15992         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
15993
15994         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
15995
15996 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
15997
15998         * src/z80/gen.c (gencjneshort): Fixed
15999
16000         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
16001
16002 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
16003
16004         * support/regression/tests/bug-469671.c: Added.
16005
16006         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
16007
16008 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
16009
16010         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
16011
16012         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
16013
16014 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
16015
16016         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
16017
16018         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
16019
16020         * src/device/lib/_mullong.c : removed hint: nooverlay bug
16021
16022         * src/device/lib/_divuint.c : removed hint: nooverlay bug
16023
16024         * src/device/lib/_divulong.c: removed hint: nooverlay bug
16025
16026         * src/device/lib/_moduint.c : removed hint: nooverlay bug
16027
16028         * src/device/lib/_modulong.c: removed hint: nooverlay bug
16029
16030 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
16031
16032         * 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.
16033
16034         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
16035
16036         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
16037
16038 2001-10-07    <johan AT FRIJA>
16039
16040         * device/lib/gets.c (gets): fixed the return value.
16041
16042 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
16043         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
16044
16045         * 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.
16046
16047         * 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.
16048
16049         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
16050
16051         * src/pic/gen.c: Removed Safe_strdup.
16052
16053         * configure.in: Added option to enable libgc support.
16054
16055         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
16056         (bitVectUnion): Optimised.
16057         (bitVectIntersect): Optimised.
16058         (bitVectBitsInCommon): Optimised.
16059         (bitVectCplAnd): Optimised.
16060
16061         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
16062
16063 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16064
16065         * src/SDCCmain.c: distinguish between assembler debug and plain options
16066
16067         * src/avr/main.c:   remove standard assembler options
16068
16069         * src/ds390/main.c: remove standard assembler options
16070
16071         * src/mcs51/main.c: remove standard assembler options
16072
16073         * src/port.h: removed "PENDING" comment
16074
16075 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16076
16077         * src/device/lib/_mulint.c  : new, with assember functions
16078
16079         * src/device/lib/_mullong.c : new, with assember functions
16080
16081         * src/device/lib/_divuint.c : with assember functions
16082
16083         * src/device/lib/_divsint.c : with assember functions
16084
16085         * src/device/lib/_divulong.c: with assember functions
16086
16087         * src/device/lib/_divslong.c: with assember functions
16088
16089         * src/device/lib/_moduint.c : with assember functions
16090
16091         * src/device/lib/_modsint.c : with assember functions
16092
16093         * src/device/lib/_modulong.c: with assember functions
16094
16095         * src/device/lib/_modslong.c: with assember functions
16096
16097         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
16098
16099         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
16100
16101         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
16102                                       replaced _mululong.c and _mulslong.c by _mullong.c
16103
16104 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16105
16106         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
16107
16108 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
16109
16110         * src/SDCCglue.c: test, if win32api is available for MINGW
16111
16112 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
16113
16114         * src/SDCCsymt.c: no more _modifier in printTypeChain()
16115         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
16116         * support/regression/ports/gbz80/spec.mk: removed GENERIC
16117         * support/regression/ports/host/spec.mk: removed GENERIC
16118         * support/regression/ports/mcs51/spec.mk: removed GENERIC
16119         * support/regression/ports/z80/spec.mk: removed GENERIC
16120
16121 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
16122
16123         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
16124
16125         * support/regression/tests/bug-467035.c: Created.
16126
16127 2001-10-01    <johan AT FRIJA>
16128
16129         * src/SDCC.y: fixed bug #466586 part 1
16130
16131 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
16132
16133         * SDCCicode.c: z80 has no generic pointers
16134         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
16135
16136 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
16137
16138         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
16139
16140 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
16141
16142         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
16143
16144         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
16145
16146 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
16147
16148         * configure.in: Fixed up so that ucsim is only configured once.
16149
16150         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
16151
16152         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
16153         (getPathDifference): As above.
16154
16155         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
16156
16157         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
16158
16159 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
16160         * .version: Updated to 2.3.1
16161
16162         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
16163         Added copyright header.
16164
16165         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
16166         (assemble): Added support for macro based assembler commands.
16167         (linkEdit): Added support for macro based linker commands.
16168         (preProcess): Changed the pre-processor to use macros.
16169         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
16170         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
16171
16172         * device/lib/z80/crt0.s: Added module name for debugging.
16173
16174 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
16175
16176         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
16177
16178         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
16179
16180         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
16181
16182         * src/Makefile.in: Added SDCCmacro and SDCCutil
16183
16184 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
16185
16186         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
16187
16188 2001-09-16    <johan AT FRIJA>
16189
16190         * 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.
16191
16192 2001-09-15    <johan AT FRIJA>
16193
16194         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
16195         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
16196
16197 2001-09-11    <johan AT FRIJA>
16198
16199         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
16200
16201 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
16202
16203         * support/regression/tests/bug-460444.c: Added test case.
16204
16205         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
16206         (genCast): Added justification for all of the asserts.
16207
16208 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
16209
16210         * support/regression/support.c: _xdata replaced by xdata
16211
16212         * support/regression/spec.mk: removed _generic
16213
16214 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
16215
16216         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
16217
16218         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
16219         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
16220
16221         * src/z80/peeph.def: Added a rule to optimise shift then compare.
16222
16223         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
16224
16225         * support/regression/tests/bug-460010.c: Added test case.
16226
16227         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
16228
16229 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
16230
16231         * support/regression/Makefile: inter-port-clean adjusted for mcs51
16232
16233         * support/regression/testfwk.c: removed workaround for bug #436344
16234
16235         * support/regression/tests/bp.c: use less memory with mcs51
16236
16237         * support/regression/tests/bug-441448.c: use less memory
16238
16239         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
16240
16241         * support/regression/collate-results.py: typo
16242
16243 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
16244
16245         * support/regression/tests/fetchoverlap.c: Added new test case.
16246
16247         * support/regression/tests/bp.c: Added new test case.
16248
16249         * support/regression/tests/bug-448984.c: Added new test case.
16250
16251         * support/regression/tests/pow2shifts.c: Added new test case.
16252
16253         * src/z80/gen.c: Turned off the noise it normally generates for the release.
16254         (genlshTwo): Fixed right shift for count > 8.
16255
16256         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
16257
16258 2001-09-08    <johan AT FRIJA>
16259
16260         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
16261
16262 2001-09-07    <johan AT FRIJA>
16263
16264         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
16265
16266         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
16267
16268 2001-09-06    <johan AT FRIJA>
16269
16270         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
16271         * bernhard noted me at this: "() equals to (void)" (1.38)
16272
16273 2001-09-05    <johan AT FRIJA>
16274
16275         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
16276
16277 2001-09-04    <johan AT FRIJA>
16278
16279         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
16280
16281
16282 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
16283
16284         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
16285
16286 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
16287
16288         * link/z80/aslink.h: Fixed path for PATH_MAX
16289
16290 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
16291
16292         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
16293
16294         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
16295
16296         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
16297
16298         * 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.
16299
16300 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
16301
16302         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
16303         (genCmp): Fixed up genCmp for the GB with longs.
16304
16305         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
16306
16307         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
16308
16309         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
16310
16311         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
16312
16313 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
16314
16315         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
16316
16317 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
16318
16319         * 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.
16320
16321         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
16322
16323 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
16324
16325         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
16326
16327         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
16328
16329 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
16330
16331   * sim/ucsim/configure:    little improvement of Cygwin-detection
16332   * sim/ucsim/configure.in: little improvement of Cygwin-detection
16333   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
16334   * support/regression/tests/bug-221100.c: small changes for mcs51
16335   * support/regression/tests/bug-221168.c: small changes for mcs51
16336   * support/regression/tests/bug-227710.c: small changes for mcs51
16337   * support/regression/tests/staticinit.c: small changes for mcs51
16338   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
16339   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
16340   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
16341
16342 $Revision$